/* Shared data-card styling for chat, previews, and public snapshots. */
  .kilby-card { margin-top: 8px; padding: 12px; border: 1px solid rgba(var(--kilby-tint),0.06); border-radius: 12px; background: var(--kilby-surface, rgba(22,22,22,0.55)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--kilby-white); font-size: 13px; }
  .kilby-card-label { font-size: 10px; color: var(--kilby-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
  /* The company header — which company am I looking at — is a TITLE, not a
     label. It was using .kilby-card-label, the same 10px dim style as a row key
     like "Volume", so the most important line on the card was also the quietest.
     Android already renders it titleSmall / Bold / #E0E0E0; this matches that,
     so the two surfaces stop disagreeing. Separate class, so every other card's
     label is untouched. */
  .kilby-card-title { font-size: 14px; color: var(--kilby-white); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 6px; line-height: 1.25; }
  .kilby-card-divider { border: none; border-top: 1px solid var(--kilby-border); margin: 8px 0; }
  .kilby-card-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 12px; }
  .kilby-card-key { color: var(--kilby-secondary); }
  .kilby-card-val { color: var(--kilby-white); font-weight: 500; text-align: right; }
  .kilby-card-val.pos { color: var(--kilby-green); }
  .kilby-card-val.neg { color: var(--kilby-red); }
  .kilby-estimate-table { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
  .kilby-estimate-header, .kilby-estimate-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 10px; font-size: 12px; align-items: baseline; }
  .kilby-estimate-header { color: var(--kilby-secondary); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
  .kilby-estimate-header span:nth-child(2), .kilby-estimate-header span:nth-child(3) { text-align: right; }
  .kilby-estimate-period { color: var(--kilby-secondary); }
  .kilby-estimate-val { color: var(--kilby-white); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
  /* Under a foreign filer's P/E: the rate its earnings were converted at (owner, Oct 19). */
  .kilby-card-subnote { font-size: 12px; color: var(--kilby-secondary); text-align: right; margin: -2px 0 4px; }
  /* GitHub #410: when the consensus was captured, and why a reported quarter is left out. */
  .kilby-estimate-asof { font-size: 12px; color: var(--kilby-secondary); margin: -2px 0 6px; }
  .kilby-estimate-note { font-size: 12px; line-height: 1.45; color: var(--kilby-secondary); margin-top: 8px; }
  .stock-price { font-size: 22px; font-weight: 700; color: var(--kilby-white); letter-spacing: -0.02em; line-height: 1; }
  .stock-meta { font-size: 12px; color: var(--kilby-secondary); margin-top: 2px; }
  .fred-sparkline { font-family: monospace; font-size: 15px; letter-spacing: -0.04em; color: var(--kilby-link); margin: 6px 0 2px; overflow: hidden; white-space: nowrap; }
  .pulse-article { padding: 7px 0; }
  .pulse-article + .pulse-article { border-top: 1px solid var(--kilby-border); }
  .pulse-article-title { color: var(--kilby-white); font-weight: 500; font-size: 13px; line-height: 1.35; }
  .pulse-article-byline { color: var(--kilby-secondary); font-size: 11px; margin-top: 2px; }
  .pulse-article-summary { color: var(--kilby-secondary); font-size: 12px; margin-top: 3px; line-height: 1.4; }
  .pulse-article-link { color: var(--kilby-link); font-size: 11px; text-decoration: none; display: inline-block; margin-top: 3px; }
  .pulse-article-link:hover { text-decoration: underline; }
  .code-entry { padding: 7px 0; }
  .code-entry + .code-entry { border-top: 1px solid var(--kilby-border); }
  .code-entry-header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .code-tag { font-family: monospace; font-size: 12px; color: var(--kilby-link); font-weight: 700; background: rgba(147,197,253,0.08); border-radius: 4px; padding: 1px 5px; }
  .code-reason { color: var(--kilby-white); font-size: 12px; font-weight: 500; }
  .code-desc { color: var(--kilby-secondary); font-size: 11px; margin-top: 3px; line-height: 1.4; }
  .code-detail-row { display: flex; gap: 6px; font-size: 11px; margin-top: 3px; flex-wrap: wrap; }
  .code-detail-key { color: var(--kilby-secondary); }
  .code-detail-val { color: var(--kilby-secondary); }
  .kilby-card-source { font-size: 10px; color: var(--kilby-secondary); margin-top: 8px; }

  /* ── Comp table (/comp AAPL MSFT) ──────────────────────────────────────────
     A comp table exists to be read ACROSS. Stacking one company per block would
     be readable and useless — you could no longer compare. So the metric column
     is STICKY and the companies scroll underneath it, and the scroll lives
     INSIDE the card so the chat itself never moves sideways. */
  .comp-scroll { overflow-x: auto; margin: 0 -12px; padding: 0 12px; -webkit-overflow-scrolling: touch; }
  .comp { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
  /* ⚠️ THE CLASS IS DOUBLED ON PURPOSE — DO NOT "TIDY" IT TO ONE.
     `.msg.bot th` above is Kilby's markdown-table style and outranks a single
     `.comp th`. It was silently winning: it forced UPPERCASE, 11px #bbb, a 2px
     bottom rule and its own alignment onto every header in this card, so the
     tickers were capitalised, every row label carried a line under it and the
     header did not sit on the same rule as its own figures. Doubling the class
     outranks it without depending on the card
     sitting inside a .msg.bot wrapper. The resets below undo each property it
     sets, so nothing is left leaking through. */
  .comp.comp th, .comp.comp td {
    padding: 5px 0; white-space: nowrap;
    /* Left-justified. Ticker, company name and every figure beneath them share
       one left rule, so a column reads as a single block. */
    text-align: left;
    text-transform: none; letter-spacing: normal;
    border-bottom: none; font-size: 12px;
  }
  /* Column gutter. Selected by NOT being the metric column rather than by
     adjacency: `td + td` silently skips the FIRST company's value cells,
     because those follow the metric <th> and not another <td> — while
     `th + th` does match that company's header. The first column's heading
     then sits 18px inside its own figures. */
  .comp.comp th:not(.metric), .comp.comp td:not(.metric) { padding-left: 18px; }
  /* Opaque background, not the card's translucent one: the columns scroll
     underneath this and would otherwise show through it. */
  .comp.comp th.metric, .comp.comp td.metric { position: sticky; left: 0; z-index: 2; text-align: left; color: var(--kilby-secondary); font-weight: 400; padding-right: 14px; background: var(--kilby-panel); box-shadow: 1px 0 0 var(--kilby-panel); }
  .comp.comp thead th { padding-bottom: 10px; vertical-align: bottom; }
  /* Ticker and company name are deliberately CLOSE in size. On a comp table the
     company name is not decoration — it is how you tell four columns apart at a
     glance — so it reads as part of the same block, not a caption beneath it. */
  .comp.comp .tick { display: block; color: var(--kilby-white); font-weight: 700; font-size: 13px; letter-spacing: .01em; line-height: 1.15; }
  /* The name is capped and WRAPS rather than widening the column. Legal
     suffixes are already stripped server-side; this catches what is left, so a
     genuinely long name costs two lines of header instead of pushing the table
     off the side of the card. Values keep nowrap — they must never break. */
  .comp.comp .co { display: block; color: var(--kilby-secondary); font-size: 12px; font-weight: 500; margin-top: 3px; line-height: 1.2; max-width: 104px; white-space: normal; }
  .comp.comp thead th.metric { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--kilby-secondary); vertical-align: bottom; }
  .comp.comp td.v { color: var(--kilby-white); font-weight: 500; }
  /* An absent figure is a dimmed em dash. Never zero, never "N/A" — a company
     that is not earning has no meaningful P/E, and that is a fact about the
     company rather than a gap in the data. */
  .comp.comp td.v.dim { color: var(--kilby-secondary); font-weight: 400; }
  /* Fifteen rows in one block is a wall of numbers. Three groups, separated by
     a hairline and nothing else — the captions came off 16 Aug (his call): the
     row names already say what the group was labelling. */
  .comp.comp tr.group td, .comp.comp tr.group th { padding-top: 12px; border-top: 1px solid var(--kilby-border); }
  .comp-hint { font-size: 10px; color: var(--kilby-secondary); margin-top: 6px; }


  /* ── Financial statements (/NVDA inc · bal · cf) ────────────────────────────
     Modelled on TEK2day Finance's own income statement card — a title, a
     QUARTERLY section, an ANNUAL section, each a table headed "Metric" with
     period-end dates as columns, then a source line. His instruction, 21 Aug
     2026: use that card as the model and change the colours.

     Kilby's blue replaces TEK2day's section colour, as it did on the macro
     card, and negatives take Kilby's existing red rather than a new one. */
  .fin-card { padding: 16px; }

  .fin-head { margin-bottom: 12px; }
  .fin-h1 { color: var(--kilby-white); font-size: 16px; font-weight: 700; line-height: 1.2; }
  .fin-h2 { color: var(--kilby-faint); font-size: 11px; margin-top: 2px; }
  /* The scale, stated once and beside the statement it applies to — his call,
     22 Aug 2026. Dimmer than the statement name so it reads as a qualifier
     rather than part of the title. */
  .fin-unit { margin-left: 8px; color: var(--kilby-faint); letter-spacing: 0.02em; }

  .fin-section + .fin-section { margin-top: 16px; }
  .fin-section-title { color: var(--kilby-link); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
  .fin-section-empty { color: var(--kilby-secondary); font-size: 12px; padding: 4px 0 2px; }

  /* Eight period columns beside a metric name will outrun a phone. The scroll
     lives INSIDE the card so the chat itself never moves sideways — the same
     rule the comp and macro tables follow. */
  .fin-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fin { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }

  /* ⚠️ THE CLASS IS DOUBLED ON PURPOSE, same as .comp.comp and .macro.macro —
     `.msg.bot th` is Kilby's markdown-table style and outranks a single
     `.fin th`, forcing uppercase 11px #bbb and a border this card does not
     want. Do not "tidy" this to one class. */
  .fin.fin th, .fin.fin td {
    border: 0; background: none; text-transform: none; letter-spacing: normal;
    padding: 6px 0; text-align: right; vertical-align: top; white-space: nowrap;
  }
  .fin.fin th:not(.metric), .fin.fin td:not(.metric) { padding-left: 16px; }
  /* ⚠️ THE DATE IS THE COLUMN HEADING, so it is sized to be read rather than
     tucked away — his call, 22 Aug 2026. It is also the ONLY thing in the
     heading: the fiscal quarter label is deliberately absent, because TEK2day's
     storage key is not the issuer's fiscal label and printing "2026-Q2" would
     assert a quarter nobody told us. */
  .fin.fin thead th {
    font-size: 12px; letter-spacing: 0.01em; color: var(--kilby-white); font-weight: 700;
    padding-bottom: 8px; border-bottom: 1px solid rgba(var(--kilby-tint),0.09);
  }
  .fin.fin thead th.metric { text-align: left; }

  /* Line-item names wrap; figures never do. A long label must not push the
     table past the card and clip the right-hand periods. */
  .fin.fin th.metric, .fin.fin td.metric {
    text-align: left; font-weight: 500; color: var(--kilby-white); padding-right: 14px;
    white-space: normal; width: 34%;
  }
  .fin.fin tbody tr + tr th.metric, .fin.fin tbody tr + tr td { border-top: 1px solid rgba(var(--kilby-tint),0.05); }
  .fin.fin tbody td { color: var(--kilby-white); font-weight: 600; }

  /* A line the company did not report is a dimmed em dash — never zero. Not
     reporting a line is a fact about the company, not a gap in the data. */
  .fin.fin tbody td.dim { color: var(--kilby-secondary); font-weight: 400; }
  /* Kilby's existing red, so a loss here reads the same as a loss anywhere else
     in the product. */
  .fin.fin tbody td.neg { color: var(--kilby-red); }

  .fin-empty { font-size: 12px; color: var(--kilby-secondary); line-height: 1.5; }

  /* Amber, not red: the figures are true and useful, merely older than they
     should be. Red would say "wrong", which they are not. */
  .fin-stale { color: var(--kilby-amber); margin-bottom: 4px; }
  /* A calculated figure: a dotted underline, how it was worked out on hover. */
  .fin td.fin-calc { text-decoration: underline dotted; text-decoration-color: var(--kilby-secondary); text-underline-offset: 3px; cursor: help; }
  .fin-calc-note { margin-bottom: 4px; }
  .fin-bars g.calc, #companyView g.calc { cursor: help; }
  g.calc line.calc-line { stroke: var(--kilby-secondary); stroke-width: 1.5; stroke-dasharray: 2 3; }
  .fin-footer { font-size: 10px; color: var(--kilby-faint); margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(var(--kilby-tint),0.05); line-height: 1.5; }

  @media (max-width: 899px) {
    .fin { width: max-content; min-width: 100%; }
    /* The metric column holds its ground while the periods scroll under it. */
    .fin.fin th.metric, .fin.fin td.metric {
      position: sticky; left: 0; z-index: 2; background: var(--kilby-panel);
      box-shadow: 1px 0 0 rgba(255,255,255,0.05); width: auto; min-width: 148px;
    }
  }

  /* ── Macro dashboard (/macro) ──────────────────────────────────────────────
     His ruling, 21 Aug 2026: "You should make it look like TEK2day Finance
     macro dashboard, but change the colors." So the LAYOUT is deliberately
     TEK2day's — a header with as-of and contract metadata on the right, then
     six boxed panels two across, each with its own title, an INDICATOR column
     and a source line at its foot.

     ⚠️ WHAT CHANGES IS THE PALETTE. TEK2day's section titles are orange; Kilby's
     accent is blue (#2563eb, lightened to #60a5fa so it reads as a heading on a
     dark panel rather than disappearing into it). Type is Kilby's sans rather
     than TEK2day's monospace, with tabular figures so columns still line up. */
  .macro-card { padding: 16px; }

  .macro-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
  .macro-h1 { color: var(--kilby-white); font-size: 16px; font-weight: 700; line-height: 1.2; }
  .macro-meta { text-align: right; color: var(--kilby-faint); font-size: 10px; letter-spacing: 0.04em; line-height: 1.6; white-space: nowrap; }

  /* Two panels across on desktop — source order produces TEK2day's own pairing
     (Market|Rates, Money|Inflation, Growth|Labor) without hard-coding which
     panel goes where, so a section added upstream lands correctly on its own.
     Stacked below 900px, which is the format he asked for on mobile. */
  .macro-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
  @media (min-width: 900px) {
    .macro-grid { grid-template-columns: 1fr 1fr; }
  }

  .macro-panel {
    min-width: 0; padding: 12px 14px 10px;
    border: 1px solid rgba(var(--kilby-tint),0.07); border-radius: 10px;
    background: rgba(var(--kilby-tint),0.02);
  }
  /* The one place the palette swap is visible: TEK2day's orange becomes Kilby's
     blue. Everything else about the panel is TEK2day's arrangement. */
  .macro-panel-title { color: var(--kilby-link); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

  .macro-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .macro { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }

  /* ⚠️ THE CLASS IS DOUBLED ON PURPOSE, same as .comp.comp — `.msg.bot th` is
     Kilby's markdown-table style and outranks a single `.macro th`, forcing
     uppercase 11px #bbb and a border this card does not want. Do not "tidy"
     this to one class. */
  .macro.macro th, .macro.macro td {
    border: 0; background: none; text-transform: none; letter-spacing: normal;
    padding: 6px 0; text-align: right; vertical-align: top; white-space: nowrap;
  }
  .macro.macro th:not(.metric), .macro.macro td:not(.metric) { padding-left: 12px; }
  .macro.macro thead th {
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--kilby-faint); font-weight: 600; padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--kilby-tint),0.07);
  }
  .macro.macro thead th.metric { text-align: left; }

  /* Long names — "Nonfarm Payrolls – Reported Monthly Change" — wrap rather than
     forcing the table past its panel and clipping the values on the right. Only
     labels wrap; figures stay on one line. */
  .macro.macro th.metric, .macro.macro td.metric {
    text-align: left; font-weight: 400; padding-right: 12px;
    white-space: normal; width: 44%;
  }
  .macro.macro tbody tr + tr th.metric, .macro.macro tbody tr + tr td { border-top: 1px solid rgba(var(--kilby-tint),0.05); }

  .macro-label { display: block; color: var(--kilby-white); font-weight: 600; font-size: 12px; line-height: 1.25; }
  /* The series behind the row — FEDFUNDS, ^GSPC, BC_10YEAR. TEK2day shows it the
     same way: it is how a reader checks WHICH series they are looking at. */
  .macro-code { display: block; color: var(--kilby-faint); font-size: 9.5px; margin-top: 2px; letter-spacing: .02em; }

  .macro-value { display: block; color: var(--kilby-white); font-weight: 700; font-size: 13px; line-height: 1.2; }
  /* An absent figure is a dimmed em dash — never zero, never the string "N/A".
     The dash is written by the renderer; this only dims it. */
  .macro-value.dim { color: var(--kilby-secondary); font-weight: 400; }
  .macro-date { display: block; color: var(--kilby-faint); font-size: 9.5px; margin-top: 2px; min-height: 11px; }

  .macro-panel-source { color: var(--kilby-faint); font-size: 9.5px; text-align: right; margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(var(--kilby-tint),0.05); }

  .macro-empty { font-size: 12px; color: var(--kilby-secondary); line-height: 1.5; }

  /* A stale dashboard must announce itself. Amber rather than red: the data is
     true and useful, it is simply older than it should be — red would say
     "wrong", which it is not. */
  .macro-stale { color: var(--kilby-amber); margin-bottom: 4px; }
  .macro-footer { font-size: 10px; color: var(--kilby-faint); margin-top: 12px; line-height: 1.5; }

  /* Below 900px the panels stack and a table can outgrow the screen, so the
     indicator column holds its ground and the values scroll under it. Here the
     solid background is doing real work rather than drawing a band for no
     reason — a band on desktop was the first thing he called out. */
  @media (max-width: 899px) {
    .macro { width: max-content; min-width: 100%; }
    .macro.macro th.metric, .macro.macro td.metric {
      position: sticky; left: 0; z-index: 2; background: var(--kilby-panel);
      box-shadow: 1px 0 0 rgba(255,255,255,0.05);
    }
    .macro-head { flex-direction: column; gap: 8px; }
    .macro-meta { text-align: left; }
  }

/* ── /TICKER debt (renderDebtCard; owner, 2026-11-02; approved mockup docs/debt-terms-mockup) ─────────────────
   The chart's series are the validated categorical slots, in light and dark steps (dataviz validator, 2026-11-02).
   Type in four levels (owner, 2026-11-02: "The grey font is too hard to see and too many elements ... use the same
   color and same size font, no differentiation"): 1. figures and headings, large, bold, main ink; 2. section titles,
   main ink, bold, a size above the labels (not blue: blue means it opens something); 3. labels, 12.5-13px, semibold;
   4. notes, 12px, Kilby's secondary gray, never smaller and never the faint gray. */
:root {
  --dt-s1: #3987e5; --dt-s2: #d95926; --dt-s3: #199e70; --dt-s4: #c98500; --dt-s5: #d55181;
  --dt-s6: #008300; --dt-s7: #9085e9; --dt-s8: #e66767; --dt-sx: #8b98ab;
  --dt-hl: rgba(77,139,240,0.16);
}
:root[data-theme="light"] {
  --dt-s1: #2a78d6; --dt-s2: #eb6834; --dt-s3: #1baf7a; --dt-s4: #eda100; --dt-s5: #e87ba4;
  --dt-s6: #008300; --dt-s7: #4a3aa7; --dt-s8: #e34948; --dt-sx: #5f6b7d;
  --dt-hl: rgba(37,99,235,0.10);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    --dt-s1: #2a78d6; --dt-s2: #eb6834; --dt-s3: #1baf7a; --dt-s4: #eda100; --dt-s5: #e87ba4;
    --dt-s6: #008300; --dt-s7: #4a3aa7; --dt-s8: #e34948; --dt-sx: #5f6b7d;
    --dt-hl: rgba(37,99,235,0.10);
  }
}

/* The card fills the answer's column, like the financials card, with room for it beside the file panel. */
.msg-bot-container:has(.dt-card) { max-width: 920px; }
.msg.bot:has(> .dt-card) { max-width: min(96vw, 920px); width: 100%; }
/* No gray panel behind the card (owner, 2026-11-02): it sits on the chat's own background, one hairline border. */
.kilby-card.dt-card { padding: 20px 20px 16px; margin-bottom: 12px; background: transparent; backdrop-filter: none;
  -webkit-backdrop-filter: none; border-color: rgba(var(--kilby-tint),0.12); }
.dt-head { margin-bottom: 16px; }
.dt-card .fin-h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.dt-meta { font-size: 13px; font-weight: 600; color: var(--kilby-white); margin-top: 4px; }
.dt-name-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.dt-since { font-size: 12.5px; color: var(--kilby-secondary); }

/* Key figures, as filed: three across. */
.dt-tiles-note { font-size: 12px; color: var(--kilby-secondary); margin: 0 0 4px; }
.dt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.dt-tile { border: 1px solid rgba(var(--kilby-tint),0.10); border-radius: 10px; padding: 12px 14px; }
.dt-tile-label { font-size: 12.5px; font-weight: 600; color: var(--kilby-secondary); }
.dt-tile-value { font-size: 24px; font-weight: 700; color: var(--kilby-white); margin-top: 4px; letter-spacing: -0.015em; line-height: 1.15; }
.dt-tile-value.neg { color: var(--kilby-red); }
.dt-tile-note { font-size: 12px; color: var(--kilby-secondary); margin-top: 4px; }
@media (max-width: 640px) { .dt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Face value and carrying value in one tile, the same size, each its own link (owner, 2026-11-03). */
.dt-figs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.dt-fig { padding: 0 6px; margin: 0 -6px; }

/* Section titles: main ink, bold, with room above and a rule to start the section. */
.dt-section { font-size: 15px; font-weight: 700; color: var(--kilby-white); letter-spacing: -0.005em;
  margin: 26px 0 10px; padding-top: 16px; border-top: 1px solid rgba(var(--kilby-tint),0.10); }

/* The chart. */
.dt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; font-weight: 500; color: var(--kilby-white); margin: 2px 0 8px; }
.dt-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dt-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dt-sw.s1 { background: var(--dt-s1); } .dt-sw.s2 { background: var(--dt-s2); } .dt-sw.s3 { background: var(--dt-s3); }
.dt-sw.s4 { background: var(--dt-s4); } .dt-sw.s5 { background: var(--dt-s5); } .dt-sw.s6 { background: var(--dt-s6); }
.dt-sw.s7 { background: var(--dt-s7); } .dt-sw.s8 { background: var(--dt-s8); }
.dt-sw-window { border: 1.5px dashed var(--kilby-secondary); width: 9px; height: 9px; }
.dt-chart { position: relative; }
.dt-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dt-grid { stroke: rgba(var(--kilby-tint),0.08); stroke-width: 1; }
.dt-axis { stroke: rgba(var(--kilby-tint),0.30); stroke-width: 1; }
.dt-tick { fill: var(--kilby-secondary); font: 500 11.5px 'DM Sans', sans-serif; }
.dt-seg { stroke: none; cursor: pointer; transition: d .45s ease-out, opacity .2s; }
.dt-seg.s1 { fill: var(--dt-s1); } .dt-seg.s2 { fill: var(--dt-s2); } .dt-seg.s3 { fill: var(--dt-s3); }
.dt-seg.s4 { fill: var(--dt-s4); } .dt-seg.s5 { fill: var(--dt-s5); } .dt-seg.s6 { fill: var(--dt-s6); }
.dt-seg.s7 { fill: var(--dt-s7); } .dt-seg.s8 { fill: var(--dt-s8); }
/* The filing's own figure for a year, all debt (chartedTranches): slate, apart from every currency's color. */
.dt-seg.sx { fill: var(--dt-sx); } .dt-sw.sx { background: var(--dt-sx); }
.dt-svg:hover .dt-seg { opacity: .55; }
.dt-svg .dt-seg.hot, .dt-svg .dt-seg.dt-active { opacity: 1; }
.dt-seg.dt-active { stroke: var(--kilby-white); stroke-width: 1.5; }
.dt-window-rect { fill: none; pointer-events: all; stroke: var(--kilby-secondary); stroke-width: 1.2; stroke-dasharray: 4 3; rx: 4; }
.dt-window { cursor: pointer; }
.dt-window-label { fill: var(--kilby-link); font: 600 12px 'DM Sans', sans-serif; }
.dt-marker { cursor: pointer; }
.dt-marker-line { stroke: var(--kilby-secondary); stroke-width: 1; stroke-dasharray: 2 3; }
.dt-marker-label { fill: var(--kilby-link); font: 500 11.5px 'DM Sans', sans-serif; }
.dt-peak { fill: var(--kilby-white); font: 700 12.5px 'DM Sans', sans-serif; }
/* Labels over the dashed lines: a halo in the card's own color keeps the dashes from cutting through them. */
.dt-peak, .dt-window-label, .dt-marker-label { paint-order: stroke; stroke: var(--kilby-black); stroke-width: 4px; stroke-linejoin: round; }
.dt-tip { position: absolute; z-index: 5; pointer-events: none; max-width: 300px; background: var(--kilby-panel);
  border: 1px solid var(--kilby-border); border-radius: 8px; padding: 9px 11px; font-size: 12.5px; line-height: 1.45; color: var(--kilby-white);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.dt-tip b { font-weight: 700; }
.dt-tip-sub { color: var(--kilby-secondary); margin-top: 3px; }
.dt-tip-go { color: var(--kilby-link); margin-top: 5px; font-size: 12px; font-weight: 600; }
.dt-recon { font-size: 13px; color: var(--kilby-secondary); margin-top: 8px; line-height: 1.6; }
.dt-recon span:nth-child(2), .dt-recon .dt-cite { color: var(--kilby-white); font-weight: 700; }
/* Blue means it opens its filing (owner, 2026-11-02: "If a figure is clickable, give it that hyperlink blue color").
   Nothing that can't be clicked is blue. A negative keeps Kilby's red, the color of a loss everywhere in Kilby. */
.dt-tile.dt-cite .dt-tile-value:not(.neg),
.dt-fig.dt-cite .dt-tile-value,
.fin.fin.dt-table tbody td.dt-cite,
.dt-recon .dt-cite,
.dt-calc.dt-cite { color: var(--kilby-link); }
.dt-ok { color: var(--kilby-green); font-weight: 700; }
/* The filing's own table of principal due by year, row by row under the bars. */
.dt-schedule { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--kilby-white); margin: 6px 0 4px; line-height: 1.5; }
.dt-schedule-head { color: var(--kilby-secondary); }
.dt-recon .dt-schedule > span.dt-schedule-item { white-space: nowrap; color: var(--kilby-white); font-weight: 400; }
.dt-schedule .dt-calc { margin-top: 0; font-size: 13px; }
.dt-foot { font-size: 12px; color: var(--kilby-secondary); margin-top: 4px; line-height: 1.5; }

/* Tables: the financials card's table, with the issue column on the left. Headings are labels (level 3, gray);
   the figures under them are main ink and a size up, so the two never read alike. */
.fin.fin.dt-table { font-size: 13px; }
.fin.fin.dt-table th:first-child, .fin.fin.dt-table td.dt-issue { text-align: left; padding-left: 0; white-space: normal; }
.fin.fin.dt-table td.dt-issue { min-width: 190px; }
.fin.fin.dt-table thead th { font-size: 12px; color: var(--kilby-secondary); font-weight: 600; }
.fin.fin.dt-table tbody td { font-weight: 500; padding-top: 8px; padding-bottom: 8px; }
/* An issue's or facility's name is a row title, bold, in link blue when it opens its document. */
.dt-name { color: var(--kilby-link); font-weight: 700; text-decoration: none; cursor: pointer; }
.dt-name:hover { text-decoration: underline; }
.dt-name.dt-plain, .dt-name.dt-plain:hover { cursor: default; color: var(--kilby-white); text-decoration: none; }  /* no document to open */
.dt-sub { font-size: 12px; color: var(--kilby-secondary); font-weight: 400; margin-top: 2px; }
.dt-muted { color: var(--kilby-secondary) !important; font-weight: 400 !important; }

/* Covenants and ranking: the term's name is a bold label; what the document says is reading text. */
.dt-terms { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; font-size: 13px; }
.dt-term { display: contents; }
.dt-term > div { padding: 10px 0; border-top: 1px solid rgba(var(--kilby-tint),0.08); }
.dt-term:first-child > div { border-top: 0; }
.dt-term-name { color: var(--kilby-white); font-weight: 700; padding-right: 14px !important; }
.dt-term-says { color: var(--kilby-white); line-height: 1.55; }
.dt-term-where { text-align: right; padding-left: 14px !important; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.dt-calc { margin-top: 4px; font-size: 12px; color: var(--kilby-secondary); }
@media (max-width: 640px) {
  .dt-terms { grid-template-columns: minmax(0, 1fr) auto; }
  .dt-term-name { grid-column: 1 / -1; padding-bottom: 0 !important; }
  .dt-term-says { border-top: 0 !important; }
  .dt-term-where { border-top: 0 !important; }
}

/* Anything that opens its source: link blue, a soft wash on hover; the one open in the panel stays marked. */
.dt-doc { color: var(--kilby-link); text-decoration: none; cursor: pointer; }
.dt-doc:hover { text-decoration: underline; }
.dt-tile.dt-cite, .dt-fig.dt-cite, td.dt-cite, .dt-recon .dt-cite, .dt-calc.dt-cite { cursor: pointer; border-radius: 6px; }
.dt-tile.dt-cite:hover, .dt-fig.dt-cite:hover, td.dt-cite:hover, .dt-recon .dt-cite:hover, .dt-calc.dt-cite:hover { background: var(--dt-hl); }
td.dt-cite:hover { box-shadow: inset 0 -1.5px 0 var(--kilby-link); }
.dt-tile.dt-active { border-color: var(--kilby-link); background: var(--dt-hl); }
.dt-fig.dt-active { background: var(--dt-hl); }
td.dt-active, .dt-recon .dt-active, .dt-calc.dt-active { background: var(--dt-hl); box-shadow: inset 0 -2px 0 var(--kilby-link); }
a.dt-active { text-decoration: underline; text-decoration-thickness: 2px; }
/* No focus box on click (owner, 2026-11-02: "the clickable box is weird"); the keyboard still gets one. */
.dt-card .dt-cite:focus:not(:focus-visible) { outline: none; }
.dt-svg .dt-cite:focus { outline: none; }
.dt-window.dt-active .dt-window-rect, .dt-window:focus-visible .dt-window-rect { stroke: var(--kilby-link); stroke-dasharray: none; stroke-width: 1.5; }
.dt-marker.dt-active .dt-marker-line, .dt-marker:focus-visible .dt-marker-line { stroke: var(--kilby-link); stroke-dasharray: none; }
.dt-window:hover .dt-window-label, .dt-marker:hover .dt-marker-label { text-decoration: underline; }
.dt-card .kilby-card-source { font-size: 12px; color: var(--kilby-secondary); margin-top: 14px; line-height: 1.5; }

/* Streaming: a part whose filing is still being read is a soft shimmer the size of the figure. No words. */
@keyframes dt-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.dt-wait { color: transparent !important; border-radius: 5px; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--kilby-tint),0.06) 0%, rgba(var(--kilby-tint),0.14) 50%, rgba(var(--kilby-tint),0.06) 100%) 0 0 / 300% 100%;
  animation: dt-shimmer 1.2s linear infinite; }
