/* ---------- Theme tokens ----------
   Two independent choices: a background ("base") and an accent. Chart colours come in
   validated pairs per accent (colour-blind separation and 3:1 contrast checked against
   each surface), with lighter steps for the dark base. */

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* DM Serif Display has one weight (400) and an italic: display headings use 400. */
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shell: 1200px;
}

:root, [data-base="paper"] {
  color-scheme: light;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #5b6880;
  --faint: #8c97ab;
  --line: #e3e8ef;
  --line-strong: #cdd5e0;
  --up: #11845b;
  --down: #c93a3a;
  --chart-volume: #b9c5d7;
  --chart-volume-down: #eebcbb;
  --tooltip-bg: #101828;
  --tooltip-ink: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 10px rgba(16, 24, 40, .04);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .09);
  --shadow-pop: 0 18px 48px rgba(16, 24, 40, .18);
}

[data-base="sand"] {
  color-scheme: light;
  --bg: #f5f0e6;
  --surface: #fffdf8;
  --surface-2: #faf6ee;
  --ink: #1f1b16;
  --ink-2: #4a433a;
  --muted: #6c6457;
  --faint: #9d9484;
  --line: #e8dfcf;
  --line-strong: #d6c9b3;
  --up: #11845b;
  --down: #c13a2f;
  --chart-volume: #d3c6b1;
  --chart-volume-down: #ebbcae;
  --tooltip-bg: #1f1b16;
  --tooltip-ink: #fffdf8;
  --shadow: 0 1px 2px rgba(60, 44, 20, .05), 0 2px 10px rgba(60, 44, 20, .04);
  --shadow-hover: 0 2px 4px rgba(60, 44, 20, .06), 0 12px 32px rgba(60, 44, 20, .1);
  --shadow-pop: 0 18px 48px rgba(60, 44, 20, .2);
}

[data-base="ink"] {
  color-scheme: dark;
  --bg: #0c111a;
  --surface: #151c28;
  --surface-2: #1a2231;
  --ink: #e9eef6;
  --ink-2: #c4cddb;
  --muted: #929eb3;
  --faint: #66728a;
  --line: #253042;
  --line-strong: #34415a;
  --up: #3cc98f;
  --down: #f2797a;
  --chart-volume: #3b4862;
  --chart-volume-down: #6f3c45;
  --tooltip-bg: #e9eef6;
  --tooltip-ink: #101828;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-pop: 0 18px 48px rgba(0, 0, 0, .55);
}

:root, [data-accent="cobalt"] {
  --accent-l: #2f6fe0; --accent-d: #7aa7f7; --accent-strong: #1f4fb8;
  --chart-1-l: #2f6fe0; --chart-2-l: #e5672e; --chart-1-d: #4d8ef0; --chart-2-d: #d9662f;
  --glow-3: #19a37f;
}
[data-accent="emerald"] {
  --accent-l: #0d7f5b; --accent-d: #43c597; --accent-strong: #0b6b4d;
  --chart-1-l: #0f8a63; --chart-2-l: #7b5be0; --chart-1-d: #1fa57a; --chart-2-d: #8f74ec;
  --glow-3: #e0a12a;
}
[data-accent="saffron"] {
  --accent-l: #b5590c; --accent-d: #f0a052; --accent-strong: #b4530b;
  --chart-1-l: #d9701a; --chart-2-l: #2f6fe0; --chart-1-d: #d4701f; --chart-2-d: #4d86e8;
  --glow-3: #d6336c;
}
[data-accent="plum"] {
  --accent-l: #7c3fc9; --accent-d: #b691f2; --accent-strong: #6c35b5;
  --chart-1-l: #8a4bd6; --chart-2-l: #b9770e; --chart-1-d: #9d68e6; --chart-2-d: #bb7f14;
  --glow-3: #1f9db0;
}
[data-accent="crimson"] {
  --accent-l: #c23440; --accent-d: #f07a83; --accent-strong: #b42f3a;
  --chart-1-l: #d23f4a; --chart-2-l: #1f86b8; --chart-1-d: #e05561; --chart-2-d: #3a9bd0;
  --glow-3: #e0a12a;
}
[data-accent="teal"] {
  --accent-l: #00798f; --accent-d: #3cc0cf; --accent-strong: #00697c;
  --chart-1-l: #00849c; --chart-2-l: #e0603a; --chart-1-d: #1fa3b0; --chart-2-d: #e2693f;
  --glow-3: #7b5be0;
}

