/* Structural variants only: all color and type values come from ui-theme.css. */
.drawer:has(.rp3-form),.drawer:has(.rp3-loading){width:min(960px,100vw);max-width:100vw}
.rp3-form{display:grid;gap:20px;min-width:0}
.rp3-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.rp3-heading h3{margin:4px 0;font-size:22px;color:var(--ink)}
.rp3-heading p,.rp3-section p,.rp3-agenda p{margin:4px 0 0;color:var(--muted);line-height:1.45}
.rp3-kicker{font-size:12px;font-weight:700;color:var(--orange-deep)}
.rp3-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;min-width:0}
.rp3-section{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);display:grid;align-content:start;gap:16px;min-width:0}
.rp3-section>h3,.rp3-schedule-summary h3{display:flex;align-items:center;gap:8px;margin:0;font-size:16px}
.rp3-section .form-field{margin:0;min-width:0}
.rp3-section input:not([type=checkbox]){width:100%;min-width:0;height:44px;box-sizing:border-box}
.rp3-secret{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0;background:var(--surface)}
.rp3-secret input{border:0!important;background:transparent!important;flex:1;width:0!important;min-width:0}
.rp3-secret .btn{border:0;border-left:1px solid var(--line);border-radius:0;flex:0 0 82px;height:44px;min-height:44px;padding:0 10px}
.rp3-secret:focus-within{outline:2px solid var(--orange-deep);outline-offset:2px}
.rp3-section small{font-size:12px;color:var(--muted);line-height:1.4}
.rp3-report{min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px;margin:0}
.rp3-report legend{padding:0 4px;font-size:14px;font-weight:700;max-width:100%}
.rp3-report legend label{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:36px}
.rp3-report input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:var(--orange-deep)}
.rp3-report p{font-size:12px;margin:0 0 12px}
.rp3-report-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}
.rp3-report-options .checkbox-field{min-height:44px;margin:0;display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}
.rp3-terminals{display:grid;gap:12px;min-width:0}
.rp3-terminals strong{display:block;font-size:13px}
.rp3-terminals span{display:block;overflow-wrap:anywhere;font-size:12px;color:var(--muted);margin-top:4px}
.rp3-terminals .btn{justify-self:start}
.rp3-agenda{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--bg)}
.rp3-agenda>div{flex:1;min-width:0}.rp3-agenda p{font-size:13px}
.rp3-agenda-icon{width:40px;height:40px;display:grid;place-items:center;background:var(--surface);border-radius:10px;color:var(--orange-deep);flex:none}
.rp3-availability{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:12px;color:var(--muted);line-height:1.5}
.rp3-availability .icon{width:16px;height:16px;flex:none}
.rp3-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.rp3-actions .btn,.rp3-agenda>.btn,.rp3-terminals .btn{height:44px;min-height:44px;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;gap:8px;width:200px;max-width:100%;white-space:nowrap;padding:0 12px}
.rp3-actions .btn{flex:0 1 200px}
.rp3-form .fin-form-error{margin:0;min-height:20px}
.rp3-form [aria-invalid=true]{outline:2px solid var(--red);outline-offset:1px}
.rp3-check-result:empty{display:none}.rp3-check-result{margin:0;font-size:13px;color:var(--green)}
.rp3-busy .icon{opacity:.45}.rp3-form[aria-busy=true]{cursor:progress}
.rp3-schedule-summary{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--bg);min-width:0}
.rp3-schedule-summary p{margin:8px 0 0;color:var(--muted);line-height:1.5;font-size:13px}
.rp3-schedule-card .card-icon{color:var(--orange-deep)}
.rp3-schedule-card .card-footer .btn{height:44px;min-height:44px;min-width:120px;display:flex;align-items:center;justify-content:center}
#schedule-form .rp3-calendar-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
#schedule-form .rp3-calendar-actions>.btn,#schedule-form .rp3-calendar-actions>.form-actions{width:240px;max-width:100%;margin:0;padding:0}
#schedule-form .rp3-calendar-actions>.form-actions .btn{width:100%;height:44px}
#schedule-form .rp3-calendar-actions>.btn{height:44px}
@media(max-width:700px){
 .rp3-grid{grid-template-columns:minmax(0,1fr);gap:14px}.rp3-section{padding:16px;gap:14px}
 .rp3-heading{gap:8px}.rp3-heading h3{font-size:20px}
 .rp3-agenda{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px}
 .rp3-agenda>.btn{grid-column:1/-1;width:100%}
 .rp3-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.rp3-actions .btn{width:100%}
 .rp3-section input:not([type=checkbox]){font-size:16px}
 .rp3-report-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #schedule-form .rp3-calendar-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 #schedule-form .rp3-calendar-actions>.btn,#schedule-form .rp3-calendar-actions>.form-actions{width:100%}
}

.rp3-history{display:grid;gap:12px;min-width:0}.rp3-history[hidden]{display:none}
.rp3-history>h3{margin:0;font-size:16px}
.rp3-run{padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);margin-top:10px;overflow-wrap:anywhere}
.rp3-run-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rp3-run p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.rp3-run .fin-form-error{color:var(--red)}
.rp3-actions .btn{min-height:44px;justify-content:center}