.dt-since-wait { display: inline-block; width: 280px; max-width: 60vw; height: 14px; }
.dt-sub-wait { width: 150px; height: 12px; margin-top: 5px; }
.dt-cell-wait { display: inline-block; width: 56px; height: 12px; vertical-align: middle; }
.dt-recon-wait { display: inline-block; width: 70%; height: 14px; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .dt-wait { animation: none; } .dt-seg { transition: none; } }

/* An SEC filing in the file panel reads on white, like the PDF viewer's page. */
.wp-pdf.wp-sec { background: #fff; }

/* Debt, by instrument (owner, 2026-11-02): one table across -- Description, Maturity, Pricing, Outstanding, Terms --
   grouped into notes, bank loans and commercial paper, and other, each with a subtotal, then the totals. What a bank
   line can lend sits under its name, blue (it opens its sentence). Terms is words, left-aligned and wrapping; its
   phrases that open a filing are blue. */
.fin.fin.dt-table.dt-instruments { table-layout: fixed; width: 100%; }
.fin.fin.dt-table.dt-instruments td { vertical-align: top; }
.fin.fin.dt-table.dt-instruments th:nth-child(1) { width: 26%; }
.fin.fin.dt-table.dt-instruments th:nth-child(2) { width: 11%; }
.fin.fin.dt-table.dt-instruments th:nth-child(3) { width: 14%; }
.fin.fin.dt-table.dt-instruments th:nth-child(4) { width: 11%; }
.fin.fin.dt-table.dt-instruments th:nth-child(5) { width: 38%; }
.dt-issue .dt-lends .dt-cite { color: var(--kilby-link); cursor: pointer; }
.fin.fin.dt-table.dt-instruments td, .fin.fin.dt-table.dt-instruments th { white-space: normal; overflow-wrap: anywhere; }
.fin.fin.dt-table.dt-instruments td.dt-issue { min-width: 0; }
.fin.fin.dt-table.dt-instruments th.dt-terms-h, .fin.fin.dt-table.dt-instruments td.dt-tcell {
  text-align: left; min-width: 0; padding-left: 16px; overflow-wrap: normal; }
.fin.fin.dt-table.dt-instruments td.dt-tcell { font-size: 12.5px; line-height: 1.45; color: var(--kilby-white); }
.dt-tcell .dt-cite { color: var(--kilby-link); cursor: pointer; border-radius: 4px; }
.dt-tcell .dt-cite:hover { background: var(--dt-hl); }
.dt-tcell .dt-active { background: var(--dt-hl); box-shadow: inset 0 -2px 0 var(--kilby-link); }
.fin.fin.dt-table.dt-instruments tr.dt-group td { font-weight: 700; color: var(--kilby-white); padding-top: 18px;
  font-size: 14.5px; letter-spacing: -0.005em; }
.fin.fin.dt-table.dt-instruments tr.dt-subtotal td { font-weight: 600; color: var(--kilby-white);
  border-top: 1px solid rgba(var(--kilby-tint),0.35); }
.fin.fin.dt-table.dt-instruments tr.dt-total td { font-weight: 700; color: var(--kilby-white);
  border-top: 2px solid rgba(var(--kilby-tint),0.55); }
.fin.fin.dt-table.dt-instruments tr.dt-total-debt td { border-top-width: 1px; }
.fin.fin.dt-table.dt-instruments td.dt-total-label, .fin.fin.dt-table.dt-instruments tr.dt-group td { text-align: left; padding-left: 0; }
.fin.fin.dt-table.dt-instruments tr.dt-subtotal td.dt-cite, .fin.fin.dt-table.dt-instruments tr.dt-total td.dt-cite,
.fin.fin.dt-table.dt-instruments tr.dt-line td.dt-cite { color: var(--kilby-link); }
/* The filing's own lines from what is listed to its total (DOW's discount, its current portion): its words, plain. */
.fin.fin.dt-table.dt-instruments tr.dt-line td { font-size: 14.5px; }
.fin.fin.dt-table.dt-instruments tr.dt-line td.dt-cite.neg { color: var(--kilby-red); }
/* Group headings, subtotals and totals read a size above the instruments' rows (owner, 2026-11-02). */
.fin.fin.dt-table.dt-instruments tr.dt-subtotal td, .fin.fin.dt-table.dt-instruments tr.dt-total td { font-size: 14.5px; }
/* The tick sits just past the figure and takes no width, so the total debt figure lines up with the figures above. */
.fin.fin.dt-table.dt-instruments td span.dt-ok { position: absolute; padding-left: 3px; }
@media (max-width: 640px) {
  .fin.fin.dt-table.dt-instruments { table-layout: auto; min-width: 760px; }
}

/* Off the balance sheet (owner, 2026-11-02, the approved META mockup): ventures the company doesn't consolidate, as
   its own table of its maximum exposure to loss gives them. Description, Amount, Terms; a group per venture table. */
.dt-part-offBalance:not(:empty) { margin: 22px 0 10px; }
.ob-table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 13px; }
.ob-table th { font-weight: 600; font-size: 12.5px !important; text-transform: none !important; letter-spacing: normal !important;
  text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border, #e4e4e7); }
.ob-table td { padding: 8px; border-bottom: 1px solid var(--border, #e4e4e7); vertical-align: top; text-align: left; }
.ob-table th:first-child, .ob-table td:first-child { padding-left: 0; }
.ob-table .ob-d { width: 34%; font-weight: 600; }
.ob-table .ob-n { width: 100px; text-align: right; white-space: nowrap; }
.ob-table .ob-t { font-weight: 400; }
.ob-group td { font-weight: 700; font-size: 14.5px; padding-top: 12px; }
.ob-total td { font-weight: 700; font-size: 14.5px; border-top: 1px solid currentColor; border-bottom: none; }
/* How the total outstanding was reached, under its label: each figure opens its line. */
.fin.fin.dt-table.dt-instruments td.dt-total-label .dt-sub { font-weight: 400; font-size: 12px; }
.dt-total-label .dt-sub .dt-cite { color: var(--kilby-link); cursor: pointer; }

/* ── Card refresh (#548; owner, 2026-11-11: "Round 4 looks good ... please build the whole refresh"; approved mockup
   docs/card-style-mockup). Styling only; same content. Later in the file than each card's own rules, so these win
   at equal weight. Readable type levels: descriptions bold in the main ink, figures regular in the main ink,
   headings bold; notes in the secondary gray, never the faint one; blue only on what can be clicked. ── */
:root { --card-bg: rgba(22,22,22,0.55); --card-solid: #0c0c0c; --card-line: rgba(255,255,255,0.08); --card-hair: rgba(255,255,255,0.06); --card-shadow: none; }
:root[data-theme="light"] { --card-bg: #ffffff; --card-solid: #ffffff; --card-line: #e4e4e8; --card-hair: #eeeef1;
  --card-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05); }
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] { --card-bg: #ffffff; --card-solid: #ffffff; --card-line: #e4e4e8; --card-hair: #eeeef1;
    --card-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05); }
}

