:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-forest: #0e2b24;
  --brand-green: #2e8b6f;
  --brand-fresh: #52b788;
  --brand-cream: #f4efe2;
  --canvas: #f7f5ef;
  --surface: #fffefa;
  --surface-soft: #eef2ed;
  --surface-quiet: #e7ece6;
  --text: #0e2b24;
  --text-soft: #40564f;
  --text-muted: #667872;
  --line: rgba(14, 43, 36, .1);
  --line-strong: rgba(14, 43, 36, .17);
  --accent: #2e8b6f;
  --accent-strong: #246f59;
  --accent-soft: #dcebe4;
  --positive: #24745a;
  --negative: #a94552;
  --warning: #9a6c27;
  --shadow-low: 0 8px 24px rgba(14, 43, 36, .07);
  --shadow-high: 0 24px 70px rgba(5, 22, 17, .2);
  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 22px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --financial-primary-size: clamp(3rem, 14vw, 4.5rem);
  --financial-secondary-size: 1.125rem;
  --financial-transaction-size: .9375rem;
  --financial-metadata-size: .8125rem;
  --financial-primary-line: .98;
  --financial-supporting-line: 1.3;
  --motion-instant: 0ms;
  --motion-press: 120ms;
  --motion-replace: 220ms;
  --motion-disclosure: 260ms;
  --motion-structural: 400ms;
  --ease-standard: cubic-bezier(.2, .7, .2, 1);
  --ease-enter: cubic-bezier(.16, 1, .3, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #091a16;
  --surface: #10251f;
  --surface-soft: #153129;
  --surface-quiet: #19362e;
  --text: #f4efe2;
  --text-soft: #c4cec9;
  --text-muted: #91a49c;
  --line: rgba(244, 239, 226, .09);
  --line-strong: rgba(244, 239, 226, .16);
  --accent: #52b788;
  --accent-strong: #69c99b;
  --accent-soft: #183f32;
  --positive: #69c99b;
  --negative: #e1848e;
  --warning: #d4ad6e;
  --shadow-low: 0 10px 26px rgba(0, 0, 0, .18);
  --shadow-high: 0 28px 76px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { min-width: 0; background: var(--canvas); scroll-behavior: smooth; }
body { min-width: 0; min-height: 100dvh; margin: 0; color: var(--text); background: var(--canvas); font-family: var(--font); font-size: 16px; line-height: 1.45; text-rendering: optimizeLegibility; }
body.sheet-open, body.conflict-open, body.recovery-open, body.runtime-version-open, body.unexpected-error-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus, input:focus, select:focus, textarea:focus, a:focus, summary:focus { outline: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 62%, transparent); outline-offset: 3px; }
input[type="number"] { appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { margin: 0; appearance: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
strong, b, .money-value, .transaction-amount { font-variant-numeric: tabular-nums; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.is-hidden { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 5000; transform: translateY(-160%); border-radius: var(--radius-small); padding: 10px 14px; color: #fff; background: var(--brand-green); }
.skip-link:focus { transform: translateY(0); }

.app-shell { width: min(100%, 1120px); min-height: 100dvh; margin: 0 auto; padding: env(safe-area-inset-top) 20px calc(88px + env(safe-area-inset-bottom)); scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.app-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0 10px; }
.brand-lockup { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 0; color: var(--text); background: transparent; }
.brand-icon { width: 36px; height: 36px; flex: 0 0 36px; }
.brand-wordmark { width: 116px; height: auto; }
.brand-for-dark { display: none; }
html[data-theme="dark"] .brand-for-light { display: none; }
html[data-theme="dark"] .brand-for-dark { display: block; }
.header-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.header-context { flex: 0 1 auto; color: var(--text-muted); font-size: 13px; line-height: 1.25; text-align: right; white-space: nowrap; }
.header-context[data-priority="supporting"] { max-width: none; }
.icon-button, .back-button, .info-button { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--text-soft); background: transparent; transition: transform var(--motion-press) var(--ease-standard), background var(--motion-press) var(--ease-standard), color var(--motion-press) var(--ease-standard); }
.back-button { font-size: 22px; }
.icon-button:hover, .back-button:hover, .info-button:hover { background: var(--surface-soft); }
.header-add { color: #fff; background: var(--brand-green); box-shadow: 0 6px 16px rgba(46, 139, 111, .2); }
.header-add:hover { color: #fff; background: var(--accent-strong); }
.header-settings svg { width: 20px; height: 20px; }
.header-alerts { position: relative; }
.header-alerts svg { width: 20px; height: 20px; }
.header-alert-count { position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid var(--canvas); border-radius: 999px; padding: 0 3px; color: #fff; background: var(--negative); font-size: 10px; font-weight: 780; line-height: 1; font-variant-numeric: tabular-nums; }
.header-alert-count[hidden] { display: none; }

.app-main { min-width: 0; }
.app-view { display: none; min-width: 0; }
.app-view.is-active { display: block; }
.screen-stack { display: grid; gap: var(--space-6); }
.screen-heading { padding-top: 8px; }
.screen-heading h2, .screen-header h2 { margin: 0; font-size: 32px; line-height: 1.12; font-weight: 720; letter-spacing: 0; }
.screen-heading p, .screen-header p { margin: 7px 0 0; color: var(--text-soft); font-size: 15px; }
.screen-header { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: start; padding-top: 6px; }
.section-kicker { margin: 0 0 5px; color: var(--text-muted); font-size: 13px; font-weight: 650; }
.section-heading-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading-row h2, .section-heading-row h3 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 690; }

.bottom-nav { position: fixed; left: 50%; bottom: 0; z-index: 1000; width: min(100%, 680px); min-height: calc(62px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); transform: translateX(-50%); border-top: 1px solid var(--line); padding: 5px 14px env(safe-area-inset-bottom); background: rgba(255, 254, 250, .96); box-shadow: 0 -8px 28px rgba(14, 43, 36, .05); }
html[data-theme="dark"] .bottom-nav { background: rgba(16, 37, 31, .97); }
.nav-item { min-width: 0; min-height: 52px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: var(--radius-small); padding: 3px; color: var(--text-muted); background: transparent; font-size: 12px; font-weight: 620; transition: color var(--motion-press) var(--ease-standard), transform var(--motion-press) var(--ease-standard); }
.nav-item svg { width: 21px; height: 21px; }
.nav-item.is-active { color: var(--accent-strong); }
.nav-item.is-active svg { stroke-width: 2.3; }
.nav-item:active, .icon-button:active, .back-button:active, .info-button:active, .primary-button:active, .secondary-button:active, .danger-button:active, .ghost-button:active, .text-button:active, .filter-button:active, .term-trigger:active, .snapshot-confidence:active, .snapshot-calculation:active, .activity-flow:active, .activity-category-list button:active, .transaction-main:active, .recovery-action:active, .board-actions button:active, summary:active { transform: scale(.98); }
.app-shell.is-onboarding { width: 100%; max-width: none; padding: 0; }
.app-shell.is-onboarding .app-header, .app-shell.is-onboarding .bottom-nav { display: none; }
.app-shell[data-active-view="add"], .app-shell[data-active-view="settings"] { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.app-shell[data-active-view="add"] .app-header, .app-shell[data-active-view="add"] .bottom-nav, .app-shell[data-active-view="settings"] .app-header, .app-shell[data-active-view="settings"] .bottom-nav { display: none; }
.nav-item:focus-visible { outline-width: 2px; outline-offset: -2px; }

.financial-value-primary { font-size: var(--financial-primary-size); line-height: var(--financial-primary-line); font-weight: 735; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.financial-value-secondary { font-size: var(--financial-secondary-size); line-height: var(--financial-supporting-line); font-weight: 700; font-variant-numeric: tabular-nums; }
.financial-value-transaction { font-size: var(--financial-transaction-size); line-height: var(--financial-supporting-line); font-weight: 690; font-variant-numeric: tabular-nums; }
.financial-value-metadata { font-size: var(--financial-metadata-size); line-height: var(--financial-supporting-line); font-weight: 650; font-variant-numeric: tabular-nums; }

.today-screen { gap: 14px; }
.today-context { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 2px 0; }
.today-context h2 { flex: 0 0 auto; margin: 0; color: var(--text); font-size: 18px; line-height: 1.3; font-weight: 690; white-space: nowrap; }
.today-context span { overflow: hidden; color: var(--text-muted); font-size: 13px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.demo-note { border-radius: var(--radius-small); padding: 9px 12px; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; }
.today-layout, .today-support { min-width: 0; display: grid; gap: 14px; align-items: start; }
.today-snapshot { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-large); color: var(--text); background: var(--surface); box-shadow: var(--shadow-low); }
.today-decision-primary { padding: 28px 22px 24px; color: var(--brand-cream); background: var(--brand-forest); }
html[data-theme="dark"] .today-decision-primary { background: #15352c; }
.confidence-chip { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: var(--radius-small); padding: 0 10px; color: var(--text-soft); background: transparent; font-size: 13px; font-weight: 650; }
.confidence-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-fresh); box-shadow: 0 0 0 3px rgba(82, 183, 136, .13); }
.snapshot-answer-label { margin: 0 0 13px; color: rgba(244, 239, 226, .82); font-size: 16px; line-height: 1.35; font-weight: 690; }
.snapshot-answer-label span { display: block; margin-top: 3px; color: rgba(244, 239, 226, .64); font-size: 13px; font-weight: 620; }
.snapshot-safe-value { margin: 0; color: var(--brand-cream); }
.snapshot-safe-value.has-value-change { animation: value-replace var(--motion-replace) var(--ease-standard) both; }
.snapshot-zero-title { max-width: 510px; margin: 0; color: var(--brand-cream); font-size: 27px; line-height: 1.14; font-weight: 710; }
.snapshot-state-copy { max-width: 560px; margin: 13px 0 0; color: rgba(244, 239, 226, .72); font-size: 14px; line-height: 1.48; }
.snapshot-state-copy.is-status { color: var(--brand-cream); font-weight: 650; }
.snapshot-period { margin: 13px 0 0; color: var(--brand-cream); font-size: 14px; line-height: 1.4; font-weight: 680; }
.today-daily-guidance { display: grid; gap: 7px; margin-top: 17px; }
.snapshot-period.is-daily-guidance { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 690; }
.snapshot-daily-guide { width: fit-content; max-width: 100%; margin: 0; color: rgba(244, 239, 226, .82); font-size: 20px; overflow-wrap: anywhere; }
.today-status { margin: 0; border-top: 1px solid var(--line); padding: 12px 22px 11px; color: var(--text-soft); background: var(--surface); font-size: 14px; line-height: 1.4; font-weight: 680; }
.today-status.is-healthy { color: var(--text-muted); }
.today-status.is-attention { color: var(--text); }
.today-one-thing { min-width: 0; display: grid; justify-items: start; gap: 5px; border-top: 1px solid var(--line); padding: 20px 22px 22px; background: var(--surface); }
.today-one-thing > p:first-child { margin: 0 0 4px; color: var(--text-muted); font-size: 12px; line-height: 1.35; font-weight: 690; }
.today-one-thing h2 { max-width: 540px; margin: 0; color: var(--text); font-size: 21px; line-height: 1.22; letter-spacing: 0; }
.today-one-thing-copy { max-width: 560px; margin: 0; color: var(--text-soft); font-size: 16px; line-height: 1.5; }
.today-one-thing.is-attention { border-top-color: var(--line-strong); }
.today-one-thing .primary-button { min-width: 144px; margin-top: 11px; }
.today-estimated-income { min-height: 54px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin: 0; border-top: 1px solid var(--line); padding: 10px 18px; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; line-height: 1.45; }
.today-estimated-income strong { border-radius: 999px; padding: 4px 8px; color: var(--accent-strong); background: var(--accent-soft); font-size: 12px; }
.today-snapshot > .next-action { border-top: 1px solid var(--line); border-radius: 0; padding: 17px 18px; background: transparent; }
.today-snapshot > .today-freshness { border-top: 1px solid var(--line); }
.today-calculation-disclosure { border-top: 1px solid var(--line); background: var(--surface-soft); }
.today-calculation-toggle { width: 100%; min-height: 54px; display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px; gap: 10px; align-items: center; border: 0; padding: 5px 18px; color: var(--text-soft); background: transparent; font-size: 14px; font-weight: 680; text-align: left; }
.today-calculation-toggle svg:last-child { width: 17px; transition: transform var(--motion-disclosure) var(--ease-standard); }
.today-calculation-toggle[aria-expanded="true"] svg:last-child { transform: rotate(90deg); }
.today-calculation-details { padding: 0 18px 17px; }
.today-calculation-details[hidden] { display: none; }
.today-calculation-details dl { margin: 0; }
.today-calculation-evidence { display: grid; gap: 5px; border-top: 1px solid var(--line); padding: 14px 0 12px; }
.today-calculation-evidence h3, .today-calculation-evidence p { margin: 0; }
.today-calculation-evidence h3 { color: var(--text); font-size: 15px; line-height: 1.35; }
.today-calculation-evidence > p { color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.today-calculation-incomplete { display: grid; gap: 2px; border-left: 2px solid var(--accent); padding-left: 10px; }
.today-calculation-incomplete strong { color: var(--text); font-size: 12px; line-height: 1.35; }
.today-calculation-incomplete span { color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.today-calculation-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: baseline; border-top: 1px solid var(--line); padding: 10px 0; }
.today-calculation-row dt { color: var(--text-soft); font-size: 14px; }
.today-calculation-row dt span { display: inline-block; width: 20px; color: var(--text-muted); }
.today-calculation-row dd { margin: 0; color: var(--text); font-size: var(--financial-secondary-size); line-height: var(--financial-supporting-line); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.today-calculation-row.is-result { border-top-color: var(--line-strong); }
.today-calculation-row.is-result dt, .today-calculation-row.is-result dd { color: var(--text); font-weight: 740; }
.today-calculation-guide { margin: 10px 0 0; border-left: 2px solid var(--accent); padding-left: 11px; color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.today-calculation-more { margin-top: 6px; margin-left: -8px; }
.first-result-clarity { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-large); color: var(--text); background: var(--surface); box-shadow: var(--shadow-low); }
.first-result-outcome { display: grid; justify-items: start; gap: 8px; padding: 28px 22px 24px; color: var(--brand-cream); background: var(--brand-forest); }
html[data-theme="dark"] .first-result-outcome { background: #15352c; }
.first-result-outcome .section-kicker { margin: 0; color: rgba(244, 239, 226, .68); }
.first-result-outcome h2 { max-width: 520px; margin: 0; color: var(--brand-cream); font-size: 2rem; line-height: 1.12; letter-spacing: -.02em; }
.first-result-status { margin: 1px 0 7px; color: rgba(244, 239, 226, .78); font-size: 14px; font-weight: 680; }
.first-result-status.is-attention { color: var(--brand-cream); }
.first-result-label { margin: 0; color: rgba(244, 239, 226, .68); font-size: 13px; font-weight: 650; }
.first-result-amount { margin: -3px 0 2px; color: var(--brand-cream); }
.first-result-outcome .today-daily-guidance { width: 100%; margin-top: 5px; }
.first-result-reason, .first-result-next { display: grid; gap: 9px; border-top: 1px solid var(--line); padding: 20px 22px; }
.first-result-reason h3, .first-result-next h3 { margin: 0; color: var(--text); font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.first-result-reason > p, .first-result-next > p { max-width: 560px; margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.first-result-factors, .first-result-evidence { display: grid; gap: 0; margin: 4px 0 0; }
.first-result-factors > div, .first-result-evidence > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: baseline; border-top: 1px solid var(--line); padding: 10px 0; }
.first-result-factors dt, .first-result-evidence dt { color: var(--text-soft); font-size: 13px; font-weight: 650; }
.first-result-factors dd { margin: 0; color: var(--text); font-size: 15px; font-weight: 720; font-variant-numeric: tabular-nums; text-align: right; }
.first-result-evidence { margin-top: 0; }
.first-result-evidence > div { grid-template-columns: minmax(92px, .32fr) minmax(0, 1fr); align-items: start; }
.first-result-evidence dd { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.first-result-next { gap: 10px; }
.first-result-next .today-spend-check-entry { margin: 1px -22px -20px; width: calc(100% + 44px); }
.first-result-next .primary-button { min-height: 48px; justify-self: start; }
.first-result-clarity .today-calculation-disclosure { border-top: 1px solid var(--line); }
.today-spend-check-entry { width: 100%; min-height: 68px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 12px; align-items: center; border: 0; border-top: 1px solid var(--line); padding: 11px 18px; color: var(--text); background: var(--surface); text-align: left; transition: background var(--motion-press) var(--ease-standard), transform var(--motion-press) var(--ease-standard); }
.today-spend-check-entry:hover { background: var(--surface-soft); }
.today-spend-check-entry:active { transform: scale(.992); }
.today-spend-check-entry > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.today-spend-check-entry > span:first-child svg { width: 19px; height: 19px; }
.today-spend-check-entry > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.today-spend-check-entry strong { font-size: 16px; line-height: 1.3; }
.today-spend-check-entry small { color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.today-spend-check-entry > svg { width: 17px; color: var(--text-muted); }
.today-snapshot.is-missing-data { min-height: 330px; display: grid; align-content: center; justify-items: start; padding: 24px 18px 0; color: var(--text); background: var(--surface); box-shadow: var(--shadow-low); }
.today-snapshot.is-missing-data > .next-action { width: calc(100% + 36px); margin: 20px -18px 0; }
.today-snapshot.is-missing-data > .today-freshness { width: calc(100% + 36px); margin-inline: -18px; }
.snapshot-missing-symbol { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.snapshot-eyebrow { margin: 18px 0 4px; color: var(--text-muted); font-size: 13px; font-weight: 650; }
.today-snapshot.is-missing-data h2 { margin: 0; font-size: 27px; line-height: 1.16; }
.snapshot-missing-reason { margin: 15px 0 0; color: var(--text); font-size: 16px; font-weight: 650; }
.snapshot-missing-copy { max-width: 430px; margin: 6px 0 0; color: var(--text-soft); font-size: 14px; }

.next-action { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; border-radius: var(--radius-medium); padding: 16px; background: var(--surface-soft); }
.next-action.is-shortfall .action-symbol-mark { color: var(--warning); }
.next-action.is-quiet { align-items: center; padding-block: 12px; background: transparent; }
.next-action.is-quiet .action-symbol-mark { width: 36px; height: 36px; color: var(--positive); background: var(--accent-soft); }
.next-action.is-quiet .section-kicker { margin-bottom: 1px; }
.action-symbol-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--surface); }
.action-symbol-mark svg { width: 20px; height: 20px; }
.action-content h2 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 690; }
.action-content > p:not(.section-kicker) { margin: 5px 0 0; color: var(--text-soft); font-size: 14px; }
.action-content .button-row { margin-top: 11px; }

.term-trigger { min-height: 44px; border: 0; border-radius: var(--radius-small); padding: 0 8px; color: var(--text-soft); background: transparent; text-align: left; }
.term-trigger.compact { display: grid; justify-items: end; padding: 0; font-size: 12px; }
.term-trigger.compact strong { color: var(--text); font-size: 15px; }
.upcoming-section { display: grid; gap: 8px; padding-top: 2px; }
.upcoming-list, .transaction-day, .settings-list { overflow: hidden; border-radius: var(--radius-medium); background: var(--surface); box-shadow: var(--shadow-low); }
.upcoming-list > button { width: 100%; min-height: 66px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; color: var(--text); background: transparent; text-align: left; }
.upcoming-list > button:last-child { border-bottom: 0; }
.upcoming-list strong, .upcoming-list small { display: block; }
.upcoming-list small { margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.upcoming-list b { font-size: 15px; }
.upcoming-list svg { width: 17px; color: var(--text-muted); }
.upcoming-direction { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--negative); background: color-mix(in srgb, var(--negative) 10%, var(--surface)); font-size: 18px; font-weight: 680; }
.upcoming-direction.is-inflow { color: var(--positive); background: var(--accent-soft); }

.primary-button, .secondary-button, .danger-button, .ghost-button, .text-button { min-height: 44px; border-radius: var(--radius-small); padding: 0 16px; font-size: 15px; font-weight: 660; transition: transform var(--motion-press) var(--ease-standard), background var(--motion-press) var(--ease-standard), color var(--motion-press) var(--ease-standard); }
button:disabled, button[aria-disabled="true"] { cursor: not-allowed; opacity: .58; }
.plan-situation, .plan-management { min-width: 0; display: grid; gap: 12px; border-top: 1px solid var(--line-strong); padding: 22px 0 0; }
.plan-situation > header { display: grid; gap: 4px; }
.plan-situation > header h2, .plan-management summary strong { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.plan-situation > header p, .plan-management summary small { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.plan-situation-list { display: grid; border-top: 1px solid var(--line-strong); }
.plan-situation-list > button { width: 100%; min-width: 0; min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 9px 2px; color: var(--text); background: transparent; text-align: left; }
.plan-situation-list > button > span { min-width: 0; }
.plan-situation-list strong, .plan-situation-list small { display: block; overflow-wrap: anywhere; }
.plan-situation-list strong { font-size: 15px; }
.plan-situation-list small { margin-top: 3px; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.plan-situation-list b { max-width: 150px; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.plan-situation-list svg, .plan-management summary > svg { width: 17px; color: var(--text-muted); }
.plan-next > .text-button { justify-self: start; margin-left: -10px; }
.plan-protected .plan-accounted { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); padding: 0 2px; }
.plan-protected .plan-accounted > summary { min-height: 62px; }
.plan-attention { gap: 0; }
.plan-attention > header { padding-bottom: 12px; }
.plan-attention-item { min-width: 0; border-top: 1px solid var(--line); padding: 16px 2px; }
.plan-attention-item:last-child { border-bottom: 1px solid var(--line); }
.plan-attention .plan-uncertainty { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; background: transparent; }
.plan-attention .plan-uncertainty h3, .plan-attention .plan-decision-action h3, .plan-subscription-attention h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.plan-attention .plan-uncertainty ul { margin: 7px 0 0; }
.plan-attention .plan-decision-action, .plan-subscription-attention, .plan-attention .plan-recovery-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.plan-attention .plan-recovery-entry { border-left: 3px solid var(--warning); padding-left: 14px; }
.plan-subscription-attention > div { min-width: 0; }
.plan-direction-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.plan-direction-actions .text-button { min-height: 44px; margin-left: -10px; }
.plan-management { padding-bottom: var(--space-4); }
.plan-management > details { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.plan-management > details > summary { min-height: 68px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 10px 2px; cursor: pointer; list-style: none; }
.plan-management > details > summary::-webkit-details-marker { display: none; }
.plan-management > details > summary > span { display: grid; gap: 3px; min-width: 0; }
.plan-management[open] > summary > svg, .plan-management > details[open] > summary > svg { transform: rotate(90deg); }
.plan-management summary > svg { transition: transform var(--motion-disclosure) var(--ease-standard); }
.plan-management-body { display: grid; gap: 24px; border-top: 1px solid var(--line); padding: 20px 0 2px; }
.primary-button { border: 0; color: #fff; background: var(--brand-green); box-shadow: 0 6px 14px rgba(46, 139, 111, .18); }
.primary-button:hover { background: var(--accent-strong); }
.secondary-button, .ghost-button { border: 0; color: var(--text); background: var(--surface-soft); }
.danger-button { border: 0; color: #fff; background: var(--negative); }
.text-button { border: 0; padding-inline: 8px; color: var(--accent-strong); background: transparent; box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.button-stack { display: grid; gap: 10px; }
.full-width { width: 100%; }
.term-trigger, .snapshot-confidence, .snapshot-calculation, .activity-flow, .activity-category-list button, .transaction-main, .recovery-action, .board-actions button, summary { transition: transform var(--motion-press) var(--ease-standard), color var(--motion-press) var(--ease-standard), background var(--motion-press) var(--ease-standard); }

.activity-screen, .plan-screen, .settings-screen, .add-screen { padding-top: 4px; }
.activity-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; overflow: hidden; border-radius: var(--radius-medium); background: var(--surface); box-shadow: var(--shadow-low); }
.activity-totals span { min-width: 0; display: grid; gap: 3px; padding: 14px 16px; }
.activity-totals span + span { border-left: 1px solid var(--line); }
.activity-totals small { color: var(--text-muted); font-size: 13px; }
.activity-totals strong { font-size: 17px; }
.activity-totals em { color: var(--text-muted); font-size: 11px; font-style: normal; }
.is-positive { color: var(--positive) !important; }
.is-negative { color: var(--negative) !important; }
.activity-story { display: grid; gap: 18px; }
.activity-story.is-insufficient { gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.activity-visual-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.activity-visual-head h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.activity-range { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, 44px); gap: 2px; border-radius: var(--radius-small); padding: 3px; background: var(--surface-soft); }
.activity-range button { min-height: 44px; border: 0; border-radius: 6px; padding: 0; color: var(--text-muted); background: transparent; font-size: 12px; font-weight: 680; }
.activity-range button.is-active { color: var(--text); background: var(--surface); box-shadow: 0 1px 4px rgba(14, 43, 36, .1); }
.activity-summary-row { width: 100%; min-width: 0; min-height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 10px 14px; align-items: center; border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); padding: 12px 2px; color: var(--text); background: transparent; text-align: left; }
.activity-summary-row > span { min-width: 0; display: grid; gap: 3px; }
.activity-summary-row > span strong { font-size: 14px; line-height: 1.35; }
.activity-summary-row > span small { color: var(--text-muted); font-size: 12px; }
.activity-summary-row > b { max-width: 150px; text-align: right; overflow-wrap: anywhere; }
.activity-summary-row > svg { width: 17px; color: var(--text-muted); }
.activity-story-layout { min-width: 0; display: grid; gap: 22px; }
.activity-flow { min-width: 0; width: 100%; display: grid; justify-items: stretch; border: 0; border-radius: var(--radius-medium); padding: 19px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-low); text-align: left; }
.activity-flow small { color: var(--text-muted); font-size: 12px; }
.activity-flow strong { font-variant-numeric: tabular-nums; }
.activity-flow-in { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.activity-flow-in strong { color: var(--positive); font-size: 18px; }
.activity-flow-line { position: relative; width: 18px; height: 24px; margin-left: 10px; }
.activity-flow-line::before { position: absolute; top: 0; bottom: 5px; left: 8px; width: 1px; content: ""; background: var(--line-strong); }
.activity-flow-line::after { position: absolute; bottom: 3px; left: 5px; width: 7px; height: 7px; transform: rotate(45deg); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); content: ""; }
.activity-flow-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.activity-flow-out > span { min-width: 0; display: grid; gap: 4px; }
.activity-flow-out > span + span { border-left: 1px solid var(--line); padding-left: 20px; }
.activity-flow-out strong { font-size: 16px; }
.activity-flow-net { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 7px 12px; align-items: center; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.activity-flow-net small { grid-column: 1; }
.activity-flow-net strong { grid-column: 2; grid-row: 1 / span 2; font-size: 26px; line-height: 1; }
.activity-flow-net > span { min-width: 0; grid-column: 1; overflow-wrap: anywhere; color: var(--text-soft); font-size: 13px; }
.activity-flow-net svg { width: 18px; grid-column: 3; grid-row: 1 / span 2; color: var(--text-muted); }
.activity-section-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.activity-section-head h4, .activity-trend h4 { margin: 0; font-size: 15px; }
.activity-section-head > span { color: var(--text-muted); font-size: 12px; font-weight: 650; }
.activity-categories { min-width: 0; display: grid; gap: 8px; }
.activity-category-list { display: grid; }
.activity-category-list button { min-width: 0; min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; gap: 3px 10px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; color: var(--text); background: transparent; text-align: left; }
.activity-category-list button > span { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: center; }
.activity-category-list button > span i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); font-size: 12px; font-style: normal; font-weight: 720; }
.activity-category-list button b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.activity-category-list button > strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.activity-category-list button > small { color: var(--text-muted); font-size: 12px; text-align: right; }
.activity-category-list button > em { height: 3px; grid-column: 1 / -1; overflow: hidden; border-radius: 3px; background: var(--surface-soft); }
.activity-category-list button > em i { display: block; width: var(--category-share); height: 100%; transform-origin: left; border-radius: inherit; background: var(--accent); }
.activity-category-list button[aria-pressed="true"] > span i { color: var(--brand-cream); background: var(--brand-forest); }
.activity-trend { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.activity-trend > div { min-width: 0; display: grid; gap: 4px; }
.activity-trend strong { color: var(--text-soft); font-size: 13px; }
.activity-trend.is-rising strong { color: var(--negative); }
.activity-trend.is-falling strong { color: var(--positive); }
.activity-trend p { margin: 0; color: var(--text-muted); font-size: 12px; text-align: right; }
.activity-trend.is-insufficient { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.activity-trend.is-insufficient p { text-align: left; }
.activity-compact-totals { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.activity-compact-totals span { display: grid; gap: 3px; }
.activity-compact-totals small { color: var(--text-muted); font-size: 12px; }
.activity-compact-totals strong { font-size: 15px; }
.activity-insufficient-copy { margin: 0; color: var(--text-soft); font-size: 13px; }
.activity-category-filter { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 2px solid var(--accent); padding-left: 12px; color: var(--text-soft); font-size: 13px; }
.has-activity-change .activity-summary-row { animation: activity-story-enter var(--motion-structural) var(--ease-enter) both; }
.has-activity-change .activity-category-list button > em i { animation: activity-share-enter var(--motion-structural) var(--ease-enter) both; }

/* Change history extends the existing ruled, evidence-first Activity language. */
.latest-change { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); padding: 13px 2px; }
.today-snapshot > .latest-change { border-top: 1px solid var(--line); border-bottom: 0; padding: 16px 22px 15px; }
.latest-change h3, .latest-change p { margin: 0; }
.latest-change h3 { font-size: 16px; line-height: 1.35; }
.latest-change p:not(.section-kicker) { margin-top: 3px; color: var(--text-soft); font-size: 13px; }
.latest-change small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.latest-change .text-button { justify-self: end; white-space: nowrap; }
.today-freshness { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 9px 18px; background: transparent; }
.today-freshness .freshness-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--warning); background: var(--surface-soft); }
.today-freshness .freshness-symbol svg { width: 18px; height: 18px; }
.today-freshness h3 { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.35; font-weight: 650; }
.today-freshness .text-button { white-space: nowrap; }
.change-history { min-width: 0; display: grid; gap: 13px; border-top: 1px solid var(--line-strong); padding-top: 20px; }
.change-history > header > div { min-width: 0; }
.change-history > header h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.change-history > header h3:focus-visible { border-radius: 4px; outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset: 4px; }
.change-history > header > span { color: var(--text-muted); font-size: 12px; }
.change-history > ol { display: grid; margin: 0; padding: 0; list-style: none; }
.change-history-item { position: relative; min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 0 0 0 2px; }
.change-history-item::before { position: absolute; top: 19px; bottom: -19px; left: 8px; width: 1px; content: ""; background: var(--line-strong); }
.change-history-item:last-child::before { display: none; }
.change-history-marker { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 17px; border: 3px solid var(--canvas); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--line-strong); }
.change-history-item article { min-width: 0; border-bottom: 1px solid var(--line); padding: 12px 0 16px; }
.change-history-item:last-child article { border-bottom: 0; }
.change-history-item article > header { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, auto); gap: 10px 18px; align-items: start; }
.change-history-item h4 { margin: 0; font-size: 15px; line-height: 1.35; }
.change-history-item time { display: block; margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.change-history-item article > header > strong { max-width: 250px; font-size: 13px; line-height: 1.4; text-align: right; }
.change-history-item .is-neutral { color: var(--text-soft); }
.change-history-reason, .change-history-shortfall { margin: 8px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.change-history-shortfall { color: var(--warning); font-weight: 620; }
.change-history-item details { margin-top: 4px; }
.change-history-item summary { width: fit-content; min-height: 44px; display: flex; align-items: center; border-radius: var(--radius-small); padding: 0 8px; color: var(--accent-strong); font-size: 13px; font-weight: 650; list-style-position: inside; cursor: pointer; }
.change-history-item dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 2px 0 0; border-top: 1px solid var(--line); }
.change-history-item dl > div { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.change-history-item dl > div:last-child { grid-column: 1 / -1; }
.change-history-item dt { color: var(--text-muted); font-size: 12px; }
.change-history-item dd { margin: 0; color: var(--text); font-size: 13px; font-weight: 680; text-align: right; overflow-wrap: anywhere; }
.change-history-empty { min-height: 116px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: center; border-radius: var(--radius-medium); padding: 18px; background: var(--surface-soft); }
.change-history-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--surface); }
.change-history-empty p { max-width: 540px; margin: 0; color: var(--text-soft); font-size: 14px; }

.activity-summary-sheet { display: grid; gap: 16px; }
.activity-summary-sheet > p:first-child { margin: 0; color: var(--text-soft); }
.activity-summary-sheet small { color: var(--text-muted); }
.activity-sheet-equation { display: grid; gap: 8px; }
.activity-sheet-equation > span { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.activity-sheet-equation > i { height: 1px; overflow: visible; color: var(--text-muted); font-style: normal; line-height: 0; }
.activity-sheet-equation .activity-summary-net { border-top: 1px solid var(--line-strong); padding-top: 12px; }
.activity-summary-net strong { font-size: 22px; }
.activity-accounting-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.activity-accounting-details summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 680; }
.activity-accounting-details > div { display: grid; padding-bottom: 8px; }
.activity-accounting-details > div span { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.activity-accounting-details p { margin: 4px 0 14px; color: var(--text-soft); font-size: 12px; }
.activity-sheet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.activity-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.search-field { min-width: 0; min-height: 48px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: center; border-radius: 12px; padding: 0 13px; color: var(--text-muted); background: var(--surface); box-shadow: var(--shadow-low); }
.search-field input { min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 15px; }
.search-field input::placeholder { color: var(--text-muted); }
.filter-button { min-height: 48px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 12px; padding: 0 13px; color: var(--text-soft); background: var(--surface); box-shadow: var(--shadow-low); font-size: 14px; font-weight: 620; }
.filter-button.is-active { color: var(--accent-strong); background: var(--accent-soft); }
.transaction-list { display: grid; gap: 22px; }
.transaction-day { border-radius: 0; background: transparent; box-shadow: none; }
.transaction-day h3 { margin: 0; padding: 0 2px 8px; color: var(--text-muted); background: transparent; font-size: 12px; font-weight: 650; }
.transaction-row { min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; align-items: center; border-top: 1px solid var(--line); padding: 11px 2px; }
.transaction-day h3 + .transaction-row { border-top-color: var(--line-strong); }
.transaction-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text-soft); background: var(--surface-soft); font-size: 12px; font-weight: 720; }
.transaction-mark.is-income { color: var(--positive); background: color-mix(in srgb, var(--positive) 12%, var(--surface)); }
.transaction-mark.is-expense { color: var(--negative); background: color-mix(in srgb, var(--negative) 10%, var(--surface)); }
.transaction-mark.is-saving { color: var(--accent-strong); background: var(--accent-soft); }
.transaction-mark.is-neutral { color: var(--text-soft); background: var(--surface-quiet); }
.transaction-main { min-width: 0; min-height: 44px; display: grid; align-content: center; border: 0; padding: 0; color: var(--text); background: transparent; text-align: left; }
.transaction-main strong, .transaction-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-main strong { font-size: 15px; }
.transaction-main span, .transaction-amount span { margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.transaction-main span i { color: var(--text-soft); font-style: normal; font-weight: 650; }
.transaction-amount { min-width: 92px; display: grid; justify-items: end; }
.transaction-amount strong { font-size: var(--financial-transaction-size); line-height: var(--financial-supporting-line); font-weight: 690; }
.transaction-similar { min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; border: 0; padding: 4px 0 0 8px; color: var(--accent-strong); background: transparent; font-size: 12px; font-weight: 680; text-align: right; }

/* Recurring intelligence stays subordinate to Activity and Plan. */
.recurring-review-entry { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; border-radius: var(--radius-medium); padding: 16px; background: var(--surface-soft); box-shadow: inset 3px 0 0 var(--accent); }
.recurring-review-entry h3, .recurring-review-entry p { margin: 0; }
.recurring-review-entry h3 { font-size: 17px; line-height: 1.25; }
.recurring-review-entry p:not(.section-kicker) { margin-top: 4px; color: var(--text-soft); font-size: 13px; }
.recurring-review-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--surface); }
.recurring-review-mark svg { width: 20px; height: 20px; }
.recurring-review-action { justify-self: end; white-space: nowrap; }
.recurring-review-list, .recurring-manager { display: grid; }
.recurring-suggestion-row { min-width: 0; min-height: 68px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 18px; gap: 11px; align-items: center; border: 0; border-top: 1px solid var(--line); padding: 10px 2px; color: var(--text); background: transparent; text-align: left; }
.recurring-suggestion-row:first-child { border-top: 0; }
.recurring-suggestion-row > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.recurring-suggestion-row strong, .recurring-suggestion-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recurring-suggestion-row small { color: var(--text-muted); font-size: 12px; }
.recurring-suggestion-row > b { color: var(--text); font-size: 14px; white-space: nowrap; }
.recurring-suggestion-row > svg { width: 17px; color: var(--text-muted); }
.recurring-kind { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; font-weight: 700; }
.recurring-kind.is-expense { color: var(--negative); background: color-mix(in srgb, var(--negative) 10%, transparent); }
.recurring-kind.is-income { color: var(--positive); background: color-mix(in srgb, var(--positive) 11%, transparent); }
.recurring-detail { display: grid; gap: 22px; padding-bottom: 8px; }
.recurring-detail > header { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 13px; align-items: center; }
.recurring-detail > header .recurring-kind { width: 48px; height: 48px; font-size: 22px; }
.recurring-detail > header p, .recurring-detail > header h3 { margin: 0; }
.recurring-detail > header p { color: var(--accent-strong); font-size: 12px; font-weight: 700; }
.recurring-detail > header h3 { font-size: 23px; line-height: 1.15; }
.recurring-detail > header span { color: var(--text-muted); font-size: 13px; }
.recurring-facts { margin: 0; }
.recurring-facts > div { min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border-top: 1px solid var(--line); }
.recurring-facts dt { color: var(--text-muted); font-size: 13px; }
.recurring-facts dd { margin: 0; color: var(--text); font-weight: 680; text-align: right; }
.recurring-detail section h3 { margin: 0; font-size: 16px; }
.recurring-detail .section-heading-row > span { color: var(--text-muted); font-size: 12px; }
.recurring-evidence { position: relative; display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.recurring-evidence::before { position: absolute; top: 17px; bottom: 17px; left: 6px; width: 1px; content: ""; background: var(--line-strong); }
.recurring-evidence li { position: relative; min-height: 52px; display: grid; grid-template-columns: 13px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.recurring-evidence li > i { z-index: 1; width: 13px; height: 13px; border: 3px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.recurring-evidence li > span { display: grid; }
.recurring-evidence time { font-size: 14px; font-weight: 650; }
.recurring-evidence small { color: var(--text-muted); font-size: 11px; }
.recurring-evidence strong { font-size: 13px; }
.recurring-effect { position: relative; overflow: hidden; display: grid; gap: 5px; border-radius: var(--radius-medium); padding: 18px 18px 17px; color: var(--brand-cream); background: var(--brand-forest); }
.recurring-effect::before { position: absolute; top: 0; left: 50%; width: 56px; height: 9px; transform: translateX(-50%); border-radius: 0 0 20px 20px; content: ""; background: var(--canvas); }
.recurring-effect small { color: rgba(244, 239, 226, .68); font-size: 12px; }
.recurring-effect strong { font-size: 16px; }
.recurring-effect p { margin: 2px 0 0; color: rgba(244, 239, 226, .74); font-size: 13px; }
.recurring-warning { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; border-radius: var(--radius-small); padding: 13px; color: var(--warning); background: color-mix(in srgb, var(--warning) 9%, transparent); }
.recurring-warning svg { width: 21px; }
.recurring-warning p { margin: 0; color: var(--text-soft); font-size: 13px; }
.recurring-manager-review { min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 10px; align-items: center; border: 0; border-radius: var(--radius-small); padding: 10px 12px; color: var(--accent-strong); background: var(--accent-soft); text-align: left; font-weight: 680; }
.recurring-manager-review svg { width: 17px; }
.recurring-manager-review + .recurring-suggestion-row { margin-top: 12px; }
.money-input { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; }
.money-input > b { color: var(--text-muted); }
.money-input .field-input { width: 100%; }
.empty-state { display: grid; justify-items: start; gap: 10px; border-radius: var(--radius-medium); padding: 24px 18px; color: var(--text-soft); background: var(--surface); box-shadow: var(--shadow-low); }
.empty-state p { margin: 0; }
.empty-state.compact { display: flex; align-items: center; justify-content: space-between; border-radius: 0; padding: 12px 2px; background: transparent; box-shadow: none; }

.plan-recovery-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 3px solid var(--warning); padding: 4px 0 4px 16px; }
.plan-recovery-entry h2 { margin: 0; font-size: 19px; }
.plan-recovery-entry p:not(.section-kicker) { max-width: 520px; margin: 4px 0 0; color: var(--text-soft); font-size: 14px; }
.scenario-options { display: grid; }
.scenario-options > button { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-height: 58px; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; color: var(--text); background: transparent; text-align: left; }
.scenario-options > button > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--brand-forest); background: var(--surface-soft); }
.scenario-options svg { width: 18px; height: 18px; }
.scenarios-screen { width: min(100%, 920px); margin-inline: auto; }
.scenario-reality-note { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; border: 1px solid var(--line-strong); border-radius: var(--radius-medium); padding: 14px 16px; color: var(--text-soft); background: var(--surface-soft); }
.scenario-reality-note > svg { width: 22px; height: 22px; margin-top: 1px; color: var(--accent-strong); }
.scenario-reality-note p { display: grid; gap: 2px; margin: 0; font-size: 13px; }
.scenario-reality-note strong { color: var(--text); font-size: 14px; }
.scenario-start, .scenario-result { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-large); background: var(--surface); box-shadow: var(--shadow-low); }
.scenario-start > div:first-child { padding: 22px 20px 18px; }
.scenario-start h3, .scenario-result h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.scenario-start > div:first-child > p:last-child, .scenario-result-heading > p:last-child { max-width: 620px; margin: 7px 0 0; color: var(--text-soft); font-size: 14px; }
.scenario-start .scenario-options { border-top: 1px solid var(--line); padding: 0 20px 6px; }
.scenario-start .scenario-options > button:last-child { border-bottom: 0; }
.scenario-assumption { min-height: 74px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 20px; background: var(--surface-soft); }
.scenario-assumption h3 { font-size: 17px; }
.scenario-assumption .text-button { min-height: 44px; }
.scenario-result-heading { padding: 23px 20px 16px; }
.scenario-result-heading h3:focus-visible, .scenario-start h3:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 62%, transparent); outline-offset: 4px; }
.scenario-position-change { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 20px 18px; border-left: 3px solid var(--line-strong); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 12px 14px 12px 12px; background: var(--surface-soft); }
.scenario-position-change > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text-soft); background: var(--surface); }
.scenario-position-change svg { width: 18px; height: 18px; }
.scenario-position-change div { min-width: 0; display: grid; gap: 2px; }
.scenario-position-change small { color: var(--text-muted); font-size: 12px; }
.scenario-position-change strong { font-size: 14px; }
.scenario-position-change b { font-size: 18px; }
.scenario-position-change.is-positive { border-left-color: var(--positive); }
.scenario-position-change.is-negative { border-left-color: var(--negative); }
.scenario-position-change.is-positive b, .scenario-metric-difference.is-positive strong { color: var(--positive); }
.scenario-position-change.is-negative b, .scenario-metric-difference.is-negative strong { color: var(--negative); }
.scenario-metrics { margin: 0; border-top: 1px solid var(--line); }
.scenario-metric { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 2fr); gap: 20px; align-items: center; border-bottom: 1px solid var(--line); padding: 17px 20px; }
.scenario-metric dt { color: var(--text-soft); font-size: 13px; font-weight: 650; }
.scenario-metric dd { margin: 0; }
.scenario-metric-values { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.scenario-metric-values > span { min-width: 0; display: grid; gap: 3px; align-content: start; }
.scenario-metric-values small { color: var(--text-muted); font-size: 11px; }
.scenario-metric-values strong { overflow-wrap: anywhere; font-size: 15px; }
.scenario-metric-values > span:nth-child(2) { border-left: 2px solid var(--accent); padding-left: 12px; }
.scenario-metric-difference { border-left: 1px solid var(--line-strong); padding-left: 14px; }
.scenario-shortfall { margin: 18px 20px 0; border-left: 3px solid var(--warning); padding-left: 12px; color: var(--warning); }
.scenario-result-actions { display: flex; justify-content: flex-end; padding: 20px; }
.buffer-mode-control { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border-radius: var(--radius-small); padding: 4px; background: var(--surface-soft); }
.buffer-mode-control label { position: relative; min-width: 0; }
.buffer-mode-control input { position: absolute; opacity: 0; pointer-events: none; }
.buffer-mode-control span { display: grid; min-height: 44px; place-items: center; border-radius: calc(var(--radius-small) - 2px); padding: 8px 10px; color: var(--text-soft); font-size: 13px; font-weight: 650; text-align: center; transition: color var(--motion-press) var(--ease-standard), background var(--motion-press) var(--ease-standard), box-shadow var(--motion-press) var(--ease-standard); }
.buffer-mode-control input:checked + span { color: var(--text); background: var(--surface); box-shadow: 0 1px 4px rgba(14,43,36,.12); }
.buffer-mode-control input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.buffer-recommendation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 4px 0 16px; }
.buffer-recommendation span, .buffer-recommendation small { color: var(--text-soft); }
.buffer-recommendation strong { grid-row: 1 / 3; grid-column: 2; font-size: 22px; }
.buffer-recommendation small { font-size: 12px; }
.field-label.buffer-custom-field { display: none; }
.sheet-form:has(input[name="bufferMode"][value="custom"]:checked) .field-label.buffer-custom-field { display: grid; }
.advanced-settings { border-top: 1px solid var(--line); padding-top: 12px; }
.advanced-settings summary { cursor: pointer; color: var(--text-soft); font-size: 14px; font-weight: 650; }
.advanced-settings[open] summary { margin-bottom: 14px; }
.advanced-settings p { margin: 8px 0 0; color: var(--text-muted); font-size: 12px; }
.scenario-form, .scenario-preview, .recovery-sheet, .recovery-preview, .period-confirmation { display: grid; gap: 18px; }
.scenario-notice, .scenario-preview > p { margin: 0; color: var(--text-soft); }
.scenario-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.scenario-comparison span { display: grid; gap: 4px; }
.scenario-comparison small, .scenario-difference span, .scenario-components small { color: var(--text-muted); font-size: 12px; }
.scenario-comparison strong { font-size: 24px; }
.scenario-gap { color: var(--warning) !important; font-weight: 650; }
.scenario-transition { border-left: 3px solid var(--warning); padding-left: 12px; color: var(--text-soft); font-size: 14px; }
.scenario-difference { display: flex; align-items: baseline; justify-content: space-between; }
.scenario-difference strong { font-size: 20px; }
.scenario-difference.is-negative strong { color: var(--negative); }
.scenario-difference.is-positive strong { color: var(--positive); }
.scenario-components { display: grid; gap: 8px; }
.scenario-components span { display: flex; justify-content: space-between; gap: 16px; }
.scenario-shortfall { border-left: 3px solid var(--warning); padding-left: 12px; color: var(--warning); }
.scenario-provenance { color: var(--text-muted) !important; font-size: 12px; }
.plan-summary, .plan-tools { min-width: 0; display: grid; gap: var(--space-2); padding-top: var(--space-1); }
.plan-summary > h2, .plan-tools > h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.plan-summary-list, .plan-tool-list { min-width: 0; display: grid; border-top: 1px solid var(--line-strong); }
.plan-summary-list > button, .plan-tool-list > button { width: 100%; min-width: 0; min-height: 60px; display: grid; align-items: center; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; text-align: left; }
.plan-summary-list > button { grid-template-columns: minmax(7.5rem, .7fr) minmax(0, 1.3fr) 18px; gap: var(--space-3); padding: var(--space-2) 2px; }
.plan-summary-list span { color: var(--text-muted); font-size: 13px; }
.plan-summary-list strong { min-width: 0; overflow-wrap: anywhere; font-size: 15px; text-align: right; }
.plan-summary-list svg, .plan-tool-list svg { width: 17px; color: var(--text-muted); }
.plan-tool-list > button { grid-template-columns: minmax(0, 1fr) 18px; gap: var(--space-3); padding: var(--space-3) 2px; }
.plan-tool-list span, .plan-tool-list strong, .plan-tool-list small { display: block; min-width: 0; }
.plan-tool-list strong { font-size: 15px; }
.plan-tool-list small { margin-top: 3px; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.scenario-screen-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.scenario-screen-heading > .text-button { padding-inline: 8px; }
.scenario-screen-heading h2, .scenario-screen-heading p { margin-right: 0; margin-left: 0; }
.scenario-library, .scenario-editor { display: grid; gap: 20px; }
.scenario-library-heading, .scenario-editor-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.scenario-library-heading h3, .scenario-library-heading p, .scenario-editor-heading h3 { margin: 0; }
.scenario-library-heading p { margin-top: 4px; color: var(--text-soft); font-size: 14px; }
.scenario-empty { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-large); padding: 28px; text-align: center; background: var(--surface-soft); }
.scenario-empty > div { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-forest); background: var(--accent-soft); }
.scenario-empty svg { width: 22px; height: 22px; }
.scenario-empty p { max-width: 460px; margin: 0; color: var(--text-soft); }
.scenario-template-picker { display: grid; gap: 12px; }
.scenario-template-picker h3 { margin: 0; font-size: 18px; }
.scenario-template-picker > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scenario-template-picker button { min-height: 76px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-medium); padding: 12px; color: var(--text); background: var(--surface); text-align: left; }
.scenario-template-picker button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-forest); background: var(--accent-soft); }
.scenario-template-picker svg { width: 18px; height: 18px; }
.scenario-list { display: grid; gap: 12px; }
.scenario-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; border: 1px solid var(--line-strong); border-left-width: 3px; border-radius: var(--radius-medium); padding: 16px; background: var(--surface); box-shadow: var(--shadow-low); }
.scenario-list-item.is-improves { border-left-color: var(--positive); }
.scenario-list-item.is-pressure { border-left-color: var(--negative); }
.scenario-list-item.is-unchanged { border-left-color: var(--text-muted); }
.scenario-list-item.is-outdated { border-style: dashed; }
.scenario-list-impact { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.scenario-list-impact > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--text-soft); background: var(--surface-soft); }
.scenario-list-item.is-improves .scenario-list-impact > span { color: var(--positive); }
.scenario-list-item.is-pressure .scenario-list-impact > span { color: var(--negative); }
.scenario-list-impact svg { width: 18px; height: 18px; }
.scenario-list-impact h3, .scenario-list-impact p { margin: 0; overflow-wrap: anywhere; }
.scenario-list-impact p { margin-top: 3px; color: var(--text-soft); font-size: 14px; }
.scenario-list-impact small { display: block; margin-top: 6px; color: var(--text-muted); }
.scenario-list-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.scenario-list-actions .text-button { min-width: 44px; padding-inline: 10px; }
.text-button.is-destructive { color: var(--negative); }
.scenario-list-item > .secondary-button { grid-column: 1 / -1; justify-self: start; }
.scenario-editor-form { display: grid; gap: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-large); padding: 20px; background: var(--surface); box-shadow: var(--shadow-low); }
.scenario-adjustments { display: grid; gap: 14px; }
.scenario-adjustment-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-medium); padding: 16px; background: var(--surface-soft); }
.scenario-adjustment-editor legend { padding: 0 6px; font-size: 14px; font-weight: 700; }
.scenario-adjustment-editor .scenario-remove-adjustment { grid-column: 1 / -1; justify-self: start; color: var(--negative); }
.scenario-add-adjustment { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; border-top: 1px solid var(--line); padding-top: 18px; }
.scenario-editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.scenario-editor-form .form-error:empty { display: none; }
.scenario-result { border-width: 2px; }
.scenario-result.is-improves { border-color: color-mix(in srgb, var(--positive) 50%, var(--line)); }
.scenario-result.is-pressure { border-color: color-mix(in srgb, var(--negative) 50%, var(--line)); }
.scenario-result-identity { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 20px; color: var(--text); background: var(--accent-soft); }
.scenario-result-identity > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-forest); background: var(--surface); }
.scenario-result-identity svg { width: 18px; height: 18px; }
.scenario-result-identity div { display: grid; gap: 2px; }
.scenario-result-identity small { color: var(--text-soft); }
.scenario-result-heading h3 { max-width: 680px; font-size: 38px; line-height: 1.12; letter-spacing: 0; }
.scenario-result-comparison { font-size: 16px !important; font-weight: 650; }
.scenario-impact-classification { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 20px 18px; border-left: 3px solid var(--text-muted); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 12px 14px; background: var(--surface-soft); }
.scenario-result.is-improves .scenario-impact-classification { border-left-color: var(--positive); }
.scenario-result.is-pressure .scenario-impact-classification { border-left-color: var(--negative); }
.scenario-impact-classification > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }
.scenario-result.is-improves .scenario-impact-classification > span { color: var(--positive); }
.scenario-result.is-pressure .scenario-impact-classification > span { color: var(--negative); }
.scenario-impact-classification svg { width: 18px; height: 18px; }
.scenario-impact-classification div { display: grid; gap: 2px; }
.scenario-impact-classification small { color: var(--text-muted); line-height: 1.45; }
.scenario-result-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.scenario-result-details > div { display: grid; gap: 4px; border-bottom: 1px solid var(--line); padding: 15px 20px; }
.scenario-result-details > div:nth-child(odd) { border-right: 1px solid var(--line); }
.scenario-result-details dt { color: var(--text-muted); font-size: 12px; }
.scenario-result-details dd { margin: 0; font-weight: 650; }
.scenario-adjustment-summary { margin: 0; padding: 16px 20px 20px; }
.scenario-adjustment-summary summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 650; }
.scenario-adjustment-summary ul { display: grid; gap: 8px; margin: 8px 0 0; padding-left: 22px; color: var(--text-soft); }
.scenario-outdated-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-left: 3px solid var(--warning); padding: 10px 0 10px 14px; color: var(--text-soft); }
.scenario-delete-confirmation { display: grid; gap: 16px; }
.scenario-delete-confirmation p { margin: 0; color: var(--text-soft); }

