/* ── Company view (owner, 2026-11-15: "OK yes. Build it."; look approved "Looks great!"; docs/ideas/live-company-financials.md,
   approved mockup docs/live-financials-mockup/index.html) ──
   The Watchlist column on the left (the home page's own, kilby-home.js), the company in the middle, Kilby's real chat on the
   right. kilby-company.js sets body.company-on, and body.company-wide when the window holds all three columns. The styles
   are the mockup's, under #companyView; only the class prefix changed (lf- to cv-). */
.company-view { display: none; }
/* On the page's own background, white in light (owner, 2026-11-15: "Why is the whole middle company section bathe in
   muted gray rather than white?"); the cards keep their outline. */
body.company-on .company-view { display: block; flex: 1; min-width: 0; min-height: 0; overflow-y: auto; box-sizing: border-box;
  padding: 18px 32px 90px; }
/* Scroll bars show while the pointer is over their column (owner, 2026-11-15: "why do I always see the scroll bar rather
   when I just hover?"); the thumb is kilby.css's thin gray one. */
body.company-on .company-view, body.company-wide .home-wl { scrollbar-color: transparent transparent; }
body.company-on .company-view:hover, body.company-wide .home-wl:hover {
  scrollbar-color: color-mix(in srgb, var(--kilby-faint) 55%, transparent) transparent; }
/* The Watchlist column (kilby-home.js draws it; the home page's widths and divider). */
body.company-wide .home-wl { display: block; width: var(--home-wl-width, clamp(280px, 18vw, 340px)); flex-shrink: 0; min-height: 0; overflow-y: auto;
  box-sizing: border-box; padding: 20px 20px 40px 24px; border-right: 1px solid var(--kilby-border); }
body.company-wide .home-wl + .home-divider, body.company-wide .cv-divider { display: block; position: relative; flex: 0 0 8px; margin: 0 -4px;
  z-index: 5; cursor: col-resize; }
.cv-divider { display: none; }
/* The Watchlist closed with its X beside a company too: its tray in its place (kilby.css .home-tray). */
body.company-wide.home-wl-closed .home-wl, body.company-wide.home-wl-closed .home-divider-wl { display: none; }
body.company-wide.home-wl-closed #homeWlTray { display: flex; }
.cv-divider::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: transparent; transition: background .15s ease; }
.home-row.on { background: var(--kilby-panel); box-shadow: inset 3px 0 0 var(--kilby-white); }
/* The chat, docked right: a third of the window, dragged at its edge (owner, 2026-11-15: "These sidebars need to have flexible
   width."). */
body.company-wide .ws-chat { flex: 0 0 var(--cv-chat-width, clamp(480px, 34vw, 720px)); min-width: 0; border-left: 1px solid var(--kilby-border); }
body.company-on .ws-chat.ws-chat-empty { justify-content: flex-start; padding-top: 50px; }
body.company-on .ws-chat .ws-chat-greeting { font-size: 21px; }
.cv-prompts { display: none; }
body.company-on .ws-chat.ws-chat-empty .cv-prompts:not(:empty) { display: flex; flex-direction: column; align-items: stretch; gap: 14px; align-self: stretch; width: 100%; max-width: 760px; margin: 16px auto 0;
  box-sizing: border-box; }
/* 16px medium, the size of the prompts under answers (owner, 2026-11-15: "the questions look too aint, mock up new font"
   ... "Looks much better at that medium weight!"; docs/prompt-font-mockup). */
.cv-prompts .next-step-btn { font-size: 16px; font-weight: 500; }

/* The company */
#companyView .cv-head { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; margin-top: 2px; }
#companyView .cv-head-l { flex: 0 0 auto; min-width: 230px; }
#companyView .cv-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#companyView .cv-name { font-size: 22px; font-weight: 700; color: var(--kilby-white); letter-spacing: -.01em; }
/* The ticker as a quiet chip beside the name (owner, 2026-11-16: "not so bland"; approved mockup docs/ticker-style-mockup/).
   Dark text, never blue (blue means clickable); the page's own hairline tint, so it reads in light and dark. */