/* Every card: white in light mode, a soft border and shadow, hairline rows. */
.kilby-card { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--card-line); background: var(--card-bg); box-shadow: var(--card-shadow); font-size: 13px; }
.kilby-card-title { font-size: 14px; letter-spacing: .03em; }
.kilby-card-divider { border-top-color: var(--card-hair); margin: 18px 0 14px; }
.kilby-card-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; color: var(--kilby-white); margin-bottom: 10px; }
.kilby-card-row { padding: 7px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.kilby-card-row + .kilby-card-row { border-top: 1px solid var(--card-hair); }
.kilby-card-key { color: var(--kilby-white); font-weight: 600; }
.kilby-card-val { font-weight: 400; }
.kilby-card-source { font-size: 11px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--card-hair); }
/* The debt card takes the shared frame only; it keeps its own padding and, in dark, no panel (owner, 2026-11-02). */
.kilby-card.dt-card { border-radius: 16px; border-color: var(--card-line); box-shadow: var(--card-shadow); }

/* Quote card (/TICKER). */
.stock-price { font-size: 32px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.stock-meta { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 400;
  font-variant-numeric: tabular-nums; background: color-mix(in srgb, currentColor 11%, transparent); }
.kilby-card-desc { font-size: 13px; line-height: 1.65; color: var(--kilby-secondary); }
/* SEC filings: links without the underline until hovered, one per row. */
.kilby-card-link { font-size: 13px; color: var(--kilby-link); text-decoration: none; }
.kilby-card-link:hover { text-decoration: underline; }
.kilby-estimate-asof { font-size: 12px; margin: -4px 0 10px; }
.kilby-estimate-table { gap: 0; }
.kilby-estimate-header { font-size: 10.5px; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--card-line); }
.kilby-estimate-row { font-size: 13px; padding: 7px 0; }
.kilby-estimate-row + .kilby-estimate-row { border-top: 1px solid var(--card-hair); }
.kilby-estimate-period { color: var(--kilby-white); font-weight: 600; }
.kilby-estimate-val { font-weight: 400; }
.kilby-card > .kilby-card-label + .kilby-card-title { margin: 2px 0 12px; }