.credits-screen { max-width: 880px; margin: 0 auto; }
.subscriptions-screen { width: min(100%, 880px); margin-inline: auto; }
.subscription-cost-summary { display: grid; gap: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-medium); padding: 16px 18px; background: var(--surface-soft); }
.subscription-cost-summary h3, .subscription-cost-summary p { margin: 0; }
.subscription-cost-summary h3 { font-size: 19px; line-height: 1.25; }
.subscription-cost-summary > dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.subscription-cost-summary > dl > div { min-width: 0; display: grid; gap: 3px; border-left: 1px solid var(--line-strong); padding-inline: 14px; }
.subscription-cost-summary > dl > div:first-child { border-left: 0; padding-left: 0; }
.subscription-cost-summary dt { color: var(--text-muted); font-size: 12px; }
.subscription-cost-summary dd { margin: 0; font-size: 18px; font-weight: 720; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.subscription-cost-summary > p { color: var(--warning); font-size: 13px; font-weight: 650; }
.subscription-review-section { display: grid; gap: 12px; }
.subscription-candidate { display: grid; gap: 14px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--radius-medium); padding: 18px; background: var(--surface); box-shadow: var(--shadow-low); }
.subscription-merchant { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.subscription-merchant-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-forest); background: var(--accent-soft); font-weight: 750; }
.subscription-merchant h4, .subscription-merchant p { margin: 0; }
.subscription-merchant h4 { overflow-wrap: anywhere; font-size: 18px; }
.subscription-merchant small, .subscription-status-text { color: var(--text-muted); font-size: 12px; }
.subscription-merchant > strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.subscription-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.subscription-facts > div { display: grid; gap: 4px; padding: 12px; }
.subscription-facts > div + div { border-left: 1px solid var(--line); }
.subscription-facts dt { color: var(--text-muted); font-size: 12px; }
.subscription-facts dd { margin: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.subscription-reason { margin: 0; color: var(--text-soft); font-size: 14px; }
.subscription-existing { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; border-left: 3px solid var(--warning); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 12px 14px; background: var(--surface-soft); }
.subscription-existing svg { width: 20px; height: 20px; color: var(--warning); }
.subscription-existing p { margin: 0; color: var(--text-soft); }
.subscription-lifecycle-notice { display: grid; gap: 10px; border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--line)); border-radius: var(--radius-small); padding: 14px; background: color-mix(in srgb, var(--warning) 7%, var(--surface)); }
.subscription-lifecycle-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; }
.subscription-lifecycle-heading > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--warning); background: color-mix(in srgb, var(--warning) 13%, var(--surface)); }
.subscription-lifecycle-heading svg { width: 17px; height: 17px; }
.subscription-lifecycle-heading h5, .subscription-lifecycle-heading p, .subscription-lifecycle-notice > p { margin: 0; }
.subscription-lifecycle-heading h5 { font-size: 16px; line-height: 1.3; }
.subscription-lifecycle-heading p { color: var(--text-muted); font-size: 12px; font-weight: 650; }
.subscription-lifecycle-impact { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.subscription-lifecycle-impact strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.subscription-lifecycle-impact span { color: var(--warning); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.subscription-lifecycle-notice > p { color: var(--text-soft); line-height: 1.5; }
.subscription-lifecycle-notice details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--text-soft); font-size: 13px; font-weight: 680; }
.subscription-lifecycle-notice details > div { display: grid; gap: 10px; padding-top: 5px; color: var(--text-soft); font-size: 13px; }
.subscription-lifecycle-notice details p { margin: 0; }
.subscription-lifecycle-notice details dl { display: grid; gap: 7px; margin: 0; }
.subscription-lifecycle-notice details dl > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.subscription-lifecycle-notice details dd { margin: 0; text-align: right; }
.subscription-lifecycle-notice details ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.subscription-lifecycle-notice details li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.subscription-lifecycle-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.subscription-duplicate-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.subscription-duplicate-comparison article { min-width: 0; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: var(--radius-small); padding: 10px; background: var(--surface); }
.subscription-duplicate-comparison strong, .subscription-duplicate-comparison span { overflow-wrap: anywhere; }
.subscription-duplicate-comparison span { color: var(--text-muted); font-size: 12px; }
.subscription-evidence summary, .subscription-state-group > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 680; }
.subscription-evidence ol { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.subscription-evidence li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.subscription-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.subscription-state-group { border-top: 1px solid var(--line-strong); padding-top: 8px; }
.subscription-state-group > summary span { color: var(--text-muted); }
.subscription-state-group > div { display: grid; gap: 12px; padding-top: 12px; }
.subscription-separate { min-height: 44px; display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); line-height: 1.45; }
.subscription-separate input { margin-top: 4px; }