/* Resolve the light or dark step of the accent for the active base. */
:root { --accent: var(--accent-l); --chart-1: var(--chart-1-l); --chart-2: var(--chart-2-l); }
[data-base="ink"] { --accent: var(--accent-d); --chart-1: var(--chart-1-d); --chart-2: var(--chart-2-d); }
:root {
  --accent-soft: color-mix(in oklab, var(--accent) 11%, var(--surface));
  --accent-line: color-mix(in oklab, var(--accent) 35%, var(--line));
  --us: var(--chart-1);
  --in: var(--chart-2);
  --us-soft: color-mix(in oklab, var(--chart-1) 12%, var(--surface));
  --in-soft: color-mix(in oklab, var(--chart-2) 12%, var(--surface));
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--topbar-h, 60px) + 60px); } /* the sticky header and section bar */
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; transition: background-color .25s ease, color .25s ease; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; }
h2 { font-family: var(--display); font-size: 28px; font-weight: 400; letter-spacing: 0; line-height: 1.15; }
h3 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.caption { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */

.primary-button, .ghost-button, .provider-button, .clear-button, .text-button, .icon-button, .avatar-button, .menu-item {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.primary-button svg, .ghost-button svg, .clear-button svg, .icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-button { min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: var(--accent-strong); color: #fff; font-size: 13px; font-weight: 600; }
.primary-button:hover { background: color-mix(in oklab, var(--accent-strong) 86%, #000); }
.ghost-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.ghost-button:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.text-button { padding: 4px 2px; border: 0; background: none; color: var(--accent); font-size: 12.5px; font-weight: 500; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); }
.icon-button:hover, .icon-button[aria-expanded="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.fullscreen-button .icon-collapse, .fullscreen-button[aria-pressed="true"] .icon-expand { display: none; }
.fullscreen-button[aria-pressed="true"] .icon-collapse { display: block; }

/* ---------- Top bar ---------- */

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 max(16px, calc((100vw - var(--shell)) / 2)); border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); background: color-mix(in oklab, var(--surface) 82%, transparent); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-size: 23px; font-weight: 400; letter-spacing: 0; text-decoration: none; }
.brand-icon { position: relative; display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--chart-1), var(--chart-2)); color: #fff; font-family: var(--font); font-size: 11.5px; font-weight: 700; }
.brand-logo { position: absolute; inset: 0; width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.section-nav { position: sticky; top: var(--topbar-h, 60px); z-index: 29; border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); background: color-mix(in oklab, var(--surface) 82%, transparent); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); }
.section-nav-inner { display: flex; align-items: center; gap: 4px; width: min(var(--shell), calc(100vw - 32px)); height: 44px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a { flex: none; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.section-nav a:hover { background: var(--surface-2); color: var(--ink); }
.section-nav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
/* Grouped menus (8 Nov 2026): each is a <details>. The bar scrolls sideways on a narrow screen and would clip a menu inside it, so the
   menu is placed against the pinned bar itself (the scroller is not positioned): under its group on a wide screen, full width on a phone. */
.nav-group { flex: none; }
.nav-group > summary { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; list-style: none; cursor: pointer; user-select: none; transition: background-color .15s ease, color .15s ease; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.nav-group[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.nav-group > summary:hover, .nav-group[open] > summary { background: var(--surface-2); color: var(--ink); }
.nav-group:has(a[aria-current="true"]) > summary { background: var(--accent-soft); color: var(--accent); }
.nav-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-menu { position: absolute; top: calc(100% - 2px); z-index: 40; display: grid; min-width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-pop); }
.section-nav .nav-menu a { padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.section-nav .nav-menu a:hover { background: var(--surface-2); color: var(--ink); }
.section-nav .nav-pricing { margin-left: auto; }
@media (max-width: 640px) { .nav-menu { left: 12px; right: 12px; } .section-nav .nav-menu a { padding: 11px 12px; font-size: 15px; } }
.to-top { display: flex; justify-content: flex-end; margin-top: 14px; }
.to-top a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 500; text-decoration: none; }
.to-top a:hover { background: var(--surface-2); color: var(--accent); }
.topbar-note { margin: 0; color: var(--ink-2); font-size: 14px; font-weight: 500; }
/* The home page's header text is 15% larger; every other page keeps the sizes above and below. */
.is-home .topbar .brand { font-size: calc(23px * 1.15); }
.is-home .topbar .topbar-note { font-size: calc(14px * 1.15); }
.is-home .topbar .contact-button, .is-home .topbar #auth-open, .is-home .topbar .theme-button { font-size: calc(13px * 1.15); }
.is-home .topbar .avatar-button { font-size: calc(14px * 1.15); }
.topbar-divider { padding: 0 6px; color: var(--faint); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.popover-anchor { position: relative; }
.theme-button { width: auto; gap: 8px; padding: 0 12px 0 10px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.theme-dots { display: inline-flex; }
.theme-dots i { width: 12px; height: 12px; margin-left: -4px; border: 2px solid var(--surface); border-radius: 50%; background: var(--chart-1); }
.theme-dots i:first-child { margin-left: 0; }
.theme-dots i:nth-child(2) { background: var(--chart-2); }
.theme-dots i:nth-child(3) { background: var(--glow-3); }
.auth-controls { display: flex; align-items: center; gap: 8px; }
.avatar-button { gap: 8px; height: 34px; padding: 0 12px 0 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.avatar-button:hover, .avatar-button[aria-expanded="true"] { border-color: var(--accent-line); }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: 11px; font-weight: 700; }
.avatar-name { max-width: 140px; overflow: hidden; color: var(--ink-2); font-size: 13px; font-weight: 500; text-overflow: ellipsis; }

/* Popovers (theme panel, account menu) */
.popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-pop); animation: pop-in .14s ease-out both; }
.popover-title { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.theme-panel { width: 320px; }
.base-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.base-options button, .accent-options button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); cursor: pointer; font-size: 12px; font-weight: 500; transition: border-color .15s ease, background-color .15s ease; }
.base-options button:hover, .accent-options button:hover { border-color: var(--line-strong); background: var(--surface-2); }
.base-options button[aria-checked="true"], .accent-options button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.base-swatch { width: 100%; height: 26px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 6px; }
.base-swatch[data-swatch="paper"] { background: linear-gradient(135deg, #ffffff 55%, #e9edf3 55%); }
.base-swatch[data-swatch="sand"] { background: linear-gradient(135deg, #fffdf8 55%, #eee5d4 55%); }
.base-swatch[data-swatch="ink"] { background: linear-gradient(135deg, #1a2231 55%, #0c111a 55%); }
.base-swatch[data-swatch="auto"] { background: linear-gradient(135deg, #ffffff 50%, #151c28 50%); }
.accent-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.accent-swatch { display: flex; width: 34px; height: 18px; overflow: hidden; border-radius: 999px; }
.accent-swatch::before, .accent-swatch::after { content: ""; flex: 1; }
[data-accent-swatch="cobalt"]::before { background: #2f6fe0; } [data-accent-swatch="cobalt"]::after { background: #e5672e; }
[data-accent-swatch="emerald"]::before { background: #0f8a63; } [data-accent-swatch="emerald"]::after { background: #7b5be0; }
[data-accent-swatch="saffron"]::before { background: #d9701a; } [data-accent-swatch="saffron"]::after { background: #2f6fe0; }
[data-accent-swatch="plum"]::before { background: #8a4bd6; } [data-accent-swatch="plum"]::after { background: #b9770e; }
[data-accent-swatch="crimson"]::before { background: #d23f4a; } [data-accent-swatch="crimson"]::after { background: #1f86b8; }
[data-accent-swatch="teal"]::before { background: #00849c; } [data-accent-swatch="teal"]::after { background: #e0603a; }
.theme-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.account-menu { width: 240px; padding: 8px; }
.account-email { margin: 4px 8px 8px; overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.menu-item { justify-content: flex-start; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; font-size: 13px; }
.menu-item:hover { background: var(--surface-2); }
a.menu-item { color: inherit; text-decoration: none; }
.menu-item-accent { color: var(--accent); font-weight: 600; }
.account-plan { margin: 0 8px 8px; color: var(--ink); font-size: 12.5px; font-weight: 600; }

/* ---------- Dialogs ---------- */

.dialog { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); }
.dialog::backdrop { background: rgba(10, 16, 28, .5); backdrop-filter: blur(2px); }
.dialog[open] { animation: rise-in .2s ease-out both; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-actions { display: flex; gap: 8px; }
.dialog-close { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.dialog-close:hover { background: var(--accent-soft); color: var(--accent); }
.auth-dialog { width: min(420px, calc(100vw - 32px)); }
.auth-dialog h2 { font-size: 27px; }
.auth-mode { margin-bottom: 14px; }
.auth-signup-note { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.auth-options { display: grid; gap: 10px; }
.provider-button { width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; }
.provider-button svg { width: 18px; height: 18px; }
.provider-button:hover:not(:disabled) { border-color: var(--accent-line); background: var(--surface-2); }
.provider-button:disabled { opacity: .55; cursor: not-allowed; }
.apple-button { border-color: #000; background: #000; color: #fff; }
.apple-button:hover:not(:disabled) { border-color: #000; background: #222; }
[data-base="ink"] .apple-button { border-color: #fff; background: #fff; color: #000; }
.google-signin:not([hidden]) { display: flex; justify-content: center; min-height: 44px; }
.auth-message { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }
.auth-message.is-error { color: var(--down); }
.billing-interval { margin-bottom: 14px; }
.billing-option { justify-content: space-between; }
.billing-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.auth-fineprint { margin: 4px 0 0; color: var(--faint); font-size: 11.5px; }
.chart-dialog { width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 24px); }
.transcript-dialog { width: min(820px, calc(100vw - 32px)); max-height: calc(100dvh - 24px); }
.transcript-body { max-height: 65dvh; overflow: auto; padding-right: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.table-toggle { margin-top: 12px; }
.table-toggle summary { color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 500; }
/* Explanations for the numbered flags on the share-count chart. */
.chart-events { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.chart-events h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.chart-events ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chart-event { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.chart-event-marker { display: inline-grid; place-items: center; min-width: 22px; height: 18px; border-radius: 9px; background: var(--ink); color: var(--surface); font-size: 11px; font-weight: 700; }
.chart-event-body p { margin: 0; }
.chart-event-title { color: var(--ink); font-size: 13px; font-weight: 600; }
.chart-event-detail { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.chart-event-source { color: var(--muted); font-size: 12px; margin-top: 2px; }
.chart-event-source a { color: var(--accent); }

/* ---------- Hero and search ---------- */

/* Clip sideways only: the search suggestions must be able to drop down over the content below,
   which matters most on company pages, where the hero is a slim search bar. */
.hero { position: relative; z-index: 20; overflow-x: clip; overflow-y: visible; padding: 64px 0 72px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(48% 70% at 4% 0%, color-mix(in oklab, var(--chart-1) 26%, transparent), transparent 70%),
    radial-gradient(40% 60% at 100% 10%, color-mix(in oklab, var(--chart-2) 22%, transparent), transparent 70%),
    radial-gradient(50% 60% at 60% 120%, color-mix(in oklab, var(--glow-3) 18%, transparent), transparent 70%),
    var(--bg);
  transition: padding .3s ease; }
.hero-inner { width: min(var(--shell), calc(100vw - 32px)); margin: 0 auto; }
.hero-copy { text-align: center; }
h1 { font-family: var(--display); font-size: clamp(44px, 6vw, 70px); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; }
/* background-clip: text only paints inside the element's box, so the padding gives the descenders
   (g, p) and the italic overhang room to show instead of being cut off. */
h1 em { display: block; width: fit-content; padding: 0 .08em .16em 0; margin: 0 auto -.06em; background: linear-gradient(100deg, var(--accent), color-mix(in oklab, var(--accent) 60%, var(--glow-3))); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.lede { max-width: 600px; margin: 18px auto 28px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.search-form { max-width: 620px; margin: 0 auto; text-align: left; }
.search-row { display: flex; align-items: center; gap: 10px; }
.search-combo { position: relative; flex: 1; min-width: 0; }
.search-control { display: flex; align-items: center; height: 56px; padding-left: 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-hover); transition: border-color .15s ease, box-shadow .15s ease; }
.search-control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent), var(--shadow-hover); }
.search-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.search-control input { width: 100%; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; font-size: 15.5px; }
.search-control input::placeholder { color: var(--faint); opacity: .85; }
.search-control input::-webkit-search-cancel-button { display: none; }
#search-button { min-width: 96px; height: 44px; margin: 5px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent-strong); color: #fff; cursor: pointer; font-size: 14px; font-weight: 600; transition: background-color .15s ease; }
#search-button:hover { background: color-mix(in oklab, var(--accent-strong) 86%, #000); }
#search-button:disabled { opacity: .65; cursor: wait; }
.clear-button { height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; animation: fade-in .16s ease-out both; }
.clear-button:hover { background: color-mix(in oklab, var(--surface) 70%, transparent); color: var(--ink); }

/* Suggestions */
.suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: 380px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.suggestions.open { opacity: 1; transform: none; pointer-events: auto; }
.suggestion { display: grid; grid-template-columns: minmax(84px, auto) 1fr auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; cursor: pointer; transition: background-color .12s ease; }
.suggestion[aria-selected="true"], .suggestion:hover { background: var(--accent-soft); }
.suggestion-symbol { color: var(--ink); font-weight: 700; }
.suggestion-name { overflow: hidden; color: var(--ink-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.suggestion mark { padding: 0; background: none; color: var(--accent); font-weight: 700; }
.suggestion-empty { padding: 12px 10px; color: var(--muted); font-size: 13px; }
.exchange-chip, .market-chip, .tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.exchange-chip[data-market="US"], .market-chip[data-market="US"] { background: var(--us-soft); color: color-mix(in oklab, var(--us) 70%, var(--ink)); }
.exchange-chip[data-market="IN"], .market-chip[data-market="IN"] { background: var(--in-soft); color: color-mix(in oklab, var(--in) 70%, var(--ink)); }
.tag { border: 1px solid var(--line); background: transparent; }
.tag:empty, .market-chip:empty { display: none; }

/* ---------- Layout ---------- */

.page-shell { width: min(var(--shell), calc(100vw - 32px)); margin: 0 auto; padding: 8px 0 72px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid-main { grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); margin-top: 16px; }
.grid-feeds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-feeds-two, .grid-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-latest { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
/* A company page shows its own headlines, so the general market headlines step aside. */
.is-company .headlines-section { display: none; }
.call-summary-wait { margin: 2px 0 6px; color: var(--muted); font-size: 13px; }
.call-headline { margin: 2px 0 12px; color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.call-highlights { display: grid; gap: 9px; margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.call-highlights li::marker { color: var(--faint); }
.call-outlook { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.earnings-subhead { margin: 14px 0 4px; color: var(--muted, var(--ink-2)); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.guidance-tag { display: inline-block; margin-right: 2px; padding: 1px 7px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 600; }
.guidance-tag.up { color: var(--up); } .guidance-tag.down { color: var(--down); }
.call-outlook strong { color: var(--ink); }
.earnings-meta { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.earnings-table { width: 100%; margin: 4px 0 14px; border-collapse: collapse; font-size: 13.5px; }
.earnings-table th, .earnings-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.earnings-table thead th { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.earnings-table th:first-child, .earnings-table tbody th { text-align: left; color: var(--ink); font-weight: 500; }
.earnings-value { color: var(--ink); font-weight: 600; white-space: nowrap; }
.earnings-change.up { color: var(--up); }
.earnings-change.down { color: var(--down); }
.earnings-change.flat { color: var(--muted); }
.earnings-next { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: 13px; }
.earnings-next.waiting { border-left: 3px solid var(--down); }
.earnings-bullets { margin: 4px 0 14px; padding-left: 20px; font-size: 14.5px; line-height: 1.5; }
.earnings-bullets li { margin: 5px 0; }
.earnings-bullets li.quoted { color: var(--muted); font-style: italic; }
.earnings-changes { margin: 4px 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.earnings-changes ul { margin: 6px 0 0; padding-left: 18px; }
.changes-table td.changes-source { text-align: left; color: var(--muted); font-size: 12px; min-width: 220px; }
.earnings-flag { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 10.5px; font-weight: 600; text-transform: uppercase; }
@media (max-width: 640px) { .earnings-table { font-size: 12.5px; } .earnings-table th, .earnings-table td { padding: 7px 6px; } }

/* Business segments. Eight categorical hues in a fixed order (validated for colour-vision deficiency on the light and ink surfaces);
   lines that are not businesses (eliminations, corporate) are grey. Status chips carry an icon and a word, never colour alone. */
:root {
  --seg-1: #2a78d6; --seg-2: #eb6834; --seg-3: #1baf7a; --seg-4: #eda100;
  --seg-5: #e87ba4; --seg-6: #008300; --seg-7: #6250d6; --seg-8: #e34948; --seg-other: var(--faint);
}
[data-base="ink"] {
  --seg-1: #3987e5; --seg-2: #d95926; --seg-3: #199e70; --seg-4: #c98500;
  --seg-5: #d55181; --seg-6: #008300; --seg-7: #9085e9; --seg-8: #e66767;
}
.segments-summary { margin: 0 0 14px; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.segments-summary li { margin: 3px 0; }
.segment-tile-status { margin-top: 6px; color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.segment-tile-status.tone-up { color: var(--up); }
.segment-tile-status.tone-down { color: var(--down); }
.segments-status { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 18px; }
.segment-status { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.segment-status-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.segment-name { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 14px; }
.segment-swatch { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.segment-name .segment-swatch { margin-right: 0; }
/* What each segment is (dashboard/segment_notes.py): name on the left, one plain sentence on the right; stacked on a phone */
.segments-explainer { margin-bottom: 16px; padding: 20px 22px; }
.segments-regions { margin-top: 16px; padding: 20px 22px; }
.segments-regions .section-sub { margin: 4px 0 12px; }
.segments-explainer .card-heading h3 { margin: 0; }
.segments-explainer-basis { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.segments-explainer-list { display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); gap: 12px 22px; margin: 16px 0 0; }
.segments-explainer-list dt { color: var(--ink); font-size: 14px; font-weight: 650; }
.segments-explainer-list dd { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.segments-explainer-examples { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.segments-explainer .source-note { margin-top: 16px; }
@media (max-width: 640px) { .segments-explainer-list { grid-template-columns: 1fr; gap: 4px; } .segments-explainer-list dd { margin-bottom: 10px; } }
.segment-chip { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tone-up .segment-chip { color: var(--up); }
.tone-down .segment-chip { color: var(--down); }
.segment-verdict { margin: 8px 0 4px; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.segment-detail { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.segment-flag { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; font-style: italic; }
.segments-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 10px; color: var(--ink-2); font-size: 12.5px; }
.segment-legend-item { display: inline-flex; align-items: center; }
.segments-chart { position: relative; display: flex; align-items: stretch; gap: 6px; height: 240px; margin-bottom: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.segment-column { position: relative; display: flex; flex: 1 1 0; flex-direction: column; justify-content: flex-end; min-width: 0; outline: none; cursor: default; }
.segment-column:hover, .segment-column:focus-visible { background: color-mix(in oklab, var(--line) 45%, transparent); border-radius: 6px 6px 0 0; }
.segment-bars { display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; margin: 0 18%; }
.segment-bar { display: block; flex: none; height: max(calc(var(--size) - 2px), 1px); }
.segment-bars .segment-bar:last-child { border-radius: 4px 4px 0 0; }
.segments-chart.grouped .segment-bars { flex-direction: row; align-items: flex-end; margin: 0 8%; }
.segments-chart.grouped .segment-bar { flex: 1 1 0; height: var(--size); border-radius: 4px 4px 0 0; }
.segment-axis { position: absolute; bottom: -20px; left: 0; right: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-align: center; white-space: nowrap; }
.segment-tip { position: absolute; top: 0; z-index: 5; min-width: 200px; max-width: 280px; padding: 8px 10px; border-radius: 8px; background: var(--tooltip-bg); color: var(--tooltip-ink); box-shadow: var(--shadow-pop); font-size: 12px; transform: translateX(-50%); pointer-events: none; }
.segment-tip strong { display: block; margin-bottom: 4px; font-weight: 600; }
.segment-tip-row { display: flex; align-items: center; gap: 4px; padding: 1px 0; }
.segment-tip-value { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
.segments-table tbody th { white-space: nowrap; }
.segments-table tr.segment-other th, .segments-table tr.segment-other td { color: var(--muted); font-weight: 500; }
.segments-table td.negative { color: var(--down); }
.segment-restated { margin-left: 2px; color: var(--muted); font-size: 9px; font-weight: 700; }
.segment-note-line { display: block; margin-bottom: 3px; }
/* What changed: the level is a word in a badge (filled for High, outlined for Medium, faint for Low), never colour alone. */
.what-changed-card { padding: 20px 24px; }
.what-changed-headline { margin: 0 0 14px; color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.4; }
.what-changed-headline.quiet { color: var(--muted); font-size: 16px; font-weight: 500; }
.what-changed-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.what-changed-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) 190px; gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.change-badge { justify-self: start; padding: 3px 10px; border: 1px solid var(--ink); border-radius: 6px; color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.level-high .change-badge { background: var(--ink); color: var(--surface); }
.level-low .change-badge { border-color: var(--line-strong); color: var(--muted); }
.change-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.change-text { margin: 0; color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.change-detail { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.change-why { margin: 0; color: var(--muted); font-size: 12.5px; }
.change-link { font-weight: 600; }
.change-figure { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.change-value { color: var(--ink); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.change-value.up { color: var(--up); }
.change-value.down { color: var(--down); }
.change-note { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) {
  .what-changed-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .what-changed-item .change-badge { grid-column: 1; }
  .what-changed-item .change-figure { grid-column: 2; grid-row: 1; }
  .what-changed-item .change-body { grid-column: 1 / -1; }
}
/* How it is doing: status in words with an icon; the bar is the company's own range, dot today, tick its median. */
.scorecard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.score-tile { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.score-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.score-title { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; }
.score-status { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.tone-up .score-status { color: var(--up); }
.tone-down .score-status { color: var(--down); }
.score-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.score-value { color: var(--ink); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-text { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.score-bar { position: relative; height: 8px; margin: 6px 6px 0; border-radius: 4px; background: var(--line); }
.score-tick { position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; background: var(--muted); }
.score-dot { position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px; border: 2px solid var(--surface); border-radius: 999px; background: var(--chart-1); }
.score-scale { position: relative; display: flex; justify-content: space-between; margin: 0 6px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.score-median { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.score-link { align-self: flex-start; font-size: 13px; font-weight: 600; }
/* Among its peers: hollow dots the peers, the tick their median, the filled dot the company. */
.score-peers { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.score-peers-title { color: var(--ink-2); font-size: 13px; }
.score-peers-method { color: var(--muted); font-size: 12px; }
.peer-track { position: relative; height: 18px; margin: 0 8px; }
.peer-track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; border-top: 2px solid var(--line); }
.peer-dot { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; box-sizing: border-box; border: 1.5px solid var(--muted); border-radius: 999px; background: var(--surface); }
.peer-dot.own { top: 1px; width: 16px; height: 16px; margin-left: -8px; border: 2px solid var(--surface); background: var(--chart-1); }
span.peer-median { position: absolute; top: 0; width: 2px; height: 18px; margin-left: -1px; background: var(--muted); }
/* All figures: grouped */
.figures-group-title { margin: 22px 0 10px; color: var(--ink); font-size: 18px; font-weight: 700; }
.figures-group-title:first-of-type { margin-top: 4px; }
.figures-group-sub { color: var(--muted); font-size: 13px; font-weight: 500; }
.figures-subgroup-title { margin: 14px 0 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }

/* What matters most */
/* What matters most: the consensus across the top, then the two revenue cards side by side, the two free cash flow cards, and the
   buybacks across the bottom (owner, 7 Nov). A pair with one card hidden gives the other its whole row. */
.highlights-grid { display: flex; flex-direction: column; gap: 16px; }
.highlights-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.highlights-pair:has(> article[hidden]) { grid-template-columns: minmax(0, 1fr); }
.highlights-pair:not(:has(> article:not([hidden]))) { display: none; }
.highlights-theme { display: flex; flex-direction: column; gap: 10px; }
.highlights-theme:not(:has(article:not([hidden]))) { display: none; }
.theme-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-top: 6px; border-top: 1px solid var(--line); }
.theme-title { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.theme-answer { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; }
.theme-answer:empty { display: none; }
.line-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.line-chart .line-axis { stroke: var(--line-strong); stroke-width: 1; }
.line-chart .line-zero { stroke: var(--muted); stroke-width: 1; }
.line-chart .line-label, .line-chart .line-figure { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.line-chart .line-figure { font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.line-chart .line-path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.line-chart .line-pledge { fill: var(--down); }
.line-chart .line-pledge-figure { fill: var(--down); font-size: 10px; font-weight: 700; }
#hl-backing { --backing-profit: color-mix(in oklab, var(--ink-2) 22%, var(--surface)); }
[data-base="ink"] #hl-backing { --backing-profit: color-mix(in oklab, var(--ink-2) 45%, var(--surface)); }
.backing-profit { background: var(--backing-profit); }
.cash-capex-figure.backing-income-figure { color: var(--muted); }
.valuation-rows { display: flex; flex-direction: column; gap: 22px; padding: 6px 0 4px; }
.valuation-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; }
.valuation-name { color: var(--ink); font-size: 14px; font-weight: 700; }
.valuation-name span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.valuation-track { position: relative; height: 8px; border-radius: 4px; background: color-mix(in oklab, var(--chart-1) 18%, var(--surface)); }
.valuation-median { position: absolute; top: -5px; width: 2px; height: 18px; margin-left: -1px; background: var(--ink-2); }
.valuation-dot { position: absolute; top: -4px; width: 16px; height: 16px; margin-left: -8px; border: 2px solid var(--surface); border-radius: 50%; background: var(--chart-1); }
.valuation-ends { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.valuation-median-label { position: absolute; top: 16px; transform: translateX(-50%); color: var(--ink-2); font-size: 11px; white-space: nowrap; }
@media (max-width: 1000px) { .highlights-pair { grid-template-columns: minmax(0, 1fr); } }
.highlight-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; }
.highlight-card h3 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 700; }
.highlight-lead { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.mini-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 12.5px; }
.column-chart { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 18px 0 22px; }
.column-chart::after { content: ""; position: absolute; left: 0; right: 0; top: calc(18px + var(--zero-px)); border-top: 1px solid var(--muted); }
.column { position: relative; display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; }
.column-stack { display: flex; flex-direction: column; }
.column-up { display: flex; flex-direction: column-reverse; gap: 2px; }
.column-down { display: flex; flex-direction: column; gap: 2px; }
.column-part { display: block; width: 100%; min-height: 1px; }
.column-up .column-part:last-child { border-radius: 4px 4px 0 0; }
.column-down .column-part:last-child { border-radius: 0 0 4px 4px; }
.column-total { position: absolute; top: -18px; left: 0; right: 0; color: var(--muted); font-size: 11px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.column-label { position: absolute; bottom: -20px; left: 0; right: 0; color: var(--muted); font-size: 11px; text-align: center; }
/* The cash chart: operating cash flow up, capital spending down, free cash flow as a line with its figure (app-insights.js cashChart). */
#hl-cash { --cash-operating: color-mix(in oklab, var(--chart-1) 24%, var(--surface)); }
[data-base="ink"] #hl-cash { --cash-operating: color-mix(in oklab, var(--chart-1) 42%, var(--surface)); }
#hl-cash-chart { padding-bottom: 24px; }
.cash-operating { background: var(--cash-operating); }
.cash-capex { background: var(--chart-2); }
.cash-capex-figure { margin-top: 2px; color: var(--chart-2); font-size: 10px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cash-dot { position: absolute; left: 50%; z-index: 2; width: 9px; height: 9px; margin: -5px 0 0 -5px; border: 2px solid var(--surface); border-radius: 50%; background: var(--chart-1); }
.cash-fcf-figure { position: absolute; left: 0; right: 0; z-index: 2; margin-top: -21px; color: var(--chart-1); font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 2px var(--surface), 0 0 3px var(--surface), 0 0 4px var(--surface); }
.cash-fcf-figure.is-below { margin-top: 7px; }
.cash-line { position: absolute; top: 18px; left: 0; width: 100%; height: calc(100% - 18px); overflow: visible; pointer-events: none; z-index: 1; }
.cash-fcf-figure { z-index: 3; }
.cash-line polyline { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; }
/* The share count chart (app-insights.js shareChart): buybacks down, new shares up, the net change as a line. */
#hl-buybacks { --share-large: color-mix(in oklab, var(--down) 85%, var(--ink)); --share-net: var(--line-strong); }
#hl-buybacks-chart { padding-bottom: 38px; }
.share-bought { background: var(--chart-1); }
.share-new { background: var(--chart-2); }
.share-large { background: var(--share-large); }
.share-net { background: var(--share-net); }
.share-bought-figure { margin-top: 2px; color: var(--chart-1); font-size: 10px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.share-large-figure { color: var(--share-large); font-weight: 700; }
.share-cause { position: absolute; bottom: -34px; left: 0; right: 0; color: var(--share-large); font-size: 10px; font-weight: 700; text-align: center; white-space: nowrap; }
.share-dot { background: var(--ink-2); }
.share-net-figure { color: var(--ink-2); }
.share-line polyline { stroke: var(--ink-2); }
.share-causes { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.bridge { display: flex; flex-direction: column; gap: 8px; }
.bridge-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) 10em; gap: 10px; align-items: center; font-size: 13.5px; }
.bridge-label { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.bridge-track { position: relative; height: 18px; }
.bridge-track::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1px solid var(--muted); }
.bridge-bar { position: absolute; top: 0; bottom: 0; }
.bridge-bar.add { left: 50%; background: var(--chart-1); border-radius: 0 4px 4px 0; }
.bridge-bar.take { right: 50%; background: var(--seg-other); border-radius: 4px 0 0 4px; }
.bridge-value { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bridge.one-way .bridge-track::before { left: 0; }
.bridge.one-way .bridge-bar.add { left: 0; }
.bridge-value .up { color: var(--up); font-weight: 600; }
.bridge-value .down { color: var(--down); font-weight: 600; }
.heat-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12.5px; }
.heat-table th { color: var(--muted); font-weight: 600; text-align: left; }
.heat-table thead th:not(:first-child) { text-align: center; }
.heat-cell { padding: 7px 4px; border-radius: 4px; background: var(--surface-2); color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.heat-cell.grow { background: color-mix(in oklab, var(--chart-1) var(--heat), var(--surface)); }
.heat-cell.shrink { background: color-mix(in oklab, var(--chart-2) var(--heat), var(--surface)); }
.flow-bar { display: flex; gap: 2px; height: 30px; overflow: hidden; border-radius: 4px; }
.flow-part { display: block; min-width: 2px; }
.returns { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.returns-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.returns-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.returns-value { color: var(--ink); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.returns-note { color: var(--ink-2); font-size: 12.5px; }
@media (max-width: 560px) { .returns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .returns-stat:first-child { grid-column: 1 / -1; } }
.trend-chart { display: block; width: 100%; height: auto; overflow: visible; }
.trend-span { fill: color-mix(in oklab, var(--chart-2) 14%, var(--surface)); }
.trend-mark { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.trend-axis { stroke: var(--line); stroke-width: 1; }
.trend-line { fill: none; stroke: var(--chart-1); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.trend-dot { fill: var(--chart-1); }
.trend-note { fill: var(--ink); font-size: 12.5px; }
.trend-value { fill: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.trend-label { fill: var(--muted); font-size: 11px; }
.flow-legend { display: grid; gap: 6px; color: var(--ink-2); font-size: 13.5px; }
.flow-item { display: flex; align-items: center; gap: 4px; }
.consensus-record { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.record-title { color: var(--muted); }
.record-chip { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); }
@media (max-width: 640px) { .bridge-row { grid-template-columns: minmax(0, 1fr) auto; } .bridge-track { grid-column: 1 / -1; grid-row: 2; } }
.holdings-bars { display: grid; gap: 8px; margin: 4px 0 16px; }
.holdings-bar-row { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; }
.holdings-bar-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.holdings-bar { display: flex; gap: 2px; height: 26px; overflow: hidden; border-radius: 4px; }
.holdings-part { display: flex; align-items: center; justify-content: center; min-width: 2px; flex-grow: 0; flex-shrink: 1; }
.holdings-part-label { color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 0 2px rgba(0, 0, 0, .45); white-space: nowrap; }
.holdings-pledge { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: 13.5px; }
.holders-table td.holder-kind { color: var(--muted); text-align: left; white-space: nowrap; }
.holders-table tbody th { max-width: 360px; }
.holders-table tr.holder-gone th, .holders-table tr.holder-gone td { color: var(--muted); }
@media (max-width: 640px) { .segments-chart { gap: 3px; height: 200px; } .segment-axis { font-size: 9.5px; } .segment-bars { margin: 0 8%; } }
.grid-headlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section { margin-top: 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.heading-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* Exploring a company: the hero becomes a slim search bar and the landing content steps aside. */
.is-exploring .hero { padding: 18px 0; }
.is-exploring .hero-copy { text-align: left; }
.is-exploring h1, .is-exploring .lede, .is-exploring .hero-try, .is-exploring .landing, .is-exploring .fear-greed-section { display: none; }
/* Views (8 Nov 2026): index.html sets data-view from the address, and each section marked data-page shows on its own page alone (the
   calendar on the home page too). The company pages, the screener and the fund pages have no data-view and show none of them. */
html:not([data-view]) [data-page],
html[data-view="home"] [data-page]:not([data-page~="home"]),
html[data-view="markets"] [data-page]:not([data-page~="markets"]),
html[data-view="calendar"] [data-page]:not([data-page~="calendar"]),
html[data-view="fear-greed"] [data-page]:not([data-page~="fear-greed"]),
html[data-view="headlines"] [data-page]:not([data-page~="headlines"]),
html[data-view="journal"] [data-page]:not([data-page~="journal"]) { display: none; }
/* A market page has no hero: its section is the page. */
html[data-view]:not([data-view="home"]) #search-panel { display: none; }
html[data-view]:not([data-view="home"]) .page-shell { padding-top: 28px; }
.is-exploring .search-form { max-width: 760px; margin: 0; }
.is-exploring .search-control { height: 50px; box-shadow: var(--shadow); }
.is-exploring #search-button { height: 40px; }

/* The screener page: the hero is a slim search bar there too. */
.is-screening .hero { padding: 18px 0; }
.is-screening .hero-copy { text-align: left; }
.is-screening h1, .is-screening .lede, .is-screening .hero-try, .is-screening .landing { display: none; }
.is-screening .search-form { max-width: 760px; margin: 0; }

/* The fund holdings page: the same slim hero as the screener. */
.is-funds .hero { padding: 18px 0; }
.is-funds .hero-copy { text-align: left; }
.is-funds h1, .is-funds .lede, .is-funds .hero-try, .is-funds .landing { display: none; }
.is-funds .search-form { max-width: 760px; margin: 0; }
.is-funds .headlines-section { display: none; }
.funds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fund-button { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; }
a.fund-button:hover, a.fund-button:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); }
.fund-button.is-waiting { opacity: 0.6; }
.fund-button-name { font-weight: 600; font-size: 15px; }
.funds-moves[hidden] { display: none; }
.funds-move-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.funds-move-list { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.funds-move-list h4 { margin: 0 0 8px; }
.funds-move-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.funds-move-rows li { display: grid; gap: 1px; }
.investor-table td:first-child a { font-weight: 600; }
.fund-button-detail { font-size: 13px; color: var(--muted); }
.funds-back { margin: 0 0 8px; font-size: 14px; }
.funds-intro { margin-bottom: 22px; padding: 20px 22px; }
.funds-headline { margin: 0 0 4px; font-size: 19px; }
.funds-headline strong { color: var(--accent); font-size: 25px; }
.funds-points { margin: 14px 0 0; padding-left: 20px; font-size: 14px; }
.funds-points li + li { margin-top: 6px; }
.funds-choose { margin: 0 0 10px; font-size: 16px; }
.funds-example { margin: 12px 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.funds-table td, .funds-table th { white-space: nowrap; }
.funds-table td.funds-name, .funds-table th.funds-name { white-space: normal; }

/* ---------- Privacy policy and terms ---------- */

.legal-page { max-width: 760px; padding-top: 40px; padding-bottom: 64px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.legal-page h1 { margin: 0 0 6px; font-family: var(--display); font-size: 42px; color: var(--ink); }
.legal-page h2 { margin: 32px 0 8px; font-size: 25px; color: var(--ink); }
.legal-page h3 { margin: 20px 0 6px; font-size: 15px; color: var(--ink); }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin: 6px 0; }
.legal-page a, footer a { color: var(--accent); }
.legal-updated { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.legal-links { margin-top: 40px; color: var(--muted); font-size: 13.5px; }

/* ---------- Screener ---------- */

.screener-section { padding-top: 28px; }
.screener-section .section-heading { flex-wrap: wrap; }
.screener-saved { display: flex; align-items: end; gap: 8px; }
.screener-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
.screener-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 500; text-decoration: none; }
.preset-chip:hover { border-color: var(--accent-line); color: var(--accent); }
.screener-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.field-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.field-inline { grid-auto-flow: column; align-items: center; gap: 8px; }
.screener-builder { display: grid; gap: 8px; justify-items: start; }
.screener-builder-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.screen-conditions { display: grid; gap: 8px; width: 100%; }
.screen-condition { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.screen-condition select, .screen-condition input, .screen-save-form input, .screener-query textarea {
  height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px;
}
.screen-condition .metric-select { min-width: 220px; }
.screen-condition .op { width: 70px; }
.screen-condition input { width: 130px; }
.screen-condition .unit { color: var(--muted); font-size: 12px; }
.screener-query textarea { width: 100%; height: auto; min-height: 58px; padding: 9px 10px; resize: vertical; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.screener-hint { margin: -8px 0 0; }
.screen-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.screen-metrics button { padding: 3px 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; font: inherit; font-size: 12.5px; text-align: left; }
.screen-metrics button:hover { color: var(--accent); }
.screener-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.screen-save-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.screen-save-form input { width: 220px; }
.screen-message { min-height: 18px; margin: 0; color: var(--muted); font-size: 13px; }
.screen-message.is-error { color: var(--down); }
.screener-results { margin-top: 20px; }
.screen-count { margin: 0; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
#screen-table th { cursor: pointer; user-select: none; }
#screen-table th[aria-sort] { color: var(--accent); }
#screen-table td:first-child { min-width: 220px; }
#screen-table td:first-child a { color: var(--ink); text-decoration: none; }
#screen-table td:first-child a:hover { color: var(--accent); }
#screen-table .screen-symbol { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
#screen-table .text-cell { color: var(--muted); text-align: left; }
#screen-table .remove-column { margin-left: 6px; padding: 0 4px; border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 13px; }
#screen-table .remove-column:hover { color: var(--down); }
@media (max-width: 720px) {
  .screener-card { padding: 16px; }
  .screen-condition .metric-select { min-width: 0; flex: 1 1 100%; }
  .screener-saved, .screener-saved .field, .screener-saved select { width: 100%; }
  .screener-filters .field { flex: 1 1 140px; }
  .screener-filters .field select { min-width: 0; width: 100%; }
  .topbar-actions { gap: 6px; }
}
@media (max-width: 420px) {
  .brand > span:last-child { display: none; } /* the SV mark stays; room for Theme and Sign in */
}

/* ---------- Landing: markets ---------- */

.sources-block { margin-top: 28px; }
.sources-title { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.markets-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.market-card { --tone: var(--us); --tone-soft: var(--us-soft); position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, var(--tone-soft), var(--surface) 55%); box-shadow: var(--shadow); }
.market-card[data-market="IN"] { --tone: var(--in); --tone-soft: var(--in-soft); }
.market-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tone); }
.market-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.market-card-top h3 { font-family: var(--display); font-size: 22px; font-weight: 400; }
.market-card-top p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.market-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--tone, var(--accent)); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.market-mark.small { width: 26px; height: 26px; margin-right: 10px; border-radius: 7px; font-size: 10.5px; vertical-align: middle; }
[data-market="US"] > .card-heading .market-mark { background: var(--us); }
[data-market="IN"] > .card-heading .market-mark { background: var(--in); }
.market-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.market-points li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.market-points li::before { content: ""; position: absolute; top: 6px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px color-mix(in oklab, var(--tone) 18%, transparent); }
.market-points strong { color: var(--ink); font-weight: 600; }

/* ---------- Landing: earnings calendar ---------- */

.calendar-card { padding: 16px 18px 14px; }
.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.calendar-nav { display: flex; align-items: center; gap: 8px; }
.calendar-nav h3 { min-width: 150px; font-family: var(--display); font-size: 23px; font-weight: 400; text-align: center; }
.calendar-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.calendar-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--ink-2); }
.cal-dot[data-status="expected"] { border: 1.5px dashed var(--ink-2); background: transparent; }
.cal-dot[data-status="reported"] { background: var(--line-strong); }
.cal-dot[data-market="US"] { background: var(--us); }
.cal-dot[data-market="IN"] { background: var(--in); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekdays span { padding: 0 6px 6px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.calendar-skeleton { grid-column: 1 / -1; height: 420px; }
.cal-cell { --load: 0; position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 92px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in oklab, var(--accent) calc(var(--load) * 16%), var(--surface)); color: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }
.cal-cell:hover { border-color: var(--accent-line); }
.cal-cell[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-cell.is-outside { opacity: .45; }
.cal-cell.is-today .cal-date { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-strong); color: #fff; }
.cal-cell:disabled { cursor: default; }
.cal-date { font-size: 12px; font-weight: 600; }
.cal-chip { overflow: hidden; padding: 1px 5px; border-radius: 5px; font-size: 10.5px; font-weight: 700; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip[data-market="US"] { --tone: var(--us); }
.cal-chip[data-market="IN"] { --tone: var(--in); }
.cal-chip[data-status="confirmed"] { background: var(--tone); color: #fff; }
.cal-chip[data-status="expected"] { border: 1px dashed var(--tone); background: color-mix(in oklab, var(--tone) 10%, var(--surface)); color: color-mix(in oklab, var(--tone) 75%, var(--ink)); }
.cal-chip[data-status="reported"] { background: var(--surface-2); color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--muted) 50%, transparent); }
.cal-more { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.cal-count { display: none; }
.calendar-day { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.calendar-day h4 { margin: 0 0 8px; font-size: 14px; }
.calendar-day ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.calendar-day li button { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.calendar-day li button:hover { border-color: var(--accent-line); }
.calendar-day .cal-chip { grid-row: 1 / 3; align-self: center; }
.calendar-day .cal-name { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day .cal-status { color: var(--muted); font-size: 11.5px; }
.calendar-empty { padding: 28px 12px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Matches ---------- */

.results-section, .dashboard-section { padding-top: 28px; animation: rise-in .3s ease-out both; }
.matches-list { display: grid; gap: 8px; }
.match-row { display: grid; grid-template-columns: 120px 1fr auto 24px; align-items: center; gap: 16px; width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.match-row:hover { border-color: var(--accent-line); box-shadow: var(--shadow-hover); transform: translateX(2px); }
.match-symbol { color: var(--ink); font-weight: 700; }
.match-name { color: var(--ink-2); font-weight: 500; }
.match-arrow { color: var(--accent); }
.feedback { padding-top: 20px; color: var(--down); font-size: 13.5px; }
.feedback:empty { display: none; }
.feedback.loading { color: var(--muted); }
.feedback.loading::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 10px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .8s linear infinite; }
.dashboard-end { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Company header ---------- */

.company-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; overflow: hidden; padding: 20px 22px; }
.company-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--chart-1), var(--chart-2)); }
.company-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.company-symbol { display: grid; flex: 0 0 auto; place-items: center; min-width: 58px; height: 58px; padding: 0 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.company-name-block { min-width: 0; }
.company-name-block h2 { font-size: 32px; overflow-wrap: anywhere; }
.company-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.quote-block { text-align: right; }
.quote-price { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.quote-change { padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.quote-change:empty { display: none; }
.quote-change.up { background: color-mix(in oklab, var(--up) 12%, var(--surface)); color: var(--up); }
.quote-change.down { background: color-mix(in oklab, var(--down) 12%, var(--surface)); color: var(--down); }
.company-actions { display: flex; gap: 8px; }

/* ---------- Checked against the filings (home page) ---------- */

.checks-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 120px; }
.checks-note svg { width: 22px; height: 22px; margin-top: 1px; }
.checks-note h3 { font-size: 15px; }
.checks-note p { max-width: 900px; margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }

/* ---------- Pricing page ---------- */

.pricing-hero { padding: 56px 0 8px; text-align: center; }
.pricing-hero h1 { font-size: clamp(40px, 5vw, 58px); }
.pricing-hero .lede { margin-bottom: 0; }
.pricing-toggle { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 880px; margin: 24px auto 0; }
.plan { display: flex; flex-direction: column; padding: 26px 26px 24px; }
.plan-featured { border-color: var(--accent-line); background: linear-gradient(165deg, var(--accent-soft), var(--surface) 60%); }
.pricing-promo { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 600; line-height: 1.45; text-align: center; }
.pricing-promo[hidden] { display: none; }
/* What a subscription covers, the first line a visitor reads (home and pricing). */
.coverage-banner { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 auto 22px; padding: 12px 24px; border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); border-radius: 16px; background: var(--accent-soft); text-align: center; }
.coverage-banner strong { color: var(--accent); font-size: clamp(21px, 2.7vw, 31px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.coverage-banner span { color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.4; }
.pricing-hero .coverage-banner { margin: 16px auto 4px; }
.is-exploring .coverage-banner, .is-screening .coverage-banner, .is-funds .coverage-banner { display: none; }
/* Pricing: what Pro gives, and the answer for someone still deciding. */
.pro-why { margin: 56px 0 8px; text-align: center; }
.pro-why h2 { font-size: clamp(28px, 3.4vw, 40px); }
.pro-why-lede { max-width: 640px; margin: 10px auto 26px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.pro-why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
@media (max-width: 900px) { .pro-why-grid { grid-template-columns: 1fr; } }
.pro-why-item { padding: 20px 22px; }
.pro-why-item h3 { margin: 0 0 8px; font-size: 18px; }
.pro-why-item p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.pro-why-close { max-width: 720px; margin: 22px auto 0; padding: 24px 26px; border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); background: var(--accent-soft); }
.pro-why-close h3 { margin: 0 0 8px; font-size: 22px; }
.pro-why-close p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.6; }
.pro-why-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.pro-why-close .primary-button { display: inline-flex; text-decoration: none; }
.coverage-banner { max-width: 100%; box-sizing: border-box; }
.plan-name { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 15px; font-weight: 600; }
.plan-badge { padding: 2px 9px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: 11px; font-weight: 600; }
.plan-price { margin: 16px 0 0; font-family: var(--display); font-size: 50px; line-height: 1; }
.plan-price small { margin-left: 6px; color: var(--muted); font-family: var(--font); font-size: 14px; }
.plan-sub { min-height: 21px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.plan-features { display: grid; gap: 9px; margin: 20px 0 24px; padding: 0; list-style: none; color: var(--ink-2); font-size: 13.5px; }
.plan-features li { position: relative; padding-left: 24px; }
.plan-features li::before { content: ""; position: absolute; top: 4px; left: 2px; width: 10px; height: 6px; border-bottom: 2px solid var(--up); border-left: 2px solid var(--up); transform: rotate(-45deg); }
.plan .primary-button, .plan .ghost-button { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; text-decoration: none; }
.plan-fineprint { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.pricing-faq { max-width: 880px; margin: 48px auto 0; }
.pricing-faq h2 { margin-bottom: 14px; }
.pricing-faq details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pricing-faq summary { color: var(--ink); cursor: pointer; font-weight: 600; }
.pricing-faq p { margin: 8px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.pricing-faq + .legal-links, .pricing-terms + .legal-links { max-width: 880px; margin: 40px auto 0; }
.pricing-terms { max-width: 880px; margin: 48px auto 0; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.pricing-terms h2 { margin: 28px 0 10px; font-size: 20px; color: var(--ink); }
.pricing-terms h2:first-child { margin-top: 0; }
.pricing-terms p { margin: 0; }
.pricing-terms a { color: var(--accent); }

/* ---------- Missing-data note (funds, new listings) ---------- */

/* A company page's facts as served (dashboard/company_pages.py): seen while the full page loads, hidden by app-company.js once drawn. */
.company-intro { margin-top: 16px; padding: 18px 20px; }
.company-intro[hidden] { display: none; }
.company-intro h1, .is-exploring .company-intro h1 { display: block; margin: 2px 0 8px; font-size: 24px; line-height: 1.25; }
.company-intro-symbol { color: var(--muted); font-size: 15px; font-weight: 600; margin-left: 6px; }
.company-intro-kicker { margin: 0; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.company-intro-results { margin: 6px 0 0; line-height: 1.5; }
.company-intro-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; margin: 14px 0 0; }
.company-intro-facts dt { color: var(--muted); font-size: 12px; }
.company-intro-facts dd { margin: 2px 0 0; font-weight: 600; }
.company-intro-next { margin: 12px 0 0; font-size: 13.5px; }
.coverage-note { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-top: 16px; padding: 18px 20px; border-color: var(--accent-line); background: var(--accent-soft); }
.coverage-icon { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.coverage-note h3 { font-size: 15px; }
.coverage-note p { max-width: 900px; margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.coverage-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; }
.coverage-facts:empty { display: none; }
.coverage-note .coverage-links { margin-top: 10px; font-size: 12.5px; }
.coverage-links a { color: var(--accent); }
.coverage-facts div { display: flex; gap: 6px; font-size: 12.5px; }
.coverage-facts dt { color: var(--muted); }
.coverage-facts dd { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- Charts ---------- */

.price-card, .stats-card, .feed-card { padding: 18px 20px; }
.am-chart { position: relative; width: 100%; }
.price-chart { height: 380px; }
.quarterly-chart { height: 360px; }
.annual-chart { height: 300px; }
.annual-card { margin-bottom: 16px; padding: 16px 16px 10px; }
.ratio-card { margin-top: 16px; padding: 16px 16px 12px; }
.ratio-chart { height: 340px; }
.ratio-select { height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; }
.ratio-select:focus-visible { border-color: var(--accent); }
.ratio-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 8px; }
.ratio-stats > div { display: flex; align-items: baseline; gap: 6px; }
.ratio-stats dt { color: var(--muted); font-size: 12px; }
.ratio-stats dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.segmented button:disabled { cursor: default; opacity: .45; }
.segmented button:disabled:hover { color: var(--muted); }
.chart-fallback { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; text-align: center; }
.card-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.segmented button { min-width: 40px; padding: 4px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; transition: background-color .15s ease, color .15s ease; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
[data-base="ink"] .segmented button[aria-pressed="true"] { background: var(--line-strong); }
.source-note { margin: 10px 0 0; color: var(--muted); font-size: 11.5px; }
.locked-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 0; padding: 10px 14px; border: 1px dashed var(--line, #c9d8d4); border-radius: 10px; background: color-mix(in srgb, var(--accent, #1e7773) 6%, transparent); color: var(--muted); font-size: 13px; }
.locked-note strong { color: var(--ink, inherit); }
.locked-note button, .locked-note a { border: 0; background: none; padding: 0; color: var(--accent, #1e7773); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.trail-dialog { width: min(560px, calc(100vw - 32px)); }
.trail-body { display: grid; gap: 12px; margin-top: 8px; font-size: 14px; }
.trail-fact { padding: 10px 12px; border: 1px solid var(--line, #c9d8d4); border-radius: 10px; }
.trail-fact dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 6px 0 0; font-size: 13px; }
.trail-fact dt { color: var(--muted); }
.trail-fact dd { margin: 0; overflow-wrap: anywhere; }
.trail-inputs { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
td.has-source { cursor: pointer; }
td.has-source:hover { text-decoration: underline dotted; }
.ratio-price { height: 170px; min-height: 0; margin-bottom: 2px; }
.price-moves { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent, #1e7773) 7%, transparent); font-size: 14px; line-height: 1.5; }
.price-moves:empty { display: none; }
.thanks-toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 14px 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--up); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); font-size: 14px; animation: pop-in .2s ease-out; }
.thanks-toast[hidden] { display: none; }
.thanks-icon { color: var(--up); font-weight: 700; }
.thanks-close { margin-left: 4px; border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; opacity: .6; }
.thanks-close:hover { opacity: 1; }
.peer-suggest { display: grid; gap: 6px; }
.peer-suggest .peer-chip { padding: 4px 12px; background: none; cursor: pointer; color: inherit; font: inherit; font-size: 13px; }
.peer-suggest .peer-chip:hover { border-color: var(--accent, #1e7773); }
.peer-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.peer-quick select { padding: 8px 10px; border: 1px solid var(--line, #c9d8d4); border-radius: 8px; background: var(--surface, #fff); color: inherit; font: inherit; }
.peer-tools { margin-top: 12px; }
.pill { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent, #1e7773); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.peer-picker { margin-top: 14px; display: grid; gap: 12px; }
.peer-search { position: relative; }
.peer-search input, .peer-actions input, .peer-actions select { width: 100%; padding: 9px 12px; border: 1px solid var(--line, #c9d8d4); border-radius: 8px; background: var(--surface, #fff); color: inherit; font: inherit; }
.peer-suggestions { position: absolute; z-index: 5; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 260px; overflow: auto; border: 1px solid var(--line, #c9d8d4); border-radius: 8px; background: var(--surface, #fff); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.peer-suggestions button { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 7px 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.peer-suggestions button:hover, .peer-suggestions button:focus-visible { background: color-mix(in srgb, var(--accent, #1e7773) 10%, transparent); }
.peer-chosen { display: flex; flex-wrap: wrap; gap: 8px; }
.peer-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border: 1px solid var(--line, #c9d8d4); border-radius: 999px; font-size: 13px; }
.peer-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.peer-chip button.move { font-size: 12px; opacity: .6; }
.peer-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; padding-top: 8px; font-size: 13px; }
.peer-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); gap: 8px; align-items: center; }
.peer-actions .primary-button, .peer-actions .ghost-button { justify-content: center; }
.upgrade-actions { display: flex; margin: 8px 0 4px; }
.upgrade-actions .primary-button { text-decoration: none; justify-content: center; width: 100%; }
.basis-toggle { margin-top: 8px; }
.basis-toggle button { min-width: 88px; }
.basis-note { font-style: italic; }
.source-note details { display: inline; }
.source-note summary { display: inline; color: var(--accent); cursor: pointer; }
.source-note ul { margin: 6px 0 0; padding-left: 16px; }

/* Full screen: the card fills the screen and the chart takes the remaining height. */
.chart-card:fullscreen, .chart-card.is-fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; margin: 0; padding: 24px 28px; border: 0; border-radius: 0; background: var(--surface); }
.chart-card.is-fullscreen { position: fixed; inset: 0; z-index: 100; }
.chart-card:fullscreen .am-chart, .chart-card.is-fullscreen .am-chart { flex: 1; height: auto; min-height: 0; }
.chart-dialog[open]:fullscreen, .chart-dialog[open].is-fullscreen { display: flex; flex-direction: column; width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; border: 0; border-radius: 0; }
.chart-dialog:fullscreen .quarterly-chart, .chart-dialog.is-fullscreen .quarterly-chart { flex: 1; height: auto; min-height: 0; }
:fullscreen::backdrop { background: var(--surface); }
body.has-pseudo-fullscreen { overflow: hidden; }

/* ---------- Filings download ---------- */

.export-card { display: grid; gap: 12px; padding: 18px 20px; }
.export-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.field { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.field select { min-width: 170px; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; }
.field select:focus-visible { border-color: var(--accent); }
.check-field { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.check-field input { width: 16px; height: 16px; accent-color: var(--accent); }
.export-help { margin: 0; color: var(--muted); font-size: 12px; }
.export-status { margin: 0; color: var(--muted); font-size: 12.5px; }
.export-status:empty { display: none; }
.export-status.is-error { color: var(--down); }
#filings-export-button:disabled { opacity: .65; cursor: wait; }

/* ---------- Key stats ---------- */

.key-stats { display: grid; margin: 0; }
.key-stats > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.key-stats > div:last-child { border-bottom: 0; }
.key-stats dt { color: var(--muted); font-size: 13px; }
.key-stats dd { margin: 0; font-weight: 600; text-align: right; }
.range-bar { position: relative; height: 4px; margin-top: 7px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in oklab, var(--down) 45%, var(--line)), color-mix(in oklab, var(--up) 45%, var(--line))); }
.range-bar span { position: absolute; top: -4px; width: 12px; height: 12px; border: 2px solid var(--surface); border-radius: 50%; background: var(--ink); transform: translateX(-50%); }

/* ---------- Metric tiles ---------- */

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metrics-grid-compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metrics-grid:empty { display: none; }
.metrics-grid + .metrics-grid { margin-top: 12px; }
.metric { position: relative; display: flex; flex-direction: column; min-height: 136px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-align: left; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.metric.chartable { cursor: pointer; }
.metric.chartable:hover { border-color: var(--accent-line); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.metrics-grid-compact .metric { min-height: 100px; }
.metric-label { padding-right: 18px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.metric-value { margin-top: 6px; font-size: 23px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.metrics-grid-compact .metric-value { font-size: 19px; }
.metric-note { margin-top: 2px; color: var(--faint); font-size: 11.5px; line-height: 1.4; }
.metric.na .metric-value { color: var(--faint); font-size: 15px; font-weight: 500; }
.metric-spark { width: 100%; height: 30px; margin-top: auto; padding-top: 8px; overflow: visible; }
.metric-spark polyline { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.metric-spark-label { margin-top: 2px; color: var(--faint); font-size: 11px; line-height: 1.3; }
.chart-basis { margin-top: 2px; }
.metric-chart-hint { position: absolute; top: 13px; right: 14px; color: var(--faint); font-size: 13px; transition: color .15s ease; }
.metric.chartable:hover .metric-chart-hint { color: var(--accent); }

/* ---------- Feeds ---------- */

.feed-card { display: flex; flex-direction: column; min-height: 360px; }
.feed-card h3 { display: flex; align-items: center; }
.feed-dot { width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--chart-1); }
.feed-dot[data-feed="news"] { background: var(--chart-2); }
.feed-dot[data-feed="filings"] { background: var(--glow-3); }
.feed-list { flex: 1; margin: 0; padding: 0; list-style: none; }
.feed-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed-item:first-child { padding-top: 2px; }
.feed-item:last-child { border-bottom: 0; }
.feed-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 11.5px; }
.feed-meta .form-badge { padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.feed-title { display: block; margin-top: 3px; color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.42; text-decoration: none; }
a.feed-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
button.feed-title { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
button.feed-title:hover { color: var(--accent); }
.feed-summary { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 12.5px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.feed-empty { padding: 18px 0; color: var(--muted); font-size: 13px; }
.feed-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.skeleton, .skeleton-block, .publication-post.is-loading { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.skeleton { height: 46px; margin: 10px 0; }
.skeleton-block { height: 100%; }
.headlines-section .feed-card { min-height: 0; }

/* ---------- Table ---------- */

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.table-wrap.compact { box-shadow: none; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12.5px; }
th { position: sticky; top: 0; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: right; }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); text-align: right; }
th:first-child, td:first-child { position: sticky; left: 0; text-align: left; }
th:first-child { z-index: 1; }
td:first-child { background: var(--surface); color: var(--ink); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.negative { color: var(--down); }
tr.section-row td { padding-top: 18px; background: var(--surface-2); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
#financials-table td:first-child { min-width: 230px; font-weight: 500; }
#financials-table th:not(:first-child), #financials-table td:not(:first-child) { min-width: 84px; }

/* ---------- Publication + footer ---------- */

/* ---------- Fear & Greed index ---------- */

/* Diverging: fear red through a neutral grey to greed green, drawn from each theme's own tokens. */
.fear-greed-section { --fg-0: var(--down); --fg-1: color-mix(in oklab, var(--down) 55%, var(--surface)); --fg-2: color-mix(in oklab, var(--faint) 60%, var(--surface)); --fg-3: color-mix(in oklab, var(--up) 55%, var(--surface)); --fg-4: var(--up); }
.fear-greed-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 36px; padding: 24px 26px; }
.fg-summary { display: grid; justify-items: center; align-content: start; }
.fg-gauge { width: 100%; max-width: 300px; height: auto; overflow: visible; }
.fg-arc { fill: none; stroke-width: 18; }
.fg-band-0 { stroke: var(--fg-0); } .fg-band-1 { stroke: var(--fg-1); } .fg-band-2 { stroke: var(--fg-2); } .fg-band-3 { stroke: var(--fg-3); } .fg-band-4 { stroke: var(--fg-4); }
.fg-needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.fg-hub { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.fg-tick { fill: var(--faint); font-size: 11px; }
.fg-now { display: grid; justify-items: center; margin: 4px 0 18px; }
.fg-now strong { font-family: var(--display); font-size: 52px; font-weight: 400; line-height: 1; }
.fg-now span { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.fg-history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 0; }
.fg-history-row { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.fg-history dt { color: var(--muted); font-size: 11.5px; }
.fg-history dd { margin: 2px 0 0; color: var(--ink); font-size: 16px; font-weight: 700; }
.fg-history dd span { color: var(--muted); font-size: 12px; font-weight: 500; }
.fg-indicators { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; padding: 0; list-style: none; }
.fg-indicator-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fg-indicator-name { font-size: 13.5px; font-weight: 600; }
.fg-verdict { color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.fg-verdict::before, .fg-now span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--fg-2); vertical-align: 1px; }
.fear-greed-section [data-band="0"]::before { background: var(--fg-0); }
.fear-greed-section [data-band="1"]::before { background: var(--fg-1); }
.fear-greed-section [data-band="3"]::before { background: var(--fg-3); }
.fear-greed-section [data-band="4"]::before { background: var(--fg-4); }
.fg-track { position: relative; height: 6px; margin: 9px 0 7px; border-radius: 3px; background: linear-gradient(90deg, var(--fg-0), var(--fg-1) 30%, var(--fg-2) 50%, var(--fg-3) 70%, var(--fg-4)); }
.fg-marker { position: absolute; top: 50%; width: 14px; height: 14px; border: 3px solid var(--surface); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); transform: translate(-50%, -50%); }
.fg-marker::before { display: none; }
.fg-indicator-about { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.fear-greed-card .source-note { margin-top: 18px; }

.publication-section { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(120deg, color-mix(in oklab, var(--glow-3) 10%, var(--surface)), var(--surface) 60%); }
.publication-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.publication-section h2 { font-size: 28px; }
.publication-description { max-width: 640px; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.publication-link { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15px; text-decoration: none; }
.publication-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.publication-posts[hidden] { display: none; }
.publication-post-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.publication-post-link:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.publication-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.publication-post-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.publication-date { color: var(--faint); font-size: 12px; }
.publication-post h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.publication-post p { margin: 0; color: var(--muted); font-size: 13px; }
.publication-post.is-loading { height: 250px; }
footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px max(16px, calc((100vw - var(--shell)) / 2)); border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11.5px; }
.footer-disclaimer { max-width: 860px; margin: 0; font-size: 12px; line-height: 1.6; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .market-points { grid-template-columns: 1fr; }
  .grid-main { grid-template-columns: 1fr; }
  .grid-feeds { grid-template-columns: 1fr 1fr; }
  .grid-feeds:not(.grid-feeds-two) > :last-child { grid-column: 1 / -1; }
  .grid-latest { grid-template-columns: 1fr; }
  .metrics-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The purpose line stays on small screens: it drops to its own row under the brand and buttons. */
  .topbar { height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; row-gap: 4px; }
  .topbar-note { order: 3; flex: 1 0 100%; font-size: 13px; line-height: 1.35; }
  .is-home .topbar .topbar-note { font-size: calc(13px * 1.15); }
}
@media (max-width: 760px) {
  .cal-cell { min-height: 54px; padding: 4px; }
  .cal-cell .cal-chip, .cal-cell .cal-more { display: none; }
  .cal-cell .cal-count { display: inline-grid; place-items: center; align-self: flex-start; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent-strong); color: #fff; font-size: 10.5px; font-weight: 700; }
  .hero { padding: 40px 0 48px; }
  .lede { font-size: 15px; }
  .search-row { flex-wrap: wrap; gap: 4px; }
  .search-combo { flex-basis: 100%; }
  .clear-button { margin-left: auto; height: 32px; }
  #search-button { min-width: 0; }
  .markets-grid, .grid-feeds, .grid-headlines { grid-template-columns: 1fr; }
  .market-card { padding: 18px 16px 16px; }
  .company-header { grid-template-columns: 1fr; gap: 14px; }
  .company-title { flex-direction: column; align-items: flex-start; gap: 12px; }
  .company-symbol { height: 40px; min-width: 0; border-radius: 10px; }
  .company-name-block h2 { font-size: 28px; }
  .quote-block { text-align: left; }
  .quote-price { justify-content: flex-start; }
  .metrics-grid, .metrics-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-chart { height: 320px; }
  .ratio-chart { height: 300px; }
  .plans { grid-template-columns: 1fr; }
  .pricing-hero { padding-top: 36px; }
  .match-row { grid-template-columns: 1fr 24px; gap: 4px 12px; }
  .match-row .match-name { grid-row: 2; }
  .match-row .match-exchange { grid-row: 3; }
  .match-row .match-arrow { grid-row: 1 / 4; grid-column: 2; }
  .fear-greed-card, .fg-indicators { grid-template-columns: 1fr; }
  .fear-greed-card { padding: 20px 18px; }
  .publication-head { flex-direction: column; align-items: flex-start; }
  .publication-posts { grid-template-columns: 1fr; }
  .publication-section { padding: 22px 18px; }
  .theme-button-text, .avatar-name { display: none; }
  .theme-button { padding: 0 10px; }
  .theme-panel { position: fixed; top: 64px; right: 16px; left: 16px; width: auto; }
  footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Industry tag on search results; peers table */
.suggestion-chips { display: inline-flex; align-items: center; gap: 6px; }
.industry-tag { display: inline-block; max-width: 190px; padding: 2px 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.match-exchange { display: inline-flex; align-items: center; gap: 6px; }
.peers-table td.num, .peers-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.peers-table .peer-subject td { background: var(--surface-2); font-weight: 600; }
.peers-table .peer-median td { border-top: 1px solid var(--line); font-weight: 600; }
.peers-table .peer-symbol { color: var(--ink-2); font-size: 12px; }
@media (max-width: 520px) { .suggestion .industry-tag { display: none; } }

/* ---------- Landing: market moves ---------- */
.moves-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
/* Each card spans the same four rows (heading, summary, indices, companies), so the two company tables start level. */
.moves-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; margin-bottom: 16px; }
.moves-card .market-card-top { margin-bottom: 0; }
.moves-summary { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.moves-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.moves-table th, .moves-table td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.moves-table thead th { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.moves-table tbody th { font-weight: 500; }
.moves-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.moves-table td.up { color: var(--up); font-weight: 600; }
.moves-table td.down { color: var(--down); font-weight: 600; }
.moves-tag { color: var(--muted); font-size: 12px; font-weight: 400; }
@media (max-width: 900px) { .moves-grid { grid-template-columns: 1fr; } }

/* ---------- Home hero (8 Nov 2026): coverage as the headline, then the search, the credentials and four points of equal weight ---------- */
.hero-home .hero-copy { text-align: center; }
.hero-title { max-width: 980px; margin: 0 auto; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; text-wrap: balance; }
.hero-title-main { display: block; }
.hero-title-more { display: block; margin-top: .26em; color: var(--accent); font-size: .5em; font-style: italic; letter-spacing: 0; line-height: 1.25; }
.hero-home .search-form { max-width: 680px; margin: 28px auto 0; }
.hero-home .search-control { height: 60px; }
.hero-home #search-button { flex: none; height: 48px; padding: 0 22px; white-space: nowrap; }
.hero-try { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }
.hero-try button { padding: 4px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in oklab, var(--surface) 80%, transparent); color: var(--ink); cursor: pointer; font: inherit; font-weight: 500; }
.hero-try button:hover { border-color: var(--accent); color: var(--accent); }
.hero-try button:last-of-type { margin-right: 8px; }
/* The trust line on the home and pricing pages (owner, 8 Nov 2026): no ads, as little personal data as possible */
.trust-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; max-width: 620px; margin: 14px auto 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; text-align: left; }
.trust-note svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--accent); }
.trust-note strong { color: var(--ink); font-weight: 650; }
.plans + .trust-note { margin-top: 22px; font-size: 14px; }
/* The credentials: four figures, each with its basis */
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; margin: 34px auto 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in oklab, var(--surface) 88%, transparent); box-shadow: var(--shadow); list-style: none; }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; text-align: left; }
.hero-stats li + li { border-left: 1px solid var(--line); }
.hero-stats strong { color: var(--accent); font-size: clamp(22px, 2.3vw, 28px); font-weight: 750; letter-spacing: -0.01em; line-height: 1.1; }
.hero-stats span { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
/* What you get: four points of the same length and weight */
.hero-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; max-width: 1040px; margin: 30px auto 0; padding: 0; list-style: none; }
.hero-points li { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 2px solid color-mix(in oklab, var(--accent) 45%, var(--line)); text-align: left; }
.hero-points b { color: var(--ink); font-size: 15px; font-weight: 650; }
.hero-points span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.hero-home > .trust-note { margin-top: 30px; }
/* While a company, the screener or a fund is open, the hero is only the search bar */
.is-exploring .hero-pitch, .is-screening .hero-pitch, .is-funds .hero-pitch { display: none; }
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats li:nth-child(3) { border-left: 0; }
  .hero-stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero-stats li { padding: 14px; }
  .hero-points { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Contact page ---------- */
.contact-page { max-width: 720px; }
.contact-form { display: grid; gap: 16px; padding: 24px; }
.contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-field { display: grid; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.contact-field b { color: var(--down); }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; }
.contact-field textarea { resize: vertical; line-height: 1.5; }
.contact-field input:focus-visible, .contact-field select:focus-visible, .contact-field textarea:focus-visible { border-color: var(--accent); outline: 2px solid color-mix(in oklab, var(--accent) 25%, transparent); outline-offset: 1px; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact-status { margin: 0; color: var(--up); font-size: 13.5px; }
.contact-status.is-error { color: var(--down); }
@media (max-width: 640px) { .contact-row { grid-template-columns: 1fr; } }

/* ---------- Watchlists and alerts ---------- */
.watch-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }
.watch-dialog h2 { font-size: 27px; }
.watch-body { display: grid; gap: 18px; }
.watch-section { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.watch-section:first-child { padding-top: 0; border-top: 0; }
.watch-section h3 { font-size: 15px; }
.watch-section h4 { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.watch-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.watch-form { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-form select, .watch-form input { height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.watch-form input[type="number"] { width: 110px; }
.watch-list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.watch-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.watch-list a { font-weight: 600; }
.watch-tag { padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; }
.watch-tag:empty { display: none; }
.watch-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.watch-dialog .text-button { color: var(--accent); font-size: 13px; }
.company-actions { flex-wrap: wrap; }

/* IPO calendar (/ipos) and one IPO's page (/ipo): stage tiles, grouped cards and rows; tiles, steps, bars and cards for one issue */
.ipo-shell { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 32px; }
.ipo-shell > * { min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ipo-hero { padding: 8px 0 0; }
.ipo-eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ipo-hero h1, .ipo-head h1 { margin: 0; font-family: var(--display); font-size: clamp(30px, 4.4vw, 44px); font-weight: 400; line-height: 1.1; color: var(--ink); }
.ipo-lede { max-width: 720px; margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.ipo-updated { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.ipo-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ipo-stage-tile { display: grid; gap: 2px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s ease, background-color .15s ease; }
.ipo-stage-tile:hover { border-color: var(--line-strong); }
.ipo-stage-tile[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); }
.ipo-stage-count { font-family: var(--display); font-size: 30px; line-height: 1; }
.ipo-stage-label { font-size: 13.5px; font-weight: 600; }
.ipo-stage-split { color: var(--muted); font-size: 12px; }

.ipo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ipo-find input { width: min(280px, 100%); height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 13.5px; }
.ipo-find input:focus { outline: 2px solid var(--accent-line); outline-offset: 1px; }

.ipo-groups { display: grid; gap: 26px; }
.ipo-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.ipo-group-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; color: var(--ink); }
.ipo-group-head .section-sub { margin: 0; }
.ipo-group-count { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.ipo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ipo-grid.feature { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ipo-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ipo-card.feature { border-top: 3px solid var(--accent); }
.ipo-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ipo-card-name { margin: 0; font-size: 16px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.ipo-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--muted); font-size: 13px; }
.ipo-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.ipo-facts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ipo-fact { display: grid; gap: 1px; }
.ipo-fact-label { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.ipo-fact-value { font-size: 14px; font-weight: 600; color: var(--ink); }
.ipo-stage { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.ipo-stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.ipo-stage.stage-open, .ipo-stage.stage-price_band_set { background: var(--accent-soft); color: var(--accent); }
.ipo-stage.stage-open::before, .ipo-stage.stage-price_band_set::before { background: var(--accent); }
.ipo-stage.stage-listed::before, .ipo-stage.stage-priced::before { background: var(--up); }
.ipo-stage.stage-withdrawn::before { background: var(--down); }
.ipo-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ipo-chip { padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ipo-chip.market-US { border-color: color-mix(in srgb, var(--us) 45%, transparent); color: var(--us); }
.ipo-chip.market-IN { border-color: color-mix(in srgb, var(--in) 45%, transparent); color: var(--in); }
.ipo-chip.ticker { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }
.ipo-open { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.ipo-open:hover { filter: brightness(1.08); }
.ipo-docs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 12.5px; }
.ipo-docs a { color: var(--muted); }
.ipo-docs a:hover { color: var(--accent); }
/* One grid for the whole list, shared by every row (subgrid), so the date, band and links columns line up whatever each row holds. */
.ipo-rows { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; column-gap: 14px; margin: 0; padding: 0; list-style: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ipo-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; row-gap: 6px; padding: 10px 14px; }
.ipo-row .ipo-docs { justify-content: flex-end; }
.ipo-row + .ipo-row { border-top: 1px solid var(--line); }
.ipo-row-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; font-weight: 600; color: var(--ink); }
.ipo-row-link { color: var(--ink); }
.ipo-row-link:hover { color: var(--accent); }
.ipo-row-when, .ipo-row-band { color: var(--muted); font-size: 13px; }
.ipo-empty { margin: 0; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.ipo-footnote { max-width: 900px; }

/* one IPO */
.ipo-crumbs { margin: 0; color: var(--muted); font-size: 13px; }
.ipo-crumbs a { color: var(--muted); }
.ipo-head { display: grid; gap: 20px; padding: 22px; }
.ipo-head-main { display: grid; gap: 10px; }
.ipo-head-lede { margin: 0; color: var(--ink-2); font-size: 14px; }
.ipo-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); margin: 0; padding: 0; list-style: none; }
.ipo-steps li { position: relative; display: grid; gap: 2px; padding: 18px 8px 0 0; color: var(--faint); }
.ipo-steps li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line); }
.ipo-steps li.done::before { background: var(--accent); }
.ipo-steps li.current::before { background: linear-gradient(90deg, var(--accent) 0 12px, var(--line) 12px); }
.ipo-steps .ipo-step-dot { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.ipo-steps li.done .ipo-step-dot { border-color: var(--accent); background: var(--accent); }
.ipo-steps li.current .ipo-step-dot { box-shadow: 0 0 0 4px var(--accent-soft); }
.ipo-steps li.withdrawn .ipo-step-dot { border-color: var(--down); background: var(--down); }
.ipo-step-label { font-size: 13px; font-weight: 600; }
.ipo-steps li.done .ipo-step-label { color: var(--ink); }
.ipo-step-date { font-size: 12px; }
.ipo-steps li.done .ipo-step-date { color: var(--muted); }
.ipo-pending { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); color: var(--ink-2); }
.ipo-pending strong { color: var(--ink); }
.ipo-pending p { margin: 0; font-size: 14px; }
.ipo-pending .ipo-open { justify-self: start; margin-top: 4px; }

#ipo-body { display: grid; gap: 20px; }
#ipo-body[hidden], .ipo-kpis[hidden], .ipo-panel[hidden] { display: none; }
.ipo-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ipo-kpi { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ipo-kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.ipo-kpi-value { font-family: var(--display); font-size: 28px; line-height: 1.1; color: var(--ink); }
.ipo-kpi.down .ipo-kpi-value { color: var(--down); }
.ipo-kpi-sub { color: var(--faint); font-size: 12px; }
.ipo-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ipo-panel { display: grid; gap: 14px; padding: 18px; }
.ipo-panel .card-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ipo-panel .card-heading h2 { margin: 0; }
.ipo-subhead { margin: 6px 0 0; color: var(--ink); font-size: 14px; }
.ipo-term-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ipo-term { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.ipo-term-value { font-size: 15px; font-weight: 600; color: var(--ink); }
.ipo-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.ipo-point { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.ipo-point-price { font-family: var(--display); font-size: 24px; color: var(--ink); }
.ipo-point-facts { display: grid; gap: 4px; margin: 4px 0 0; }
.ipo-point-facts div, .ipo-after div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.ipo-point-facts dt, .ipo-after dt { color: var(--muted); }
.ipo-point-facts dd, .ipo-after dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.ipo-object-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.ipo-object-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ipo-object-amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.ipo-bars { display: grid; gap: 12px; }
.ipo-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13.5px; }
.ipo-bar-label { color: var(--ink-2); }
.ipo-bar-value { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ipo-bar-track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ipo-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--up); }
.ipo-bar-row.debt .ipo-bar-fill { background: var(--down); }
.ipo-bar-row.other .ipo-bar-fill { background: var(--muted); }
.ipo-after { display: grid; gap: 6px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.ipo-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.ipo-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.ipo-legend .sw.net { margin-left: 8px; }
.ipo-legend .sw.rev, .ipo-svg-bar.rev { background: var(--chart-1); fill: var(--chart-1); }
.ipo-legend .sw.net, .ipo-svg-bar.net { background: var(--chart-2); fill: var(--chart-2); }
.ipo-chart svg { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; }
.ipo-svg-axis { stroke: var(--line-strong); stroke-width: 1; }
.ipo-svg-value { fill: var(--ink-2); font-size: 11px; font-weight: 600; }
.ipo-svg-period { fill: var(--muted); font-size: 11.5px; }
.ipo-more summary { cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 600; }
.ipo-more .table-wrap { margin-top: 10px; }
.ipo-table td, .ipo-table th { white-space: nowrap; }
.ipo-table th.ipo-name { min-width: 170px; text-align: left; }
.ipo-callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.ipo-callouts:empty { display: none; }
.ipo-callout { padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ipo-callout strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13.5px; }
.ipo-callout p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.ipo-kpi.flagged { border-color: var(--accent-line); }
.ipo-kpi-flag { margin-top: 4px; padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.ipo-callout .ipo-quote { display: block; margin-top: 6px; }
.ipo-verdict[hidden] { display: none; }
.ipo-verdict h2, .ipo-verdict h3 { margin: 0; }
.ipo-call { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink-2); }
.ipo-call-invest { color: var(--up); }
.ipo-call-wait { color: var(--ink); }
.ipo-case-line { margin: 0; }
.ipo-case-scroll { overflow-x: auto; }
.ipo-case-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ipo-case-table th, .ipo-case-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ipo-case-table th:first-child, .ipo-case-table td:first-child { text-align: left; }
.ipo-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ipo-rule { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.ipo-rule-mark { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ipo-rule-pass .ipo-rule-mark { color: var(--up); }
.ipo-rule-fail .ipo-rule-mark { color: var(--down); }
.ipo-rule-shown { color: var(--ink-2); font-size: 13px; }
.ipo-context { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ipo-context-group { display: grid; align-content: start; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; }
.ipo-context-group.topic-going_concern, .ipo-context-group.topic-controls, .ipo-context-group.topic-losses { border-left-color: var(--down); }
.ipo-context-group .ipo-subhead { margin: 0; }
.ipo-context-quote { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; quotes: "“" "”"; }
.ipo-context-quote + .ipo-context-quote { padding-top: 8px; border-top: 1px solid var(--line); }
.ipo-fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ipo-fact-card { display: grid; align-content: start; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.ipo-topic { justify-self: start; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; }
.ipo-topic.topic-risk, .ipo-topic.topic-concentration { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.ipo-fact-text { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.45; }
.ipo-quote { color: var(--muted); font-size: 12.5px; font-style: italic; line-height: 1.45; }
.ipo-people { display: grid; gap: 8px; }
.ipo-people:empty { display: none; }
.ipo-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ipo-pill { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; }
.ipo-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ipo-timeline > li { position: relative; padding: 0 0 16px 24px; }
.ipo-timeline > li::before { content: ""; position: absolute; top: 14px; bottom: 0; left: 5px; width: 2px; background: var(--line); }
.ipo-timeline > li:last-child::before { display: none; }
.ipo-timeline .ipo-step-dot { position: absolute; top: 4px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.ipo-timeline > li > a { font-weight: 600; }
.ipo-timeline .section-sub { margin: 2px 0 0; }
.ipo-changes { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.ipo-columns:has(> .ipo-panel[hidden]) { grid-template-columns: minmax(0, 1fr); }
.ipo-more-button { justify-self: start; margin-top: 10px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
  color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.ipo-more-button:hover { border-color: var(--accent-line); background: var(--accent-soft); }
@media (max-width: 860px) { .ipo-columns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ipo-shell { gap: 16px; padding-top: 16px; }
  .ipo-head { padding: 16px; }
  .ipo-rows { grid-template-columns: minmax(0, 1fr) auto; }
  .ipo-row-name, .ipo-row .ipo-docs { grid-column: 1 / -1; }
  .ipo-row .ipo-docs { justify-content: flex-start; }
  .ipo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ipo-kpi-value { font-size: 22px; }
  .ipo-grid, .ipo-grid.feature { grid-template-columns: minmax(0, 1fr); }
  .ipo-steps { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
  .ipo-find, .ipo-find input { width: 100%; }
}

/* Phones (emulated Pixel 7 review, 28 Oct 2026): the earnings summary's and the heat map's tables scrolled the whole page sideways (582-639
   px on a 412 px screen), the two-line header stayed pinned over a sixth of the screen, toggles were 27 px tall and notes 11.5 px. */
@media (max-width: 640px) {
  .earnings-body > table, .heat > table { display: block; max-width: 100%; overflow-x: auto; }
  /* a grid column of 1fr cannot shrink below its widest table: the cards must be allowed to, and their tables scroll inside them */
  .card, .highlight-card, .section, .dashboard-section > * { min-width: 0; }
  /* not pinned, but above the pinned section bar (29) and the hero (20): its blur makes it a layer of its own, and static it sat under them,
     its account menu with it (owner's phone, 7 Nov) */
  .topbar { position: relative; z-index: 31; height: auto; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
  .section-nav { top: 0; }
  html { scroll-padding-top: 60px; } /* only the section bar stays pinned */
  .source-note, .metric-note, .feed-meta, .earnings-table thead th, .calendar-day .cal-status { font-size: 12.5px; }
}
@media (pointer: coarse) {
  .segmented button { min-height: 40px; padding: 8px 12px; }
  .ipo-table td a, .ipo-table th a { display: inline-block; padding-block: 10px; }
}
/* The site map (/sitemap): plain links, the companies in columns. */
.sitemap-page { max-width: 1040px; }
.sitemap-companies { columns: 3 220px; column-gap: 28px; padding-left: 0; list-style: none; }
.sitemap-companies li { margin: 0 0 6px; break-inside: avoid; }
.sitemap-symbol { color: var(--muted); font-size: 12px; }
.sitemap-count { color: var(--muted); font-size: 14px; font-weight: 400; }

/* A large one-off gain or loss in the net income behind the ratio. */
.ratio-one-off { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--warning, #b7791f); border-radius: 4px; background: var(--surface-2, rgba(183, 121, 31, .08)); color: var(--ink-2); font-size: 13px; line-height: 1.45; }

/* A search result for an international filer. */
.search-foreign { padding: 1px 6px; border: 1px solid var(--line, #d7dce5); border-radius: 4px; color: var(--ink-2); font-size: 11px; font-weight: 500; white-space: nowrap; }

/* ---------- Company summary (/summary, Pro; static/summary.js): a document on screen, one to two pages on paper ---------- */
.summary-shell { max-width: 980px; padding-top: 24px; }
.summary-link { flex: none; text-decoration: none; }
.summary-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.summary-toolbar .text-button { color: var(--muted); font-size: 14px; text-decoration: none; }
.summary-status { color: var(--muted); }
.summary-doc { padding: 30px 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.summary-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 32px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.summary-eyebrow { margin: 0 0 4px; color: var(--accent); font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.summary-head h1 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; }
.summary-dates { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.summary-market { display: grid; grid-template-columns: auto auto; gap: 3px 16px; margin: 0; font-size: 13.5px; }
.summary-market dt { color: var(--muted); }
.summary-market dd { margin: 0; color: var(--ink); font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.summary-market .summary-asof { color: var(--faint); font-size: 12px; font-weight: 400; }
.summary-headline { margin: 18px 0 4px; color: var(--ink); font-size: 17px; font-weight: 550; line-height: 1.5; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.summary-grid > [hidden] { display: none; }
.summary-grid:has(> .summary-block:only-of-type), .summary-grid:has(> [hidden]) { grid-template-columns: 1fr; }
.summary-block { margin-top: 22px; break-inside: avoid; }
.summary-block h2 { margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.summary-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.summary-table th, .summary-table td { padding: 6px 8px; border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); text-align: right; vertical-align: top; }
.summary-table th:first-child { padding-left: 0; text-align: left; font-weight: 500; color: var(--ink); }
.summary-table th, .summary-table td, .summary-table thead th { background: none; }
.summary-table thead th { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.summary-table tr { break-inside: avoid; }
.summary-value { color: var(--ink); font-weight: 650; white-space: nowrap; }
.summary-change { white-space: nowrap; color: var(--ink-2); }
.summary-change.is-up { color: var(--up); }
.summary-change.is-down { color: var(--down); }
.summary-segment-name { display: block; font-weight: 600; }
.summary-segment-about { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; font-weight: 400; }
.summary-new { margin-left: 6px; font-size: 10.5px; }
.summary-list { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.summary-list li + li { margin-top: 4px; }
.summary-outlook { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.summary-note { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.summary-pairs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 12px 0 0; font-size: 13.5px; }
.summary-pairs dt { color: var(--ink-2); }
.summary-pairs dd { margin: 0; color: var(--ink); font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.summary-foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.summary-left-out { margin: 0 0 8px; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.summary-locked { max-width: 640px; padding: 26px 28px; }
.summary-locked .primary-button { display: inline-flex; text-decoration: none; }
@media (max-width: 760px) {
  .summary-doc { padding: 20px 16px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-table { font-size: 12.5px; }
  .summary-table th, .summary-table td { padding: 5px 4px; }
}
@media print {
  @page { size: auto; margin: 14mm 12mm; }
  .summary-site { background: #fff; }
  .summary-site .topbar, .summary-site .section-nav, .summary-site footer, .summary-site .summary-toolbar, .summary-site .summary-status { display: none !important; }
  .summary-site .page-shell { width: auto; max-width: none; padding: 0; }
  .summary-doc { padding: 0; border: 0; box-shadow: none; background: #fff; color: #000; }
  .summary-doc, .summary-doc * { color: #000 !important; }
  .summary-change.is-up, .summary-change.is-down { font-weight: 600; }
  .summary-doc a { text-decoration: underline; }
  .summary-head { border-bottom-color: #000; }
  .summary-table th, .summary-table td { padding: 3px 6px; border-bottom-color: #ccc; }
  .summary-table { font-size: 10.5px; }
  .summary-headline { font-size: 13px; }
  .summary-list, .summary-outlook { font-size: 11px; }
  .summary-segment-about, .summary-note, .summary-dates, .source-note, .summary-left-out { font-size: 9.5px; }
  .summary-block { margin-top: 12px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-block h2 { font-size: 10px; margin-bottom: 4px; }
}

/* ---------- Company summary, layout D (owner, 8 Nov 2026; static/summary-view.js): the top of a company page and its printable copy ---------- */
.sv { display: flex; flex-direction: column; gap: 18px; }
.sv .is-up { color: var(--up); }
.sv .is-down { color: var(--down); }
.sv-card { box-sizing: border-box; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.sv-block { box-sizing: border-box; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); break-inside: avoid; }
.sv-h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 400; color: var(--ink); }
.sv-sub { margin: 4px 0 14px; color: var(--muted); font-size: 13px; }
.sv-small { color: var(--muted); font-size: 12.5px; }
.sv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.sv-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sv-eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sv-name { margin: 2px 0 0; font-family: var(--display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 400; line-height: 1.1; color: var(--ink); }
.sv-ticker { color: var(--muted); font-family: var(--font); font-size: 16px; font-weight: 600; }
.sv-market { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.sv-headline { margin: 0; color: var(--ink); font-size: 17px; font-weight: 550; line-height: 1.5; }
.sv-logo { --sv-logo: 44px; position: relative; display: inline-grid; flex: none; place-items: center; width: var(--sv-logo); height: var(--sv-logo); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; }
.sv-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.sv-logo-initials { color: var(--accent); font-size: calc(var(--sv-logo) * .36); font-weight: 700; }
.sv-logo.has-image .sv-logo-initials { display: none; }
.sv-chips, .sv-balance { display: flex; flex-wrap: wrap; gap: 10px; }
.sv-chip { display: flex; flex-direction: column; gap: 2px; padding: 9px 13px; border-radius: 12px; background: var(--surface-2); font-size: 17px; }
.sv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sv-tile { padding: 15px 17px; }
.sv-tile-top, .sv-ftile-row, .sv-seg-top, .sv-range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sv-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.sv-value { margin-top: 6px; color: var(--ink); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.sv-pill { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sv-pill.is-up { background: color-mix(in oklab, var(--up) 12%, var(--surface)); }
.sv-pill.is-down { background: color-mix(in oklab, var(--down) 12%, var(--surface)); }
.sv-compare { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 8px; align-items: center; margin-top: 12px; }
.sv-qoq { margin: 8px 0 0; }
.sv-track { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); outline: 1px solid color-mix(in oklab, var(--line) 60%, transparent); }
.sv-bar { position: absolute; top: 0; height: 100%; border-radius: 999px; }
.sv-diverging .sv-bar { border-radius: 2px; }
.sv-midline { position: absolute; left: 50%; top: -3px; width: 1px; height: 14px; background: var(--faint); }
.sv-expect { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.sv-expect-chip { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; }
.sv-ftiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sv-ftile { padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; }
.sv-ftile-label { min-height: 30px; }
.sv-ftile-value { color: var(--ink); font-size: 17px; }
.sv-new { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 700; }
.sv-basis { margin: -6px 0 12px; color: var(--ink-2); font-size: 14px; }
.sv-split { position: relative; height: 22px; margin-bottom: 6px; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.sv-split-part { position: absolute; top: 0; height: 100%; box-sizing: border-box; border-right: 2px solid var(--surface); }
.sv-scroll { overflow-x: auto; margin-top: 10px; }
.sv-seg-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.3fr); column-gap: 18px; align-items: center; min-width: 760px; padding: 12px 0; border-top: 1px solid var(--line); }
.sv-seg-head { padding: 0; border-top: 0; }
.sv-sort { min-height: 32px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.sv-sort:hover, .sv-sort.is-on { color: var(--ink); background: var(--surface-2); }
.sv-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sv-arrow { color: var(--faint); }
.sv-sort.is-on .sv-arrow { color: var(--accent); }
.sv-seg-title { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; }
.sv-swatch { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.sv-seg-about { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.sv-seg-row .sv-track { margin-top: 6px; }
.sv-seg-profit { color: var(--ink); font-size: 14px; }
.sv-seg-table--revenue .sv-seg-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1.4fr); min-width: 520px; }
.sv-subhead { margin: 16px 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sv-subhead:first-of-type { margin-top: 4px; }
.sv-val-layout { display: flex; flex-wrap: wrap; gap: 18px 32px; }
.sv-val-ranges { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sv-range-now { color: var(--ink); }
.sv-range-bar { position: relative; height: 10px; margin-top: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--surface-2), color-mix(in oklab, var(--accent) 22%, var(--surface))); }
.sv-range-median { position: absolute; top: -4px; width: 2px; height: 18px; margin-left: -1px; background: var(--ink-2); }
.sv-range-dot { position: absolute; top: -3px; width: 16px; height: 16px; margin-left: -8px; box-sizing: border-box; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 1px 3px rgba(16,24,40,.25); }
.sv-range-ends { display: flex; justify-content: space-between; margin-top: 6px; }
.sv-metrics { flex: 1.4 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-content: start; }
.sv-metric { display: flex; flex-direction: column; gap: 4px; padding: 11px 13px; border-radius: 12px; background: var(--surface-2); }
.sv-metric strong { color: var(--ink); font-size: 19px; }
.sv-pair { display: flex; flex-wrap: wrap; gap: 18px; }
.sv-pair > .sv-block { flex: 2 1 480px; min-width: 0; }
.sv-pair > .sv-owners-block { flex: 1 1 320px; }
.sv-list { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.sv-list li + li { margin-top: 6px; }
.sv-outlook { margin: 12px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.sv-subhead { margin: 0 0 4px; font-weight: 600; }
.sv-guidance { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.sv-guidance.tone-up { color: var(--up); } .sv-guidance.tone-down { color: var(--down); }
.sv-owner + .sv-owner { margin-top: 12px; }
.sv-owner .sv-seg-top { font-size: 14px; }
.sv-foot { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.sv-left-out { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.sv-foot a { color: var(--accent); }
@media (max-width: 640px) {
  .sv-block, .sv-head { padding: 16px; }
  .sv-tiles { grid-template-columns: 1fr; }
}
/* the company page: the summary at its top, with the link to its printable copy */
.company-summary .section-heading { margin-bottom: 12px; }
.company-header .sv-logo { margin-right: 4px; }
@media print {
  .summary-site .sv-block, .summary-site .sv-head, .summary-site .sv-card { border: 1px solid #ccc; box-shadow: none; background: #fff; }
  .summary-site .sv, .summary-site .sv * { color: #000 !important; }
  .summary-site .sv .is-up, .summary-site .sv .is-down { font-weight: 700; }
  .summary-site .sv-pill { background: #f0f0f0 !important; }
  .summary-site .sv-sort .sv-arrow { display: none; }
  .summary-site .sv-sort { padding: 0; }
  .summary-site .sv-scroll { overflow: visible; }
  .summary-site .sv-seg-row { min-width: 0; padding: 6px 0; }
  .summary-site .sv { gap: 10px; }
  .summary-site .sv-block { padding: 10px 12px; }
  .summary-site .sv-h2 { font-size: 16px; }
  .summary-site .sv-sub { margin-bottom: 6px; }
  .summary-site .sv-value { font-size: 18px; }
  .summary-site .sv-list { font-size: 11px; }
  .summary-site .sv-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .summary-site .sv-tile { padding: 8px 10px; }
  .summary-site .sv-small, .summary-site .sv-seg-about { font-size: 9.5px; }
  .summary-site .sv-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .summary-site .sv-bar, .summary-site .sv-split-part, .summary-site .sv-range-dot, .summary-site .sv-swatch { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
/* the printed summary: compact, so a company fits on one or two sheets (owner, 8 Nov 2026) */
@media print {
  @page { margin: 10mm 10mm; }
  .summary-site .sv-head { padding: 8px 10px; }
  .summary-site .sv-logo { --sv-logo: 38px !important; }
  .summary-site .sv-name { font-size: 22px; }
  .summary-site .sv-chip { padding: 4px 8px; font-size: 12px; }
  .summary-site .sv-headline { font-size: 12.5px; }
  .summary-site .sv-compare { margin-top: 5px; gap: 3px 6px; grid-template-columns: 60px minmax(0, 1fr); }
  .summary-site .sv-track { height: 6px; }
  .summary-site .sv-qoq { margin-top: 4px; }
  .summary-site .sv-expect { margin-top: 6px; gap: 4px; }
  .summary-site .sv-expect-chip { padding: 2px 7px; font-size: 10px; }
  .summary-site .sv-ftiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .summary-site .sv-ftile { padding: 5px 7px; }
  .summary-site .sv-ftile-label { min-height: 0; }
  .summary-site .sv-ftile-value { font-size: 12.5px; }
  .summary-site .sv-basis { margin: 0 0 4px; font-size: 10.5px; }
  .summary-site .sv-split { height: 12px; margin-bottom: 2px; }
  .summary-site .sv-seg-row { padding: 4px 0; column-gap: 10px; }
  .summary-site .sv-seg-title { font-size: 11.5px; }
  .summary-site .sv-seg-row strong { font-size: 11.5px; }
  .summary-site .sv-sort { min-height: 0; font-size: 10px; }
  .summary-site .sv-val-layout { flex-wrap: nowrap; gap: 14px; }
  .summary-site .sv-val-ranges { flex: 1 1 0; gap: 8px; }
  .summary-site .sv-range-bar { height: 7px; margin-top: 6px; }
  .summary-site .sv-range-dot { width: 11px; height: 11px; margin-left: -5px; top: -2px; }
  .summary-site .sv-range-median { height: 13px; top: -3px; }
  .summary-site .sv-range-ends { margin-top: 3px; }
  .summary-site .sv-balance { gap: 5px; }
  .summary-site .sv-metrics { flex: 1.1 1 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .summary-site .sv-metric { padding: 5px 7px; gap: 1px; }
  .summary-site .sv-metric strong { font-size: 12.5px; }
  .summary-site .sv-list { margin-top: 4px; }
  .summary-site .sv-list li + li { margin-top: 2px; }
  .summary-site .sv-pair { gap: 10px; }
  .summary-site .sv-pair > .sv-block { flex-basis: 0; }
}
@media print {
  /* a section may run onto the next sheet (a whole one kept together left half a page empty); its tiles, rows and lines may not */
  .summary-site .sv-block { break-inside: auto; }
  .summary-site .sv-h2 { break-after: avoid; }
  .summary-site .sv-tile, .summary-site .sv-ftile, .summary-site .sv-seg-row, .summary-site .sv-range, .summary-site .sv-metric,
  .summary-site .sv-list li, .summary-site .sv-split { break-inside: avoid; }
  .summary-site .sv-sub { margin: 2px 0 6px; font-size: 10px; }
}

/* Dividends (dashboard/static/dividends.js) */
.dividend-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.dividend-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.dividend-tile-label { color: var(--muted); font-size: .8rem; }
.dividend-tile-value { color: var(--ink); font-size: 1.35rem; }
.dividend-tile-note { color: var(--muted); font-size: .8rem; }
.dividend-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: .82rem; margin-bottom: 6px; }
.dividend-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dividend-keyline { height: 3px; border-radius: 2px; background: var(--ink-2); vertical-align: 3px; }
.dividend-regular { background: var(--seg-1); }
.dividend-special { background: var(--seg-2); }
.dividend-likely-special { background: var(--seg-2); opacity: .55; }
.dividend-svg { width: 100%; height: auto; display: block; }
.dividend-bar.dividend-regular { fill: var(--seg-1); }
.dividend-bar.dividend-special { fill: var(--seg-2); }
.dividend-bar.dividend-likely-special { fill: var(--seg-2); opacity: .55; }
.dividend-grid { stroke: var(--line); stroke-width: 1; }
.dividend-axis { fill: var(--muted); font-size: 11px; }
.dividend-axis-yield { fill: var(--ink-2); }
.dividend-line { stroke: var(--ink-2); stroke-width: 1.6; }
.dividend-dot { fill: var(--ink-2); }
.dividend-details { margin-top: 10px; }
.dividend-details summary { cursor: pointer; color: var(--ink-2); }
.dividend-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .88rem; }
.dividend-table th, .dividend-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .dividend-tile-value { font-size: 1.15rem; } }

/* Management tone (dashboard/static/management-tone.js) */
.tone-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; }
.tone-headline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tone-score { font-family: "DM Serif Display", Georgia, serif; font-size: 3.2rem; line-height: 1; color: var(--ink); }
.tone-of { color: var(--muted); font-size: .9rem; }
.tone-move { margin-left: 6px; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-strong); }
.tone-move-more-constructive { color: var(--up); border-color: var(--up); }
.tone-move-more-cautious { color: var(--down); border-color: var(--down); }
.tone-history-box { min-width: 200px; }
.tone-bars { display: flex; gap: 12px; align-items: flex-end; height: 90px; }
.tone-bar-column { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; width: 48px; }
.tone-bar { display: block; width: 100%; background: var(--seg-1); border-radius: 3px 3px 0 0; min-height: 0; }
.tone-bar-column:last-child .tone-bar { background: var(--seg-3); }
.tone-bar-label { font-size: .68rem; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.tone-caption { color: var(--muted); font-size: .75rem; margin: 6px 0 0; }
.tone-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 10px 0; }
.tone-sentences h3 { font-size: .9rem; margin: 0 0 6px; }
.tone-favorable h3 { color: var(--up); }
.tone-unfavorable h3 { color: var(--down); }
.tone-sentences ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .88rem; }
.tone-sentences li { margin-bottom: 6px; }

.dividends-card, .tone-card { padding: 18px 20px; }
@media (max-width: 640px) { .dividends-card, .tone-card { padding: 14px 14px; } }

/* The company page's frame (page-frame.js): an index beside the blocks, folded blocks under a title bar */
.dashboard-section.has-frame { display: grid; grid-template-columns: 176px minmax(0, 1fr); column-gap: 28px; align-items: start; }
.dashboard-section.has-frame > * { grid-column: 2; }
.dashboard-section.has-frame > .company-header { grid-column: 1 / -1; }
.dashboard-section.has-frame > .page-rail { grid-column: 1; grid-row: 2 / span 60; position: sticky; top: 12px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: .86rem; max-height: calc(100vh - 24px); overflow-y: auto; }
.rail-link { display: block; padding: 5px 9px; border-radius: 6px; border-left: 3px solid transparent; color: var(--ink-2); text-decoration: none; }
.rail-link:hover { background: var(--surface-2); }
.rail-link.rail-on { background: var(--surface-2); color: var(--ink); border-left-color: var(--seg-1); font-weight: 600; }
.rail-folded { color: var(--muted); }
.rail-more { margin: 14px 0 4px 9px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.frame-block.frame-fold { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.frame-fold > .fold-head { width: 100%; display: flex; gap: 12px; align-items: baseline; justify-content: space-between; text-align: left; padding: 14px 20px; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; }
.frame-fold > .fold-head b { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 1.2rem; }
.frame-fold > .fold-head .fold-line { margin-left: auto; color: var(--muted); font-size: .84rem; text-align: right; }
.frame-fold > .fold-head .fold-sign { color: var(--muted); font-size: 1.3rem; }
.frame-fold:not(.is-open) > :not(.fold-head) { display: none; }
.frame-fold.is-open { padding-bottom: 8px; }
.frame-fold.is-open > :not(.fold-head) { margin-left: 20px; margin-right: 20px; }
.frame-fold.is-open > .section-heading { margin-top: 4px; }
.frame-block { scroll-margin-top: 12px; }
.dividends-in-theme { margin-top: 18px; }
.theme-subtitle { font-size: 1rem; margin: 0; }
@media (max-width: 900px) {
  .dashboard-section.has-frame { display: block; }
  .dashboard-section.has-frame > .page-rail { position: sticky; top: 0; z-index: 6; flex-direction: row; gap: 6px; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 8px 0; background: var(--bg); }
  .rail-link { white-space: nowrap; border: 1px solid var(--line); border-left-width: 1px; border-radius: 999px; padding: 4px 11px; }
  .rail-link.rail-on { border-color: var(--seg-1); }
  .rail-more { display: none; }
  .frame-fold > .fold-head .fold-line { display: none; }
}

/* Business KPIs (kpis.js) */
.kpis-card { padding: 8px 20px 18px; }
.kpi-row { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 14px 24px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.kpi-row:first-child { border-top: 0; }
.kpi-name { font-size: .88rem; color: var(--ink-2); }
.kpi-value { font-family: "DM Serif Display", Georgia, serif; font-size: 1.7rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-change { font-size: .8rem; color: var(--muted); }
.kpi-change.up { color: var(--up); }
.kpi-change.down { color: var(--down); }
.kpi-basis { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.kpi-chart { width: 100%; height: auto; display: block; }
.kpi-first { color: var(--muted); font-size: .8rem; margin: 0; }
.kpi-group { margin: 18px 0 0; padding-top: 14px; border-top: 2px solid var(--line); font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .kpi-row { grid-template-columns: minmax(0, 1fr); } }

.price-block > .section { margin-top: 22px; }
.kpi-ratio-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.kpi-ratio-label { font-size: .84rem; color: var(--muted); margin-right: 4px; }
.kpi-ratio-button { padding: 4px 12px; font-size: .82rem; }

.earnings-evidence { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.earnings-evidence > summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.sv-next { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: 13px; }
.sv-next.waiting { border-left: 3px solid var(--down); }

/* ---------- My portfolio (/portfolio, static/portfolio.js) ---------- */
.pf-empty { display: grid; gap: 10px; justify-items: start; }
.pf-controls, .pf-company, .pf-total, .pf-empty { padding: 16px 18px; }
.pf-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.pf-field { display: grid; gap: 4px; min-width: 200px; }
.pf-field select, .pf-field input, .pf-form input { font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.pf-add { position: relative; flex: 1 1 260px; }
.pf-suggest { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); max-height: 320px; overflow-y: auto; }
.pf-suggest-item { width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; color: var(--ink); font: inherit; border-radius: 6px; cursor: pointer; }
.pf-suggest-item:hover, .pf-suggest-item:focus-visible { background: var(--surface-2); }
.pf-status { flex-basis: 100%; margin: 0; min-height: 1.2em; }
.pf-status.is-error { color: var(--down); }
.pf-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.pf-total p { margin: 2px 0; }
.pf-total-value { font-size: 1.6rem; font-weight: 600; }
.pf-rows { display: grid; gap: 12px; }
.pf-company { display: grid; gap: 10px; }
.pf-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.pf-name { font-weight: 600; font-size: 1.05rem; }
.pf-price-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-up { color: var(--up); font-variant-numeric: tabular-nums; }
.pf-down { color: var(--down); font-variant-numeric: tabular-nums; }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.pf-facts dt { font-size: .78rem; color: var(--muted); }
.pf-facts dd { margin: 2px 0 0; }
.pf-news { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.pf-news p { margin: 0; }
.pf-chip-line { font-size: .88rem; font-weight: 500; }
.pf-headline a { color: var(--ink); }
.pf-holding { margin: 0; }
.pf-tools { display: flex; gap: 16px; }
.pf-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.pf-form { display: grid; gap: 8px; align-content: start; }
.pf-form h3 { margin: 0; font-size: 1rem; }
.pf-form label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.pf-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .92rem; }
.pf-alert input[type="number"] { width: 110px; padding: 4px 8px; }
@media (max-width: 640px) { .pf-field { min-width: 0; flex: 1 1 100%; } .pf-total-value { font-size: 1.35rem; } }

/* ---------- Ratio dashboard: grouped tiles with their own lines (app-company.js drawRatioTiles); the cards are the page's sv-card tiles ---------- */
.ratio-tiles { display: grid; gap: 18px; margin: 6px 0 16px; }
.ratio-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.ratio-group-head h4 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.ratio-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.ratio-tile-wrap { position: relative; }
.ratio-tile { display: grid; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ratio-tile:hover { border-color: var(--line-strong); }
.ratio-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.ratio-tile-value { margin-top: 4px; }
.ratio-pill.is-high, .ratio-pill.is-low { background: color-mix(in oklab, var(--accent) 14%, var(--surface)); color: var(--ink); }
.ratio-spark { width: 100%; height: 38px; margin: 6px 0 4px; display: block; overflow: visible; }
.ratio-spark-band { fill: var(--accent); fill-opacity: .1; }
.ratio-spark-line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ratio-spark-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ratio-tile-reading { padding-right: 26px; color: var(--muted); }
.ratio-tile-expand { position: absolute; right: 10px; bottom: 10px; width: 26px; height: 26px; padding: 5px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.ratio-tile-expand:hover, .ratio-tile-expand:focus-visible { background: var(--surface-2); color: var(--ink); }
.ratio-tile-expand svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ratio-reading { margin: 0 0 8px; color: var(--ink); font-size: 15px; }
.ratio-reading:empty { display: none; }
.ratio-chart-label { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.ratio-card:fullscreen .ratio-tiles, .ratio-card.is-fullscreen .ratio-tiles { display: none; }
@media (max-width: 640px) { .ratio-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .ratio-tile.sv-tile { padding: 12px; } .ratio-tile .sv-value { font-size: 20px; } }

/* the snapshot's peer benchmarks (summary-view.js peerBenchmarks): five measures on one row where they fit */
.sv-peer-tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* My portfolio, denser cards: order controls, a remove button, a comment line, the 52-week range (static/portfolio.js companyCard) */
.pf-head { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 6px 12px; }
.pf-order { display: flex; align-items: center; gap: 2px; }
.pf-handle { cursor: grab; color: var(--muted); padding: 2px 4px; user-select: none; letter-spacing: -2px; }
.pf-icon { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; line-height: 1; cursor: pointer; }
.pf-icon:hover:not(:disabled) { background: var(--surface-2); }
.pf-icon:disabled { opacity: .35; cursor: default; }
.pf-remove { color: var(--muted); font-size: 18px; }
.pf-remove:hover { color: var(--down); border-color: var(--down); }
.pf-company.is-dragging { opacity: .5; }
.pf-company.is-drop { box-shadow: 0 0 0 2px var(--accent) inset; }
.pf-comment { margin: -2px 0 0; color: var(--ink); font-size: .92rem; }
.pf-note { margin: 2px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.pf-range { min-width: 150px; }
.pf-range-bar { position: relative; height: 6px; margin: 8px 0 4px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in oklab, var(--down) 35%, var(--surface)), color-mix(in oklab, var(--up) 35%, var(--surface))); }
.pf-range-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); }
.pf-range-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.pf-tools { justify-content: space-between; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .pf-head { grid-template-columns: auto 1fr auto; } .pf-head .pf-price { grid-column: 2 / 4; grid-row: 2; } }
