/* Shared collection theme. Native questions, actions, states and report graphics stay intact.
   Adapters are deliberately limited to actual sponsor/participant collection roots. */
@media screen {
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state)) {
    --fa-ink:#172321; --fa-muted:#65716e; --fa-line:#d9dfdc;
    --fa-slate:#434f5a; --fa-dark:#36414b; --fa-hover:#586774;
    --fa-canvas:#f3f2ee; --fa-paper:#fff; --fa-soft:#f1f4f5; --fa-gold:#8b6b00;
    --ink:var(--fa-ink); --muted:var(--fa-muted); --line:var(--fa-line);
    --forest:var(--fa-slate); --teal:var(--fa-hover); --cream:var(--fa-canvas);
    --paper:var(--fa-paper); --canvas:var(--fa-canvas);
    color:var(--fa-ink); background:var(--fa-canvas);
    font:16px/1.6 'Segoe UI',Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
  }
  body:has(:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell>.fa-survey-header,.participantPage,.appShell .surveyGrid,#assessmentShell:not(.is-hidden)) {
    background:#f3f2ee;
  }
  :is(.fa-aar-sponsor,.fa-aar-participant) .question-number,.account-opening .question-number,body.fa-table-read-header-active .field .question-number {color:#8b6b00;font-size:12px;font-weight:760;letter-spacing:.07em;margin-right:8px;}
  /* A shared reading width and gutter; charts and horizontally scrollable tables keep theirs. */
  :is(.fa-aar-sponsor,.fa-aar-participant)>main,.dsModule .fa-sponsor-shell .content,.dsModule .entryShell:has(>.fa-survey-header)>.entryMain,
  body:is(.fa-table-read-header-active,.report-working:has(.shell)) .workspace,body:is(.fa-table-read-header-active,.report-working:has(.shell)) .account-opening {
    width:100%;max-width:1004px;margin:0 auto;padding:40px 32px 64px;min-width:0;
  }
  #assessmentShell>.workspace {width:calc(100% - 64px);max-width:940px;padding:40px 0 64px;}
  .dsModule .entryShell:has(>.fa-survey-header) .entryForm,:is(.fa-aar-sponsor,.fa-aar-participant) .entryCard,
  body:is(.fa-table-read-header-active,.report-working:has(.shell)) .account-opening>.card {
    max-width:none;margin:0 0 28px;
  }
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.entryCard,.entryForm,.surveyBody,.card,.review-card,.completion) {
    border:1px solid var(--fa-line);border-radius:10px;background:var(--fa-paper);padding:30px 32px;
    box-shadow:none;min-width:0;
  }
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  h1:not(.fa-survey-header h1,.sidebar h1) {
    font:500 clamp(28px,3.2vw,36px)/1.2 Georgia,'Times New Roman',serif;
    letter-spacing:-.025em;color:var(--fa-ink);margin:0 0 18px;
  }
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state)) h2 {
    font:500 28px/1.25 Georgia,'Times New Roman',serif;letter-spacing:-.02em;color:var(--fa-ink);margin:0 0 18px;
  }
  #assessmentShell .workspace-head h2 {font-size:clamp(28px,3.2vw,36px);}
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.question h3,.field>label,.question-label,.questionLabel,.questionTitle) {
    font:650 17px/1.5 'Segoe UI',Arial,sans-serif;letter-spacing:0;color:var(--fa-ink);
  }
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.help,.smallNote,.question>p,.field>p,.section-deck,.entryHint) {
    font:400 14px/1.6 'Segoe UI',Arial,sans-serif;color:var(--fa-muted);
  }
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,body:is(.fa-table-read-header-active,.report-working:has(.shell)))
  :is(.mini-label,.entryCard>form>label,.entryForm>form>label,#table-read-opening>label) {font:650 15px/1.5 'Segoe UI',Arial,sans-serif;}
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.eyebrow,.entry-kicker,.question-number) {
    color:var(--fa-gold);font:700 12px/1.5 'Segoe UI',Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;
  }
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(input:not([type]),input[type=text],input[type=email],input[type=date],input[type=number],input[type=tel],input[type=url],textarea,select) {
    box-sizing:border-box;display:block;width:100%;min-width:0;min-height:46px;padding:12px 14px;
    border:1px solid #cfd7d3;border-radius:7px;background:#fff;color:var(--fa-ink);
    font:400 16px/1.5 'Segoe UI',Arial,sans-serif;outline-offset:2px;
  }
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state)) textarea:not([hidden]) {
    min-height:112px;resize:vertical;
  }
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(input[type=radio],input[type=checkbox]) {accent-color:var(--fa-slate);}
  :is(:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.choice input,.introChoices input,.pathway input,.check input) {
    width:19px;height:19px;min-height:19px;flex:0 0 19px;padding:0;
  }
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.primary,.secondary,.primary-button,.back-button,.button:not(.link)) {
    display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;max-width:100%;
    padding:10px 18px;border:1px solid #c7cfcb;border-radius:7px;box-shadow:none;
    font:650 15px/1.5 'Segoe UI',Arial,sans-serif;text-decoration:none;white-space:normal;text-align:center;
  }
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.primary,.primary-button,.button.dark) {background:var(--fa-slate);border-color:var(--fa-slate);color:#fff;}
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.primary,.primary-button,.button.dark):hover:not(:disabled) {background:var(--fa-hover);border-color:var(--fa-hover);}
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.secondary,.back-button,.button:not(.primary,.dark,.link)) {background:transparent;color:var(--fa-dark);}
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.textButton,.button.link) {color:var(--fa-slate);font:500 14px/1.5 'Segoe UI',Arial,sans-serif;text-underline-offset:3px;}
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.primary,.secondary,.primary-button,.back-button) >svg {width:18px;height:18px;flex:none;}
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(button,input,select,textarea,a,summary):focus-visible {outline:3px solid var(--fa-hover);outline-offset:3px;box-shadow:none;}
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(button,input,textarea,select):disabled {opacity:.5;cursor:not-allowed;}
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.choices .choice,.introChoices label,.pathway) {border:1px solid var(--fa-line);border-radius:7px;padding:14px 16px;background:#fff;}
  :is(:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.choices .choice,.introChoices label,.pathway):has(input:checked) {border-color:var(--fa-hover);background:var(--fa-soft);box-shadow:inset 3px 0 var(--fa-hover);}
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
  :is(.error,.message.error,.validation) {background:#FBE9E7;color:#243C36;border-color:#d7aaa4;border-radius:7px;}
  :is(.fa-aar-sponsor,.fa-aar-participant) .checkPanel {background:#FFF3CD;color:#243C36;border-left-color:#b58a12;}
  :is(.fa-aar-sponsor,.fa-aar-participant) .lead {font-size:16px;line-height:1.6;max-width:760px;}
  :is(.fa-aar-sponsor,.fa-aar-participant) .hero {padding:0 0 8px;}
  :is(.fa-aar-sponsor,.fa-aar-participant) .purposeGrid {margin:24px 0 30px;padding-top:24px;}
  :is(.fa-aar-sponsor,.fa-aar-participant) .entryCard {margin-top:24px;}
  :is(.fa-aar-sponsor,.fa-aar-participant) .entryCard>form>label {margin-top:20px;}
  .dsModule .entryShell:has(>.fa-survey-header) .entryForm>p {max-width:76ch;}
  .dsModule .entryShell:has(>.fa-survey-header) .entryForm .eyebrow {margin-top:0;}
  .dsModule .entryShell:has(>.fa-survey-header) .entryForm form {margin-top:24px;}
  :is(:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,body:is(.fa-table-read-header-active,.report-working:has(.shell)))
  :is(.surveyActions,.actions,.form-footer) {gap:16px;flex-wrap:wrap;}
  /* Participant brand bars use the same small wordmark and slate; their role-specific navigation stays native. */
  .appShell:has(.surveyGrid):not(:is(.fa-aar-sponsor,.fa-aar-participant))>.brandBar {
    background:#36414b;border-bottom:1px solid #ffffff1a;min-height:68px;padding:12px 32px;
  }
  .appShell:has(.surveyGrid):not(:is(.fa-aar-sponsor,.fa-aar-participant))>.brandBar img {content:url('/assessment/assets/foundations-advisory-logo.png');width:224px;height:40px;object-fit:contain;}
  body:has(#recipient-save-state)>.brand-header {
    max-width:none;background:#36414b;color:#fff;min-height:68px;padding:12px 32px;border-bottom:1px solid #ffffff1a;
  }
  body:has(#recipient-save-state)>.brand-header img {content:url('/assessment/assets/foundations-advisory-logo.png');width:224px;height:40px;object-fit:contain;}
  body:has(#recipient-save-state)>.brand-header a {color:#fff;}
  body.report-working:has(.shell)>.brand-header {height:auto;min-height:68px;padding:12px 32px;background:#36414b;gap:20px;}
  body.report-working:has(.shell)>.brand-header img {width:224px;height:40px;max-height:40px;object-fit:contain;filter:none;content:url('/assessment/assets/foundations-advisory-logo.png');}
  body.report-working:has(.shell)>.brand-header .header-label {font-size:20px;}
  body:has(#recipient-save-state)>main {max-width:1004px;margin:40px auto 64px;padding:0 32px;}
  .dsModule .participantPage {max-width:none;padding:0;}
  .dsModule .participantPage>header {
    min-height:68px;margin:0;padding:12px 32px;background:#36414b;color:#fff;border-bottom:1px solid #ffffff1a;
  }
  .dsModule .participantPage>header .participantBrand img {
    content:url('/assessment/assets/foundations-advisory-logo.png');width:224px;height:40px;object-fit:contain;
  }
  .dsModule .participantPage>header .participantBrand span {display:none;}
  .dsModule .participantPage>.coachedSurvey {max-width:1004px;margin:40px auto 64px;padding:0 32px;}
  /* Vector retains its native DOM and handlers, using the same horizontal section chrome on desktop too. */
  #assessmentShell {display:block;}
  #assessmentShell>.sidebar {padding:28px 34px 24px;background:#434f5a;}
  #assessmentShell>.sidebar h1 {color:#fff;font:500 30px/1.2 Georgia,'Times New Roman',serif;letter-spacing:-.025em;margin:10px 0 26px;}
  #assessmentShell>.sidebar :is(.sidebar-intro,.sidebar-note) {display:none;}
  #assessmentShell .steps {display:flex;flex-direction:row;gap:5px;margin:0;}
  #assessmentShell .step {flex:1;display:block;min-height:0;min-width:25px;text-align:center;}
  #assessmentShell .step-dot {margin:0 auto;background:#434f5a;}
  #assessmentShell .step.active .step-dot {background:#f6c636;}
  #assessmentShell .step.done .step-dot {background:#4c8d7e;}
  #assessmentShell .step:not(:last-child)::after {top:12px;left:calc(50% + 13px);right:calc(-50% + 8px);bottom:auto;width:auto;height:1px;}
  #assessmentShell .step-copy {display:block;min-height:45px;padding-top:8px;font-size:12px;line-height:1.35;}
  #assessmentShell .step-copy small {display:none;}
  body:has(#assessmentShell:not(.is-hidden))>.topbar .brand {min-width:0;flex:0 1 224px;}
  body:has(#assessmentShell:not(.is-hidden))>.topbar .brand img {width:224px;max-width:100%;height:40px;}
  body:has(#assessmentShell:not(.is-hidden))>.topbar .top-actions {flex:none;gap:16px;}
  body:has(#assessmentShell:not(.is-hidden)) #saveExit {font-size:15px;line-height:1.4;min-height:44px;}
  /* Keep native hidden panels, mail fields, and locked actions hidden. */
  :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state)) [hidden] {display:none!important;}
  /* Header geometry remains shared, with readable disabled progress and aligned two-line captions. */
  .fa-survey-header .fa-survey-step:disabled {opacity:.5;cursor:not-allowed;}
  .fa-survey-header .fa-survey-step-label {min-height:33px;}
  .fa-survey-header .fa-survey-topbar .fa-survey-exit:focus-visible {outline:3px solid #f6c636;outline-offset:4px;}
  @media(max-width:820px) {
    :is(.fa-aar-sponsor,.fa-aar-participant)>main,.dsModule .fa-sponsor-shell .content,.dsModule .entryShell:has(>.fa-survey-header)>.entryMain,
    body:is(.fa-table-read-header-active,.report-working:has(.shell)) .workspace,body:is(.fa-table-read-header-active,.report-working:has(.shell)) .account-opening {padding:28px 20px 48px;}
    #assessmentShell>.workspace {width:calc(100% - 40px);padding:28px 0 48px;}
    :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state))
    :is(.entryCard,.entryForm,.surveyBody,.card,.review-card,.completion) {padding:24px 20px;}
    :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,.appShell:has(.surveyGrid),body:is(.fa-table-read-header-active,.report-working:has(.shell)),body:has(#recipient-save-state)) h2 {font-size:25px;}
    .fa-survey-header .fa-survey-step-label {min-height:0;}
    #assessmentShell>.sidebar {padding:24px 20px 19px;}
    #assessmentShell>.sidebar h1 {font-size:25px;margin-bottom:27px;}
    #assessmentShell .step-copy {display:none;}
    .dsModule .participantPage>header {padding:12px 18px;}
    .dsModule .participantPage>.coachedSurvey {padding:0 20px;margin-top:28px;}
    .appShell:has(.surveyGrid):not(:is(.fa-aar-sponsor,.fa-aar-participant))>.brandBar,body:has(#recipient-save-state)>.brand-header {padding:12px 18px;gap:14px;}
    body:has(#recipient-save-state)>main {padding:0 20px;margin-top:28px;}
    body.report-working:has(.shell)>.brand-header {padding:12px 18px;}
  }
  @media(prefers-reduced-motion:reduce) {
    :is(#assessmentShell,:is(.fa-aar-sponsor,.fa-aar-participant),.fa-sponsor-shell,.entryShell:has(>.fa-survey-header),.participantPage,body:is(.fa-table-read-header-active,.report-working:has(.shell))) * {transition:none;scroll-behavior:auto;}
  }
}