#companyView .cv-sym { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--kilby-white);
  background: rgba(var(--kilby-tint), .06); border: 1px solid rgba(var(--kilby-tint), .10); border-radius: 6px;
  padding: 3px 8px 2px; line-height: 1.2; }
#companyView .cv-sym:empty { display: none; }
/* Add to list: the Watchlist's "+ Target" (kilby.css .tp-tlink) a size up, and a menu of lists and portfolios. */
#companyView .cv-add { position: relative; margin-top: 4px; }
#companyView .cv-add:empty { display: none; }
#companyView .cv-add-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none;
  color: var(--kilby-link); font: 600 14px 'DM Sans', sans-serif; cursor: pointer; }
#companyView .cv-add-btn:hover span, #companyView .cv-add-btn[aria-expanded="true"] span { text-decoration: underline; }
#companyView .cv-add-btn:disabled { opacity: .5; cursor: default; }
#companyView .cv-add svg { width: 15px; height: 15px; flex: none; }
/* Solid, as Kilby's other menus (kilby.css .tp-menu-pop): the cards' own background is see-through in dark. */
#companyView .cv-add-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 220px; max-height: 60vh; overflow-y: auto;
  padding: 6px 0; background: var(--kilby-panel); border: 1px solid var(--kilby-border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
#companyView .cv-add-menu[hidden] { display: none; }
#companyView .cv-add-group { padding: 8px 14px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--kilby-secondary); }
#companyView .cv-add-menu button { display: block; width: 100%; text-align: left; padding: 7px 14px; border: 0; background: none;
  color: var(--kilby-white); font: 500 14px 'DM Sans', sans-serif; cursor: pointer; }
#companyView .cv-add-menu button:hover { color: var(--kilby-link); }
#companyView .cv-add-done { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--kilby-white); }
#companyView .cv-add-done svg { color: var(--kilby-green); }
#companyView .cv-add-btn:has(+ .cv-add-done) { margin-right: 16px; }   /* "Added to" beside the button; wrapped, under it at the left */
#companyView .cv-add-err { display: block; margin-top: 4px; font-size: 13px; color: var(--kilby-red); }
#companyView .cv-quote { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
#companyView .cv-price { font-size: 44px; font-weight: 700; color: var(--kilby-white); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
#companyView .cv-spark svg { display: block; width: 92px; height: 40px; }   /* the Watchlist row's day line, its shape kept */
#companyView .cv-quote2 { display: flex; align-items: baseline; gap: 12px; margin-top: 2px; }
#companyView .cv-move { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
#companyView .cv-asof { font-size: 13px; color: var(--kilby-secondary); }
#companyView .pos { color: var(--kilby-green); }
#companyView .neg { color: var(--kilby-red); }
#companyView .cv-rd { font-size: 13px; color: var(--kilby-white); margin-top: 6px; }
#companyView .cv-rd:empty { display: none; }
#companyView .cv-rd b { font-weight: 600; color: var(--kilby-secondary); margin-right: 6px; }
#companyView .cv-rd .tp-rd-est { margin-left: 4px; }
#companyView .cv-card { border: 1px solid var(--card-line); border-radius: 16px; background: var(--card-bg); box-shadow: var(--card-shadow); }
/* The figures sit beside the price while there is room, under it when the columns are dragged narrow. */
#companyView .cv-figs { flex: 1 1 460px; min-width: 0; container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#companyView .cv-figs:empty { display: none; }
#companyView .cv-fig { padding: 14px 16px; min-width: 0; }
#companyView .cv-fig:nth-child(n+4) { border-top: 1px solid var(--card-hair); }
#companyView .cv-fig:not(:nth-child(3n+1)) { border-left: 1px solid var(--card-hair); }
#companyView .cv-fig-k { font-size: 12.5px; color: var(--kilby-secondary); }
#companyView .cv-fig-v { font-size: 20px; font-weight: 600; color: var(--kilby-white); margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@container (max-width: 600px) { #companyView .cv-fig-v { font-size: 17px; } #companyView .cv-fig { padding: 12px 14px; } }
#companyView .cv-tabs { display: flex; gap: 26px; margin-top: 20px; border-bottom: 1px solid var(--kilby-border); }
#companyView .cv-tabs button { border: 0; background: none; padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent;
  color: var(--kilby-secondary); font: 600 15px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; }
