:root {
  color-scheme: dark;
  --navy: #081a27;
  --navy-2: #102b3a;
  --navy-3: #173746;
  --gold: #f2b544;
  --paper: #f8f4ea;
  --teal: #6aaea9;
  --ink-muted: #9fb0b6;
  --line: rgba(248, 244, 234, 0.13);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--paper); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 12px; padding: 12px 18px; color: var(--navy); background: var(--gold); }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); background: #081a27; }
.header-inner { max-width: 1460px; margin: auto; min-height: 84px; padding: 0 4.5%; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { object-fit: contain; }
.brand-wordmark { font-size: 13px; font-weight: 650; letter-spacing: 0.16em; white-space: nowrap; }
.brand-wordmark strong { color: var(--gold); font-weight: 750; }
.site-header nav { display: flex; align-items: center; gap: 32px; height: 84px; }
.site-header nav a { display: inline-flex; align-items: center; height: 100%; border-bottom: 2px solid transparent; color: #bbcbc9; font-size: 13px; font-weight: 650; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--paper); }
.site-header nav a[aria-current] { border-bottom-color: var(--gold); }
.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gold); font-size: 12px; font-weight: 700; }
.account-logout { border: 0; padding: 8px 0; background: transparent; color: #bbcbc9; font-size: 12px; font-weight: 700; }
.account-logout:hover { color: var(--paper); }

.page-shell { max-width: 1460px; margin: 0 auto; padding: 0 4.5%; }
.local-preview-notice { display: flex; gap: 12px; align-items: baseline; margin-top: 22px; padding: 14px 18px; border: 1px solid rgba(242,181,68,.4); border-radius: 10px; background: rgba(242,181,68,.08); color: var(--paper); font-size: 12px; line-height: 1.5; }
.local-preview-notice strong { flex: none; color: var(--gold); }
.auth-gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 440px); gap: clamp(30px, 7vw, 100px); align-items: center; min-height: min(720px, calc(100vh - 150px)); padding: 70px 0 100px; }
.auth-intro h1 { margin: 20px 0 24px; font-family: var(--font-display); font-size: clamp(52px, 6vw, 82px); line-height: 1; font-weight: 400; letter-spacing: -.05em; }
.auth-intro h1 em { color: var(--gold); }
.auth-intro > p:not(.eyebrow) { max-width: 440px; color: #b9c9cb; font-size: 16px; line-height: 1.7; }
.auth-intro-mark { width: 145px; height: 145px; margin-top: 55px; display: grid; place-items: center; border: 1px solid rgba(242,181,68,.24); border-radius: 50%; box-shadow: 0 0 0 25px rgba(242,181,68,.03), 0 0 0 55px rgba(242,181,68,.02); }
.auth-card { padding: 30px; box-shadow: 0 28px 70px rgba(0,0,0,.16); }
.auth-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.auth-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 0 0 14px; background: transparent; color: var(--ink-muted); font-size: 13px; font-weight: 700; }
.auth-tabs button[aria-selected="true"] { border-bottom-color: var(--gold); color: var(--paper); }
.auth-status { min-height: 17px; color: var(--ink-muted); font-size: 12px; }
.auth-form { display: grid; gap: 16px; }
.auth-form .field { margin: 0; }
.auth-form .button { width: 100%; margin-top: 2px; }
.auth-help { margin: 0; color: #91a7ad; font-size: 11px; line-height: 1.5; }
.captcha-disclosure { margin: 0; color: #8fa7aa; font-size: 10px; line-height: 1.55; }
.captcha-disclosure a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.auth-card .form-error { margin: 18px 0 0; }
.google-auth { display: grid; justify-items: center; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.google-auth > span { color: var(--ink-muted); font-size: 11px; }
.google-auth p { text-align: center; }
.account-link { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 20px 0 0; color: var(--ink-muted); font-size: 11px; }
.account-link #google-link-status { color: var(--teal); }
.eyebrow { margin: 0; color: var(--gold); font-size: 10px; font-weight: 760; letter-spacing: 0.22em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 400; }
h1 em, h2 em { color: var(--gold); font-style: italic; }
.hero { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(360px, .87fr); min-height: 480px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 64px 24px 72px 0; position: relative; z-index: 1; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; background: var(--gold); }
.hero h1 { margin: 23px 0 19px; font-family: var(--font-display); font-size: clamp(54px, 6.1vw, 92px); line-height: .98; letter-spacing: -.044em; }
.hero-lead { max-width: 500px; margin: 0 0 32px; color: #b9c9cb; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { border: 1px solid transparent; border-radius: 2px; display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 44px; padding: 11px 18px; font-size: 12px; font-weight: 750; line-height: 1.3; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.button-primary { background: var(--gold); color: #10202a; }
.button-primary:hover { background: #ffd077; }
.button-outline { color: var(--gold); border-color: rgba(242,181,68,.65); }
.button-outline:hover { background: rgba(242,181,68,.1); }
.button-subtle { background: #173646; color: var(--paper); border-color: rgba(248,244,234,.13); }
.button-subtle:hover { background: #214554; }
.button-quiet { padding-left: 10px; padding-right: 10px; background: transparent; color: var(--ink-muted); }
.button-quiet:hover { color: var(--paper); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.text-link { padding: 8px 0; border-bottom: 1px solid rgba(242,181,68,.6); color: var(--paper); font-size: 12px; font-weight: 700; }
.text-link span { margin-left: 7px; color: var(--gold); }
.text-link:hover { color: var(--gold); }

.hero-art { min-height: 480px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 55% 45%, rgba(58,119,122,.26), transparent 60%); z-index: -1; }
.hero-art::after { content: ""; position: absolute; width: 160%; height: 70%; top: 40%; left: 0; transform: rotate(-31deg); border-top: 1px solid rgba(242,181,68,.17); z-index: -1; }
.halo { position: absolute; width: 320px; height: 320px; border: 1px solid rgba(242,181,68,.19); border-radius: 50%; transform: rotate(-17deg); }
.halo-one { width: 310px; height: 310px; }
.halo-two { width: 440px; height: 440px; border-color: rgba(242,181,68,.12); }
.halo-three { width: 580px; height: 580px; border-color: rgba(242,181,68,.07); }
.hero-art-inner { width: 70%; min-height: 240px; padding: 26px; position: relative; background: linear-gradient(145deg, rgba(25,57,70,.98), rgba(14,35,49,.94)); border: 1px solid rgba(242,181,68,.22); box-shadow: 0 28px 90px rgba(0,0,0,.22); transform: rotate(-5deg); }
.hero-art-inner > span { color: var(--teal); font-size: 9px; font-weight: 750; letter-spacing: .18em; }
.hero-art-inner > strong { display: block; margin-top: 28px; font-family: var(--font-display); font-size: clamp(27px, 3vw, 43px); line-height: 1.04; font-weight: 400; letter-spacing: -.03em; }
.hero-art-bars { display: flex; gap: 7px; align-items: flex-end; height: 60px; margin-top: 26px; }
.hero-art-bars i { flex: 1; height: 28%; background: var(--teal); opacity: .55; }
.hero-art-bars i:nth-child(2), .hero-art-bars i:nth-child(7) { height: 46%; }
.hero-art-bars i:nth-child(3), .hero-art-bars i:nth-child(8) { height: 61%; }
.hero-art-bars i:nth-child(4), .hero-art-bars i:nth-child(11) { height: 78%; }
.hero-art-bars i:nth-child(5), .hero-art-bars i:nth-child(9) { height: 52%; }
.hero-art-bars i:nth-child(6), .hero-art-bars i:nth-child(12) { height: 91%; background: var(--gold); opacity: .95; }
.hero-art-bars i:nth-child(10) { height: 67%; }

.privacy-strip { display: flex; gap: 13px; align-items: center; margin: 27px 0 10px; padding: 13px 17px; border: 1px solid rgba(106,174,169,.2); background: rgba(106,174,169,.07); }
.privacy-icon { color: var(--teal); font-size: 17px; }
.privacy-strip p { margin: 0; color: #b5c7c7; font-size: 12px; line-height: 1.6; }
.privacy-strip strong { color: var(--paper); }
.quote-coverage { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0 0 55px; padding: 0 2px; color: #a9bdbf; font-size: 11px; line-height: 1.55; }
.quote-coverage strong { color: var(--gold); font-size: 12px; }

.overview { margin-bottom: 92px; }
.section-heading, .panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading { margin-bottom: 25px; }
.section-heading h2, .panel-heading h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -.025em; }
.section-kicker { padding-bottom: 4px; color: var(--ink-muted); font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.metric-card { position: relative; display: flex; min-height: 160px; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 22px 20px; background: var(--navy-2); border: 1px solid rgba(248,244,234,.07); }
.metric-card.metric-featured { grid-column: span 2; background: linear-gradient(145deg, #153744, #1a4346); border-color: rgba(106,174,169,.24); }
.metric-label { color: #bbcacb; font-size: 11px; font-weight: 700; }
.metric-value { margin-top: 21px; font-family: var(--font-display); font-size: clamp(24px, 2.7vw, 38px); font-weight: 400; letter-spacing: -.035em; white-space: nowrap; }
.metric-featured .metric-value { color: var(--gold); }
.metric-value.is-positive, .gain-loss.is-positive { color: #a4d8ba; }
.metric-value.is-negative, .gain-loss.is-negative { color: #f1aaa0; }
.metric-foot { margin-top: auto; padding-top: 10px; color: #8da2a9; font-size: 10px; line-height: 1.4; }
.metric-spark { position: absolute; right: -25px; bottom: -40px; width: 115px; height: 115px; border: 1px solid rgba(242,181,68,.17); border-radius: 50%; box-shadow: 0 0 0 25px rgba(242,181,68,.05); }

.workspace { display: block; margin: 0; }
.workspace > * { min-width: 0; }
.panel { padding: 29px; background: var(--navy-2); border: 1px solid rgba(248,244,234,.08); }
.holdings-panel { min-height: 530px; }
.panel-heading { align-items: center; }
.panel-heading h2 { font-size: clamp(28px, 2.4vw, 36px); }
.count-badge { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; margin-left: 6px; border: 1px solid rgba(242,181,68,.35); border-radius: 50%; color: var(--gold); font-family: var(--font-body); font-size: 11px; font-weight: 700; vertical-align: middle; }
.data-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.data-actions .button { min-height: 37px; padding: 8px 12px; font-size: 11px; }
.data-hint { margin: 19px 0 0; color: #859ca4; font-size: 11px; line-height: 1.5; }
.empty-state { min-height: 365px; padding: 50px 22px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-illustration { display: flex; align-items: end; gap: 9px; width: 100px; height: 78px; margin-bottom: 22px; padding: 7px; border-bottom: 1px solid rgba(242,181,68,.4); }
.empty-illustration span { flex: 1; background: rgba(106,174,169,.5); }
.empty-illustration span:nth-child(1) { height: 34%; }
.empty-illustration span:nth-child(2) { height: 56%; }
.empty-illustration span:nth-child(3) { height: 44%; }
.empty-illustration span:nth-child(4) { height: 84%; background: var(--gold); }
.empty-state h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.empty-state p { max-width: 310px; margin: 0 0 23px; color: #9eb1b6; font-size: 13px; line-height: 1.6; }
.table-wrap { position: relative; overflow-x: auto; margin-top: 26px; }
.table-wrap table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 0 12px 14px; border-bottom: 1px solid var(--line); color: #92a9ae; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: left; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td { padding: 16px 12px; border-bottom: 1px solid rgba(248,244,234,.08); color: #d3dcdb; font-size: 12px; }
td.numeric, th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.company-cell strong { display: block; color: var(--paper); font-size: 12px; letter-spacing: .04em; }
.company-cell span { display: block; max-width: 165px; overflow: hidden; color: #8fa6ad; font-size: 10px; text-overflow: ellipsis; }
.price-cell .price-source { display: block; max-width: 200px; margin-top: 3px; color: #8fa6ad; font-size: 9px; line-height: 1.35; white-space: normal; }
.price-cell .price-source.is-fallback { color: #d0ad69; }
.row-actions { display: flex; gap: 10px; justify-content: flex-end; }
.row-actions button { padding: 5px 0; border: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 700; }
.row-actions button:hover { color: var(--gold); text-decoration: underline; }
.row-actions button.delete { color: #c99386; }
.row-actions button.delete:hover { color: #f5aa9a; }

.form-heading { margin-bottom: 25px; }
.form-plus { color: rgba(242,181,68,.7); font-family: var(--font-display); font-size: 45px; font-weight: 300; line-height: 1; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; margin-bottom: 14px; }
.field-row:first-child { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 8px; color: #c1cfcf; font-size: 11px; font-weight: 650; }
.field label span { color: var(--gold); }
.field input, .field select { width: 100%; height: 41px; border: 1px solid rgba(248,244,234,.16); border-radius: 0; padding: 9px 10px; outline: none; background: #0b2331; color: var(--paper); font-size: 12px; }
.field input::placeholder { color: #67808c; }
.field input:focus, .field select:focus { border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: #e8a297; }
.field select { appearance: none; padding-right: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8' viewBox='0 0 11 8'%3E%3Cpath d='m1 1 4.5 5L10 1' fill='none' stroke='%23f2b544' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.field select option { background: #0b2331; }
.input-money { position: relative; display: block; }
.input-money > span { position: absolute; top: 12px; left: 10px; color: #9db7b9; font-size: 12px; }
.input-money input { padding-left: 23px; }
.field-help { margin: 1px 0 20px; color: #829da5; font-size: 10px; line-height: 1.55; }
.form-error { margin: -5px 0 16px; padding: 9px 11px; border: 1px solid rgba(232,162,151,.4); color: #ffd0c8; background: rgba(232,162,151,.08); font-size: 11px; line-height: 1.5; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.form-actions .button-primary { min-width: 160px; }

.calendar-section { margin-bottom: 99px; padding: 34px; }
.calendar-heading { align-items: end; }
.calendar-total { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; }
.calendar-total span { color: #8fa5ab; font-size: 10px; }
.calendar-total strong { color: var(--gold); font-family: var(--font-display); font-size: 27px; font-weight: 400; }
.calendar-subtitle { margin: 17px 0 42px; color: #91a8ad; font-size: 11px; line-height: 1.55; }
.monthly-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 15px; min-height: 210px; align-items: end; border-bottom: 1px solid rgba(242,181,68,.2); }
.chart-month { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; height: 210px; text-align: center; }
.chart-month { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.chart-month:hover .chart-label, .chart-month.is-selected .chart-label { color: var(--gold); }
.chart-month.is-selected .bar-track { box-shadow: inset 0 0 0 1px rgba(242,181,68,.3); }
.chart-month.is-selected .bar-fill { background: linear-gradient(180deg, #ffd382, #b48a42); }
.chart-value { display: block; color: var(--paper); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-track { display: flex; align-items: flex-end; width: min(100%, 44px); height: 132px; margin: 11px 0 12px; background: rgba(255,255,255,.025); }
.bar-fill { display: block; width: 100%; min-height: 2px; background: linear-gradient(180deg, #d2bc82, #4e8f91); }
.chart-month:nth-child(3n) .bar-fill { background: linear-gradient(180deg, #f2b544, #947e4d); }
.chart-label { padding-bottom: 10px; color: #a9bcbe; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chart-month.is-empty .chart-value { color: #70878e; }
.chart-month.is-empty .bar-fill { background: rgba(255,255,255,.1); }

.methodology { display: grid; grid-template-columns: .9fr 2fr; gap: 35px; padding: 0 0 100px; }
.methodology h2 { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.method-grid > div { border-top: 1px solid rgba(242,181,68,.4); padding-top: 14px; }
.method-grid span { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.method-grid h3 { margin: 17px 0 7px; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.method-grid p { margin: 0; color: #91a8ad; font-size: 11px; line-height: 1.65; }

/* Portfolio studio */
.tracker-masthead { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 30px; overflow: hidden; padding: 49px 0 33px; border-bottom: 1px solid var(--line); }
.tracker-masthead::after { content: ""; position: absolute; right: 13%; top: -120px; width: 300px; height: 300px; border: 1px solid rgba(242,181,68,.1); border-radius: 50%; box-shadow: 0 0 0 50px rgba(242,181,68,.025), 0 0 0 105px rgba(242,181,68,.015); pointer-events: none; }
.tracker-masthead > * { position: relative; z-index: 1; }
.tracker-masthead h1 { margin: 12px 0 10px; font-family: var(--font-display); font-size: clamp(39px, 4vw, 61px); line-height: 1.06; letter-spacing: -.038em; }
.tracker-masthead p:not(.eyebrow) { max-width: 640px; margin: 0; color: #aabdc0; font-size: 13px; line-height: 1.65; }
.tracker-masthead > .button { flex: none; margin-bottom: 5px; }
.tracker-tabs { display: flex; align-items: stretch; gap: 3px; overflow-x: auto; border-bottom: 1px solid rgba(248,244,234,.16); scrollbar-color: #315462 transparent; scrollbar-width: thin; }
.tracker-tab { position: relative; flex: none; min-height: 61px; padding: 12px 14px 15px; border: 0; background: transparent; color: #91a7ad; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tracker-tab:hover { color: var(--paper); background: rgba(255,255,255,.025); }
.tracker-tab[aria-current="page"] { color: var(--paper); }
.tracker-tab[aria-current="page"]::after { content: ""; position: absolute; height: 3px; left: 12px; right: 12px; bottom: 0; background: var(--gold); }
.tab-index { margin-right: 6px; color: #718c91; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.tracker-tab[aria-current="page"] .tab-index { color: var(--gold); }
.privacy-strip { margin: 18px 0 34px; }
.tracker-view { min-height: 490px; padding-bottom: 90px; }
.view-intro { margin: 0 0 28px; }
.view-intro h2 { margin: 8px 0 9px; font-family: var(--font-display); font-size: clamp(35px, 3vw, 48px); letter-spacing: -.035em; }
.view-intro > p:last-child { max-width: 680px; margin: 0; color: #9eb4b9; font-size: 13px; line-height: 1.65; }
.overview { margin-bottom: 19px; }
.overview-bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.overview-bottom-grid .panel { min-height: 245px; }
.overview-bottom-grid h2 { margin: 12px 0 14px; font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 37px); font-weight: 400; letter-spacing: -.03em; }
.portfolio-narrative { background: linear-gradient(130deg, #173b47, #102b3a 67%); }
.portfolio-narrative > p:not(.eyebrow) { max-width: 470px; color: #bdd0d0; font-size: 13px; line-height: 1.65; }
.narrative-link-row { display: flex; flex-wrap: wrap; gap: 12px 21px; margin-top: 25px; }
.narrative-link-row button, .inline-action { border: 0; border-bottom: 1px solid rgba(242,181,68,.6); padding: 0 0 5px; background: transparent; color: var(--gold); font-size: 11px; font-weight: 700; }
.narrative-link-row button:hover, .inline-action:hover { color: #ffd481; }
.overview-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 7px; min-height: 85px; margin-bottom: 21px; }
.overview-month { min-width: 0; height: 83px; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 6px; color: #91a8ad; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.overview-month { padding: 0; border: 0; background: transparent; cursor: pointer; }
.overview-month:hover, .overview-month:focus-visible { color: var(--gold); }
.overview-month-bar { width: min(100%, 21px); min-height: 2px; background: linear-gradient(0deg, #4a8388, #d6ae5a); }
.overview-month:nth-child(3n) .overview-month-bar { background: linear-gradient(0deg, #947044, #f2b544); }
.overview-month-value { color: #c9d4d2; font-size: 8px; font-variant-numeric: tabular-nums; }
.holdings-panel { min-height: 0; width: 100%; }
.table-wrap { max-width: 100%; }
.table-wrap table { width: 100%; }
.data-actions .button-primary { color: #10202a; }

/* The holding editor is a floating task, never a column beside the table. */
.holding-dialog { width: min(700px, calc(100vw - 28px)); max-width: 700px; max-height: min(92vh, 950px); margin: auto; padding: 0; border: 1px solid rgba(242,181,68,.35); border-radius: 10px; background: #102b3a; color: var(--paper); box-shadow: 0 35px 110px rgba(0,0,0,.55); overflow-y: auto; }
.holding-dialog::backdrop { background: rgba(2,11,17,.76); backdrop-filter: blur(5px); }
.holding-dialog .editor-panel { border: 0; padding: 29px 34px 33px; background: transparent; }
.holding-dialog .form-heading { align-items: start; margin-bottom: 12px; }
.dialog-close { width: 33px; height: 33px; display: inline-grid; place-items: center; border: 1px solid rgba(248,244,234,.18); border-radius: 50%; background: rgba(255,255,255,.03); color: var(--paper); font-size: 22px; line-height: 1; }
.dialog-close:hover { border-color: var(--gold); color: var(--gold); }
.editor-intro { max-width: 570px; margin: 0 0 23px; color: #a9bec1; font-size: 12px; line-height: 1.6; }
.editor-step { min-width: 0; margin: 0 0 17px; padding: 15px 0 0; border: 0; border-top: 1px solid rgba(248,244,234,.13); }
.editor-step legend { float: left; width: 100%; margin: 0 0 15px; padding: 0; color: #e2e9e6; font-size: 12px; font-weight: 750; }
.editor-step legend span { margin-right: 10px; color: var(--gold); font-size: 10px; letter-spacing: .12em; }
.editor-step > .field-row { clear: both; }
.editor-step > .field-row:last-of-type { margin-bottom: 0; }
.editor-step-help { clear: both; margin: 0 0 14px; color: #91a9ad; font-size: 11px; line-height: 1.55; }
.editor-step .field-help { margin: 11px 0 0; }
.holding-dialog .field input, .holding-dialog .field select { height: 44px; }
.holding-dialog .form-actions { padding-top: 4px; }
.ticker-lookup { position: relative; }
.ticker-suggestions { position: absolute; z-index: 6; top: calc(100% + 4px); left: 0; right: 0; max-height: 242px; overflow-y: auto; border: 1px solid rgba(242,181,68,.4); border-radius: 4px; padding: 4px; background: #153643; box-shadow: 0 20px 38px rgba(0,0,0,.45); }
.ticker-suggestions[hidden] { display: none; }
.ticker-suggestion { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 3px; padding: 10px 9px; background: transparent; color: var(--paper); text-align: left; cursor: pointer; }
.ticker-suggestion:hover, .ticker-suggestion.is-active { background: rgba(106,174,169,.18); }
.ticker-suggestion strong { display: block; font-size: 12px; letter-spacing: .035em; }
.ticker-suggestion small { display: block; margin-top: 3px; color: #9eb7bb; font-size: 10px; line-height: 1.35; }
.ticker-suggestion em { flex: none; color: #d0ad69; font-size: 9px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.ticker-lookup-note { margin: 7px 0 0; color: #8fa8ac; font-size: 10px; line-height: 1.45; }
.price-lookup-note { margin: 7px 0 0; color: #8fa8ac; font-size: 10px; line-height: 1.45; }
.payment-dialog { max-width: 570px; }
.payment-dialog .field-row { margin-bottom: 16px; }
.payment-dialog .field > .input-money { margin-bottom: 20px; }

/* Allocation and income analysis */
.analysis-grid { display: grid; gap: 15px; }
.analysis-grid-main { grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr); }
.analysis-grid > *, .overview-bottom-grid > * { min-width: 0; }
.analysis-grid h3, .ranking-panel h3, .history-chart-panel h3, .history-table-panel h3, .settings-card h3, .insight-callout h3 { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.025em; }
.analysis-grid-main > .panel { min-height: 375px; }
.mini-label { color: #82a2a5; font-size: 9px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.panel-explainer, .analysis-footnote { color: #91a8ad; font-size: 11px; line-height: 1.6; }
.analysis-footnote { margin: 21px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }
.segmented-control { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(248,244,234,.14); border-radius: 5px; background: #0a2230; }
.segmented-control button { min-height: 30px; padding: 5px 9px; border: 0; border-radius: 3px; background: transparent; color: #9bb0b4; font-size: 10px; font-weight: 700; white-space: nowrap; }
.segmented-control button[aria-pressed="true"] { background: #31545c; color: var(--paper); }
.allocation-layout { display: grid; grid-template-columns: minmax(170px, .9fr) minmax(170px, 1.1fr); gap: 23px; align-items: center; padding-top: 37px; }
.allocation-chart { display: grid; place-items: center; width: min(100%, 238px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#f2b544 0deg, #f2b544 0deg, #284451 0deg); }
.allocation-chart::before { content: ""; grid-area: 1 / 1; width: 66%; aspect-ratio: 1; border-radius: 50%; background: #102b3a; }
.allocation-chart span { grid-area: 1 / 1; z-index: 1; width: 61%; color: var(--paper); font-family: var(--font-display); font-size: 19px; text-align: center; line-height: 1.2; }
.allocation-legend { display: grid; gap: 10px; max-height: 260px; overflow-y: auto; }
.legend-row { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 9px; color: #d8e1df; font-size: 11px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.legend-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-value { color: var(--gold); font-variant-numeric: tabular-nums; }
.analysis-emphasis { margin: 18px 0 23px; color: #e9e9df; font-family: var(--font-display); font-size: 20px; line-height: 1.35; }
.concentration-bars { display: grid; gap: 14px; }
.comparison-row { display: grid; gap: 5px; }
.comparison-meta { display: flex; justify-content: space-between; gap: 12px; color: #cedbdd; font-size: 11px; font-weight: 700; }
.comparison-tracks { display: grid; gap: 4px; }
.comparison-track { height: 7px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.07); }
.comparison-fill { display: block; height: 100%; border-radius: inherit; background: #6aaea9; }
.comparison-fill.is-income { background: var(--gold); }
.ranking-panel, .insight-callout { margin-top: 15px; }
.ranking-list { display: grid; gap: 2px; margin-top: 19px; }
.ranking-item { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(80px, 1.4fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(248,244,234,.09); }
.ranking-item-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e3e7e2; font-size: 12px; font-weight: 700; }
.ranking-item-track { height: 8px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.065); }
.ranking-item-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5e9b9c, #e0bf79); }
.ranking-item-value { color: var(--gold); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.payer-chart { display: flex; min-height: 23px; overflow: hidden; margin-top: 30px; border-radius: 4px; background: #214251; }
.payer-segment { display: block; min-width: 1px; height: 23px; border-right: 2px solid #102b3a; background: var(--teal); }
.yield-distribution { display: grid; gap: 12px; margin-top: 28px; }
.yield-band { display: grid; grid-template-columns: minmax(76px, .55fr) minmax(100px, 1fr) auto; align-items: center; gap: 12px; color: #d7e1de; font-size: 11px; }
.yield-band-track { height: 10px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.065); }
.yield-band-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #447a7f, #f2b544); }
.yield-band strong { color: var(--gold); font-size: 11px; font-variant-numeric: tabular-nums; }
.yield-band > span:last-child { color: #a8bcbe; font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.insight-callout { background: linear-gradient(100deg, #173945, #102b3a); }
.insight-callout p:last-child { max-width: 880px; margin: 15px 0 0; color: #cedbd8; font-size: 13px; line-height: 1.65; }
.dividend-rate-panel { margin-top: 15px; }
.dividend-rate-status { margin: 21px 0 0; color: #a7c4c2; font-size: 12px; line-height: 1.55; }
.dividend-rate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 18px; }
.dividend-rate-card { min-width: 0; border: 1px solid rgba(248,244,234,.11); border-left: 3px solid #64a5a0; padding: 17px; background: rgba(255,255,255,.025); }
.dividend-rate-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.dividend-rate-card-heading > div { display: grid; gap: 4px; min-width: 0; }
.dividend-rate-card-heading strong { color: var(--paper); font-size: 16px; }
.dividend-rate-card-heading span:not(.dividend-rate-badge) { color: #9fb5b8; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dividend-rate-badge { flex: none; border: 1px solid rgba(106,174,169,.38); border-radius: 3px; padding: 5px 7px; color: #9dd2cd; font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.dividend-rate-badge.is-history { border-color: rgba(242,181,68,.4); color: #dfbf80; }
.dividend-rate-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px 15px; margin-top: 19px; }
.dividend-rate-metric { display: grid; align-content: start; gap: 4px; min-width: 0; }
.dividend-rate-metric span { color: #8ca7ad; font-size: 9px; line-height: 1.35; }
.dividend-rate-metric strong { color: #e6e8df; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dividend-rate-dates { margin: 16px 0 7px; color: #b5c7c7; font-size: 10px; line-height: 1.5; }
.dividend-rate-source { display: inline-block; color: #9bd2cd; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.dividend-rate-source-time { margin: 7px 0 0; color: #829ea4; font-size: 9px; }
.dividend-rate-scenario { display: grid; gap: 6px; margin-top: 16px; border-top: 1px solid rgba(248,244,234,.12); padding-top: 14px; }
.dividend-rate-scenario > span { color: #a9c4c2; font-size: 9px; font-weight: 750; letter-spacing: .07em; line-height: 1.45; }
.dividend-rate-scenario > strong { color: var(--gold); font-family: var(--font-display); font-size: 19px; font-weight: 400; line-height: 1.35; }
.dividend-rate-impact { margin: 0; color: #d7e5de; font-size: 11px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.dividend-rate-impact.is-positive { color: #93d1b8; }
.dividend-rate-impact.is-negative { color: #edaf9d; }
.dividend-rate-caution { margin: 0; color: #9baeb3; font-size: 10px; line-height: 1.5; }
.dividend-rate-coverage-warning { margin: 10px 0 0; border-left: 2px solid rgba(242,181,68,.6); padding-left: 9px; color: #d9c69d; font-size: 10px; line-height: 1.5; }
.dividend-rate-uncovered { grid-column: 1 / -1; border-left: 2px solid rgba(242,181,68,.55); padding: 12px 16px; background: rgba(242,181,68,.055); }
.dividend-rate-uncovered strong { display: block; color: #e7dbc1; font-size: 11px; }
.dividend-rate-uncovered p { margin: 8px 0; color: #d4d9d4; font-size: 11px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.dividend-rate-uncovered span { color: #9eaaab; font-size: 10px; line-height: 1.5; }
.dividend-observed-change { display: grid; gap: 7px; margin-top: 15px; border-top: 1px solid rgba(248,244,234,.12); padding-top: 14px; }
.dividend-observed-change > span { color: #a7c6c2; font-size: 9px; font-weight: 750; letter-spacing: .07em; }
.dividend-observed-change > strong { color: #e4e9dc; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dividend-observed-change > p { margin: 0; color: #aebdc0; font-size: 10px; line-height: 1.5; }
.toolbar-select { display: flex; align-items: center; gap: 8px; color: #8faab0; font-size: 10px; font-weight: 700; }
.toolbar-select select { min-height: 32px; border: 1px solid rgba(248,244,234,.19); border-radius: 3px; padding: 5px 8px; background: #0b2331; color: var(--paper); font-size: 11px; }

/* Forecast and received payments remain visually distinct. */
.calendar-section { margin-bottom: 0; }
.calendar-section h3 { margin: 7px 0 0; font-family: var(--font-display); font-size: clamp(27px, 2.5vw, 37px); font-weight: 400; }
.calendar-detail { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 29px; }
.calendar-detail-heading { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.calendar-detail-heading strong { color: var(--paper); font-family: var(--font-display); font-size: 23px; font-weight: 400; }
.calendar-detail-heading span { color: var(--gold); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.calendar-detail-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.calendar-detail-row { min-width: 0; padding: 13px 15px; border-left: 2px solid rgba(242,181,68,.5); background: rgba(255,255,255,.025); color: #c6d6d5; font-size: 11px; line-height: 1.5; }
.calendar-detail-row { display: flex; justify-content: space-between; gap: 10px; }
.calendar-detail-row strong { color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calendar-detail > .analysis-footnote { grid-column: 1 / -1; margin: 4px 0 0; }
.calendar-feed-note { margin: -24px 0 29px; border-left: 2px solid #629b98; padding: 8px 11px; background: rgba(106,174,169,.065); color: #a8c6c3; font-size: 11px; line-height: 1.55; }
.calendar-feed-note.is-fallback { border-left-color: #d7aa5d; color: #decba5; background: rgba(242,181,68,.06); }
.calendar-event-group { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.calendar-event-group h4 { grid-column: 1 / -1; margin: 7px 0 1px; color: #c5d9d7; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.calendar-event { min-width: 0; border: 1px solid rgba(248,244,234,.09); border-left: 3px solid #64a5a0; padding: 15px; background: rgba(255,255,255,.025); }
.calendar-event.is-estimated { border-left-color: #bc9557; }
.calendar-event-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px; }
.calendar-event-heading strong { color: var(--paper); font-size: 14px; }
.calendar-event-heading span { color: #a9c4c3; font-size: 10px; }
.calendar-event-amount { margin: 13px 0 5px; color: var(--gold); font-family: var(--font-display); font-size: 23px; }
.calendar-event-detail { margin: 4px 0 0; color: #98b0b4; font-size: 10px; line-height: 1.5; }
.calendar-event-source { display: inline-block; margin-top: 10px; color: #94cfca; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.history-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.history-metrics .metric-card { min-height: 150px; }
.history-metrics #history-total { white-space: normal; overflow-wrap: anywhere; }
.history-metrics #history-latest { font-size: clamp(22px, 2.4vw, 32px); }
.history-chart-panel { margin-bottom: 15px; }
.history-chart { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 10px; align-items: end; min-height: 230px; padding: 28px 0 7px; border-bottom: 1px solid rgba(106,174,169,.35); }
.history-month { display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 8px; min-width: 0; height: 195px; color: #aec2c3; font-size: 9px; font-weight: 700; }
.history-month-bar { width: min(100%, 42px); min-height: 2px; background: linear-gradient(0deg, #278c8b, #8ed9c7); border-radius: 2px 2px 0 0; }
.history-month:nth-child(3n) .history-month-bar { background: linear-gradient(0deg, #4f9b9a, #badbd3); }
.history-annual-summary { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px 20px; padding: 14px 0 0; color: #9cc8c1; font-size: 11px; font-variant-numeric: tabular-nums; }
.history-table-panel .table-wrap { margin-top: 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.settings-card { display: flex; flex-direction: column; min-height: 250px; }
.settings-card > p:not(.eyebrow) { margin: 17px 0 28px; color: #9db2b7; font-size: 12px; line-height: 1.65; }
.settings-card > .button { align-self: flex-start; margin-top: auto; }
#panel-settings .methodology { margin-top: 40px; padding-bottom: 20px; }
.site-footer { border-top: 1px solid var(--line); background: #061620; }
.footer-inner { max-width: 1460px; margin: auto; padding: 32px 4.5%; display: flex; justify-content: space-between; gap: 40px; }
.footer-inner div { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.footer-inner strong { color: var(--gold); font-size: 11px; letter-spacing: .15em; }
.footer-inner span, .footer-inner p { color: #8099a2; font-size: 10px; line-height: 1.5; }
.footer-inner a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.footer-inner p { max-width: 540px; margin: 0; text-align: right; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: 360px; padding: 13px 17px; border-left: 3px solid var(--teal); background: #193b47; color: var(--paper); box-shadow: 0 12px 40px rgba(0,0,0,.4); font-size: 12px; line-height: 1.5; }
.toast.is-error { border-left-color: #e8a297; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .metric-card.metric-featured { grid-column: span 3; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .holdings-panel { min-height: 0; }
  .editor-panel { max-width: none; }
  .field-row:first-child { grid-template-columns: 1fr 2fr; }
}
@media (max-width: 760px) {
  .auth-gate { grid-template-columns: 1fr; min-height: 0; padding: 48px 0 80px; }
  .auth-intro-mark { display: none; }
  .account-link { align-items: flex-start; flex-direction: column; }
  .header-inner { min-height: 68px; padding-top: 10px; padding-bottom: 8px; flex-wrap: wrap; gap: 2px 12px; }
  .site-header nav { width: 100%; height: auto; min-height: 42px; gap: 0 17px; flex-wrap: wrap; }
  .site-header nav a { height: 42px; }
  .brand-wordmark { font-size: 10px; letter-spacing: .12em; }
  .brand img { width: 32px; height: 32px; }
  .hero { display: block; }
  .hero-copy { padding: 58px 0 48px; }
  .hero h1 { font-size: clamp(55px, 11vw, 80px); }
  .hero-art { min-height: 250px; margin: 0 -5%; }
  .hero-art-inner { width: min(62%, 360px); min-height: 190px; }
  .hero-art-inner > strong { margin-top: 16px; font-size: 30px; }
  .hero-art-bars { margin-top: 15px; height: 42px; }
  .privacy-strip { margin-bottom: 58px; }
  .overview { margin-bottom: 66px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-card.metric-featured { grid-column: span 2; }
  .metric-card { min-height: 142px; }
  .metric-value { font-size: clamp(25px, 5vw, 34px); }
  .calendar-section { padding: 23px; }
  .monthly-chart { gap: 8px; grid-template-columns: repeat(12, 63px); overflow-x: auto; }
  .chart-value { font-size: 8px; }
  .chart-label { font-size: 9px; }
  .methodology { grid-template-columns: 1fr; gap: 27px; }
  .method-grid { gap: 15px; }
}
@media (max-width: 560px) {
  .header-inner { padding: 0 5%; }
  .site-header nav { gap: 12px; }
  .page-shell { padding: 0 5%; }
  .brand-wordmark { font-size: 9px; letter-spacing: .06em; }
  .site-header nav a { font-size: 11px; }
  .hero h1 { font-size: 54px; }
  .hero-lead { font-size: 14px; }
  .hero-art-inner { width: 70%; }
  .section-heading { align-items: start; }
  .section-kicker { max-width: 70px; text-align: right; line-height: 1.4; }
  .metric-grid { gap: 8px; }
  .metric-card { padding: 17px 13px; }
  .metric-value { font-size: clamp(19px, 5vw, 28px); }
  .metric-foot { font-size: 9px; }
  .panel { padding: 19px; }
  .holdings-panel .panel-heading { align-items: start; flex-direction: column; }
  .data-actions { justify-content: flex-start; }
  .data-hint { margin-top: 11px; }
  .field-row, .field-row:first-child { grid-template-columns: 1fr 1fr; }
  .field-company { grid-column: 2; }
  .calendar-heading { align-items: start; }
  .calendar-heading h2 { max-width: 245px; }
  .calendar-total { min-width: 80px; text-align: right; }
  .calendar-total strong { font-size: 19px; }
  .monthly-chart { grid-template-columns: repeat(12, 63px); }
  .method-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { padding: 30px 5%; flex-direction: column; gap: 17px; }
  .footer-inner p { text-align: left; }
}
@media (max-width: 420px) {
  .brand-wordmark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

@media (max-width: 1040px) {
  .analysis-grid-main { grid-template-columns: minmax(0,1fr); }
  .analysis-grid-main > .panel { min-height: 0; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .tracker-masthead { align-items: start; flex-direction: column; padding: 39px 0 27px; }
  .tracker-masthead > .button { margin: 0; }
  .tracker-tab { min-height: 52px; padding: 10px 12px 13px; }
  .tracker-view { padding-bottom: 65px; }
  .overview-bottom-grid { grid-template-columns: minmax(0,1fr); }
  .history-chart { grid-template-columns: repeat(12, minmax(45px,1fr)); overflow-x: auto; }
  .calendar-detail { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .calendar-detail-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .history-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .history-metrics .metric-card:first-child { grid-column: span 2; }
  .dividend-rate-list { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  .tracker-masthead h1 { font-size: 42px; }
  .tracker-masthead p:not(.eyebrow) { font-size: 12px; }
  .tab-index { display: none; }
  .tracker-tab { font-size: 11px; }
  .privacy-strip { margin: 16px 0 27px; }
  .view-intro h2 { font-size: 37px; }
  .view-intro > p:last-child { font-size: 12px; }
  .overview-bottom-grid .panel { min-height: 0; }
  .allocation-layout { grid-template-columns: minmax(0,1fr); justify-items: center; padding-top: 27px; }
  .allocation-legend { width: 100%; max-height: none; }
  .segmented-control button { font-size: 9px; padding: 5px 7px; }
  .analysis-grid .panel-heading { align-items: start; flex-direction: column; gap: 12px; }
  .comparison-meta { font-size: 10px; }
  .ranking-item { grid-template-columns: minmax(70px,.8fr) minmax(50px,1.1fr) auto; gap: 8px; }
  .ranking-item-label, .ranking-item-value { font-size: 10px; }
  .yield-band { grid-template-columns: 70px minmax(60px,1fr) auto; gap: 8px; }
  .calendar-detail { grid-template-columns: minmax(0,1fr); }
  .calendar-detail-list { grid-template-columns: minmax(0,1fr); }
  .calendar-event-group { grid-template-columns: minmax(0,1fr); }
  .settings-grid { grid-template-columns: minmax(0,1fr); }
  .settings-card { min-height: 205px; }
  .holding-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
  .holding-dialog .editor-panel { padding: 24px 19px; }
  .holding-dialog .field-row, .holding-dialog .field-row:first-child { grid-template-columns: minmax(0,1fr); }
  .holding-dialog .field-company { grid-column: auto; }
}