/* /macro: panel names are headings (ink, not blue); codes and dates in the secondary gray. */
.macro-card { padding: 24px; }
.macro-head { margin-bottom: 18px; }
.macro-h1 { font-size: 20px; letter-spacing: -.01em; }
.macro-meta { color: var(--kilby-secondary); font-size: 10.5px; }
.macro-grid { gap: 16px; }
.macro-panel { padding: 16px 18px 12px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.macro-panel-title { color: var(--kilby-white); font-size: 11.5px; letter-spacing: .1em; margin-bottom: 10px; }
.macro.macro thead th { font-size: 10px; color: var(--kilby-secondary); border-bottom-color: var(--card-line); }
.macro.macro th, .macro.macro td { padding: 8px 0; }
.macro.macro th:not(.metric), .macro.macro td:not(.metric) { padding-left: 14px; }
.macro.macro tbody tr + tr th.metric, .macro.macro tbody tr + tr td { border-top-color: var(--card-hair); }
.macro.macro tbody tr:hover th, .macro.macro tbody tr:hover td { background: rgba(var(--kilby-tint), .025); }
.macro-label { font-size: 13px; }
.macro-value { font-size: 14px; font-weight: 400; }
.macro-code, .macro-date { color: var(--kilby-secondary); font-size: 10px; margin-top: 3px; }
.macro-panel-source { color: var(--kilby-secondary); font-size: 10.5px; border-top-color: var(--card-hair); }
.macro-footer { color: var(--kilby-secondary); font-size: 11px; margin-top: 16px; }

/* /comp */
.comp.comp th, .comp.comp td { padding: 8px 0; font-size: 13px; }
.comp.comp th:not(.metric), .comp.comp td:not(.metric) { padding-left: 24px; }
.comp.comp thead th { padding-bottom: 12px; border-bottom: 1px solid var(--card-line); }
.comp.comp th.metric, .comp.comp td.metric { background: var(--card-solid); box-shadow: 1px 0 0 var(--card-solid); }
.comp.comp .tick { font-size: 14px; }
.comp.comp td.v { font-weight: 400; }
.comp.comp th.metric { color: var(--kilby-white); font-weight: 600; }
.comp.comp tbody tr + tr th, .comp.comp tbody tr + tr td { border-top: 1px solid var(--card-hair); }
.comp.comp tr.group td, .comp.comp tr.group th { padding-top: 8px; border-top: 1px solid var(--card-line); }
.comp.comp tbody tr:hover th, .comp.comp tbody tr:hover td { background: rgba(var(--kilby-tint), .025); }
.comp-hint { font-size: 11px; color: var(--kilby-secondary); }

/* Statements (/TICKER inc, bal, cf): "Income Statement" bold, its unit regular (owner, 2026-11-11); QUARTERLY and
   ANNUAL are headings in ink, on the dates' line in the empty corner above the line items. */
.fin-card { padding: 24px; }
.fin-head { margin-bottom: 18px; }
.fin-h1 { font-size: 20px; letter-spacing: -.01em; }
.fin-h2 { color: var(--kilby-white); font-weight: 700; font-size: 12px; margin-top: 4px; }
.fin-unit { color: var(--kilby-secondary); font-weight: 400; }
.fin-section { position: relative; }
.fin-section + .fin-section { margin-top: 24px; }
.fin-section-title { color: var(--kilby-white); font-size: 11.5px; letter-spacing: .1em;
  position: absolute; left: 0; top: 0; z-index: 3; margin: 0; padding-top: 8px; line-height: 16px; }
.fin.fin th, .fin.fin td { padding: 8px 0; font-size: 13px; }
.fin.fin th:not(.metric), .fin.fin td:not(.metric) { padding-left: 18px; }
.fin.fin thead th { font-size: 12px; line-height: 16px; padding-bottom: 10px; border-bottom-color: var(--card-line); }
.fin.fin th.metric { color: var(--kilby-white); font-weight: 600; }
.fin.fin tbody td { font-weight: 400; }
.fin.fin tbody tr + tr th.metric, .fin.fin tbody tr + tr td { border-top-color: var(--card-hair); }
.fin.fin tbody tr:hover th, .fin.fin tbody tr:hover td { background: rgba(var(--kilby-tint), .025); }
.fin-footer { color: var(--kilby-secondary); font-size: 11px; margin-top: 16px; padding-top: 12px; border-top-color: var(--card-hair); }
/* The three statements as tabs, and a chart of two lines above the tables (owner, 2026-11-15; approved mockup
   docs/live-financials-mockup, "Card in chat"). */
/* The statements switch as the chart's buttons do (owner, 2026-11-15: the gray tabs were "too obscure"; "look to how
   Google Finance does it - they do it similar to our chart buttons"): one tray, the chosen statement black and white. */
.fin-tabs { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--kilby-panel); margin: 0 0 14px; }
.fin-tabs button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; color: var(--kilby-secondary);
  font: 600 13px 'DM Sans', sans-serif; cursor: pointer; }