#companyView .cv-tabs button:hover { color: var(--kilby-link); }
#companyView .cv-tabs button.on { color: var(--kilby-white); border-bottom-color: var(--kilby-white); }
#companyView .cv-body { margin-top: 16px; }
/* An index page: no tabs, the chart right under the header and taller (the mockup's ?index=IXIC). */
#companyView.cv-index .cv-tabs { display: none; }
#companyView.cv-index .cv-body { margin-top: 20px; }
#companyView.cv-index .cv-pc-plot { height: 380px; }
/* The ranges fit their cells, as on the mockup; where they can't, a range wraps after its dash. */
#companyView.cv-index .cv-fig { padding-left: 12px; padding-right: 12px; }
#companyView.cv-index .cv-fig-v { font-size: 17px; white-space: normal; }
#companyView.cv-index .cv-desc .kilby-card-desc { columns: 1; }
#companyView .cv-empty { padding: 18px 2px; font-size: 14px; color: var(--kilby-secondary); }
#companyView .cv-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--kilby-panel); }
#companyView .cv-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; }
#companyView .cv-seg button:hover { color: var(--kilby-link); }
#companyView .cv-seg button.on { background: var(--kilby-black); color: var(--kilby-white); box-shadow: 0 0 0 1px var(--kilby-border); }

/* Overview: the price chart and the company description */
#companyView .cv-pc { padding: 14px 18px 8px; position: relative; }
#companyView .cv-pc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#companyView .cv-pc-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#companyView .cv-pc-head .cv-seg { margin-left: auto; }
/* The range's change beside its name ("+9.24 +3.98% Today"), in the line's color (owner, 2026-11-25, on the mockup
   docs/stock-chart-mockup/: "That chart looks great!"). The chart is TradingView's Lightweight Charts, drawn on a canvas. */
#companyView .cv-pc-span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; flex: 1 1 260px; min-width: 0; font-size: 13px; color: var(--kilby-secondary); }
/* Each line's change at the top left (owner, 2026-11-25: "You put the dollar and percentage change for each ticker in the
   top left corner of the chart"; docs/stock-chart-mockup/compare.html): while comparing, its color, its ticker, its
   change, and an X on an added line. */
#companyView .cv-leg { display: inline-flex; align-items: center; gap: 7px; font: 500 13px 'DM Sans', sans-serif; color: var(--kilby-white);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
#companyView .cv-leg i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
#companyView .cv-leg b { font-weight: 600; }
#companyView .cv-leg .cv-pc-move { margin-right: 0; }
#companyView .cv-leg button { width: 20px; height: 20px; margin-left: -3px; border: 0; background: none; border-radius: 50%;
  color: var(--kilby-secondary); cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; }
#companyView .cv-leg button:hover { background: var(--kilby-panel); color: var(--kilby-white); }
/* Compare beside the ranges ("it should be in line with the items at the top"), and its box: each name with its price
   and today's change ("they should show their percentage change"). */
#companyView .cv-cmp-wrap { position: relative; display: inline-flex; }
#companyView .cv-cmp-add { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 8px;
  font: 600 13px 'DM Sans', sans-serif; color: var(--kilby-link); cursor: pointer; border-radius: 8px; }
