:root {
  --ink: #18221d;
  --muted: #66706a;
  --paper: #f2f4ee;
  --surface: rgb(255 255 252 / 88%);
  --line: rgb(24 34 29 / 13%);
  --green: #164f3c;
  --mint: #b9f4d2;
  --lime: #dff6a4;
  --geography-india: #d97706;
  --geography-united_states: #2563eb;
  --geography-developed_markets: #0f766e;
  --geography-emerging_markets: #a21caf;
  --geography-unclassified: #475569;
  --shadow: 0 28px 80px rgb(29 47 37 / 11%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 11% 3%, rgb(223 246 164 / 54%), transparent 31rem),
    radial-gradient(circle at 92% 48%, rgb(185 244 210 / 40%), transparent 34rem),
    var(--paper);
}

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .15;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

button, input, :is(select, .dropdown-trigger) { font: inherit; }
button { cursor: pointer; }
:is(select, .dropdown-trigger) {
  appearance: none;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 44px 0 12px;
  color: var(--ink);
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2318221d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}
:is(select, .dropdown-trigger):focus { border-color: rgb(22 79 60 / 55%); box-shadow: 0 0 0 4px rgb(22 79 60 / 9%); }
:is(select, .dropdown-trigger):disabled { cursor: default; opacity: .65; }
@media (forced-colors: active) {
  :is(select, .dropdown-trigger) { appearance: auto; background-image: none; padding-right: 12px; }
}
.shell { width: min(1240px, 100%); min-height: 100dvh; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px) 42px; }
.topbar { display: flex; min-height: 92px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1.04rem; font-weight: 750; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { display: flex; width: 29px; height: 29px; align-items: end; gap: 3px; border-radius: 8px; padding: 7px; background: var(--green); }
.brand-mark i { display: block; width: 3px; border-radius: 2px; background: var(--mint); }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 10px; }
.topbar-identity { display: flex; min-width: 0; align-items: center; gap: 14px; }
.topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.topbar-greeting { min-width: 0; overflow: hidden; margin: 0; color: var(--muted); font-size: .95rem; font-weight: 650; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.topbar-greeting em { color: var(--ink); font-style: normal; font-weight: 750; }
.loading { margin: 20vh 0; color: var(--muted); text-align: center; }

.auth-layout { display: grid; min-height: calc(100dvh - 136px); grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); align-items: center; gap: clamp(44px, 8vw, 120px); padding: clamp(58px, 10vh, 120px) 0; }
.eyebrow { margin: 0 0 20px; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem, 7vw, 7.7rem); font-weight: 400; line-height: .86; letter-spacing: -.066em; }
.auth-copy h1 em { color: var(--green); font-weight: 400; }
.lede { max-width: 570px; margin: 38px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.65; letter-spacing: -.015em; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 45px; color: #758079; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.trust-line span { position: relative; }
.trust-line span + span::before { position: absolute; left: -14px; content: "·"; }

.auth-panel { position: relative; }
.auth-card { position: relative; overflow: hidden; border: 1px solid rgb(255 255 255 / 80%); border-radius: 28px; padding: clamp(30px, 4vw, 50px); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.card-orbit { position: absolute; top: -70px; right: -85px; width: 190px; height: 190px; border: 1px solid rgb(22 79 60 / 16%); border-radius: 50%; }
.card-orbit::before, .card-orbit::after { position: absolute; border: 1px solid rgb(22 79 60 / 12%); border-radius: 50%; content: ""; }
.card-orbit::before { inset: 22px; }
.card-orbit::after { inset: 48px; background: var(--lime); }
.step-label { position: relative; margin: 0 0 34px; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-card h2 { position: relative; margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 3vw, 3rem); font-weight: 400; letter-spacing: -.05em; }
.auth-help { max-width: 360px; margin: 0 0 32px; color: var(--muted); font-size: .94rem; line-height: 1.55; }
form { display: grid; gap: 12px; }
label { color: #3d4942; font-size: .75rem; font-weight: 750; letter-spacing: .02em; }
input { width: 100%; min-height: 56px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; color: var(--ink); background: rgb(255 255 255 / 76%); outline: none; transition: border-color .18s, box-shadow .18s; }
input::placeholder { color: #a4aba7; }
input:focus { border-color: rgb(22 79 60 / 55%); box-shadow: 0 0 0 4px rgb(22 79 60 / 9%); }
.primary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; border: 0; border-radius: 12px; padding: 0 18px 0 20px; color: white; background: var(--green); font-weight: 750; box-shadow: 0 10px 25px rgb(22 79 60 / 18%); transition: transform .18s, background .18s; }
.primary:hover { background: #0f402f; transform: translateY(-1px); }
.primary:disabled, .logout:disabled { cursor: wait; opacity: .62; transform: none; }
.primary b { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 13%); font-size: 1rem; }
.sent-to { overflow-wrap: anywhere; margin: -8px 0 6px; color: var(--muted); font-size: .82rem; }
.code-input { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1.35rem; font-weight: 800; letter-spacing: .22em; text-align: center; }
.text-button { min-height: 38px; border: 0; color: var(--green); background: transparent; font-size: .8rem; font-weight: 750; }
.form-message { min-height: 20px; margin: 17px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }

.app { padding: clamp(26px, 4vh, 44px) 0 0; }
.logout { flex: 0 0 auto; min-height: 43px; border: 1px solid var(--line); border-radius: 999px; padding: 0 20px; color: var(--ink); background: rgb(255 255 255 / 45%); font-size: .78rem; font-weight: 750; }
.logout:hover { background: white; }
.secondary-action { min-height: 43px; border: 0; border-radius: 999px; padding: 0 20px; color: white; background: var(--green); font-size: .78rem; font-weight: 750; }
.secondary-action:hover { background: #0f402f; }

.workspace-nav { display: flex; overflow-x: auto; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.workspace-nav::-webkit-scrollbar { display: none; }
.workspace-tab { position: relative; flex: 0 0 auto; min-height: 50px; border: 0; padding: 0; color: var(--muted); background: transparent; font-size: .82rem; font-weight: 750; }
.workspace-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.workspace-tab.active { color: var(--ink); }
.workspace-tab.active::after { background: var(--green); }
.dashboard-state { margin: 64px 0; color: var(--muted); text-align: center; }
.dashboard-state.error { color: #a53b34; }
.workspace-view { padding-top: 38px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading .eyebrow { margin-bottom: 11px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 5vw, 4.7rem); font-weight: 400; line-height: .95; letter-spacing: -.058em; }
.section-context { max-width: 340px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; text-align: right; }
.holdings-date-panel { display: grid; justify-items: end; gap: 7px; }
.holdings-date-panel label { color: var(--muted); font-size: .69rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.holdings-date-panel input { min-height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; color: var(--ink); background: rgb(255 255 255 / 70%); font: inherit; font-size: .8rem; font-weight: 700; }
.holdings-date-panel input:focus { border-color: rgb(22 79 60 / 55%); outline: 0; box-shadow: 0 0 0 4px rgb(22 79 60 / 10%); }
.holdings-date-panel input:disabled { cursor: wait; opacity: .65; }

.summary-band { display: grid; margin-top: 34px; grid-template-columns: 1.45fr repeat(3, 1fr); border-block: 1px solid var(--line); }
.primary-stat, .summary-stat { min-width: 0; padding: 25px 22px 25px 0; }
.summary-stat { border-left: 1px solid var(--line); padding-left: 22px; }
.primary-stat span, .summary-stat span, .holdings-summary span { display: block; color: var(--muted); font-size: .69rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.primary-stat strong, .summary-stat strong { display: block; overflow: hidden; margin-top: 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.45rem); font-weight: 400; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.primary-stat strong { font-size: clamp(2rem, 4vw, 3.4rem); }
.summary-secondary-value { display: block; margin-top: 4px; color: var(--muted); font-size: .96rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
.primary-stat .summary-secondary-value { font-size: 1.04rem; }
.primary-stat small, .summary-stat small { display: block; min-height: 17px; margin-top: 7px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.positive-value { color: #19704d !important; }
.negative-value { color: #a53b34 !important; }

.dashboard-grid { display: grid; margin-top: 28px; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; }
.overview-bottom-grid { display: grid; margin-top: 18px; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.dashboard-panel { min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 25px; background: rgb(255 255 252 / 62%); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.panel-heading h3 { margin: 0; font-size: .96rem; letter-spacing: -.02em; }
.panel-heading p { margin: 6px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.panel-empty { display: grid; min-height: 220px; place-items: center; margin: 0; padding: 28px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.5; text-align: center; }
.net-worth-chart { display: block; width: 100%; height: 280px; margin-top: 18px; overflow: visible; }
.chart-gridline { stroke: rgb(24 34 29 / 10%); stroke-width: 1; }
.chart-axis-label { fill: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 11px; }
.chart-area { fill: rgb(185 244 210 / 38%); }
.chart-line { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--green); stroke: #f8faf5; stroke-width: 3; }
.chart-point-partial { fill: #f8faf5; stroke: var(--green); stroke-width: 2; }
.chart-point-latest { stroke-width: 4; }
.chart-annotation { fill: var(--green); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 11px; font-weight: 650; paint-order: stroke; stroke: #f8faf5; stroke-width: 4px; stroke-linejoin: round; }
.chart-crosshair { stroke: var(--ink); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.chart-focus { fill: var(--green); stroke: #f8faf5; stroke-width: 3; pointer-events: none; }
.chart-tooltip { pointer-events: none; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.chart-tooltip-box { fill: #fffffc; stroke: var(--line); filter: drop-shadow(0 6px 14px rgb(29 47 37 / 14%)); }
.chart-tooltip-label { fill: var(--muted); font-size: 11px; }
.chart-tooltip-value { fill: var(--ink); font-size: 14px; font-weight: 650; }

.allocation-bar { display: flex; overflow: hidden; height: 15px; margin-top: 26px; border-radius: 999px; background: #dfe5dc; }
.allocation-segment { display: block; min-width: 2px; }
.allocation-color-0 { background: #164f3c; }
.allocation-color-1 { background: #86b957; }
.allocation-color-2 { background: #9a8fc7; }
.allocation-color-3 { background: #d6a660; }
.allocation-list { display: grid; margin-top: 20px; gap: 14px; }
.allocation-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.allocation-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.allocation-identity strong { overflow: hidden; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.allocation-swatch { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.allocation-values { display: grid; flex: 0 0 auto; gap: 3px; text-align: right; }
.allocation-values strong { font-size: .78rem; }
.allocation-values small { color: var(--muted); font-size: .67rem; }

.geography-panel { margin-top: 18px; }
.vest-projection-panel { margin-top: 18px; }
.golden-handcuffs { flex: 0 0 auto; width: 120px; height: 64px; filter: drop-shadow(0 4px 6px rgb(154 107 7 / 25%)); }
.vest-projection-note { margin: 12px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.geography-heading { align-items: end; }
.geography-heading p { max-width: 670px; font-size: .75rem; }
.geography-total { flex: 0 0 auto; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 400; letter-spacing: -.025em; }
.geography-content { display: grid; margin-top: 27px; grid-template-columns: minmax(350px, .9fr) minmax(0, 1.6fr); gap: 32px; }
.geography-donut { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.geography-donut-segment { stroke: #f8f9f4; stroke-width: 3; stroke-linejoin: round; }
.geography-donut-hole { fill: #f8f9f4; filter: drop-shadow(0 3px 5px rgb(24 34 29 / 12%)); }
.geography-donut-leader { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.geography-donut-label { fill: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 12px; font-weight: 750; }
.geography-donut-percent { fill: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 11px; font-weight: 650; }
.geography-donut-center-value { fill: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 18px; letter-spacing: -.04em; }
.geography-donut-center-label { fill: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.geography-color-india { background: var(--geography-india); }
.geography-color-united_states { background: var(--geography-united_states); }
.geography-color-developed_markets { background: var(--geography-developed_markets); }
.geography-color-emerging_markets { background: var(--geography-emerging_markets); }
.geography-color-unclassified { background: var(--geography-unclassified); }
.geography-list { display: grid; margin-top: 24px; gap: 13px; }
.geography-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.geography-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.geography-identity strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.geography-swatch { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; }
.geography-values { display: grid; flex: 0 0 auto; gap: 3px; text-align: right; }
.geography-values strong { font-size: .82rem; }
.geography-values small { color: var(--muted); font-size: .72rem; }
.geography-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.geography-detail { min-width: 0; border: 1px solid var(--line); border-radius: 15px; padding: 18px; background: rgb(255 255 255 / 42%); }
.geography-detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.geography-detail-heading strong { font-size: .86rem; }
.geography-detail-heading span { flex: 0 0 auto; color: var(--muted); font-size: .72rem; }
.geography-child-list { display: grid; margin-top: 15px; gap: 15px; }
.geography-child-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.geography-child-heading strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.geography-child-heading span { color: var(--ink); font-size: .75rem; font-weight: 750; }
.geography-child-track { display: block; overflow: hidden; height: 5px; margin-top: 7px; border-radius: 999px; background: #dfe5dc; }
.geography-child-fill { display: block; height: 100%; min-width: 2px; border-radius: inherit; }
.geography-child-row small { display: block; margin-top: 6px; color: var(--muted); font-size: .69rem; line-height: 1.4; }

.account-list { margin-top: 14px; }
.account-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; border-top: 1px solid var(--line); padding: 17px 0; }
.account-row:first-child { border-top: 0; }
.account-identity { display: grid; min-width: 0; gap: 4px; }
.account-identity strong { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.account-identity span, .account-identity small, .account-values small { color: var(--muted); font-size: .68rem; line-height: 1.4; }
.account-values { display: grid; gap: 4px; text-align: right; }
.account-values strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 400; }
.coverage-note { display: flex; min-height: 100%; flex-direction: column; justify-content: center; border-radius: 20px; padding: 28px; color: #173629; background: var(--lime); }
.coverage-note strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 400; letter-spacing: -.025em; }
.coverage-note p { margin: 12px 0 0; color: #4d604f; font-size: .78rem; line-height: 1.6; }

.holdings-summary { display: grid; margin-top: 34px; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.holdings-summary > div { min-width: 0; padding: 21px 20px 21px 0; }
.holdings-summary > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.holdings-summary strong { display: block; overflow: hidden; margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 400; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.holdings-summary .summary-secondary-value { font-size: .92rem; }
.holdings-toolbar { display: grid; margin-top: 25px; grid-template-columns: minmax(220px, 1fr) minmax(140px, .34fr) minmax(210px, .6fr) auto; align-items: end; gap: 10px; }
.holdings-toolbar label { display: grid; gap: 6px; }
.holdings-toolbar label > span { color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.holdings-toolbar input { min-height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; color: var(--ink); background: rgb(255 255 255 / 70%); font-size: .78rem; outline: none; }
.holdings-toolbar input:focus, .holdings-toolbar :is(select, .dropdown-trigger):focus { border-color: rgb(22 79 60 / 55%); box-shadow: 0 0 0 4px rgb(22 79 60 / 9%); }
.holdings-toolbar :is(select, .dropdown-trigger) { min-height: 42px; background-color: rgb(255 255 255 / 70%); font-size: .78rem; outline: none; }
.clear-holdings-filters { min-height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; color: var(--green); background: transparent; font-size: .72rem; font-weight: 750; }
.clear-holdings-filters:hover { border-color: rgb(22 79 60 / 35%); background: rgb(255 255 255 / 60%); }
.holdings-filter-status { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: .69rem; }
.holdings-table-wrap { overflow-x: auto; margin-top: 14px; }
.holdings-table { width: 100%; min-width: 990px; border-collapse: collapse; }
.holdings-table th, .holdings-table td { border-bottom: 1px solid var(--line); padding: 15px 12px; font-size: .73rem; vertical-align: middle; }
.holdings-table th { color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.holdings-table th:first-child, .holdings-table td:first-child { padding-left: 0; }
.holdings-table th:not(:first-child), .holdings-table td.numeric { text-align: right; }
.holding-sort { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 4px 0; color: inherit; background: transparent; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; }
.holdings-table th:not(:first-child) .holding-sort { margin-left: auto; }
.holding-sort span { display: inline-block; width: 9px; color: var(--green); font-size: .72rem; line-height: 1; }
.holding-sort:hover { color: var(--ink); }
.holding-symbol, .holding-name, .holding-type, .money-with-source strong, .money-with-source small, .holdings-table td.numeric > strong, .holdings-table td.numeric > small { display: block; }
.holding-symbol { font-size: .81rem; }
.holding-name { max-width: 250px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.holding-type { margin-top: 4px; color: #7c857f; font-size: .62rem; }
.holding-account, .holding-account-date { display: block; }
.holding-account-date { margin-top: 4px; color: var(--muted); font-size: .63rem; }
.holdings-table td.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-with-source small, .holdings-table td.numeric > small { margin-top: 4px; color: var(--muted); font-size: .63rem; }

.income-tax-year-panel { display: grid; min-width: 220px; justify-items: end; gap: 7px; }
.income-tax-year-panel label { color: var(--muted); font-size: .69rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.income-tax-year-panel :is(select, .dropdown-trigger) { min-width: 180px; min-height: 42px; background-color: rgb(255 255 255 / 70%); font-size: .8rem; font-weight: 700; outline: none; }
.income-tax-year-panel :is(select, .dropdown-trigger):focus { border-color: rgb(22 79 60 / 55%); box-shadow: 0 0 0 4px rgb(22 79 60 / 10%); }
.income-tax-year-panel :is(select, .dropdown-trigger):disabled { cursor: wait; opacity: .65; }
.subtab-nav { display: flex; overflow-x: auto; align-items: center; gap: 22px; margin-top: 30px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.subtab-nav::-webkit-scrollbar { display: none; }
.subtab { position: relative; flex: 0 0 auto; min-height: 42px; border: 0; padding: 0; color: var(--muted); background: transparent; font-size: .76rem; font-weight: 750; }
.subtab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.subtab.active { color: var(--ink); }
.subtab.active::after { background: var(--green); }
.income-tax-summary { display: grid; margin-top: 26px; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.income-tax-summary > div { min-width: 0; padding: 23px 20px 23px 0; }
.income-tax-summary > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.income-tax-summary span { display: block; color: var(--muted); font-size: .69rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.income-tax-summary strong { display: block; overflow: hidden; margin-top: 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.7vw, 2.15rem); font-weight: 400; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.income-tax-detail { margin-top: 26px; }
.income-tax-entry-count { flex: 0 0 auto; color: var(--muted); font-size: .72rem; font-weight: 700; }
.income-tax-table-wrap { overflow-x: auto; margin-top: 18px; }
.income-tax-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.income-tax-table th, .income-tax-table td { border-bottom: 1px solid var(--line); padding: 15px 12px; font-size: .73rem; text-align: left; vertical-align: middle; }
.income-tax-table th { color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.income-tax-table th:first-child, .income-tax-table td:first-child { padding-left: 0; }
.income-tax-table th:last-child, .income-tax-table td:last-child { padding-right: 0; }
.income-tax-table tbody tr:last-child td { border-bottom: 0; }
.income-tax-table th:nth-last-child(-n+3), .income-tax-table td.numeric { text-align: right; }
.income-tax-table td.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tax-downloads-table { min-width: 620px; table-layout: fixed; }
.tax-downloads-table th, .tax-downloads-table th:nth-last-child(-n+3) { width: 33.33%; text-align: left; }
.tax-download-button { min-height: 0; padding: 0; text-align: left; }
.tax-download-button:disabled { color: var(--muted); cursor: default; font-weight: 400; }
.tax-downloads-table tbody tr.tax-downloads-combined td { border-top: 1px solid var(--ink); font-weight: 750; }
.income-tax-date, .income-tax-posted, .income-tax-entry, .income-tax-action, .income-tax-symbol, .income-tax-description, .income-tax-account { display: block; }
.income-tax-posted, .income-tax-action, .income-tax-description, .income-tax-account { margin-top: 4px; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.income-tax-description { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.realized-gains-table { min-width: 1020px; }
.income-tax-source-summary { min-width: 1050px; }
.income-tax-source-summary th:not(:first-child), .income-tax-source-summary td:not(:first-child) { text-align: right; }
.income-tax-source-summary tfoot td { border-bottom: 0; font-weight: 750; }
.income-tax-source-summary tfoot tr:first-child td { border-top: 1px solid var(--ink); }
.income-tax-source-summary tfoot tr.income-tax-summary-tax td { border-top: 1px solid var(--line); font-weight: 400; }

.advance-tax-estimate, .advance-tax-schedule { min-width: 720px; }
.advance-tax-estimate th:not(:first-child), .advance-tax-estimate td:not(:first-child),
.advance-tax-schedule th:not(:first-child), .advance-tax-schedule td:not(:first-child) { text-align: right; }
.advance-tax-estimate tfoot td, .advance-tax-schedule tfoot td { border-bottom: 0; font-weight: 750; }
.advance-tax-estimate tfoot tr:first-child td, .advance-tax-schedule tfoot tr:first-child td { border-top: 1px solid var(--ink); }
.advance-tax-input { padding-block: 8px; }
.advance-tax-input input { width: 116px; min-height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: white; font: inherit; font-size: .73rem; font-variant-numeric: tabular-nums; text-align: right; }
.advance-tax-schedule .advance-tax-input { min-width: 175px; }
.advance-tax-amount-words { display: block; max-width: 220px; margin: 6px 0 0 auto; color: var(--muted); font-size: .64rem; font-weight: 600; line-height: 1.4; white-space: normal; }
.advance-tax-note { margin: 16px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.panel-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.panel-heading-actions .primary { min-height: 40px; justify-content: center; padding: 0 18px; font-size: .74rem; white-space: nowrap; box-shadow: none; }
.advance-tax-form .upload-message { margin: 12px 0 0; }
.advance-tax-form .upload-message + .income-tax-table-wrap { margin-top: 6px; }

.import-report-dialog { width: min(92vw, 860px); max-height: 90vh; overflow: auto; border: 1px solid var(--line); border-radius: 28px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 28px 90px rgb(17 38 28 / 24%); }
.import-report-dialog::backdrop { background: rgb(17 38 28 / 42%); backdrop-filter: blur(3px); }
.import-workspace { position: relative; overflow: hidden; border-radius: inherit; background: rgb(255 255 252 / 72%); }
.import-copy { padding: clamp(32px, 5vw, 64px); background: linear-gradient(145deg, rgb(255 255 252 / 82%), rgb(223 246 164 / 25%)); }
.import-copy .eyebrow { margin-bottom: 13px; }
.import-copy h2 { max-width: 680px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 4vw, 4.15rem); font-weight: 400; line-height: .98; letter-spacing: -.055em; }
#import-upload-intro > p:not(.eyebrow) { max-width: 610px; margin: 22px 0 0; color: var(--muted); line-height: 1.65; }
.import-account-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: clamp(24px, 5vw, 56px); }
.import-account-intro[hidden] { display: none; }
.import-account-intro h2 > span { display: block; }
.import-account-filename { max-width: 760px; margin-top: 13px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.import-account-progress { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 400; line-height: .9; letter-spacing: -.055em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.import-account-progress[hidden] { display: none; }
.upload-form { display: grid; margin-top: 36px; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 12px; }
.report-drop-zone { position: relative; display: flex; min-width: 0; min-height: 78px; align-items: center; gap: 14px; border: 1px dashed rgb(22 79 60 / 32%); border-radius: 16px; padding: 13px 17px; background: rgb(255 255 255 / 58%); cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.report-drop-zone:hover, .report-drop-zone.is-dragging { border-color: var(--green); background: rgb(255 255 255 / 92%); transform: translateY(-1px); }
.report-drop-zone:has(input:focus-visible) { outline: 3px solid rgb(22 79 60 / 24%); outline-offset: 3px; }
.report-drop-zone input { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; opacity: 0; }
.upload-glyph { display: grid; flex: 0 0 auto; width: 45px; height: 45px; place-items: center; border-radius: 13px; color: var(--green); background: var(--mint); font-size: 1.25rem; font-weight: 800; }
.report-drop-zone > span:last-child { min-width: 0; }
.report-drop-zone strong, .report-drop-zone small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-drop-zone strong { color: var(--ink); font-size: .87rem; }
.report-drop-zone small { margin-top: 5px; color: var(--muted); font-size: .71rem; font-weight: 550; }
.upload-button { min-width: 176px; }
.upload-message { min-height: 21px; margin: 13px 2px 0; color: var(--muted); font-size: .79rem; line-height: 1.45; }
.upload-message.success { color: #19704d; }
.upload-message.error { color: #a53b34; }
.import-account-link { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 26px; }
.import-account-link[hidden] { display: none; }
.import-account-link .eyebrow { margin: 0 0 8px; }
.import-account-link h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 400; letter-spacing: -.035em; }
.import-account-link > p:not(.eyebrow, .import-adjust-message) { max-width: 620px; margin: 10px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.import-account-choice-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-top: 22px; }
.import-account-choice-form label { display: grid; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.import-account-choice-form .primary, .import-new-account-form > .primary { min-height: 46px; }
.import-account-reference-change { margin: 10px 0 0; color: #856118; font-size: .72rem; line-height: 1.5; }
.import-account-reference-change[hidden] { display: none; }
.import-adjust-message { margin: 18px 0 0; color: #8b651d; font-size: .75rem; line-height: 1.5; }
.toast { position: fixed; bottom: 26px; left: 50%; z-index: 20; transform: translate(-50%, 12px); border-radius: 999px; padding: 12px 22px; color: #f4f8f2; background: var(--green); box-shadow: 0 18px 44px rgb(17 38 28 / 26%); font-size: .8rem; font-weight: 700; opacity: 0; transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.import-skip-report { display: flex; justify-content: center; margin-top: 22px; }
.import-skip-report button { border: 0; padding: 6px 4px; color: var(--muted); background: transparent; font-size: .74rem; font-weight: 750; }
.import-skip-report button:hover:not(:disabled) { color: var(--ink); text-decoration: underline; }
.import-skip-report button:disabled { opacity: .5; }
.import-account-divider { display: flex; align-items: center; gap: 13px; margin: 24px 0 0; color: var(--muted); font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.import-account-divider[hidden] { display: none; }
.import-account-divider::before, .import-account-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.import-new-account-form { margin-top: 20px; }
.report-library { margin-top: 22px; }
.account-library { margin-top: 0; }
.accounts-heading { align-items: flex-start; }
.accounts-heading-actions { display: grid; justify-items: end; gap: 11px; }
.account-filters { display: flex; flex-wrap: wrap; align-items: center; width: 100%; gap: 9px; }
.account-filters #add-account-button { min-height: 34px; margin-left: auto; padding: 0 15px; font-size: .68rem; }
.account-filter { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #edf2ec; }
.account-filter button { border: 0; border-radius: 999px; padding: 7px 11px; color: var(--muted); background: transparent; font-size: .68rem; font-weight: 750; }
.account-filter button.active { color: white; background: var(--green); }
.coverage-library { margin-top: 0; }
.coverage-heading { align-items: flex-start; }
.coverage-heading-actions { display: grid; justify-items: end; gap: 11px; }
.coverage-filter { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #edf2ec; }
.coverage-filter button { border: 0; border-radius: 999px; padding: 7px 11px; color: var(--muted); background: transparent; font-size: .68rem; font-weight: 750; }
.coverage-filter button.active { color: white; background: var(--green); }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; }
.all-imports-table { min-width: 700px; }
.accounts-table { min-width: 980px; }
.coverage-table { min-width: 650px; }
.report-table th, .report-table td { border-bottom: 1px solid var(--line); padding: 17px 14px; font-size: .76rem; text-align: left; vertical-align: middle; }
.report-table th { color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.report-table th:first-child, .report-table td:first-child { padding-left: 0; }
.report-table th:last-child, .report-table td:last-child { padding-right: 0; }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-source, .report-account, .report-relative-time, .report-imported-time, .report-exact-time { display: block; }
.report-relative-time { display: inline-flex; align-items: center; gap: 7px; }
.report-relative-time::before { width: 7px; height: 7px; border-radius: 50%; background: currentcolor; content: ""; }
.report-relative-time.fresh { color: #19704d; }
.report-relative-time.aging { color: #9a6916; }
.report-relative-time.stale { color: #a53b34; }
.report-purpose { display: inline-flex; border-radius: 999px; padding: 6px 9px; color: var(--green); background: #edf2ec; font-size: .66rem; font-weight: 750; white-space: nowrap; }
.report-source { font-size: .82rem; }
.report-account, .report-exact-time { margin-top: 4px; color: var(--muted); font-size: .66rem; }
.report-status { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 9px; font-size: .66rem; font-weight: 750; white-space: nowrap; }
.report-status::before { width: 6px; height: 6px; border-radius: 50%; content: ""; }
.report-status.complete { color: #166247; background: var(--mint); }
.report-status.complete::before { background: #23845f; }
.report-status.missing { color: #775e2a; background: #f8efd8; }
.report-status.missing::before { background: #c39435; }
.report-actions { display: flex; gap: 7px; }
.report-info-button, .report-delete-button, .report-download-button, .coverage-edit-button, .account-edit-button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; padding: 0; background: transparent; font-weight: 700; }
.report-info-button { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-size: .83rem; }
.report-info-button:hover { border-color: var(--green); background: var(--mint); }
.report-download-button { color: var(--green); font-size: .95rem; text-decoration: none; }
.report-download-button:hover { border-color: var(--green); background: #e7f3ea; }
.report-delete-button { color: #a53b34; font-size: 1rem; }
.report-delete-button:hover { border-color: #a53b34; background: #fbeceb; }
.account-row-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.account-edit-button { color: var(--green); font-size: .8rem; }
.account-edit-button:hover { border-color: var(--green); background: var(--mint); }
.account-date { min-width: 125px; white-space: nowrap; }
.account-report-stack { display: grid; gap: 0; }
.account-report-stack-item { display: flex; min-height: 42px; align-items: center; border-top: 1px solid var(--line); line-height: 1.4; }
.account-report-stack-item:first-child { border-top: 0; }
.account-report-names { min-width: 190px; }
.account-report-statements { min-width: 150px; }
.account-report-actions .account-report-stack-item { justify-content: center; }
.account-statement { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: var(--muted); }
.coverage-edit-button { color: var(--green); font-size: .8rem; }
.coverage-edit-button:hover { border-color: var(--green); background: var(--mint); }
.coverage-range, .coverage-range-note { display: block; }
.coverage-range { font-weight: 700; white-space: nowrap; }
.coverage-range-note { margin-top: 4px; color: var(--muted); font-size: .64rem; }
.coverage-status.current { color: #166247; background: var(--mint); }
.coverage-status.current::before { background: #23845f; }
.coverage-status.closed { color: #6c6160; background: #eeeae8; }
.coverage-status.closed::before { background: #8c817e; }
.coverage-status.upcoming, .coverage-status.unconfigured { color: #775e2a; background: #f8efd8; }
.coverage-status.upcoming::before, .coverage-status.unconfigured::before { background: #c39435; }
.report-instructions-dialog { width: min(92vw, 520px); border: 1px solid var(--line); border-radius: 24px; padding: 34px; color: var(--ink); background: var(--paper); box-shadow: 0 28px 90px rgb(17 38 28 / 24%); }
.report-instructions-dialog::backdrop { background: rgb(17 38 28 / 42%); backdrop-filter: blur(3px); }
.report-instructions-dialog h3 { margin: 10px 42px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; letter-spacing: -.04em; }
.dialog-close { position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border: 0; border-radius: 50%; padding: 0; color: var(--muted); background: #edf2ec; font-size: 1.25rem; }
.dialog-report-type { margin: 8px 0 0; color: var(--muted); font-size: .78rem; }
.report-portal-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; border-radius: 999px; padding: 11px 15px; color: white; background: var(--green); font-size: .75rem; font-weight: 750; text-decoration: none; }
.report-instructions-steps { display: grid; margin: 26px 0 0; padding-left: 23px; gap: 14px; }
.report-instructions-steps li { padding-left: 5px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.supported-reports-table { min-width: 900px; }
.supported-reports-table td { vertical-align: top; }
.supported-reports-table .supported-source-start td { border-top: 1px solid var(--line); }
.supported-report-steps { margin: 0; gap: 9px; }
.supported-report-steps li { font-size: .76rem; }
.supported-reports-table .report-portal-link { margin-top: 0; padding: 8px 13px; font-size: .68rem; white-space: nowrap; }
.coverage-period-form { display: grid; margin-top: 26px; gap: 16px; }
.coverage-period-form label { display: grid; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.coverage-period-form input { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; color: var(--ink); background: white; font: inherit; }
.coverage-period-form > p:not(.upload-message) { margin: -3px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.coverage-period-form .upload-message { margin: -4px 0; }
.coverage-dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.coverage-dialog-actions .text-button { border: 0; color: var(--muted); background: transparent; }
.account-form { display: grid; margin-top: 26px; gap: 16px; }
.account-form label { display: grid; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.account-form input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; color: var(--ink); background: white; font: inherit; }
.account-form :is(select, .dropdown-trigger) { width: 100%; }
.account-source-help { margin-top: -8px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.account-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-form > p:not(.upload-message) { margin: -3px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.account-form .upload-message { margin: -4px 0; }
.account-links { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.account-links[hidden] { display: none; }
.account-links h4 { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; }
.account-links-body { display: grid; gap: 10px; }
.account-links-body p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.account-links-body strong { color: var(--ink); font-family: ui-monospace, monospace; font-size: .7rem; }
.account-link-option, .account-form .account-link-option { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: .74rem; font-weight: 600; line-height: 1.5; cursor: pointer; }
.account-link-option input, .account-form .account-link-option input { flex: none; width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--green); cursor: pointer; }
.import-account-link > .account-link-option { max-width: 620px; margin-top: 14px; }
.account-dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.account-dialog-actions .text-button { border: 0; color: var(--muted); background: transparent; }
.account-dialog-actions .primary { min-height: 46px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article { position: relative; min-height: 300px; border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: rgb(255 255 252 / 62%); transition: transform .2s, background .2s; }
.feature-grid article:hover { background: rgb(255 255 252 / 86%); transform: translateY(-3px); }
.feature-number { position: absolute; top: 26px; right: 26px; color: #939b96; font-family: ui-monospace, monospace; font-size: .7rem; }
.feature-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 48px; border-radius: 14px; color: var(--green); background: var(--mint); font-size: 1.45rem; font-weight: 700; }
.chart-icon { background: var(--lime); }
.report-icon { background: #e4e1fa; }
.feature-grid h3 { margin: 0 0 10px; font-size: 1.08rem; letter-spacing: -.025em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.coming { position: absolute; bottom: 26px; left: 28px; color: var(--green); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.coming.active { color: #19704d; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; border-top: 1px solid var(--line); padding: 24px 2px; color: var(--muted); font-size: .73rem; }

button:focus-visible, input:focus-visible, :is(select, .dropdown-trigger):focus-visible, a:focus-visible { outline: 3px solid rgb(22 79 60 / 24%); outline-offset: 3px; }

@media (max-width: 850px) {
  .auth-layout { grid-template-columns: 1fr; gap: 52px; padding-block: 64px; }
  .auth-copy { max-width: 670px; }
  .auth-panel { width: min(100%, 520px); }
  .trust-line { margin-top: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 260px; }
  .summary-band { grid-template-columns: 1fr 1fr; }
  .summary-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .primary-stat:nth-child(-n+2), .summary-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dashboard-grid, .overview-bottom-grid { grid-template-columns: 1fr; }
  .geography-content { grid-template-columns: 1fr; }
  .holdings-summary { grid-template-columns: 1fr 1fr; }
  .holdings-summary > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .holdings-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .holdings-toolbar { grid-template-columns: minmax(220px, 1fr) 1fr 1fr; }
  .holdings-search { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .shell { padding-inline: 17px; }
  .topbar { min-height: 76px; }
  .topbar-greeting { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .auth-layout { min-height: auto; padding: 46px 0 70px; }
  .auth-copy h1 { font-size: clamp(3.65rem, 18vw, 5.4rem); }
  .lede { margin-top: 28px; }
  .trust-line span + span::before { display: none; }
  .auth-card { border-radius: 22px; padding: 28px 22px; }
  .app { padding-top: 24px; }
  .secondary-action, .logout { min-height: 38px; padding-inline: 14px; }
  .logout { min-height: 38px; padding-inline: 14px; }
  .workspace-nav { gap: 22px; }
  .workspace-view { padding-top: 30px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .golden-handcuffs { width: 72px; height: 38px; }
  .section-context { text-align: left; }
  .holdings-date-panel { width: 100%; justify-items: start; }
  .summary-band { grid-template-columns: 1fr; }
  .primary-stat, .summary-stat, .summary-stat:nth-child(3) { border-bottom: 1px solid var(--line); border-left: 0; padding: 18px 0; }
  .summary-stat:last-child { border-bottom: 0; }
  .dashboard-panel { border-radius: 17px; padding: 20px; }
  .geography-heading { align-items: start; flex-direction: column; gap: 12px; }
  .geography-details { grid-template-columns: 1fr; }
  .net-worth-chart { height: 250px; }
  .account-row { grid-template-columns: 1fr; gap: 10px; }
  .account-values { text-align: left; }
  .holdings-summary { grid-template-columns: 1fr; }
  .holdings-summary > div, .holdings-summary > div + div, .holdings-summary > div:nth-child(3) { border-bottom: 1px solid var(--line); border-left: 0; padding: 17px 0; }
  .holdings-summary > div:last-child { border-bottom: 0; }
  .holdings-toolbar { grid-template-columns: 1fr; }
  .holdings-search { grid-column: auto; }
  .holdings-filter-status { grid-column: auto; }
  .income-tax-year-panel { width: 100%; justify-items: start; }
  .income-tax-summary { grid-template-columns: 1fr; }
  .income-tax-summary > div, .income-tax-summary > div + div { border-bottom: 1px solid var(--line); border-left: 0; padding: 18px 0; }
  .income-tax-summary > div:last-child { border-bottom: 0; }
  .import-report-dialog, .report-instructions-dialog { border-radius: 18px; }
  .accounts-heading { gap: 18px; }
  .accounts-heading-actions { justify-items: start; }
  .coverage-heading { gap: 18px; }
  .coverage-heading-actions { justify-items: start; }
  .import-copy { padding: 28px 22px; }
  .report-instructions-dialog { padding: 28px 22px; }
  .upload-form { grid-template-columns: 1fr; }
  .import-account-choice-form { grid-template-columns: 1fr; }
  .upload-button { min-width: 0; }
  .account-date-fields { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 250px; }
  .app-footer { flex-direction: column; gap: 8px; }
}

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

.simulation-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.simulation-form h3 { margin-top: 0; }
.simulation-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin: 20px 0; }
.simulation-fields label { font-size: .73rem; line-height: 1.5; min-width: 0; }
.simulation-fields input { margin-top: 6px; width: 100%; min-width: 0; padding: 11px; }
.simulation-fields label:first-child { grid-column: 1 / -1; }
.simulation-form .primary { width: 100%; margin-top: 22px; }
.simulation-form .text-button { text-align: left; margin: 0; }
.simulation-note, .simulation-method p { color: var(--muted); font-size: .75rem; line-height: 1.65; }
.simulation-layout summary { cursor: pointer; font-size: .82rem; font-weight: 700; line-height: 1.6; }
.simulation-layout details { margin-top: 20px; }
.simulation-output { min-width: 0; }
.simulation-empty { padding-block: 64px; }
.simulation-empty h3 { font-family: Georgia, serif; font-size: 2.3rem; font-weight: 400; letter-spacing: -.04em; margin: 12px 0; }
.simulation-empty > p:last-child, .simulation-verdict > p:last-child { color: var(--muted); font-size: .86rem; line-height: 1.7; }
.simulation-verdict { background: var(--mint); }
.simulation-verdict > strong { display: block; color: var(--green); font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -.06em; }
.simulation-verdict h3 { font-size: 1.2rem; line-height: 1.4; margin: 12px 0; }
.simulation-chart-panel { margin-top: 20px; }
.simulation-money-toggle { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.simulation-money-toggle input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--green); }
#simulation-chart { display: block; width: 100%; height: auto; margin-top: 22px; overflow: visible; }
.simulation-final-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.simulation-final-values span, .simulation-final-values small { display: block; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.simulation-final-values strong { display: block; margin: 8px 0; font-size: 1.18rem; overflow-wrap: anywhere; }
.simulation-table-wrap { overflow: auto; max-height: 360px; margin-top: 15px; }
.simulation-table-wrap table { white-space: nowrap; }
.simulation-method a { color: var(--green); }
@media (max-width: 1000px) { .simulation-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .simulation-final-values { grid-template-columns: 1fr; }
  .simulation-fields { gap: 16px 10px; }
  #simulation-chart .chart-axis-label { font-size: 16px; }
}
.simulation-fields small { display: block; margin-top: 6px; color: var(--green); font-size: .67rem; font-weight: 500; }
#simulation-main-fields label:nth-child(2) { grid-column: 1 / -1; }
.simulation-live { padding: 36px; text-align: center; background: radial-gradient(ellipse at top, #eff8d8, var(--paper) 75%); }
.simulation-live h3 { margin: 20px 0 28px; font-family: Georgia, serif; font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.simulation-live-ring { --simulation-progress: 0%; display: grid; place-items: center; width: min(100%, 280px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; padding: 9px; background: conic-gradient(var(--green) var(--simulation-progress), #dce5d7 0); }
.simulation-live-ring > div { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: #f5f8ef; }
.simulation-live-ring strong { font-size: clamp(3.5rem, 6vw, 4.6rem); color: var(--green); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.simulation-live-ring span { color: var(--muted); font-size: .76rem; }
.simulation-live-caption, #simulation-live-count { color: var(--muted); font-size: .77rem; line-height: 1.6; }
.simulation-live-caption { margin: 22px 0 28px; }
#simulation-progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; accent-color: var(--green); background: #dce5d7; }
#simulation-progress::-webkit-progress-bar { background: #dce5d7; }
#simulation-progress::-webkit-progress-value { background: var(--green); transition: width .12s linear; }
.simulation-pulse { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); animation: simulation-pulse 1.2s ease-in-out infinite alternate; }
@keyframes simulation-pulse { to { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .simulation-pulse { animation: none; } }
#simulation-view > .section-heading { margin-bottom: 24px; }
.simulation-live { scroll-margin-top: 24px; }
.simulation-verdict[data-outlook="mixed"] { background: #f8efd8; }
.simulation-verdict[data-outlook="mixed"] > strong { color: #856118; }
.simulation-verdict[data-outlook="shortfall"] { background: #fbeceb; }
.simulation-verdict[data-outlook="shortfall"] > strong { color: #a53b34; }
.simulation-allocation { display: block; margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--line); font-size: .8rem; }
.simulation-allocation-values { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 8px; font-size: 1rem; font-variant-numeric: tabular-nums; }
#simulation-equity-label { color: var(--green); }
#simulation-debt-label { color: #686096; }
#simulation-equityWeight { appearance: none; display: block; width: 100%; min-height: 0; height: 10px; margin: 20px 0 8px; padding: 0; border: 0; border-radius: 999px; background: linear-gradient(to right, var(--green) var(--equity-weight), #d7d0ed var(--equity-weight)); cursor: pointer; }
#simulation-equityWeight::-webkit-slider-thumb { appearance: none; width: 25px; height: 25px; border: 3px solid var(--green); border-radius: 50%; background: white; box-shadow: 0 2px 8px rgb(0 0 0 / 15%); }
#simulation-equityWeight::-moz-range-thumb { width: 20px; height: 20px; border: 3px solid var(--green); border-radius: 50%; background: white; }
#simulation-asset-fields label:first-child { grid-column: auto; }
.simulation-assumptions-title { font-size: .9rem; }
.simulation-note a { color: var(--green); }
.simulation-form { gap: 0; }
.simulation-form h3 { margin-bottom: 0; }
.simulation-form .simulation-fields { margin-block: 16px; }
.simulation-form .simulation-note { margin-block: 8px; }
.simulation-allocation { margin-block: 16px; }

/* Menus use the top layer so dialogs and scrolling panels cannot clip them. */
.dropdown { position: relative; min-width: 0; }
.dropdown-trigger { width: 100%; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-trigger:disabled { cursor: default; }
.dropdown-native { display: none; position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; border: 0; opacity: 0; pointer-events: none; }
.dropdown-menu { position: fixed; inset: auto; margin: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 13px; padding: 5px; color: var(--ink); background: #fffffc; box-shadow: 0 12px 32px rgb(29 47 37 / 16%); font: inherit; font-size: .8rem; font-weight: 400; }
.dropdown-option { position: relative; border-radius: 8px; padding: 11px 34px 11px 12px; cursor: pointer; overflow-wrap: anywhere; }
.dropdown-option:hover, .dropdown-option.is-active { background: #edf4ec; }
.dropdown-option[aria-selected="true"] { color: var(--green); font-weight: 700; }
.dropdown-option[aria-selected="true"]::after { content: "\2713"; position: absolute; right: 12px; }
.dropdown-option[aria-disabled="true"] { opacity: .5; cursor: default; }
@media (forced-colors: active) {
  .dropdown-trigger { appearance: none; padding-right: 44px; }
  .dropdown-trigger::after { content: "\2304"; position: absolute; right: 14px; }
  .dropdown-option.is-active { outline: 2px solid Highlight; outline-offset: -2px; }
}