.fin-tabs button:hover { color: var(--kilby-link); }
.fin-tabs button.on { background: var(--kilby-black); color: var(--kilby-white); box-shadow: 0 0 0 1px var(--kilby-border); }
.fin-chart { margin: 0 0 16px; }
.fin-chart-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fin-legend { display: flex; gap: 16px; font-size: 13px; color: var(--kilby-white); }
.fin-scale { font-size: 13px; font-weight: 600; color: var(--kilby-white); }
.fin-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.fin-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--kilby-panel); margin-left: auto; }
.fin-seg button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; color: var(--kilby-secondary);
  font: 600 13px 'DM Sans', sans-serif; cursor: pointer; }
.fin-seg button:hover { color: var(--kilby-link); }
.fin-seg button.on { background: var(--kilby-black); color: var(--kilby-white); box-shadow: 0 0 0 1px var(--kilby-border); }
.fin-bars svg { display: block; width: 100%; height: 200px; }
.fin-bars text { fill: var(--kilby-secondary); font: 500 15px 'DM Sans', sans-serif; }
.fin-bars .val { fill: var(--kilby-white); font-weight: 600; }
/* A phone's chart is drawn 360 wide (kilby-data-cards.js _finChart): it keeps its own shape, and its figures sit over
   bars about 37 units wide, so they are a little smaller than on a computer. */
