/* Studio: generous white space, neutral surfaces, orange used with intent. */
:root {
  --bg: #fff; --surface: #fff; --surface-2: #f7f7f8; --surface-3: #eeeef0;
  --ink: #171719; --ink-2: #505057; --muted: #707078; --line: #e7e7e9; --line-strong: #d3d3d8;
  --accent: #ee4b1b; --accent-ink: #b9360e; --accent-soft: #fff0e9;
  --buy: #eb541f; --buy-ink: #ad350e; --buy-soft: #fff0e9;
  --hold: #89909b; --hold-ink: #555c68; --hold-soft: #eff1f4;
  --avoid: #b04457; --avoid-ink: #97374a; --avoid-soft: #f8eaf0;
  --up: #137a3e; --down: #c0392b;
  --s1: #ef5825; --s2: #525d71; --s3: #a78a5d;
  --h1: #fff0e7; --h1-t: #934323; --h2: #ffcaa6; --h2-t: #673014;
  --h3: #d66a35; --h3-t: #fff; --h4: #82381e; --h4-t: #fff;
  --shadow: none; --r: 6px; --gap: 32px; --bar-text: #fff;
  --focus-bg: #1c1c1f; --focus-border: transparent;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141416; --surface: #1b1b1e; --surface-2: #222225; --surface-3: #2b2b30;
    --ink: #f3f3f4; --ink-2: #c1c1c8; --muted: #a0a0aa; --line: #323238; --line-strong: #4a4a53;
    --accent: #ff7647; --accent-ink: #ff966f; --accent-soft: #38271f;
    --buy: #ff8959; --buy-ink: #ffac86; --buy-soft: #3d2b22;
    --hold: #9aa6bb; --hold-ink: #bec9dd; --hold-soft: #2a303a;
    --avoid: #d68197; --avoid-ink: #edabc0; --avoid-soft: #3a2831;
    --up: #5ccb85; --down: #f28a7e; --s1: #ff8959; --s2: #aab6ce; --s3: #d1b788;
    --h1: #422b21; --h1-t: #ffd2b9; --h2: #7c4228; --h2-t: #fff0e5;
    --h3: #c36b3b; --h3-t: #fff; --h4: #ffc095; --h4-t: #48250f;
    --bar-text: #161619;
    --focus-bg: #26262c; --focus-border: #46464f;
  }
}
:root[data-theme="dark"] {
  --bg: #141416; --surface: #1b1b1e; --surface-2: #222225; --surface-3: #2b2b30;
  --ink: #f3f3f4; --ink-2: #c1c1c8; --muted: #a0a0aa; --line: #323238; --line-strong: #4a4a53;
  --accent: #ff7647; --accent-ink: #ff966f; --accent-soft: #38271f;
  --buy: #ff8959; --buy-ink: #ffac86; --buy-soft: #3d2b22;
  --hold: #9aa6bb; --hold-ink: #bec9dd; --hold-soft: #2a303a;
  --avoid: #d68197; --avoid-ink: #edabc0; --avoid-soft: #3a2831;
  --up: #5ccb85; --down: #f28a7e; --s1: #ff8959; --s2: #aab6ce; --s3: #d1b788;
  --h1: #422b21; --h1-t: #ffd2b9; --h2: #7c4228; --h2-t: #fff0e5;
  --h3: #c36b3b; --h3-t: #fff; --h4: #ffc095; --h4-t: #48250f;
  --bar-text: #161619;
  --focus-bg: #26262c; --focus-border: #46464f;
}
body { font-size: 14px; line-height: 1.6; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, input, select { touch-action: manipulation; }
.wrap, .topbar-in { max-width: 1440px; padding-inline: 64px; }
main.wrap { padding-block: 40px 88px; }
.stack, .stack > * { min-width: 0; }
.topbar { background: var(--bg); backdrop-filter: none; }
.topbar-in { height: 84px; gap: 60px; }
.brand b { font-size: 20px; font-weight: 750; letter-spacing: -.7px; line-height: 1.15; }
.brand .brand-sub { display: block; padding: 0; border: 0; font: 500 8px/1.4 var(--f-body); letter-spacing: 1.8px; margin-top: 6px; }
.nav { align-self: stretch; gap: 30px; }
.nav a { display: flex; align-items: center; padding: 0 2px; border-radius: 0; font-size: 13px; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { background: none; color: var(--ink); border-bottom-color: var(--accent); }
.nav a:hover { background: none; color: var(--accent-ink); }
.search-btn { min-width: 192px; height: 38px; background: transparent; border-radius: 4px; font-size: 12px; padding: 8px 10px; }
.icon-btn { border-radius: 4px; background: transparent; width: 38px; height: 38px; }
.eyebrow, .section-kicker { font: 600 10px/1.5 var(--f-body); letter-spacing: .11em; color: var(--muted); }
.section-kicker { margin-bottom: 9px; }
.page-title { font: 700 clamp(32px, 3.5vw, 46px)/1.14 var(--f-body); letter-spacing: -.045em; }
.card { padding: 28px 30px; }
.card-head { margin-bottom: 24px; gap: 14px; }
.card-head h2 { font-size: 20px; font-weight: 650; letter-spacing: -.6px; }
.card-head p { font-size: 12px; line-height: 1.7; margin-top: 6px; }
.btn { border-radius: 4px; height: 42px; font-size: 12px; gap: 14px; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); padding: 0 18px; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.chip { font-size: 11px; border-radius: 4px; padding: 6px 8px; font-weight: 550; }
.chip::before { width: 5px; height: 5px; }
.tag { border-radius: 3px; font-size: 11px; }
.seg, .seg button, .field, .toggle, .pick { border-radius: 4px; }
.seg button { font-size: 12px; }
.tk { font-size: 13px; letter-spacing: .01em; font-weight: 650; }
.company-logo { width: 38px; height: 38px; flex: 0 0 38px; display: inline-grid; place-items: center; position: relative; border: 1px solid #e7e7ea; background: #fff; border-radius: 8px; overflow: hidden; vertical-align: middle; }
.company-logo img { position: absolute; width: 25px; height: 25px; object-fit: contain; background: #fff; }
.logo-fallback { color: #50505a; font: 500 10px var(--f-mono); }
.logo-xs { width: 27px; height: 27px; flex-basis: 27px; border-radius: 5px; }
.logo-xs img { width: 18px; height: 18px; }
.logo-lg { width: 66px; height: 66px; flex-basis: 66px; border-radius: 12px; }
.logo-lg img { width: 44px; height: 44px; }
.company-identity, .ticker-with-logo, .palette-company { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.identity-copy { display: grid; gap: 3px; min-width: 0; }
.identity-name { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.ticker-with-logo { gap: 8px; text-decoration: none; color: var(--ink); }
.company-link { color: inherit; text-decoration: none; }
.company-link:hover .tk { color: var(--accent-ink); text-decoration: underline; }
.chart .grid line { stroke-dasharray: 2 4; }
.chart text, .chart .lbl, .chart .axis-title { font-size: 10px; }
.chart .lbl { font-weight: 550; }
.chart .lbl-strong { font-size: 11px; }
.legend { font-size: 11px; gap: 14px; }
.legend i { width: 6px; height: 6px; }

/* Overview */
.overview-page { gap: 64px; }
.edition-line { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 32px; }
.edition-line .eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
.edition-date { font: 10px var(--f-mono); color: var(--muted); white-space: nowrap; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 64px; align-items: stretch; }
.studio-main { min-width: 0; }
.studio-main h1 { font: 750 clamp(50px, 5vw, 68px)/1.02 var(--f-body); letter-spacing: -.055em; }
.orange-dot { color: var(--accent); }
.intro-copy { max-width: 510px; color: var(--ink-2); margin-top: 20px; font-size: 14px; line-height: 1.8; }
.hero-stats-wrap { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.hero-stats { display: grid; grid-template-columns: repeat(5, 1fr); }
.hero-stat { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border-left: 1px solid var(--line); }
.hero-stat:first-child { border-left: 0; }
.hs-label { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.hs-share { font-size: 11px; color: var(--muted); }
.hero-stat.rated i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.hero-stat.buy { --k: var(--buy); } .hero-stat.hold { --k: var(--hold); } .hero-stat.avoid { --k: var(--avoid); }
.hs-bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.hs-bar span { display: block; height: 100%; background: var(--k); }
.hs-scale { position: relative; display: flex; height: 4px; gap: 2px; margin-top: 6px; border-radius: 2px; }
.hs-scale i { display: block; height: 100%; opacity: .55; }
.hs-scale .avoid { background: var(--avoid); } .hs-scale .hold { background: var(--hold); } .hs-scale .buy { background: var(--buy); }
.hs-scale b { position: absolute; top: -4px; width: 3px; height: 12px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.hero-stat strong { font-size: 29px; font-weight: 550; letter-spacing: -.055em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 11px; color: var(--muted); }
.hero-stat .hs-share { margin-top: 2px; font-family: var(--f-mono); font-size: 10.5px; }
.stat-buy strong { color: var(--accent-ink); }
.signal-landscape { margin-top: 28px; }
.signal-landscape .card-head { align-items: center; margin-bottom: 14px; }
.signal-landscape .card-head h2 { font-size: 17px; letter-spacing: -.45px; }
.signal-landscape .card-head p { font-size: 11px; margin-top: 5px; }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.map-foot a { text-decoration: none; }
.map-foot a:hover { text-decoration: underline; }
.filing-focus { border-radius: 6px; background: var(--focus-bg); border: 1px solid var(--focus-border); color: #f5f5f7; padding: 30px; display: flex; flex-direction: column; min-width: 0; }
.focus-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.focus-top .eyebrow { color: #ff9066; }
.focus-top > span { color: #aaaab3; font: 10px var(--f-mono); }
.focus-company { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; margin-top: 30px; }
.focus-company > span:last-child { display: grid; gap: 3px; }
.focus-company strong { font-size: 14px; font-weight: 550; }
.focus-company small { font: 10px var(--f-mono); color: #aaaab3; }
.focus-company:hover strong { color: #ffa17c; }
.focus-narrative { margin-top: 32px; }
.focus-narrative > .eyebrow, .focus-evidence > .eyebrow { color: #aaaab3; font-size: 9px; letter-spacing: .08em; }
.focus-narrative h2 { font-size: clamp(22px, 2vw, 27px); line-height: 1.33; font-weight: 550; letter-spacing: -.8px; margin-top: 14px; text-wrap: pretty; }
.focus-evidence { border-top: 1px solid #414146; margin-top: 28px; padding-top: 22px; }
.focus-evidence blockquote { margin: 12px 0 0; font-size: 12px; line-height: 1.85; color: #ceced5; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading h2, .market-pulse h2 { font-size: 27px; font-weight: 650; line-height: 1.2; letter-spacing: -.9px; }
.section-heading p:last-child, .market-pulse p:last-child { font-size: 12px; color: var(--muted); margin-top: 11px; }
.section-heading .btn { flex-shrink: 0; }
.coverage-scroll { overflow-x: auto; }
.tbl.coverage-table { min-width: 1000px; }
.coverage-table th { background: var(--surface-2); }
.coverage-table th:first-child > span, .coverage-table td:first-child { padding-left: 16px; }
.coverage-table .coverage-sector { max-width: 185px; white-space: normal; font: 11px/1.6 var(--f-body); color: var(--muted); }
.coverage-table .rank-no { color: var(--muted); font-size: 10px; }
.coverage-table .coverage-filed { color: var(--muted); font-size: 11px; }
.coverage-table .row-open { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--ink); text-decoration: none; }
.coverage-table .row-open:hover { color: var(--accent-ink); background: var(--accent-soft); }
.coverage-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 10px; }
.market-section { border-top: 1px solid var(--line); padding-top: 40px; }
.market-pulse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 30px; align-items: center; }
.market-pulse h2 { font-size: 23px; }
.pulse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pulse-stat { display: grid; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pulse-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pulse-stat strong { display: flex; align-items: center; gap: 8px; font: 500 25px var(--f-mono); letter-spacing: -1px; }
.pulse-head { display: grid; gap: 8px; align-content: center; }
.pulse-head p:not(.section-kicker) { color: var(--muted); font-size: 13px; margin: 0; }
.pulse-trend { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.pulse-trend span { font-size: 10px; color: var(--muted); max-width: 12ch; line-height: 1.4; }
.pulse-ex { display: grid; gap: 4px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); }
.pulse-ex span { font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.pulse-ex a { color: var(--ink); font-family: var(--f-mono); text-decoration: none; }
.pulse-ex a:hover { color: var(--accent-ink); }
.pulse-ex em { font-style: normal; font-family: var(--f-mono); }
.pulse-stat strong i { font-style: normal; font-size: 11px; letter-spacing: 0; }
.risk-explorer { border-block: 1px solid var(--line); }
.risk-explorer summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 25px; list-style: none; }
.risk-explorer summary::-webkit-details-marker { display: none; }
.risk-explorer summary > span:first-child { display: grid; }
.risk-explorer summary strong { font-size: 21px; font-weight: 600; letter-spacing: -.6px; }
.expand-hint { color: var(--accent-ink); font-size: 12px; }
.risk-explorer[open] .expand-hint { font-size: 0; }
.risk-explorer[open] .expand-hint::after { content: "Close patterns −"; font-size: 12px; }
.risk-explorer > .card { border: 0; padding: 5px 0 30px; }

/* Data and research views */
.movers { gap: 28px; }
.movers h3 { font-size: 10px; margin-bottom: 12px; }
.mv { grid-template-columns: 86px minmax(0, 1fr) 60px; gap: 10px; padding: 13px 0; }
.mv .bar { height: 3px; }
.mv .v { font: 11px var(--f-mono); }
.tension li { grid-template-columns: 88px 1fr auto; font-size: 12px; gap: 12px; padding-block: 16px; }
.hm .cell { border-radius: 2px; height: 34px; font: 11px var(--f-mono); }
.hm .hdr { font-size: 10px; }
.hm .row-h { font-size: 11px; }
.hm-legend { font-size: 11px; }
.watch-row { gap: 12px; }
.watch-row > .company-logo { flex-shrink: 0; }
.screener-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-block: 5px 8px; }
.screener-header p:last-child { color: var(--muted); font-size: 14px; margin-top: 16px; }
.screener-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.screener-card { padding-top: 24px; }
.toolbar { gap: 10px; margin-bottom: 22px; }
.toolbar .field, .toolbar .toggle { height: 38px; }
.toolbar .field input, .toolbar .field select { font-size: 12px; }
.toolbar .toggle { font-size: 12px; }
.count { font: 11px var(--f-mono); }
.view-switch { padding-block: 15px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.view-switch .seg { background: transparent; padding: 0; }
.view-switch .seg button { padding: 7px 12px; }
.view-switch .seg button[aria-pressed="true"] { background: var(--surface-3); box-shadow: none; }
.tbl { font-size: 12px !important; }
.tbl td { padding-block: 20px; font: 12px var(--f-mono); }
.tbl td.l, .tbl.cmp td, .tbl.cmp th { font-family: var(--f-body); }
.tbl th { background: var(--surface-2); font-size: 10px; }
.tbl th button, .tbl th > span { padding-block: 14px; }
.tbl .company-identity { gap: 13px; min-width: 164px; }
.tbl .identity-name { max-width: 210px; font-size: 11px; }
.tbl .co { font-family: var(--f-body); }
.scorecell { gap: 12px; }
.sbar { width: 46px; height: 4px; }
.tbl .trend-cell { min-width: 112px; }
.tbl .trend-cell svg { margin-left: auto; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.table-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.table-caption .note { margin: 0; font-size: 10px; }
.star { color: var(--muted); }
.company-title { display: flex; align-items: center; gap: 20px; }
.company-title .eyebrow { font-size: 10px; margin-bottom: 7px; }
.co-id h1 { font: 650 clamp(28px, 3.2vw, 42px)/1.15 var(--f-body); letter-spacing: -.045em; }
.co-id .meta { font-size: 12px; margin-top: 16px; }
.co-px .price { font: 400 28px/1.2 var(--f-mono); letter-spacing: -1px; }
.co-px .small { font-size: 11px; margin-top: 5px; }
.research-brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.brief-main { background: var(--focus-bg); border-right: 1px solid var(--focus-border); color: #f5f5f7; padding: 32px; display: flex; flex-direction: column; }
.brief-main .section-kicker { color: #ff986f; }
.brief-main h2 { font: 600 30px/1.2 var(--f-body); letter-spacing: -1px; }
.brief-rationale { font-size: 14px; line-height: 1.85; margin-top: 20px; color: #d4d4db; }
.brief-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 25px; margin-top: 28px; border-top: 1px solid #414146; }
.brief-metrics div { display: grid; gap: 8px; }
.brief-metrics span { color: #aaaab3; font-size: 10px; }
.brief-metrics strong { font: 400 21px var(--f-mono); letter-spacing: -.6px; }
.brief-meta { display: grid; gap: 6px; margin-top: auto; padding-top: 28px; color: #aaaab3; font-size: 10px; }
.filing-delta { background: var(--surface); padding: 32px; }
.filing-delta .card-head { margin-bottom: 20px; }
.filing-delta h3 { font-weight: 600; font-size: 23px; letter-spacing: -.6px; }
.filing-delta .small { font-size: 11px; }
.delta-tone { font-size: 12px; color: var(--ink-2); }
.delta-tone b { color: var(--ink); font-weight: 550; text-transform: capitalize; }
.delta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block: 22px; }
.delta-item { display: grid; gap: 6px; align-content: start; }
.delta-number { font: 400 32px var(--f-mono); }
.delta-label { font-size: 11px; font-weight: 600; }
.delta-categories { font-size: 11px; color: var(--muted); }
.delta-item.new .delta-number { color: var(--avoid-ink); }
.filing-delta .note, .coverage-note { font-size: 11px; color: var(--muted); line-height: 1.75; }
.coverage-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.bigscore .n { font: 550 54px/1 var(--f-body); letter-spacing: -3px; }
.contrib { height: 23px; border-radius: 2px; }
.contrib span { font-size: 10px; color: var(--bar-text); }
.wbar span { color: var(--bar-text); }
.part { font-size: 12px; }
.part .pb { height: 4px; }
.rationale, .said, .flag { border-radius: 4px; font-size: 13px; }
.flag blockquote { font-size: 12px; line-height: 1.8; }
.flag-cat { font-size: 12px; }
.mom { border-radius: 4px; }
.mom .k { font-size: 10px; }
.mom .v { font: 12px var(--f-mono); }
.stat-row .v { font-size: 12px; }
.formula { border-radius: 4px; }
.pal { border-radius: 6px; }
.pal li { grid-template-columns: 95px 1fr auto; padding-block: 13px; }
.palette-company { gap: 9px; }
.pal .sec { font-size: 11px !important; }
.pal .foot { font-size: 11px; }
.tip { border-radius: 4px; }
.footer-wordmark { display: flex; justify-content: space-between; gap: 24px; font-size: 19px; font-weight: 650; letter-spacing: -.6px; color: var(--ink); margin-bottom: 24px; }
.footer-wordmark span { font-size: 15px; letter-spacing: -.3px; font-weight: 450; color: var(--muted); }
footer.site { padding-block: 36px 44px; font-size: 11px; }
footer.site p { max-width: 115ch; line-height: 1.9; }
.loading-state { display: grid; place-content: center; gap: 16px; min-height: 50vh; text-align: center; }
.loading-state p { font: 500 28px var(--f-body); letter-spacing: -.8px; }
.empty { font-size: 12px; padding-block: 16px; }

@media (max-width: 1240px) {
  .wrap, .topbar-in { padding-inline: 40px; }
  .topbar-in { gap: 36px; }
  .nav { gap: 22px; }
  .search-btn { min-width: 0; }
  .search-btn .lab, .search-btn kbd { display: none; }
  .studio-layout { gap: 36px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .filing-focus { padding: 26px; }
  .movers { grid-template-columns: 1fr; }
  .focus-links { gap: 16px; }
}
@media (max-width: 1020px) {
  .wrap, .topbar-in { padding-inline: 32px; }
  .studio-layout { grid-template-columns: 1fr; gap: 36px; }
  .studio-main h1 { font-size: 62px; }
  .studio-main h1 br { display: none; }
  .studio-main h1 br::after { content: " "; }
  .intro-copy { max-width: 570px; }
  .hero-stats { max-width: none; }
  .filing-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; padding: 32px; }
  .focus-snap { grid-column: 2; margin: 0; }
  .focus-top, .focus-company, .focus-narrative, .focus-evidence, .focus-facts, .focus-links,   .focus-top { grid-column: 1 / -1; }
  .focus-company { grid-column: 1; }
  .focus-narrative { grid-column: 1; grid-row: 3 / 5; }
  .focus-evidence { grid-column: 2; grid-row: 2 / 4; border: 0; padding-top: 8px; }
  .focus-facts { grid-column: 2; }
  .focus-links { grid-column: 1; align-self: end; }
    .movers { grid-template-columns: 1fr 1fr; }
  .research-brief { grid-template-columns: 1fr; }
  .market-pulse { grid-template-columns: repeat(3, 1fr); }
  .market-pulse > div:first-child { grid-column: 1 / -1; }
  .market-pulse { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gap: 24px; }
  .wrap, .topbar-in { padding-inline: 22px; }
  main.wrap { padding-block: 28px 56px; }
  .topbar-in { height: auto; padding-top: 18px; padding-bottom: 0; gap: 18px; }
  .brand b { font-size: 18px; }
  .brand .brand-sub { display: block; font-size: 7px; }
  .nav { width: 100%; order: 3; justify-content: space-between; gap: 20px; }
  .nav a { font-size: 12px; padding: 7px 0 13px; }
  .overview-page { gap: 44px; }
  .edition-line { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 26px; }
  .edition-line .eyebrow { font-size: 8px; letter-spacing: .065em; }
  .edition-date { font-size: 9px; }
  .studio-main h1 { font-size: clamp(46px, 11.5vw, 65px); }
  .studio-main h1 br { display: block; }
  .intro-copy { font-size: 13px; margin-top: 18px; line-height: 1.8; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stat { padding: 12px 14px; border-top: 1px solid var(--line); }
  .hero-stat:nth-child(-n+3) { border-top: 0; }
  .hero-stat:nth-child(4) { border-left: 0; }
  .hs-share { display: none; }
  .hero-stat strong { font-size: 25px; }
  .hero-stat span { font-size: 9px; }
    .signal-landscape { margin-top: 25px; }
  .signal-landscape .card-head { gap: 13px; }
  .map-foot { font-size: 9px; line-height: 1.7; }
  .filing-focus { display: flex; gap: 0; padding: 25px; }
  .focus-company { margin-top: 26px; }
  .focus-narrative { margin-top: 28px; }
  .focus-narrative h2 { font-size: 25px; }
  .focus-evidence { margin-top: 26px; padding-top: 22px; border-top: 1px solid #414146; }
  .focus-facts { padding-top: 26px; }
  .focus-links { padding-top: 28px; align-self: stretch; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 24px; }
  .section-heading h2 { font-size: 26px; max-width: 310px; }
  .section-heading p:last-child { line-height: 1.8; }
  .coverage-scroll { margin-inline: -22px; padding-inline: 22px; }
  .coverage-table th:nth-child(2), .coverage-table td:nth-child(2) { position: sticky; left: -22px; z-index: 1; background: var(--surface); border-right: 1px solid var(--line); }
  .coverage-foot { font-size: 9px; line-height: 1.7; }
  .market-section { padding-top: 30px; }
  .market-pulse { gap: 26px 14px; }
  .pulse-stat { padding: 12px 12px; }
  .pulse-stat strong { font-size: 19px; letter-spacing: -.7px; }
  .pulse-stat span { font-size: 10px; }
  .risk-explorer summary { align-items: flex-start; flex-direction: column; gap: 14px; }
  .card { padding: 24px 20px; }
  .card-head h2 { font-size: 19px; }
  .card-head p { font-size: 11px; }
  .movers { grid-template-columns: 1fr; }
  .tension li { grid-template-columns: 86px 1fr; }
  .tension li > .chip { grid-column: 2; justify-self: start; }
  .tscroll { margin-inline: -20px; padding-inline: 20px; }
  .screener-header { align-items: flex-start; flex-direction: column; }
  .screener-header p:last-child { font-size: 13px; line-height: 1.8; }
  .screener-actions { gap: 8px; }
  .toolbar .field:first-child { width: 100%; }
  .toolbar .field input { width: 100%; }
  .toolbar .count { width: auto; margin-left: auto; }
  .toolbar .field select { max-width: 180px; }
  .toolbar .seg button { padding-inline: 9px; }
  .tbl .identity-name { max-width: 145px; }
  .tbl .company-logo { width: 32px; height: 32px; flex-basis: 32px; }
  .tbl .company-logo img { width: 22px; height: 22px; }
  .tbl .company-identity { gap: 10px; }
  .tbl.rows th:nth-child(2), .tbl.rows td:nth-child(2) { position: sticky; left: -20px; z-index: 1; background: var(--surface); border-right: 1px solid var(--line); }
  .count { font-size: 10px; }
  .view-switch .seg button { padding-inline: 9px; font-size: 11px; }
  .company-title { gap: 15px; }
  .logo-lg { width: 54px; height: 54px; flex-basis: 54px; }
  .logo-lg img { width: 36px; height: 36px; }
  .co-id .meta { gap: 8px 12px; font-size: 10px; }
  .co-head { gap: 24px; }
  .co-px { width: 100%; justify-content: space-between; gap: 14px; }
  .co-px .price { font-size: 24px; }
  .co-actions .btn { font-size: 11px; height: 36px; padding-inline: 10px; }
  .brief-main, .filing-delta { padding: 27px 22px; }
  .brief-rationale { font-size: 13px; }
  .brief-main h2 { font-size: 27px; }
  .brief-metrics strong { font-size: 19px; }
  .delta-grid { gap: 12px; }
  .delta-label { font-size: 10px; }
  .delta-categories { font-size: 10px; overflow-wrap: anywhere; }
  .delta-number { font-size: 28px; }
  .pal li { grid-template-columns: 85px 1fr auto; gap: 8px; padding-inline: 8px; font-size: 12px; }
  .palette-company .company-logo { width: 25px; height: 25px; flex-basis: 25px; }
  .palette-company .company-logo img { width: 18px; height: 18px; }
  .footer-wordmark { align-items: flex-start; flex-direction: column; gap: 10px; }
  .watch-row { align-items: flex-start; }
  .watch-row > .num { margin-left: auto; white-space: nowrap; }
}


/* Stratum brand mark: fixed brand orange in both themes. */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; flex: none; fill: #ff5a1f; stroke: #ff5a1f; stroke-width: 3; stroke-linejoin: round; }
.brand b { letter-spacing: -.6px; }
.footer-wordmark .footer-name { display: inline-flex; align-items: center; gap: 10px; font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: var(--ink); }
.footer-wordmark .brand-mark { width: 22px; height: 22px; }
.loading-mark { width: 40px; height: 40px; display: block; margin-bottom: 12px; }
@media (max-width: 720px) { .brand-mark { width: 22px; height: 22px; } }

/* Cash flow, notes and copy-to-model */
.cash-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cash-grid > div { background: var(--surface); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.cash-grid .k { font-size: 11.5px; color: var(--muted); }
.cash-grid .v { font: 500 20px var(--f-mono); letter-spacing: -.5px; }
.cash-grid .s { font-size: 11.5px; color: var(--ink-2); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.switch input { width: 16px; height: 16px; accent-color: var(--accent); }
.notes-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.notes-row input { width: 120px; }
.notes-text { width: 100%; min-height: 110px; resize: vertical; font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.notes-text:focus { outline: none; border-color: var(--accent); }
.notes-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.notes-io { display: flex; gap: 8px; }
.table-tools { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.copy-wrap { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.copy-status { font-size: 12px; color: var(--muted); }
.copy-fallback { display: block; width: min(560px, 100%); height: 90px; margin-top: 6px; font: 11px var(--f-mono); }
@media (max-width: 1020px) { .cash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Nav: underline sits just under the label instead of on the header's edge. */
.nav { align-self: center; }
.nav a { padding: 7px 2px; }
@media (max-width: 720px) { .nav a { padding: 6px 0 9px; } }

/* Overview intro: as-of date under the copy (replaces the edition line). */
.intro-asof { margin-top: 12px; font: 11px var(--f-mono); color: var(--muted); }

/* Rating changes: score move on a 0-100 track with the band zones. */
.changes { display: grid; }
.change-item { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.change-item:first-child { border-top: 0; padding-top: 4px; }
.change-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.change-chips { display: flex; align-items: center; }
.move-track { position: relative; height: 34px; margin-top: 2px; }
.move-bands { position: absolute; left: 0; right: 0; top: 20px; height: 6px; display: flex; gap: 2px; }
.move-bands span { border-radius: 3px; }
.move-edge { position: absolute; top: 17px; height: 12px; width: 1px; background: var(--line-strong); }
.move-bar { position: absolute; top: 21px; height: 4px; border-radius: 2px; }
.move-bar.up { background: var(--up); } .move-bar.down { background: var(--down); }
.move-dot { position: absolute; top: 17px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--surface); }
.move-dot.from { background: var(--surface); border-color: var(--muted); }
.move-num { position: absolute; top: 0; transform: translateX(-50%); font: 11px var(--f-mono); color: var(--muted); white-space: nowrap; }
.move-num.to { color: var(--ink); font-weight: 500; }
.change-date { font-size: 11.5px; color: var(--muted); }

/* Methodology: qualitative score panels. */
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.q-panel { background: var(--surface); padding: 22px 24px; display: grid; gap: 16px; align-content: start; }
.q-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.q-head h3 { font-size: 15px; }
.q-weight { font: 500 11px var(--f-mono); color: var(--accent-ink); background: var(--accent-soft); padding: 3px 7px; border-radius: 4px; }
.tone-scale { position: relative; height: 58px; margin: 4px 10px 0; }
.tone-track { position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--avoid-soft), var(--hold-soft), var(--buy-soft)); }
.tone-mark { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 3px; }
.tone-mark::before { content: ""; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; border: 2px solid var(--surface); }
.tone-mark.bullish::before { background: var(--buy); } .tone-mark.neutral::before { background: var(--hold); } .tone-mark.bearish::before { background: var(--avoid); }
.tone-mark b { font: 600 13px var(--f-mono); }
.tone-mark small { font-size: 11px; color: var(--muted); }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.q-list b { font: 600 12.5px var(--f-mono); color: var(--ink); margin-right: 4px; }
.q-lead { font-size: 13px; color: var(--ink-2); }
.cost-bars { display: grid; gap: 10px; }
.cost-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.cost-row b { font: 600 12.5px var(--f-mono); color: var(--avoid-ink); text-align: right; }
.cost-bar { height: 6px; background: var(--surface-3); border-radius: 3px; }
.cost-bar i { display: block; height: 100%; border-radius: 3px; background: var(--avoid); }
.q-example { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.q-steps { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 12px; font-size: 13px; color: var(--ink-2); }
.q-steps li { counter-increment: q; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.q-steps li::before { content: counter(q); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--f-mono); color: var(--accent-ink); background: var(--accent-soft); }

/* Methodology: pipeline diagram. */
.pipe { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(180px, 230px); align-items: center; }
.pipe-lanes { display: grid; gap: 22px; }
.pipe-lane { display: grid; gap: 8px; }
.pipe-label { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pipe-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.pipe-node { position: relative; display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); min-width: 0; }
.pipe-node strong { font-size: 13px; font-weight: 600; }
.pipe-node span { font-size: 11.5px; color: var(--muted); }
.pipe-row .pipe-node:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -24px; width: 18px; height: 1.5px; background: var(--line-strong); }
.pipe-row .pipe-node:not(:last-child)::before { content: ""; position: absolute; top: calc(50% - 3.5px); right: -24px; border: 4px solid transparent; border-left: 5px solid var(--line-strong); border-right: 0; transform: translateX(1px); }
.pipe-lane.quant .pipe-node.score { border-color: var(--s1); box-shadow: inset 3px 0 0 var(--s1); }
.pipe-lane.qual .pipe-node.score { border-color: var(--s2); box-shadow: inset 3px 0 0 var(--s2); }
.pipe-merge { align-self: stretch; margin: 44px 0 24px 6px; border: 1.5px solid var(--line-strong); border-left: 0; border-radius: 0 10px 10px 0; position: relative; }
.pipe-merge::after { content: ""; position: absolute; top: 50%; left: 100%; width: 18px; height: 1.5px; background: var(--line-strong); }
.pipe-out { display: grid; gap: 8px; padding-left: 14px; }
.pipe-node.out { background: var(--ink); border-color: var(--ink); gap: 4px; }
.pipe-node.out strong { color: var(--bg); font-size: 14px; }
.pipe-node.out span { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.pipe-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pipe-side { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-strong); max-width: calc(100% - 266px); }
.pipe-lane.price .pipe-node { background: transparent; }
.pipe-lane.price .pipe-node.aside { border-style: dashed; }
@media (max-width: 1020px) {
  .q-grid { grid-template-columns: minmax(0, 1fr); }
  .pipe { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pipe-merge { display: none; }
  .pipe-out { padding-left: 0; }
  .pipe-side { max-width: none; }
}
@media (max-width: 720px) {
  .pipe-row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pipe-row .pipe-node:not(:last-child)::after { top: auto; bottom: -17px; right: auto; left: 22px; width: 1.5px; height: 12px; }
  .pipe-row .pipe-node:not(:last-child)::before { top: auto; bottom: -22px; right: auto; left: 18.5px; border: 4px solid transparent; border-top: 5px solid var(--line-strong); border-bottom: 0; transform: none; }
  .q-panel { padding: 18px 16px; }
}
.pipe-node.out .pipe-chips .chip { font-size: 11.5px; }
.pipe-node.out .pipe-chips .chip.Buy { color: var(--buy-ink); }
.pipe-node.out .pipe-chips .chip.Hold { color: var(--hold-ink); }
.pipe-node.out .pipe-chips .chip.Avoid { color: var(--avoid-ink); }

/* What the rating means, and how much of the filing the qualitative score rests on. */
.rating-basis { margin-top: 10px; font-size: 11px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.screener-header .rating-basis { margin-top: 6px; }
.acov { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--hold); border-radius: 4px; background: var(--surface-2); display: grid; gap: 6px; }
.acov.full { border-left-color: var(--buy); }
.acov.failed { border-left-color: var(--avoid); }
.acov.pending { border-left-color: var(--line); }
.acov-title { font-size: 12.5px; font-weight: 600; }
.acov-facts { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 12px; color: var(--ink-2); }
.acov-sub { font-size: 11px; line-height: 1.6; color: var(--muted); }

/* Filing comparison: the filing's own words, previous against current. */
:root { --ins-bg: #e3f4e9; --ins-ink: #0f5b2e; --del-bg: #fbe7e4; --del-ink: #8e2a1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ins-bg: #1d3a28; --ins-ink: #a9e6be; --del-bg: #3e2220; --del-ink: #f4b0a7; } }
:root[data-theme="dark"] { --ins-bg: #1d3a28; --ins-ink: #a9e6be; --del-bg: #3e2220; --del-ink: #f4b0a7; }
.fd-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 16px 0 20px; font-size: 11px; }
.fd-link:empty { display: none; }
.fd-summary { display: grid; gap: 18px; }
.fd-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: start; }
.fd-pair > div { display: grid; gap: 4px; font-size: 12px; }
.fd-pair .k, .fd-model-grid .k { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fd-pair strong { font-size: 16px; font-weight: 600; }
.fd-arrow { font-size: 22px; color: var(--muted); padding-top: 14px; }
.fd-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.fd-stats > div { display: grid; gap: 2px; }
.fd-stats strong { font: 500 24px var(--f-mono); letter-spacing: -.5px; }
.fd-stats span { font-size: 11px; color: var(--muted); }
.fd-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.fd-toolbar .seg { flex-wrap: wrap; max-width: 100%; }
.fd-toolbar .seg button { white-space: nowrap; }
.fd-list { display: grid; gap: 14px; }
.fd-group { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 4px 18px 18px; }
.fd-group > summary { cursor: pointer; padding: 14px 0 10px; font-weight: 600; font-size: 14px; list-style-position: outside; }
.fd-group > .note { margin: 0 0 12px; }
.fd-sum { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.fd-count { font: 500 11px var(--f-mono); padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.fd-more { margin-top: 14px; }
.fd-item { border-top: 1px solid var(--line); padding: 16px 0 4px; display: grid; gap: 10px; }
.fd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-kind, .fd-topic { font-size: 10px; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.fd-kind.added { background: var(--ins-bg); color: var(--ins-ink); border-color: transparent; }
.fd-kind.removed { background: var(--del-bg); color: var(--del-ink); border-color: transparent; }
.fd-kind.revised { background: var(--surface-2); }
.fd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fd-cols.single { grid-template-columns: minmax(0, 1fr); }
.fd-col { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fd-col-head { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.fd-col-head a { text-transform: none; letter-spacing: 0; white-space: nowrap; }
.fd-col p { font-size: 13px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.fd-col.empty p { color: var(--muted); font-style: italic; }
.fd-col ins { background: var(--ins-bg); color: var(--ins-ink); text-decoration: none; border-radius: 2px; padding: 0 2px; }
.fd-col del { background: var(--del-bg); color: var(--del-ink); border-radius: 2px; padding: 0 2px; }
.fd-model-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fd-model-grid > div { display: grid; gap: 8px; align-content: start; padding: 14px; background: var(--surface-2); border-radius: 4px; font-size: 12px; }
.fd-cats { color: var(--ink-2); line-height: 1.6; }
@media (max-width: 720px) {
  .fd-pair { grid-template-columns: 1fr; }
  .fd-arrow { display: none; }
  .fd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fd-cols, .fd-model-grid { grid-template-columns: 1fr; }
  .fd-group { padding-inline: 14px; }
}

/* Red-flag accuracy on the methodology page */
.acc-rows { display: grid; gap: 14px; }
.acc-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 190px; gap: 16px; align-items: center; }
.acc-name { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13px; line-height: 1.4; }
.acc-bar { display: flex; height: 12px; border-radius: 3px; overflow: hidden; background: var(--surface-3, var(--surface-2)); }
.acc-bar .ok, .acc-key .ok::before { background: var(--up); }
.acc-bar .amb, .acc-key .amb::before { background: var(--hold); }
.acc-bar .bad, .acc-key .bad::before { background: var(--down); }
.acc-num { display: grid; font-size: 11px; color: var(--muted); }
.acc-num strong { font: 500 20px var(--f-mono); color: var(--ink); }
.acc-key { display: flex; gap: 16px; margin-top: 14px; font-size: 11px; color: var(--muted); }
.acc-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
@media (max-width: 720px) { .acc-row { grid-template-columns: 1fr; gap: 6px; } }
.acc-found { margin-top: 4px; color: var(--ink-2); font-size: 11px; line-height: 1.5; }

/* Management commitments */
.cm-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-list { display: grid; gap: 0; }
.cm-item { border-top: 1px solid var(--line); padding: 16px 0 6px; display: grid; gap: 10px; }
.cm-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cm-status, .cm-kind { font-size: 10px; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.cm-status.revised { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.cm-status.new { background: var(--ins-bg, #e3f4e9); color: var(--ins-ink, #0f5b2e); border-color: transparent; }
.cm-status.unchanged, .cm-status.not_repeated { background: var(--surface-2); }
.cm-stmt { display: grid; gap: 4px; padding-left: 12px; border-left: 2px solid var(--line); }
.cm-stmt.revised { border-left-color: var(--accent); }
.cm-when { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cm-when a { text-transform: none; letter-spacing: 0; white-space: nowrap; margin-left: auto; }
.cm-tag { color: var(--ink-2); }
.cm-stmt p { font-size: 13px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.cm-stmt ins { background: var(--ins-bg); color: var(--ins-ink); text-decoration: none; border-radius: 2px; padding: 0 2px; }
.cm-stmt del { background: var(--del-bg); color: var(--del-ink); border-radius: 2px; padding: 0 2px; }
.cm-note { font-size: 11px; color: var(--muted); }

/* Watchlist */
.nav-badge { display: inline-block; margin-left: 6px; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 10px/16px var(--f-body); text-align: center; vertical-align: 1px; }
.wl-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.wl-count { font-size: 13px; color: var(--ink-2); }
.wl-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wl-actions select { font: 13px var(--f-body); padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); }
.wl-card { display: grid; gap: 14px; }
.wl-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.wl-id { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 15px; }
.wl-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12px; }
.wl-thesis, .wl-tracking, .wl-target { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.wl-thesis.risk { background: var(--del-bg, #fbe7e4); color: var(--del-ink, #8e2a1f); border-color: transparent; font-weight: 600; }
.wl-target.hit { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.wl-events { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.wl-events li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.wl-events li.important .wl-text { color: var(--ink); font-weight: 500; }
.wl-kind { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wl-kind.rating, .wl-kind.flags, .wl-kind.commitment { color: var(--accent-ink); font-weight: 600; }
.wl-text { color: var(--ink-2); overflow-wrap: anywhere; }
.wl-open { font-size: 12px; white-space: nowrap; }
.wl-none { font-size: 13px; color: var(--muted); }
.wl-note { font-size: 12px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; line-height: 1.6; }
.cm-track { margin-left: auto; font-size: 11px; padding: 3px 10px; }
.cm-track[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
@media (max-width: 720px) { .wl-events li { grid-template-columns: 1fr; gap: 2px; } }

/* Themed dropdown (replaces the browser's select) */
.dd { position: relative; display: inline-block; min-width: 190px; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; font: 13px var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.dd-btn:hover:not(:disabled) { border-color: var(--ink-2); }
.dd-btn:focus-visible, .dd-btn[aria-expanded="true"] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dd-btn:disabled { opacity: .55; cursor: not-allowed; }
.dd.placeholder .dd-text { color: var(--muted); }
.dd-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-chev { flex: none; color: var(--muted); transition: transform .15s; }
.dd-btn[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.dd-list { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(360px, 92vw); max-height: 288px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.dd.up .dd-list { top: auto; bottom: calc(100% + 6px); }
.dd-opt { padding: 8px 10px; border-radius: 5px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.dd-opt.active { background: var(--surface-3); color: var(--ink); }
.dd-opt[aria-selected="true"] { color: var(--accent-ink); font-weight: 600; }
.dd-opt[aria-selected="true"]::after { content: "✓"; float: right; margin-left: 18px; }
:root[data-theme="dark"] .dd-list { box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }

/* Collapsible sections: title on the left, the +/- toggle at the right edge */
details.more > summary, .fd-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
details.more > summary::-webkit-details-marker, .fd-group > summary::-webkit-details-marker { display: none; }
details.more > summary::after, .fd-group > summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font: 400 16px/1 var(--f-mono); color: var(--ink-2); }
details.more[open] > summary::after, .fd-group[open] > summary::after { content: "−"; }
details.more > summary:hover::after, .fd-group > summary:hover::after { border-color: var(--accent); color: var(--accent-ink); }
.field .dd { min-width: 180px; }
.field .dd-btn { border: 0; background: transparent; box-shadow: none; height: 100%; padding: 0 2px; }
.field .dd-btn:focus-visible, .field .dd-btn[aria-expanded="true"] { box-shadow: none; }
.field:focus-within { border-color: var(--accent); }
.field .dd-list { left: -12px; min-width: calc(100% + 24px); }

/* Fill: company brief drivers, price range, overview relative strength, watch tiles */
.brief-drivers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #414146; }
.drv { display: grid; gap: 10px; align-content: start; }
.drv-title { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #aaaab3; }
.drv.good .drv-title { color: #8fd9a8; } .drv.weak .drv-title { color: #f0a99f; }
.drv-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 26px; gap: 10px; align-items: center; font-size: 12px; color: #d4d4db; }
.drv-row b { font: 400 12px var(--f-mono); text-align: right; color: #f5f5f7; }
.drv-bar { height: 4px; border-radius: 2px; background: #3a3a40; overflow: hidden; }
.drv-bar i { display: block; height: 100%; background: #ff8959; }
.drv.weak .drv-bar i { background: #8a8a94; }
.range-block { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.range-track { position: relative; height: 6px; border-radius: 3px; background: var(--surface-3); }
.range-fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: linear-gradient(90deg, var(--surface-3), var(--accent-soft)); }
.range-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.range-ends { display: flex; justify-content: space-between; font: 11px var(--f-mono); color: var(--muted); }
.range-block .mom .s { display: block; font-size: 10px; margin-top: 2px; }
.rs { display: grid; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.rs-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.rs-head h3 { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rs-head .muted { font-size: 11px; }
.rs-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 64px auto; gap: 12px; align-items: center; font-size: 12px; }
.rs-track { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); }
.rs-track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.rs-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.rs-bar.up { background: var(--up); } .rs-bar.down { background: var(--down); }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; }
.watch-tile { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.watch-tile .li { flex: 1; border-bottom: 0; }
.changes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.changes .change-item:nth-child(2) { border-top: 0; padding-top: 4px; }
@media (max-width: 860px) { .changes { grid-template-columns: 1fr; } .changes .change-item:nth-child(2) { border-top: 1px solid var(--line); padding-top: 18px; } .brief-drivers { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rs-row { grid-template-columns: 70px minmax(0, 1fr) 56px; } .rs-row .chip { display: none; } }
.breadth { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.breadth .up { background: var(--up); } .breadth .down { background: var(--down); opacity: .75; }

.fresh-note { margin-bottom: 14px; padding: 12px 16px; border: 1px solid var(--hold); border-left-width: 4px; border-radius: var(--r); background: var(--hold-soft); color: var(--ink); font-size: 13px; line-height: 1.6; }
.fresh-note strong { font-weight: 650; }
.change-cause { margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.change-cause.reanalysis { color: var(--ink-2); }
.change-cause.reanalysis::before { content: "↻ "; }
.acc-caveat { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--hold); background: var(--hold-soft); border-radius: 0 var(--r) var(--r) 0; font-size: 13px; line-height: 1.6; max-width: 80ch; }

/* Filing focus: stats, meta and actions */
.focus-snap { display: grid; grid-template-columns: .85fr 1fr 1.25fr; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #414146; }
.snap-tile { display: grid; gap: 6px; align-content: start; padding: 14px 14px 13px; border: 1px solid #3a3a42; border-radius: 8px; background: rgba(255, 255, 255, .035); min-width: 0; }
.snap-tile > span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #aaaab3; }
.snap-tile strong { font: 500 22px var(--f-mono); letter-spacing: -.6px; line-height: 1.15; }
.snap-tile small { font: 10px/1.45 var(--f-mono); color: #aaaab3; }
.snap-tile strong.up, .snap-tile small.up { color: #6fd28f; } .snap-tile strong.down, .snap-tile small.down { color: #ff8a80; }
.focus-facts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.meta-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid #3a3a42; font-size: 11px; color: #d8d8de; }
.meta-pill i { width: 6px; height: 6px; border-radius: 50%; background: #6c6c76; }
.meta-pill.tone-bullish i { background: #6fd28f; } .meta-pill.tone-bearish i { background: #ff8a80; } .meta-pill.tone-neutral i { background: #aab6ce; }
.focus-links { margin-top: auto; padding-top: 26px; display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.focus-links > a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-decoration: none; border-radius: 6px; }
.focus-links .focus-cta { color: #1c1c1f; background: #ff8959; padding: 11px 16px; font-weight: 650; justify-content: space-between; gap: 14px; }
.focus-links .focus-cta:hover { background: #ffa17c; }
.focus-links .focus-ghost { color: #f5f5f7; padding: 11px 14px; border: 1px solid #4a4a52; }
.focus-links .focus-ghost:hover { border-color: #ff9066; color: #ffb59a; }
.focus-disclosure { display: flex; gap: 8px; align-items: flex-start; color: #aaaab3; font-size: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #333339; line-height: 1.6; }
.focus-disclosure::before { content: "i"; flex: none; width: 14px; height: 14px; margin-top: 1px; display: grid; place-items: center; border: 1px solid #6c6c76; border-radius: 50%; font: italic 9px/1 Georgia, serif; color: #aaaab3; }
.filing-focus { --up: #6fd28f; --down: #ff8a80; }
.snap-tile svg { max-width: 100%; height: auto; }
@media (max-width: 560px) {
  .focus-snap { grid-template-columns: 1fr 1fr; }
  .focus-snap .snap-tile:last-child { grid-column: 1 / -1; }
  .snap-tile strong { font-size: 20px; }
}

.price-card { display: flex; flex-direction: column; }
.price-card > .note { margin-top: auto; padding-top: 16px; }
.dc-block { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dc-bars { display: flex; align-items: stretch; gap: 3px; height: 56px; background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.dc-bar { position: relative; flex: 1; min-width: 0; }
.dc-bar i { position: absolute; left: 0; right: 0; border-radius: 2px; }
.dc-bar.up i { bottom: 50%; background: var(--up); }
.dc-bar.down i { top: 50%; background: var(--down); opacity: .85; }

.peer-block { margin-top: 22px; }
.peer-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 64px; gap: 12px; align-items: center; padding: 7px 0; font-size: 12px; }
.peer-track { position: relative; height: 18px; }
.peer-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.peer-track i { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--muted); opacity: .45; }
.peer-track b { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.peer-rank { text-align: right; font: 11px var(--f-mono); color: var(--muted); }
.price-card .dc-block { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.price-card .dc-bars { flex: 1; min-height: 56px; height: auto; }
.fd-basis { border-style: dashed; }
.wl-review { padding: 5px 11px; font-size: 12px; }
.q-panel { display: flex; flex-direction: column; }
.q-panel .q-example { margin-top: auto; padding-top: 14px; }