#companyView .cv-cmp-add:disabled { color: var(--kilby-secondary); cursor: default; }
#companyView .cv-cmp-add svg { width: 14px; height: 14px; }
#companyView .cv-cmp-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; width: 340px; max-width: calc(100vw - 32px);
  box-sizing: border-box; padding: 8px; background: var(--card-solid); border: 1px solid var(--card-line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14); }
#companyView .cv-cmp-box[hidden] { display: none; }
#companyView .cv-cmp-box input { width: 100%; box-sizing: border-box; padding: 8px 10px; margin-bottom: 4px; border: 1px solid var(--card-line);
  border-radius: 8px; background: none; color: var(--kilby-white); font: 400 14px 'DM Sans', sans-serif; outline: 0; }
#companyView .cv-cmp-list button { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 1px; width: 100%; padding: 7px 8px;
  border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--kilby-white); text-align: left; font-family: 'DM Sans', sans-serif; }
#companyView .cv-cmp-list button:hover { background: var(--kilby-panel); }
#companyView .cv-cmp-list b, #companyView .cv-cmp-list strong { font: 600 14px 'DM Sans', sans-serif; font-variant-numeric: tabular-nums; }
#companyView .cv-cmp-list strong { text-align: right; }
#companyView .cv-cmp-list span { font-size: 12.5px; color: var(--kilby-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#companyView .cv-cmp-list em { font: normal 600 12.5px 'DM Sans', sans-serif; text-align: right; font-variant-numeric: tabular-nums; }
/* While comparing: each line's ticker at its end, on the price axis ("label each stock if possible"), and each line's
   change in the hover. */
#companyView .cv-axis .cv-axis-tag { transform: translateY(-50%); padding: 3px 7px; border-radius: 5px; color: #fff; font: 600 11.5px 'DM Sans', sans-serif; }
#companyView .cv-tip .cv-tip-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-top: 3px; }
#companyView .cv-tip .cv-tip-row i { width: 8px; height: 8px; border-radius: 50%; }
#companyView .cv-tip .cv-tip-row b { display: inline; font-size: 13px; margin-left: auto; padding-left: 10px; }
#companyView .cv-pc-move { font-size: 14px; font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
#companyView .cv-pc-plot { height: 280px; margin-top: 6px; position: relative; z-index: 0; }
/* The price lines and the dashed line under the chart's canvas, so they never cut the price line (owner, 2026-11-25:
   "You have a line break in the chart"). */
#companyView .cv-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#companyView .cv-grid i { position: absolute; left: 0; height: 0; border-top: 1px solid var(--card-hair); }
#companyView .cv-grid i.cv-grid-ref { border-top: 1px dashed var(--kilby-secondary); opacity: .7; }
/* The axes' dollar amounts and times as the page's own text, in Kilby's type: the chart before used these (owner,
   2026-11-25: "the US Dollar amount and time of day fonts could be more crisp, like the rest of Kilby"). */
#companyView .cv-axis { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
#companyView .cv-axis span { position: absolute; font: 500 12px 'DM Sans', sans-serif; line-height: 1; color: var(--kilby-secondary);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
#companyView .cv-axis .cv-axis-y { transform: translateY(-50%); }
#companyView .cv-axis .cv-axis-x { transform: translate(-50%, -50%); }
/* TradingView's credit under the chart, off the line ("the TradingView logo is truncated" on it), and large enough that
   its dot stands apart from the V on an ordinary screen (at the library's 35px they ran together: "the logo is still
   fucked up", 2026-11-25). */
#companyView .cv-pc-credit { display: inline-flex; margin-top: 4px; color: var(--kilby-white); }
#companyView .cv-pc-credit svg { display: block; width: 46px; height: 25px; }
#companyView .cv-tip { position: absolute; z-index: 5; pointer-events: none; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--card-line);
  background: var(--card-solid); color: var(--kilby-white); font: 500 12.5px 'DM Sans', sans-serif; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