.fin-bars svg.narrow { height: auto; }
.fin-bars svg.narrow text { font-size: 13px; }
/* On a phone the label column stays put while the figures scroll: the card's own color behind it, not a gray band. */
@media (max-width: 899px) {
  .macro.macro th.metric, .macro.macro td.metric, .fin.fin th.metric, .fin.fin td.metric {
    background: var(--card-solid); box-shadow: 1px 0 0 var(--card-solid); }
}

/* FRED series (/cpi and the rest) and /brief: the history as a thin gray line, as the home page draws a name's day. */
.fred-title { font-size: 16px; font-weight: 700; color: var(--kilby-white); margin: 2px 0 10px; }
.fred-cell-key { color: var(--kilby-white); font-weight: 600; }
.fred-sparkline { margin: 12px 0 6px; line-height: 0; }
.fred-sparkline svg { display: block; width: 100%; height: 36px; overflow: visible; }
.fred-sparkline .spark-line { fill: none; stroke: var(--kilby-secondary); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fred-sparkline .spark-fill { fill: var(--kilby-secondary); opacity: .08; }
.brief-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.brief-head .kilby-card-label { margin: 0; }
.brief-date { font-size: 11px; color: var(--kilby-secondary); }
.brief-section { font-size: 11px; font-weight: 700; color: var(--kilby-white); text-transform: uppercase; letter-spacing: .09em; margin: 14px 0 10px; }
.kilby-card-divider.brief-divider { margin: 14px 0 4px; }
.brief-index-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; padding: 6px 0 0; }
.brief-index-name { font-size: 13px; font-weight: 600; color: var(--kilby-white); }
.brief-index-vals { text-align: right; }
.brief-index-val { font-size: 13px; font-weight: 400; color: var(--kilby-white); }
.brief-index-chg { font-size: 11px; }
.brief-macro-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; margin: 0; }
.brief-macro-row + .brief-macro-row { border-top: 1px solid var(--card-hair); }
.brief-macro-key { font-size: 13px; font-weight: 600; color: var(--kilby-white); }
.brief-macro-val { font-size: 13px; font-weight: 400; color: var(--kilby-white); }
.brief-macro-chg { font-size: 11px; margin-left: 6px; font-weight: 400; }

