/* Final component layer: native mobile controls and compact scheduling forms. */
html:root .registration-basic-form .registration-terms{display:flex!important;align-items:center!important;gap:10px;min-height:44px;margin:8px 0!important;padding:0!important}
html:root .registration-basic-form .registration-terms input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;display:block;box-sizing:border-box!important;flex:0 0 18px!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:0!important;align-self:center;line-height:1}
html:root .registration-basic-form .registration-terms>span{font-size:13px;line-height:1.5;min-width:0}
html:root #modal .session-detail-actions[data-compact-actions]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;overflow:visible;margin:0;padding:14px 0;border-top:1px solid var(--line)}
html:root #modal .session-detail-actions[data-compact-actions]>.button,html:root #modal .session-detail-actions>.session-actions-disclosure>summary{box-sizing:border-box;display:flex!important;align-items:center;justify-content:flex-start;gap:10px;width:100%!important;min-width:0!important;max-width:100%;height:auto;min-height:54px!important;margin:0;padding:9px 12px!important;flex:none!important;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);color:var(--ink);font-size:13px!important;font-weight:600;line-height:1.3;white-space:normal;text-align:left;box-shadow:0 3px 10px #162b3c05;grid-column:auto}
html:root #modal .session-detail-actions>.session-actions-disclosure{width:100%!important;min-width:0;max-width:100%;margin:0;grid-column:auto}
html:root #modal .session-detail-actions>.session-actions-disclosure[open]{grid-column:1/-1}
html:root #modal .session-detail-actions>.session-actions-disclosure>summary{list-style:none!important;cursor:pointer}
html:root #modal .session-detail-actions>.session-actions-disclosure>summary::marker{content:''}
html:root #modal .session-detail-actions>.session-actions-disclosure>summary::-webkit-details-marker{display:none}
html:root #modal .session-detail-actions>.button>.spotter-icon,html:root #modal .session-more-icon{box-sizing:border-box;display:grid;place-items:center;width:32px!important;height:32px!important;min-width:32px;padding:7px;flex:0 0 32px;border-radius:9px;background:var(--soft,#edf4fa)}
html:root #modal .session-more-icon>.spotter-icon{width:18px;height:18px;margin:0}
html:root #modal .session-detail-actions .action-icon-tile{width:32px;height:32px;flex:0 0 32px;padding:7px;border-radius:9px;background:var(--soft,#edf4fa)}
html:root #modal .session-detail-actions .action-icon-tile .spotter-icon{background:transparent;padding:0}
html:root #modal .session-detail-actions .session-actions-panel{margin-top:8px;gap:8px;padding:10px}
html:root #modal .session-detail-actions .session-actions-panel .button{min-height:44px;width:100%;font-size:12px;white-space:normal}
html:root .compact-session-editor,html:root .compact-booking-editor{display:grid;gap:12px;min-width:0}
html:root .compact-editor-section{border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);margin:0;min-width:0;overflow:hidden}
html:root .compact-editor-section>header,html:root .compact-editor-section>summary{padding:13px 16px;background:var(--surface-soft,#f6f8fb);border-bottom:1px solid var(--line)}
html:root .compact-editor-section>header h3{margin:0;font-size:14px;color:var(--ink)}
html:root .compact-editor-section>header p,html:root .editor-help{font-size:11px!important;line-height:1.5;color:var(--muted);margin:5px 0 0}
html:root .compact-editor-section>summary{font-weight:600;font-size:13px;cursor:pointer}
html:root .compact-editor-section:not([open])>summary{border-bottom:0}
html:root .compact-editor-fields{padding:14px 16px;display:grid;gap:12px;min-width:0}
html:root .editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html:root .editor-time-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}
html:root :is(.compact-session-editor,.compact-booking-editor) .field{font-size:12px!important;min-width:0;margin:0;gap:6px}
html:root :is(.compact-session-editor,.compact-booking-editor) :is(input,select,textarea){box-sizing:border-box;min-width:0!important;width:100%;max-width:100%;min-height:42px;font-size:14px;padding:9px 10px;border-radius:9px}
html:root :is(.compact-session-editor,.compact-booking-editor) :is(input[type=date],input[type=time]){appearance:none;-webkit-appearance:none;display:block;height:42px;min-width:0!important;width:100%!important;overflow:hidden}
html:root .compact-session-editor .session-package-rules{margin:0;padding:12px}
html:root .compact-session-editor .session-package-rules label{font-size:12px}
html:root .availability-editor .hours-week{gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}
html:root .availability-editor .hours-day{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;padding:10px 12px;margin:0;border-radius:0;background:var(--surface,#fff)}
html:root .availability-editor .hours-day-head{margin:0;gap:8px;align-items:center}
html:root .availability-editor .hours-day-head strong{font-size:13px}
html:root .availability-editor .hours-day-head .button{min-height:32px!important;padding:6px 8px!important;font-size:11px!important;line-height:1.2}
html:root .availability-editor .hours-day-ranges{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;min-width:0}
html:root .availability-editor .hours-interval{box-sizing:border-box;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px!important;width:280px;max-width:100%;gap:8px;align-items:end;padding:0;margin:0}
html:root .availability-editor .availability-time{display:grid;gap:3px;min-width:0;margin:0}
html:root .availability-editor .availability-time>span{font-size:10px;color:var(--muted);font-weight:500}
html:root .availability-editor .hours-interval input[type=time]{appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;padding:7px 8px!important;border-radius:9px;font-size:14px!important;line-height:1.2;overflow:hidden}
html:root .availability-editor .hours-interval .availability-remove{grid-column:3!important;grid-row:1!important;align-self:end;box-sizing:border-box;width:36px!important;min-width:36px!important;min-height:40px!important;height:40px!important;margin:0!important;padding:0!important;font-size:20px!important;border-radius:9px}
html:root .schedule-date-nav .schedule-date-field{box-sizing:border-box;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);overflow:hidden;min-width:0;height:44px}
html:root .schedule-date-nav .schedule-date-field #schedule-date{appearance:none;-webkit-appearance:none;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:42px!important;min-height:42px!important;border:0!important;outline-offset:-3px;border-radius:0!important;background:transparent!important;margin:0!important;padding:8px 12px!important;font-size:14px!important;text-align:center}
html:root .schedule-date-nav #schedule-date::-webkit-date-and-time-value{text-align:center;min-width:0}
html:root #modal .client-request-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;min-width:0}
html:root #modal .client-request-actions>.button{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:100%!important;min-width:0;min-height:46px;font-size:13px;line-height:1.3;padding:9px!important;white-space:normal;background:var(--surface,#fff);border:1px solid var(--line);border-radius:12px;color:var(--ink);flex:none;box-shadow:none}
html:root #modal .client-request-actions>.button>.spotter-icon{box-sizing:border-box;width:30px;height:30px;padding:6px;background:var(--soft,#edf4fa);border-radius:8px;flex:0 0 30px}
html:root #modal .client-booking-request-card{display:grid;gap:14px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);margin-bottom:12px}
html:root #modal .client-booking-request-card h3{font-size:15px;margin:7px 0}
html:root #modal .client-booking-request-card p{font-size:12px;line-height:1.5;margin:0}
html:root #modal .client-booking-request-card .eyebrow{font-size:10px}
html:root[data-theme=midnight] #modal :is(.session-detail-actions>.button,.session-actions-disclosure>summary,.client-request-actions>.button){background:var(--night-raised);color:var(--night-ink);border-color:var(--night-border)}
html:root[data-theme=midnight] #modal :is(.session-more-icon,.session-detail-actions>.button>.spotter-icon,.client-request-actions>.button>.spotter-icon,.session-detail-actions .action-icon-tile){background:var(--night-tile,#373f4e)}
@media(min-width:768px){html:root dialog:has(.compact-session-editor),html:root dialog:has(.compact-booking-editor){width:min(800px,calc(100vw - 48px));max-width:800px}}
@media(max-width:640px){html:root .compact-editor-fields{padding:12px;gap:10px}html:root .compact-editor-section>header,html:root .compact-editor-section>summary{padding:12px}html:root .editor-grid{gap:10px}html:root .editor-time-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html:root .editor-time-grid>.field:first-child{grid-column:1/-1}html:root .availability-editor .hours-day{grid-template-columns:1fr;gap:6px;padding:9px 12px}html:root .availability-editor .hours-day-head{justify-content:space-between}html:root .availability-editor .hours-interval{width:100%;max-width:none}html:root #modal .session-detail-actions[data-compact-actions]>.button,html:root #modal .session-actions-disclosure>summary{font-size:12px!important;padding:8px!important;gap:7px;min-height:52px!important}html:root .availability-intro p{font-size:13px}html:root .availability-intro small{font-size:10px}}
@media(max-width:360px){html:root .compact-session-editor .editor-grid{grid-template-columns:1fr}html:root #modal .session-detail-actions>.button>.spotter-icon,html:root #modal .session-more-icon{width:26px!important;height:26px!important;min-width:26px;flex-basis:26px;padding:5px}}
/* Metric creation and editing share a compact responsive form. */
html:root .metric-editor{display:grid;gap:16px;min-width:0}
html:root .metric-editor-intro{display:flex;align-items:center;gap:12px;padding:4px 0 2px}
html:root .metric-editor-symbol{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:var(--surface-soft);color:var(--accent,var(--ink))}
html:root .metric-editor-symbol :is(svg,img){width:24px;height:24px;object-fit:contain}
html:root .metric-editor-intro h3{font-size:15px;line-height:1.4;margin:0}
html:root .metric-editor-intro p{font-size:12px;line-height:1.5;color:var(--muted);margin:4px 0 0}
html:root .metric-editor .form-stack{gap:12px;min-width:0}
html:root .metric-editor .compact-editor-section>header{display:block;height:auto;padding:12px 14px}
html:root .metric-editor .compact-editor-section>header h3{font-size:14px;line-height:1.4}
html:root .metric-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
html:root .metric-editor .field{font-size:12px;gap:6px;margin:0;min-width:0}
html:root .metric-editor :is(input,select,textarea){width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;border-radius:10px;font-size:14px;color:var(--ink);background:var(--surface);border:1px solid var(--line)}
html:root .metric-editor textarea{resize:vertical;line-height:1.5;min-height:84px}
html:root .metric-editor-note{font-size:11px;line-height:1.55;color:var(--muted);padding:0 2px;margin:0}
html:root .metric-editor .modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
html:root .metric-editor .modal-actions>.button{width:100%;min-height:44px;justify-content:center}
html:root dialog:has(.metric-editor){width:min(620px,calc(100vw - 32px));max-width:620px}
@media(max-width:700px){
 html:root dialog:has(.metric-editor){width:100%;max-width:100%}
 html:root .metric-editor{gap:12px}
 html:root .metric-editor :is(input,select,textarea){font-size:16px!important}
 html:root .metric-editor-grid{gap:10px}
 html:root .metric-editor .modal-actions>.button{min-height:48px;font-size:13px}
}
/* Workout completion pages size to the active exercise or round. */
html:root .workout-log-carousel{align-items:flex-start;min-height:0;scroll-behavior:auto}
html:root .workout-log-carousel .workout-log-slide{align-self:flex-start;height:auto;min-height:0}
html:root dialog:has([data-form="workout-log"]){height:auto;min-height:0}
html:root #modal-body:has(>[data-form="workout-log"]){height:auto;min-height:0;flex:0 1 auto}
html:root .is-direct-exercise .workout-log-exercise-head:has(.workout-log-media:empty){display:none}
html:root .workout-log-carousel .log-set{display:grid;grid-template-columns:60px minmax(70px,120px) minmax(80px,150px) 44px 44px;gap:10px;padding:10px 12px;align-items:end}
html:root .workout-log-carousel .log-set .log-field{min-width:0}
html:root .workout-log-carousel .log-set .log-field input{width:100%;min-width:0;box-sizing:border-box}
html:root .workout-log-carousel .log-set-complete{width:44px;height:44px;border:2px solid #81909e!important;border-radius:8px;background:var(--surface)!important;box-shadow:none!important;display:grid;place-items:center}
html:root .workout-log-carousel .log-set-complete .log-check-empty{width:22px;height:22px;border:2px solid #81909e;border-radius:4px;background:transparent}
html:root .workout-log-carousel .log-set-complete:has(input:checked){background:var(--accent,#39765a)!important;border-color:var(--accent,#39765a)!important;color:white!important}
html:root .workout-log-carousel .log-set-complete:has(input:focus-visible){outline:3px solid var(--accent,#39765a);outline-offset:3px}
html:root .workout-log-carousel .workout-set-remove{position:static;transform:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);box-shadow:none;display:inline-flex;justify-content:center;align-items:center}
html:root .workout-log-carousel .workout-set-remove>svg{width:18px!important;height:18px!important;min-width:18px;flex:0 0 18px;padding:0!important;background:none!important;border-radius:0;box-shadow:none}
html:root .workout-log-carousel .workout-set-remove:hover{color:#b84242;border-color:#b84242}
html:root .workout-execution-edits{display:flex;gap:10px;flex-wrap:wrap;padding:12px 0 0;margin:0}
html:root .workout-execution-edits>.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:none;font-size:12px;font-weight:650}
html:root .workout-execution-edits>.button>span{font-size:18px;line-height:1;color:var(--muted)}
html:root .workout-log-navigation[hidden]{display:none!important}
html:root .workout-log-empty{padding:20px;font-size:13px;color:var(--muted);text-align:center}
@media(max-width:700px){
 html:root .workout-log-carousel .log-set{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px 44px;gap:8px;padding:10px}
 html:root .workout-log-carousel .log-set>.log-set-number{grid-column:1/-1;font-size:12px}
 html:root .workout-log-carousel .log-field input{font-size:16px!important;min-height:44px;padding:8px}
 html:root .workout-execution-edits>.button{flex:1;min-width:0;padding:10px 8px}
}
/* Client onboarding and trainer-managed readiness questionnaires. */
html:root dialog.onboarding-dialog{width:min(960px,calc(100vw - 40px));max-width:960px;height:auto;min-height:0}
html:root .onboarding-client-shell,html:root .parq-settings-shell{display:grid;gap:20px;min-width:0;color:var(--ink)}
html:root .onboarding-client-shell .onboarding-welcome{align-items:center;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft);gap:16px}
html:root .onboarding-client-shell .onboarding-welcome h3{font-size:24px;line-height:1.25;margin:7px 0 8px}
html:root .onboarding-client-shell .onboarding-welcome p{font-size:13px;line-height:1.65;max-width:620px}
html:root .onboarding-client-shell .eyebrow{font-size:10px;letter-spacing:.12em}
html:root .onboarding-client-shell .onboarding-progress{margin:0;gap:10px}
html:root .onboarding-client-shell .onboarding-progress>div{font-size:12px}
html:root .onboarding-client-shell .onboarding-task-list{gap:9px}
html:root .onboarding-client-shell .onboarding-task{grid-template-columns:38px minmax(0,1fr) auto;gap:14px;padding:15px 16px;background:var(--surface);box-shadow:none;min-width:0}
html:root .onboarding-client-shell .onboarding-task-state{font-size:13px;font-weight:700;color:var(--muted);background:var(--surface-soft);border:1px solid var(--line)}
html:root .onboarding-client-shell .onboarding-task.is-complete .onboarding-task-state{color:var(--ink);background:var(--surface-soft);border-color:var(--line)}
html:root .onboarding-client-shell .onboarding-task-state :is(svg,img){width:18px;height:18px;padding:0;background:none}
html:root .onboarding-client-shell .onboarding-task b{font-size:14px;line-height:1.4}
html:root .onboarding-client-shell .onboarding-task small{font-size:11px;line-height:1.5;margin-top:3px}
html:root .onboarding-next{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
html:root .onboarding-next>.button{min-height:46px;gap:24px;padding-inline:22px}
html:root .onboarding-next small,html:root .onboarding-small-note{font-size:11px;line-height:1.6;color:var(--muted);margin:0}
html:root .onboarding-client-shell .onboarding-required-note{margin:0;font-size:11px;line-height:1.55;background:var(--surface-soft);border:1px solid var(--line);color:var(--muted)}
html:root .onboarding-step-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
html:root .onboarding-step-heading>span{font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--muted)}
html:root .onboarding-step-intro h3{font-size:22px;line-height:1.3;margin:0 0 7px}
html:root .onboarding-step-intro p{font-size:13px;line-height:1.65;color:var(--muted);margin:0;white-space:pre-line}
html:root .onboarding-panel{display:grid;gap:14px;align-content:start;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);min-width:0}
html:root .onboarding-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
html:root .onboarding-panel-heading>span{font-size:10px;font-weight:700;letter-spacing:.1em;color:var(--muted)}
html:root .onboarding-panel-heading>small{font-size:10px;color:var(--muted)}
html:root .onboarding-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
html:root .onboarding-agreement-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start}
html:root .onboarding-reading .legal-document{height:420px;max-height:420px;margin:0;border:0;padding:0 10px 0 0;background:transparent!important;box-shadow:none!important;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
html:root .onboarding-client-shell .field,html:root .parq-settings-shell .field{font-size:12px;gap:7px;min-width:0;margin:0}
html:root :is(.onboarding-client-shell,.parq-settings-shell) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:14px;padding:10px 12px;min-height:44px}
html:root .onboarding-client-shell .signature-pad{margin:0;border:1px dashed #8997a7;border-radius:10px;background:#fff}
html:root .onboarding-client-shell .signature-pad svg{height:135px}
html:root .onboarding-client-shell .signature-pad .button{min-height:30px;padding:5px 9px;font-size:10px}
html:root .onboarding-client-shell .signature-status{font-size:10px;line-height:1.5;margin:0}
html:root :is(.onboarding-client-shell,.parq-settings-shell) .legal-accept{display:flex;align-items:flex-start;gap:10px;padding:10px 0;margin:0;font-size:12px;line-height:1.6;font-weight:500}
html:root :is(.onboarding-client-shell,.parq-settings-shell) .legal-accept input{position:static;appearance:auto!important;-webkit-appearance:checkbox!important;width:20px!important;height:20px!important;min-width:20px;flex:0 0 20px;min-height:20px!important;max-height:20px!important;margin:0!important;margin-top:1px!important;padding:0!important;accent-color:var(--accent,#708dab)}
html:root :is(.onboarding-client-shell,.parq-settings-shell) .legal-accept small{display:block;font-size:11px;color:var(--muted)}
html:root :is(.onboarding-client-shell,.parq-settings-shell) .modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:16px 0 0;border-top:1px solid var(--line)}
html:root :is(.onboarding-client-shell,.parq-settings-shell) .modal-actions>.button{width:100%;min-height:46px;justify-content:center}
html:root .parq-question-list{display:grid;gap:10px;min-width:0}
html:root .parq-question{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0;margin:0;background:var(--surface)}
html:root .parq-question .parq-question-title{margin:0;display:flex;align-items:flex-start;gap:12px;width:auto;max-width:calc(100% - 150px);font-size:13px;font-weight:550;line-height:1.6;padding:0;color:var(--ink);min-width:0}
html:root .parq-question .parq-question-title>span{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:7px;background:var(--surface-soft);color:var(--muted);font-size:11px}
html:root .parq-answer-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;flex:0 0 128px}
html:root .parq-answer-options label{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:6px 8px;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:12px;cursor:pointer}
html:root .parq-answer-options input{position:static;appearance:auto!important;-webkit-appearance:radio!important;width:14px!important;height:14px!important;min-width:14px;min-height:14px!important;max-height:14px!important;margin:0!important;padding:0!important;accent-color:var(--accent,#708dab)}
html:root .parq-answer-options label:has(input:checked){background:var(--surface-soft);border-color:var(--accent,#708dab);box-shadow:inset 0 0 0 1px var(--accent,#708dab)}
html:root .parq-answer-options label:has(input:focus-visible){outline:2px solid var(--accent,#708dab);outline-offset:3px}
html:root .parq-guidance{padding:13px 15px;border:1px solid var(--line);border-left:3px solid var(--accent,#708dab);border-radius:10px;background:var(--surface-soft);color:var(--ink);font-size:12px;line-height:1.7;white-space:pre-line}
html:root .parq-guidance[hidden]{display:none!important}
html:root .parq-settings-options{display:grid;grid-template-columns:1fr 1fr;gap:18px}
html:root .parq-editor-question{display:grid;grid-template-columns:24px minmax(0,1fr) 40px;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
html:root .parq-editor-question:last-child{border-bottom:0}
html:root .parq-editor-number{font-size:12px;color:var(--muted)}
html:root .parq-editor-question>.button{min-width:40px;width:40px;min-height:40px;padding:7px}
html:root .parq-editor-question textarea{min-height:64px}
html:root .parq-response-list{display:grid;gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
html:root .parq-response-list>div{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:start;gap:15px;padding:12px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6}
html:root .parq-response-list>div:last-child{border-bottom:0}
html:root .parq-yes{color:var(--accent,#708dab)}
html:root .parq-client-notes{font-size:12px;line-height:1.6;white-space:pre-line}
html:root .parq-submission .signed-agreement-body{display:grid;gap:14px}
html:root .parq-submission .signed-signature img{max-width:100%;background:#fff;border-radius:8px}
html:root .client-documents-shell{display:grid;gap:12px}
html:root .client-documents-shell>h3{font-size:14px;margin:6px 0}
html:root[data-theme=midnight] :is(.onboarding-panel,.parq-question,.parq-answer-options label){background:var(--night-surface);border-color:var(--night-border);color:var(--night-ink)}
html:root[data-theme=midnight] :is(.onboarding-welcome,.parq-guidance){background:var(--night-raised)!important;border-color:var(--night-border);color:var(--night-ink)}
@media(max-width:700px){
 html:root dialog.onboarding-dialog{width:100%;max-width:100%}
 html:root .onboarding-client-shell,html:root .parq-settings-shell{gap:16px}
 html:root .onboarding-client-shell .onboarding-welcome{padding:14px;gap:12px;align-items:flex-start}
 html:root .onboarding-client-shell .onboarding-welcome h3{font-size:20px}
 html:root .onboarding-client-shell .onboarding-welcome p{font-size:12px}
 html:root .onboarding-client-shell .onboarding-task{grid-template-columns:30px minmax(0,1fr) 20px;padding:13px 12px;gap:10px}
 html:root .onboarding-client-shell .onboarding-task-state{width:28px;height:28px}
 html:root .onboarding-client-shell .onboarding-task>span:last-child{grid-column:auto;font-size:0}
 html:root .onboarding-client-shell .onboarding-task>span:last-child:after{content:'→';font-size:14px}
 html:root .onboarding-client-shell .onboarding-task.is-complete>span:last-child:after{content:'✓'}
 html:root .onboarding-next{display:grid;gap:8px;text-align:center}
 html:root .onboarding-step-intro h3{font-size:20px}
 html:root .onboarding-panel{padding:14px}
 html:root .onboarding-profile-grid,html:root .onboarding-agreement-grid,html:root .parq-settings-options{grid-template-columns:1fr}
 html:root .onboarding-reading .legal-document{height:auto;max-height:36dvh;font-size:12px;padding-right:4px}
 html:root :is(.onboarding-client-shell,.parq-settings-shell) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px!important}
 html:root .parq-question{display:grid;gap:12px;padding:13px}
 html:root .parq-question .parq-question-title{max-width:100%;width:100%;font-size:12px}
 html:root .parq-answer-options{width:100%;margin-top:8px}
 html:root :is(.onboarding-client-shell,.parq-settings-shell) .modal-actions>.button{font-size:12px;padding-inline:8px}
}

html:root dialog:has(.parq-settings-shell){width:min(900px,calc(100vw - 40px));max-width:900px}
@media(max-width:700px){html:root dialog:has(.parq-settings-shell){width:100%;max-width:100%}}

/* Onboarding navigation: keep each arrow beside its card, never below its text. */
html:root .onboarding-client-shell .onboarding-task{display:grid;align-items:center;grid-template-columns:34px minmax(0,1fr) 24px;gap:12px;text-align:left;color:var(--ink);width:100%;box-sizing:border-box}
html:root .onboarding-client-shell .onboarding-task-state{display:grid;place-items:center;width:32px;height:32px;min-width:0;margin:0;padding:0;color:var(--ink);background:var(--surface-soft);border:1px solid var(--line);border-radius:50%;font-size:13px;font-weight:700;box-sizing:border-box}
html:root .onboarding-client-shell .onboarding-task>span:nth-child(2){display:grid;min-width:0;gap:4px}
html:root .onboarding-client-shell .onboarding-task .onboarding-task-trailing{display:grid;place-items:center;grid-column:3;grid-row:1;align-self:center;width:24px;height:24px;color:var(--muted);font-size:0}
html:root .onboarding-client-shell .onboarding-task .onboarding-task-trailing:after{content:none}
html:root .onboarding-client-shell .onboarding-task .onboarding-task-trailing svg{display:block;width:20px;height:20px;max-width:none;margin:0;padding:0;background:none}
html:root .onboarding-client-shell .onboarding-task.is-complete .onboarding-task-trailing{visibility:hidden}
html:root .onboarding-client-shell .onboarding-task.is-complete .onboarding-task-state{background:var(--accent-soft,var(--surface-soft));color:var(--ink);border-color:var(--line)}
html:root .onboarding-client-shell .onboarding-next{display:grid;grid-template-columns:1fr;gap:9px;margin-top:4px;text-align:center}
html:root .onboarding-client-shell .onboarding-next>.button{display:flex;justify-content:center;align-items:center;width:100%;min-height:48px;margin:0;padding:12px 18px;border-radius:14px;gap:14px;font-size:14px;font-weight:700;box-sizing:border-box;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 4px 14px #00000008}
html:root .onboarding-client-shell .onboarding-next>.button>span{display:grid;place-items:center;font-size:20px;line-height:1}
html:root .onboarding-client-shell .onboarding-next>small{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin:0}
@media(max-width:700px){
 html:root .onboarding-client-shell .onboarding-task{padding:14px 12px;grid-template-columns:32px minmax(0,1fr) 24px;gap:10px}
 html:root .onboarding-client-shell .onboarding-task b{font-size:14px;line-height:1.4}
 html:root .onboarding-client-shell .onboarding-task small{font-size:12px;line-height:1.5}
 html:root .onboarding-client-shell .onboarding-welcome{display:block}
 html:root .onboarding-client-shell .onboarding-mark{display:none}
 html:root .onboarding-client-shell .onboarding-required-note{font-size:11px;padding:12px;margin:0}
}

html:root .onboarding-client-shell .onboarding-task>.onboarding-task-state{grid-column:1;grid-row:1}
html:root .onboarding-client-shell .onboarding-task>span:nth-child(2){grid-column:2;grid-row:1}

html:root .onboarding-client-shell .onboarding-task>span.onboarding-task-trailing:last-child:after{content:none!important;display:none}
 /* Role-aware in-app Help Center. */
html:root .help-center{display:grid;gap:24px;min-width:0;color:var(--ink)}
html:root .help-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:22px;padding:28px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}
html:root .help-hero h1{font-size:30px;line-height:1.2;margin:8px 0 10px;color:var(--ink)}
html:root .help-hero p{font-size:14px;line-height:1.6;color:var(--muted);margin:0;max-width:650px}
html:root .help-audiences{display:flex;gap:6px;padding:5px;border-radius:13px;background:var(--surface-soft);border:1px solid var(--line)}
html:root .help-audiences>.button{padding:9px 12px;min-height:40px;box-shadow:none;font-size:12px;border-radius:9px;color:var(--muted);background:transparent;border:1px solid transparent}
html:root .help-audiences>.button[aria-pressed=true]{background:var(--surface);color:var(--ink);border-color:var(--line)}
html:root .help-audience-label{font-size:10px;font-weight:750;letter-spacing:.12em;color:var(--muted);padding:10px;border-radius:10px;background:var(--surface-soft)}
html:root .help-search{display:flex;align-items:center;gap:12px;grid-column:1/-1;margin:0;padding:0 16px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft);min-width:0;min-height:52px}
html:root .help-search>svg,html:root .help-search>img{width:21px;height:21px;flex:none;object-fit:contain}
html:root .help-search input{display:block;flex:1;min-width:0;width:100%;margin:0;padding:14px 0;min-height:50px;font-size:16px;color:var(--ink);border:0;background:transparent;box-shadow:none}
html:root .help-search input:focus{outline:none}
html:root .help-search:focus-within{outline:2px solid var(--accent);outline-offset:2px}
html:root .help-search-clear{display:grid;place-items:center;flex:none;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--surface);font-size:22px}
html:root .help-search-clear[hidden]{display:none!important}
html:root .help-layout{display:grid;grid-template-columns:215px minmax(0,1fr);align-items:start;gap:24px}
html:root .help-categories{display:grid;gap:5px;padding:8px;border:1px solid var(--line);border-radius:16px;background:var(--surface);min-width:0}
html:root .help-categories>button{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 10px;min-height:44px;min-width:0;text-align:left;font:inherit;font-size:12px;font-weight:650;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer}
html:root .help-categories>button[aria-pressed=true]{background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
html:root .help-categories small{font-size:10px;padding:3px 6px;min-width:24px;text-align:center;border-radius:6px;background:var(--surface-soft)}
html:root .help-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
html:root .help-results-heading h2,html:root .help-related h2{font-size:17px;line-height:1.4;margin:0;color:var(--ink)}
html:root .help-results-heading>span{font-size:11px;color:var(--muted);white-space:nowrap}
html:root .help-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html:root .help-topic{display:grid;grid-template-columns:36px minmax(0,1fr) 18px;align-items:start;gap:12px;padding:18px;border:1px solid var(--line);border-radius:16px;text-decoration:none;background:var(--surface);color:var(--ink);min-width:0;transition:border-color .15s,background .15s}
html:root .help-topic:hover{border-color:var(--accent);background:var(--surface-soft)}
html:root .help-topic>span:nth-child(2){display:grid;gap:6px;min-width:0}
html:root .help-topic small{font-size:10px;font-weight:650;color:var(--muted)}
html:root .help-topic strong{font-size:14px;line-height:1.45;color:var(--ink)}
html:root .help-topic>span:nth-child(2)>span{font-size:11px;line-height:1.6;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html:root .help-topic-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--surface-soft);color:var(--ink);flex:none}
html:root .help-topic-icon :is(svg,img){width:20px;height:20px;object-fit:contain;padding:0;margin:0;background:none}
html:root .help-chevron{font-size:20px;color:var(--muted);align-self:center}
html:root .help-empty{padding:30px;border:1px dashed var(--line);border-radius:16px;text-align:center;background:var(--surface)}
html:root .help-empty h3{font-size:17px}
html:root .help-empty p{font-size:13px;color:var(--muted)}
html:root .help-reader-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}
html:root .help-reader-bar>span{font-size:11px;color:var(--muted)}
html:root .help-reader-bar .button{min-height:44px;padding:10px 16px;font-size:13px}
html:root .help-article{padding:30px;border:1px solid var(--line);border-radius:22px;background:var(--surface);max-width:900px;width:100%;box-sizing:border-box}
html:root .help-article-heading{display:flex;align-items:center;gap:16px;padding-bottom:22px;border-bottom:1px solid var(--line)}
html:root .help-article-heading h1{font-size:28px;line-height:1.3;margin:7px 0 0;color:var(--ink)}
html:root .help-steps{list-style:none;margin:24px 0;padding:0;display:grid;gap:22px}
html:root .help-steps li{display:flex;align-items:flex-start;gap:14px}
html:root .help-steps li>span{display:grid;place-items:center;width:30px;height:30px;flex:none;background:var(--surface-soft);border:1px solid var(--line);border-radius:50%;font-size:12px;font-weight:750}
html:root .help-steps p{font-size:14px;line-height:1.8;margin:2px 0;color:var(--ink)}
html:root .help-important{padding:16px 18px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:12px;background:var(--surface-soft)}
html:root .help-important strong{font-size:12px}
html:root .help-important p{font-size:12px;line-height:1.75;color:var(--muted);margin:6px 0 0}
html:root .help-article-action{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px}
html:root .help-article-action>.button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:12px 18px;font-size:13px;background:var(--surface);border:1px solid var(--line);color:var(--ink);border-radius:12px}
html:root .help-article-action>.button :is(svg,img){width:20px;height:20px;object-fit:contain}
html:root .help-article-action>small{font-size:11px;line-height:1.5;color:var(--muted)}
html:root .help-related{display:grid;gap:14px}
html:root .help-contact{display:flex;align-items:flex-start;gap:14px;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}
html:root .help-contact>div{flex:1;min-width:0}
html:root .help-contact h2{font-size:15px;margin:0 0 6px;color:var(--ink)}
html:root .help-contact p{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 10px;max-width:700px}
html:root .help-contact small{font-size:10px;color:var(--muted)}
html:root .help-contact>.button{flex:none;font-size:12px;min-height:44px;background:var(--surface);color:var(--ink);border-color:var(--line)}
html:root .help-center :is(a,button):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1100px){html:root .help-topic-grid{grid-template-columns:1fr}}
@media(max-width:700px){
 html:root .help-center{gap:18px}
 html:root .help-hero{grid-template-columns:1fr;padding:20px 16px;gap:16px}
 html:root .help-hero h1{font-size:25px}
 html:root .help-hero p{font-size:12px}
 html:root .help-audiences{width:100%;box-sizing:border-box}
 html:root .help-audiences>.button{flex:1;min-width:0;font-size:12px}
 html:root .help-audience-label{justify-self:start}
 html:root .help-search{padding-inline:12px}
 html:root .help-search input{font-size:16px}
 html:root .help-layout{grid-template-columns:1fr;gap:18px}
 html:root .help-categories{display:flex;flex-direction:row;align-items:center;overflow-x:auto;gap:6px;padding:6px;scrollbar-width:thin}
 html:root .help-categories>button{flex:none;padding:10px;font-size:11px;white-space:nowrap}
 html:root .help-topic{padding:15px 12px;gap:10px}
 html:root .help-reader-bar{align-items:flex-start;flex-direction:column}
 html:root .help-article{padding:20px 16px}
 html:root .help-article-heading{gap:12px;align-items:flex-start}
 html:root .help-article-heading h1{font-size:22px}
 html:root .help-steps p{font-size:13px;line-height:1.75}
 html:root .help-steps li{gap:11px}
 html:root .help-article-action{display:grid;gap:10px}
 html:root .help-article-action>.button{width:100%}
 html:root .help-contact{flex-wrap:wrap;padding:18px 14px}
 html:root .help-contact>.button{width:100%}
}
@media(max-width:900px){html:root .mobile-more-grid a[data-id=help]{grid-column:1/-1;min-height:60px}}