#companyView .cv-tip b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
#companyView .cv-tip .cv-tip-vol { display: block; font-size: 12px; color: var(--kilby-secondary); }
#companyView .cv-tip[hidden] { display: none; }
#companyView .cv-desc { margin-top: 16px; padding: 20px 22px; }
#companyView .cv-desc .kilby-card-desc { columns: 2; column-gap: 40px; font-size: 13.5px; }
#companyView .cv-desc .kilby-card-source { margin-top: 16px; }

/* Financials: the statement card's own markup; its chart and each table are cards of their own, the main lines stand out,
   and dates read "Dec 2025" (owner, 2026-11-15: "The "Financails" and "News" tabs look bland."). */
#companyView .cv-body > .fin-card { max-width: none; width: auto; margin: 0; background: none; border: 0; box-shadow: none; padding: 0;
  backdrop-filter: none; }
#companyView .fin-h1, #companyView .fin-head { display: none; }
#companyView .fin-tabs { margin: 0 0 14px; }
#companyView .fin-chart, #companyView .fin-section { border: 1px solid var(--card-line); border-radius: 16px; background: var(--card-bg);
  box-shadow: var(--card-shadow); padding: 18px 22px 16px; margin: 0; }
#companyView .fin-chart { padding-bottom: 8px; }
#companyView .fin-chart + .fin-section, #companyView .fin-section + .fin-section { margin-top: 16px; }
#companyView .fin-section-title { display: flex; align-items: baseline; gap: 10px; color: var(--kilby-white); font-size: 15px; font-weight: 700;
  text-transform: none; letter-spacing: 0; margin-bottom: 8px; position: static; padding-top: 0; line-height: 1.3; }
#companyView .fin-section-title .fin-unit { margin: 0; font-size: 12.5px; font-weight: 400; color: var(--kilby-secondary); }
#companyView .fin.fin { font-size: 13.5px; }
#companyView .fin.fin th, #companyView .fin.fin td { padding-top: 9px; padding-bottom: 9px; }
#companyView .fin.fin thead th { color: var(--kilby-secondary); font-weight: 600; font-size: 12.5px; letter-spacing: 0; text-transform: none;
  border-bottom: 1px solid var(--card-line); }
#companyView .fin.fin thead th:last-child { color: var(--kilby-white); padding-right: 10px; }   /* over its figures (owner: "the alignment is off") */
#companyView .fin.fin tbody td { font-weight: 400; }
#companyView .fin.fin tbody th.metric { font-weight: 400; color: var(--kilby-secondary); padding-left: 10px; }
#companyView .fin.fin tbody td:last-child { padding-right: 10px; }
#companyView .fin.fin tbody tr.cv-key > * { font-weight: 700; color: var(--kilby-white); background: rgba(var(--kilby-tint),0.035); }
#companyView .fin.fin tbody tr.cv-key th.metric { border-radius: 8px 0 0 8px; }
#companyView .fin.fin tbody tr.cv-key td:last-child { border-radius: 0 8px 8px 0; }
/* The full statement (TEK2day's every line): detail indented under its main line, 16px a level. */
#companyView .fin.fin tbody tr[data-level="1"] th.metric { padding-left: 26px; }
#companyView .fin.fin tbody tr[data-level="2"] th.metric { padding-left: 42px; }
#companyView .fin.fin tbody tr[data-level="3"] th.metric { padding-left: 58px; }
#companyView .fin.fin tbody tr[data-level="4"] th.metric { padding-left: 74px; }
#companyView .fin.fin tbody tr[data-level="5"] th.metric { padding-left: 90px; }
/* Every statement: lines flush left, totals stepped in, 16px a step (kilby-company.js decorate). */
#companyView .cv-steps .fin.fin tbody tr[data-step="0"] th.metric { padding-left: 10px; }
#companyView .cv-steps .fin.fin tbody tr[data-step="1"] th.metric { padding-left: 26px; }
#companyView .cv-steps .fin.fin tbody tr[data-step="2"] th.metric { padding-left: 42px; }
#companyView .cv-steps .fin.fin tbody tr[data-step="3"] th.metric { padding-left: 58px; }
/* A subtotal in the main ink, semibold, with a rule above it as in a filed statement; the totals bold on their band,
   ruled the same (docs/statement-indent-mockup). */