/* /pulse headlines */
.pulse-article { padding: 12px 0; }
.pulse-article + .pulse-article { border-top-color: var(--card-hair); }
.pulse-article-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.pulse-article-byline { font-size: 11.5px; margin-top: 3px; }
.pulse-article-summary { font-size: 13px; line-height: 1.55; margin-top: 6px; }
.pulse-article-link { font-size: 12px; margin-top: 6px; }

/* /iso and /finra: the code is a label, not a link (ink on a light chip); FINRA's details as two columns,
   names bold, values regular (owner, 2026-11-11). */
.code-entry { padding: 10px 0; }
.code-entry + .code-entry { border-top-color: var(--card-hair); }
.code-tag { color: var(--kilby-white); background: rgba(var(--kilby-tint), .06); font-size: 12.5px; padding: 2px 7px; border-radius: 6px; }
.code-reason { font-size: 14px; font-weight: 600; }
.code-desc { font-size: 13px; line-height: 1.6; margin-top: 8px; }
.code-sets { font-size: 12.5px; color: var(--kilby-secondary); margin-top: 8px; }
.code-detail-row { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; font-size: 13px; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid var(--card-hair); }
.code-detail-key { color: var(--kilby-white); font-weight: 600; }
.code-detail-val { color: var(--kilby-white); line-height: 1.55; }