.strategy-screen { width: min(100%, 880px); margin-inline: auto; padding-top: 4px; }
.weekly-plan-screen { width: min(100%, 820px); margin-inline: auto; padding-top: 4px; }
.weekly-plan-header { align-items: start; }
.weekly-plan-header .section-kicker { margin: 0 0 4px; }
.weekly-conclusion { position: relative; min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; overflow: hidden; border-radius: var(--radius-large); padding: clamp(24px, 5vw, 42px); color: var(--brand-cream); background: var(--brand-forest); animation: weekly-enter var(--motion-structural) var(--ease-enter) both; }
.weekly-conclusion::after { position: absolute; right: -34px; bottom: -42px; width: 150px; height: 150px; border: 1px solid rgba(244, 239, 226, .13); border-radius: 50%; content: ""; }
.weekly-conclusion > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-forest); background: var(--brand-cream); }
.weekly-conclusion svg { width: 20px; }
.weekly-conclusion p, .weekly-conclusion h2, .weekly-conclusion small { position: relative; z-index: 1; margin: 0; color: inherit; }
.weekly-conclusion p { margin-bottom: 9px; color: rgba(244, 239, 226, .7); font-size: 12px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
.weekly-conclusion h2 { max-width: 680px; font-size: 42px; line-height: 1.08; overflow-wrap: anywhere; }
.weekly-conclusion small { display: block; margin-top: 14px; color: rgba(244, 239, 226, .72); line-height: 1.5; }
.weekly-primary { margin-top: 2px; }
.weekly-action { min-width: 0; overflow: hidden; }
.weekly-action.is-primary { display: grid; gap: 18px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-medium) var(--radius-medium) 0; padding: 23px 24px; background: var(--surface); box-shadow: var(--shadow-low); }
.weekly-action-label { margin: 0; color: var(--accent-strong); font-size: 12px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.weekly-action-heading { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.weekly-action-heading > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.weekly-action-heading svg { width: 19px; }
.weekly-action h3, .weekly-action p { margin: 0; }
.weekly-action h3 { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.weekly-action-heading p { margin-top: 6px; color: var(--text-soft); line-height: 1.55; }
.weekly-action-impact { width: fit-content; border-radius: 999px; padding: 8px 12px; color: var(--accent-strong); background: var(--accent-soft); font-size: 14px; font-weight: 720; }
.weekly-action-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.weekly-action-controls > button { min-height: 44px; }
.weekly-action-controls .text-button { color: var(--text-muted); }
.weekly-secondary { display: grid; gap: 12px; }
.weekly-secondary > h2, .weekly-why > h2 { margin: 0; font-size: 17px; }
.weekly-secondary > div { display: grid; border-top: 1px solid var(--line-strong); }
.weekly-action.is-secondary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; border-bottom: 1px solid var(--line-strong); padding: 18px 2px; }
.weekly-action.is-secondary .weekly-action-heading { grid-column: 1; }
.weekly-action.is-secondary .weekly-action-heading > span { width: 36px; height: 36px; background: var(--surface-soft); }
.weekly-action.is-secondary h3 { font-size: 17px; }
.weekly-action.is-secondary .weekly-action-heading p { font-size: 13px; }
.weekly-action.is-secondary .weekly-action-impact { grid-column: 1; margin-left: 50px; padding: 0; background: transparent; }
.weekly-action.is-secondary .weekly-action-controls { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
.weekly-why { display: grid; gap: 12px; border-top: 1px solid var(--line-strong); padding-top: 22px; }
.weekly-why > div { display: grid; gap: 4px; }
.weekly-why details { border-bottom: 1px solid var(--line); }
.weekly-why summary { min-height: 52px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px; gap: 10px; align-items: center; color: var(--text); font-weight: 680; cursor: pointer; }
.weekly-why summary > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); font-size: 12px; }
.weekly-why summary svg { width: 18px; transition: transform var(--motion-disclosure) var(--ease-standard); }
.weekly-why details[open] summary svg { transform: rotate(90deg); }
.weekly-why details > div { display: grid; gap: 7px; padding: 0 0 16px 38px; }
.weekly-why details p, .weekly-why details small { margin: 0; color: var(--text-soft); line-height: 1.5; }
.weekly-why details small { color: var(--text-muted); }
.weekly-evidence { display: grid; gap: 4px; margin: 2px 0; padding-left: 18px; color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.weekly-history { display: grid; gap: 12px; border-top: 1px solid var(--line-strong); padding-top: 22px; }
.weekly-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.weekly-section-heading h2, .weekly-section-heading p { margin: 0; }
.weekly-section-heading h2 { font-size: 18px; }
.weekly-section-heading > span { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; color: var(--text-muted); background: var(--surface-soft); font-size: 12px; font-weight: 720; }
.weekly-history ol { display: grid; margin: 0; padding: 0; list-style: none; }
.weekly-history li { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 13px 2px; }
.weekly-history li > div { min-width: 0; display: grid; gap: 3px; }
.weekly-history strong { overflow-wrap: anywhere; font-size: 14px; }
.weekly-history li span { color: var(--text-muted); font-size: 12px; }
.weekly-history-status { max-width: 220px; color: var(--text-muted); font-size: 12px; line-height: 1.35; text-align: right; }
.weekly-history-status.is-changed, .weekly-history-status.is-still_relevant { color: var(--warning); font-weight: 680; }
.weekly-confidence { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; border-radius: var(--radius-medium); padding: 18px 20px; background: var(--surface-soft); }
.weekly-confidence h2, .weekly-confidence p, .weekly-confidence .section-kicker { margin: 0; }
.weekly-confidence h2 { margin-top: 3px; font-size: 18px; }
.weekly-confidence > p { grid-column: 1 / -1; color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.weekly-freshness { border-radius: 999px; padding: 6px 10px; color: var(--positive); background: color-mix(in srgb, var(--positive) 13%, transparent); font-size: 12px; font-weight: 700; }
.weekly-freshness.is-stale { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.weekly-boundary { display: flex; gap: 9px; align-items: flex-start; margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.weekly-boundary svg { width: 18px; flex: 0 0 auto; }
.weekly-support-disclosure, .strategy-support-disclosure { border-top: 1px solid var(--line-strong); }
.weekly-support-disclosure > summary, .strategy-support-disclosure > summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 690; }
.weekly-support-disclosure > summary svg, .strategy-support-disclosure > summary svg { width: 18px; color: var(--text-muted); transition: transform var(--motion-disclosure) var(--ease-standard); }
.weekly-support-disclosure[open] > summary svg, .strategy-support-disclosure[open] > summary svg { transform: rotate(90deg); }
.weekly-support-disclosure > div, .strategy-support-disclosure > div { display: grid; gap: var(--space-6); padding: var(--space-2) 0 var(--space-2); }
.weekly-support-disclosure .weekly-why, .weekly-support-disclosure .weekly-history { padding-top: 0; }
.weekly-preview { display: grid; gap: 20px; }
.weekly-preview header { display: grid; gap: 6px; }
.weekly-preview h3, .weekly-preview header p { margin: 0; }
.weekly-preview h3 { font-size: 25px; line-height: 1.18; }
.weekly-preview header > p:last-child { color: var(--text-soft); line-height: 1.5; }
.weekly-preview dl { display: grid; margin: 0; border-top: 1px solid var(--line-strong); }
.weekly-preview dl > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 13px 0; }
.weekly-preview dt { color: var(--text-muted); font-size: 13px; }
.weekly-preview dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.weekly-preview-boundary { margin: 0; border-left: 3px solid var(--accent); padding: 11px 13px; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; line-height: 1.5; }
.weekly-postpone { display: grid; gap: 20px; }
.weekly-postpone header { display: grid; gap: 5px; }
.weekly-postpone h3, .weekly-postpone p { margin: 0; }
.weekly-postpone h3 { font-size: 25px; line-height: 1.2; }
.weekly-postpone header > p:last-child { color: var(--text-soft); }
.weekly-postpone .button-stack { display: grid; gap: 8px; }
.weekly-postpone .button-stack button { width: 100%; min-height: 48px; }
.smart-alert-sheet { display: grid; gap: 20px; }
.smart-alert-sheet > header { display: grid; gap: 5px; }
.smart-alert-sheet header p { margin: 0; }
.smart-alert-sheet > header > p:last-child { color: var(--text-soft); }
.smart-alert-list { display: grid; gap: 10px; }
.smart-alert { min-width: 0; display: grid; gap: 12px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-medium); padding: 16px; background: var(--surface); }
.smart-alert.is-important { border-left-color: var(--negative); }
.smart-alert.is-review { border-left-color: var(--warning); }
.smart-alert.is-acknowledged { border-left-color: var(--line-strong); background: var(--surface-soft); }
.smart-alert-heading { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: start; }
.smart-alert-heading > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.smart-alert.is-important .smart-alert-heading > span { color: var(--negative); background: color-mix(in srgb, var(--negative) 12%, transparent); }
.smart-alert.is-review .smart-alert-heading > span { color: var(--warning); background: color-mix(in srgb, var(--warning) 13%, transparent); }
.smart-alert-heading svg { width: 18px; }
.smart-alert-heading p, .smart-alert-heading h3, .smart-alert-status { margin: 0; }
.smart-alert-heading p { color: var(--text-muted); font-size: 11px; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.smart-alert-heading h3 { margin-top: 3px; font-size: 16px; line-height: 1.32; }
.smart-alert-status { color: var(--text-muted); font-size: 12px; }
.smart-alert-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.smart-alert-actions > button { min-height: 44px; }
.smart-alert-empty { display: grid; justify-items: center; gap: 8px; border-radius: var(--radius-medium); padding: 28px 18px; text-align: center; background: var(--surface-soft); }
.smart-alert-empty > svg { width: 40px; height: 40px; border-radius: 50%; padding: 9px; color: var(--positive); background: color-mix(in srgb, var(--positive) 13%, transparent); }
.smart-alert-empty h3, .smart-alert-empty p { margin: 0; }
.smart-alert-empty p { max-width: 360px; color: var(--text-soft); font-size: 14px; }
@keyframes weekly-enter { from { transform: translateY(5px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 620px) {
  .weekly-conclusion { grid-template-columns: 36px minmax(0, 1fr); gap: 13px; padding: 24px 19px; }
  .weekly-conclusion > span { width: 36px; height: 36px; }
  .weekly-conclusion h2 { font-size: 30px; }
  .weekly-action.is-primary { padding: 20px 17px; }
  .weekly-action.is-secondary { grid-template-columns: 1fr; }
  .weekly-action.is-secondary .weekly-action-controls { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-left: 50px; }
  .weekly-action-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-action-controls > button { min-width: 0; width: 100%; padding-inline: 10px; }
  .weekly-action-controls .text-button { grid-column: 1 / -1; }
  .weekly-history li { grid-template-columns: 1fr; }
  .weekly-history-status { max-width: none; text-align: left; }
  .weekly-confidence { grid-template-columns: 1fr; align-items: start; }
  .weekly-confidence > p { grid-column: 1; }
  .weekly-freshness { width: fit-content; }
  .weekly-preview dl > div { grid-template-columns: 1fr; gap: 5px; }
  .weekly-preview dd { text-align: left; }
}
.strategy-saved-status { display: grid; gap: 8px; border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: var(--radius-small); padding: 14px 16px; background: var(--surface); }
.strategy-saved-status:focus { outline: 3px solid color-mix(in srgb, var(--accent) 54%, transparent); outline-offset: 3px; }
.strategy-saved-status > div:first-child { display: flex; align-items: center; gap: 10px; }
.strategy-saved-status > div:first-child > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--accent); background: var(--accent-soft); }
.strategy-saved-status h2, .strategy-saved-status p { margin: 0; }
.strategy-saved-status small { color: var(--text-muted); }
.strategy-saved-status.is-outdated { border-left-color: var(--negative); }
.strategy-saved-status.is-needs_attention { border-left-color: var(--warning); }
.strategy-saved-status > button { justify-self: start; min-height: 48px; }
.strategy-goal-choice { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-small); padding: 14px; background: var(--surface-soft); }
.strategy-goal-choice label, .strategy-goal-choice h2 { margin: 0; color: var(--text); font-size: 15px; font-weight: 720; }
.strategy-goal-choice select { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); padding: 0 12px; color: var(--text); background: var(--surface); font: inherit; }
.strategy-goal-choice select:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 62%, transparent); outline-offset: 2px; }
.strategy-goal-choice small { color: var(--text-muted); }
.strategy-goal-choice.is-empty > button { justify-self: start; min-height: 48px; }
.strategy-save-actions { position: sticky; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px); z-index: 4; display: flex; justify-content: flex-end; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-small); padding: 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-soft); }
.strategy-save-actions button { min-height: 48px; }
.strategy-save-error { margin: 0; }
.strategy-mode-selector { min-width: 0; display: grid; gap: 9px; margin: 0; border: 0; padding: 0; }
.strategy-mode-selector legend { margin-bottom: 2px; color: var(--text-soft); font-size: 14px; font-weight: 680; }
.strategy-mode-selector > div { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); gap: 8px; }
.strategy-mode-selector label { position: relative; min-width: 0; cursor: pointer; }
.strategy-mode-selector input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.strategy-mode-selector span { min-height: 78px; display: grid; align-content: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); padding: 11px 12px; color: var(--text); background: var(--surface); transition: border-color var(--motion-press) var(--ease-standard), background var(--motion-press) var(--ease-standard), transform var(--motion-press) var(--ease-standard); }
.strategy-mode-selector strong, .strategy-mode-selector small { display: block; }
.strategy-mode-selector strong { font-size: 14px; line-height: 1.3; }
.strategy-mode-selector small { color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.strategy-mode-selector input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.strategy-mode-selector input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 62%, transparent); outline-offset: 3px; }
.strategy-mode-selector label:active span { transform: scale(.985); }
.strategy-mode-purpose { border-left: 3px solid var(--accent); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 12px 15px; background: var(--surface-soft); }
.strategy-mode-purpose p, .strategy-mode-purpose h2 { margin: 0; }
.strategy-mode-purpose h2 { font-size: 19px; line-height: 1.3; }
.strategy-position { min-width: 0; border-radius: var(--radius-large); padding: 24px 20px; color: var(--brand-cream); background: var(--brand-forest); box-shadow: var(--shadow-low); }
html[data-theme="dark"] .strategy-position { background: #15352c; }
.strategy-position p, .strategy-position h2 { margin: 0; color: var(--brand-cream); }
.strategy-position .section-kicker { color: rgba(244, 239, 226, .72); }
.strategy-position h2 { max-width: 680px; margin-top: 5px; font-size: 2.375rem; line-height: 1.13; overflow-wrap: anywhere; }
.strategy-position > p:last-of-type { margin-top: 12px; color: rgba(244, 239, 226, .72); font-size: 13px; }
.strategy-position.is-shortfall { background: color-mix(in srgb, var(--brand-forest) 78%, var(--negative)); }
.strategy-shortfall { display: inline-block; margin-top: 14px; border-radius: var(--radius-small); padding: 8px 10px; color: var(--brand-cream); background: rgba(0, 0, 0, .16); }
.strategy-section-heading { min-width: 0; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.strategy-section-heading p, .strategy-section-heading h2 { margin: 0; }
.strategy-section-heading h2 { font-size: 22px; line-height: 1.25; }
.strategy-section-heading > strong { font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.strategy-allocation { min-width: 0; display: grid; gap: 14px; }
.strategy-allocation-path { min-width: 0; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.strategy-allocation-path li { position: relative; min-width: 0; min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border-left: 2px solid var(--accent); padding: 7px 0 7px 22px; }
.strategy-allocation-path li::before { position: absolute; top: 50%; left: -6px; width: 10px; height: 10px; transform: translateY(-50%); border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); content: ""; }
.strategy-allocation-path li:first-child { border-top-left-radius: 8px; }
.strategy-allocation-path li:last-child { border-bottom-left-radius: 8px; }
.strategy-allocation-path li + li { border-top: 1px solid var(--line); }
.strategy-allocation-path span { min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--text-soft); }
.strategy-allocation-path i { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); font-size: 11px; font-style: normal; font-weight: 720; }
.strategy-allocation-path strong { font-size: 17px; text-align: right; overflow-wrap: anywhere; }
.strategy-allocation-gaps { border-left: 3px solid var(--warning); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 12px 14px; background: var(--surface-soft); }
.strategy-allocation-gaps ul { margin: 6px 0 0; padding-left: 20px; color: var(--text-soft); font-size: 13px; }
.strategy-primary-action { min-width: 0; border-radius: var(--radius-large); padding: 22px 20px; color: var(--brand-cream); background: var(--brand-forest); box-shadow: var(--shadow-low); }
html[data-theme="dark"] .strategy-primary-action { background: #15352c; }
.strategy-primary-action h2, .strategy-primary-action p { margin: 0; color: var(--brand-cream); }
.strategy-primary-action .section-kicker { color: rgba(244, 239, 226, .7); }
.strategy-primary-action h2 { margin-top: 5px; font-size: 25px; line-height: 1.18; }
.strategy-primary-action > p:not(.section-kicker) { max-width: 680px; margin-top: 9px; color: rgba(244, 239, 226, .78); line-height: 1.5; }
.strategy-primary-why { border-left: 2px solid rgba(244, 239, 226, .35); padding-left: 11px; }
.strategy-primary-impact { font-size: 17px; font-weight: 710; }
.strategy-primary-action > .primary-button { margin-top: 16px; color: var(--brand-forest); background: var(--brand-cream); box-shadow: none; }
.strategy-primary-action.is-quiet { color: var(--text); background: var(--surface); }
.strategy-primary-action.is-quiet h2, .strategy-primary-action.is-quiet p { color: var(--text); }
.strategy-primary-action.is-quiet > p:not(.section-kicker) { color: var(--text-soft); }
.strategy-evidence { margin-top: 12px; border-top: 1px solid var(--line); }
.strategy-primary-action .strategy-evidence { border-top-color: rgba(244, 239, 226, .17); }
.strategy-evidence summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-soft); cursor: pointer; font-size: 13px; font-weight: 680; }
.strategy-primary-action .strategy-evidence summary { color: rgba(244, 239, 226, .78); }
.strategy-evidence summary svg { width: 17px; transition: transform var(--motion-disclosure) var(--ease-standard); }
.strategy-evidence[open] summary svg { transform: rotate(90deg); }
.strategy-evidence dl { display: grid; gap: 0; margin: 0; }
.strategy-evidence dl > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border-top: 1px solid var(--line); padding: 8px 0; }
.strategy-primary-action .strategy-evidence dl > div { border-top-color: rgba(244, 239, 226, .13); }
.strategy-evidence dt { color: var(--text-muted); font-size: 12px; }
.strategy-primary-action .strategy-evidence dt { color: rgba(244, 239, 226, .62); }
.strategy-evidence dd { margin: 0; font-size: 13px; font-weight: 680; text-align: right; overflow-wrap: anywhere; }
.strategy-evidence > div > p { margin: 10px 0 0; color: var(--text-soft); font-size: 13px; }
.strategy-primary-action .strategy-evidence > div > p { color: rgba(244, 239, 226, .72); }
.strategy-priorities { display: grid; gap: 12px; }
.strategy-priorities > h2 { margin: 0; font-size: 21px; }
.strategy-priorities > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.strategy-priorities article { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-medium); padding: 16px; background: var(--surface); }
.strategy-priorities h3, .strategy-priorities p { margin: 0; }
.strategy-priorities h3 { font-size: 17px; }
.strategy-priorities article > p { margin-top: 6px; color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.strategy-priorities article > strong { display: block; margin-top: 10px; color: var(--accent-strong); font-size: 14px; }
.strategy-tradeoff { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: start; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); padding: 18px 0; }
.strategy-tradeoff > div:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.strategy-tradeoff h2, .strategy-tradeoff p { margin: 0; }
.strategy-tradeoff h2 { font-size: 19px; line-height: 1.35; }
.strategy-tradeoff div > p:last-child { margin-top: 6px; color: var(--text-muted); font-size: 13px; }
.strategy-confidence { display: grid; gap: 12px; }
.strategy-freshness { flex: 0 0 auto; border-radius: 999px; padding: 7px 10px; color: var(--text-soft); background: var(--surface-soft); font-size: 12px; font-weight: 680; }
.strategy-freshness.is-current { color: var(--positive); background: var(--accent-soft); }
.strategy-freshness.is-outdated { color: var(--negative); }
.strategy-confidence > p, .strategy-confidence > ul { margin: 0; color: var(--text-soft); font-size: 14px; }
.strategy-confidence > ul { padding-left: 20px; }
.strategy-confidence > details { border: 1px solid var(--line); border-radius: var(--radius-medium); background: var(--surface); }
.strategy-confidence > details > summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; cursor: pointer; font-weight: 680; }
.strategy-confidence > details > summary svg { width: 17px; transition: transform var(--motion-disclosure) var(--ease-standard); }
.strategy-confidence > details[open] > summary svg { transform: rotate(90deg); }
.strategy-confidence > details > div { border-top: 1px solid var(--line); padding: 13px 14px; }
.strategy-confidence > details p { margin: 0; color: var(--text-soft); font-size: 13px; }
.strategy-confidence dl { margin: 10px 0 0; }
.strategy-confidence dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border-top: 1px solid var(--line); padding: 8px 0; }
.strategy-confidence dt { color: var(--text-muted); }
.strategy-confidence dd { margin: 0; font-weight: 680; text-align: right; }
.strategy-comparison { min-width: 0; display: grid; gap: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-large); padding: 18px; background: var(--surface); box-shadow: var(--shadow-low); }
.strategy-comparison > label { display: grid; gap: 6px; color: var(--text-soft); font-size: 13px; font-weight: 650; }
.strategy-comparison select { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); padding: 0 12px; color: var(--text); background: var(--surface-soft); }
.strategy-comparison-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 13px; }
.strategy-comparison-head strong { font-size: 16px; overflow-wrap: anywhere; }
.strategy-comparison-objectives, .strategy-comparison-tradeoffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.strategy-comparison-objectives p, .strategy-comparison-tradeoffs p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.strategy-comparison-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(84px, .7fr) minmax(84px, .7fr); gap: 12px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; }
.strategy-comparison-row span { color: var(--text-muted); font-size: 13px; }
.strategy-comparison-row strong { font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.strategy-comparison-same { margin: 0; color: var(--text-soft); }
.strategy-comparison-tradeoffs { border-top: 1px solid var(--line); padding-top: 12px; }
.strategy-guidance-note { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; border-radius: var(--radius-small); padding: 12px 14px; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; line-height: 1.5; }
.strategy-guidance-note svg { width: 20px; color: var(--accent-strong); }
.strategy-support-disclosure .strategy-comparison { border-radius: var(--radius-medium); box-shadow: none; }
.credits-library, .credit-form-screen, .credit-calculator-screen, .credit-review-screen { display: grid; gap: 20px; }
.credit-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.credit-paths > button { min-height: 132px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 3px 12px; align-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius-large); padding: 18px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-low); text-align: left; }
.credit-paths > button > span { grid-row: span 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-forest); background: var(--accent-soft); }
.credit-paths strong { font-size: 17px; }
.credit-paths small { color: var(--text-soft); line-height: 1.45; }
.credit-list { display: grid; gap: 12px; }
.credit-list .section-heading-row > span { color: var(--text-muted); font-size: 13px; }
.credit-list-item { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-medium); background: var(--surface); }
.credit-list-item > button { width: 100%; min-height: 78px; display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; gap: 12px; align-items: center; border: 0; padding: 14px 16px; color: var(--text); background: transparent; text-align: left; }
.credit-list-item span { min-width: 0; display: grid; gap: 3px; }
.credit-list-item small { color: var(--text-muted); line-height: 1.35; }
.credit-list-item b { font-size: var(--financial-secondary-size); white-space: nowrap; }
.credit-form { display: grid; gap: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-large); padding: 20px; background: var(--surface); box-shadow: var(--shadow-low); }
.credit-form .form-error { margin: -10px 0 0; }
.credit-optional { border: 1px solid var(--line); border-radius: var(--radius-medium); background: var(--surface-soft); }
.credit-optional > summary, .credit-schedule-summary > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; cursor: pointer; font-weight: 650; }
.credit-optional > summary svg, .credit-schedule-summary > summary svg { width: 18px; transition: transform var(--motion-disclosure) var(--ease-standard); }
.credit-optional[open] > summary svg, .credit-schedule-summary[open] > summary svg { transform: rotate(90deg); }
.credit-optional > div { display: grid; gap: 14px; border-top: 1px solid var(--line); padding: 16px; }
.credit-impact { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-large); padding: 20px; background: var(--surface); box-shadow: var(--shadow-low); }
.credit-impact.is-shortfall { border-left: 4px solid var(--warning); }
.credit-impact h3, .credit-impact > p { margin-top: 0; }
.credit-impact-value, .credit-calculator-primary { margin: 8px 0 10px !important; color: var(--text); font-size: 3.6rem; line-height: 1; font-weight: 735; font-variant-numeric: tabular-nums; }
.credit-impact > p:not(.section-kicker):not(.credit-impact-value) { color: var(--text-soft); line-height: 1.5; }
.credit-impact dl, .credit-result-facts, .credit-review-facts, .credit-detail dl, .credit-schedule-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 0; border-top: 1px solid var(--line); }
.credit-impact dl > div, .credit-result-facts > div, .credit-review-facts > div, .credit-detail dl > div, .credit-schedule-summary dl > div { display: grid; gap: 4px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.credit-impact dl > div:nth-child(odd), .credit-result-facts > div:nth-child(odd), .credit-review-facts > div:nth-child(odd), .credit-detail dl > div:nth-child(odd), .credit-schedule-summary dl > div:nth-child(odd) { padding-right: 14px; }
.credit-impact dl > div:nth-child(even), .credit-result-facts > div:nth-child(even), .credit-review-facts > div:nth-child(even), .credit-detail dl > div:nth-child(even), .credit-schedule-summary dl > div:nth-child(even) { padding-left: 14px; }
.credit-impact dt, .credit-result-facts dt, .credit-review-facts dt, .credit-detail dt, .credit-schedule-summary dt { color: var(--text-muted); font-size: 13px; }
.credit-impact dd, .credit-result-facts dd, .credit-review-facts dd, .credit-detail dd, .credit-schedule-summary dd { margin: 0; color: var(--text); font-weight: 680; overflow-wrap: anywhere; }
.credit-calculator-result { display: grid; gap: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-large); padding: 22px; background: var(--surface); box-shadow: var(--shadow-low); }
.credit-calculator-result h3, .credit-calculator-result > p { margin: 0; }
.credit-estimate-note, .credit-principal-note { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.credit-principal-note { border-left-color: var(--warning); }
.credit-schedule-summary { border: 1px solid var(--line); border-radius: var(--radius-medium); }
.credit-schedule-summary dl { margin: 0; border-top: 1px solid var(--line); padding: 0 14px 12px; }
.credit-detail, .credit-confirmation { display: grid; gap: 18px; }
.credit-detail dl { margin-top: 0; }
.credit-confirmation p { margin: 0; color: var(--text-soft); line-height: 1.5; }
.recovery-position { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.recovery-position span { min-width: 0; display: grid; gap: 3px; }
.recovery-position small { color: var(--text-muted); font-size: 12px; }
.recovery-position strong { color: var(--warning); font-size: 22px; }
.recovery-policy-note { margin: 0; color: var(--text-soft); font-size: 14px; }
.recovery-causes, .recovery-actions { display: grid; gap: 7px; }
.recovery-causes h3, .recovery-actions h3 { margin: 0 0 3px; font-size: 14px; }
.recovery-causes span { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 5px 0; }
.recovery-causes small { color: var(--text-soft); font-size: 13px; }
.recovery-causes strong { font-size: 13px; }
.recovery-action { width: 100%; min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 7px 0; color: var(--text); background: transparent; text-align: left; }
.recovery-action span { min-width: 0; }
.recovery-action strong, .recovery-action small { display: block; }
.recovery-action strong { font-size: 14px; }
.recovery-action small { margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.recovery-action svg { width: 17px; color: var(--text-muted); }
.essential-equivalent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: var(--radius-small); background: var(--line); }
.essential-equivalent span { min-width: 0; display: grid; gap: 3px; align-content: center; min-height: 70px; padding: 9px; background: var(--surface-soft); }
.essential-equivalent small { color: var(--text-muted); font-size: 11px; line-height: 1.25; }
.essential-equivalent strong { font-size: 14px; }
.field-group { min-width: 0; margin: 0; border: 0; padding: 0; }
.field-group legend { margin-bottom: 7px; color: var(--text-soft); font-size: 13px; font-weight: 620; }
.period-confirmation > p { margin: 0; color: var(--text-soft); }
.period-confirmation ul { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 13px; }
.settings-group h3 { margin: 0 0 7px 4px; color: var(--text-muted); font-size: 13px; font-weight: 650; }
.settings-plan-entry { width: 100%; min-height: 68px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 14px; align-items: center; border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 10px 2px; color: var(--text); background: transparent; text-align: left; }
.settings-plan-entry span, .settings-plan-entry strong, .settings-plan-entry small { display: block; }
.settings-plan-entry strong { font-size: 16px; }
.settings-plan-entry small { margin-top: 3px; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.settings-plan-entry svg { width: 17px; color: var(--text-muted); }
.planning-board { min-width: 0; display: grid; overflow: hidden; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-low); }
.board-timeline { min-width: 0; padding: 20px 16px 18px; }
.board-period-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.board-period-head h2 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 710; }
.board-final { flex: 0 0 auto; display: grid; justify-items: end; }
.board-final small { color: var(--text-muted); font-size: 12px; }
.board-final strong { font-size: 24px; line-height: 1.15; }
.board-final strong.is-warning { color: var(--negative); }
.board-chart { position: relative; min-height: var(--board-event-height); margin-top: 17px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.board-position-line { position: absolute; right: 8px; bottom: 25px; left: 8px; width: calc(100% - 16px); height: 86px; overflow: visible; }
.board-position-line line { stroke: color-mix(in srgb, var(--warning) 48%, transparent); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.board-position-line polyline { fill: none; stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.planning-board.is-shortfall .board-position-line polyline { stroke: var(--negative); }
.planning-board.has-plan-change .board-position-line polyline { stroke-dasharray: 260; animation: board-line-update var(--motion-structural) var(--ease-enter) both; }
.board-daily-pressure { position: absolute; right: 0; bottom: 3px; left: 0; overflow: hidden; color: var(--text-muted); font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.board-event { position: absolute; top: calc(10px + var(--event-lane) * 54px); left: clamp(58px, var(--event-position), calc(100% - 58px)); z-index: 2; width: 124px; min-height: 44px; transform: translateX(-50%); border: 0; padding: 0 5px 0 18px; color: var(--text); background: transparent; text-align: left; }
.board-event > i { position: absolute; top: 6px; left: 2px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--negative); box-shadow: 0 0 0 1px var(--line-strong); }
.board-event > i::after { position: absolute; top: 8px; left: 2px; width: 1px; height: 24px; content: ""; background: var(--line-strong); }
.board-event.is-income > i { background: var(--positive); }
.board-event.is-planned > i { background: var(--warning); }
.board-event span, .board-event strong, .board-event small { display: block; min-width: 0; }
.board-event strong, .board-event small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-event strong { font-size: 12px; }
.board-event small { margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.board-event:focus-visible > i { transform: scale(1.25); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.board-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--text-muted); font-size: 12px; }
.board-collapsed-events, .board-lowest { width: 100%; min-height: 50px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 7px 0; color: var(--text-soft); background: transparent; text-align: left; }
.board-collapsed-events svg, .board-lowest svg { width: 17px; color: var(--text-muted); }
.board-lowest { grid-template-columns: minmax(0, 1fr) auto 18px; }
.board-lowest span { color: var(--text-muted); font-size: 12px; }
.board-lowest strong { font-size: 13px; text-align: right; }
.board-lowest.is-shortfall strong, .board-lowest.is-shortfall span { color: var(--negative); }
.board-no-events { margin: 12px 0 0; color: var(--text-soft); font-size: 13px; }
.board-after-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin-top: 14px; border-left: 2px solid var(--line-strong); padding-left: 11px; }
.board-after-plan span, .board-after-plan small { color: var(--text-muted); font-size: 12px; }
.board-after-plan strong { font-size: 13px; }
.board-after-plan small { grid-column: 1 / -1; }
.board-unavailable { min-height: 250px; display: grid; align-content: center; justify-items: start; gap: 9px; border-top: 1px solid var(--line); margin-top: 18px; padding: 24px 0; }
.board-unavailable > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); }
.board-unavailable h3, .board-unavailable p { margin: 0; }
.board-unavailable h3 { font-size: 18px; }
.board-unavailable p { max-width: 440px; color: var(--text-soft); font-size: 14px; }
.board-side { position: relative; display: grid; align-content: start; padding: 0 16px 4px 34px; }
.board-side::before { position: absolute; top: 18px; bottom: 28px; left: 18px; width: 1px; content: ""; background: var(--line-strong); }
.board-lane { position: relative; display: grid; gap: 13px; border-top: 1px solid var(--line); padding: 19px 0 22px; }
.board-lane-dot { position: absolute; top: 25px; left: -20px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--line-strong); }
.board-lane.is-needs-attention .board-lane-dot, .board-lane.is-off_track .board-lane-dot, .board-lane.is-at_risk .board-lane-dot, .board-lane.is-unfunded .board-lane-dot { background: var(--warning); }
.board-lane header h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.board-lane header > span { display: inline-block; margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.protection-layers { display: grid; gap: 1px; overflow: hidden; border-radius: var(--radius-small); background: var(--line); }
.protection-layer { position: relative; display: grid; gap: 7px; padding: 14px; background: var(--surface-soft); }
.protection-layer > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.protection-layer small { color: var(--text-muted); font-size: 12px; }
.protection-layer strong { font-size: 17px; text-align: right; }
.protection-layer p { margin: 0; color: var(--text-soft); font-size: 12px; }
.protection-layer .text-button { justify-self: start; margin-left: -10px; }
.protection-status { color: var(--text) !important; font-weight: 640; }
.protection-note { color: var(--text-muted) !important; line-height: 1.45; }
.board-progress { height: 5px; overflow: hidden; border-radius: 5px; background: var(--surface-quiet); }
.board-progress i { display: block; width: min(100%, var(--board-progress)); height: 100%; transform-origin: left; background: var(--accent); }
.planning-board.has-safety-change .board-protection .board-progress i, .planning-board.has-goal-change .board-goal .board-progress i { animation: progress-replace var(--motion-structural) var(--ease-enter) both; }
.board-goal > p { margin: 0; color: var(--text-soft); font-size: 13px; }
.goal-pressure-progress { display: grid; gap: 8px; }
.goal-pressure-progress > span { color: var(--text-soft); font-size: 12px; }
.goal-pressure-progress strong { color: var(--text); font-size: 19px; }
.goal-pressure-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border-radius: var(--radius-small); background: var(--line); }
.goal-pressure-values > div { min-width: 0; display: grid; gap: 3px; padding: 11px; background: var(--surface-soft); }
.goal-pressure-values dt { color: var(--text-muted); font-size: 12px; }
.goal-pressure-values dd { margin: 0; font-size: 15px; font-weight: 700; }
.goal-pressure-status.is-warning { color: var(--warning); font-weight: 650; }
.goal-pressure-deadline { color: var(--text-muted) !important; font-size: 12px !important; }
.board-lane > .text-button { justify-self: start; margin-left: -10px; }
.plan-decision-overview { min-width: 0; overflow: hidden; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-low); }
.plan-decision-primary { display: grid; gap: 5px; padding: 22px 18px 20px; color: var(--brand-cream); background: var(--brand-forest); }
html[data-theme="dark"] .plan-decision-primary { background: #15352c; }
.plan-decision-primary .section-kicker { color: #b9d7cc; }
.plan-decision-primary h2, .plan-decision-primary p { margin: 0; }
.plan-decision-primary h2 { max-width: 560px; font-size: 18px; line-height: 1.28; font-weight: 660; }
.plan-decision-shortfall { color: #f0c78b; font-size: 13px; }
.plan-daily-guide { display: grid; gap: 2px; margin-top: 13px; border-top: 1px solid rgba(244, 239, 226, .2); padding-top: 13px; }
.plan-daily-guide span { color: #b9d7cc; font-size: 12px; font-weight: 650; }
.plan-daily-guide strong { font-size: 22px; line-height: 1.2; }
.plan-daily-guide small, .plan-daily-unavailable { max-width: 620px; color: #d6e2dd; font-size: 12px; }
.plan-daily-unavailable { margin-top: 12px !important; border-top: 1px solid rgba(244, 239, 226, .2); padding-top: 12px; }
.plan-decision-section { position: relative; min-width: 0; border-bottom: 1px solid var(--line); padding: 20px 18px 20px 42px; }
.plan-decision-section::before { position: absolute; top: 0; bottom: 0; left: 22px; width: 1px; content: ""; background: var(--line-strong); }
.plan-decision-section::after { position: absolute; top: 27px; left: 18px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; content: ""; background: var(--accent); box-shadow: 0 0 0 1px var(--line-strong); }
.plan-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-section-heading h3, .plan-decision-section h3 { margin: 0; font-size: 18px; line-height: 1.28; }
.plan-section-heading > strong { font-size: 18px; text-align: right; overflow-wrap: anywhere; }
.plan-accounted > summary { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; list-style: none; cursor: pointer; }
.plan-accounted > summary::-webkit-details-marker { display: none; }
.plan-accounted > summary > span { min-width: 0; display: grid; gap: 2px; }
.plan-accounted > summary > span > strong { font-size: 17px; line-height: 1.3; }
.plan-accounted > summary > .financial-value-secondary { max-width: 150px; text-align: right; overflow-wrap: anywhere; }
.plan-accounted > summary > svg { width: 17px; color: var(--text-muted); transition: transform var(--motion-disclosure) var(--ease-standard); }
.plan-accounted[open] > summary > svg { transform: rotate(90deg); }
.plan-accounted-body > p { margin: 7px 0 13px; color: var(--text-soft); font-size: 13px; }
.plan-accounted dl { display: grid; gap: 1px; margin: 0; background: var(--line); }
.plan-accounted dl > div { min-width: 0; min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 11px; background: var(--surface-soft); }
.plan-accounted dt { color: var(--text-soft); font-size: 13px; }
.plan-accounted dd { margin: 0; font-size: 14px; font-weight: 720; text-align: right; overflow-wrap: anywhere; }
.plan-commitments ol, .plan-technical-body ol { display: grid; gap: 1px; margin: 12px 0 0; padding: 0; list-style: none; background: var(--line); }
.plan-commitments li, .plan-technical-body li { min-width: 0; background: var(--surface); }
.plan-commitments li > button, .plan-technical-body li > button { width: 100%; min-height: 60px; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; border: 0; padding: 8px 0; color: var(--text); background: transparent; text-align: left; }
.plan-commitments button > span, .plan-technical-body button > span { min-width: 0; }
.plan-commitments strong, .plan-commitments small, .plan-technical-body li strong, .plan-technical-body li small { display: block; overflow-wrap: anywhere; }
.plan-commitments strong, .plan-technical-body li strong { font-size: 14px; }
.plan-commitments small, .plan-technical-body li small { margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.plan-commitments b, .plan-technical-body li b { max-width: 150px; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.plan-commitments svg, .plan-technical-body li svg { width: 17px; color: var(--text-muted); }
.plan-empty-copy { margin: 10px 0 0; color: var(--text-muted); font-size: 13px; }
.plan-uncertainty { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; background: var(--surface-soft); }
.plan-uncertainty::before, .plan-uncertainty::after { display: none; }
.plan-uncertainty > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--warning); background: var(--surface); }
.plan-uncertainty > span svg { width: 18px; }
.plan-uncertainty p, .plan-uncertainty ul { margin: 6px 0 0; color: var(--text-soft); font-size: 13px; }
.plan-uncertainty ul { display: grid; gap: 5px; padding-left: 18px; }
.plan-decision-action { display: grid; gap: 15px; align-items: center; }
.plan-decision-action p:not(.section-kicker) { margin: 6px 0 0; color: var(--text-soft); font-size: 13px; }
.plan-decision-action > button { min-height: 44px; justify-self: start; }
.plan-technical-details { border-bottom: 1px solid var(--line-strong); }
.plan-technical-details > summary { min-height: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 8px 18px; font-size: 14px; font-weight: 680; }
.plan-technical-details > summary svg { width: 17px; transition: transform var(--motion-disclosure) var(--ease-standard); }
.plan-technical-details[open] > summary svg { transform: rotate(90deg); }
.plan-technical-body { display: grid; gap: 20px; border-top: 1px solid var(--line); padding: 18px; }
.plan-technical-body .plan-daily-guide { margin: 0; border-left: 2px solid var(--accent); border-top: 0; padding: 2px 0 2px 12px; }
.plan-technical-body .plan-daily-guide span { color: var(--text-muted); }
.plan-technical-body .plan-daily-guide strong { color: var(--text); font-size: var(--financial-secondary-size); }
.plan-technical-body .plan-daily-guide small, .plan-technical-body .plan-daily-unavailable { color: var(--text-soft); }
.plan-technical-body .plan-daily-unavailable { margin: 0 !important; border: 0; padding: 0; }
.plan-technical-body > dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); }
.plan-technical-body > dl > div { min-width: 0; display: grid; gap: 4px; padding: 12px; background: var(--surface-soft); }
.plan-technical-body dt { color: var(--text-muted); font-size: 12px; }
.plan-technical-body dd { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.plan-technical-body h4 { margin: 0; font-size: 15px; }
.board-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); background: var(--surface-soft); }
.board-actions button { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 7px; place-content: center; align-items: center; border: 0; border-right: 1px solid var(--line); padding: 8px; color: var(--text-soft); background: transparent; font-size: 12px; font-weight: 650; text-align: left; }
.board-actions button:last-child { border-right: 0; }
.board-actions svg { width: 18px; }
.board-date-sheet, .board-event-sheet { display: grid; gap: 18px; }
.board-date-sheet > time { color: var(--text-muted); font-size: 13px; }
.board-date-position, .board-date-essential { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.board-date-position span, .board-date-essential span { color: var(--text-soft); font-size: 13px; }
.board-date-position strong { font-size: 24px; }
.board-date-sheet h3 { margin: 0 0 8px; font-size: 15px; }
.board-date-sheet section > p { margin: 0; color: var(--text-muted); font-size: 13px; }
.board-event-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); }
.board-event-list li { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; background: var(--surface); }
.board-event-list span, .board-event-list strong, .board-event-list small { display: block; }
.board-event-list small { color: var(--text-muted); font-size: 12px; }
.board-event-sheet-list, .sheet-tool-list { display: grid; }
.board-event-sheet-list > button, .sheet-tool-list > button { width: 100%; min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; color: var(--text); background: transparent; text-align: left; }
.board-event-sheet-list > button span, .board-event-sheet-list > button strong, .board-event-sheet-list > button small { display: block; min-width: 0; }
.board-event-sheet-list > button small { color: var(--text-muted); font-size: 12px; }
.board-event-sheet-list > button svg, .sheet-tool-list > button > svg:last-child { width: 17px; color: var(--text-muted); }
.sheet-tool-list { border-top: 1px solid var(--line-strong); padding-top: 8px; }
.sheet-tool-list > button { grid-template-columns: 28px minmax(0, 1fr) 18px; }
.sheet-tool-list > button > svg:first-child { width: 19px; color: var(--accent-strong); }

.settings-groups { display: grid; gap: 20px; }
.settings-list > button { width: 100%; min-height: 62px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; gap: 11px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 8px 13px; color: var(--text); background: transparent; text-align: left; }
.settings-list > button:last-child { border-bottom: 0; }
.settings-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--accent-strong); background: var(--accent-soft); }
.settings-icon svg { width: 17px; height: 17px; }
.settings-list strong, .settings-list small { display: block; }
.settings-list strong { font-size: 15px; }
.settings-list small { margin-top: 2px; overflow: hidden; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.settings-list [data-settings-detail="personalization"] small { white-space: normal; }
.settings-list [data-settings-detail="freshness"] small { white-space: normal; }
.settings-list > button > svg { width: 17px; color: var(--text-muted); }
.legal-note { margin: 0; padding: 4px 4px 18px; color: var(--text-muted); font-size: 12px; }

.trust-sheet { display: grid; gap: 18px; }
.trust-foundation { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr); align-items: stretch; border-bottom: 1px solid var(--line); padding: 0 0 16px; }
.trust-foundation > button, .trust-foundation-result { min-width: 0; min-height: 88px; display: grid; grid-template-rows: 30px auto auto; align-content: start; justify-items: center; gap: 4px; border: 0; border-radius: var(--radius-small); padding: 7px 4px; color: var(--text-soft); background: transparent; text-align: center; }
.trust-foundation > button { transition: color var(--motion-replace) var(--ease-standard), background var(--motion-replace) var(--ease-standard), transform var(--motion-press) var(--ease-standard); }
.trust-foundation > button:hover, .trust-foundation > button.is-active { color: var(--text); background: var(--surface-soft); }
.trust-foundation > button > span, .trust-foundation-result > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-muted); background: var(--surface); font-size: 12px; font-weight: 720; }
.trust-foundation > button.is-active > span, .trust-foundation > button.is-complete > span, .trust-foundation-result.is-ready_for_analysis > span { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.trust-foundation > button svg, .trust-foundation-result svg { width: 15px; height: 15px; }
.trust-foundation strong, .trust-foundation small { min-width: 0; display: block; line-height: 1.2; overflow-wrap: anywhere; }
.trust-foundation strong { font-size: 12px; }
.trust-foundation small { color: var(--text-muted); font-size: 12px; font-weight: 520; }
.trust-foundation > i { display: grid; place-items: start center; padding-top: 18px; color: var(--text-muted); }
.trust-foundation > i svg { width: 14px; height: 14px; }
.trust-status-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.trust-status-line strong { font-size: 17px; }
.trust-status-line span { max-width: 390px; color: var(--text-muted); font-size: 13px; text-align: right; }
.trust-purpose { max-width: 680px; margin: -8px 0 0; color: var(--text-soft); font-size: 14px; }
.trust-notice { margin: -2px 0 0; border-left: 3px solid var(--accent); padding: 9px 12px; color: var(--text-soft); background: var(--accent-soft); font-size: 13px; }
.trust-section-layout { min-width: 0; display: grid; gap: 20px; }
.trust-form { min-width: 0; display: grid; gap: 20px; }
.trust-form > header h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.trust-form > header > p:last-child { margin: 6px 0 0; color: var(--text-soft); font-size: 14px; }
.trust-fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.trust-fieldset > legend { width: 100%; margin-bottom: 9px; color: var(--text); font-size: 14px; font-weight: 680; }
.trust-choice-grid { min-width: 0; display: grid; gap: 2px; overflow: hidden; border-radius: 10px; padding: 3px; background: var(--surface-soft); }
.trust-choice-grid > button { min-width: 0; min-height: 48px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 7px; align-items: center; border: 0; border-radius: 7px; padding: 8px 10px; color: var(--text-soft); background: transparent; text-align: left; }
.trust-choice-grid > button > span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent-strong); background: var(--surface); }
.trust-choice-grid > button > span svg { width: 13px; height: 13px; }
.trust-choice-grid > button strong, .trust-choice-grid > button small { display: block; min-width: 0; line-height: 1.3; }
.trust-choice-grid > button strong { font-size: 13px; }
.trust-choice-grid > button small { grid-column: 2; color: var(--text-muted); font-size: 12px; }
.trust-choice-grid > button.is-active { color: var(--text); background: var(--surface); box-shadow: 0 2px 8px rgba(14, 43, 36, .07); }
.trust-choice-grid > button.is-active > span { border-color: var(--accent); background: var(--accent-soft); }
.trust-reset-source { min-height: 44px; margin-top: 4px; padding-inline: 2px; }
.trust-date-grid { min-width: 0; display: grid; gap: 12px; }
.trust-date-grid input, .trust-cutoff input { min-width: 0; }
.trust-field-help { margin: 9px 2px 0; color: var(--text-muted); font-size: 12px; }
.trust-cutoff { min-width: 0; }
.trust-form-error { min-height: 22px; }
.trust-form-error a { color: var(--negative); font-weight: 620; text-decoration: underline; text-underline-offset: 3px; }
.trust-save { width: 100%; min-height: 50px; }
.trust-evidence { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px 11px; align-content: start; border-left: 2px solid var(--accent); border-radius: var(--radius-small); padding: 14px 14px 14px 12px; background: var(--surface-soft); }
.trust-evidence > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--surface); }
.trust-evidence > span svg { width: 17px; height: 17px; }
.trust-evidence h3 { margin: 0; font-size: 14px; }
.trust-evidence p { margin: 4px 0 0; color: var(--text-soft); font-size: 13px; }
.trust-evidence > button, .trust-evidence > small { grid-column: 2; }
.trust-evidence > button { justify-self: start; }
.trust-evidence > small { color: var(--text-muted); font-size: 12px; }
.trust-evidence.is-balance > small { border-top: 1px solid var(--line); padding-top: 10px; }
.trust-saved-summary { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 15px 0; }
.trust-saved-summary h3 { margin: 0 0 8px; font-size: 14px; }
.trust-saved-summary dl { display: grid; gap: 8px; margin: 0; }
.trust-saved-summary dl > div { min-width: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.trust-saved-summary dt { color: var(--text-muted); font-size: 12px; }
.trust-saved-summary dd { min-width: 0; margin: 0; color: var(--text-soft); font-size: 13px; }
.trust-saved-summary p { margin: 11px 0 0; color: var(--text-muted); font-size: 12px; }
.trust-clear { justify-self: start; color: var(--text-muted); }
.freshness-sheet { min-width: 0; display: grid; gap: 20px; }
.freshness-sheet-summary { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; border-bottom: 1px solid var(--line-strong); padding: 2px 0 18px; }
.freshness-sheet-summary > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--warning); background: var(--surface-soft); }
.freshness-sheet-summary.is-current > span { color: var(--accent-strong); background: var(--accent-soft); }
.freshness-sheet-summary > span svg { width: 20px; height: 20px; }
.freshness-sheet-summary h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.freshness-sheet-summary h3:focus-visible { border-radius: 5px; outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 4px; }
.freshness-sheet-summary p:last-child { margin: 6px 0 0; color: var(--text-soft); font-size: 14px; }
.freshness-list { min-width: 0; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.freshness-item { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; border-bottom: 1px solid var(--line); padding: 16px 2px; }
.freshness-item:first-child { padding-top: 2px; }
.freshness-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.freshness-item.is-priority { margin: 0 -10px; border: 1px solid var(--line-strong); border-radius: var(--radius-medium); padding: 15px 12px; background: var(--surface-soft); }
.freshness-item-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text-muted); background: var(--surface); }
.freshness-item.is-confirmed .freshness-item-icon { color: var(--accent-strong); background: var(--accent-soft); }
.freshness-item.is-estimated .freshness-item-icon, .freshness-item.is-needs_confirmation .freshness-item-icon { color: var(--warning); }
.freshness-item.is-outdated .freshness-item-icon, .freshness-item.is-incomplete .freshness-item-icon { color: var(--negative); }
.freshness-item-icon svg { width: 17px; height: 17px; }
.freshness-item-content { min-width: 0; }
.freshness-item-heading { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.freshness-item-heading h4 { min-width: 0; margin: 1px 0 0; font-size: 16px; line-height: 1.35; }
.freshness-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: var(--text-soft); background: var(--surface); font-size: 11px; font-weight: 680; line-height: 1.2; white-space: nowrap; }
.freshness-status svg { width: 13px; height: 13px; }
.freshness-date { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }
.freshness-reason { max-width: 610px; margin: 8px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.freshness-item-action { min-height: 44px; margin-top: 11px; }
.freshness-boundary { margin: 0; border-left: 2px solid var(--line-strong); padding: 9px 12px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.preview-panel { min-width: 0; display: grid; gap: 20px; }
.preview-heading { min-width: 0; }
.preview-heading h3 { margin: 0; font-size: 23px; line-height: 1.22; }
.preview-heading h3:focus-visible { border-radius: 5px; outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 4px; }
.preview-heading > p:last-child { max-width: 590px; margin: 7px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.preview-empty { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px 14px; align-items: center; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 18px 0; }
.preview-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.preview-empty > span svg { width: 20px; height: 20px; }
.preview-empty > p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.preview-empty > .preview-action { grid-column: 2; justify-self: start; }
.preview-result-layout { min-width: 0; display: grid; gap: 20px; }
.preview-values { min-width: 0; align-content: start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-values > summary { min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 12px; align-items: center; color: var(--text-soft); font-size: 14px; font-weight: 680; list-style: none; cursor: pointer; }
.preview-values > summary::-webkit-details-marker { display: none; }
.preview-values > summary svg { width: 17px; transition: transform var(--motion-disclosure) var(--ease-standard); }
.preview-values[open] > summary svg { transform: rotate(90deg); }
.preview-values > div { display: grid; gap: 14px; padding-bottom: 12px; }
.preview-values dl { min-width: 0; display: grid; gap: 0; margin: 0; }
.preview-values dl > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 11px 0; }
.preview-values dt { color: var(--text-soft); font-size: 13px; line-height: 1.35; }
.preview-values dd { margin: 0; color: var(--text); font-size: 18px; font-weight: 740; font-variant-numeric: tabular-nums; white-space: nowrap; }
.preview-horizon { display: grid; gap: 3px; margin: 0; }
.preview-horizon span { color: var(--text-muted); font-size: 12px; }
.preview-horizon strong { color: var(--text-soft); font-size: 13px; line-height: 1.4; }
.preview-blocked-reasons { display: grid; gap: 7px; margin: 15px 0 0; padding-left: 20px; color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.preview-prerequisites { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.preview-boundary { margin: 0; border-left: 3px solid var(--accent); padding: 11px 13px; color: var(--text-soft); background: var(--accent-soft); font-size: 13px; line-height: 1.5; }
.preview-action { min-height: 44px; justify-self: start; }
.preview-result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.preview-panel.is-error .preview-heading h3 { color: var(--negative); }
.forecast-review-record { min-width: 0; display: grid; gap: 16px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 18px 0; }
.forecast-review-record > header h3, .forecast-review-confirmation > header h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.forecast-review-record > header h3:focus-visible, .forecast-review-confirmation > header h3:focus-visible, .forecast-review-error:focus-visible { border-radius: 5px; outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 4px; }
.forecast-review-record > header > p:last-child, .forecast-review-confirmation > header > p:last-child { max-width: 620px; margin: 6px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.forecast-review-record.is-pending { border-left: 3px solid var(--warning); padding-left: 14px; }
.forecast-review-record.is-pending > header h3 { color: var(--warning); }
.forecast-review-facts { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.forecast-review-facts > div { min-width: 0; display: grid; gap: 4px; align-content: start; border-bottom: 1px solid var(--line); padding: 12px 10px 12px 0; }
.forecast-review-facts > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
.forecast-review-facts dt { color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.forecast-review-facts dd { min-width: 0; margin: 0; color: var(--text); font-size: 14px; font-weight: 690; line-height: 1.4; overflow-wrap: anywhere; }
.forecast-review-facts dd:first-letter { text-transform: uppercase; }
.forecast-review-boundary { margin: 0; border-left: 3px solid var(--accent); padding: 11px 13px; color: var(--text-soft); background: var(--accent-soft); font-size: 13px; line-height: 1.5; }
.forecast-review-action { min-height: 44px; justify-self: start; }
.forecast-review-record-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.forecast-review-record-actions > button { min-height: 44px; }
.forecast-review-remove { min-height: 44px; justify-self: start; color: var(--text-muted); }
.forecast-review-confirmation { min-width: 0; display: grid; gap: 18px; }
.forecast-review-error { margin: 0; border-left: 3px solid var(--negative); padding: 11px 13px; color: var(--negative); background: color-mix(in srgb, var(--negative) 8%, var(--surface)); font-size: 13px; line-height: 1.5; }
.forecast-review-choices { min-width: 0; display: grid; gap: 8px; margin: 0; border: 0; padding: 0; }
.forecast-review-choices legend { width: 100%; margin-bottom: 9px; color: var(--text); font-size: 14px; font-weight: 690; }
.forecast-review-choices label { min-width: 0; min-height: 52px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; color: var(--text-soft); background: var(--surface); cursor: pointer; }
.forecast-review-choices label:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.forecast-review-choices input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.forecast-review-choices span, .forecast-review-choices strong, .forecast-review-choices small { display: block; min-width: 0; }
.forecast-review-choices strong { font-size: 14px; line-height: 1.35; }
.forecast-review-choices small { margin-top: 2px; color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.forecast-review-choice-help { margin: -10px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.forecast-review-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.forecast-review-confirm-actions > button { min-height: 44px; }
.forecast-review-confirm-actions > button:disabled { cursor: not-allowed; opacity: .48; }
.forecast-application-status { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 11px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: var(--surface-soft); }
.forecast-application-status > span { width: 24px; height: 24px; display: grid; place-items: center; color: var(--accent); }
.forecast-application-status > span svg { width: 19px; height: 19px; }
.forecast-application-status strong, .forecast-application-status p { display: block; margin: 0; }
.forecast-application-status strong { color: var(--text); font-size: 14px; line-height: 1.35; }
.forecast-application-status p { margin-top: 3px; color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.forecast-application-status > button { min-height: 44px; }
.forecast-application-status.is-review-required { border-color: color-mix(in srgb, var(--warning) 42%, var(--line)); }
.forecast-application-status.is-review-required > span { color: var(--warning); }
.forecast-application-comparison dd.is-positive { color: var(--positive); }
.forecast-application-comparison dd.is-negative { color: var(--negative); }
.forecast-application-boundaries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.forecast-application-boundaries section { border-left: 3px solid var(--line-strong); padding: 9px 12px; background: var(--surface-soft); }
.forecast-application-boundaries section:first-child { border-left-color: var(--accent); }
.forecast-application-boundaries h4, .forecast-application-boundaries p { margin: 0; }
.forecast-application-boundaries h4 { color: var(--text); font-size: 13px; line-height: 1.35; }
.forecast-application-boundaries p { margin-top: 4px; color: var(--text-soft); font-size: 12px; line-height: 1.5; }
.forecast-application-confirm { min-height: 52px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; color: var(--text-soft); background: var(--surface); cursor: pointer; }
.forecast-application-confirm:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.forecast-application-confirm input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.forecast-application-confirm span { font-size: 13px; line-height: 1.45; }
.today-forecast-source { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.today-forecast-source > span { width: 24px; height: 24px; display: grid; place-items: center; color: var(--accent); }
.today-forecast-source > span svg { width: 18px; height: 18px; }
.today-forecast-source p, .today-forecast-source strong, .today-forecast-source small { min-width: 0; display: block; margin: 0; }
.today-forecast-source strong { color: var(--text); font-size: 13px; line-height: 1.35; }
.today-forecast-source small { margin-top: 2px; color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.today-forecast-source > button { min-height: 44px; }
.today-forecast-source.is-manual > span { color: var(--warning); }
.trust-reset-confirmation { display: grid; gap: 16px; }
.trust-reset-symbol { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.trust-reset-symbol svg { width: 20px; height: 20px; }
.trust-reset-confirmation > h3 { margin: 0; font-size: 21px; }
.trust-reset-confirmation > p { margin: -8px 0 0; color: var(--text-soft); font-size: 14px; }
.trust-reset-confirmation section h4 { margin: 0 0 7px; font-size: 14px; }
.trust-reset-confirmation ul { display: grid; gap: 5px; margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 13px; }
.classification-overview, .classification-detail { min-width: 0; display: grid; gap: 20px; }
.classification-overview > header h3, .classification-detail > header h3 { margin: 0; font-size: 22px; line-height: 1.22; }
.classification-overview > header > p:last-child, .classification-detail > header > p:last-child { margin: 6px 0 0; color: var(--text-soft); font-size: 14px; }
.classification-map { min-width: 0; display: grid; gap: 12px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 14px 0; }
.classification-map-source { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; align-items: center; }
.classification-map-source > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.classification-map-source svg { width: 18px; height: 18px; }
.classification-map h3, .classification-map strong, .classification-map small { display: block; min-width: 0; }
.classification-map h3 { margin: 0; font-size: 14px; }
.classification-map-source strong { color: var(--text-muted); font-size: 12px; font-weight: 560; }
.classification-map-destinations { display: grid; gap: 3px; padding-left: 10px; }
.classification-map-destinations > div { min-width: 0; min-height: 44px; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; }
.classification-map-destinations > div > i { display: grid; color: var(--text-muted); }
.classification-map-destinations svg { width: 13px; height: 13px; }
.classification-map-destinations span { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.classification-map-destinations strong { font-size: 13px; }
.classification-map-destinations small { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.classification-review-count { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 2px solid var(--warning); padding: 6px 10px; color: var(--text-soft); background: color-mix(in srgb, var(--warning) 8%, transparent); font-size: 13px; }
.classification-review-count strong { color: var(--warning); font-size: 17px; }
.classification-evidence-note { margin: -8px 0 0; color: var(--text-muted); font-size: 12px; }
.classification-workspace { min-width: 0; display: grid; gap: 20px; }
.classification-workspace > div, .classification-workspace > section { min-width: 0; }
.classification-workspace .classification-evidence-note { margin-top: 10px; }
.classification-section-head { min-width: 0; display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 5px; }
.classification-section-head h3 { margin: 0; font-size: 16px; }
.classification-section-head p { margin: 2px 0 0; color: var(--text-muted); font-size: 12px; }
.classification-section-head > span { color: var(--text-soft); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.classification-list { min-width: 0; display: grid; }
.classification-row { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 0; }
.classification-row-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text-soft); background: var(--surface-soft); font-size: 12px; font-weight: 720; }
.classification-row.is-unresolved .classification-row-mark { color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, var(--surface)); }
.classification-row > div { min-width: 0; }
.classification-row h4, .classification-row p, .classification-row small { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.classification-row h4 { font-size: 14px; }
.classification-row p { color: var(--text-soft); font-size: 12px; }
.classification-row small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.classification-row > button { min-width: 58px; min-height: 44px; padding-inline: 6px; }
.classification-maintenance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.classification-maintenance + .classification-maintenance { border-top: 0; }
.classification-maintenance summary { min-height: 48px; display: flex; align-items: center; color: var(--text-soft); cursor: pointer; font-size: 13px; font-weight: 650; }
.classification-maintenance > p { margin: 0 0 10px; color: var(--text-muted); font-size: 12px; }
.classification-maintenance ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-soft); font-size: 13px; }
.classification-orphans { display: grid; gap: 2px; margin-bottom: 10px; }
.classification-orphans > div { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.classification-orphans code { min-width: 0; overflow: hidden; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.classification-orphans button { min-height: 44px; }
.classification-clear { justify-self: start; color: var(--text-muted); }
.classification-state { min-height: 250px; display: grid; align-content: center; justify-items: start; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.classification-state > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.classification-state h3, .classification-state p { margin: 0; }
.classification-state h3 { font-size: 20px; }
.classification-state p { max-width: 580px; color: var(--text-soft); font-size: 14px; }
.classification-state .primary-button { margin-top: 6px; }
.classification-back { justify-self: start; margin-left: -10px; }
.classification-back svg { width: 16px; transform: rotate(180deg); }
.classification-samples { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; }
.classification-samples h4 { margin: 0 0 5px; font-size: 14px; }
.classification-samples ul { display: grid; margin: 0; padding: 0; list-style: none; }
.classification-samples li { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.classification-samples li:last-child { border-bottom: 0; }
.classification-samples span, .classification-samples strong, .classification-samples small { min-width: 0; display: block; }
.classification-samples strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.classification-samples small { color: var(--text-muted); font-size: 12px; }
.classification-samples b { flex: 0 0 auto; font-size: 13px; }
.classification-fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.classification-fieldset > legend { width: 100%; color: var(--text); font-size: 16px; font-weight: 700; }
.classification-fieldset > p { margin: 4px 0 10px; color: var(--text-muted); font-size: 12px; }
.classification-choices { min-width: 0; display: grid; gap: 5px; }
.classification-choice { position: relative; min-width: 0; min-height: 64px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 10px; align-content: center; border: 1px solid transparent; border-radius: var(--radius-small); padding: 9px 10px; color: var(--text-soft); background: var(--surface-soft); cursor: pointer; transition: border-color var(--motion-replace) var(--ease-standard), background var(--motion-replace) var(--ease-standard), transform var(--motion-press) var(--ease-standard); }
.classification-choice:active { transform: scale(.99); }
.classification-choice:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 62%, transparent); outline-offset: 2px; }
.classification-choice.is-selected { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.classification-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.classification-choice > span { width: 22px; height: 22px; display: grid; grid-row: 1 / span 2; place-items: center; align-self: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent-strong); background: var(--surface); }
.classification-choice > span svg { width: 13px; height: 13px; }
.classification-choice strong { min-width: 0; font-size: 13px; }
.classification-choice small { min-width: 0; color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.classification-effects { min-width: 0; }
.classification-effect { display: none; border-left: 3px solid var(--accent); padding: 10px 12px; background: var(--surface-soft); }
.classification-effect.is-visible { display: block; }
.classification-effect > strong { font-size: 13px; }
.classification-effect > p { margin: 4px 0 0; color: var(--text-soft); font-size: 13px; }
.classification-warning, .classification-protected { border-top: 1px solid var(--line); padding-top: 9px; }
.classification-warning { color: var(--warning) !important; }
.classification-protected { color: var(--positive) !important; }
.classification-exclusions { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.classification-exclusions > div { display: grid; }
.classification-transaction { position: relative; min-width: 0; min-height: 64px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 8px 0; cursor: pointer; }
.classification-transaction input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.classification-transaction > span { min-width: 0; }
.classification-transaction strong, .classification-transaction small { display: block; min-width: 0; }
.classification-transaction strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.classification-transaction small { color: var(--text-muted); font-size: 12px; }
.classification-transaction > b { font-size: 13px; }
.classification-transaction > em { grid-column: 2 / -1; color: var(--text-soft); font-size: 12px; font-style: normal; }
.classification-detail-actions { display: grid; gap: 8px; }
.classification-detail-actions > button { width: 100%; min-height: 48px; }
.classification-reset-confirmation code { font-size: 12px; }

.add-form { display: grid; gap: 20px; }
.add-form.is-quick-entry { gap: 16px; }
.add-type-switch { width: 100%; }
.quick-entry-core { min-width: 0; display: grid; gap: 16px; }
.quick-entry-context { min-width: 0; display: grid; gap: 10px; }
.quick-entry-suggestion-label { margin: 0 0 7px; color: var(--text-muted); font-size: 12px; font-weight: 620; }
.quick-entry-suggestions { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-entry-suggestions button { min-width: 0; min-height: 44px; border: 1px solid transparent; border-radius: var(--radius-small); padding: 8px 12px; overflow: hidden; color: var(--text-soft); background: var(--surface-soft); font-size: 14px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.quick-entry-suggestions button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.quick-entry-suggestions button:focus-visible, .quick-entry-date:focus-visible, .transaction-similar:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.amount-field { display: grid; gap: 7px; }
.amount-field > span { color: var(--text-soft); font-size: 14px; font-weight: 620; }
.amount-field > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: baseline; border-bottom: 1px solid var(--line-strong); padding: 5px 2px 11px; }
.amount-field b { color: var(--text-muted); font-size: 27px; font-weight: 560; }
.amount-field input { min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: clamp(3.25rem, 4rem, 4.5rem); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.amount-field.compact input { font-size: 38px; }
.quick-amounts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.quick-amounts button { min-height: 44px; border: 0; border-radius: var(--radius-small); padding: 0 13px; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; font-weight: 620; white-space: nowrap; }
.category-picker { min-width: 0; margin: 0; border: 0; padding: 0; }
.category-picker legend { font-weight: 660; }
.category-picker > p { margin: 4px 0 10px; color: var(--text-muted); font-size: 13px; }
.category-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.category-grid button { min-height: 42px; border: 0; border-radius: 21px; padding: 0 13px; color: var(--text-soft); background: var(--surface-soft); font-size: 14px; }
.category-grid button.is-active { color: #fff; background: var(--brand-green); }
.quick-entry-categories .category-grid button { min-height: 44px; }
.quick-entry-status { min-height: 52px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; margin: 0; border-radius: var(--radius-small); padding: 10px 12px; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; line-height: 1.45; }
.quick-entry-status strong { border-radius: 999px; padding: 5px 9px; color: var(--positive); background: color-mix(in srgb, var(--positive) 10%, var(--surface)); font-size: 12px; }
.quick-entry-date { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: var(--radius-small); padding: 0 12px; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; text-align: left; }
.quick-entry-date span { display: inline-flex; align-items: center; gap: 8px; }
.quick-entry-date svg { width: 18px; height: 18px; }
.quick-entry-date strong { color: var(--text); font-size: 14px; }
.add-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.add-details summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; color: var(--text-soft); cursor: pointer; font-weight: 620; list-style: none; }
.add-details summary::after { content: "+"; color: var(--text-muted); font-size: 21px; }
.add-details[open] summary::after { content: "−"; }
.details-body { display: grid; gap: 14px; padding: 2px 0 17px; }
.save-transaction { width: 100%; min-height: 52px; }
.is-quick-entry .save-transaction { position: sticky; z-index: 5; bottom: calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-green) 24%, transparent); }
.save-transaction[disabled] { cursor: wait; opacity: .68; }
.add-policy-note { margin: -7px 0 0; border-left: 2px solid var(--accent); padding: 3px 0 3px 11px; color: var(--text-soft); font-size: 13px; }

.field-label, .choice-field legend { display: grid; gap: 7px; color: var(--text-soft); font-size: 14px; font-weight: 620; }
.field-label small { color: var(--text-muted); font-size: 12px; font-weight: 500; }
.field-input, .field-select, .field-textarea { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; color: var(--text); background: var(--surface); outline: 0; font-size: 16px; transition: border var(--motion-press) var(--ease-standard), box-shadow var(--motion-press) var(--ease-standard); }
.field-textarea { min-height: 92px; resize: vertical; }
.field-input:focus, .field-select:focus, .field-textarea:focus, .search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.amount-field:focus-within > div { border-bottom-color: var(--accent); box-shadow: none; }
[aria-invalid="true"] { border-color: var(--negative) !important; }
.field-grid { display: grid; gap: 12px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-money { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; }
.field-money > span { position: relative; z-index: 1; grid-column: 1; grid-row: 1; padding-left: 12px; color: var(--text-muted); }
.field-money .field-input { grid-column: 1 / -1; grid-row: 1; padding-left: 36px; }
.segmented-control, .language-control, .theme-control { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border-radius: 11px; padding: 4px; background: var(--surface-soft); }
.segmented-control.three, .theme-control { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segmented-control button, .language-control button, .theme-control button { min-width: 0; min-height: 44px; border: 0; border-radius: var(--radius-small); padding: 7px 8px; color: var(--text-soft); background: transparent; font-size: 13px; font-weight: 620; }
.segmented-control button.is-active, .language-control button.is-active, .theme-control button.is-active { color: var(--text); background: var(--surface); box-shadow: 0 2px 8px rgba(14, 43, 36, .08); }
.toggle-line { min-height: 44px; display: flex; align-items: center; gap: 9px; color: var(--text-soft); }
.choice-field { margin: 0; border: 0; padding: 0; }
.choice-field legend { margin-bottom: 8px; }
.choice-card { min-height: 58px; display: flex; gap: 10px; align-items: center; border-radius: 10px; padding: 10px 12px; background: var(--surface-soft); }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { color: var(--text-muted); font-size: 12px; }
.form-error, .form-message { min-height: 20px; margin: 0; color: var(--negative); font-size: 13px; }
.why-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; justify-self: start; border: 0; padding: 0 4px; color: var(--accent-strong); background: transparent; font-size: 14px; font-weight: 620; }
.why-link span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }

.modal { position: fixed; inset: 0; z-index: 2000; display: grid; align-items: end; }
.modal-scrim { position: absolute; inset: 0; background: rgba(5, 18, 14, .42); }
.modal-sheet { position: relative; z-index: 1; width: min(100%, 600px); max-height: min(90dvh, 780px); overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: calc(22px + env(safe-area-inset-bottom)); margin: 0 auto; border-radius: 24px 24px 0 0; padding: 8px 20px calc(22px + env(safe-area-inset-bottom)); color: var(--text); background: var(--surface); box-shadow: var(--shadow-high); }
.modal-sheet.is-spend-check-sheet { width: min(100%, 560px); }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 6px; border-radius: 4px; background: var(--line-strong); }
.modal-head { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.sheet-intro { margin: 0 0 16px; color: var(--text-soft); font-size: 14px; }
.sheet-form, .preference-sheet { display: grid; gap: 16px; }

.spend-check-sheet { min-width: 0; display: grid; gap: 24px; padding-bottom: 4px; }
.spend-check-form { min-width: 0; display: grid; gap: 12px; }
.spend-check-amount input { font-size: 4.5rem; letter-spacing: 0; }
.spend-check-amount b { align-self: center; font-size: 31px; }
.spend-check-submit { width: 100%; min-height: 50px; }
.spend-check-form .form-error { min-height: 20px; margin: 0; }
.spend-check-result, .spend-check-unavailable { min-width: 0; display: grid; gap: 17px; border-top: 1px solid var(--line-strong); padding-top: 22px; }
.spend-check-result > header h3, .spend-check-unavailable h3 { margin: 0; font-size: 2.25rem; line-height: 1.08; letter-spacing: 0; }
.spend-check-result > header h3:focus-visible, .spend-check-unavailable h3:focus-visible { border-radius: 5px; outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset: 4px; }
.spend-check-position { min-width: 0; border-radius: var(--radius-medium); padding: 18px; color: var(--brand-cream); background: var(--brand-forest); }
html[data-theme="dark"] .spend-check-position { background: #15352c; }
.spend-check-position > span { display: block; color: rgba(244, 239, 226, .72); font-size: 13px; font-weight: 650; }
.spend-check-position > strong { display: block; margin-top: 7px; color: var(--brand-cream); font-size: 3.5rem; line-height: .98; letter-spacing: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.spend-check-period { margin: 12px 0 0; color: var(--brand-cream); font-size: 14px; font-weight: 670; }
.spend-check-daily { margin: 5px 0 0; color: rgba(244, 239, 226, .82); font-size: 18px; font-weight: 690; font-variant-numeric: tabular-nums; }
.spend-check-reason { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.spend-check-result.is-wait .spend-check-reason { border-left: 3px solid var(--warning); padding: 9px 0 9px 12px; color: var(--text); }
.spend-check-comparison { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spend-check-comparison > summary { min-height: 50px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 12px; align-items: center; color: var(--text-soft); font-size: 14px; font-weight: 680; list-style: none; cursor: pointer; }
.spend-check-comparison > summary::-webkit-details-marker { display: none; }
.spend-check-comparison > summary svg { width: 17px; transition: transform var(--motion-disclosure) var(--ease-standard); }
.spend-check-comparison[open] > summary svg { transform: rotate(90deg); }
.spend-check-comparison dl { margin: 0 0 10px; }
.spend-check-comparison dl > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: baseline; border-top: 1px solid var(--line); padding: 10px 0; }
.spend-check-comparison dt { color: var(--text-muted); font-size: 13px; }
.spend-check-comparison dd { margin: 0; color: var(--text); font-size: 16px; font-weight: 720; font-variant-numeric: tabular-nums; text-align: right; }
.spend-check-add { width: 100%; min-height: 50px; }
.spend-check-unavailable p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.spend-check-unavailable .primary-button { width: 100%; min-height: 50px; }
.sheet-options, .add-action-sheet, .strategy-sheet { display: grid; }
.sheet-options > button, .add-action-sheet > button, .strategy-sheet > button { width: 100%; min-height: 62px; display: grid; align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 2px; color: var(--text); background: transparent; text-align: left; }
.sheet-options > button { grid-template-columns: minmax(0, 1fr) 24px; }
.sheet-options > button span, .sheet-options > button small { display: block; }
.sheet-options > button small { margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.sheet-options > button.is-active { color: var(--accent-strong); font-weight: 690; }
.sheet-options svg { width: 19px; }
.add-action-sheet > button, .quick-entry-primary-actions > button, .quick-entry-advanced-actions > button { grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 11px; }
.add-action-sheet strong, .add-action-sheet small { display: block; }
.add-action-sheet strong { font-size: 15px; }
.add-action-sheet small { margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.action-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--text-soft); background: var(--surface-soft); font-weight: 720; }
.action-symbol.is-income { color: var(--positive); }
.action-symbol.is-expense { color: var(--negative); }
.quick-entry-action-sheet { gap: 12px; }
.quick-entry-action-sheet-intro { margin: 0; }
.quick-entry-primary-actions { display: grid; gap: 8px; }
.quick-entry-primary-actions > button, .quick-entry-advanced-actions > button { width: 100%; min-height: 64px; display: grid; align-items: center; border: 0; border-radius: var(--radius-small); padding: 10px 12px; color: var(--text); background: var(--surface-soft); text-align: left; }
.quick-entry-primary-actions > button.is-featured { color: #fff; background: var(--brand-green); }
.quick-entry-primary-actions > button.is-featured .action-symbol { color: #fff; background: color-mix(in srgb, #fff 16%, transparent); }
.quick-entry-primary-actions > button.is-featured small { color: color-mix(in srgb, #fff 72%, transparent); }
.quick-entry-primary-actions > button:focus-visible, .quick-entry-more-actions summary:focus-visible, .quick-entry-advanced-actions > button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.quick-entry-more-actions { border-top: 1px solid var(--line); }
.quick-entry-more-actions summary { min-height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.quick-entry-more-actions summary::-webkit-details-marker { display: none; }
.quick-entry-more-actions summary strong, .quick-entry-more-actions summary small { display: block; }
.quick-entry-more-actions summary small { margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.quick-entry-more-actions summary svg { width: 18px; transition: transform .16s ease; }
.quick-entry-more-actions[open] summary svg { transform: rotate(90deg); }
.quick-entry-advanced-actions { display: grid; gap: 8px; padding: 0 0 4px; }
.quick-entry-advanced-actions > button { min-height: 58px; border: 1px solid var(--line); background: transparent; }
@media (prefers-reduced-motion: reduce) { .quick-entry-more-actions summary svg { transition: none; } }
.edit-link { min-height: 34px; justify-self: end; border: 0; padding: 0 4px; color: var(--accent-strong); background: transparent; font-size: 12px; font-weight: 620; }
.calculation-equation-story { display: grid; gap: 14px; }
.calculation-equation { display: grid; justify-items: stretch; }
.calculation-position { min-width: 0; display: grid; gap: 3px; border-radius: var(--radius-small); padding: 14px 15px; background: var(--surface-soft); }
.calculation-position > span { color: var(--text-soft); font-size: 13px; font-weight: 680; }
.calculation-position > strong { font-size: 34px; line-height: 1.08; font-weight: 740; letter-spacing: 0; }
.calculation-position > small { color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.calculation-position.is-result { padding-top: 16px; padding-bottom: 16px; color: var(--brand-forest); background: var(--accent-soft); }
html[data-theme="dark"] .calculation-position.is-result { color: var(--brand-cream); }
.calculation-position.is-result > span, .calculation-position.is-result > small { color: inherit; }
.calculation-position.is-result > small { opacity: .76; }
.calculation-position.is-result > small b { margin-right: 5px; color: var(--negative); }
.calculation-operator { min-height: 28px; display: grid; place-items: center; color: var(--text-muted); font-size: 24px; font-style: normal; line-height: 1; }
.calculation-interpretation { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.calculation-confidence { min-height: 44px; display: flex; align-items: center; gap: 9px; margin: -4px 0 0; color: var(--text-soft); font-size: 13px; }
.calculation-confidence > span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.calculation-recovery { width: 100%; }
.calculation-audit { border-top: 1px solid var(--line-strong); }
.calculation-audit > summary { min-height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 12px; align-items: center; cursor: pointer; list-style: none; color: var(--accent-strong); font-size: 14px; font-weight: 700; }
.calculation-audit > summary::-webkit-details-marker, .calculation-group > summary::-webkit-details-marker { display: none; }
.calculation-audit > summary svg, .calculation-group > summary > svg { width: 18px; height: 18px; transition: transform var(--motion-disclosure) var(--ease-standard); }
.calculation-audit[open] > summary svg, .calculation-group[open] > summary > svg { transform: rotate(90deg); }
.calculation-audit-body { display: grid; gap: 20px; padding: 2px 0 8px; }
.calculation-audit-grid { display: grid; gap: 0; }
.calculation-group { border-bottom: 1px solid var(--line); }
.calculation-group:first-child { border-top: 1px solid var(--line); }
.calculation-group > summary { min-height: 68px; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 10px; align-items: center; cursor: pointer; list-style: none; padding: 9px 2px; }
.calculation-group > summary > span { min-width: 0; display: grid; gap: 2px; }
.calculation-group > summary strong { font-size: 14px; }
.calculation-group > summary small { color: var(--text-muted); font-size: 12px; font-weight: 450; line-height: 1.35; }
.calculation-group > summary > b { font-size: 14px; white-space: nowrap; }
.calculation-group-body { display: grid; gap: 0; padding: 0 0 12px 12px; }
.calculation-component { min-width: 0; display: grid; gap: 8px; border-left: 2px solid var(--line-strong); padding: 11px 0 11px 13px; }
.calculation-component + .calculation-component { border-top: 1px solid var(--line); }
.calculation-component-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.calculation-component-main > span { min-width: 0; display: grid; gap: 2px; }
.calculation-component-main strong { font-size: 13px; line-height: 1.35; }
.calculation-component-main small { color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.calculation-component-main > b { font-size: 13px; white-space: nowrap; }
.calculation-component-meta { display: grid; grid-template-columns: 1fr; gap: 4px; color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.calculation-edit { width: fit-content; min-width: 64px; min-height: 45px; border: 0; padding: 0; color: var(--accent-strong); background: transparent; font-size: 13px; font-weight: 680; text-align: left; }
.calculation-facts { display: grid; gap: 0; margin: 2px 0 0; }
.calculation-facts > div { min-height: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-top: 1px solid var(--line); }
.calculation-facts dt, .calculation-facts dd { margin: 0; font-size: 12px; }
.calculation-facts dt { color: var(--text-muted); }
.calculation-facts dd { text-align: right; }
.calculation-emergency-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-left: 2px solid var(--accent-soft); padding: 11px 0 4px 13px; }
.calculation-emergency-info > span { display: grid; gap: 2px; }
.calculation-emergency-info small { color: var(--text-muted); font-size: 12px; }
.calculation-emergency-info strong { font-size: 13px; }
.calculation-emergency-info p { grid-column: 1 / -1; margin: 3px 0 0; color: var(--text-soft); font-size: 12px; font-weight: 650; }
.calculation-info-note, .calculation-empty-line { margin: 0; border-left: 2px solid var(--accent-soft); padding: 9px 0 9px 13px; color: var(--text-muted); font-size: 12px; }
.calculation-method { display: grid; gap: 6px; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.calculation-method h3, .calculation-method p { margin: 0; }
.calculation-method h3 { font-size: 14px; }
.calculation-method p { color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.calculation-unavailable { min-height: 300px; display: grid; align-content: center; justify-items: start; gap: 10px; }
.calculation-unavailable > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); }
.calculation-unavailable h3, .calculation-unavailable p { margin: 0; }
.calculation-unavailable h3 { font-size: 20px; }
.calculation-unavailable p { max-width: 48ch; color: var(--text-soft); font-size: 14px; }
.calculation-unavailable .primary-button { margin-top: 6px; }
.calculation-equation-story.has-value-change .calculation-position.is-result > strong { animation: value-change var(--motion-replace) var(--ease-standard) both; }
.explainer-sheet { display: grid; gap: 20px; }
.explainer-definition { margin: 0; color: var(--text); font-size: 17px; line-height: 1.45; }
.explainer-current { display: grid; gap: 2px; border-radius: var(--radius-medium); padding: 15px; background: var(--surface-soft); }
.explainer-current span, .explainer-current small { color: var(--text-muted); font-size: 12px; }
.explainer-current strong { font-size: 24px; }
.explainer-sheet h3 { margin: 0 0 4px; font-size: 14px; }
.explainer-sheet p { margin: 0; color: var(--text-soft); font-size: 14px; }
.explainer-example { border-left: 3px solid var(--accent-soft); padding-left: 12px; }
.explainer-example > span { color: var(--text-muted); font-size: 12px; }
.explainer-quality { display: grid; gap: 3px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.explainer-quality strong { font-size: 13px; }
.explainer-quality span { color: var(--text-muted); font-size: 12px; }
.confidence-reasons { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 13px; }
.buffer-breakdown { overflow: hidden; border-radius: var(--radius-medium); background: var(--surface-soft); }
.buffer-breakdown span { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 7px 12px; color: var(--text-soft); font-size: 13px; }
.buffer-breakdown span.is-selected { color: var(--text); background: var(--accent-soft); font-weight: 650; }
.buffer-breakdown p { padding: 11px 12px; font-size: 12px; }
.buffer-breakdown .buffer-limit-note { color: var(--warning); }
.shortfall-explainer { display: grid; gap: 12px; border-left: 3px solid var(--warning); padding-left: 14px; }
.shortfall-explainer > div { display: grid; gap: 5px; }
.shortfall-explainer span { display: flex; justify-content: space-between; gap: 14px; }
.shortfall-explainer small { color: var(--text-muted); }
.explainer-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.explainer-meta > span { color: var(--text-muted); font-size: 12px; }
.preference-row { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.preference-row strong { font-size: 14px; }
.privacy-sheet, .security-sheet, .method-sheet, .connection-sheet, .about-sheet { display: grid; gap: 16px; }
.privacy-sheet > div:not(.button-stack) { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.privacy-sheet p, .security-sheet p, .method-sheet p, .connection-sheet p, .about-sheet p { margin: 4px 0 0; color: var(--text-soft); font-size: 14px; }
.about-sheet { justify-items: center; text-align: center; }
.about-sheet img { width: 72px; height: 72px; }
.about-sheet h3 { margin: 0; font-size: 24px; }
.formula-line { display: flex; gap: 8px; align-items: center; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.sheet-list { display: grid; }
.sheet-list > div { min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
.sheet-list strong, .sheet-list small { display: block; }
.sheet-list small { color: var(--text-muted); font-size: 12px; }
.category-settings { display: grid; gap: 12px; margin-bottom: 22px; }
.category-settings h3 { margin: 0; font-size: 15px; }
.category-settings > div { display: flex; flex-wrap: wrap; gap: 7px; }
.category-settings > div > span { min-height: 42px; display: inline-flex; align-items: center; gap: 4px; border-radius: 21px; padding: 0 4px 0 12px; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; }
.category-settings > div button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--negative); background: transparent; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.strategy-sheet > button { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.strategy-sheet strong, .strategy-sheet small { display: block; }
.strategy-sheet small { color: var(--text-muted); font-size: 12px; }
.strategy-sheet em { display: block; margin-top: 5px; color: var(--text-muted); font-size: 11px; font-style: normal; }
.strategy-sheet ul { display: grid; gap: 3px; margin: 6px 0 0; padding-left: 16px; color: var(--text-muted); font-size: 11px; }
.strategy-consequence { max-width: 152px; color: var(--text-soft); font-size: 12px; line-height: 1.35; text-align: right; }
.policy-note { margin: 14px 0 0; color: var(--text-muted); font-size: 11px; }

.profile-flow { display: grid; gap: 18px; }
.profile-progress { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; color: var(--text-muted); font-size: 12px; }
.profile-progress::after { content: ""; height: 4px; grid-column: 2; grid-row: 1; border-radius: 4px; background: var(--surface-quiet); }
.profile-progress i { position: relative; z-index: 1; width: var(--progress); height: 4px; grid-column: 2; grid-row: 1; border-radius: 4px; background: var(--accent); transition: width var(--motion-structural) var(--ease-standard); }
.profile-question { margin: 2px 0 0; font-size: 23px; line-height: 1.25; font-weight: 700; }
.profile-options { display: grid; }
.profile-options button { min-height: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 12px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 8px 2px; color: var(--text); background: transparent; text-align: left; }
.profile-options button:hover { color: var(--accent-strong); }
.profile-options svg { width: 17px; color: var(--text-muted); }
.profile-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-preview span { min-width: 0; display: grid; align-content: center; gap: 3px; padding: 12px 8px; color: var(--text-muted); font-size: 11px; }
.profile-preview span + span { border-left: 1px solid var(--line); }
.profile-preview strong { color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.profile-why { margin: 0; color: var(--text-muted); font-size: 12px; }
.profile-amount { display: grid; gap: 14px; }
.reserve-detail { display: grid; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.reserve-detail > span { display: flex; justify-content: space-between; gap: 12px; color: var(--text-soft); font-size: 13px; }
.reserve-detail > span strong { color: var(--text); text-align: right; }
.reserve-meter { height: 6px; overflow: hidden; border-radius: 6px; background: var(--surface-quiet); }
.reserve-meter i { display: block; width: var(--progress); height: 100%; max-width: 100%; border-radius: inherit; background: var(--accent); }
.confidence-score { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 6px; align-items: baseline; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.confidence-score strong { color: var(--accent-strong); font-size: 34px; line-height: 1; }
.confidence-score span { color: var(--text-muted); font-size: 13px; }
.confidence-score small { grid-column: 1 / -1; color: var(--text-soft); font-size: 12px; }

.goal-flow { display: grid; gap: 18px; }
.goal-question { display: grid; gap: 5px; }
.goal-question h3 { margin: 0; font-size: 23px; line-height: 1.24; font-weight: 700; }
.goal-question p { margin: 0; color: var(--text-soft); font-size: 14px; }
.choice-stack { display: grid; gap: 8px; }
.choice-stack .choice-card { position: relative; min-height: 68px; border: 1px solid transparent; cursor: pointer; transition: border-color var(--motion-press) var(--ease-standard), background var(--motion-press) var(--ease-standard), transform var(--motion-press) var(--ease-standard); }
.choice-stack .choice-card:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 46%, transparent); background: var(--accent-soft); }
.choice-stack .choice-card:active { transform: scale(.985); }
.choice-stack input { accent-color: var(--accent); }
.goal-flow-actions { justify-content: flex-end; padding-top: 4px; }
.goal-flow-actions .text-button { margin-right: auto; }
.goal-preview { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.goal-preview span { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: 13px; }
.goal-preview span:last-child { border-bottom: 0; }
.goal-preview strong { color: var(--text); text-align: right; }
.goal-detail { display: grid; gap: 20px; }
.goal-detail-progress { display: grid; gap: 9px; padding: 2px 0 5px; }
.goal-detail-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.goal-detail-progress span, .goal-detail-progress small { color: var(--text-muted); font-size: 13px; }
.goal-detail-progress strong { font-size: 26px; line-height: 1; }
.goal-detail-progress > i { position: relative; height: 6px; overflow: hidden; border-radius: 6px; background: var(--surface-quiet); }
.goal-detail-progress > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: min(100%, var(--progress)); border-radius: inherit; background: var(--accent); }
.goal-detail-list { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.goal-detail-list > span { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: 13px; }
.goal-detail-list > span:last-child { border-bottom: 0; }
.goal-detail-list strong { color: var(--text); text-align: right; }
.goal-policy-copy { margin: -4px 0 0; color: var(--text-muted); font-size: 12px; }
.goal-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.goal-detail-actions button { width: 100%; min-height: 46px; }
.goal-detail-disclosure, .goal-manage-disclosure { border-top: 1px solid var(--line-strong); }
.goal-detail-disclosure > summary, .goal-manage-disclosure > summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 680; }
.goal-detail-disclosure > summary svg, .goal-manage-disclosure > summary svg { width: 18px; color: var(--text-muted); transition: transform var(--motion-disclosure) var(--ease-standard); }
.goal-detail-disclosure[open] > summary svg, .goal-manage-disclosure[open] > summary svg { transform: rotate(90deg); }
.goal-detail-disclosure > .goal-detail-list { border-top: 0; }
.goal-detail-disclosure .goal-policy-copy { margin-top: 12px; }
.goal-manage-disclosure .goal-detail-actions { padding-top: 8px; }

.onboarding-screen.first-orientation-screen { padding: max(18px, env(safe-area-inset-top)) clamp(14px, 3vw, 40px) max(18px, env(safe-area-inset-bottom)); background: var(--brand-forest); }
.first-orientation-instrument { width: min(100%, 1120px); min-height: min(780px, calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); display: grid; grid-template-columns: minmax(264px, .8fr) minmax(0, 1.68fr); overflow: hidden; border: 1px solid rgba(244, 239, 226, .14); border-radius: 32px; margin: 0 auto; background: var(--surface); box-shadow: 0 30px 80px rgba(3, 18, 13, .26); }
.first-orientation-brand { min-width: 0; display: grid; align-content: space-between; gap: 36px; padding: clamp(32px, 4vw, 52px); color: var(--brand-cream); background: var(--brand-forest); }
.first-orientation-lockup { display: flex; align-items: center; padding: 2px 0; }
.first-orientation-lockup img { width: min(174px, 100%); height: auto; }
.first-orientation-brand p { position: relative; max-width: 220px; margin: 0; padding-top: 20px; color: rgba(244, 239, 226, .78); font-size: 16px; line-height: 1.5; font-weight: 620; }
.first-orientation-brand p::before { position: absolute; top: 0; left: 0; width: 34px; height: 2px; border-radius: 2px; content: ""; background: var(--brand-fresh); }
.first-orientation-main { min-width: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 24px; padding: clamp(34px, 5vw, 64px); background: var(--surface); }
.first-orientation-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--text-muted); font-size: 13px; }
.first-orientation-header > span { flex: 0 0 auto; }
.first-orientation-language { min-width: 0; display: flex; align-items: center; gap: 12px; }
.first-orientation-language > span { color: var(--text-muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.first-orientation-language .language-control { width: 190px; flex: 0 1 190px; border: 1px solid var(--line); background: var(--surface-soft); box-shadow: inset 0 1px 0 rgba(14, 43, 36, .025); }
.first-orientation-language .language-control button { min-height: 44px; }
.first-orientation-progress { height: 4px; overflow: hidden; border-radius: 4px; background: var(--surface-quiet); }
.first-orientation-progress i { display: block; width: var(--orientation-progress); height: 100%; transform-origin: left center; border-radius: inherit; background: var(--brand-green); transition: width var(--motion-replace) var(--ease-standard); }
.first-orientation-content { position: relative; align-self: center; max-width: 580px; padding: clamp(32px, 8vh, 88px) 0; animation: orientation-content-enter var(--motion-disclosure) var(--ease-enter) both; }
.first-orientation-content::before { display: block; width: 36px; height: 2px; margin-bottom: 24px; border-radius: 2px; content: ""; background: var(--brand-green); }
.first-orientation-content h1 { max-width: 11ch; margin: 0; color: var(--text); font-size: 64px; line-height: 1.01; letter-spacing: -.052em; font-weight: 750; font-optical-sizing: auto; }
.first-orientation-body { max-width: 31ch; margin: 24px 0 0; color: var(--text); font-size: 23px; line-height: 1.31; letter-spacing: -.016em; font-weight: 590; white-space: pre-line; }
.first-orientation-supporting { max-width: 37ch; margin: 18px 0 0; color: var(--text-soft); font-size: 16px; line-height: 1.58; white-space: pre-line; }
.first-orientation-outcomes { display: grid; gap: 0; max-width: 520px; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; color: var(--text-soft); font-size: 17px; line-height: 1.45; }
.first-orientation-outcomes li { min-height: 58px; display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 13px; align-items: center; border-bottom: 1px solid var(--line); }
.first-orientation-outcomes li::before { width: 8px; height: 8px; border-radius: 50%; content: ""; background: var(--brand-green); }
.first-orientation-content.is-transition { align-self: center; }
.first-orientation-actions { display: grid; align-self: end; padding-top: 8px; }
.first-orientation-actions .primary-button { width: min(100%, 336px); min-height: 56px; justify-self: end; border-radius: 14px; font-size: 16px; box-shadow: 0 10px 22px rgba(46, 139, 111, .16); }

@keyframes orientation-content-enter { from { transform: translateY(8px); opacity: .18; } to { transform: none; opacity: 1; } }

@media (max-width: 720px) {
  .onboarding-screen.first-orientation-screen { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .first-orientation-instrument { min-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); border-radius: 24px; }
  .first-orientation-brand { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(244, 239, 226, .1); padding: 18px 20px; }
  .first-orientation-lockup img { width: 146px; }
  .first-orientation-brand p { display: none; }
  .first-orientation-main { min-height: 0; gap: 18px; padding: 22px 20px 20px; }
  .first-orientation-header { display: grid; gap: 12px; }
  .first-orientation-language { width: 100%; justify-content: space-between; }
  .first-orientation-language .language-control { width: min(190px, 62vw); }
  .first-orientation-header > span { grid-row: 2; font-size: 12px; }
  .first-orientation-content { align-self: center; padding: clamp(28px, 7vh, 56px) 0; }
  .first-orientation-content::before { width: 30px; margin-bottom: 20px; }
  .first-orientation-content h1 { font-size: 46px; }
  .first-orientation-body { margin-top: 18px; font-size: 21px; }
  .first-orientation-supporting { margin-top: 14px; font-size: 15px; }
  .first-orientation-outcomes { margin-top: 22px; font-size: 16px; }
  .first-orientation-outcomes li { min-height: 52px; }
  .first-orientation-actions .primary-button { width: 100%; min-height: 56px; justify-self: stretch; }
}

@media (min-width: 721px) and (max-width: 1023px) {
  .first-orientation-instrument { width: min(100%, 920px); grid-template-columns: minmax(236px, .76fr) minmax(0, 1.6fr); }
  .first-orientation-brand { padding: 36px; }
  .first-orientation-main { padding: 44px; }
  .first-orientation-content { max-width: 540px; }
}

@media (max-height: 700px) and (min-width: 721px) {
  .first-orientation-instrument { min-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .first-orientation-main, .first-orientation-brand { padding: 28px; }
  .first-orientation-content { padding: 24px 0; }
  .first-orientation-content h1 { font-size: 48px; }
  .first-orientation-body { margin-top: 17px; font-size: 20px; }
  .first-orientation-supporting { margin-top: 12px; font-size: 14px; }
}

.onboarding-screen { min-height: 100dvh; display: grid; align-items: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); background: var(--canvas); }
.onboarding-instrument { width: min(100%, 600px); display: grid; gap: 20px; margin: 0 auto; }
.onboarding-header { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.onboarding-header img { width: 36px; height: 36px; }
.onboarding-header strong { font-size: 16px; }
.onboarding-header span { color: var(--text-muted); font-size: 13px; }
.step-rail { display: grid; grid-template-columns: repeat(var(--onboarding-step-count, 6), minmax(0, 1fr)); gap: 5px; }
.step-rail i { height: 4px; border-radius: 4px; background: var(--surface-quiet); transition: background var(--motion-replace) var(--ease-standard); }
.step-rail i.is-complete { background: var(--brand-green); }
.onboarding-form, .onboarding-result { display: grid; gap: 22px; }
.question-heading h2, .onboarding-result h2 { max-width: 540px; margin: 0; font-size: 34px; line-height: 1.14; font-weight: 720; }
.question-heading p { max-width: 500px; margin: 9px 0 0; color: var(--text-soft); font-size: 16px; }
.onboarding-fields { display: grid; gap: 18px; }
.income-pattern-group { min-width: 0; margin: 0; border: 0; padding: 0; }
.income-pattern-options { display: grid; gap: 10px; }
.income-pattern-option { position: relative; min-width: 0; min-height: 92px; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-medium); padding: 17px 18px; background: var(--surface); box-shadow: 0 1px 0 rgba(14, 43, 36, .03); cursor: pointer; transition: transform var(--motion-press) var(--ease-standard), border-color var(--motion-replace) var(--ease-standard), box-shadow var(--motion-replace) var(--ease-standard), background var(--motion-replace) var(--ease-standard); }
.income-pattern-option:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft)); }
.income-pattern-option:active { transform: scale(.99); }
.income-pattern-option:has(input:checked) { border-width: 2px; border-color: var(--accent-strong); padding: 16px 17px; background: color-mix(in srgb, var(--surface) 78%, var(--accent-soft)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 13%, transparent); }
.income-pattern-option:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 52%, transparent); outline-offset: 3px; }
.income-pattern-option input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; opacity: 0; }
.income-pattern-copy { min-width: 0; display: grid; gap: 5px; }
.income-pattern-copy strong { color: var(--text); font-size: 17px; line-height: 1.25; font-weight: 710; }
.income-pattern-copy small { color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.income-pattern-mark { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); transition: border-color var(--motion-press) var(--ease-standard), box-shadow var(--motion-press) var(--ease-standard); }
.income-pattern-mark::after { width: 10px; height: 10px; border-radius: 50%; content: ""; background: transparent; transform: scale(.6); transition: transform var(--motion-press) var(--ease-standard), background var(--motion-press) var(--ease-standard); }
.income-pattern-option input:checked ~ .income-pattern-mark { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.income-pattern-option input:checked ~ .income-pattern-mark::after { background: var(--accent-strong); transform: scale(1); }
.planning-horizon-group { min-width: 0; margin: 0; border: 0; padding: 0; }
.planning-horizon-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.planning-horizon-option { position: relative; min-width: 0; min-height: 78px; display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 12px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-medium); padding: 14px 15px; background: var(--surface); cursor: pointer; transition: transform var(--motion-press) var(--ease-standard), border-color var(--motion-replace) var(--ease-standard), background var(--motion-replace) var(--ease-standard), box-shadow var(--motion-replace) var(--ease-standard); }
.planning-horizon-option:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft)); }
.planning-horizon-option:active { transform: scale(.99); }
.planning-horizon-option:has(input:checked) { border-width: 2px; border-color: var(--accent-strong); padding: 13px 14px; background: color-mix(in srgb, var(--surface) 78%, var(--accent-soft)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 13%, transparent); }
.planning-horizon-option:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 52%, transparent); outline-offset: 3px; }
.planning-horizon-option input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; opacity: 0; }
.planning-horizon-option span { min-width: 0; display: grid; gap: 4px; }
.planning-horizon-option strong { color: var(--text); font-size: 16px; line-height: 1.25; }
.planning-horizon-option small { color: var(--text-soft); font-size: 12px; line-height: 1.4; }
.planning-horizon-option i { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); transition: border-color var(--motion-press) var(--ease-standard), box-shadow var(--motion-press) var(--ease-standard); }
.planning-horizon-option i::after { width: 10px; height: 10px; border-radius: 50%; content: ""; background: transparent; transform: scale(.6); transition: transform var(--motion-press) var(--ease-standard), background var(--motion-press) var(--ease-standard); }
.planning-horizon-option input:checked ~ i { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.planning-horizon-option input:checked ~ i::after { background: var(--accent-strong); transform: scale(1); }
.income-planning-editor { padding-bottom: 4px; }
.income-planning-current, .income-planning-current-period { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: var(--radius-small); padding: 12px 14px; background: var(--surface-soft); }
.income-planning-current span, .income-planning-current-period span { color: var(--text-muted); font-size: 12px; }
.income-planning-current strong, .income-planning-current-period strong { text-align: right; }
.income-pattern-group { margin: 0; border: 0; padding: 0; }
.income-pattern-group > legend { margin-bottom: 10px; font-weight: 700; }
.income-planning-transition-note { margin: 0; border-left: 3px solid var(--accent); padding: 11px 13px; color: var(--text-soft); background: var(--accent-soft); font-size: 13px; line-height: 1.5; }
.income-planning-editor [data-income-pattern-panel] { display: grid; gap: 14px; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.income-planning-editor [data-income-pattern-panel][hidden], .income-planning-editor [data-income-horizon-selection][hidden], .income-planning-editor [data-variable-estimate][hidden], .income-planning-editor [data-no-fixed-boundary][hidden] { display: none; }
.income-planning-editor [data-income-horizon-selection], .income-planning-editor [data-variable-estimate] { display: grid; gap: 12px; }
.income-planning-editor h3, .income-planning-editor section > p { margin: 0; }
.income-planning-editor section > p { color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.income-planning-replace { border-radius: var(--radius-small); padding: 6px 10px; background: var(--surface-soft); }
.planning-horizon-custom { margin-bottom: -10px; }
.planning-horizon-evidence { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 17px; }
.today-snapshot.is-horizon-expired { overflow: hidden; }
.today-expired-primary { display: grid; justify-items: start; padding: 28px 22px 24px; color: var(--brand-cream); background: var(--brand-forest); }
html[data-theme="dark"] .today-expired-primary { background: #15352c; }
.first-value-safety-section { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.first-value-safety-choice { display: grid; gap: 9px; min-width: 0; margin: 0; border: 0; padding: 0; }
.first-value-safety-choice > legend { margin-bottom: 1px; color: var(--text-soft); font-size: 13px; font-weight: 680; }
.first-value-safety-options { display: grid; gap: 8px; }
.first-value-safety-options > label { min-width: 0; min-height: 64px; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; border: 1px solid var(--line-strong); border-radius: var(--radius-small); padding: 13px 14px; background: var(--surface); cursor: pointer; }
.first-value-safety-options > label:has(input:checked) { border-color: var(--accent-strong); background: color-mix(in srgb, var(--surface) 84%, var(--accent-soft)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent); }
.first-value-safety-options > label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 52%, transparent); outline-offset: 3px; }
.first-value-safety-options > label > input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-strong); }
.first-value-safety-options > label > span { min-width: 0; display: grid; gap: 3px; }
.first-value-safety-options strong { color: var(--text); font-size: 15px; line-height: 1.3; }
.first-value-safety-options small { color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.first-value-safety-amount { min-height: 44px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; background: var(--surface-soft); }
.first-value-safety-amount b { color: var(--text-muted); font-size: 15px; }
.first-value-safety-amount input { width: 100%; min-height: 42px; border: 0; padding: 0; color: var(--text); background: transparent; font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.first-value-safety-amount input:disabled { color: var(--text-muted); cursor: not-allowed; }
.first-value-safety-amount:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.today-expired-symbol { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--brand-cream) 34%, transparent); border-radius: 50%; color: var(--brand-cream); }
.today-expired-symbol svg { width: 21px; height: 21px; }
.today-expired-primary .snapshot-eyebrow { margin: 18px 0 6px; color: rgba(244, 239, 226, .72); }
.today-expired-primary h2 { max-width: 520px; margin: 0; color: var(--brand-cream); font-size: 34px; line-height: 1.08; }
.today-expired-primary > p:not(.snapshot-eyebrow) { max-width: 540px; margin: 13px 0 0; color: rgba(244, 239, 226, .78); font-size: 15px; line-height: 1.55; }
.today-expired-primary .primary-button { margin-top: 22px; color: var(--brand-forest); background: var(--brand-cream); box-shadow: none; }
.today-expired-evidence { margin: 0; padding: 15px 22px; color: var(--text-soft); background: var(--surface-soft); font-size: 13px; line-height: 1.5; }
.planning-horizon-renewal { gap: 18px; }
.planning-horizon-renewal .sheet-intro { margin: 0; }
.income-planning-incomplete { display: grid; gap: 22px; }
.income-planning-boundary { display: grid; gap: 7px; border: 1px solid var(--line-strong); border-radius: var(--radius-medium); padding: 18px; background: var(--surface-soft); }
.income-planning-boundary strong { color: var(--text); font-size: 16px; line-height: 1.3; }
.income-planning-boundary p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.required-note { width: fit-content; margin: 0; border-radius: 999px; padding: 5px 9px; color: var(--accent-strong); background: var(--accent-soft); font-size: 12px; font-weight: 680; }
.onboarding-actions { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 15px; }
.onboarding-actions .primary-button { margin-left: auto; }
.demo-button { min-height: 44px; justify-self: center; border: 0; padding: 0 10px; color: var(--text-muted); background: transparent; font-size: 13px; }
.welcome-promise { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; border-radius: var(--radius-medium); padding: 16px; background: var(--surface-soft); }
.welcome-promise img { width: 64px; height: 64px; }
.welcome-promise p { margin: 0; color: var(--text-soft); font-size: 14px; }
.onboarding-value-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.onboarding-value-list li { position: relative; min-height: 28px; display: flex; align-items: center; padding-left: 28px; color: var(--text-soft); font-size: 14px; }
.onboarding-value-list li::before { position: absolute; left: 3px; width: 8px; height: 8px; border-radius: 50%; content: ""; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.onboarding-status legend { margin-bottom: 8px; color: var(--text-soft); font-size: 13px; font-weight: 650; }
.onboarding-money-section { min-width: 0; display: grid; gap: 16px; }
.onboarding-money-section + .onboarding-money-section { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.onboarding-money-heading { display: grid; gap: 5px; }
.onboarding-money-heading h3 { margin: 0; color: var(--text); font-size: 17px; line-height: 1.3; font-weight: 690; }
.onboarding-money-heading p, .onboarding-essential-help { max-width: 520px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.onboarding-essential-help { margin-top: -10px; }
.onboarding-essentials-section .field-input:disabled { cursor: not-allowed; color: var(--text-muted); background: var(--surface-soft); opacity: .68; }
.onboarding-payment-list { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.onboarding-payment-list > div { min-width: 0; min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.onboarding-payment-list > div:last-child { border-bottom: 0; }
.onboarding-payment-list span, .onboarding-payment-list strong, .onboarding-payment-list small { min-width: 0; display: block; overflow-wrap: anywhere; }
.onboarding-payment-list strong { font-size: 14px; }
.onboarding-payment-list small { margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.onboarding-payment-list b { font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.onboarding-payment-empty { border-left: 2px solid var(--line-strong); padding: 4px 0 4px 13px; }
.onboarding-payment-empty strong { font-size: 14px; }
.onboarding-payment-empty p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.onboarding-payment-entry { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.onboarding-add-payment { justify-self: start; }
.onboarding-add-payment svg { width: 17px; }
.onboarding-none { align-items: flex-start; line-height: 1.4; }
.onboarding-none input { margin-top: 3px; }
.onboarding-buffer-choice .buffer-mode-control { gap: 6px; padding: 6px; }
.onboarding-buffer-choice .buffer-mode-control span { min-height: 72px; place-items: start stretch; align-content: center; gap: 4px; padding: 11px 12px; text-align: left; }
.onboarding-buffer-choice .buffer-mode-control strong, .onboarding-buffer-choice .buffer-mode-control small { display: block; }
.onboarding-buffer-choice .buffer-mode-control small { color: var(--text-muted); font-size: 12px; font-weight: 520; line-height: 1.35; }
.onboarding-custom-buffer.is-hidden { display: none; }
.onboarding-policy-note, .onboarding-review-note { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.onboarding-review { display: grid; gap: 22px; }
.onboarding-review-list { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.onboarding-review-row { min-width: 0; min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.onboarding-review-row:last-child { border-bottom: 0; }
.onboarding-review-row span, .onboarding-review-row strong, .onboarding-review-row small { min-width: 0; display: block; overflow-wrap: anywhere; }
.onboarding-review-row strong { font-size: 13px; }
.onboarding-review-row small { margin-top: 4px; color: var(--text-soft); font-size: 13px; }
.onboarding-review-row .text-button { padding-inline: 10px; }
.onboarding-review-row.is-horizon { grid-template-columns: 1fr; }
.onboarding-income-date { margin-bottom: -8px; }
.daily-needs-saved-summary { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-small); padding: 14px; background: var(--surface-soft); }
.daily-needs-saved-summary span, .daily-needs-saved-summary strong, .daily-needs-saved-summary small { min-width: 0; display: block; overflow-wrap: anywhere; }
.daily-needs-saved-summary strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.daily-needs-saved-summary small { margin-top: 4px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.onboarding-needs-start { justify-self: start; }
.daily-needs-flow { display: grid; gap: 20px; }
.daily-needs-progress { display: grid; gap: 7px; color: var(--text-muted); font-size: 12px; }
.daily-needs-progress > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.daily-needs-progress i { height: 4px; border-radius: 999px; background: var(--line); }
.daily-needs-progress i.is-complete, .daily-needs-progress i.is-current { background: var(--accent); }
.daily-needs-progress i.is-current { box-shadow: 0 0 0 2px var(--accent-soft); }
.daily-needs-heading { display: grid; gap: 7px; }
.daily-needs-heading h3 { margin: 0; font-size: 25px; line-height: 1.18; }
.daily-needs-heading p, .field-help { max-width: 570px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.daily-needs-date { display: grid; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); padding: 13px 14px; background: var(--surface); cursor: pointer; }
.daily-needs-date > span { color: var(--text-soft); font-size: 13px; font-weight: 650; }
.daily-needs-date input { width: 100%; min-height: 44px; border: 0; padding: 0; color: var(--text); background: transparent; font: inherit; font-size: 18px; }
.daily-needs-date:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.daily-needs-method { display: grid; gap: 9px; border: 0; padding: 0; }
.daily-needs-method legend { margin-bottom: 9px; color: var(--text-soft); font-size: 13px; font-weight: 650; }
.daily-needs-method .buffer-mode-control { gap: 6px; padding: 6px; }
.daily-needs-method .buffer-mode-control span { min-height: 82px; place-items: start stretch; align-content: center; gap: 4px; padding: 12px; text-align: left; }
.daily-needs-method strong, .daily-needs-method small { display: block; }
.daily-needs-method small { color: var(--text-muted); font-size: 12px; font-weight: 520; line-height: 1.4; }
.daily-needs-zero { align-items: flex-start; line-height: 1.45; }
.daily-needs-zero input { margin-top: 3px; }
.daily-needs-live-preview { min-height: 104px; display: grid; gap: 5px; align-content: center; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 14px 16px; background: var(--surface-soft); }
.daily-needs-live-preview span, .daily-needs-live-preview small { color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.daily-needs-live-preview strong { font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.daily-needs-separation, .daily-needs-boundary { margin: 0; border-radius: var(--radius-small); padding: 12px 14px; color: var(--text-soft); background: var(--surface-soft); font-size: 12px; line-height: 1.55; }
.daily-needs-boundary { border-left: 3px solid var(--warning); }
.daily-needs-result { display: grid; gap: 6px; border-radius: var(--radius-medium); padding: 22px 18px; color: var(--brand-cream); background: var(--brand-forest); }
.daily-needs-result span, .daily-needs-result small { color: rgba(244, 239, 226, .78); font-size: 12px; line-height: 1.45; }
.daily-needs-result strong { color: var(--brand-cream); font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.daily-needs-facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.daily-needs-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.daily-needs-facts dt { color: var(--text-muted); font-size: 12px; }
.daily-needs-facts dd { margin: 0; color: var(--text); font-size: 13px; font-weight: 620; text-align: right; overflow-wrap: anywhere; }
.daily-needs-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 15px; }
.plan-date-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; border-radius: var(--radius-small); padding: 12px 14px; background: var(--surface-soft); }
.plan-date-summary > span { color: var(--text-muted); font-size: 12px; }
.plan-date-summary > strong { grid-row: 2; font-size: 15px; }
.plan-date-summary .text-button { grid-column: 2; grid-row: 1 / span 2; }
.plan-accounted-body dt small, .today-calculation-row dt small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11px; font-weight: 500; line-height: 1.35; }
.personal-buffer-editor { display: grid; gap: 18px; }
.personal-buffer-heading { display: grid; gap: 7px; }
.personal-buffer-heading h3 { margin: 0; font-size: 25px; line-height: 1.18; }
.personal-buffer-heading p, .personal-buffer-boundary { max-width: 620px; margin: 0; color: var(--text-muted); line-height: 1.55; }
.personal-buffer-boundary { border-left: 3px solid var(--accent); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 12px 14px; background: var(--surface-soft); font-size: 13px; }
.personal-buffer-method { display: grid; gap: 9px; border: 0; padding: 0; }
.personal-buffer-method legend { margin-bottom: 9px; color: var(--text-soft); font-size: 13px; font-weight: 650; }
.personal-buffer-method .buffer-mode-control { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.personal-buffer-method .buffer-mode-control span { min-height: 94px; place-items: start stretch; align-content: center; gap: 4px; padding: 12px; text-align: left; }
.personal-buffer-method strong, .personal-buffer-method small { display: block; }
.personal-buffer-method small { color: var(--text-muted); font-size: 12px; font-weight: 520; line-height: 1.4; }
.personal-buffer-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.personal-buffer-quick .secondary-button { min-width: 82px; }
.personal-buffer-preview { min-height: 100px; display: grid; gap: 6px; align-content: center; border-radius: var(--radius-medium); padding: 18px; background: var(--surface-soft); }
.personal-buffer-preview.is-waiting { color: var(--text-muted); }
.personal-buffer-preview.is-ready { color: var(--brand-cream); background: var(--brand-forest); }
.personal-buffer-preview > span, .personal-buffer-preview > small { color: rgba(244,239,226,.8); font-size: 12px; line-height: 1.45; }
.personal-buffer-preview > strong { color: var(--brand-cream); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.personal-buffer-safe { display: grid; gap: 4px; margin-top: 8px; border-top: 1px solid rgba(244,239,226,.22); padding-top: 14px; }
.personal-buffer-safe span, .personal-buffer-safe small, .personal-buffer-safe summary, .personal-buffer-safe p { color: rgba(244,239,226,.8); font-size: 12px; line-height: 1.45; }
.personal-buffer-safe b { color: var(--brand-cream); font-size: 18px; }
.personal-buffer-safe details { margin-top: 4px; }
.personal-buffer-safe summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.personal-buffer-safe p { margin: 4px 0 0; }
.personal-buffer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 15px; }
.buffer-recommendation { min-width: 0; display: grid; gap: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-large); padding: clamp(22px, 5vw, 34px); color: var(--brand-cream); background: var(--brand-forest); box-shadow: var(--shadow-low); }
html[data-theme="dark"] .buffer-recommendation { background: #15352c; }
.buffer-recommendation-copy { display: grid; gap: 6px; }
.buffer-recommendation-copy p, .buffer-recommendation-copy h3, .buffer-recommendation-reason { margin: 0; color: inherit; }
.buffer-recommendation-copy .section-kicker { color: rgba(244, 239, 226, .72); }
.buffer-recommendation-copy h3 { font-size: 25px; line-height: 1.18; }
.buffer-recommendation-copy > p:last-child, .buffer-recommendation-reason { max-width: 620px; color: rgba(244, 239, 226, .8); line-height: 1.5; }
.buffer-recommendation-amount { color: var(--brand-cream); font-size: 4.5rem; line-height: .98; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.buffer-recommendation-reason { border-top: 1px solid rgba(244, 239, 226, .2); padding-top: 15px; font-size: 13px; }
.buffer-recommendation-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.buffer-recommendation-actions > button { min-height: 48px; }
.buffer-recommendation .primary-button { color: var(--brand-forest); background: var(--brand-cream); }
.buffer-recommendation .secondary-button { border-color: rgba(244, 239, 226, .45); color: var(--brand-cream); background: transparent; }
.buffer-recommendation .primary-button:hover { background: #fffefa; }
.buffer-recommendation .secondary-button:hover { background: rgba(244, 239, 226, .1); }
.buffer-recommendation-unavailable { display: grid; gap: 5px; border-left: 3px solid var(--warning); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 13px 15px; background: var(--surface-soft); }
.buffer-recommendation-unavailable strong, .buffer-recommendation-unavailable p { margin: 0; }
.buffer-recommendation-unavailable p { color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.buffer-strategy-recommendation { min-width: 0; display: grid; gap: 22px; }
.buffer-strategy-recommendation > div:first-child { display: grid; gap: 6px; }
.buffer-strategy-recommendation h3, .buffer-strategy-recommendation p { margin: 0; }
.buffer-strategy-recommendation h3 { font-size: 27px; line-height: 1.18; }
.buffer-strategy-recommendation h3:focus { outline: 3px solid color-mix(in srgb, var(--accent) 54%, transparent); outline-offset: 4px; }
.buffer-strategy-recommendation > div:first-child > p:last-child { color: var(--text-soft); line-height: 1.5; }
.buffer-strategy-recommendation dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.buffer-strategy-recommendation dl > div { min-width: 0; display: grid; gap: 7px; padding: 16px; }
.buffer-strategy-recommendation dl > div + div { border-left: 1px solid var(--line); }
.buffer-strategy-recommendation dt { color: var(--text-muted); font-size: 13px; }
.buffer-strategy-recommendation dd { margin: 0; font-size: 28px; font-weight: 730; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.personal-buffer-plan-summary { display: grid; gap: 4px; margin-top: 6px; border-radius: var(--radius-small); padding: 12px 14px; background: var(--surface-soft); }
.personal-buffer-plan-summary span { color: var(--text-muted); font-size: 12px; }
.personal-buffer-plan-summary strong { font-size: 14px; overflow-wrap: anywhere; }
.plan-accounted-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.daily-needs-connected-buffer { display: grid; gap: 4px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 12px 14px; background: var(--surface-soft); }
.daily-needs-connected-buffer span, .daily-needs-connected-buffer small, .daily-needs-connected-buffer p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.daily-needs-connected-buffer strong { font-size: 18px; }
.daily-needs-connected-buffer.is-blocked { border-left-color: var(--warning); }
.buffer-preview { display: grid; justify-items: start; gap: 2px; border-radius: var(--radius-medium); padding: 16px; background: var(--surface-soft); }
.buffer-preview span, .buffer-preview small { color: var(--text-muted); font-size: 13px; }
.buffer-preview strong { color: var(--accent-strong); font-size: 30px; }
.onboarding-result { position: relative; justify-items: center; overflow: hidden; border-radius: var(--radius-large); padding: 38px 24px 24px; color: var(--brand-cream); background: var(--brand-forest); text-align: center; animation: result-enter var(--motion-structural) var(--ease-enter) both; }
.result-slot { position: absolute; top: 0; left: 50%; width: 78px; height: 16px; transform: translateX(-50%); border-radius: 0 0 40px 40px; background: var(--canvas); }
.onboarding-result h2 { color: var(--brand-cream); font-size: 26px; }
.result-label { margin: 0; color: rgba(244, 239, 226, .72); font-size: 14px; }
.result-amount { color: var(--brand-cream); font-size: 58px; line-height: 1; font-weight: 730; }
.onboarding-result > p:not(.result-label) { margin: 0; color: rgba(244, 239, 226, .76); }
.result-summary { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(244, 239, 226, .16); border-bottom: 1px solid rgba(244, 239, 226, .16); }
.result-summary span { display: grid; gap: 3px; padding: 12px 8px; color: rgba(244, 239, 226, .65); font-size: 12px; }
.result-summary span + span { border-left: 1px solid rgba(244, 239, 226, .16); }
.result-summary strong { color: var(--brand-cream); font-size: 14px; }
.calculation-preview { min-height: 44px; border: 0; padding: 0 8px; color: var(--brand-cream); background: transparent; text-decoration: underline; text-decoration-color: rgba(244, 239, 226, .35); text-underline-offset: 4px; }
.onboarding-result .onboarding-actions { width: 100%; border-color: rgba(244, 239, 226, .16); }
.onboarding-result .text-button { color: var(--brand-cream); }
.onboarding-result .primary-button { color: var(--brand-forest); background: var(--brand-cream); box-shadow: none; }

.lock-screen { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 20px; background: var(--canvas); }
.lock-panel { width: min(100%, 380px); display: grid; gap: 14px; border-radius: var(--radius-large); padding: 24px; background: var(--surface); box-shadow: var(--shadow-high); }
.lock-logo { width: 64px; height: 64px; }
.lock-panel h2, .lock-panel p { margin: 0; }
.pin-input { text-align: center; }
.toast { position: fixed; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; z-index: 3000; max-width: 460px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(140%); margin: 0 auto; border-radius: 12px; padding: 10px 13px; color: var(--brand-cream); background: var(--brand-forest); box-shadow: var(--shadow-high); font-size: 13px; opacity: 0; pointer-events: none; transition: transform var(--motion-disclosure) var(--ease-enter), opacity var(--motion-replace) var(--ease-standard); }
.toast.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
body.sheet-open .toast, body.conflict-open .toast { visibility: hidden; }
.toast button { min-height: 36px; border: 0; color: var(--brand-cream); background: transparent; font-weight: 700; }
.toast.is-financial-feedback { min-height: 112px; align-items: center; border: 1px solid var(--line-strong); border-top: 3px solid var(--positive); border-radius: var(--radius-medium); padding: 17px 16px; color: var(--text); background: var(--surface); font-size: 15px; }
.toast.is-financial-feedback.is-warning { border-top-color: var(--warning); }
.toast.is-financial-feedback.is-critical { border-top-color: var(--negative); }
.toast.is-financial-feedback.is-improved { border-top-color: var(--positive); }
.financial-feedback-copy { min-width: 0; display: grid; gap: 5px; }
.financial-feedback-copy strong { color: var(--text); font-size: 17px; line-height: 1.3; font-weight: 720; }
.financial-feedback-copy p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.4; font-weight: 650; font-variant-numeric: tabular-nums; }
.financial-feedback-copy small { color: var(--text-soft); font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.toast.is-financial-feedback button { min-width: 64px; min-height: 44px; flex: 0 0 auto; border-radius: var(--radius-small); padding: 0 8px; color: var(--accent-strong); }
.toast.is-financial-feedback button:hover { background: var(--surface-soft); }
.financial-feedback-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

@keyframes result-enter { from { transform: scale(.975); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes activity-story-enter { from { transform: translateY(4px); opacity: .72; } to { transform: none; opacity: 1; } }
@keyframes activity-share-enter { from { transform: scaleX(.25); opacity: .5; } to { transform: scaleX(1); opacity: 1; } }
@keyframes board-line-update { from { stroke-dashoffset: 260; opacity: .56; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes progress-replace { from { transform: scaleX(.35); opacity: .6; } to { transform: scaleX(1); opacity: 1; } }
@keyframes value-replace { from { transform: translateY(5px); opacity: .58; } to { transform: none; opacity: 1; } }

@media (max-width: 520px) {
  .buffer-recommendation-amount { font-size: 3rem; }
  .app-shell { padding-right: 16px; padding-left: 16px; }
  .onboarding-screen { padding-right: 16px; padding-left: 16px; }
  .onboarding-screen.first-orientation-screen { padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .first-orientation-instrument { min-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .first-orientation-main { padding: 18px; }
  .first-orientation-content { padding-top: clamp(22px, 6vh, 44px); padding-bottom: clamp(22px, 6vh, 44px); }
  .first-orientation-content h1 { font-size: 44px; }
  .question-heading h2, .onboarding-result h2 { font-size: 29px; }
  .onboarding-actions { grid-template-columns: 1fr; }
  .onboarding-actions .primary-button, .onboarding-actions .text-button { width: 100%; margin-left: 0; }
  .onboarding-buffer-choice .buffer-mode-control { grid-template-columns: 1fr; }
  .daily-needs-method .buffer-mode-control { grid-template-columns: 1fr; }
  .daily-needs-result strong { font-size: 34px; }
  .daily-needs-actions { display: grid; grid-template-columns: 1fr; }
  .daily-needs-actions .primary-button, .daily-needs-actions .secondary-button, .daily-needs-actions .text-button { width: 100%; }
  .daily-needs-saved-summary, .plan-date-summary { grid-template-columns: 1fr; }
  .daily-needs-saved-summary .secondary-button, .plan-date-summary .text-button { width: 100%; grid-column: 1; grid-row: auto; }
  .personal-buffer-method .buffer-mode-control { grid-template-columns: 1fr; }
  .personal-buffer-method .buffer-mode-control span { min-height: 76px; }
  .personal-buffer-preview > strong { font-size: 34px; }
  .personal-buffer-actions { display: grid; grid-template-columns: 1fr; }
  .personal-buffer-actions .primary-button, .personal-buffer-actions .secondary-button { width: 100%; }
  .buffer-recommendation-actions { display: grid; grid-template-columns: 1fr; }
  .buffer-recommendation-actions > button { width: 100%; }
  .buffer-strategy-recommendation dl { grid-template-columns: 1fr; }
  .buffer-strategy-recommendation dl > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .planning-horizon-renewal .button-row { grid-template-columns: 1fr; }
  .planning-horizon-renewal .button-row button { width: 100%; }
  .personal-buffer-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .personal-buffer-quick .secondary-button { min-width: 0; padding-inline: 8px; }
  .onboarding-payment-list > div { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 7px; }
  .brand-wordmark { display: none !important; }
  .header-context { max-width: 104px; font-size: 12px; }
  .header-context[data-priority="supporting"] { display: none; }
  .today-decision-primary, .today-accounted, .today-snapshot > .next-action { padding-right: 15px; padding-left: 15px; }
  .today-status, .today-one-thing, .today-snapshot > .latest-change, .first-result-reason, .first-result-next { padding-right: 15px; padding-left: 15px; }
  .first-result-outcome { padding-right: 15px; padding-left: 15px; }
  .first-result-next .today-spend-check-entry { margin-right: -15px; margin-bottom: -20px; margin-left: -15px; width: calc(100% + 30px); }
  .today-one-thing .primary-button { width: 100%; }
  .today-estimated-income { padding-right: 15px; padding-left: 15px; }
  .today-expired-primary { padding-right: 18px; padding-left: 18px; }
  .today-expired-evidence { padding-right: 18px; padding-left: 18px; }
  .today-uncertainty { margin-right: 15px; margin-left: 15px; }
  .today-decision-details > summary { padding-right: 15px; padding-left: 15px; }
  .snapshot-ledger { margin-right: 15px; margin-left: 15px; }
  .snapshot-calculation { width: calc(100% - 30px); margin-right: 15px; margin-left: 15px; }
  .today-snapshot.is-missing-data { padding-right: 15px; padding-left: 15px; }
  .today-snapshot.is-missing-data > .next-action { width: calc(100% + 30px); margin-right: -15px; margin-left: -15px; }
  .transaction-row { grid-template-columns: 38px minmax(0, 1fr) auto; padding-inline: 11px; }
  .transaction-amount { min-width: 82px; }
  .latest-change { grid-template-columns: 1fr; }
  .latest-change .text-button { justify-self: start; margin-left: -8px; }
  .today-freshness { grid-template-columns: 36px minmax(0, 1fr); }
  .today-freshness .freshness-symbol { width: 36px; height: 36px; }
  .today-freshness .text-button { grid-column: 2; justify-self: start; margin-left: -8px; }
  .today-snapshot > .next-action .action-effect { display: none; }
  .change-history-item article > header { grid-template-columns: 1fr; }
  .change-history-item article > header > strong { max-width: none; text-align: left; }
  .change-history-item dl { grid-template-columns: 1fr; }
  .change-history-item dl > div:last-child { grid-column: auto; }
  .recurring-review-entry { grid-template-columns: 42px minmax(0, 1fr); }
  .recurring-review-action { grid-column: 2; justify-self: start; padding-inline: 0; }
  .filter-button span { display: none; }
  .filter-button { width: 48px; justify-content: center; padding: 0; }
  .plan-recovery-entry { align-items: stretch; flex-direction: column; gap: 12px; }
  .plan-recovery-entry .primary-button { width: 100%; }
  .scenario-assumption { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 16px; }
  .scenario-result-heading, .scenario-start > div:first-child { padding-right: 16px; padding-left: 16px; }
  .scenario-start .scenario-options { padding-right: 16px; padding-left: 16px; }
  .scenario-position-change { grid-template-columns: 34px minmax(0, 1fr); margin-right: 16px; margin-left: 16px; }
  .scenario-position-change > b { grid-column: 2; }
  .scenario-metric { display: block; padding: 15px 16px; }
  .scenario-metric dt { margin-bottom: 10px; }
  .scenario-metric-values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scenario-metric-difference { grid-column: 1 / -1; min-height: 38px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-top: 1px solid var(--line); border-left: 0; padding-top: 9px; padding-left: 0; }
  .scenario-result-actions { padding: 16px; }
  .scenario-result-actions .secondary-button { width: 100%; }
  .plan-summary-list > button { grid-template-columns: minmax(6.5rem, .7fr) minmax(0, 1.3fr) 18px; gap: 8px; }
  .subscription-merchant { grid-template-columns: 44px minmax(0, 1fr); }
  .subscription-merchant > strong { grid-column: 2; }
  .subscription-cost-summary > dl { grid-template-columns: 1fr; }
  .subscription-cost-summary > dl > div { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; border-top: 1px solid var(--line-strong); border-left: 0; padding: 10px 0 0; }
  .subscription-cost-summary > dl > div:first-child { border-top: 0; padding-top: 0; }
  .subscription-facts { grid-template-columns: 1fr; }
  .subscription-facts > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .subscription-actions > button { width: 100%; }
  .subscription-lifecycle-actions { display: grid; grid-template-columns: 1fr; }
  .subscription-lifecycle-actions > button { width: 100%; }
  .subscription-duplicate-comparison { grid-template-columns: 1fr; }
  .strategy-mode-selector > div { grid-template-columns: 1fr; }
  .strategy-mode-selector span { min-height: 68px; }
  .strategy-save-actions { position: static; align-items: stretch; flex-direction: column; }
  .strategy-save-actions button { width: 100%; }
  .strategy-position, .strategy-primary-action { padding: 20px 16px; }
  .strategy-section-heading { align-items: start; }
  .strategy-allocation-path li { padding-left: 18px; }
  .strategy-priorities > div { grid-template-columns: 1fr; }
  .strategy-primary-action > .primary-button { width: 100%; }
  .strategy-comparison { padding: 16px; }
  .strategy-comparison-row { grid-template-columns: minmax(0, 1fr) minmax(72px, .72fr) minmax(72px, .72fr); gap: 8px; }
  .scenario-template-picker > div { grid-template-columns: 1fr; }
  .scenario-list-item { grid-template-columns: 1fr; }
  .scenario-list-actions { justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 8px; }
  .scenario-adjustment-editor { grid-template-columns: 1fr; padding: 14px; }
  .scenario-adjustment-editor .scenario-remove-adjustment { grid-column: 1; }
  .scenario-add-adjustment { grid-template-columns: 1fr; }
  .scenario-add-adjustment .secondary-button { width: 100%; }
  .scenario-editor-form { padding: 16px; }
  .scenario-editor-actions { display: grid; grid-template-columns: 1fr; }
  .scenario-editor-actions > button { width: 100%; }
  .scenario-result-identity, .scenario-result-heading { padding-right: 16px; padding-left: 16px; }
  .scenario-result-heading h3 { font-size: 28px; }
  .scenario-impact-classification { margin-right: 16px; margin-left: 16px; }
  .scenario-result-details { grid-template-columns: 1fr; }
  .scenario-result-details > div:nth-child(odd) { border-right: 0; }
  .scenario-outdated-notice { align-items: stretch; flex-direction: column; }
  .scenario-outdated-notice .text-button { align-self: start; }
  .credit-paths { grid-template-columns: 1fr; }
  .credit-impact-value, .credit-calculator-primary { font-size: 2.35rem; }
  .credit-form, .credit-calculator-result, .credit-impact { padding: 16px; }
  .credit-impact dl, .credit-result-facts, .credit-review-facts, .credit-detail dl, .credit-schedule-summary dl { grid-template-columns: 1fr; }
  .credit-impact dl > div:nth-child(n), .credit-result-facts > div:nth-child(n), .credit-review-facts > div:nth-child(n), .credit-detail dl > div:nth-child(n), .credit-schedule-summary dl > div:nth-child(n) { padding-right: 0; padding-left: 0; }
  .credit-list-item > button { grid-template-columns: minmax(0, 1fr) auto; }
  .credit-list-item > button > svg { display: none; }
  .activity-trend { grid-template-columns: 1fr; }
  .activity-trend p { text-align: left; }
  .field-grid.two { grid-template-columns: 1fr; }
  .trust-status-line { display: grid; gap: 3px; }
  .trust-status-line span { text-align: left; }
  .trust-saved-summary dl > div { grid-template-columns: 1fr; gap: 2px; }
  .freshness-item-heading { display: grid; gap: 7px; }
  .freshness-status { justify-self: start; white-space: normal; }
  .freshness-item-action { width: 100%; }
  .preview-empty { grid-template-columns: 38px minmax(0, 1fr); }
  .preview-empty > span { width: 38px; height: 38px; }
  .preview-empty > .preview-action { grid-column: 1 / -1; width: 100%; }
  .preview-prerequisites { display: grid; }
  .preview-prerequisites .preview-action, .preview-panel > .preview-action { width: 100%; }
  .preview-result-actions { display: grid; }
  .preview-result-actions > button, .forecast-review-action { width: 100%; }
  .forecast-review-record.is-pending { padding-left: 11px; }
  .forecast-review-facts { grid-template-columns: 1fr; }
  .forecast-review-facts > div:nth-child(even) { border-left: 0; padding-left: 0; }
  .forecast-review-confirm-actions { display: grid; grid-template-columns: 1fr; }
  .forecast-review-confirm-actions > button { width: 100%; }
  .classification-detail-actions { position: relative; }
  .classification-transaction { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .onboarding-screen { align-items: start; padding-right: 16px; padding-left: 16px; }
  .onboarding-instrument { min-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); align-content: start; }
  .question-heading h2 { font-size: 31px; }
}

@media (max-width: 899px) {
  .board-event.is-mobile-collapsed { display: none; }
}

@media (min-width: 521px) {
  .brand-icon { display: none; }
  .brand-lockup { gap: 0; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .snapshot-ledger { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; }
  .snapshot-ledger-row { align-content: center; }
  .snapshot-ledger-row.is-protected { transform: none; }
  .snapshot-ledger-operator { height: auto; grid-template-columns: 1fr; grid-template-rows: 24px minmax(0, 1fr); justify-items: center; }
  .snapshot-ledger-operator i { width: 1px; height: 100%; }
}

@media (max-width: 360px) {
  .app-shell { padding-right: 12px; padding-left: 12px; }
  .first-orientation-content h1 { font-size: 40px; }
  .first-orientation-body { font-size: 20px; }
  .app-header { gap: 6px; }
  .header-actions { gap: 2px; }
  .header-context { display: block; max-width: 92px; }
  .header-context[data-priority="supporting"] { display: none; }
  .snapshot-safe-value, .result-amount { font-size: 43px; }
  .today-decision-sentence { font-size: 19px; }
  .snapshot-ledger-row { grid-template-columns: 1fr; gap: 5px; }
  .snapshot-ledger-row strong { justify-self: start; }
  .snapshot-ledger-row.is-protected { transform: translateX(4px); }
  .snapshot-confidence { padding-inline: 4px; font-size: 12px; }
  .essential-equivalent { grid-template-columns: 1fr; }
  .next-action { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; }
  .action-symbol-mark { width: 36px; height: 36px; }
  .transaction-main span, .transaction-amount span { font-size: 12px; }
  .transaction-amount { min-width: 74px; }
  .recurring-suggestion-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .recurring-suggestion-row > svg { display: none; }
  .recurring-suggestion-row > b { font-size: 12px; }
  .recurring-facts > div { grid-template-columns: 1fr; gap: 2px; padding-block: 9px; }
  .recurring-facts dd { text-align: left; }
  .board-timeline { padding-right: 12px; padding-left: 12px; }
  .board-period-head { display: grid; }
  .board-final { justify-items: start; }
  .board-event { width: 112px; }
  .board-actions button { grid-template-columns: 1fr; justify-items: center; gap: 3px; padding-inline: 3px; text-align: center; }
  .plan-decision-primary { padding-right: 14px; padding-left: 14px; }
  .plan-decision-amount { font-size: 43px; }
  .plan-decision-section { padding-right: 14px; padding-left: 35px; }
  .plan-decision-section::before { left: 18px; }
  .plan-decision-section::after { left: 14px; }
  .plan-section-heading { display: grid; }
  .plan-section-heading > strong { text-align: left; }
  .plan-commitments li > button, .plan-technical-body li > button { grid-template-columns: minmax(0, 1fr) 18px; }
  .plan-commitments li b, .plan-technical-body li b { grid-column: 1; grid-row: 2; max-width: none; text-align: left; }
  .plan-commitments li svg, .plan-technical-body li svg { grid-column: 2; grid-row: 1 / span 2; }
  .plan-technical-body > dl { grid-template-columns: 1fr; }
  .calculation-position { padding-right: 12px; padding-left: 12px; }
  .trust-foundation { grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 8px minmax(0, 1fr) 8px minmax(0, 1fr); }
  .trust-foundation > button { min-height: 72px; grid-template-rows: 30px auto; padding-inline: 2px; }
  .trust-foundation small { display: none; }
  .trust-foundation > i { padding-top: 17px; }
  .preview-values dl > div { grid-template-columns: 1fr; gap: 3px; }
  .preview-values dd { font-size: 17px; }
  .forecast-review-record-actions { display: grid; grid-template-columns: 1fr; }
  .forecast-review-record-actions > button { width: 100%; }
  .forecast-application-status, .today-forecast-source { grid-template-columns: 24px minmax(0, 1fr); }
  .today-forecast-source { margin-right: 15px; margin-left: 15px; }
  .forecast-application-status > button, .today-forecast-source > button { grid-column: 2; width: 100%; justify-self: stretch; }
  .forecast-application-boundaries { grid-template-columns: 1fr; }
  .calculation-position > strong { font-size: 28px; }
  .calculation-group-body { padding-left: 8px; }
  .calculation-emergency-info { grid-template-columns: 1fr; }
  .calculation-emergency-info p { grid-column: 1; }
  .modal-sheet { padding-right: 16px; padding-left: 16px; }
  .segmented-control button, .language-control button, .theme-control button { padding-inline: 5px; font-size: 12px; }
  .trust-foundation > i svg { width: 10px; }
  .trust-foundation strong, .trust-foundation small { font-size: 12px; }
  .classification-map-destinations { padding-left: 2px; }
  .classification-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; }
  .classification-row-mark { width: 30px; height: 30px; }
  .classification-row > button { min-width: 52px; padding-inline: 3px; }
  .classification-transaction > b { font-size: 12px; }
  .profile-preview { grid-template-columns: 1fr; }
  .profile-preview span + span { border-top: 1px solid var(--line); border-left: 0; }
  .strategy-sheet > button { grid-template-columns: 1fr; }
  .strategy-consequence { max-width: none; text-align: left; }
  .goal-detail-actions { grid-template-columns: 1fr; }
}

@media (min-width: 760px) {
  .app-shell { padding-right: 28px; padding-left: 28px; }
  .today-decision-primary, .today-accounted, .today-snapshot > .next-action { padding-right: 24px; padding-left: 24px; }
  .today-status, .today-one-thing, .today-snapshot > .latest-change, .first-result-reason, .first-result-next { padding-right: 24px; padding-left: 24px; }
  .first-result-outcome { padding-right: 24px; padding-left: 24px; }
  .first-result-next .today-spend-check-entry { margin-right: -24px; margin-bottom: -20px; margin-left: -24px; width: calc(100% + 48px); }
  .today-estimated-income { padding-right: 24px; padding-left: 24px; }
  .today-uncertainty { margin-right: 24px; margin-left: 24px; }
  .today-forecast-source { margin-right: 24px; margin-left: 24px; }
  .today-decision-details > summary { padding-right: 24px; padding-left: 24px; }
  .snapshot-ledger { margin-right: 24px; margin-left: 24px; }
  .snapshot-calculation { width: calc(100% - 48px); margin-right: 24px; margin-left: 24px; }
  .activity-story-layout { grid-template-columns: minmax(0, .92fr) minmax(300px, 1.08fr); gap: 30px; align-items: start; }
  .activity-flow { min-height: 286px; align-content: center; }
  .onboarding-screen { padding: 40px; }
  .modal-sheet.is-calculation-sheet { width: min(100%, 880px); }
  .modal-sheet.is-trust-sheet { width: min(100%, 880px); }
  .modal-sheet.is-freshness-sheet { width: min(100%, 760px); }
  .trust-section-layout { grid-template-columns: minmax(0, 1.45fr) minmax(230px, .55fr); gap: 28px; align-items: start; }
  .trust-date-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-choice-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-choice-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-evidence { position: sticky; top: 0; }
  .preview-result-layout { grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr); gap: 30px; align-items: start; }
  .forecast-review-record .forecast-review-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .forecast-review-record .forecast-review-facts > div { border-left: 1px solid var(--line); padding-left: 14px; }
  .forecast-review-record .forecast-review-facts > div:first-child { border-left: 0; padding-left: 0; }
  .classification-workspace { grid-template-columns: minmax(230px, .68fr) minmax(0, 1.32fr); column-gap: 30px; align-items: start; }
  .classification-detail { grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); column-gap: 30px; align-items: start; }
  .classification-detail > .classification-back, .classification-detail > .trust-notice, .classification-detail > header, .classification-detail > .classification-exclusions, .classification-detail > .classification-detail-actions { grid-column: 1 / -1; }
  .classification-detail > .classification-samples { grid-column: 1; }
  .classification-detail > .classification-fieldset:not(.classification-exclusions) { grid-column: 2; grid-row: 4 / span 2; }
  .classification-detail > .classification-effects { grid-column: 1; }
  .classification-detail-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classification-detail-actions > .text-button { grid-column: 1 / -1; width: auto; justify-self: start; }
  .calculation-equation { grid-template-columns: minmax(0, 1.1fr) 38px minmax(0, .9fr) 38px minmax(0, 1.05fr); align-items: stretch; }
  .calculation-operator { min-height: 100%; }
  .calculation-position { align-content: center; min-height: 122px; }
  .calculation-position > strong { font-size: 32px; }
  .calculation-audit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .calculation-group:first-child { grid-column: 1 / -1; }
  .calculation-group:nth-child(2), .calculation-group:nth-child(4), .calculation-group:nth-child(6) { border-top: 1px solid var(--line); }
  .plan-accounted dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-decision-action { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 350px) {
  .bottom-nav { padding-right: 4px; padding-left: 4px; }
  .nav-item { font-size: 11px; }
  .strategy-position h2 { font-size: 24px; }
  .strategy-section-heading { display: grid; }
  .strategy-section-heading > strong { text-align: left; }
  .strategy-comparison-row { grid-template-columns: 1fr 1fr; }
  .strategy-comparison-row span { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .app-header { min-height: 76px; }
  .brand-icon { display: none; }
  .brand-lockup { gap: 0; }
  .today-screen { width: min(100%, 760px); margin-inline: auto; }
  .today-layout { grid-template-columns: minmax(0, 1fr); }
  .today-snapshot { min-height: 0; align-self: start; }
  .activity-screen { width: min(100%, 880px); margin-inline: auto; }
  .plan-screen > .planning-board, .plan-screen > .plan-decision-overview, .plan-screen > .screen-heading { width: 100%; }
  .plan-decision-primary { padding: 26px 28px; }
  .plan-decision-section { padding-right: 28px; padding-left: 52px; }
  .plan-decision-section::before { left: 29px; }
  .plan-decision-section::after { left: 25px; }
  .planning-board { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
  .board-timeline { padding: 24px 24px 22px; }
  .board-side { border-left: 1px solid var(--line-strong); padding: 4px 22px 4px 42px; }
  .board-side::before { left: 24px; }
  .board-actions { grid-column: 1 / -1; }
  .plan-recovery-entry { width: 100%; }
  .add-screen { width: min(100%, 680px); margin-inline: auto; }
  .settings-screen { width: min(100%, 760px); margin-inline: auto; }
  .bottom-nav { bottom: 14px; width: 500px; min-height: 60px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 4px 10px; box-shadow: var(--shadow-high); }
  .modal { align-items: center; padding: 24px; }
  .modal-sheet { max-height: min(88dvh, 800px); border-radius: 20px; padding-bottom: 24px; }
  .sheet-handle { display: none; }
}

.state-recovery-screen, .state-conflict-screen {
  position: fixed;
  inset: 0;
  z-index: 6000;
  min-width: 0;
  overflow: auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: var(--canvas);
}
.state-recovery-panel, .state-conflict-panel {
  width: min(100%, 560px);
  min-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  align-content: center;
  margin: 0 auto;
}
#state-recovery-content, #state-conflict-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 24px 20px;
  background: var(--surface);
  box-shadow: var(--shadow-low);
}
.state-recovery-logo { width: 42px; height: 42px; }
#state-recovery-content .eyebrow, #state-conflict-content .eyebrow { margin: 16px 0 5px; }
#state-recovery-content h1, #state-conflict-content h1 { margin: 0; font-size: 36px; line-height: 1.1; overflow-wrap: anywhere; }
#state-recovery-content h1:focus-visible, #state-conflict-content h1:focus-visible { border-radius: 5px; outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 4px; }
#state-recovery-content > p:not(.eyebrow):not(.state-recovery-local),
#state-conflict-content > p:not(.eyebrow):not(.state-recovery-local) { margin: 12px 0 0; color: var(--text-soft); }
#state-recovery-content .button-stack, #state-conflict-content .button-stack { display: grid; gap: 8px; margin-top: 20px; }
#state-recovery-content .button-stack > button, #state-conflict-content .button-stack > button { width: 100%; min-height: 48px; }
.state-recovery-notice, .state-recovery-status {
  margin-top: 18px;
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-small);
  padding: 12px 14px;
  background: var(--surface-soft);
}
.state-recovery-notice p, .state-recovery-status p { margin: 4px 0 0; color: var(--text-soft); font-size: 14px; }
.state-recovery-backup { display: grid; gap: 3px; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-medium); padding: 14px; }
.state-recovery-backup span, .state-recovery-backup small { color: var(--text-muted); font-size: 13px; }
.state-recovery-backup strong { font-size: 17px; }
.state-recovery-reset { margin-top: 4px; color: var(--negative); }
.state-recovery-local { margin: 18px 0 0; color: var(--text-muted); font-size: 13px; text-align: center; }
.recovery-meta-list { display: grid; gap: 0; margin: 18px 0 0; }
.recovery-meta-list > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; border-top: 1px solid var(--line); padding: 11px 0; }
.recovery-meta-list dt { color: var(--text-soft); }
.recovery-meta-list dd { max-width: 250px; margin: 0; overflow-wrap: anywhere; color: var(--text); font-weight: 680; text-align: right; }
.state-recovery-settings .button-stack { display: grid; gap: 8px; margin-top: 20px; }
.state-recovery-settings .button-stack button { width: 100%; }
.state-recovery-settings .policy-note { margin-top: 18px; }
.state-recovery-status[data-status="ready"] { border-left-color: var(--positive); }
.state-recovery-status[data-status="unavailable"] { border-left-color: var(--line-strong); }
.state-conflict-notice {
  margin-top: 18px;
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-small);
  padding: 12px 14px;
  background: var(--surface-soft);
}
.state-conflict-notice p { margin: 4px 0 0; color: var(--text-soft); font-size: 14px; }
.state-conflict-meta dd { font-variant-numeric: tabular-nums; }
.state-conflict-error { margin-top: 14px; overflow-wrap: anywhere; }
.state-conflict-error.is-status { color: var(--positive); }
.state-conflict-prohibition { border-top: 1px solid var(--line); padding-top: 14px; color: var(--text-muted) !important; font-size: 13px; text-align: center; }

.runtime-version-screen {
  position: fixed;
  inset: 0;
  z-index: 6000;
  min-width: 0;
  overflow: auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: var(--canvas);
}
.runtime-version-panel {
  width: min(100%, 560px);
  min-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  align-content: center;
  margin: 0 auto;
}
#runtime-version-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 24px 20px;
  background: var(--surface);
  box-shadow: var(--shadow-low);
}
#runtime-version-content .eyebrow { margin: 16px 0 5px; }
#runtime-version-content h1 { margin: 0; font-size: 36px; line-height: 1.1; overflow-wrap: anywhere; }
#runtime-version-content h1:focus-visible { border-radius: 5px; outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: 4px; }
#runtime-version-content > p:not(.eyebrow):not(.state-recovery-local) { margin: 12px 0 0; color: var(--text-soft); }
#runtime-version-content .button-stack { display: grid; gap: 8px; margin-top: 20px; }
#runtime-version-content .button-stack > button { width: 100%; min-height: 48px; }
.runtime-version-notice, .pwa-update-hold {
  margin-top: 18px;
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-small);
  padding: 12px 14px;
  background: var(--surface-soft);
}
.runtime-version-notice p { margin: 4px 0 0; color: var(--text-soft); font-size: 14px; }

.pwa-update-notice {
  position: fixed;
  right: 12px;
  bottom: calc(74px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 1500;
  width: min(calc(100% - 24px), 680px);
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-medium);
  padding: 13px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-high);
}
#pwa-update-content { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.pwa-update-copy { min-width: 0; }
.pwa-update-copy strong, .pwa-update-copy p { display: block; }
.pwa-update-copy strong { font-size: 14px; line-height: 1.35; }
.pwa-update-copy p { margin: 3px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.4; }
.pwa-update-actions { display: flex; align-items: center; gap: 5px; }
.pwa-update-actions button { min-height: 44px; white-space: nowrap; }

.pwa-settings-sheet { display: grid; gap: 16px; }
.pwa-settings-sheet .sheet-intro, .pwa-settings-sheet .policy-note, .pwa-settings-sheet .pwa-update-hold { margin: 0; }
.pwa-version-facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.pwa-version-facts > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 14px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.pwa-version-facts dt { color: var(--text-soft); }
.pwa-version-facts dd { max-width: 290px; margin: 0; overflow-wrap: anywhere; font-weight: 680; text-align: right; }
.pwa-settings-sheet .button-stack { display: grid; gap: 8px; }
.pwa-settings-sheet .button-stack button { width: 100%; min-height: 48px; }
.pwa-update-hold { color: var(--text-soft); font-size: 14px; }

.unexpected-error-screen {
  position: fixed;
  inset: 0;
  z-index: 6000;
  min-width: 0;
  overflow: auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: var(--canvas);
}
.unexpected-error-panel {
  width: min(100%, 560px);
  min-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  align-content: center;
  margin: 0 auto;
}
#unexpected-error-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 24px 20px;
  background: var(--surface);
  box-shadow: var(--shadow-low);
}
#unexpected-error-content .eyebrow { margin: 16px 0 5px; }
#unexpected-error-content h1 { margin: 0; overflow-wrap: anywhere; font-size: 36px; line-height: 1.1; }
#unexpected-error-content h1:focus-visible {
  border-radius: 5px;
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 4px;
}
#unexpected-error-content > p:not(.eyebrow):not(.state-recovery-local) { margin: 12px 0 0; color: var(--text-soft); }
#unexpected-error-content .button-stack { display: grid; gap: 8px; margin-top: 20px; }
#unexpected-error-content .button-stack > button { width: 100%; min-height: 48px; }
.unexpected-error-notice, .unexpected-error-confirmation, .diagnostics-disclosure {
  margin-top: 18px;
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-small);
  padding: 12px 14px;
  background: var(--surface-soft);
}
.unexpected-error-notice p, .unexpected-error-confirmation p, .diagnostics-disclosure p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}
.diagnostic-code {
  margin-top: 16px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 11px 12px;
  color: var(--text);
  background: var(--surface-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  letter-spacing: .02em;
}
.unexpected-error-status { margin-top: 12px; overflow-wrap: anywhere; }
.diagnostics-settings-sheet { display: grid; gap: 16px; }
.diagnostics-settings-sheet .sheet-intro { margin: 0; }
.diagnostics-settings-sheet .button-stack { display: grid; gap: 8px; }
.diagnostics-settings-sheet .button-stack button { width: 100%; min-height: 48px; }
.diagnostics-settings-sheet .diagnostics-disclosure { margin-top: 0; border-left-color: var(--accent); }
.diagnostic-code-inline { font-variant-numeric: tabular-nums; }

@media (max-width: 520px) {
  #pwa-update-content { grid-template-columns: 1fr; gap: 10px; }
  .pwa-update-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .pwa-update-actions .primary-button { width: 100%; white-space: normal; }
}

@media (max-width: 360px) {
  .state-recovery-screen, .state-conflict-screen, .runtime-version-screen, .unexpected-error-screen { padding-right: 10px; padding-left: 10px; }
  #state-recovery-content, #state-conflict-content, #runtime-version-content, #unexpected-error-content { padding-right: 16px; padding-left: 16px; }
  #state-recovery-content h1, #state-conflict-content h1, #runtime-version-content h1, #unexpected-error-content h1 { font-size: 28px; }
  .recovery-meta-list > div { grid-template-columns: 1fr; gap: 3px; }
  .recovery-meta-list dd { max-width: none; text-align: left; }
  .pwa-version-facts > div { grid-template-columns: 1fr; gap: 3px; }
  .pwa-version-facts dd { max-width: none; text-align: left; }
}

@media (min-width: 900px) {
  .pwa-update-notice { bottom: 88px; }
}

/* V5N — One calm surface language for the everyday product views. */
.today-decision-primary {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0;
  box-shadow: inset 0 -1px rgba(244, 239, 226, .16);
}
.today-status { padding-top: 14px; padding-bottom: 14px; letter-spacing: -.005em; }
.today-one-thing { gap: 7px; padding-top: 22px; padding-bottom: 24px; }
.today-calculation-disclosure { background: color-mix(in srgb, var(--surface-soft) 76%, var(--surface)); }
.today-calculation-toggle { min-height: 58px; padding-right: 20px; padding-left: 20px; }
.today-calculation-details { padding-right: 20px; padding-left: 20px; }
.today-spend-check-entry { min-height: 72px; padding-right: 20px; padding-left: 20px; }
.today-spend-check-entry > span:first-child { width: 42px; height: 42px; }

.plan-screen > .screen-heading,
.activity-screen > .screen-heading { max-width: 620px; }
.plan-situation, .plan-management { gap: 14px; padding-top: 26px; }
.plan-situation + .plan-situation,
.plan-management { margin-top: 4px; }
.plan-next > header { border-left: 2px solid var(--accent); padding-left: 13px; }
.plan-situation-list > button { min-height: 66px; padding-top: 11px; padding-bottom: 11px; }
.plan-protected .plan-accounted { background: color-mix(in srgb, var(--surface-soft) 56%, transparent); }
.plan-protected .plan-accounted > summary { padding-right: 12px; padding-left: 12px; }
.plan-management > details > summary { padding-right: 4px; padding-left: 4px; }

.add-form.is-quick-entry { gap: 18px; }
.quick-entry-core { gap: 18px; }
.amount-field > div { padding-top: 8px; padding-bottom: 14px; }
.quick-amounts { padding-bottom: 2px; }
.quick-entry-status { min-height: 56px; padding: 11px 14px; }
.quick-entry-date { min-height: 52px; padding-right: 14px; padding-left: 14px; }
.is-quick-entry .save-transaction {
  bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand-green) 27%, transparent);
}

.activity-toolbar { gap: 10px; }
.search-field, .filter-button { border: 1px solid var(--line); box-shadow: none; }
.search-field:focus-within { background: var(--surface); }
.activity-story { gap: 22px; }
.activity-flow { border: 1px solid var(--line); border-radius: var(--radius-large); padding: 21px; box-shadow: none; }
.activity-summary-row { min-height: 76px; padding-top: 14px; padding-bottom: 14px; }
.transaction-list { gap: 26px; }
.transaction-day h3 { padding-bottom: 10px; letter-spacing: .015em; }
.transaction-row { min-height: 66px; padding-top: 13px; padding-bottom: 13px; }

/* V5O — a quiet bridge from the first answer to the rest of the product. */
.first-session-continuity {
  display: grid;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 20px 22px 22px;
  background: color-mix(in srgb, var(--surface-soft) 64%, var(--surface));
}
.first-session-continuity > header,
.plan-tools > header,
.plan-tool-group > header { max-width: 590px; }
.first-session-continuity h3,
.plan-tools h2,
.plan-tool-group h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -.018em;
}
.first-session-continuity h3 { font-size: 18px; line-height: 1.25; }
.first-session-continuity p,
.plan-tools > header p,
.plan-tool-group > header p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}
.first-session-links {
  display: grid;
  border-top: 1px solid var(--line);
}
.first-session-links > button,
.plan-tool-list > button {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 2px;
  color: var(--text);
  background: transparent;
  text-align: left;
}
.first-session-links > button:hover,
.plan-tool-list > button:hover { background: color-mix(in srgb, var(--surface-soft) 72%, transparent); }
.first-session-links > button:focus-visible,
.plan-tool-list > button:focus-visible { outline-offset: -3px; }
.first-session-links strong,
.plan-tool-list strong { display: block; font-size: 15px; line-height: 1.3; }
.first-session-links small,
.plan-tool-list small {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
}
.first-session-links .chevron,
.plan-tool-list .chevron { color: var(--text-soft); }

.plan-tools {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
}
.plan-tools h2 { font-size: 22px; line-height: 1.2; }
.plan-tool-groups { display: grid; gap: 24px; }
.plan-tool-group { display: grid; gap: 9px; }
.plan-tool-group h3 { font-size: 15px; line-height: 1.3; }
.plan-tool-group > header p { margin-top: 3px; }
.plan-tool-list { display: grid; border-top: 1px solid var(--line); }
.plan-tool-list > button { padding-right: 2px; padding-left: 2px; }

@media (max-width: 520px) {
  .today-calculation-toggle, .today-calculation-details, .today-spend-check-entry { padding-right: 15px; padding-left: 15px; }
  .plan-situation, .plan-management { padding-top: 22px; }
  .plan-next > header { padding-left: 11px; }
  .activity-flow { padding: 18px; }
  .first-session-continuity { padding-right: 15px; padding-left: 15px; }
  .plan-tools { padding-top: 24px; }
}

@media (min-width: 760px) {
  .first-session-continuity { padding: 22px 24px 24px; }
}

/* V5P — Plan tools read as quiet, recognisable destinations. */
.plan-tool-groups { gap: 28px; }
.plan-tool-group { gap: 11px; }
.plan-tool-group > header { padding-left: 2px; }
.plan-tool-group > header h3,
.plan-management > header h2 { font-size: 17px; letter-spacing: -.012em; }
.plan-tool-group > header p,
.plan-management > header p { max-width: 42rem; }
.plan-tool-list.is-destination-list {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-medium);
  background: var(--surface);
}
.plan-tool-list.is-destination-list > button {
  min-height: 82px;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 12px;
  padding: 14px;
}
.plan-tool-list.is-destination-list > button:last-child { border-bottom: 0; }
.plan-tool-list.is-destination-list > button:hover { background: color-mix(in srgb, var(--surface-soft) 64%, var(--surface)); }
.plan-tool-list.is-destination-list > button:active { transform: scale(.99); }
.plan-tool-list.is-destination-list > button:focus-visible { outline-offset: -4px; }
.plan-tool-copy { min-width: 0; align-self: center; }
.plan-tool-copy strong { font-size: 16px; line-height: 1.3; }
.plan-tool-copy small { line-height: 1.42; }
.plan-tool-list.is-destination-list > button > svg { width: 18px; color: var(--text-muted); }
.plan-management {
  gap: 12px;
  border-top-color: var(--line-strong);
}
.plan-management > header { display: grid; gap: 4px; padding-left: 2px; }
.plan-management > header h2,
.plan-management > header p { margin: 0; }
.plan-management > header p { color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.plan-management > .plan-tool-list { margin-top: 1px; }
.plan-management > details { margin-top: 3px; }

@media (min-width: 900px) {
  .plan-tool-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .plan-tool-group:last-child { grid-column: 1 / -1; max-width: calc((100% - 24px) / 2); }
}

@media (max-width: 520px) {
  .plan-tool-groups { gap: 24px; }
  .plan-tool-list.is-destination-list > button { min-height: 76px; grid-template-columns: minmax(0, 1fr) 16px; gap: 11px; padding: 12px; }
}

/* V5P — Plan lets text, grouping, and spacing carry the hierarchy. */
.plan-chapter-heading > div { min-width: 0; display: grid; gap: 4px; }
.plan-chapter-heading h2,
.plan-chapter-heading h3,
.plan-chapter-heading p { margin: 0; }
.plan-chapter-heading h2 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.plan-chapter-heading h3 { font-size: 16px; line-height: 1.3; letter-spacing: -.008em; }
.plan-chapter-heading p { max-width: 42rem; color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.plan-situation-list,
.plan-summary-list {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-medium);
  background: var(--surface);
}
.plan-situation-list > button {
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  padding: 12px 14px;
}
.plan-situation-list > button:last-child,
.plan-summary-list > button:last-child { border-bottom: 0; }
.plan-row-copy { min-width: 0; align-self: center; }
.plan-protected .plan-accounted {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-medium);
}
.plan-tools > .plan-chapter-heading { margin-bottom: 2px; }
.plan-tool-group > .plan-chapter-heading { padding-left: 2px; }
.plan-summary { gap: 12px; }
.plan-summary-list > button {
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 12px;
  padding: 11px 14px;
}
.plan-summary-copy { min-width: 0; display: grid; gap: 2px; }
.plan-summary-copy > span { color: var(--text-muted); font-size: 12px; }
.plan-summary-copy > strong { text-align: left; }
.plan-management > details {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-medium);
}
.plan-management > details > summary {
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr) 18px;
  padding: 11px 14px;
}
.plan-explanation-copy { min-width: 0; align-self: center; }
.plan-management-body { padding-right: 14px; padding-left: 14px; }

@media (max-width: 520px) {
  .plan-situation-list > button { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 10px; padding: 11px 12px; }
  .plan-summary-list > button { grid-template-columns: minmax(0, 1fr) 16px; gap: 10px; padding: 10px 12px; }
  .plan-management > details > summary { grid-template-columns: minmax(0, 1fr) 16px; gap: 10px; padding: 10px 12px; }
  .plan-management-body { padding-right: 12px; padding-left: 12px; }
}

/* V5Q — Shared boundaries make supporting decisions feel part of one product. */
.today-context,
.add-screen > .screen-header { max-width: 620px; }
.today-spend-check-entry,
.activity-summary-row {
  transition: background var(--motion-press) var(--ease-standard), transform var(--motion-press) var(--ease-standard), border-color var(--motion-press) var(--ease-standard);
}
.today-spend-check-entry:focus-visible,
.activity-summary-row:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: -4px;
}
.activity-summary-row {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-medium);
  padding-right: 14px;
  padding-left: 14px;
  background: var(--surface);
}
.activity-summary-row:hover { border-color: color-mix(in srgb, var(--accent) 28%, var(--line-strong)); background: color-mix(in srgb, var(--surface-soft) 64%, var(--surface)); }
.activity-summary-row:active { transform: scale(.995); }
.transaction-day { display: grid; gap: 0; }
.transaction-day h3 { margin-bottom: 2px; }
.transaction-row { padding-right: 6px; padding-left: 6px; }
.transaction-row:hover { background: color-mix(in srgb, var(--surface-soft) 48%, transparent); }
.transaction-main:focus-visible,
.transaction-similar:focus-visible {
  border-radius: var(--radius-small);
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.quick-entry-primary-actions { gap: 10px; }
.quick-entry-primary-actions > button,
.quick-entry-advanced-actions > button {
  border: 1px solid var(--line);
  transition: background var(--motion-press) var(--ease-standard), border-color var(--motion-press) var(--ease-standard), transform var(--motion-press) var(--ease-standard);
}
.quick-entry-primary-actions > button:not(.is-featured) { background: var(--surface); }
.quick-entry-primary-actions > button:hover,
.quick-entry-advanced-actions > button:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--surface-soft); }
.quick-entry-primary-actions > button.is-featured:hover { background: color-mix(in srgb, var(--brand-green) 92%, var(--brand-forest)); }
.quick-entry-primary-actions > button:active,
.quick-entry-advanced-actions > button:active { transform: scale(.99); }
.quick-entry-more-actions { margin-top: 2px; }
.quick-entry-more-actions summary { padding-right: 2px; padding-left: 2px; }

.spend-check-form { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.spend-check-result,
.spend-check-unavailable { border-top: 0; padding-top: 2px; }
.spend-check-position { border: 1px solid color-mix(in srgb, var(--brand-cream) 16%, transparent); border-radius: var(--radius-large); padding: 20px; box-shadow: none; }
.spend-check-comparison { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-medium); background: color-mix(in srgb, var(--surface-soft) 62%, var(--surface)); }
.spend-check-comparison > summary { padding-right: 14px; padding-left: 14px; }
.spend-check-comparison dl { margin-right: 14px; margin-bottom: 12px; margin-left: 14px; }
.spend-check-comparison > summary:focus-visible { border-radius: var(--radius-small); outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -3px; }

.toast.is-financial-feedback { box-shadow: var(--shadow-low); }
.financial-feedback-actions { gap: 8px; }
.toast.is-financial-feedback button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* V5Q — Supporting controls keep the same quiet, deliberate response as destinations. */
.plan-situation-list > button,
.plan-summary-list > button,
.plan-accounted > summary,
.plan-management > details > summary,
.today-calculation-toggle,
.quick-entry-more-actions summary,
.spend-check-comparison > summary {
  transition: background var(--motion-press) var(--ease-standard), border-color var(--motion-press) var(--ease-standard), transform var(--motion-press) var(--ease-standard);
}
.plan-situation-list > button:hover,
.plan-summary-list > button:hover,
.plan-accounted > summary:hover,
.plan-management > details > summary:hover,
.today-calculation-toggle:hover,
.quick-entry-more-actions summary:hover,
.spend-check-comparison > summary:hover {
  background: color-mix(in srgb, var(--surface-soft) 64%, transparent);
}
.plan-situation-list > button:active,
.plan-summary-list > button:active,
.plan-accounted > summary:active,
.plan-management > details > summary:active,
.today-calculation-toggle:active,
.quick-entry-more-actions summary:active,
.spend-check-comparison > summary:active { transform: scale(.995); }
.plan-situation-list > button:focus-visible,
.plan-summary-list > button:focus-visible,
.plan-accounted > summary:focus-visible,
.plan-management > details > summary:focus-visible,
.today-calculation-toggle:focus-visible,
.quick-entry-more-actions summary:focus-visible {
  border-radius: var(--radius-small);
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: -3px;
}

@media (max-width: 520px) {
  .activity-summary-row { padding-right: 12px; padding-left: 12px; }
  .transaction-row { padding-right: 2px; padding-left: 2px; }
  .spend-check-position { padding: 18px; }
  .toast.is-financial-feedback { align-items: stretch; flex-direction: column; }
  .financial-feedback-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: var(--motion-instant) !important; }
}