#companyView .cv-steps .fin.fin tbody tr.cv-sub > * { color: var(--kilby-white); font-weight: 600; }
#companyView .cv-steps .fin.fin tbody tr.cv-sub > *, #companyView .cv-steps .fin.fin tbody tr.cv-key > * { border-top: 1px solid var(--kilby-secondary); }
#companyView .fin.fin tbody tr:hover > * { background: rgba(var(--kilby-tint),0.07); }
#companyView .fin.fin tbody tr + tr th.metric, #companyView .fin.fin tbody tr + tr td { border-top-color: var(--card-hair); }
#companyView .fin-footer { border: 0; margin-top: 10px; padding: 0 4px; font-size: 11.5px; }
/* On a phone the line names stay put while the periods scroll under them (kilby-data-cards.css). Two things make that work
   (owner, 2026-11-18: "the financials are not mobile friendly"; then "nothing scrolls"):
   - The names wrap in a 128px column, so the periods get most of the card. Unwrapped, the longest name took 259 of 292px
     and the figures sat hidden behind the names.
   - The names are solid. --card-bg is see-through in dark (it only looks solid on the black page), so the figures showed
     through; --card-solid is that same color, solid. The totals' and touched row's tints are laid over it. */
@media (max-width: 899px) {
  #companyView .fin.fin th.metric { width: 128px; min-width: 128px; max-width: 128px; white-space: normal; overflow-wrap: anywhere; background: var(--card-solid); }
  #companyView .fin.fin tbody tr.cv-key > th.metric { background: linear-gradient(rgba(var(--kilby-tint),0.035), rgba(var(--kilby-tint),0.035)), var(--card-solid); }
  #companyView .fin.fin tbody tr:hover > th.metric { background: linear-gradient(rgba(var(--kilby-tint),0.07), rgba(var(--kilby-tint),0.07)), var(--card-solid); }
}

/* News: by day, a card per day, the time beside each filing, the holdings said once instead of on every filing. */
#companyView .cv-nheld { font-size: 13px; color: var(--kilby-secondary); margin: 2px 2px 14px; }
#companyView .cv-nday { margin: 22px 2px 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--kilby-secondary); }
#companyView .cv-nday:first-child, #companyView .cv-nheld + .cv-nday { margin-top: 0; }
#companyView .cv-ngroup { padding: 4px 22px; }
#companyView .cv-ngroup .news-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 14px; padding: 16px 0; margin: 0; border: 0; }
#companyView .cv-ngroup .news-item + .news-item { border-top: 1px solid var(--card-hair); }
#companyView .cv-ntime { font-size: 13px; color: var(--kilby-secondary); padding-top: 2px; font-variant-numeric: tabular-nums; }
#companyView .cv-ngroup .news-label { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--kilby-white); }
#companyView .cv-ngroup .news-label a { font-size: 13px; font-weight: 500; margin-left: 10px; }
#companyView .cv-ngroup .news-free { margin-top: 10px; padding: 2px 0 2px 14px; border-left: 3px solid var(--card-line); font-size: 14px; line-height: 1.55;
  color: var(--kilby-white); }
#companyView .cv-ngroup .news-src { margin-top: 6px; padding-left: 17px; }
#companyView .cv-ngroup .news-ask { margin-top: 12px; }

