/* A calm, document-like decision surface in Ghostlight's signature palette. */
.decision-aid-page { --col: 1240px; }
.decision-aid-page .foot { margin-top: 0; }
.aid-shell { background: radial-gradient(circle at 82% 7%, rgba(var(--argb), 0.07), transparent 28rem), var(--bg); }
.aid-shell *, .aid-shell *::before, .aid-shell *::after { box-sizing: border-box; }
.aid-shell button, .aid-shell input, .aid-shell select { font: inherit; }
.aid-shell button:focus-visible, .aid-shell input:focus-visible, .aid-shell select:focus-visible, .aid-shell summary:focus-visible, .aid-shell [tabindex="0"]:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }
.aid-hero { padding: 54px 0 52px; border-bottom: 1px solid rgba(var(--argb), 0.13); background: linear-gradient(180deg, rgba(var(--argb), 0.025), transparent); }
.aid-back { display: inline-block; margin-bottom: 36px; color: var(--al); font-size: 13px; }
.aid-hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr); gap: clamp(36px, 7vw, 86px); align-items: end; }
.aid-eyebrow { color: var(--a); }
.aid-hero h1 { max-width: 760px; margin: 13px 0 23px; color: var(--ink); font-size: clamp(40px, 6.2vw, 70px); font-weight: 300; line-height: 1.03; letter-spacing: -0.035em; }
.aid-hero p { max-width: 760px; margin: 0 0 16px; color: var(--ink-3); font-size: 15px; line-height: 1.75; }
.aid-hero .aid-lede { color: var(--ink-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.aid-promise { position: relative; overflow: hidden; padding: 27px 27px 25px; border: 1px solid rgba(var(--argb), 0.23); border-radius: 16px; background: linear-gradient(145deg, rgba(var(--argb), 0.085), rgba(255,255,255,0.015)); }
.aid-promise-mark { position: absolute; top: -18px; right: 8px; color: rgba(var(--argb), 0.065); font: 700 96px/1 var(--mono); letter-spacing: -0.1em; }
.aid-promise p { position: relative; margin: 0 0 13px; color: var(--ink-2); font-size: 14px; line-height: 1.62; }
.aid-promise strong { color: var(--al); font-weight: 600; }
.aid-promise small { position: relative; display: block; padding-top: 14px; border-top: 1px solid rgba(var(--argb), 0.14); color: var(--muted); font-size: 11.5px; line-height: 1.58; }
.aid-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.aid-toolbar .btn { min-height: 43px; cursor: pointer; }
.aid-toolbar .btn-primary { background: var(--a); }
.aid-import { position: relative; cursor: pointer; }
.aid-import input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.aid-restored { max-width: 780px !important; margin: 22px 0 0 !important; padding: 13px 16px; border-left: 2px solid var(--a); background: rgba(var(--argb), 0.05); color: var(--ink-2) !important; font-size: 13px !important; }

.aid-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(42px, 7vw, 88px); align-items: start; padding-top: 54px; padding-bottom: 88px; }
.aid-rail { min-width: 0; }
.aid-rail-inner { position: sticky; top: 100px; }
.aid-rail-context span, .aid-rail-summary span { display: block; margin-bottom: 5px; color: var(--muted); font: 600 9.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.aid-rail-context strong { display: block; margin-bottom: 20px; color: var(--ink); font-size: 14px; font-weight: 550; line-height: 1.4; }
.aid-rail nav { display: grid; padding: 9px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.aid-rail nav a { position: relative; padding: 7px 5px 7px 17px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.aid-rail nav a::before { content: ''; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); transition: background 150ms ease, box-shadow 150ms ease; }
.aid-rail nav a[aria-current="true"] { color: var(--al); }
.aid-rail nav a[aria-current="true"]::before { background: var(--a); box-shadow: 0 0 10px rgba(var(--argb), 0.65); }
.aid-rail-summary { margin-top: 22px; }
.aid-rail-summary p { margin: 0 0 17px; color: var(--ink-3); font-size: 11.5px; line-height: 1.5; }
.aid-rail-summary #rail-direction { color: var(--al); }

.aid-form { min-width: 0; }
.aid-section { min-width: 0; padding: 0 0 72px; scroll-margin-top: 94px; }
.aid-section + .aid-section { padding-top: 66px; border-top: 1px solid var(--line-2); }
.aid-section:focus { outline: none; }
.aid-section-head { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 20px; margin-bottom: 28px; }
.aid-step { padding-top: 7px; color: rgba(var(--argb), 0.68); font: 500 11px/1 var(--mono); }
.aid-section-head .eyebrow { color: var(--a); }
.aid-section h2 { margin: 8px 0 10px; color: var(--ink); font-size: clamp(28px, 4vw, 40px); font-weight: 350; line-height: 1.16; letter-spacing: -0.025em; }
.aid-section-head p { max-width: 720px; margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.72; }

.interest-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.interest-group { min-width: 0; margin: 0; padding: 17px; border: 1px solid rgba(var(--argb), 0.14); border-radius: 13px; background: rgba(255,255,255,0.012); }
.interest-group legend, .mix-fieldset legend, .compact-fieldset legend, .cost-groups legend { padding: 0 7px; color: var(--ink-2); font-size: 12px; font-weight: 650; letter-spacing: 0.04em; }
.interest-options { display: grid; gap: 7px; }
.choice-chip { display: block; cursor: pointer; }
.choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chip span { display: block; min-height: 49px; padding: 10px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(255,255,255,0.015); transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.choice-chip strong, .choice-chip small { display: block; }
.choice-chip strong { color: var(--ink-2); font-size: 11.5px; font-weight: 570; line-height: 1.3; }
.choice-chip small { max-height: 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.45; opacity: 0; transition: max-height 180ms ease, opacity 180ms ease, margin 180ms ease; }
.choice-chip:hover span { border-color: rgba(var(--argb), 0.27); }
.choice-chip input:focus-visible + span { outline: 2px solid var(--a); outline-offset: 2px; }
.choice-chip input:checked + span { border-color: rgba(var(--argb), 0.46); background: rgba(var(--argb), 0.095); transform: translateY(-1px); }
.choice-chip input:checked + span strong { color: var(--al); }
.choice-chip input:checked + span small { max-height: 48px; margin-top: 4px; opacity: 1; }
.mentor-note { margin: 22px 0 0 58px; padding: 18px 21px; border-left: 2px solid rgba(var(--argb), 0.72); background: linear-gradient(90deg, rgba(var(--argb), 0.06), transparent); }
.mentor-note > span { color: var(--a); font: 600 9.5px/1 var(--mono); letter-spacing: 0.13em; text-transform: uppercase; }
.mentor-note p { max-width: 760px; margin: 8px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.65; }
.mentor-note p + p { padding-top: 9px; border-top: 1px solid rgba(var(--argb), 0.12); }

.channel-fieldset, .compact-fieldset, .mix-fieldset, .cost-groups fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.channel-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.channel-group { min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,0.012); }
.channel-group[open] { grid-column: 1 / -1; border-color: rgba(var(--argb), 0.24); }
.channel-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; padding: 14px 16px; cursor: pointer; list-style: none; }
.channel-group > summary::-webkit-details-marker { display: none; }
.channel-group > summary span, .channel-group > summary strong, .channel-group > summary small { display: block; }
.channel-group > summary strong { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.channel-group > summary small { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.channel-group > summary em { flex: none; color: var(--a); font: 600 9px/1 var(--mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }
.channel-group[open] > summary { border-bottom: 1px solid var(--line); }
.channel-group .channel-grid { padding: 12px; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.channel-choice { display: block; cursor: pointer; }
.channel-choice input { position: absolute; opacity: 0; }
.channel-choice > span { display: grid; min-height: 78px; align-content: center; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 11px; background: rgba(255,255,255,0.013); transition: border-color 150ms ease, background 150ms ease; }
.channel-choice small, .channel-choice strong, .channel-choice em { display: block; }
.channel-choice small { margin-bottom: 4px; color: var(--muted); font: 600 9px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.channel-choice strong { color: var(--ink-2); font-size: 12.5px; font-weight: 560; line-height: 1.35; }
.channel-choice em { margin-top: 5px; color: var(--muted); font-size: 10.5px; font-style: normal; line-height: 1.4; }
.channel-choice input:focus-visible + span { outline: 2px solid var(--a); outline-offset: 2px; }
.channel-choice input:checked + span { border-color: rgba(var(--argb), 0.46); background: rgba(var(--argb), 0.075); }
.channel-choice input:checked + span small, .channel-choice input:checked + span strong { color: var(--al); }
.field-rationale { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.input-grid { display: grid; gap: 14px; }
.input-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.input-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aid-field { display: grid; min-width: 0; gap: 7px; color: var(--ink-2); font-size: 12px; font-weight: 560; }
.aid-field input, .aid-field select { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink); background: #151419; }
.aid-field input:hover, .aid-field select:hover { border-color: rgba(var(--argb), 0.3); }
.aid-field input:focus, .aid-field select:focus { border-color: rgba(var(--argb), 0.55); background: #18171c; }
.aid-field small { color: var(--muted); font-size: 10.5px; font-weight: 400; line-height: 1.48; }
.field-unit { display: flex; align-items: center; min-width: 0; height: 44px; border: 1px solid var(--line-2); border-radius: 9px; background: #151419; }
.field-unit:focus-within { border-color: rgba(var(--argb), 0.55); outline: 2px solid var(--a); outline-offset: 3px; }
.field-unit input { flex: 1; height: 42px; border: 0; background: transparent; outline: 0 !important; }
.field-unit b { flex: none; padding: 0 12px; color: var(--muted); font-size: 10px; font-weight: 500; }
.derived-note { display: flex; align-items: center; justify-content: space-between; max-width: 360px; margin: 17px 0 30px; padding: 11px 14px; border-left: 2px solid var(--a); background: rgba(var(--argb), 0.045); }
.derived-note span { color: var(--muted); font-size: 11px; }
.derived-note strong { color: var(--al); font: 600 18px/1 var(--mono); }
.mix-fieldset { padding: 21px !important; border: 1px solid rgba(var(--argb), 0.13) !important; border-radius: 12px; }
.mix-fieldset > p { margin: 0 0 17px; color: var(--muted); font-size: 11.5px; }
.mix-fieldset .mix-total { margin: 15px 0 0; }
.mix-total strong { color: var(--al); }
.mix-total strong[data-valid="false"] { color: #fbbf24; }

.compact-fieldset { margin-bottom: 24px; padding: 18px 20px 20px !important; border: 1px solid var(--line-2) !important; border-radius: 12px; }
.compact-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.compact-choices label { cursor: pointer; }
.compact-choices input { position: absolute; opacity: 0; }
.compact-choices span { display: block; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-3); font-size: 11px; }
.compact-choices input:checked + span { border-color: rgba(var(--argb), 0.48); color: var(--al); background: rgba(var(--argb), 0.08); }
.compact-choices input:focus-visible + span { outline: 2px solid var(--a); outline-offset: 2px; }
.governance-grid { align-items: start; }
.browser-fieldset { margin-top: 28px; }
.browser-choices span { border-radius: 10px; }
.browser-choices strong, .browser-choices small { display: block; }
.browser-choices strong { color: inherit; font-size: 11.5px; }
.browser-choices small { max-width: 190px; max-height: 0; overflow: hidden; color: var(--muted); font-size: 9.5px; line-height: 1.4; opacity: 0; transition: max-height 160ms ease, margin 160ms ease, opacity 160ms ease; }
.browser-choices input:checked + span small { max-height: 44px; margin-top: 3px; opacity: 1; }

.optional-panel { margin-top: 22px; border: 1px solid rgba(var(--argb), 0.16); border-radius: 12px; background: rgba(255,255,255,0.01); }
.optional-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 67px; padding: 14px 18px; cursor: pointer; list-style: none; }
.optional-panel > summary::-webkit-details-marker { display: none; }
.optional-panel > summary::after { content: '+'; flex: none; color: var(--a); font: 300 22px/1 var(--mono); }
.optional-panel[open] > summary::after { content: '−'; }
.optional-panel > summary span, .optional-panel > summary strong, .optional-panel > summary small { display: block; }
.optional-panel > summary strong { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.optional-panel > summary small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
.optional-panel-body, .optional-panel > .mix-fieldset { padding: 20px; border-top: 1px solid var(--line); }
.optional-panel > .mix-fieldset { border-right: 0 !important; border-bottom: 0 !important; border-left: 0 !important; border-radius: 0; }
.organization-details { margin-bottom: 22px; }
.organization-details .compact-fieldset { margin-bottom: 19px; }

.cost-groups { display: grid; gap: 30px; }
.cost-basis { margin: -5px 0 0 58px; padding: 12px 15px; border-left: 2px solid rgba(var(--argb), 0.65); color: var(--ink-3); background: rgba(var(--argb), 0.04); font-size: 11.5px; }
.cost-tuner { margin-left: 58px; }
.currency-field { max-width: 230px; margin-bottom: 22px; }
.cost-groups fieldset { padding: 22px !important; border: 1px solid rgba(var(--argb), 0.13) !important; border-radius: 13px; }
.cost-groups legend span { margin-left: 7px; color: var(--muted); font-size: 9px; font-weight: 450; text-transform: uppercase; }

.scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.scenario-card { min-width: 0; padding: 21px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,0.014); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.scenario-card[data-leading="true"] { border-color: rgba(var(--argb), 0.5); background: linear-gradient(145deg, rgba(var(--argb), 0.085), rgba(255,255,255,0.01)); transform: translateY(-2px); }
.scenario-card[data-status="excluded"], .scenario-card[data-status="non-compliant"] { opacity: 0.58; }
.scenario-card > header { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font: 600 9px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.scenario-card > header strong { color: var(--a); font-weight: 600; }
.scenario-card[data-status="non-compliant"] > header strong { color: #fb7185; }
.scenario-card h3 { margin: 13px 0 8px; color: var(--ink); font-size: 20px; font-weight: 520; }
.scenario-card > p { min-height: 63px; margin: 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.65; }
.scenario-costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0; padding: 13px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.scenario-costs div { min-width: 0; padding: 0 9px; }
.scenario-costs div + div { border-left: 1px solid var(--line-2); }
.scenario-costs dt { color: var(--muted); font-size: 8.5px; line-height: 1.35; text-transform: uppercase; }
.scenario-costs dd { overflow: hidden; margin: 5px 0 0; color: var(--ink-2); font: 550 12px/1.3 var(--mono); text-overflow: ellipsis; }
.scenario-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scenario-balance span { color: var(--ink-2); font-size: 10px; font-weight: 650; text-transform: uppercase; }
.scenario-balance ul { margin: 8px 0 0; padding-left: 16px; }
.scenario-balance li { margin-bottom: 5px; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.scenario-balance li::marker { color: rgba(var(--argb), 0.7); }
.scenario-card .scenario-note { min-height: 0; margin: 15px 0 0; color: var(--al); font-size: 10.5px; }
.scenario-card .scenario-note:empty { display: none; }
.scenario-card details { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.scenario-card summary { color: var(--ink-3); font-size: 10.5px; cursor: pointer; }
.scenario-card code { display: block; margin-top: 9px; overflow-x: auto; color: var(--muted); font: 10px/1.55 var(--mono); }
.scenario-details .scenario-balance { margin-top: 14px; }

.comparison-scroll { max-width: 100%; margin-top: 24px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 13px; }
.comparison-table, .assumptions-table { width: 100%; min-width: 820px; border-collapse: collapse; background: rgba(255,255,255,0.01); }
.comparison-table th, .comparison-table td, .assumptions-table th, .assumptions-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table thead th, .assumptions-table thead th { color: var(--ink-2); background: rgba(var(--argb), 0.035); font-size: 10px; font-weight: 650; }
.comparison-table tbody th, .assumptions-table tbody th { color: var(--ink-2); font-size: 11px; font-weight: 550; }
.comparison-table td, .assumptions-table td { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.comparison-table tr:last-child > *, .assumptions-table tr:last-child > * { border-bottom: 0; }

.recommendation-section { position: relative; }
.recommendation-card { padding: clamp(25px, 5vw, 42px); border: 1px solid rgba(var(--argb), 0.4); border-radius: 16px; background: radial-gradient(circle at 90% 10%, rgba(var(--argb), 0.11), transparent 45%), rgba(var(--argb), 0.035); box-shadow: 0 30px 70px -50px rgba(var(--argb), 0.8); }
.recommendation-card > span { color: var(--a); font: 600 9.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.recommendation-card h3 { margin: 13px 0 12px; color: var(--ink); font-size: clamp(26px, 4vw, 38px); font-weight: 390; line-height: 1.2; }
.recommendation-card p { max-width: 760px; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.72; }
.recommendation-reason { margin-top: 18px; }
.recommendation-reason > strong, .recommendation-complement > strong { display: block; margin-bottom: 7px; color: var(--a); font: 600 9.5px/1 var(--mono); letter-spacing: 0.11em; text-transform: uppercase; }
.recommendation-complement { max-width: 800px; margin-top: 20px; padding: 16px 18px; border-left: 2px solid rgba(var(--argb), 0.55); background: rgba(var(--argb), 0.035); }
.recommendation-complement p { color: var(--ink-3); font-size: 13.5px; }
.recommendation-card .recommendation-basis { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(var(--argb), 0.16); color: var(--muted); font-size: 11.5px; }
.recommendation-card small { display: block; margin-top: 13px; color: var(--al); }
.executive-card { margin-top: 18px; padding: 24px; border: 1px solid var(--line-2); border-radius: 13px; }
.executive-card h3 { margin: 6px 0 0; color: var(--ink); font-size: 18px; font-weight: 520; }
.executive-card p { max-width: 780px; margin: 17px 0; color: var(--ink-3); font-size: 13px; line-height: 1.72; }
.executive-card .btn { cursor: pointer; }

.assumptions-scroll { margin-top: 0; }
.assumptions-table { min-width: 900px; }
.assumptions-table a { color: var(--al); text-decoration: underline; text-decoration-color: rgba(var(--argb), 0.3); text-underline-offset: 2px; }
.assumptions-table small { display: block; color: var(--faint); }
.question-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 24px; }
.question-groups details, .claim-register { min-width: 0; padding: 16px 17px; border: 1px solid var(--line-2); border-radius: 11px; background: rgba(255,255,255,0.012); }
.question-groups summary, .claim-register summary { color: var(--ink-2); font-size: 11.5px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.question-groups ul { margin: 13px 0 0; padding-left: 17px; }
.question-groups li { margin-bottom: 8px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.question-groups li::marker { color: var(--a); }
.claim-register { margin-top: 11px; }
.claim-register ul { display: grid; gap: 10px; margin: 15px 0 0; padding: 0; list-style: none; }
.claim-register li { display: grid; grid-template-columns: 75px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.claim-register a { color: var(--al); font: 600 10px/1 var(--mono); }
.claim-register span { color: var(--ink-3); font-size: 10.5px; line-height: 1.5; }
.claim-register small { color: var(--faint); font-size: 9px; white-space: nowrap; }

.share-dialog { width: min(620px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(var(--argb), 0.34); border-radius: 16px; color: var(--ink-2); background: #131217; box-shadow: 0 30px 90px rgba(0,0,0,0.75); }
.share-dialog::backdrop { background: rgba(4,4,6,0.76); backdrop-filter: blur(3px); }
.share-dialog-head { display: flex; justify-content: space-between; gap: 20px; padding: 23px 24px 18px; border-bottom: 1px solid var(--line-2); }
.share-dialog-head h2 { margin: 6px 0 0; color: var(--ink); font-size: 22px; font-weight: 450; }
.share-dialog-head > button { width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-3); background: transparent; font-size: 21px; cursor: pointer; }
.share-dialog > p, .share-dialog > label, .share-dialog > .share-actions { margin-left: 24px; margin-right: 24px; }
.share-dialog > p { margin-top: 19px; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.share-cost-choice { display: flex; gap: 11px; margin-top: 17px; padding: 13px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.share-cost-choice input { width: 17px; height: 17px; accent-color: var(--a); }
.share-cost-choice strong, .share-cost-choice small { display: block; }
.share-cost-choice strong { color: var(--ink-2); font-size: 12px; }
.share-cost-choice small { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.share-dialog > .aid-field { margin-top: 17px; }
.share-dialog .share-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; margin-bottom: 24px; }
.share-actions .btn { cursor: pointer; }
.aid-shell button.btn-ghost { background: transparent; }

@media (max-width: 980px) {
  .aid-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 0; }
  .aid-rail { position: sticky; top: 77px; z-index: 20; margin: 0 -32px; padding: 9px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2); background: rgba(15,14,18,0.94); backdrop-filter: blur(8px); }
  .aid-rail-inner { position: static; }
  .aid-rail-context, .aid-rail-summary { display: none; }
  .aid-rail nav { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 3px; border: 0; scrollbar-width: thin; }
  .aid-rail nav a { flex: none; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); white-space: nowrap; }
  .aid-rail nav a::before { display: none; }
  .aid-rail nav a[aria-current="true"] { border-color: rgba(var(--argb), 0.4); background: rgba(var(--argb), 0.08); }
  .aid-section { scroll-margin-top: 135px; }
}

@media (max-width: 780px) {
  .aid-hero-grid, .interest-groups, .question-groups, .channel-groups { grid-template-columns: 1fr; }
  .aid-promise { max-width: 620px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .interest-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .aid-hero { padding: 34px 0 38px; }
  .aid-back { margin-bottom: 25px; }
  .aid-hero h1 { font-size: 42px; }
  .aid-toolbar { display: grid; grid-template-columns: 1fr; }
  .aid-toolbar .btn { width: 100%; justify-content: center; text-align: center; }
  .aid-rail { top: 97px; margin: 0 -20px; padding-right: 20px; padding-left: 20px; }
  .aid-section { padding-bottom: 58px; scroll-margin-top: 158px; }
  .aid-section + .aid-section { padding-top: 52px; }
  .aid-section-head { grid-template-columns: 1fr; gap: 7px; }
  .aid-step { padding: 0; }
  .channel-grid, .input-grid-two, .input-grid-three, .scenario-balance { grid-template-columns: 1fr; }
  .mentor-note { margin-left: 0; }
  .cost-basis, .cost-tuner { margin-left: 0; }
  .optional-panel > summary { align-items: flex-start; }
  .scenario-costs { grid-template-columns: 1fr; }
  .scenario-costs div { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; }
  .scenario-costs div + div { border-top: 1px solid var(--line); border-left: 0; }
  .scenario-costs dd { margin: 0; }
  .claim-register li { grid-template-columns: 68px minmax(0, 1fr); }
  .claim-register small { grid-column: 2; white-space: normal; }
  .share-dialog > p, .share-dialog > label, .share-dialog > .share-actions { margin-right: 18px; margin-left: 18px; }
}

@media print {
  .decision-aid-page { --bg: #fff; --ink: #111; --ink-2: #222; --ink-3: #444; --muted: #666; --faint: #777; --line: #ddd; --line-2: #ccc; }
  .decision-aid-page .nav, .decision-aid-page .foot, .aid-toolbar, .aid-rail, .share-dialog, .executive-card button { display: none !important; }
  .aid-shell, .aid-hero { background: #fff; }
  .aid-hero { padding: 20px 0 28px; }
  .aid-hero-grid { grid-template-columns: 1fr; }
  .aid-promise { border-color: #bbb; background: #fafafa; }
  .aid-layout { display: block; max-width: none; padding: 22px 0; }
  .aid-section { break-inside: avoid; padding: 22px 0; }
  .aid-section + .aid-section { padding-top: 22px; }
  .interest-groups, .channel-grid, .cost-groups, .scenario-grid, .question-groups { break-inside: avoid; }
  .scenario-card, .recommendation-card, .executive-card, .interest-group, .cost-groups fieldset { border-color: #bbb; background: #fff; box-shadow: none; }
  .comparison-scroll { overflow: visible; }
  .comparison-table, .assumptions-table { min-width: 0; font-size: 8px; }
  a { color: #111 !important; text-decoration: none !important; }
  .optional-panel > .optional-panel-body, .optional-panel > .mix-fieldset, .scenario-details > .scenario-balance, .scenario-details > code { display: block !important; }
}