/* EPS Calendar (owner, 2026-11-15; redrawn after "looks so blah") */
#companyView .cv-eps { margin-top: 4px; }
/* The cards share the column and may shrink below their widest line (minmax(0, …)); the date card puts its calendar above
   its words when narrow. Before, at a 1440 window the date card would not shrink and the row ran 38px past the column,
   clipping "EPS" on the third card (found 2026-11-18 shooting the User Guide). */
#companyView .cv-eps-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
#companyView .cv-tile { border: 1px solid var(--card-line); border-radius: 14px; padding: 16px 18px; background: var(--card-bg); box-shadow: var(--card-shadow); }
#companyView .cv-tile-cal { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
#companyView .cv-cal { width: 78px; flex-shrink: 0; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--kilby-border); }
#companyView .cv-cal-m { background: var(--kilby-panel); color: var(--kilby-white); border-bottom: 1px solid var(--kilby-border); font: 700 13px 'DM Sans', sans-serif;
  letter-spacing: .12em; padding: 5px 0; }
#companyView .cv-cal-d { font: 700 34px/1.1 'DM Sans', sans-serif; color: var(--kilby-white); padding-top: 6px; }
#companyView .cv-cal-y { font-size: 12px; color: var(--kilby-secondary); padding-bottom: 7px; }
#companyView .cv-tile-h { font-size: 13px; font-weight: 600; color: var(--kilby-white); }
#companyView .cv-cal-when { font-size: 18px; font-weight: 700; color: var(--kilby-white); margin-top: 4px; }
#companyView .cv-cal-in { display: inline-block; font-size: 13px; color: var(--kilby-white); margin-top: 2px; }
#companyView .cv-est { display: table; margin-top: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--kilby-white); border: 1px solid var(--kilby-secondary); }
#companyView .cv-tile-big { font: 700 30px/1.15 'DM Sans', sans-serif; color: var(--kilby-white); margin-top: 8px; font-variant-numeric: tabular-nums; }
#companyView .cv-tile-big span { font-size: 14px; font-weight: 600; margin-left: 6px; color: var(--kilby-secondary); }
#companyView .cv-tile-sub { display: inline-block; font-size: 12.5px; color: var(--kilby-secondary); margin-top: 2px; }
#companyView .cv-tile-rev { font-size: 15px; font-weight: 600; color: var(--kilby-white); margin-top: 12px; font-variant-numeric: tabular-nums; }
#companyView .cv-tile-rev span { font-size: 12.5px; font-weight: 400; color: var(--kilby-secondary); }
#companyView .cv-eps-asof { font-size: 12.5px; color: var(--kilby-secondary); margin: 8px 2px 14px; }
#companyView .cv-chartbox { border: 1px solid var(--card-line); border-radius: 14px; padding: 14px 18px 10px; background: var(--card-bg); box-shadow: var(--card-shadow); }
#companyView .cv-chart-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
#companyView .cv-chart-head .cv-seg { margin-left: auto; }
#companyView .cv-legend { display: flex; gap: 16px; font-size: 13px; color: var(--kilby-white); }
#companyView .cv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
#companyView .cv-legend i.cv-dash { background: none; border: 2px dashed var(--dt-s1); width: 6px; height: 6px; }
#companyView .cv-bars svg { display: block; width: 100%; height: 240px; }
#companyView .cv-bars text { fill: var(--kilby-secondary); font: 500 14px 'DM Sans', sans-serif; }
#companyView .cv-bars .val { fill: var(--kilby-white); font-weight: 600; }
/* The EPS chart is drawn at the width it shows at (kilby-company.js epsBars), so its height is its own and its text
   shows at full size. */
#companyView .cv-bars svg.fit.fit { height: auto; }
/* In a narrow card the dates under five bars would touch at full size. */
#companyView .cv-bars svg.narrow text:not(.val) { font-size: 12px; }
#companyView .cv-eps .kilby-card-source { margin-top: 12px; }
#companyView .cv-eps-top .cv-tile:empty { display: none; }

/* Narrower than the three columns (a phone, or a small window): the company alone, full width; Ask Kilby shows the chat in
   its place, still about the company, and Back comes back to it. */
body.company-on:not(.company-wide):not(.company-asking) .ws-chat { display: none; }
body.company-on.company-asking .company-view { display: none; }
body.company-on:not(.company-wide) .company-view { padding: 12px 16px 96px; }
body.company-on:not(.company-wide) #companyView .cv-head { flex-direction: column; gap: 14px; }
body.company-on:not(.company-wide) #companyView .cv-head-l { min-width: 0; }
body.company-on:not(.company-wide) #companyView .cv-figs { flex: none; width: 100%; box-sizing: border-box; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.company-on:not(.company-wide) #companyView .cv-fig:nth-child(n+3) { border-top: 1px solid var(--card-hair); }
body.company-on:not(.company-wide) #companyView .cv-fig:not(:nth-child(3n+1)) { border-left: 0; }
body.company-on:not(.company-wide) #companyView .cv-fig:nth-child(2n) { border-left: 1px solid var(--card-hair); }
@media (max-width: 700px) {
  body.company-on #companyView .cv-name { font-size: 20px; }
  body.company-on #companyView .cv-price { font-size: 36px; }
  body.company-on #companyView .cv-fig { padding: 10px 14px; }
  body.company-on #companyView .cv-fig-v { font-size: 18px; }
  /* The range's change stays on a phone, as on a desktop; the ranges wrap under it. */
  body.company-on #companyView .cv-pc-head { flex-wrap: wrap; row-gap: 8px; }
  body.company-on #companyView .cv-pc-head .cv-seg { margin-left: 0; }
  body.company-on #companyView .cv-cmp-box { right: auto; left: 0; }
  body.company-on #companyView .cv-pc-plot { height: 200px; }
  body.company-on #companyView .cv-desc .kilby-card-desc { columns: 1; }
  body.company-on #companyView .cv-tabs { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  body.company-on #companyView .cv-seg button { padding: 5px 9px; }
  body.company-on #companyView .cv-chart-head .cv-seg { margin-left: 0; }
  body.company-on #companyView .cv-bars svg { height: 170px; }
  body.company-on #companyView .cv-eps-top { grid-template-columns: 1fr; }
}
.cv-pill { display: none; }
body.company-on:not(.company-wide):not(.company-asking) .cv-pill { display: flex; position: fixed; right: 16px; bottom: 18px; z-index: 50;
  align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--kilby-border); background: var(--kilby-panel);
  color: var(--kilby-white); font: 600 14px 'DM Sans', sans-serif; box-shadow: 0 4px 16px rgba(0,0,0,.25); cursor: pointer; }
.cv-pill:hover { border-color: var(--kilby-blue); }

/* Chats (owner, 2026-11-26: "Yes, go with Chats."; docs/COMPANY_VIEW_CHATS_PLAN.md, the mockup
   docs/company-chats-mockup/): the Filings tab's day groups and rows, each row a conversation, its passage under the
   title with the mention in bold. */
#companyView .cv-chats .cv-chat-row { cursor: pointer; margin: 0 -12px; padding: 16px 12px; border-radius: 8px; }
#companyView .cv-chats .cv-chat-row + .cv-chat-row { border-top: 1px solid var(--card-hair); }
#companyView .cv-chats .cv-chat-row:hover .news-label { color: var(--kilby-link); }
#companyView .cv-chats .cv-chat-row.on { background: var(--kilby-panel); }
#companyView .cv-chats .news-free { margin-top: 8px; color: var(--kilby-secondary); }
#companyView .cv-chats .news-free b { font-weight: 600; color: var(--kilby-white); }
/* Where a chat opened from the tab lands: its first mention of the company, marked (owner, 2026-11-26: "the yellow mark"). */
mark.cv-hit { background: #fde68a; color: #17171c; border-radius: 3px; box-shadow: 0 0 0 2px #fde68a; }
