/* Noorult company lookup. Tokens from the Noorult design system (claude/noorult-design-system.md). */
:root {
  --canvas: #FFFFFF; --ink: #000000; --text: #111111; --muted: #555555; --paper: #F4F4F4;
  --navy: #0B1D3F; --navy-2: #14306B; --orange: #FF7F00; --amber: #FFB347; --royal: #2B4BD6;
  --red: #E8141C; --green: #3CB043; --grey-scribble: #C8C8C8;
  --f-display: 'Shantell Sans', 'Comic Sans MS', 'Arial Black', sans-serif;
  --f-body: 'Shantell Sans', system-ui, -apple-system, sans-serif;
  --f-data: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --bw: 3px; --bw-heavy: 4px; --bw-thin: 2px;
  --shadow-flat: 4px 4px 0 var(--ink);
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;
  --gutter: 16px; --container: 1120px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  font-variation-settings: 'BNCE' 0, 'INFM' 0; }
.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
a { color: var(--royal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
#app:focus { outline: none; }

.display { font-family: var(--f-display); font-weight: 800; font-variation-settings: 'BNCE' 0, 'INFM' 50; text-transform: uppercase; line-height: 1.05; letter-spacing: 0.01em; }
.hand { font-family: var(--f-body); font-weight: 400; font-variation-settings: 'BNCE' 0, 'INFM' 100; font-size: 18px; }
.data, table.num td, table.num th { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* header */
.site-header { border-bottom: var(--bw) solid var(--ink); background: var(--canvas); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: var(--s-3); min-height: 72px; flex-wrap: wrap; padding-top: var(--s-2); padding-bottom: var(--s-2); }
.mark { background: var(--navy); color: var(--on-fill); border: var(--bw) solid var(--orange); padding: 6px 12px; font-size: 20px; text-decoration: none; }
.header-link { color: var(--ink); text-decoration: none; font-size: 16px; }
.header-link:hover { text-decoration: underline; }
#header-search { flex: 1 1 260px; max-width: 420px; margin-left: auto; }
@media (max-width: 640px) { #header-search { flex-basis: 100%; max-width: none; margin-left: 0; } }

/* search */
.search { position: relative; }
.search input { width: 100%; height: 48px; padding: 0 14px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 0;
  font: 16px var(--f-body); color: var(--text); }
.search input:focus { border-color: var(--royal); outline: none; }
.search.big input { height: 64px; font-size: 20px; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; background: var(--canvas); border: var(--bw) solid var(--ink); border-top: 0;
  margin: 0; padding: 0; list-style: none; z-index: 30; max-height: 60vh; overflow-y: auto; }
.suggest li { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; cursor: pointer; min-height: 48px; border-top: 1px solid var(--grey-scribble); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--paper); }
.suggest .t { font-family: var(--f-data); font-weight: 600; min-width: 64px; }
.suggest .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .x { font-size: 13px; color: var(--muted); }

/* trios */
.bar { background: var(--navy); color: var(--on-fill); padding: 14px 18px; font-size: clamp(18px, 3vw, 26px); position: relative; margin: var(--s-5) 0 0; }
.bar::before, .bar-white::before { content: ""; position: absolute; inset: 0; border: var(--bw-heavy) solid var(--orange); filter: url(#wobble); pointer-events: none; }
.bar-white { background: var(--canvas); color: var(--ink); padding: 12px 16px; font-size: 22px; position: relative; display: inline-block; }
.bar-white::before { border: var(--bw) solid var(--ink); }
.chip { display: inline-block; background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); padding: 3px 9px; font-size: 14px; }
.chip.navy { background: var(--navy); color: var(--on-fill); border-color: var(--orange); }
.stamp { display: inline-block; background: var(--red); color: var(--on-fill); border: var(--bw-thin) solid var(--on-fill); outline: var(--bw-thin) solid var(--red);
  padding: 4px 10px; font-size: 15px; transform: rotate(-8deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; cursor: pointer;
  background: var(--canvas); color: var(--ink); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); font: 800 15px var(--f-display);
  font-variation-settings: 'BNCE' 0, 'INFM' 50; text-transform: uppercase; text-decoration: none; transition: none; }
.btn:hover, .btn:active { box-shadow: 0 0 0 var(--ink); transform: translate(4px, 4px); }
.btn.primary { background: var(--navy); color: var(--on-fill); border: var(--bw-heavy) solid var(--orange); }

/* segmented controls */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; }
.seg button { min-height: 44px; padding: 8px 14px; background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); margin: 0 -2px -2px 0;
  font: 800 14px var(--f-display); font-variation-settings: 'BNCE' 0, 'INFM' 50; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--on-fill); border-color: var(--ink); position: relative; z-index: 1; }
.controls { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin: var(--s-4) 0 var(--s-3); }
.controls .grow { flex: 1; }
.controls input[type=search] { height: 44px; padding: 0 12px; background: var(--paper); border: var(--bw-thin) solid var(--ink); font: 15px var(--f-body); min-width: 200px; }

/* home */
.hero { padding: var(--s-7) 0 var(--s-5); }
.hero h1 { font-size: clamp(44px, 8vw, 104px); margin: 0 0 var(--s-4); line-height: 0.95; }
.hero p { max-width: 640px; margin: 0 0 var(--s-5); }
.picks { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); margin: var(--s-6) 0; }
.card { border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: var(--s-3); background: var(--canvas); }
.card h3 { margin: 0 0 var(--s-2); font-size: 20px; }
.card p { margin: 0; font-size: 15px; }

/* company header */
.co-head { padding: var(--s-5) 0 var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: flex-end; }
.co-head h1 { font-size: clamp(32px, 5vw, 56px); margin: 0; }
.co-head .tick { font-family: var(--f-data); font-size: clamp(22px, 3vw, 32px); font-weight: 600; margin-left: 10px; }
.co-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border: var(--bw) solid var(--ink); margin: var(--s-3) 0 0; }
.stat { padding: 12px 14px; border-right: 1px solid var(--grey-scribble); border-bottom: 1px solid var(--grey-scribble); }
.stat .k { font-size: 13px; color: var(--muted); line-height: 1.3; }
.stat .v { font-family: var(--f-data); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .v.soon { font-family: var(--f-body); font-size: 14px; font-weight: 400; color: var(--muted); }

/* tabs */
.tabs { display: flex; gap: 0; border-bottom: var(--bw) solid var(--ink); margin-top: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; padding: 12px 14px; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 15px; border: var(--bw-thin) solid transparent; border-bottom: 0; }
.tabs a[aria-current="page"] { background: var(--navy); color: var(--on-fill); border-color: var(--orange); }
.tabs a:hover:not([aria-current]) { text-decoration: underline; }

section.panel { padding: var(--s-4) 0 var(--s-6); }
h2.section { font-size: 28px; margin: var(--s-5) 0 var(--s-3); }
h3.sub { font-size: 20px; margin: var(--s-4) 0 var(--s-2); }

/* tables */
.tscroll { overflow-x: auto; border: var(--bw) solid var(--ink); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--grey-scribble); }
th { font-weight: 600; background: var(--canvas); position: sticky; top: 0; border-bottom: var(--bw-thin) solid var(--ink); }
th:first-child, td:first-child, table.num td:first-child, table.num th:first-child { text-align: left; position: sticky; left: 0; background: var(--canvas); z-index: 1; font-family: var(--f-body);
  border-right: var(--bw-thin) solid var(--ink); white-space: normal; min-width: 240px; max-width: 340px; }
th:first-child { z-index: 2; }
tr.total td { font-weight: 600; }
tr.total td:first-child { font-weight: 700; }
tr.group td { background: var(--paper); font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
td.indent-1:first-child { padding-left: 26px; } td.indent-2:first-child { padding-left: 40px; }
td.neg { color: var(--red); }
table.stmt td.neg { color: var(--text); }
td.col-ttm, th.col-ttm { background: var(--paper); }
td:first-child.col-ttm { background: var(--canvas); }
tr:hover td { background: var(--hover); }
table.plain td:first-child, table.plain th:first-child { min-width: 0; }
table.left td, table.left th { text-align: left; }
.derived { color: var(--muted); font-size: 11px; vertical-align: super; }
.note { font-size: 14px; color: var(--muted); margin: var(--s-2) 0; }

/* summary layout */
.two { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 1024px) { .two { grid-template-columns: 3fr 2fr; } }
.desc p { margin: 0 0 var(--s-3); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.box { border: var(--bw) solid var(--ink); padding: var(--s-3); }

/* charts */
.chart { border: var(--bw) solid var(--ink); padding: var(--s-3) var(--s-3) var(--s-2); margin: var(--s-3) 0; }
.chart h4 { margin: 0 0 var(--s-2); font-size: 16px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { font-family: var(--f-data); font-size: 11px; fill: var(--text); }
.cwrap { position: relative; }
.cwrap svg { touch-action: pan-y; cursor: crosshair; }
.cwrap svg:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
.cwrap .hit { fill: transparent; }
.cwrap .hit.bg.on { fill: var(--paper); }
.cwrap .dot { display: none; pointer-events: none; }
.cwrap .dot.on { display: inline; }
.ctip { position: absolute; z-index: 5; min-width: 190px; max-width: 280px; background: var(--canvas); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat);
  padding: 8px 12px; font: 13px/1.45 var(--f-data); font-variant-numeric: tabular-nums; pointer-events: none; }
.ctip b { display: block; font: 800 15px/1.2 var(--f-display); text-transform: uppercase; margin-bottom: 4px; }
.ctip .tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.ctip .tr span { color: var(--muted); white-space: nowrap; }
.ctip .tr span i { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--ink); margin-right: 6px; vertical-align: -1px; }
.ctip .tr strong { font-weight: 600; text-align: right; color: var(--text); }
.ctip .tr em { grid-column: 1 / -1; font-style: normal; font-size: 12px; text-align: right; margin: -2px 0 2px; }
.ctip em.up { color: var(--up); } .ctip em.dn { color: var(--red); }
.ctip .tx { border-top: var(--bw-thin) solid var(--grey-scribble); margin-top: 4px; padding-top: 4px; }
.legend { display: flex; gap: 16px; font-size: 13px; margin-top: 4px; }
.legend i { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); margin-right: 6px; vertical-align: -1px; }

/* states */
.empty { border: var(--bw) dashed var(--ink); padding: var(--s-5); margin: var(--s-4) 0; }
.soon-panel { padding: var(--s-6) 0; }
.soon-panel .stamp { font-size: 22px; margin-bottom: var(--s-4); }
.loading { padding: var(--s-7) 0; }
.site-footer { border-top: var(--bw) solid var(--ink); padding: var(--s-5) 0 var(--s-6); margin-top: var(--s-6); }
.legal { font-size: 13px; color: var(--muted); max-width: 820px; margin-top: var(--s-3); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-3) 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
@media (max-width: 760px) {
  th:first-child, td:first-child, table.num td:first-child, table.num th:first-child { min-width: 112px; max-width: 128px; font-size: 14px; line-height: 1.3; }
  th, td { padding: 10px 9px; font-size: 14px; }
}

/* TradingView widgets: our border/padding sit on an outer frame, because TradingView sizes its own container to widget + copyright line */
.tv-info { margin-top: var(--s-3); border: var(--bw) solid var(--ink); padding: var(--s-2) var(--s-3) 0; min-height: 120px; }
.tv-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 1024px) { .tv-grid { grid-template-columns: 3fr 2fr; } }
.tv-box { border: var(--bw) solid var(--ink); padding: var(--s-2) var(--s-2) 0; min-height: 440px; }
.tv.tradingview-widget-container { padding: 0; border: 0; margin: 0; max-width: 100%; }
.tv .tradingview-widget-copyright, .tv .tradingview-widget-copyright a { font: 11px/32px var(--f-data) !important; color: var(--muted) !important; text-align: right !important; }
.tv .tradingview-widget-copyright { border-top: var(--bw-thin) solid var(--grey-scribble); }

/* peers */
table.peers th button.sort { background: none; border: 0; padding: 0; font: 600 14px var(--f-data); color: var(--ink); cursor: pointer; white-space: nowrap; min-height: 32px; }
table.peers th button.sort:hover { text-decoration: underline; }
table.peers tr.self td { background: var(--paper); font-weight: 600; }
table.peers tr.self td:first-child { background: var(--paper); box-shadow: inset 6px 0 0 var(--orange); }
table.peers tr.median td { border-bottom: var(--bw-thin) solid var(--ink); font-style: italic; }
table.peers td.sorted { background: var(--tint); }
table.peers tr.self td.sorted { background: var(--tint-2); }
table.peers td.per { font-size: 12px; color: var(--muted); text-align: left; }
.peer-name { display: flex; align-items: center; gap: 8px; }
.peer-sub { font-size: 12px; color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.peer-sub .lvl { font-style: italic; }
button.x { margin-left: auto; width: 28px; height: 28px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); cursor: pointer; font: 700 16px/1 var(--f-data); padding: 0; }
button.x:hover { background: var(--red); color: var(--on-fill); }
#peer-add input { height: 44px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* accounts */
.acct { display: flex; align-items: center; gap: var(--s-3); }
.acct:empty { display: none; }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.acct-me { color: var(--ink); text-decoration: none; border: var(--bw-thin) solid var(--ink); padding: 6px 12px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-me:hover { background: var(--paper); }
@media (max-width: 640px) { .acct { width: 100%; justify-content: flex-end; } }
.tabs a .lock { margin-left: 6px; vertical-align: -1px; opacity: .7; }

.gate { position: relative; min-height: 520px; margin-top: var(--s-2); }
.gate-preview { position: absolute; inset: 0; overflow: hidden; border: var(--bw) solid var(--ink); padding: var(--s-3); filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }
.fake-row { display: flex; gap: 3%; align-items: center; height: 44px; border-bottom: 1px solid var(--grey-scribble); }
.fake-row span, .fake-row i { display: block; height: 12px; background: var(--ink); opacity: .35; }
.fake-row span { opacity: .6; }
.gate-card { position: relative; max-width: 560px; margin: var(--s-6) auto; background: var(--canvas); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: var(--s-5) var(--s-4) var(--s-4); }
.gate-card h2 { font-size: clamp(24px, 3.4vw, 34px); margin: var(--s-3) 0 var(--s-2); }
.gate-card .stamp { position: absolute; top: -18px; left: 18px; }
.perks { margin: var(--s-3) 0; padding: 0; list-style: none; }
.perks li { padding: 6px 0 6px 28px; position: relative; border-bottom: 1px solid var(--grey-scribble); font-size: 15px; }
.perks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 12px; background: var(--orange); border: 2px solid var(--ink); }
.gate-btns { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.member-strip { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: var(--s-4); margin-top: var(--s-6); background: var(--paper); }
.member-strip h3 { margin: 0 0 var(--s-2); font-size: 24px; }
.member-strip p { margin: 0; max-width: 620px; font-size: 15px; }
.member-strip__btns { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.auth { display: grid; grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-6) 0; }
@media (min-width: 900px) { .auth { grid-template-columns: 3fr 2fr; } }
.auth-card { border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: var(--s-5) var(--s-4); max-width: 560px; width: 100%; }
.auth-card h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 var(--s-2); overflow-wrap: anywhere; }
.auth-sub { margin: 0 0 var(--s-4); }
.auth-side { padding-top: var(--s-3); }
.auth-side h2 { font-size: 24px; margin: 0 0 var(--s-2); }
.auth-form { display: flex; flex-direction: column; gap: var(--s-2); }
.f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 15px; margin-top: var(--s-2); }
.f input { height: 48px; padding: 0 12px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 0; font: 16px var(--f-body); color: var(--text); }
.f input:focus { border-color: var(--royal); outline: none; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.hint.err { color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-top: var(--s-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.form-msg { margin: var(--s-2) 0 0; padding: 10px 12px; border: var(--bw-thin) solid var(--ink); font-size: 15px; }
.form-msg.err { border-color: var(--red); color: var(--red); }
.form-msg.ok { border-color: var(--green); }
.btn.wide { width: 100%; margin-top: var(--s-3); }
.btn[disabled] { opacity: .6; cursor: progress; }
.danger { margin-top: var(--s-5); border-top: 1px solid var(--grey-scribble); padding-top: var(--s-3); font-size: 15px; }
.danger summary { cursor: pointer; color: var(--red); font-weight: 600; }
.danger input { height: 44px; padding: 0 12px; border: var(--bw-thin) solid var(--ink); font: 15px var(--f-body); }

/* watchlist */
.co-actions { margin-left: auto; align-self: flex-end; }
.btn.watch { gap: 8px; background: var(--canvas); color: var(--ink); }
.btn.watch.on { background: var(--tint); }
.btn.watch svg { flex: none; }
.watch-msg { margin: 8px 0 0; font-size: 14px; }
.wl .co-head { align-items: flex-start; }
.wl .controls { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin: var(--s-2) 0 var(--s-4); }
.wl .controls .form-msg { margin: 0; }
.wl-idea { cursor: pointer; font-family: var(--f-data); font-weight: 600; min-height: 36px; }
.wl-idea:hover { background: var(--paper); }
.tv-box.tv-quotes { min-height: 0; }
@media (max-width: 640px) { .co-actions { margin-left: 0; width: 100%; } .co-actions .btn { width: 100%; } }

/* ---------- Morningstar-parity additions (Sep 2026) ---------- */
.chip.orange { background: var(--tint); border-color: var(--orange); }
.chip.red { background: var(--red); color: var(--on-fill); border-color: var(--red); }
a.chip.next { text-decoration: none; background: var(--tint); border-color: var(--orange); }
a.chip.next:hover { background: var(--orange); }
.small { font-size: 12px; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--royal); font: 600 14px var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.stats-edit-row { display: flex; justify-content: flex-end; }
.stat[title] { cursor: help; }
.picker { border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: var(--s-3) var(--s-4) var(--s-4); margin: var(--s-2) 0 var(--s-3); background: var(--canvas); }
.picker h3 { font-size: 20px; margin: 0 0 4px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3) var(--s-4); }
.picker fieldset { border: 0; padding: 0; margin: 0; }
.picker legend { font-size: 14px; margin-bottom: 2px; }
.picker .check { margin-top: 4px; font-size: 14px; }
.picker .form-msg { margin: 0; }
.sel { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.sel select { height: 44px; padding: 0 10px; border: var(--bw-thin) solid var(--ink); background: var(--paper); font: 15px var(--f-body); border-radius: 0; max-width: 260px; }
/* chart tab */
.tv-adv { border: var(--bw) solid var(--ink); height: 640px; padding: 0; }
.tv-adv .tv { height: 100%; }
.tv-adv .tradingview-widget-container__widget { height: calc(100% - 32px); width: 100%; }
@media (max-width: 640px) { .tv-adv { height: 480px; } }
/* financials */
th a.fl { text-decoration: none; font-weight: 400; margin-left: 2px; }
/* news */
.next-res { border: var(--bw) solid var(--ink); background: var(--tint); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); margin: var(--s-3) 0; font-size: 15px; }
.next-res .stamp { transform: rotate(-4deg); margin-right: 6px; font-size: 13px; }
ol.news { list-style: none; margin: var(--s-3) 0; padding: 0; border: var(--bw) solid var(--ink); }
.news-month { background: var(--navy); color: var(--on-fill); padding: 6px 14px; font-size: 14px; }
.news-item { display: grid; grid-template-columns: 110px 1fr; gap: 4px var(--s-3); padding: 12px 14px; border-bottom: 1px solid var(--grey-scribble); }
.news-item time { font-family: var(--f-data); font-size: 13px; color: var(--muted); padding-top: 2px; }
.news-title { font-weight: 600; }
.news-title .chip { margin-right: 8px; font-size: 12px; padding: 1px 7px; vertical-align: 1px; }
.news-item p { margin: 2px 0; font-size: 15px; }
.news-item a, .news-item .muted { font-size: 13px; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; } }
ul.mentions { margin: 0; padding: 0 0 0 20px; }
ul.mentions li { margin: 4px 0; }
/* ownership */
table.own svg.spark { display: block; margin-left: auto; }
table.own td .chip { font-size: 12px; padding: 1px 7px; }
.controls .seg + .seg { margin-left: 0; }
/* earnings */
tr.ai-row td { text-align: left; white-space: normal; background: var(--paper); font-family: var(--f-body); }
tr.ai-row td:first-child { position: static; min-width: 0; max-width: none; border-right: 0; background: var(--paper); }
tr.ai-row summary { cursor: pointer; font-weight: 600; }
.ai-text { margin: 8px 0; font-size: 15px; }
/* calendar */
.cal-day { margin-top: var(--s-5); }
.cal-day .muted { font-size: 14px; text-transform: none; font-family: var(--f-body); font-weight: 400; }
table.cal td:first-child { min-width: 260px; }
@media (max-width: 480px) {
  .header-row { gap: 10px; }
  .mark { font-size: 16px; padding: 5px 9px; }
  .header-link { font-size: 13px; }
}
/* sign-in: Google button, divider, bot check */
.btn.google { gap: 10px; background: var(--canvas); color: var(--ink); text-transform: none; font: 700 16px var(--f-body); margin-top: 0; }
.btn.google svg { flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: var(--s-4) 0 var(--s-2); color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; border-top: var(--bw-thin) solid var(--grey-scribble); }
.cap { min-height: 0; margin-top: var(--s-2); }
.cap:empty { display: none; }
#f-user input { height: 40px; padding: 0 10px; border: var(--bw-thin) solid var(--ink); background: var(--paper); font: 15px var(--f-data); width: 200px; }
#f-user .form-msg { margin: 0; }

/* ---------- tools: screener, compare, alerts, lists ---------- */
.visually-hidden { position: absolute; left: -9999px; }
.scr-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: var(--s-2) 0 var(--s-4); }
.scr-presets .chip, .chip.tog, a.chip { cursor: pointer; font: 600 13px var(--f-body); text-decoration: none; color: var(--ink); }
.scr-presets .chip:hover, .chip.tog:hover, a.chip:hover { background: var(--paper); }
.chip.tog.on, .chip.on { background: var(--navy); color: var(--on-fill); border-color: var(--orange); }
.scr-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); align-items: start; }
@media (min-width: 1024px) { .scr-grid { grid-template-columns: 320px 1fr; } .scr-filters { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow-y: auto; } }
.scr-filters h3 { margin: 0 0 var(--s-2); font-size: 20px; }
.fgroup { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--s-2) 0; border-top: 1px solid var(--grey-scribble); margin-top: var(--s-2); }
.fgroup .muted.small { flex-basis: 100%; }
.fgroup .check { flex-basis: 100%; margin-top: 0; font-size: 14px; }
.fgroup select, .controls select { height: 40px; border: var(--bw-thin) solid var(--ink); background: var(--paper); font: 14px var(--f-body); width: 100%; border-radius: 0; }
.controls select { width: auto; max-width: 260px; }
.frow { display: grid; grid-template-columns: 1fr auto; gap: 4px 6px; align-items: center; width: 100%; padding: 6px 0; border-bottom: 1px dashed var(--grey-scribble); }
.frow .flabel { grid-column: 1 / -1; font-size: 14px; font-weight: 600; cursor: help; }
.frow { grid-template-columns: 1fr auto 1fr auto auto; }
.frow input { height: 36px; min-width: 0; width: 100%; padding: 0 8px; border: var(--bw-thin) solid var(--ink); background: var(--paper); font: 14px var(--f-data); }
.frow .unit { font-size: 12px; min-width: 24px; }
.sel.wide { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
.sel.wide input { height: 40px; padding: 0 10px; border: var(--bw-thin) solid var(--ink); background: var(--paper); font: 15px var(--f-body); }
table.scr td.selcell, table.scr th:first-child { min-width: 36px; width: 36px; max-width: 36px; padding: 0 6px; text-align: center; }
table.scr td:nth-child(2), table.scr th:nth-child(2) { text-align: left; }
table.scr td:first-child { position: sticky; left: 0; }
table.scr td.selcell input { width: 18px; height: 18px; accent-color: var(--navy); }
.btn.small[disabled] { opacity: .45; cursor: not-allowed; }
.pager { justify-content: center; }
button.x.inline { width: 20px; height: 20px; font-size: 13px; margin-left: 6px; vertical-align: 0; border-color: currentColor; background: transparent; color: inherit; }
.cmp-head { display: flex; align-items: center; gap: 8px; }
.cmp-head i { width: 12px; height: 12px; border: 2px solid var(--ink); display: inline-block; }
.cmp-head .x { margin-left: 6px; }
table.cmp th { vertical-align: bottom; }
.listcard { text-decoration: none; color: var(--ink); display: block; }
.listcard:hover { background: var(--tint); }
.news-item.is-new { background: var(--tint); box-shadow: inset 5px 0 0 var(--orange); }
.tog-check { margin-top: 0; font-size: 14px; }
.co-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
@media (max-width: 480px) { .hl-lookup, .hl-cal { display: none; } }

.scr-grid > * { min-width: 0; }
.scr-results .controls .seg { flex-wrap: wrap; }

/* ---------- screener: Finviz-style menus ---------- */
.scr-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: var(--s-4) 0 0; padding: 12px 14px; border: var(--bw) solid var(--ink); background: var(--paper); }
.scr-bar .sb { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; min-width: 0; }
.scr-bar select, .scr-bar input { height: 38px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); font: 14px var(--f-body); border-radius: 0; padding: 0 8px; min-width: 0; max-width: 100%; }
.scr-bar #scr-my, .scr-bar #scr-order, .scr-bar #scr-sig { width: 185px; }
.scr-bar #scr-dir { width: 118px; }
.scr-bar .sb-tk { flex: 1 1 150px; }
.scr-bar .tkrow { display: flex; }
.scr-bar .tkrow input { flex: 1; font-family: var(--f-data); text-transform: uppercase; }
.scr-bar .tkrow .btn { height: 38px; min-height: 38px; margin-left: -2px; padding: 0 12px; font-size: 20px; line-height: 1; }
.scr-bar #scr-toggle { height: 38px; min-height: 38px; margin-left: auto; }
.scr-panel { border: var(--bw) solid var(--ink); border-top: 0; padding: 0 14px 6px; }
.scr-panel[hidden] { display: none; }
.scr-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; padding-top: 12px; }
.scr-tabs button { min-height: 38px; padding: 6px 12px; background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); margin: 0 -2px -2px 0; font: 600 14px var(--f-body); cursor: pointer; }
.scr-tabs button[aria-selected="true"] { background: var(--navy); color: var(--on-fill); position: relative; z-index: 1; }
.scr-tabs .n { display: inline-block; min-width: 18px; padding: 0 4px; margin-left: 4px; background: var(--orange); color: var(--ink); font: 700 11px/18px var(--f-data); text-align: center; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 8px 22px; padding: 16px 0 6px; align-items: start; }
.fgroup-h { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 8px; border-top: 2px solid var(--ink); font-size: 15px; }
.fgroup-h:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.fcell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 4px 8px; }
.fcell > label { text-align: right; font-size: 13.5px; line-height: 1.15; font-weight: 600; }
.fcell > label[title] { cursor: help; }
.fcell select, .fcell input[type="search"] { height: 34px; width: 100%; min-width: 0; border: var(--bw-thin) solid var(--ink); background: var(--canvas); font: 13.5px var(--f-body); padding: 0 6px; border-radius: 0; color: var(--ink); }
.fcell.on select, .fcell.on input[type="search"] { background: var(--navy); color: var(--on-fill); border-color: var(--orange); }
.fcell.on select option { background: var(--canvas); color: var(--ink); }
.fcustom { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 4px; align-items: center; font-size: 12px; }
.fcustom input { height: 30px; width: 100%; min-width: 0; padding: 0 6px; border: var(--bw-thin) solid var(--ink); background: var(--paper); font: 13px var(--f-data); }
.scr-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: var(--s-3) 0 var(--s-2); }
.scr-active > strong { font-size: 22px; }
.scr-active .chip { font-size: 13px; }
@media (max-width: 700px) {
  .scr-bar .sb { flex: 1 1 100%; }
  .scr-bar { gap: 8px 10px; }
  .scr-bar #scr-my, .scr-bar #scr-order, .scr-bar #scr-sig { width: 100%; }
  .scr-bar .sb:nth-child(2) { flex: 1 1 55%; }
  .scr-bar .sb-dir { flex: 1 1 35%; }
  .scr-bar #scr-dir { width: 100%; }
  .scr-bar #scr-toggle { margin-left: 0; width: 100%; }
  .scr-panel { padding: 0 10px 6px; }
  .scr-tabs { justify-content: flex-start; }
  .scr-tabs button { font-size: 13px; padding: 5px 9px; }
  .fcell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}

/* ---------- markets, sectors, funds, portfolio ---------- */
.up { color: var(--up); } .dn { color: var(--red); }
td.up, td.dn, span.up, span.dn { font-weight: 600; }
tr.me td { background: var(--tint); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.mcard { display: block; border: var(--bw-thin) solid var(--ink); padding: 10px 12px; text-decoration: none; color: var(--ink); background: var(--canvas); }
.mcard:hover { background: var(--tint); }
.mcard-top { display: flex; justify-content: space-between; font: 700 15px var(--f-data); }
.mcard-name { font-weight: 700; font-size: 14px; line-height: 1.2; margin-top: 2px; }
.mcard .spark { display: block; margin: 6px 0 2px; width: 100%; height: 34px; }
.breadth .adbar { height: 14px; background: var(--red); border: var(--bw-thin) solid var(--ink); margin-bottom: var(--s-3); }
.breadth .adbar span { display: block; height: 100%; background: var(--navy); }
.secbars { display: grid; gap: 4px; }
.secbar { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 72px; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); padding: 4px 6px; border-bottom: 1px dashed var(--grey-scribble); }
.secbar:hover { background: var(--tint); }
.secbar .nm { font-weight: 700; font-size: 14px; }
.secbar .track { position: relative; height: 16px; background: var(--paper); }
.secbar .track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.secbar .track i { position: absolute; top: 0; bottom: 0; background: var(--navy); }
.secbar .track i.neg { background: var(--red); }
.secbar .v { font: 600 14px var(--f-data); text-align: right; }
.heat { border: var(--bw) solid var(--ink); background: #000; }
.heat svg { display: block; width: 100%; height: auto; }
.heat .hm-sec { fill: #fff; font: 700 11px var(--f-body); letter-spacing: .04em; }
.heat .hm-t { fill: #000; font-family: var(--f-data); font-weight: 700; }
.heat .hm-v { fill: #000; font: 11px var(--f-data); }
.heat .lt { fill: #fff; }
.heat a:hover rect { stroke: var(--orange); stroke-width: 3; }
.two-col { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.hbars { display: grid; gap: 4px; margin: var(--s-2) 0; }
.hbar { display: grid; grid-template-columns: minmax(110px, 180px) 1fr 58px; gap: 8px; align-items: center; font-size: 14px; }
.hbar .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 14px; background: var(--paper); }
.hbar .track i { display: block; height: 100%; background: var(--navy); }
.hbar .track i.neg { background: var(--red); }
.hbar .v { font: 13px var(--f-data); text-align: right; }
.rankcard { display: grid; grid-template-columns: 1fr; gap: 10px; margin: var(--s-3) 0; }
@media (min-width: 700px) { .rankcard { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.rankcard .k { font-size: 13px; }
.rankcard .big { font-size: 22px; font-weight: 700; line-height: 1.2; }
.rankbar { position: relative; height: 18px; border: var(--bw-thin) solid var(--ink); background: linear-gradient(90deg, var(--rank-lo) 0 20%, var(--rank-mid) 20% 80%, var(--rank-hi) 80%); }
.rankbar i { position: absolute; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; background: var(--orange); border: 2px solid var(--ink); }
.pf-add { margin: var(--s-3) 0; }
.pf-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.pf-row .sb { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; min-width: 0; }
.pf-row .sb:first-child { flex: 1 1 240px; }
.pf-row input { height: 40px; border: var(--bw-thin) solid var(--ink); background: var(--paper); font: 15px var(--f-body); padding: 0 8px; border-radius: 0; width: 150px; max-width: 100%; }
.pf-row .search input { width: 100%; height: 40px; font-size: 15px; border-width: var(--bw-thin); }
@media (max-width: 700px) { .pf-row .sb { flex: 1 1 100%; } .pf-row input { width: 100%; } .secbar { grid-template-columns: 110px 1fr 64px; } .hbar { grid-template-columns: 100px 1fr 52px; } }

.two-col > * { min-width: 0; }
@media (min-width: 1024px) { #header-search { flex: 1 1 200px; max-width: 290px; } .header-link { font-size: 15px; } .header-row { gap: 14px; } }

/* fund basics and costs (fund_extras) */
.objective { font-size: 1.05rem; line-height: 1.5; margin: 8px 0 4px; max-width: 72ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--grey-scribble); margin-top: 12px; }
.fact { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--grey-scribble); min-width: 0; }
.fact .k { font-size: 13px; color: var(--muted); }
.fact .v { margin-top: 3px; overflow-wrap: anywhere; }
table.num td.sub { text-align: left; font-size: .72rem; letter-spacing: .08em; opacity: .7; padding-top: 14px; }

/* the bird (chatbot) */
.bird-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 16px 8px 10px;
  background: var(--navy); color: var(--on-fill); border: var(--bw-heavy) solid var(--orange); box-shadow: var(--shadow-flat); cursor: pointer; font-size: 16px; }
.bird-fab:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow-c); }
.bird-on .bird-fab { display: none; }
.bird-panel { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: min(420px, calc(100vw - 40px)); height: min(640px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: var(--canvas); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--shadow-c); }
.bird-panel[hidden] { display: none; }
.bird-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--navy); color: var(--on-fill); border-bottom: var(--bw) solid var(--orange); }
.bird-head strong { font-size: 20px; }
.bird-head .chip { font-size: 12px; padding: 1px 7px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bird-body { flex: 1; overflow-y: auto; padding: 12px 14px; font-size: 15px; line-height: 1.5; overscroll-behavior: contain; }
.bird-intro p { margin: 0 0 10px; }
.bird-sug { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.bird-sug .chip { cursor: pointer; font-size: 13px; text-align: left; background: var(--tint); font-family: var(--f-body); }
.bird-sug .chip:hover { background: var(--amber); }
.bird-q { margin: 12px 0 6px auto; max-width: 85%; width: fit-content; background: var(--paper); border: var(--bw-thin) solid var(--ink); padding: 6px 10px; overflow-wrap: anywhere; }
.bird-a { border-left: 4px solid var(--orange); padding: 2px 0 2px 10px; margin-bottom: 8px; overflow-wrap: anywhere; }
.bird-a p { margin: 0 0 8px; }
.bird-a ul { margin: 0 0 8px; padding-left: 20px; }
.bird-a li { margin-bottom: 4px; }
.bird-err { border-left-color: var(--red); color: var(--muted); }
.bird-src { font-size: 12px; color: var(--muted); margin-top: 6px; }
.bird-wait { color: var(--muted); font-size: 14px; }
.bird-wait span { display: inline-block; width: 7px; height: 7px; margin-right: 3px; background: var(--orange); border-radius: 50%; animation: birdhop 1s infinite ease-in-out; }
.bird-wait span:nth-child(2) { animation-delay: .15s; } .bird-wait span:nth-child(3) { animation-delay: .3s; }
@keyframes birdhop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .bird-wait span { animation: none; } }
.bird-form { display: flex; gap: 8px; padding: 10px 12px; border-top: var(--bw-thin) solid var(--ink); align-items: flex-end; }
.bird-form[hidden] { display: none; }
.bird-form textarea { flex: 1; resize: none; font: 15px/1.4 var(--f-body); padding: 8px; border: var(--bw-thin) solid var(--ink); min-height: 44px; max-height: 120px; }
.bird-foot { padding: 6px 12px 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--grey-scribble); }
@media (max-width: 640px) {
  .bird-fab { right: 12px; bottom: 12px; min-height: 48px; font-size: 14px; }
  .bird-panel { right: 0; bottom: 0; left: 0; top: 0; width: 100%; height: 100%; height: 100dvh; border: 0; box-shadow: none; }
  .bird-form textarea { font-size: 16px; }
}
@media print { .bird-fab, .bird-panel { display: none !important; } }
.bird-gs { display: block; width: 100%; height: 64px; border: 0; margin-top: 6px; }

/* live prices (api/quote, api/market) */
.live-q { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 12px; }
.live-q[hidden] { display: none; }
.live-px { font-size: 26px; }
.live-bug { display: inline-block; font-size: 12px; padding: 2px 7px; border: var(--bw-thin) solid var(--ink); background: var(--paper); color: var(--ink); align-self: center; }
.live-bug.on { background: var(--red); color: var(--on-fill); border-color: var(--red); }
.live-bug.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--on-fill); margin-right: 5px; vertical-align: 1px; animation: livepulse 1.6s infinite; }
@keyframes livepulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-bug.on::before { animation: none; } }
.mkt-live { border: var(--bw) solid var(--ink); padding: 12px 16px 16px; margin: var(--s-4) 0; box-shadow: var(--shadow-flat); }
.mkt-live[hidden] { display: none; }
.mkt-live .controls { align-items: center; gap: 10px; }
.live-grid .mcard { min-height: 0; }

/* Markets: "Right now" box layout */
.rn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.rn-head h2 { margin: 0; }
.rn-idx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.rn-idx .mcard { min-height: 0; }
.rn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; align-items: start; }
.rn-block h3 { font-size: 17px; margin: 0 0 6px; }
.mlist { border-top: var(--bw-thin) solid var(--ink); }
.mrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 84px 68px; align-items: center; gap: 8px; min-height: 30px; padding: 3px 4px;
  border-bottom: 1px dashed var(--grey-scribble); color: var(--text); text-decoration: none; font-size: 14px; }
.mrow:hover { background: var(--tint); }
.mrow .t { color: var(--royal); font-weight: 600; }
.mrow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.mrow .p, .mrow .c { text-align: right; }
.mrow.sec { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 68px; }
.mrow.sec .nm { color: var(--text); font-weight: 600; font-size: 14px; }
.mrow.sec .track { position: relative; height: 12px; background: var(--paper); }
.mrow.sec .track i { position: absolute; top: 0; bottom: 0; background: var(--navy); }
.mrow.sec .track i.neg { background: var(--red); }
.mrow.sec .track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 2px solid var(--ink); }
@media (max-width: 760px) {
  .rn-idx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn-grid { grid-template-columns: minmax(0, 1fr); }
  .mrow { grid-template-columns: 48px minmax(0, 1fr) 76px 62px; font-size: 13px; }
}

/* =====================================================================================
   Polish pass + dark mode (Sep 2026). Later rules on purpose: they override the ones above.
   ===================================================================================== */
:root {
  --on-fill: #FFFFFF; --up: #1F7A2A; --tint: #FFF6EC; --tint-2: #FFE9D1; --hover: #FAFAFA;
  --shadow-c: var(--ink); --shadow-flat: 4px 4px 0 var(--shadow-c);
  --rank-lo: #FBE3E4; --rank-mid: #F4F4F4; --rank-hi: #DDE3F2;
  --c-navy: #0B1D3F; --c-royal: #2B4BD6;
  --skel: #ECECEC; --skel-hi: #F7F7F7;
}
:root[data-theme="dark"] {
  --canvas: #2B2F36; --paper: #363B44; --ink: #E4E7EC; --text: #EEF0F3; --muted: #B6BDC9; --grey-scribble: #4B515C;
  --navy: #1B3572; --navy-2: #24448C; --royal: #A3B6FF; --red: #FF7A7F; --green: #5ED477; --up: #6BDB82;
  --tint: #42382B; --tint-2: #4E3F2A; --hover: #31353D; --shadow-c: #555C68;
  --rank-lo: #4D3235; --rank-mid: #363B44; --rank-hi: #33405E;
  --c-navy: #6A88FF; --c-royal: #B6C4FF;
  --skel: #353A42; --skel-hi: #40464F;
  color-scheme: dark;
}
html { background: var(--canvas); }
input, select, textarea { color: var(--text); }
::placeholder { color: var(--muted); opacity: .8; }
.up, .ctip em.up { color: var(--up); }
.chart, .tscroll, .box, .card, .mcard, .stats { background: var(--canvas); }

/* ---- header ---- */
.header-row { gap: 12px 18px; }
.main-nav { display: flex; align-items: center; gap: 16px; }
.header-link { position: relative; padding: 6px 0; white-space: nowrap; }
.header-link[aria-current="page"] { text-decoration: none; box-shadow: inset 0 -3px 0 var(--orange); }
.theme-btn { flex: none; width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); }
.theme-btn:hover { background: var(--paper); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.acct { gap: 12px; }
.acct .btn.small { min-height: 40px; }
#header-search .search input, #header-search input { height: 40px; border-width: var(--bw-thin); font-size: 15px; }
@media (min-width: 1101px) {
  .header-row { flex-wrap: nowrap; }
  #header-search { flex: 1 1 200px; max-width: 300px; margin-left: auto; }
}
@media (max-width: 1100px) {
  .header-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; min-height: 0; gap: 8px 12px; padding-top: 10px; padding-bottom: 0; }
  .mark { grid-column: 1; grid-row: 1; justify-self: start; }
  #header-search { grid-column: 2; grid-row: 1; max-width: none; margin: 0; flex: none; }
  .theme-btn { grid-column: 3; grid-row: 1; }
  .acct { grid-column: 4; grid-row: 1; width: auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; gap: 18px; padding-bottom: 6px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .main-nav::-webkit-scrollbar { display: none; }
  .hl-lookup, .hl-cal { display: inline !important; }
}
@media (max-width: 640px) {
  .site-header { position: relative; }            /* on phones the header scrolls away: the page gets the room */
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .mark { font-size: 16px; padding: 5px 9px; }
  .theme-btn { grid-column: 3; width: 38px; height: 38px; }
  .acct { grid-column: 4; }
  .acct-me { padding: 5px 9px; max-width: 130px; font-size: 14px; }
  .acct .btn.small { min-height: 38px; padding: 4px 10px; font-size: 13px; }
  .acct .header-link { font-size: 13px; }
  #header-search { grid-column: 1 / -1; grid-row: 3; padding-bottom: 10px; }
  .main-nav { grid-row: 2; gap: 16px; }
  .header-link { font-size: 14px; }
}

/* ---- page heads: one size everywhere except the home page ---- */
.hero { padding: var(--s-6) 0 var(--s-4); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1; margin: 0 0 var(--s-3); }
.hero p { margin-bottom: var(--s-4); }
.hero.home { padding: var(--s-7) 0 var(--s-4); }
.hero.home h1 { font-size: clamp(44px, 8vw, 104px); line-height: .95; margin-bottom: var(--s-4); }
.co-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-3) var(--s-4); padding: var(--s-5) 0 var(--s-3); }
.co-head > :only-child { grid-column: 1 / -1; }
.co-head h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.02; }
.co-head .tick { vertical-align: 0.12em; }
.co-head > div > p.muted { max-width: 820px; }
.co-actions { margin: 0; align-self: end; justify-content: flex-end; }
.live-q { margin-top: 14px; }
@media (max-width: 760px) {
  .co-head { grid-template-columns: minmax(0, 1fr); padding-top: var(--s-4); }
  .co-actions { justify-content: stretch; }
  .co-actions .btn { flex: 1 1 0; width: auto; }
}

/* ---- home ---- */
.picks { margin: var(--s-4) 0 0; gap: 12px; }
.home-sec { font-size: 22px; margin: var(--s-6) 0 var(--s-3); }
.home-grid { margin: 0; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.home-grid + .home-grid { margin-top: var(--s-3); }
#home-bar { margin-top: var(--s-6); }

/* ---- cards: same height, footer line pinned to the bottom ---- */
.card { display: flex; flex-direction: column; }
.card > p.note:last-child { margin-top: auto; padding-top: var(--s-2); }
.listcard { transition: transform .08s ease-out, box-shadow .08s ease-out; }
.listcard:hover { background: var(--tint); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow-c); }

/* ---- stats grid: columns set by tidy() in app.js so there are never empty cells ---- */
.stats { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)) !important; margin-top: var(--s-3); }
.stat { min-width: 0; }
.stat .v { overflow-wrap: anywhere; }
.stats-edit-row { margin-top: 4px; }

/* ---- tabs ---- */
.tabs { margin-top: var(--s-4); gap: 2px; }
.tabs a { padding: 12px 12px; font-size: 14.5px; display: inline-flex; align-items: center; }
.tabs.ovf { -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.tabs.ovf.end { -webkit-mask-image: none; mask-image: none; }

/* ---- controls rows: one height, even gaps ---- */
.controls { gap: 12px 14px; }
.seg button { min-height: 40px; padding: 7px 13px; font-size: 13.5px; }
.seg + .seg { margin-left: 0; }
.controls .btn, .controls .btn.small { min-height: 40px; }
.controls input[type=search], .controls select, .sel select { height: 40px; }
.btn { transition: transform .06s ease-out, box-shadow .06s ease-out; }
@media (max-width: 640px) {
  .controls { gap: 10px; }
  .controls > .seg { max-width: 100%; }
}

/* ---- tables ---- */
th { vertical-align: bottom; color: var(--text); }
td { vertical-align: middle; }
tr:hover td { background: var(--hover); }
tr:hover td:first-child { background: var(--hover); }
table.cal { table-layout: fixed; }
table.cal th:nth-child(1), table.cal td:nth-child(1) { width: 40%; }
table.cal th:nth-child(2), table.cal td:nth-child(2) { width: 20%; }
table.cal th:nth-child(3), table.cal td:nth-child(3) { width: 16%; }
table.cal td { white-space: normal; }
table.cmp .cmp-head { justify-content: flex-end; }
table.cmp th .peer-sub { text-align: right; }
.group td, tr.group td { border-right: 0; }

/* ---- portfolio / forms: buttons match the inputs next to them ---- */
.pf-row .btn { min-height: 40px; height: 40px; }
.scr-bar .btn, .pf-row .btn { box-shadow: none; }

/* ---- the bird button: small square on phones so it hides less of the page ---- */
@media (max-width: 640px) {
  .bird-fab { width: 52px; height: 52px; min-height: 52px; padding: 0; justify-content: center; }
  .bird-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---- loading: skeleton blocks instead of a line of text ---- */
.skel { padding: var(--s-5) 0 var(--s-6); }
.skel i { display: block; background: linear-gradient(90deg, var(--skel) 0 40%, var(--skel-hi) 50%, var(--skel) 60%) 0 0 / 300% 100%; animation: skel 1.3s linear infinite; }
.skel .s-h { height: 48px; width: min(520px, 80%); margin-bottom: 16px; }
.skel .s-c { height: 22px; width: min(360px, 60%); margin-bottom: 28px; }
.skel .s-b { height: 150px; margin-bottom: 20px; }
.skel .s-r { height: 18px; margin: 10px 0; }
.skel .s-r:nth-child(odd) { width: 92%; }
.skel p { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel i { animation: none; } }

/* ---- charts ---- */
.chart { overflow: hidden; }
.legend { flex-wrap: wrap; gap: 6px 16px; }

/* ---- dark mode: recolour the fixed colours drawn into charts and icons ---- */
:root[data-theme="dark"] .cwrap [stroke="#000"], :root[data-theme="dark"] .btn svg [stroke="#000"] { stroke: var(--ink); }
:root[data-theme="dark"] .cwrap [stroke="#C8C8C8"] { stroke: var(--grey-scribble); }
:root[data-theme="dark"] .cwrap [fill="#0B1D3F"], :root[data-theme="dark"] .spark [fill="#0B1D3F"] { fill: var(--c-navy); }
:root[data-theme="dark"] .cwrap [stroke="#0B1D3F"], :root[data-theme="dark"] .spark [stroke="#0B1D3F"] { stroke: var(--c-navy); }
:root[data-theme="dark"] .cwrap [fill="#2B4BD6"] { fill: var(--c-royal); }
:root[data-theme="dark"] .cwrap [stroke="#2B4BD6"] { stroke: var(--c-royal); }
:root[data-theme="dark"] .legend i[style*="#0B1D3F"], :root[data-theme="dark"] .ctip i[style*="#0B1D3F"], :root[data-theme="dark"] .cmp-head i[style*="#0B1D3F"] { background: var(--c-navy) !important; }
:root[data-theme="dark"] .legend i[style*="#2B4BD6"], :root[data-theme="dark"] .ctip i[style*="#2B4BD6"], :root[data-theme="dark"] .cmp-head i[style*="#2B4BD6"] { background: var(--c-royal) !important; }
:root[data-theme="dark"] .cwrap .dot circle[fill="#FF7F00"] { stroke: var(--canvas); }
:root[data-theme="dark"] .heat { border-color: var(--grey-scribble); }
:root[data-theme="dark"] .bar::before { filter: none; }
:root[data-theme="dark"] .chip.navy, :root[data-theme="dark"] .tabs a[aria-current="page"], :root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--navy); }
:root[data-theme="dark"] .stamp { outline-color: var(--red); }
:root[data-theme="dark"] .tv-info, :root[data-theme="dark"] .tv-box, :root[data-theme="dark"] .tv-adv { background: var(--canvas); }
:root[data-theme="dark"] img { opacity: .92; }

/* header fit + company head actions sit beside the live price row on wide screens */
@media (min-width: 1101px) {
  .main-nav { gap: 14px; }
  .header-link { font-size: 14.5px; }
  .header-row { gap: 12px 14px; }
  #header-search { flex: 1 1 220px; min-width: 190px; max-width: 320px; }
}
@media (min-width: 1000px) {
  .co-head:has(> .co-actions) { position: relative; grid-template-columns: minmax(0, 1fr); }
  .co-head:has(> .co-actions) > .co-actions { position: absolute; right: 0; bottom: var(--s-3); }
  .co-head:has(> .co-actions) .live-q, .co-head:has(> .co-actions) .co-meta { padding-right: 300px; }
}
.breadth .stats { border: 0; margin: 0; }
.breadth .adbar { margin-bottom: var(--s-2); }
.mgrid { grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); }
.rn-idx.mgrid, .rn-idx { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .rn-idx.mgrid, .rn-idx { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding-bottom: 2px; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: 0 0 auto; white-space: nowrap; }
  .pf-row .btn { width: 100%; }
  .scr-results .controls .seg { flex-wrap: nowrap; }
}
.seg.ovf { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.seg.ovf.end { -webkit-mask-image: none; mask-image: none; }
:root[data-theme="dark"] .secbar .track i:not(.neg), :root[data-theme="dark"] .mrow.sec .track i:not(.neg), :root[data-theme="dark"] .hbar .track i:not(.neg), :root[data-theme="dark"] .breadth .adbar span { background: var(--c-navy); }

/* ---------- health scores, style box, revenue breakdown (Sep 2026) ---------- */
.sc-intro { max-width: 760px; margin: 0 0 var(--s-3); font-size: 15px; }
.score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); align-items: stretch; }
@media (max-width: 900px) { .score-grid { grid-template-columns: minmax(0, 1fr); } }
.score-card { gap: 6px; }
.sc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sc-top h3 { margin: 0; font-size: 18px; }
.sc-top .chip { font-size: 12px; padding: 1px 7px; white-space: nowrap; }
.sc-big { font-size: 44px; font-weight: 600; line-height: 1.1; margin-top: 4px; }
.sc-big small { font-size: 20px; color: var(--muted); margin-left: 2px; }
.sc-lab { font: 800 14px var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.sc-lab.up { color: var(--up); } .sc-lab.dn { color: var(--red); } .sc-lab.mid { color: #B96A00; }
:root[data-theme="dark"] .sc-lab.mid { color: var(--amber); }
.sc-what { font-size: 14px; margin: 4px 0 0; color: var(--text); }
.score-card details { margin-top: auto; padding-top: 8px; font-size: 14px; }
.score-card summary { cursor: pointer; font-weight: 600; }
.pdots { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; max-width: 220px; }
.pdots i { height: 10px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); }
.pdots i.on { background: var(--navy); }
:root[data-theme="dark"] .pdots i.on { background: var(--c-navy); }
.checks { list-style: none; margin: 8px 0 0; padding: 0; }
.checks li { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--grey-scribble); cursor: help; }
.checks li b { width: 18px; flex: none; text-align: center; }
.checks li.ok b { color: var(--up); } .checks li.no b { color: var(--red); } .checks li.na { color: var(--muted); }
.zbar { position: relative; height: 14px; border: var(--bw-thin) solid var(--ink); margin: 8px 0 2px; overflow: visible; }
.zbar span { position: absolute; top: 0; bottom: 0; }
.zb-dn { background: #F5A9AC; } .zb-mid { background: #FFD9A8; } .zb-up { background: #BFE3C3; }
:root[data-theme="dark"] .zb-dn { background: #5A2327; } :root[data-theme="dark"] .zb-mid { background: #5A4220; } :root[data-theme="dark"] .zb-up { background: #1F4A2A; }
.zbar i { position: absolute; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; background: var(--orange); border: 2px solid var(--ink); }
.zb-legend { display: flex; justify-content: space-between; font: 11px var(--f-data); color: var(--muted); }
table.mini { font-size: 13px; margin-top: 6px; }
table.mini td, table.mini th { padding: 4px 8px; }
table.mini td:first-child, table.mini th:first-child { min-width: 0; font-size: 13px; }
.sc-hist { margin-top: var(--s-3); max-width: 560px; }
.sbox-wrap { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: var(--s-4); align-items: start; margin: var(--s-2) 0 var(--s-3); }
@media (max-width: 700px) { .sbox-wrap { grid-template-columns: minmax(0, 1fr); } .sbox { max-width: 320px; } }
.sbox { display: grid; grid-template-columns: 44px repeat(3, 1fr); grid-template-rows: auto repeat(3, 1fr); gap: 0; aspect-ratio: 1.1 / 1; }
.sb-lab { font: 800 11px var(--f-display); text-transform: uppercase; text-align: center; padding-bottom: 4px; }
.sb-rlab { grid-column: 1; font: 800 11px var(--f-display); text-transform: uppercase; align-self: center; }
.sb-rlab:first-of-type { grid-row: 2; }
.sb-cells { grid-column: 2 / 5; grid-row: 2 / 5; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); border: var(--bw) solid var(--ink); }
.sb-cell { border: 1px solid var(--grey-scribble); position: relative; background: color-mix(in srgb, var(--orange) calc(var(--w, 0) * 100%), var(--canvas)); display: grid; place-items: center; }
.sb-cell em { font: 600 12px var(--f-data); font-style: normal; color: var(--text); }
.sb-cell.on { outline: var(--bw) solid var(--navy); outline-offset: -3px; }
:root[data-theme="dark"] .sb-cell.on { outline-color: var(--c-navy); }
.sb-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--navy); border: 2px solid var(--canvas); box-shadow: 0 0 0 2px var(--navy); }
:root[data-theme="dark"] .sb-dot { background: var(--c-navy); box-shadow: 0 0 0 2px var(--c-navy); }
.sb-name { font-size: 26px; margin-bottom: 6px; }
.sb-side p.small { font-size: 14px; margin: 0 0 8px; }
.sb-side details { font-size: 14px; }
.segbars .hbar { grid-template-columns: minmax(120px, 260px) 1fr 52px; }
.segbars .track i.nb { background: var(--grey-scribble); }
.home-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .home-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-grid.three { grid-template-columns: minmax(0, 1fr); } }

/* calendars and economy */
.subnav { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 0 0 var(--s-3); padding: 0 0 8px; border-bottom: var(--bw-thin) solid var(--grey-scribble); }
.subnav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 4px 0; }
.subnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.subnav a:hover { text-decoration: underline; }
.chip.small { font-size: 11px; padding: 0 6px; }
table.dcal td:first-child { min-width: 280px; }
.eco-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.eco-card { text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.eco-card.on { background: var(--tint); box-shadow: inset 0 0 0 2px var(--orange); }
.eco-card .mcard-top span { font: 700 14px var(--f-body); }
.eco-v { font-size: 26px; font-weight: 600; margin: 4px 0; }
.eco-card .spark { margin: 6px 0 4px; }
table.ecal td:first-child { min-width: 260px; }
.sb-cell { place-items: end end; }
.sb-cell em { padding: 3px 5px; font-size: 11px; }
.sb-dot { z-index: 2; }
.scr-results .controls .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.scr-results .controls .seg::-webkit-scrollbar { display: none; }
.scr-results .controls .seg button { flex: 0 0 auto; }

/* stale-data warning (meta.json prices_asof) */
.stale-bar { background: #FFF4E5; color: #5A3500; border-bottom: 1px solid #F2C48D; font-size: 14px; padding: 8px 0; }
.stale-bar strong { letter-spacing: .04em; margin-right: 6px; }
[data-theme="dark"] .stale-bar { background: #3A2A12; color: #FFD9A8; border-color: #6B4A1C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stale-bar { background: #3A2A12; color: #FFD9A8; border-color: #6B4A1C; } }

/* Summary: at-a-glance card linking to the Scores tab */
.glance { margin-bottom: var(--s-4); }
.glance-top { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-2); }
.mini-sbox { display: grid; grid-template-columns: repeat(3, 16px); grid-template-rows: repeat(3, 16px); gap: 2px; flex: none; text-decoration: none; }
.mini-sbox i { background: var(--paper); border: 1px solid var(--grey-scribble); }
.mini-sbox i.on { background: var(--navy); border-color: var(--navy); }
.glance table.mini { margin: 4px 0 8px; width: 100%; }
.glance table.mini td:last-child { text-align: right; }
.nm { color: var(--muted); font-style: italic; cursor: help; }

/* compare funds */
.cmp-best { font-weight: 700; box-shadow: inset 0 -3px 0 var(--amber); }
.seo-pre { min-height: 60vh; }

/* grid columns may shrink below their widest table (the tables scroll inside .tscroll) */
.two > *, .two-col > * { min-width: 0; }

/* ================= Ideas ================= */
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; color: var(--ink); border: var(--bw-thin) solid var(--ink); }
.bell-n { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #000; font: 700 11px/20px var(--f-data); text-align: center; }
.idea-list { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.idea-card { border: var(--bw) solid var(--ink); background: var(--canvas); padding: var(--s-3); box-shadow: var(--shadow-flat); }
.ic-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ic-user { font: 600 15px var(--f-data); text-decoration: none; color: var(--ink); }
.ic-user:hover { text-decoration: underline; }
.lock-i { color: var(--muted); vertical-align: -1px; }
.ic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.ic-tags .chip { text-decoration: none; }
.chip.ghost { border-style: dashed; }
.chip.warn { border-color: var(--orange); background: var(--tint, #FFF4E5); }
.dir { display: inline-block; padding: 3px 9px; font: 700 13px var(--f-data); border: var(--bw-thin) solid; letter-spacing: .04em; }
.dir-long { color: var(--green); border-color: var(--green); }
.dir-short { color: var(--red); border-color: var(--red); }
.dir-watching { color: var(--muted); border-color: var(--muted); }
.ic-title { margin: 6px 0; font-size: 20px; line-height: 1.25; }
.ic-title a { color: var(--ink); text-decoration: none; }
.ic-title a:hover { text-decoration: underline; }
.ic-body { margin: 6px 0; overflow-wrap: anywhere; }
.ic-price { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; margin: 8px 0; color: var(--muted); }
.ic-price .up { color: var(--up, var(--green)); } .ic-price .dn { color: var(--red); }
.ic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.ia { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); font: 14px var(--f-body); cursor: pointer; text-decoration: none; }
.ia.on { color: var(--orange); border-color: var(--orange); }
.ia-more { position: relative; }
.ia-more > summary { list-style: none; } .ia-more > summary::-webkit-details-marker { display: none; }
.ia-menu { position: absolute; z-index: 20; right: 0; top: 100%; background: var(--canvas); border: var(--bw) solid var(--ink); display: grid; min-width: 190px; }
.ia-menu button { text-align: left; padding: 10px 12px; background: none; border: 0; border-top: 1px solid var(--grey-scribble); color: var(--ink); cursor: pointer; font: 14px var(--f-body); min-height: 44px; }
.ia-menu button:hover { background: var(--paper); }
.mention, .cashtag { font-family: var(--f-data); font-weight: 600; text-decoration: none; }
.mention:hover, .cashtag:hover { text-decoration: underline; }
.seg a.seg-a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); margin: 0 -2px -2px 0; text-decoration: none; }
.seg a.seg-a[aria-pressed="true"] { background: var(--navy); color: var(--on-fill); position: relative; z-index: 1; }
.ideas-filters { margin-top: var(--s-3); flex-wrap: wrap; gap: 10px; }
.linkish { background: none; border: 0; padding: 4px 2px; color: var(--royal); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.inew-form { max-width: 820px; }
.inew-row { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-3); }
@media (min-width: 720px) { .inew-row { grid-template-columns: 1fr 1fr; } }
.inew-form textarea, .inew-form select, .cmt-form textarea, .soc-set textarea { width: 100%; padding: 10px 12px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 0; font: 16px/1.5 var(--f-body); color: var(--text); }
.inew-form select { height: 48px; }
.inew-form input { width: 100%; }
.inew-tv { margin-top: 6px; }
.cnt { font: 400 12px var(--f-data); color: var(--muted); float: right; font-style: normal; } .cnt.over { color: var(--red); }
.tag-wrap { position: relative; }
.tag-suggest { z-index: 30; }
.idea-page { max-width: 900px; }
.idea-h { font-size: clamp(26px, 4vw, 40px); margin: 10px 0; }
.idea-stats { margin: var(--s-3) 0; }
.idea-body { font-size: 17px; overflow-wrap: anywhere; }
.idea-chart { margin: var(--s-3) 0; }
.warnbox { border-color: var(--orange) !important; background: var(--tint, #FFF4E5); }
.modbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: var(--s-3); padding: 10px; border: var(--bw) dashed var(--red); }
.cmts { display: grid; gap: 10px; }
.cmt { border-left: var(--bw) solid var(--ink); padding: 6px 0 6px 12px; }
.cmt p { margin: 4px 0; overflow-wrap: anywhere; }
.cmt.reply { margin-left: 26px; border-left-color: var(--grey-scribble); }
.cmt-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cmt-form { margin-top: var(--s-3); max-width: 720px; }
.prof-head { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: start; margin-top: var(--s-5); }
.prof-head .co-actions { grid-column: 1 / -1; }
@media (min-width: 720px) { .prof-head { grid-template-columns: auto 1fr auto; } .prof-head .co-actions { grid-column: auto; } }
.avatar { width: 64px; height: 64px; display: grid; place-items: center; background: var(--navy); color: var(--on-fill); border: var(--bw) solid var(--orange); font: 800 30px var(--f-display); }
.prof-id h1 { margin: 0; font-size: clamp(24px, 4vw, 36px); overflow-wrap: anywhere; }
.prof-bio { margin: 8px 0 0; max-width: 60ch; }
.prof-stats { margin-top: var(--s-3); }
.people { display: grid; gap: 8px; margin-top: var(--s-3); }
.person, .req-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--grey-scribble); }
.req-row.inline { display: inline-flex; border: 0; padding: 0 0 0 10px; }
.reqs { margin-top: var(--s-3); }
.lockbox { text-align: center; }
.lockbox .lock-i { width: 28px; height: 32px; }
.track { margin-top: var(--s-3); }
.notif-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; border-top: var(--bw) solid var(--ink); }
.notif-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--grey-scribble); }
.notif-list li.unread { background: var(--tint, #FFF4E5); }
.n-body { overflow-wrap: anywhere; }
.soc-set { margin: var(--s-3) 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.mod-item { margin: 10px 0; }
/* chart editor */
.ce { border: var(--bw) solid var(--ink); padding: 10px; background: var(--canvas); }
.ce-bar, .ce-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.ce-bar .seg button, .ce-tools .ce-tool { min-height: 36px; padding: 5px 10px; font-size: 13px; }
.ce-tool { background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); cursor: pointer; font: 13px var(--f-body); }
.ce-tool[aria-pressed="true"] { background: var(--navy); color: var(--on-fill); }
.ce-sel { height: 36px; padding: 0 8px; background: var(--paper); border: var(--bw-thin) solid var(--ink); color: var(--text); font: 13px var(--f-body); }
.ce-sw { display: inline-flex; gap: 4px; }
.sw { width: 26px; height: 26px; background: var(--sw); border: var(--bw-thin) solid var(--canvas); outline: var(--bw-thin) solid var(--ink); cursor: pointer; }
.sw[aria-pressed="true"] { outline: 3px solid var(--orange); }
.ce-inds-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ce-inds-chips:empty { display: none; }
.ce-main { position: relative; }
.ce-svg { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.ce-svg.drawing { pointer-events: auto; cursor: crosshair; touch-action: none; }
.ce-sub { margin-top: 4px; border-top: 1px solid var(--grey-scribble); }
.ce-draws { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.ce-load { padding: 40px 0; text-align: center; }
/* the chart library lays itself out with a table: keep the site's table styles off it */
.ce-cv table, .ce-sub table { width: auto; border-collapse: separate; font-size: inherit; }
.ce-cv th, .ce-cv td, .ce-sub th, .ce-sub td, .ce-cv td:first-child, .ce-sub td:first-child { padding: 0; border: 0; white-space: normal; text-align: left; position: static; background: none; z-index: auto; font-family: inherit; min-width: 0; max-width: none; vertical-align: top; }
.ce-cv tr:hover td:first-child, .ce-sub tr:hover td:first-child { background: none; }

/* header: the search box gives way first when the bell is there */
#header-search { min-width: 0; }
#header-search input { min-width: 0; width: 100%; }
@media (min-width: 1024px) { #header-search { flex: 1 1 150px; } }
@media (min-width: 1024px) and (max-width: 1439px) { .main-nav { gap: 11px; } .header-link { font-size: 13.5px; } .header-row { gap: 10px; } }
.ce-sel { width: auto; flex: none; }
.tabs a .muted { margin-left: 6px; font-family: var(--f-data); }

/* ---------- Europe: region switch, price line, source marks ---------- */
.region-switch { display: inline-flex; flex: none; border: 2px solid var(--ink, #000); margin-right: 10px; }
.region-switch button { font: inherit; font-family: var(--font-display, inherit); font-weight: 700; font-size: 13px; letter-spacing: .04em; padding: 5px 9px; background: transparent; color: inherit; border: 0; cursor: pointer; line-height: 1; }
.region-switch button + button { border-left: 2px solid var(--ink, #000); }
.region-switch button[aria-pressed="true"] { background: var(--ink, #000); color: var(--canvas, #fff); }
.region-switch button:focus-visible { outline: 3px solid #FF7F00; outline-offset: 1px; }
html[data-region="eu"] .main-nav .us-only { display: none !important; }
.region-switch { align-self: center; justify-self: end; }
@media (max-width: 1100px) {
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
  .region-switch { grid-column: 3; grid-row: 1; margin-right: 0; }
  .theme-btn { grid-column: 4; }
  .acct { grid-column: 5; }
}
.eu-px { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 10px; }
.eu-px .data { font-size: 22px; font-weight: 600; }
.eu-px .up { color: var(--up, #2E9E3E); } .eu-px .dn { color: var(--dn, #E8141C); }
sup.src, span.src { font-size: 10px; font-weight: 700; margin-left: 2px; padding: 0 3px; border: 1px solid currentColor; line-height: 1.2; vertical-align: super; }
span.src { vertical-align: baseline; }
.eu-chart { min-height: 320px; }
@media (max-width: 640px) { .region-switch button { padding: 6px 7px; font-size: 12px; } }

/* ================= clean-up pass (Sep 2026) ================= */
/* header: two rows on desktop. Row 1: mark, a proper-size search, market switch, theme, account. Row 2: the sections. */
@media (min-width: 1101px) {
  .header-row { display: grid; grid-template-columns: auto minmax(280px, 500px) 1fr auto auto auto; grid-template-rows: auto auto; align-items: center;
    gap: 10px 16px; min-height: 0; padding-top: 14px; padding-bottom: 0; flex-wrap: nowrap; }
  .mark { grid-column: 1; grid-row: 1; }
  #header-search { grid-column: 2; grid-row: 1; max-width: none; margin: 0; flex: none; }
  .region-switch { grid-column: 4; grid-row: 1; margin: 0; }
  .theme-btn { grid-column: 5; grid-row: 1; }
  .acct { grid-column: 6; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 28px; padding: 4px 0 10px; }
  .header-link { font-size: 14.5px; }
}
.main-nav .header-link[aria-current="page"] { text-decoration: none; box-shadow: inset 0 -3px 0 var(--orange); }
.mark { white-space: nowrap; }
/* company tabs: on wide screens they all fit, on two lines if need be, instead of hiding behind a fade */
@media (min-width: 900px) {
  .tabs { flex-wrap: wrap; overflow: visible; row-gap: 0; }
  .tabs.ovf { -webkit-mask-image: none; mask-image: none; }
  .tabs a { padding: 10px 9px; font-size: 13.5px; min-height: 44px; letter-spacing: 0; }
}
/* the empty TradingView box doesn't hold up the page while it loads */
.tv-info .tradingview-widget-container { min-height: 0; }
/* footer */
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.foot-links a { color: var(--ink); }
/* front door */
.fd-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: var(--s-6); align-items: start; padding: var(--s-6) 0 var(--s-3); }
.fd-copy h1 { font-size: clamp(40px, 6.2vw, 88px); line-height: .95; margin: 18px 0 var(--s-3); }
.fd-copy > p { max-width: 580px; margin: 0 0 var(--s-4); }
.fd-copy .stamp { font-size: 13px; transform: rotate(-2deg); }
.fd-copy .picks { margin-top: var(--s-3); gap: 10px; }
.fd-board { padding: 16px 18px 12px; min-height: 360px; }
.fd-board-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fd-board-head h2 { font-size: 20px; margin: 0; }
.fd-board-head a { margin-left: auto; }
.fd-board .mrow { grid-template-columns: 64px minmax(0, 1fr) 90px 70px; min-height: 34px; }
.fd-board .eu-idx .mrow { grid-template-columns: 96px minmax(0, 1fr) 78px 70px; }
.fd-board .note { margin: 10px 0 0; }
.fd-sub { font-size: 14px; margin: 16px 0 6px; }
.fd-sec { margin-top: var(--s-5); }
.fd-head { display: flex; align-items: baseline; gap: 12px; }
.fd-head .home-sec { margin: 0 0 var(--s-3); }
.fd-head a { margin-left: auto; white-space: nowrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-4) 0 var(--s-5); }
.fd .post-grid { margin-top: 0; }
.post-card { padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); }
.post-img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--bw) solid var(--ink); background: var(--paper); }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h3 { font-size: 18px; line-height: 1.15; margin: 0; }
.post-body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.post-body .chip { align-self: flex-start; margin-top: auto; }
.skel-card { min-height: 300px; display: flex; flex-direction: column; gap: 12px; padding: 0 0 16px; }
.skel-card i { display: block; aspect-ratio: 16 / 9; background: var(--paper); }
.skel-card b { display: block; height: 14px; margin: 0 16px; background: var(--paper); }
.skel-card b + b { width: 60%; }
.skel-lines i { display: block; height: 22px; margin: 10px 0; background: var(--paper); }
@media (max-width: 900px) {
  .fd-hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding-top: var(--s-5); }
  .fd-board { min-height: 0; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .fd-board .mrow { grid-template-columns: 56px minmax(0, 1fr) 80px 62px; }
  .fd-board .eu-idx .mrow { grid-template-columns: 84px minmax(0, 1fr) 70px 62px; }
}

/* ---------- account menu ---------- */
.acct-wrap { position: relative; }
.acct { position: relative; }
button.acct-me { display: inline-flex; align-items: center; gap: 8px; background: var(--canvas); color: var(--ink); font: inherit; cursor: pointer; }
.acct-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 210px; background: var(--canvas); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: 4px 0; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 10px 16px; color: var(--ink); background: none; border: 0; font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--paper); }
.acct-menu [data-tour-start] { border-top: 1px solid var(--grey-scribble); }
.acct-menu .acct-out { color: var(--red); }

/* ---------- the tour ---------- */
#tour { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
#tour > * { pointer-events: auto; }
.tour-shade { position: fixed; inset: 0; background: rgba(6, 10, 22, .62); display: none; }
#tour.centre .tour-shade { display: block; }
.tour-block { position: fixed; background: transparent; }
.tour-spot { position: fixed; pointer-events: none !important; border: var(--bw) solid var(--orange); box-shadow: 0 0 0 9999px rgba(6, 10, 22, .62); transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; z-index: 1001; }
#tour.moving .tour-card { opacity: .0; }
.tour-card { position: fixed; z-index: 1004; width: min(380px, calc(100vw - 24px)); background: var(--canvas); color: var(--text); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 16px 18px 14px; transition: opacity .15s ease, left .25s ease, top .25s ease; }
#tour.centre .tour-card { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 24px)); }
.tour-card h2 { font-size: 22px; margin: 6px 0 8px; }
.tour-card p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; }
.tour-top { display: flex; align-items: center; }
.tour-count { font-size: 12px; color: var(--muted); }
.tour-x { margin-left: auto; background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 2px; }
.tour-dots { display: flex; gap: 5px; margin: 0 0 12px; }
.tour-dots i { flex: 1; height: 4px; background: var(--grey-scribble); }
.tour-dots i.done { background: var(--navy); } .tour-dots i.on { background: var(--orange); }
.tour-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tour-btns .grow { flex: 1; }
.tour-card.nudge { animation: tour-nudge .35s; }
@keyframes tour-nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
#tour.centre .tour-card.nudge { animation: none; }
.tour-lifted { z-index: 1003 !important; }
html.touring .bird-fab { z-index: 1002; }
.tour-ask { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: min(400px, calc(100vw - 24px)); background: var(--canvas); color: var(--text); border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink); padding: 22px 20px 16px; animation: tour-in .3s ease-out; }
.tour-ask .stamp { position: absolute; top: -16px; left: 16px; font-size: 13px; transform: rotate(-4deg); }
.tour-ask h2 { font-size: 24px; margin: 4px 0 8px; }
.tour-ask p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; }
@keyframes tour-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .tour-card { left: 8px !important; right: 8px; width: auto; bottom: 10px; top: auto !important; }
  .tour-card.top { top: 10px !important; bottom: auto; }
  #tour.centre .tour-card { right: auto; bottom: auto; width: calc(100vw - 24px); }
  .tour-ask { left: 10px; right: 10px; bottom: 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } .tour-ask, .tour-card.nudge { animation: none; } }
:root[data-theme="dark"] .tour-card, :root[data-theme="dark"] .tour-ask { box-shadow: 6px 6px 0 #000; }

/* ================= the bird on your own AI ================= */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.own h3 { font-size: 20px; margin: 2px 0 8px; }
.own p { margin: 0 0 10px; }
.own-small { font-size: 13px; color: var(--muted); }
.own-msg { padding: 6px 10px; border-left: 4px solid var(--orange); background: var(--tint); font-size: 14px; }
.own-msg.err { border-left-color: var(--red); }
.own-tiles { display: grid; gap: 8px; margin: 12px 0; }
.own-tile { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; padding: 9px 12px; background: var(--canvas); color: var(--ink);
  border: var(--bw-thin) solid var(--ink); cursor: pointer; font: 14px/1.4 var(--f-body); min-height: 44px; }
.own-tile strong { font-size: 15px; }
.own-tile .chip { font-size: 11px; padding: 0 6px; align-self: start; background: var(--amber); color: #000; }
.own-tile > span:last-child { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.own-tile:hover { background: var(--tint); }
.own-tile.on { border-color: var(--orange); box-shadow: 3px 3px 0 var(--orange); }
.own-how { border-top: 1px solid var(--grey-scribble); padding-top: 10px; margin-bottom: 8px; }
.own-how ol { margin: 0 0 10px; padding-left: 20px; }
.own-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.own-row input, .own select { flex: 1; min-width: 0; font: 15px var(--f-body); padding: 8px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); min-height: 44px; }
.own select { width: 100%; margin-bottom: 6px; }
.own-lab { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.own-acct { border-top: 1px solid var(--grey-scribble); margin-top: 18px; padding-top: 14px; }
.own-acct h2 { font-size: 20px; margin: 0 0 6px; }
@media (max-width: 640px) { .own-row input, .own select { font-size: 16px; } }
/* the account button (menu) fits a phone header: long usernames get an ellipsis */
button.acct-me .data { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .header-row { column-gap: 6px; } .region-switch { margin-right: 0; } .acct { gap: 6px; } button.acct-me { max-width: 76px; padding: 5px 7px; gap: 4px; } }
@media (max-width: 360px) { .facts { grid-template-columns: minmax(0, 1fr); } .auth-card { min-width: 0; } .auth-card h1 { overflow-wrap: anywhere; } .auth-card .sel, .auth-card .sel input { min-width: 0; max-width: 100%; } }
@media (max-width: 345px) { .header-row { column-gap: 4px; } .mark { font-size: 14px; } .theme-btn { width: 32px; height: 34px; } .acct .bell { width: 32px; min-width: 32px; }
  .region-switch button, .region-switch a { padding-left: 6px; padding-right: 6px; } }
@media (max-width: 380px) { .mark { padding: 4px 7px; }
  button.acct-me .data { display: none; }
  button.acct-me::before { content: ''; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.5'/%3E%3Cpath d='M3 22c0-5 4-8 9-8s9 3 9 8z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.5'/%3E%3Cpath d='M3 22c0-5 4-8 9-8s9 3 9 8z'/%3E%3C/svg%3E") center / contain no-repeat; } }

/* ================= the Noorult pigeon ================= */
.nrt-p { display: block; height: auto; max-width: 100%; user-select: none; -webkit-user-drag: none; }
.nrt-head { display: block; border-radius: 50%; background: #fff; flex: none; }
/* the mark: his face on the logo */
.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark-p { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; background: #fff; border: 2px solid var(--orange); margin: -4px 0 -4px -5px; flex: none; }
@media (max-width: 640px) { .mark { gap: 6px; } .mark-p { width: 24px; height: 24px; margin: -3px 0 -3px -4px; } }
@media (max-width: 480px) { .mark-p { display: none; } }
/* the bird button and chat header */
.bird-av { width: 38px; height: 38px; border: 2px solid var(--orange); }
.bird-fab { padding-left: 7px; }
.bird-head .bird-av { width: 32px; height: 32px; }
.bird-mood { float: left; width: 64px; margin: 0 10px 4px -2px; }
.bird-err::after { content: ''; display: block; clear: both; }
/* front door: he points at the market board */
.fd-copy { position: relative; }
.fd-p { position: absolute; right: -18px; top: -14px; width: clamp(150px, 15vw, 205px); z-index: 1; pointer-events: none; }
.fd-copy h1 { padding-right: clamp(150px, 14vw, 190px); }
@media (max-width: 1250px) and (min-width: 901px) { .fd-p { width: 150px; right: -26px; } }
@media (max-width: 900px) { .fd-p { width: 128px; right: -4px; top: 0; } .fd-copy h1 { padding-right: 104px; } }
@media (max-width: 380px) { .fd-p { width: 104px; } .fd-copy h1 { padding-right: 78px; } }
/* the blog: reading the paper */
.co-head:has(.blog-p) { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.blog-p { width: 150px; margin-bottom: -6px; }
@media (max-width: 640px) { .blog-p { width: 104px; } }
/* sign-up side panel */
.auth-p { width: 160px; margin: -10px auto 10px; }
/* nothing found */
.hero-p { position: relative; padding-right: 200px; min-height: 240px; }
.nf-p { position: absolute; right: 0; top: var(--s-5); width: 170px; }
@media (max-width: 640px) { .hero-p { padding-right: 0; min-height: 0; } .nf-p { position: static; width: 120px; margin: 0 0 10px; } }
/* stale-data bar */
.stale-bar .wrap { display: flex; align-items: center; gap: 12px; }
.stale-p { width: 46px; flex: none; margin: -6px 0; }
/* the tour */
.tour-p { width: 104px; float: right; margin: -6px -6px 4px 10px; }
.tour-ask-p { position: absolute; top: -30px; right: 14px; width: 60px; height: 60px; border: 3px solid var(--ink); }
/* footer: he signs off */
.foot-sign { display: flex; align-items: flex-end; gap: 10px; }
.foot-p { width: 70px; height: auto; margin-bottom: -6px; flex: none; }
@media print { .fd-p, .foot-p, .tour-p, .nf-p, .auth-p, .blog-p, .stale-p { display: none; } }

/* ================= Instagram subscribers and News ================= */
.post-img { position: relative; }
.lock-badge { position: absolute; left: 10px; top: 10px; background: var(--red); color: #fff; border: 2px solid #111; font-size: 12px; padding: 2px 8px; transform: rotate(-2deg); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.post-meta .chip { margin-top: 0; }
.lock-chip { background: var(--red); color: #fff; border-color: #111; }
.sub-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: end; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat);
  padding: 20px 22px; margin: var(--s-4) 0 var(--s-5); background: var(--canvas); }
.sub-box > div { order: -1; }
.sub-box h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 10px 0 6px; }
.sub-box p { margin: 0 0 10px; max-width: 62ch; }
.sub-box .stamp { font-size: 12px; transform: rotate(-2deg); }
.sub-box--in { padding: 14px 20px; }
.sub-box--in .sub-p { width: 76px; }
.sub-p { width: 120px; }
.sub-ig { display: inline-block; margin: 0 0 12px; font-weight: 700; color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.sub-form { align-items: flex-end; gap: 10px; }
.sub-form .sel, #subs-page .controls .sel { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.sub-form .sel > span, #subs-page .controls .sel > span { font-size: 14px; color: var(--muted); }
.sub-form input, #subs-page .controls input { font-size: 17px; padding: 9px 12px; min-height: 46px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); }
.sub-form input { font-family: var(--f-data); letter-spacing: .06em; text-transform: uppercase; min-width: 240px; }
.sub-form .btn, #subs-page .controls .btn { min-height: 46px; }
.sub-msg { min-height: 1.4em; margin: 8px 0 0 !important; font-size: 15px; }
@media (max-width: 640px) { .sub-box { grid-template-columns: minmax(0, 1fr); } .sub-p { width: 96px; justify-self: end; margin-top: -8px; } .sub-form input { min-width: 0; width: 100%; } }
.own-acct .sub-box { margin: 0; box-shadow: none; }
.news-empty { display: flex; align-items: center; gap: 16px; grid-column: 1 / -1; }
.nf-p2 { width: 110px; flex: none; }
.co-head:has(.blog-p) .blog-p { flex: none; }
.co-head:has(.blog-p) { flex-wrap: nowrap; } .co-head:has(.blog-p) > div { flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) { .co-head:has(.blog-p) { flex-direction: row; align-items: flex-end; } .co-head:has(.blog-p) .blog-p { width: 86px; margin-bottom: -4px; } }
/* the owner's code page */
.subs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-4) 0; }
.subs-grid .card { padding: 16px 18px; }
.subs-grid h2 { font-size: 20px; margin: 0 0 10px; }
.subs-code { font-size: 28px; font-weight: 700; letter-spacing: .08em; margin: 14px 0 10px; }
.subs-dm { white-space: pre-wrap; font: 14px/1.5 var(--f-body); background: var(--paper); border: 1px solid var(--grey-scribble); padding: 10px 12px; margin: 10px 0 0; }
.subs-table td, .subs-table th { vertical-align: middle; }
.chip.on { background: var(--orange); color: #000; }
@media (max-width: 800px) { .subs-grid { grid-template-columns: minmax(0, 1fr); } }

/* ================= the owner's dashboard ================= */
.acct-menu [hidden] { display: none !important; }   /* the owner-only menu item stays hidden for everyone else */
.owner-head .stamp { font-size: 12px; transform: rotate(-2deg); background: var(--navy); color: #fff; }
.owner-tabs { margin: 0 0 var(--s-4); }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0 0 var(--s-4); }
.ov-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-decoration: none; color: var(--ink); min-height: 104px; }
.ov-k { font-size: 13px; color: var(--muted); }
.ov-v { font-size: 30px; line-height: 1.15; font-weight: 600; }
.ov-s { font-size: 13px; color: var(--muted); margin: 0; }
.ov-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.ov-chart { padding: 14px 16px; }
.ov-chart h2 { font-size: 20px; margin: 0; }
.ob-chart { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.ob-bar { fill: var(--royal); }
:root[data-theme="dark"] .ob-bar { fill: #7C93FF; }
.ob-bar.today { fill: var(--orange); }
.ob-hit { fill: transparent; }
.ob-g:hover .ob-hit { fill: var(--tint); }
.ob-grid { stroke: var(--grey-scribble); stroke-width: 1; }
.ob-ax { font: 11px var(--f-data); fill: var(--muted); }
.ob-table { margin-top: 6px; font-size: 13px; }
.ob-table table { margin-top: 6px; }
.owner-filter { align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.owner-filter .sel { display: flex; flex-direction: column; gap: 4px; }
.owner-filter .sel > span { font-size: 14px; color: var(--muted); }
.owner-filter input { min-height: 44px; padding: 8px 12px; font-size: 16px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); min-width: 240px; }
.owner-filter .seg { display: flex; flex-wrap: wrap; gap: 6px; }
.owner-filter .seg .chip { cursor: pointer; min-height: 36px; background: var(--canvas); }
.owner-filter .seg .chip.on { background: var(--ink); color: var(--canvas); }
.owner-table td, .owner-table th { white-space: nowrap; vertical-align: middle; font-size: 14px; text-align: left !important; }
.owner-table .op-act { white-space: nowrap; }
.chip.warn { background: var(--red); color: #fff; }
@media (max-width: 800px) { .ov-charts { grid-template-columns: minmax(0, 1fr); } .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-v { font-size: 24px; } .owner-filter input { min-width: 0; width: 100%; } .owner-filter .sel { flex: 1 1 100%; } }

/* ================= NOORULT Learn ================= */
.linkish { background: none; border: 0; padding: 4px 0; color: var(--royal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.learn-hub, .learn-path, .lesson, .lstart, .lcert-wrap { max-width: 860px; margin: var(--s-5) auto var(--s-7); }
.learn-hub { max-width: none; }
.lh-hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--s-4); align-items: center; margin-bottom: var(--s-4); }
.lh-hero h1 { font-size: clamp(30px, 5vw, 52px); margin: 12px 0; }
.lh-hero .stamp { font-size: 12px; transform: rotate(-1.5deg); }
.lh-p { width: 100%; height: auto; max-width: 220px; justify-self: end; }
.lh-me { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 var(--s-5); }
.lh-stat { gap: 2px; text-decoration: none; color: var(--ink); min-height: 110px; }
.lh-stat strong { font-size: 26px; line-height: 1.2; }
.lh-sec { font-size: 26px; margin: var(--s-5) 0 var(--s-3); }
.lh-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.lh-path { flex-direction: row !important; gap: 14px; align-items: flex-start; }
.lh-path h3 { font-size: 22px; margin: 8px 0 4px; }
.lh-path p { margin: 4px 0; }
.lh-pp { width: 78px; height: auto; flex: 0 0 auto; }
.lh-path.soon { background: var(--paper); box-shadow: none; }
.lh-path.soon .lh-pp { filter: grayscale(1); opacity: .7; }
.lh-soon summary { cursor: pointer; font-size: 14px; color: var(--royal); min-height: 32px; display: flex; align-items: center; }
.lh-soon ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.lh-prog, .lq-prog, .lesson-bar { height: 10px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); margin: 8px 0 4px; }
.lh-prog i, .lq-prog i, .lesson-bar i { display: block; height: 100%; background: var(--orange); transition: width .25s; }
.lh-why .card h3 { font-size: 18px; margin: 0 0 6px; }
.lr-region { display: inline-flex; border: var(--bw-thin) solid var(--ink); }
.lr-region button, .lw-seg button { min-height: 36px; padding: 4px 12px; border: 0; background: var(--canvas); color: var(--ink); font: 600 14px var(--f-body); cursor: pointer; }
.lr-region button + button, .lw-seg button + button { border-left: var(--bw-thin) solid var(--ink); }
.lr-region button[aria-pressed="true"], .lw-seg button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }

/* path page */
.lp-mod h2 { font-size: 22px; margin: var(--s-5) 0 8px; }
.lp-list { list-style: none; padding: 0; margin: 0; border: var(--bw) solid var(--ink); }
.lp-list li + li { border-top: 1px solid var(--grey-scribble); }
.lp-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--ink); min-height: 56px; }
.lp-list a:hover { background: var(--hover, var(--paper)); }
.lp-t { display: flex; flex-direction: column; }
.lp-n { font-weight: 600; color: var(--muted); }
.lp-s { color: var(--muted); text-align: right; white-space: nowrap; }
.lp-list li.done .lp-s { color: var(--up); font-weight: 600; }
.lp-final { margin-top: var(--s-5); }
.lp-final h2 { font-size: 22px; margin: 0; }

/* the lesson player */
.lesson-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.lesson-top .lr-region { margin-left: auto; }
.lesson-h { font-size: clamp(26px, 4vw, 40px); margin: 14px 0 4px; }
.lcard-wrap { min-height: 300px; }
.lcard { border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); background: var(--canvas); padding: var(--s-4); margin: var(--s-3) 0; }
.lcard h2 { font-size: 24px; margin: 0 0 12px; }
.lcard h3 { font-size: 20px; margin: 8px 0; }
.ltext p:first-child { margin-top: 0; }
.ltext li { margin: 4px 0; }
.lhook { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s-3); align-items: center; }
.lhook-p { width: 100%; height: auto; }
.lbubble { position: relative; border: var(--bw) solid var(--ink); background: var(--tint); padding: 16px 18px; font-size: 20px; line-height: 1.45; }
.lbubble::before { content: ""; position: absolute; left: -16px; top: 40%; border: 8px solid transparent; border-right-color: var(--ink); border-width: 8px 16px 8px 0; }
.lbubble p { margin: 0; }
.ltext-p { width: 110px; height: auto; float: right; margin: 0 0 8px 12px; }
.lsteps { padding-left: 22px; }
.lsteps li { margin: 8px 0; animation: lstep .25s ease-out; }
@keyframes lstep { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.lesson-nav { display: flex; gap: 10px; align-items: center; position: sticky; bottom: 0; background: var(--canvas); padding: 10px 0; border-top: var(--bw-thin) solid var(--ink); z-index: 5; }
.lesson-nav .grow { flex: 1; }
.lesson-disc { margin-top: var(--s-3); }
.ltake { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-3); align-items: center; }
.ltake-p { width: 100%; height: auto; }
.ltake .stamp { font-size: 13px; transform: rotate(-2deg); }
.ltake p { font-size: 20px; }
.ltake-q { border-left: 6px solid var(--orange); padding: 4px 14px; margin: 10px 0; font-size: 18px; }
.lw-formula { border: var(--bw-thin) dashed var(--ink); padding: 10px 14px; font-family: var(--f-data); }
.lesson-done, .lresult { text-align: center; }
.lesson-done .gate-btns, .lresult .gate-btns { justify-content: center; }
.ldone-p { width: 160px; height: auto; display: block; margin: 0 auto 10px; }
.lesson-done h1, .lresult h1 { font-size: clamp(28px, 5vw, 44px); margin: 12px 0; }
.ldone-score strong { font-size: 24px; }
.lesson-done .sub-box { text-align: left; margin: var(--s-4) 0; }

/* questions */
.lq { margin: 4px 0; }
.lq-q { font-size: 19px; font-weight: 600; margin: 4px 0 12px; }
.lq-opts { display: grid; gap: 8px; }
.lq-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lq-opt { text-align: left; min-height: 48px; padding: 10px 14px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); font: 16px var(--f-body); cursor: pointer; }
.lq-opt:hover:not(:disabled) { background: var(--paper); }
.lq-opt[aria-checked="true"] { background: var(--tint-2, var(--paper)); border-width: var(--bw); box-shadow: 3px 3px 0 var(--ink); }
.lq-opt.ok { border-color: var(--up); background: color-mix(in srgb, var(--up) 14%, var(--canvas)); }
.lq-opt.ok::after { content: "  ✓"; font-weight: 700; color: var(--up); }
.lq-opt.bad { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--canvas)); }
.lq-opt.bad::after { content: "  ✕"; font-weight: 700; color: var(--red); }
.lq-opt:disabled { cursor: default; }
.lq-num { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lq-num input, .lw-nmr input, .lw-plan input, .lw-plan textarea, .lw-sel select { min-height: 44px; padding: 8px 12px; font: 17px var(--f-data); border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); border-radius: 0; }
.lq-num input { width: 160px; }
.lq-slots { min-height: 52px; border: var(--bw-thin) dashed var(--ink); padding: 8px 8px 8px 34px; margin: 8px 0; }
.lq-slots li { margin: 4px 0; }
.lq-slots li.ok .lq-it { border-color: var(--up); } .lq-slots li.ok::marker { color: var(--up); }
.lq-slots li.bad .lq-it { border-color: var(--red); border-style: dashed; }
.lq-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.lq-it { cursor: pointer; min-height: 40px; padding: 6px 12px; font-size: 15px; text-align: left; }
.lq-fb { margin: 12px 0; padding: 10px 14px; border-left: 6px solid var(--muted); background: var(--paper); }
.lq-fb.ok { border-left-color: var(--up); }
.lq-fb.bad { border-left-color: var(--red); }
.lqs .btn, .lq > .btn { margin-top: 6px; }

/* the bird hint box */
.lhint { margin-top: var(--s-3); border-top: 1px dashed var(--grey-scribble); padding-top: 10px; }
.lhint-open img { border-radius: 50%; }
.lhint textarea { width: 100%; font: 16px var(--f-body); padding: 8px 10px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); margin: 6px 0; box-sizing: border-box; }
.lhint-a { display: flex; gap: 10px; align-items: flex-start; background: var(--tint); border: var(--bw-thin) solid var(--ink); padding: 10px 12px; margin-top: 8px; }
.lhint-a img { border-radius: 50%; flex: 0 0 auto; }
.lhint-a p { margin: 0; }

/* evidence badges */
.ev { border: var(--bw-thin) solid var(--ink); margin: 10px 0; background: var(--canvas); }
.ev summary { cursor: pointer; padding: 8px 12px; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 44px; }
.ev summary::-webkit-details-marker { display: none; }
.ev summary::after { content: "＋"; margin-left: auto; font-weight: 700; }
.ev[open] summary::after { content: "−"; }
.ev-lv { font: 700 11px var(--f-data); letter-spacing: .06em; padding: 3px 8px; border: var(--bw-thin) solid var(--ink); white-space: nowrap; }
.ev-strong .ev-lv { background: var(--up); color: #fff; border-color: var(--up); }
.ev-strong .ev-lv::before { content: "▲ "; }
.ev-mixed .ev-lv { background: var(--amber); color: #000; border-color: #B96A00; }
.ev-mixed .ev-lv::before { content: "◆ "; }
.ev-weak .ev-lv { background: var(--red); color: #fff; border-color: var(--red); }
.ev-weak .ev-lv::before { content: "▼ "; }
.ev p, .ev ul { margin: 0 12px 10px; font-size: 15px; }
.ev ul { padding-left: 18px; }

/* onboarding and results */
.ls-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: var(--s-3) 0 var(--s-4); }
.ls-opt { text-align: left; cursor: pointer; gap: 4px; font: inherit; color: var(--ink); min-height: 90px; }
.ls-opt:hover { background: var(--paper); }
.lstart h1 { font-size: clamp(28px, 4.5vw, 42px); margin: 12px 0; }
.lstart h2 { font-size: 22px; margin: var(--s-4) 0 6px; }
.lq-run { border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: var(--s-4); background: var(--canvas); }

/* certificate */
.lcert { text-align: center; padding: var(--s-6) var(--s-4); position: relative; border-width: var(--bw-heavy); }
.lcert-p { width: 120px; height: auto; display: block; margin: 0 auto 10px; }
.lcert h1 { font-size: clamp(30px, 6vw, 54px); margin: 4px 0; text-transform: none; }
.lcert h2 { font-size: clamp(22px, 4vw, 32px); margin: 4px 0 12px; }
.lcert-k { margin: 12px 0 0; color: var(--muted); }
.lcert-wrap .gate-btns { justify-content: center; margin-top: var(--s-4); }

/* widgets */
.lw { margin: var(--s-3) 0; }
.lw-box { display: flex; flex-direction: column; gap: 12px; }
.lw-sl label, .lw-nm label, .lw-f label, .lw-f > span { font-size: 15px; font-weight: 600; display: block; }
.lw-slr { display: flex; align-items: center; gap: 12px; }
.lw-slr input[type="range"] { flex: 1; min-height: 32px; accent-color: var(--orange); }
.lw-slr output { min-width: 84px; text-align: right; font-weight: 600; }
.lw-nmr { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.lw-nmr input { width: 100%; max-width: 180px; }
.lw-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.lw-fs { border: var(--bw-thin) solid var(--ink); padding: 10px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lw-fs legend { font-weight: 700; padding: 0 6px; }
.lw-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lw-seg { display: inline-flex; flex-wrap: wrap; border: var(--bw-thin) solid var(--ink); align-self: flex-start; }
.lw-big { font-size: 18px; margin: 0; }
.lw-big strong { font-size: 20px; }
.lw-illus { margin: 0; color: var(--muted); font-style: italic; }
.lw-t { width: 100%; border-collapse: collapse; }
.lw-t th, .lw-t td { padding: 6px 8px; border-bottom: 1px solid var(--grey-scribble); text-align: left; }
.lw-t tr.hl td { background: var(--tint); }
.lw-kv { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--grey-scribble); padding: 4px 0; }
.lw-stats p { margin: 8px 0 0; }
.lw-hbar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 110px; gap: 10px; align-items: center; margin: 6px 0; }
.lw-hb { height: 22px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); }
.lw-hb i { display: block; height: 100%; background: var(--royal); transition: width .2s; }
.lw-hb.dn i { background: var(--red); background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,.35) 6px 9px); }
.lw-hbar strong { text-align: right; }
.lw-mat { display: flex; flex-direction: column; gap: 6px; }
.lw-mat-bar { height: 34px; background: var(--up); color: #fff; display: flex; align-items: center; padding: 0 10px; font-weight: 600; white-space: nowrap; overflow: visible; transition: width .3s; border: var(--bw-thin) solid var(--ink); box-sizing: border-box; min-width: 2px; }
.lw-mat-bar.left { background: var(--orange); color: #000; }
.lw-mat-bar span { font-size: 14px; }
.lw-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.lw-stepl { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lw-stepl li { display: flex; gap: 10px; align-items: center; border: var(--bw-thin) solid var(--grey-scribble); padding: 8px 10px; font-size: 15px; }
.lw-stepl li.on { border: var(--bw) solid var(--orange); background: var(--tint); font-weight: 700; }
.lw-stepl li.done { color: var(--muted); }
.lw-sn { font: 700 14px var(--f-data); width: 26px; height: 26px; border: var(--bw-thin) solid currentColor; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.lw-tick { margin-left: auto; color: var(--up); font-weight: 700; }
.lw-res h3 { font-size: 22px; margin: 8px 0; }
.lw-res .stamp { font-size: 12px; }
.lw-funds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lw-fund { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px; min-height: 84px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); font: 15px var(--f-body); cursor: pointer; }
.lw-fund:hover:not(:disabled) { background: var(--paper); }
.lw-fund.me { border-width: var(--bw-heavy); box-shadow: 3px 3px 0 var(--ink); }
.lw-fund.f-closed { opacity: .6; text-decoration: line-through; text-decoration-thickness: 1px; }
.lw-fund.f-closed .lw-fate { text-decoration: none; display: inline-block; }
.lw-fund.f-beat { border-color: var(--up); background: color-mix(in srgb, var(--up) 12%, var(--canvas)); }
.lw-fate { font-size: 13px; font-weight: 700; margin-top: 4px; }
.lw-wr { display: flex; flex-direction: column; gap: 8px; }
.lw-wi { border: var(--bw-thin) solid var(--ink); }
.lw-wi summary { cursor: pointer; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; min-height: 48px; }
.lw-wi summary .small { grid-column: 1 / -1; }
.lw-wlim { font-weight: 600; }
.lw-wi dl { margin: 0; padding: 0 12px 10px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; font-size: 15px; }
.lw-wi dt { font-weight: 700; }
.lw-wi dd { margin: 0; }
.lw-wr-all h4 { margin: 8px 0 4px; }
.lw-wr-all ul { margin: 0; padding-left: 18px; font-size: 15px; }
.lw-coming { border: var(--bw-thin) dashed var(--orange); padding: 8px 12px; font-size: 15px; }
.lw-coming .stamp { font-size: 11px; margin-right: 6px; }
.lw-sel { display: flex; flex-direction: column; gap: 4px; font-weight: 600; max-width: 280px; }
.lw-ticket .lw-tk-head { border-bottom: var(--bw-thin) solid var(--ink); padding-bottom: 8px; }
.lw-q b { font-weight: 700; }
.lw-ev { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.lw-ev dt { font-weight: 700; }
.lw-ev dd { margin: 0; }
.lw-swipe .lw-card { margin: 0; border: var(--bw) solid var(--ink); background: var(--tint); padding: 16px 18px; font-size: 18px; box-shadow: var(--shadow-flat); }
.lw-rr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lw-rr > div { display: flex; flex-direction: column; gap: 8px; }
.lw-rr .btn.ok { border-color: var(--up); }
.lw-anat { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.lw-anat line { stroke: var(--ink); stroke-width: 3; }
.lw-anat .cu rect { fill: var(--canvas); stroke: var(--up); stroke-width: 4; }
.lw-anat .cd rect { fill: var(--red); stroke: var(--red); stroke-width: 4; }
.lw-anl text { font: 600 15px var(--f-body); fill: var(--ink); }
.lw-plan .lw-f textarea, .lw-plan .lw-f input { width: 100%; box-sizing: border-box; font-family: var(--f-body); font-size: 16px; }
.lw-plan .lw-f p { margin: 2px 0 6px; }
.lw-chk { display: flex; gap: 10px; align-items: center; min-height: 36px; font-size: 15px; }
.lw-chk input { width: 20px; height: 20px; accent-color: var(--orange); }
.lw-eft { font-weight: 600; margin: 4px 0 0; }
.lw-more summary { cursor: pointer; color: var(--royal); min-height: 36px; display: flex; align-items: center; }

/* the chart */
.lch { position: relative; }
.lch-svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.lch-svg:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
.lch-svg.pickable { cursor: crosshair; }
.lch-grid line { stroke: var(--grey-scribble); stroke-width: 1; }
.lch-ax text, .lch-plvl text { font: 11px var(--f-data); fill: var(--muted); }
.lch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lch-line.thin { stroke-width: 1.4; }
.lch-line.dash { stroke-dasharray: 5 4; }
.lch-line.s1 { stroke: var(--royal); } .lch-line.s2 { stroke: var(--up); } .lch-line.s3 { stroke: var(--orange); } .lch-line.s4 { stroke: var(--red); } .lch-line.s5 { stroke: var(--muted); }
.lch-area { fill: var(--royal); opacity: .12; stroke: none; }
.lch-candles .cu line, .lch-candles .cd line { stroke-width: 1; }
.lch-candles .cu line { stroke: var(--up); } .lch-candles .cu rect { fill: var(--canvas); stroke: var(--up); stroke-width: 1.2; }
.lch-candles .cd line { stroke: var(--red); } .lch-candles .cd rect { fill: var(--red); stroke: var(--red); stroke-width: 1; }
.lch-bars rect { fill: var(--royal); } .lch-bars rect.hl { fill: var(--orange); }
.lch-lvl line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 4; }
.lch-lvl text { font: 700 11px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--canvas); stroke-width: 3px; }
.lch-lvl.lv-sup line { stroke: var(--up); stroke-width: 2.5; stroke-dasharray: none; } .lch-lvl.lv-sup text { fill: var(--up); }
.lch-lvl.lv-res line { stroke: var(--red); stroke-width: 2.5; stroke-dasharray: none; } .lch-lvl.lv-res text { fill: var(--red); }
.lch-lvl.lv-exp line { stroke: var(--orange); stroke-width: 2; stroke-dasharray: 2 3; } .lch-lvl.lv-exp text { fill: #B96A00; }
.lch-lvl.lv-you line { stroke: var(--orange); stroke-width: 2; }
.lch-lvl.lv-base line { stroke: var(--muted); }
.lch-mark path { fill: var(--ink); }
.lch-mark text { font: 700 10px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--canvas); stroke-width: 3px; }
.lch-shade rect { fill: var(--tint); } .lch-shade text { font: 11px var(--f-body); fill: var(--muted); }
.lch-future rect { fill: var(--paper); stroke: var(--grey-scribble); stroke-dasharray: 4 4; }
.lch-future text { font: 800 40px var(--f-display); fill: var(--grey-scribble); }
.lch-pbox { fill: none; stroke: var(--grey-scribble); }
.lch-plvl line { stroke: var(--grey-scribble); stroke-dasharray: 4 3; }
.lch-plab { font: 700 11px var(--f-body); fill: var(--muted); }
.lch-pbar rect { fill: var(--grey-scribble); }
.lch-cross line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.lch-tip { display: none; position: absolute; top: 4px; z-index: 3; pointer-events: none; background: var(--canvas); border: var(--bw-thin) solid var(--ink); padding: 6px 8px; font-size: 12px; line-height: 1.4; box-shadow: 3px 3px 0 var(--ink); max-width: 220px; }
.lch-tip strong, .lch-tip span { display: block; white-space: nowrap; }
.lch-tip .lch-at { color: var(--orange); font-weight: 700; }
.lch-table { margin-top: 6px; font-size: 13px; }
.lch-table summary { cursor: pointer; color: var(--royal); min-height: 32px; display: flex; align-items: center; }
.lch-table .table-wrap { max-height: 280px; overflow: auto; }
.lch-table table { width: 100%; }
:root[data-theme="dark"] .lbubble, :root[data-theme="dark"] .lhint-a, :root[data-theme="dark"] .lw-swipe .lw-card { background: var(--paper); }
:root[data-theme="dark"] .ev-mixed .ev-lv { color: #000; }

@media (prefers-reduced-motion: reduce) { .lsteps li { animation: none; } .lh-prog i, .lq-prog i, .lesson-bar i, .lw-hb i, .lw-mat-bar { transition: none; } }
@media print { .site-header, .site-footer, .lesson-nav, .lhint, .gate-btns, .lstart > a { display: none !important; } .lw-plan textarea { border: 1px solid #000; } }
@media (max-width: 760px) {
  .lh-hero { grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
  .lh-me { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lh-paths, .ls-opts, .lw-grid2, .lw-steps, .lw-rr { grid-template-columns: minmax(0, 1fr); }
  .lw-funds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lhook { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .lbubble { font-size: 17px; padding: 12px 14px; }
  .ltake { grid-template-columns: 72px minmax(0, 1fr); }
  .ltake p { font-size: 17px; }
  .lcard { padding: var(--s-3); }
  .lp-list a { grid-template-columns: 52px minmax(0, 1fr); }
  .lp-s { grid-column: 2; text-align: left; }
  .lw-hbar { grid-template-columns: 110px minmax(0, 1fr) 84px; font-size: 14px; }
  .lw-ev, .lw-wi dl { grid-template-columns: minmax(0, 1fr); }
  .ltext-p { width: 80px; }
  .lesson-top .lr-region { margin-left: 0; }
}
/* in a lesson, the in-lesson hint box stands in for the floating bird button (which would sit on top of Next) */
body:has(#app .lesson, #app .lstart) #bird-fab { display: none !important; }
.lw-box > * { min-width: 0; }
.lw-fee-rows, .lw-stats, .lw-bd { overflow-x: auto; }
@media (max-width: 760px) { .lw-t th, .lw-t td { padding: 5px 5px; font-size: 13px; } .lw-t .small { display: block; } }
.lw-coming .stamp { transform: none; display: table; margin: 0 0 6px; }
@media (max-width: 760px) { .lw-wi summary { grid-template-columns: minmax(0, 1fr); } }

/* ================= Learn widget kit (w-kit.js) and Paths 2–4 ================= */
.lw-sort .lw-card, .lw-flash .lw-fc { margin: 0; border: var(--bw) solid var(--ink); background: var(--tint); padding: 16px 18px; font-size: 18px; box-shadow: var(--shadow-flat); }
:root[data-theme="dark"] .lw-sort .lw-card, :root[data-theme="dark"] .lw-fc { background: var(--paper); }
.lw-ktab { width: 100%; border-collapse: collapse; font-size: 15px; }
.lw-ktab th, .lw-ktab td { border-bottom: 1px solid var(--grey-scribble); padding: 7px 8px; text-align: left; vertical-align: top; }
.lw-ktab td { text-align: right; white-space: nowrap; }
.lw-ktab tr.hl th, .lw-ktab tr.hl td { font-weight: 800; background: var(--tint); }
:root[data-theme="dark"] .lw-ktab tr.hl th, :root[data-theme="dark"] .lw-ktab tr.hl td { background: var(--paper); }
.lw-ktab tr.sub th { padding-left: 22px; font-weight: 400; }
.lw-knote:empty, .lw-krows:empty { display: none; }
.lw-mt { display: flex; flex-direction: column; gap: 10px; }
.lw-mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 8px 10px; border: var(--bw-thin) solid var(--ink); }
.lw-mrow label { font-weight: 600; }
.lw-mrow select { min-height: 40px; font: 15px var(--f-body); border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); padding: 0 8px; max-width: 100%; }
.lw-mrow .lw-mres { grid-column: 1 / -1; font-size: 14px; }
.lw-mrow.ok { border-color: var(--up, #1c7c3a); } .lw-mrow.bad { border-color: var(--down, #c62828); border-style: dashed; }
.lw-doc { border: var(--bw-thin) solid var(--ink); background: var(--canvas); padding: 14px 16px; font: 15px/1.6 var(--f-data, monospace); max-height: 460px; overflow-y: auto; }
.lw-doc p { margin: 0 0 10px; } .lw-doc h4 { margin: 12px 0 6px; font: 700 15px var(--f-body); text-transform: uppercase; }
.lw-doc-t { font-family: var(--f-body); color: var(--muted); border-bottom: 1px solid var(--grey-scribble); padding-bottom: 6px; }
.lw-spot { font: inherit; color: inherit; background: none; border: 0; border-bottom: 2px dotted var(--muted); padding: 0 1px; cursor: pointer; text-align: left; }
.lw-spot:hover, .lw-spot:focus-visible { background: var(--tint); }
.lw-spot.ok, .lw-spot.shown { background: rgba(46, 160, 67, .18); border-bottom: 2px solid var(--up, #1c7c3a); }
.lw-spot.bad { background: rgba(214, 48, 49, .12); border-bottom: 2px dashed var(--down, #c62828); }
.lw-spot:disabled, .lw-spot[aria-disabled="true"] { cursor: default; color: inherit; }
.lw-spot { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lw-spot-why { display: block; font: 14px/1.45 var(--f-body); margin: 4px 0 8px; padding: 6px 10px; border-left: 3px solid var(--up, #1c7c3a); background: var(--tint); }
.lw-spot-why.bad { border-left-color: var(--down, #c62828); }
:root[data-theme="dark"] .lw-spot-why { background: var(--paper); }
.lw-fc { min-height: 110px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.lw-fc-f { font-weight: 700; } .lw-fc-b { border-top: 1px dashed var(--ink); padding-top: 10px; font-size: 16px; }
.lw-lt { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.lw-lt label { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; gap: 4px; }
.lw-lt input { min-height: 40px; width: 140px; font: 600 16px var(--f-data, monospace); text-transform: uppercase; border: var(--bw-thin) solid var(--ink); padding: 0 10px; background: var(--canvas); color: var(--ink); }
.lw-wbs { border-top: var(--bw) solid var(--ink); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.lw-wbs h3 { font-size: 18px; margin: 0; }
.lw-wb .lw-f select { min-height: 40px; font: 15px var(--f-body); border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); padding: 0 8px; }
.lw-wbsum:empty { display: none; }
.lw-wbsum { border: var(--bw) solid var(--ink); padding: 12px 14px; background: var(--tint); }
:root[data-theme="dark"] .lw-wbsum { background: var(--paper); }
.lw-pred .lq-opt[aria-checked="true"] { outline: 3px solid var(--orange); }
@media (max-width: 760px) { .lw-mrow { grid-template-columns: minmax(0, 1fr); } .lw-ktab td { white-space: normal; } }

/* prerequisites, module intros, path extras */
.lpre { border: var(--bw) solid var(--ink); background: var(--tint); padding: 16px 18px; margin: var(--s-3) 0; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-flat); }
:root[data-theme="dark"] .lpre { background: var(--paper); }
.lpre h2 { font-size: 20px; margin: 0; }
.lpre > .stamp { align-self: flex-start; }
.lpre ul { margin: 0; padding-left: 20px; columns: 2 280px; column-gap: 28px; }
.lpre li { margin: 0 0 4px; break-inside: avoid; }
.lpre.ok { background: var(--canvas); box-shadow: none; }
.lpre-ok { font-weight: 700; }
.lp-mod-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-mod-h .small { white-space: nowrap; }
.lp-modfin { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; }
.lp-list li.cap .lp-n { background: var(--orange); color: #fff; }
.lh-path .lh-pre { font-size: 13px; }
.lpre-page { max-width: 760px; }
.lp-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 var(--s-3); }
.lp-jump a { font: 700 13px var(--f-body); border: var(--bw-thin) solid var(--ink); padding: 4px 10px; text-decoration: none; color: var(--ink); }
.lp-jump a.done { background: var(--ink); color: var(--canvas); }
.lw-ktab th, .lw-ktab td { position: static !important; left: auto !important; top: auto !important; border-left: 0 !important; border-right: 0 !important; background: transparent; box-shadow: none !important; z-index: auto !important; }
.lw-ktab th { font: 600 15px var(--f-body); color: var(--ink); width: auto; }
.lw-ktab td { font-family: var(--f-data, monospace); }
.lch-bars.s2 rect { fill: var(--up); } .lch-bars.s3 rect { fill: var(--orange); } .lch-bars.s4 rect { fill: var(--red); } .lch-bars.s5 rect { fill: var(--muted); }
.lch-bars rect.neg { fill: var(--red); }
.lch-zero { stroke: var(--ink); stroke-width: 1.2; }
.ltext table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; display: block; overflow-x: auto; }
.ltext table th, .ltext table td { position: static !important; min-width: 0 !important; width: auto !important; white-space: normal !important; border: 0; border-bottom: 1px solid var(--grey-scribble); padding: 6px 8px; text-align: left; vertical-align: top; background: transparent; box-shadow: none !important; }
.ltext table th { font-weight: 700; }
.lch-table .table-wrap { overflow-x: auto; max-width: 100%; }
.lch-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 13px var(--f-body); margin: 0 0 4px; }
.lch-key { display: inline-flex; align-items: center; gap: 6px; }
.lch-key i { display: inline-block; width: 18px; height: 3px; background: var(--royal); }
.lch-key.bar i { height: 10px; width: 12px; }
.lch-key.dash i { background: repeating-linear-gradient(90deg, var(--royal) 0 5px, transparent 5px 8px); }
.lch-key.s2 i { background: var(--up); } .lch-key.s3 i { background: var(--orange); } .lch-key.s4 i { background: var(--red); } .lch-key.s5 i { background: var(--muted); }
.lch-pbar rect.neg { fill: var(--red); }

/* ---- UI fixes (28 Sep 2026): nothing in a lesson card may push past its edge ---- */
.lcard select { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.lcard .lw-f, .lcard label { min-width: 0; }
.lcard p, .lcard li, .lcard em, .lcard strong, .lcard .lq-q { overflow-wrap: break-word; }
.lcard em, .lcard code { overflow-wrap: anywhere; }
.lcard code { overflow-wrap: anywhere; word-break: break-word; }
.lcard :not(.table-wrap) > table:not(.lw-ktab) { display: block; overflow-x: auto; max-width: 100%; }
.lcard svg { max-width: 100%; }
.lw-mrow label { overflow-wrap: anywhere; min-width: 0; }
/* key/value result tables: long values wrap instead of pushing the page wider; on phones each row stacks (label above value) */
.lw-ktab td { white-space: normal; overflow-wrap: break-word; }
.lw-ktab th { width: 45%; }
@media (max-width: 520px) {
  .lw-ktab, .lw-ktab tbody, .lw-ktab tr { display: block; width: 100%; }
  .lw-ktab th, .lw-ktab td { display: block; width: auto; text-align: left; padding: 2px 8px; border-bottom: 0; }
  .lw-ktab tr { border-bottom: 1px solid var(--grey-scribble); padding: 6px 0; }
  .lw-ktab tr.sub th { padding-left: 16px; }
}

/* ================= Noorult news graphics (built by news/newsvg.py): the site's own look ================= */
.nsvg { display: block; width: 100%; height: auto; font-family: var(--f-body); }
.nsvg .n-bg { fill: var(--canvas); }
.nsvg .n-card { fill: var(--canvas); stroke: var(--ink); stroke-width: 3; }
.nsvg .n-shadow { fill: var(--ink); }
.nsvg .n-ink { fill: var(--ink); } .nsvg .n-mut { fill: var(--muted); } .nsvg .n-mut2 { fill: var(--grey-scribble); }
.nsvg .n-bar { fill: var(--navy); } .nsvg .n-track { fill: var(--paper); }
.nsvg .n-a { fill: var(--royal); } .nsvg .n-b { fill: var(--orange); } .nsvg .n-up { fill: var(--up); } .nsvg .n-dn { fill: var(--red); } .nsvg .n-navy { fill: var(--navy); }
.nsvg .n-on { fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2px; }
.nsvg .n-grid { stroke: var(--grey-scribble); stroke-width: 1; }
.nsvg .n-axis { stroke: var(--ink); stroke-width: 2.5; }
.nsvg .n-under { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.nsvg .s-bar, .nsvg .s-b { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.nsvg .s-bar { stroke: var(--navy); } .nsvg .s-b { stroke: var(--orange); }
.nsvg .n-markbox { fill: var(--navy); stroke: var(--orange); stroke-width: 2.5; }
.nsvg .n-markt { fill: #fff; }
.nsvg .t-h { font: 800 22px var(--f-display); text-transform: uppercase; letter-spacing: .01em; font-variation-settings: 'BNCE' 0, 'INFM' 50; }
.nsvg .t-l { font-size: 13px; } .nsvg .t-s { font-size: 11px; } .nsvg .t-dl { font: 700 14px var(--f-data); }
.nsvg .t-d { font: 12px var(--f-data); } .nsvg .t-dv { font: 700 14px var(--f-data); } .nsvg .t-dv2 { font: 700 20px var(--f-data); }
.nsvg .t-v { font: 800 44px var(--f-display); } .nsvg .t-brand { font: 800 11px var(--f-display); letter-spacing: .06em; }
:root[data-theme="dark"] .nsvg .n-bar, :root[data-theme="dark"] .nsvg .n-navy { fill: #7C93FF; }
:root[data-theme="dark"] .nsvg .s-bar { stroke: #7C93FF; }
:root[data-theme="dark"] .nsvg .n-shadow { fill: #000; }

/* ================= Noorult News: cards, the News page, a story ================= */
.ncard { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); }
.ncard-fig { border-bottom: var(--bw) solid var(--ink); background: var(--canvas); line-height: 0; }
.ncard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.ncard-body h3 { font-size: 17px; margin: 0; line-height: 1.2; }
.ncard-body p { margin: 0; font-size: 15px; }
.ncard-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ncard-meta .chip { font-size: 12px; padding: 1px 7px; }
.ncard:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.ncard-big { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ncard-big .ncard-fig { border-bottom: 0; border-right: var(--bw) solid var(--ink); align-self: stretch; display: flex; align-items: center; }
.ncard-big .ncard-body { padding: 18px 20px; justify-content: center; }
.ncard-big h3 { font-size: clamp(20px, 2.4vw, 28px); }
.ncard-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.ncard-keys strong { color: var(--ink); font-size: 16px; }
.news-lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-4); margin-bottom: var(--s-5); }
.news-lead-big .ncard-big { display: flex; height: 100%; }
.news-lead-big .ncard-big .ncard-fig { border-right: 0; border-bottom: var(--bw) solid var(--ink); }
.news-lead-side { display: flex; flex-direction: column; gap: 12px; }
.news-lead-side .ncard { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.news-lead-side .ncard .ncard-fig { border-bottom: 0; border-right: var(--bw-thin) solid var(--ink); display: flex; align-items: center; }
.news-lead-side .ncard h3 { font-size: 15px; }
.news-lead-side .post-card { flex-direction: row; }
.fd-nstrip .home-sec { font-size: 22px; }
.nfilter { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: var(--s-3) 0; }
.ntopics { display: flex; flex-wrap: wrap; gap: 6px; }
.ntopics .chip { text-decoration: none; min-height: 34px; display: inline-flex; align-items: center; gap: 4px; }
.ntopics .chip.on { background: var(--ink); color: var(--canvas); } .ntopics .chip.on .muted { color: var(--grey-scribble); }
.nsearch input { min-height: 44px; padding: 8px 12px; font: 16px var(--f-body); border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); min-width: 240px; }
.nmore-wrap { text-align: center; }
.nstory { max-width: 760px; margin: var(--s-5) auto var(--s-7); }
.nstory-meta { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.nstory-meta .chip { text-decoration: none; }
.nstory h1 { font-size: clamp(28px, 4.4vw, 44px); margin: 6px 0 10px; }
.ndek { font-size: 20px; margin: 0 0 var(--s-3); }
.nkeys { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 var(--s-3); }
.nkey { flex-direction: row !important; align-items: baseline; gap: 8px; padding: 8px 14px; }
.nkey strong { font-size: 22px; }
.nfig { padding: 0; margin: 0 0 var(--s-4); overflow: hidden; }
.nbody { font-size: 18px; line-height: 1.7; }
.nbody h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 22px; margin: var(--s-4) 0 6px; }
.nbody li { margin: 6px 0; }
.ntks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: var(--s-4) 0; }
.nsource { border-left: 6px solid var(--orange); background: var(--paper); padding: 12px 16px; margin: var(--s-4) 0; }
.nsource p { margin: 6px 0 0; }
.nsign { display: flex; align-items: center; gap: 16px; margin: var(--s-4) 0; }
.nsign-p { width: 96px; height: auto; }
.nsign p { font-size: 22px; margin: 0 0 8px; }
@media (max-width: 900px) { .news-lead { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ncard-big { grid-template-columns: minmax(0, 1fr); } .ncard-big .ncard-fig { border-right: 0; border-bottom: var(--bw) solid var(--ink); }
  .news-lead-side .ncard { grid-template-columns: 104px minmax(0, 1fr); }
  .nsearch, .nsearch input { width: 100%; min-width: 0; }
  .ndek { font-size: 18px; } .nbody { font-size: 17px; }
}
/* cartoon thumbnails on news cards and rows (the story page keeps the chart) */
.nthumb { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.news-lead-side .ncard .nthumb { height: 100%; }


/* ================= UX pass: grouped menus, phone tab bar, Me page, simpler default pages, Pro view ================= */
/* ---- grouped menus ---- */
.nav-g { position: relative; display: flex; align-items: center; }
.nav-btn { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--ink); font-family: var(--f-display); display: inline-flex; align-items: center; gap: 5px; }
.nav-btn::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-top: 1px; }
.nav-g.on .nav-btn { box-shadow: inset 0 -3px 0 var(--orange); }
.nav-menu { position: absolute; top: calc(100% + 2px); left: -14px; z-index: 45; min-width: 320px; background: var(--canvas); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: 6px; display: grid; gap: 1px; }
.nav-menu[hidden] { display: none; }
.nav-menu a, .md-g a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; text-decoration: none; color: var(--ink); }
.nav-menu a:hover, .nav-menu a:focus-visible, .nav-menu a[aria-current="page"] { background: var(--tint); }
.nav-menu strong, .md-g strong { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: .01em; }
.nav-menu span, .md-g span { font-size: 13px; color: var(--muted); }
.menu-btn, .tabbar { display: none; }
.pro-btn { flex: none; height: 40px; padding: 0 10px; cursor: pointer; background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); font: 800 12px var(--f-display); letter-spacing: .06em; }
.pro-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--orange); }
/* one clean header layout that replaces the older grid rules */
.header-row { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 10px 12px; }
#header-search { min-width: 190px; }
@media (min-width: 761px) { .acct-me { max-width: 150px; } }
.mark { order: 1; } .main-nav { order: 2; gap: 18px; } #header-search { order: 3; flex: 1 1 200px; max-width: 340px; margin-left: auto; }
.region-switch { order: 4; margin-right: 0; } .pro-btn { order: 5; } .theme-btn { order: 6; } .acct { order: 7; width: auto; } .menu-btn { order: 8; }
@media (min-width: 761px) and (max-width: 1180px) {
  .header-row { flex-wrap: wrap; padding-bottom: 0; }
  .main-nav { order: 10; flex: 1 1 100%; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; margin: 0 !important; padding: 0 0 6px !important; gap: 28px; }
  #header-search { max-width: none; }
}
/* ---- phones: a menu button, a full-screen menu and a tab bar at the bottom ---- */
@media (max-width: 760px) {
  .header-row { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; min-height: 0; }
  .mark { margin-right: auto; }
  .main-nav, .pro-btn, .theme-btn { display: none !important; }
  .region-switch { margin: 0; }
  #header-search { display: none; order: 10; flex: 1 1 100%; padding-bottom: 4px; }
  body.msearch #header-search { display: block; }
  .menu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .acct-me { max-width: 104px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--canvas); border-top: var(--bw) solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; background: none; border: 0; color: var(--ink); text-decoration: none; font: 800 10.5px var(--f-display); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { color: var(--navy); box-shadow: inset 0 3px 0 var(--orange); background: var(--tint); }
  :root[data-theme="dark"] .tabbar [aria-current="page"] { color: #fff; background: var(--paper); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .bird-fab { bottom: calc(72px + env(safe-area-inset-bottom)) !important; right: 10px !important; padding: 5px !important; min-height: 0 !important; }
  .bird-fab > :not(img):not(.nrt-head) { display: none; }
  .lesson-nav { bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.is-home #tab-search { color: var(--ink); }
}
.mdrawer { position: fixed; inset: 0; z-index: 90; background: var(--canvas); overflow-y: auto; padding: 0 var(--gutter) 40px; }
.md-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; background: var(--canvas); border-bottom: var(--bw) solid var(--ink); margin: 0 calc(-1 * var(--gutter)) 14px; padding: 10px var(--gutter); }
.md-top .display { font-size: 20px; }
.md-x { width: 44px; height: 44px; border: var(--bw) solid var(--ink); background: var(--canvas); color: var(--ink); font: 800 24px/1 var(--f-display); cursor: pointer; }
.mdrawer[hidden] { display: none; }
.md-in { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.md-g { border: var(--bw) solid var(--ink); padding: 8px; }
.md-g h2 { font-size: 16px; margin: 4px 10px 6px; }
.md-set { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; }
body.drawer-on { overflow: hidden; }
/* one search box per screen: the home page has its own big one */



/* ---- Me page ---- */
.me-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: var(--s-3) 0 var(--s-4); }
.me-l { gap: 2px; text-decoration: none; color: var(--ink); }
.me-l strong { font-family: var(--f-display); text-transform: uppercase; font-size: 16px; }
.me-set { gap: 0; padding: 0; }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--grey-scribble); }
.me-row:first-child { border-top: 0; }
.me-row p { margin: 2px 0 0; }
.me-row .btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--orange); }

/* ---- home (default view): one search, three doors, three stories ---- */
.fda-hero { position: relative; text-align: center; max-width: 860px; margin: var(--s-6) auto var(--s-5); }
.fda-hero h1 { font-size: clamp(38px, 6.5vw, 76px); margin: 14px 0 10px; line-height: 1; }
.fda-hero > p { font-size: 18px; max-width: 640px; margin: 0 auto var(--s-3); }
.fda-hero .stamp { font-size: 13px; transform: rotate(-2deg); }
.fda-hero #home-search { max-width: 640px; margin: 0 auto; text-align: left; }
.fda-hero #home-search input { height: 60px; font-size: 19px; border-width: var(--bw); }
.fda-hero .picks { justify-content: center; align-items: center; margin-top: 14px; }
.fda-p { position: absolute; right: -150px; top: 0; width: 170px; height: auto; }
.fda-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: 0 0 var(--s-5); }
.fda-door { text-decoration: none; color: var(--ink); gap: 8px; min-height: 180px; }
.fda-door p { margin: 0; flex: 1; }
.door-k { font-size: 22px; }
.door-go { font-weight: 700; color: var(--royal); margin-top: auto; }
.door-mkt { background: var(--navy); color: #fff; border-color: var(--ink); }
.door-mkt .door-go { color: var(--amber); }
.door-mini { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.door-row { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.18); padding: 3px 0; font-size: 15px; }
.door-mkt .up { color: #7CF08E; } .door-mkt .dn { color: #FF8C8F; }
.door-learn { background: var(--tint); }
:root[data-theme="dark"] .door-learn { background: var(--paper); }
.fda-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center; border-top: var(--bw) solid var(--ink); padding: var(--s-3) 0 0; margin: var(--s-4) 0 var(--s-5); font-size: 15px; }
.fda-tools a { font-weight: 700; }
@media (max-width: 1250px) { .fda-p { display: none; } }
@media (max-width: 760px) {
  .fda-hero { margin-top: var(--s-4); } .fda-hero > p { font-size: 16px; }
  .fda-doors { grid-template-columns: minmax(0, 1fr); gap: 12px; } .fda-door { min-height: 0; }
}

/* ---- company pages: section groups and sub-tabs, one main button, six numbers first ---- */
.co-groups { margin-bottom: 0; }
.co-sub { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 var(--s-3); }
.co-sub a { font: 700 14px var(--f-body); text-decoration: none; color: var(--ink); border: var(--bw-thin) solid var(--ink); padding: 4px 12px; background: var(--canvas); }
.co-sub a[aria-current="page"] { background: var(--ink); color: var(--canvas); }
.co-more { position: relative; }
.co-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--canvas); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: 6px; display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.co-more-menu[hidden] { display: none; }
.co-more-menu .btn { width: 100%; justify-content: flex-start; }
.stats.few .stat:nth-child(n+7) { display: none; }
.stats-edit-row { display: flex; justify-content: flex-end; gap: 16px; }
@media (max-width: 760px) {
  .co-head .co-actions { flex-wrap: nowrap; }
  .co-groups { overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
  .stats.few .stat:nth-child(n+5) { display: none; }
}

/* ---- markets (default view) ---- */
.mkt-sum { margin: 0 0 var(--s-3); }
.mkt-line { font-size: 20px; margin: 0 0 12px; max-width: 900px; }
.mkt-key { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mkt-fold { border: var(--bw) solid var(--ink); margin: var(--s-3) 0; background: var(--canvas); padding: 0 14px; }
.mkt-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; min-height: 52px; }
.mkt-fold > summary::-webkit-details-marker { display: none; }
.mkt-fold > summary .display { font-size: 18px; }
.mkt-fold > summary::after { content: "+"; font: 800 22px var(--f-display); }
.mkt-fold[open] > summary::after { content: "−"; }
.mkt-fold[open] { padding-bottom: 14px; }
@media (max-width: 760px) { .mkt-key { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; } .mkt-key .mcard { scroll-snap-align: start; } .mkt-line { font-size: 17px; } }

/* ---- screener and fund finder (default view) ---- */
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: var(--s-3) 0 var(--s-4); }
.q-card { text-align: left; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; gap: 6px; min-height: 150px; }
.q-card h3 { font-size: 18px; margin: 0; }
.q-card p { margin: 0; flex: 1; }
.q-card:hover { background: var(--tint); }
.q-build { background: var(--navy); color: #fff; border-color: var(--orange); }
.q-build .door-go { color: var(--amber); }
.q-build:hover { background: var(--navy-2); }
.scr-loud .sb-sig, .scr-loud .sb-tk, .scr-loud #scr-toggle { display: none; }
.scr-loud .scr-panel { border: 0; padding: 0; background: none; }
.scr-add { position: relative; margin: 6px 0 12px; }
.scr-add input { width: 100%; min-height: 52px; padding: 10px 14px; font: 17px var(--f-body); border: var(--bw) solid var(--ink); background: var(--canvas); color: var(--ink); }
.scr-addlist { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--canvas); border: var(--bw) solid var(--ink); border-top: 0; max-height: 360px; overflow-y: auto; box-shadow: var(--shadow-flat); }
.scr-addlist[hidden] { display: none; }
.scr-addlist button { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--grey-scribble); padding: 10px 14px; cursor: pointer; font: 15px var(--f-body); color: var(--ink); min-height: 44px; }
.scr-addlist button:hover, .scr-addlist button:focus-visible { background: var(--tint); }
.scr-addlist p { padding: 10px 14px; margin: 0; }
.scr-loud .fgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fwrap { position: relative; border: var(--bw) solid var(--ink); background: var(--tint); padding: 10px 40px 10px 12px; }
:root[data-theme="dark"] .fwrap { background: var(--paper); }
.fwrap .fcell { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.fwrap .fcell > label { text-align: left; font-family: var(--f-display); text-transform: uppercase; font-size: 13px; }
.fwrap .fcell select, .fwrap .fcell input[type="search"] { height: 40px; font-size: 15px; }
.fwrap .funadd { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; margin: 0; font-size: 15px; background: var(--canvas); }
.scr-loud .fgrid { gap: 12px; padding-top: 4px; }
.scr-empty { margin: 4px 0 8px; }
.back-link { display: inline-block; margin-bottom: 6px; }

/* ---- news: front page (laptops), river list (phones and Pro view) ---- */
.nfront { display: block; margin: var(--s-4) 0; }
.nf-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-4); margin-bottom: var(--s-4); }
.nf-top { align-items: start; }
.nf-lead .ncard-big { display: flex; flex-direction: column; } .nf-lead .ncard-big .ncard-fig { border-right: 0; border-bottom: var(--bw) solid var(--ink); }
.nf-lead .ncard-fig svg, .nf-lead .ncard-fig img { max-height: 340px; width: 100%; }
.nf-five { gap: 6px; }
.nf-five h2 { font-size: 20px; margin: 0 0 4px; }
.nf-five ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.nf-five li::marker { font: 800 16px var(--f-display); color: var(--orange); }
.nf-five li a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.3; }
.nf-five li a:hover { text-decoration: underline; }
.nf-row { margin: 0 0 var(--s-4); }
.nf-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 6px 10px 0; scroll-snap-type: x mandatory; }
.nf-scroll .ncard { scroll-snap-align: start; }
.nriver { display: flex; flex-direction: column; margin: var(--s-3) 0; border-top: var(--bw) solid var(--ink); }
.nrow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--grey-scribble); text-decoration: none; color: var(--ink); }
.nrow-fig { border: var(--bw-thin) solid var(--ink); line-height: 0; background: var(--canvas); }
.nrow-img { aspect-ratio: 16 / 9; overflow: hidden; } .nrow-img img { width: 100%; height: 100%; object-fit: cover; }
.nrow-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nrow-t strong { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 16px; line-height: 1.2; }
.nrow-d { font-size: 14px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nrow:hover strong { text-decoration: underline; }
.nmore-t { display: inline-block; position: relative; }
.nmore-t > summary { list-style: none; cursor: pointer; min-height: 34px; display: inline-flex; align-items: center; }
.nmore-t > summary::-webkit-details-marker { display: none; }
.nmore-t[open] > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media (max-width: 760px) { .nrow { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; } .nrow-t strong { font-size: 14px; } .nrow-d { -webkit-line-clamp: 1; } }

/* ================= Pro view: denser pages for power users ================= */
:root[data-pro="1"] { --f-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --shadow-flat: none; --bw: 1.5px; --bw-heavy: 2px; --bw-thin: 1px; }
:root[data-pro="1"] body { font-size: 15px; line-height: 1.5; }
:root[data-pro="1"] .wrap { max-width: calc(1400px + 2 * var(--gutter)); }
:root[data-pro="1"] #app .nrt-p, :root[data-pro="1"] .foot-p, :root[data-pro="1"] #app .bar, :root[data-pro="1"] .hand { display: none !important; }
:root[data-pro="1"] .card, :root[data-pro="1"] .box, :root[data-pro="1"] .mcard, :root[data-pro="1"] .btn, :root[data-pro="1"] .lcard { box-shadow: none !important; }
:root[data-pro="1"] .btn { min-height: 34px; padding: 4px 12px; font-size: 13px; }
:root[data-pro="1"] .btn.small { min-height: 30px; padding: 3px 10px; font-size: 12.5px; }
:root[data-pro="1"] #app h1.display { font-size: clamp(24px, 3vw, 32px) !important; }
:root[data-pro="1"] .co-head { margin-top: var(--s-3); }
:root[data-pro="1"] .section.display, :root[data-pro="1"] .home-sec, :root[data-pro="1"] #app h2.display { font-size: 17px !important; }
:root[data-pro="1"] table.num td, :root[data-pro="1"] table.num th { padding: 4px 8px; font-size: 13px; }
:root[data-pro="1"] .stat { padding: 8px 10px; } :root[data-pro="1"] .stat .v { font-size: 17px; } :root[data-pro="1"] .stat .k { font-size: 12px; }
:root[data-pro="1"] .stamp { transform: none; font-size: 11px; }
:root[data-pro="1"] .tabs a { font-size: 12.5px; }
:root[data-pro="1"] .post-grid { gap: 14px; }
:root[data-pro="1"] .ncard-body h3 { font-size: 15px; }
:root[data-pro="1"] .mgrid { gap: 8px; }
:root[data-pro="1"] .fd-hero h1 { font-size: 40px !important; }
:root[data-pro="1"] .hero { padding: var(--s-4) 0 var(--s-3); }
:root[data-pro="1"] .site-footer .bar-white { font-size: 14px; }
:root[data-pro="1"] .lbubble { font-size: 16px; }
html[data-region="eu"] .mdrawer .us-only, html[data-region="eu"] .nav-menu .us-only { display: none !important; }
@media (min-width: 761px) { :root:not([data-pro="1"]) body.is-home #header-search { display: none; } :root:not([data-pro="1"]) body.is-home .region-switch { margin-left: auto; } }
:root[data-pro="1"] .tabs a { padding: 8px 9px; min-height: 38px; font-size: 12px; }
@media (min-width: 1000px) { :root[data-pro="1"] .co-head:has(> .co-actions) .co-meta, :root[data-pro="1"] .co-head:has(> .co-actions) .live-q { padding-right: 480px; } }
@media (min-width: 1000px) { .co-head:has(> .co-actions .co-more) .co-meta, .co-head:has(> .co-actions .co-more) .live-q { padding-right: 330px; } }

/* long account names must not push the header wider than the page */
.header-row > * { min-width: 0; }
.acct-me { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* estimates tab */
.est .lede { font-size: 1.02rem; margin: 0 0 var(--s-3, 12px); }
.est .est-g td, .est .est-g th { white-space: normal; }
.est .est-g tr.ai-row td { border-top: 0; padding-top: 0; }
.est .est-next { border: 2px solid currentColor; padding: 10px 14px; margin: 0 0 12px; }
.est .est-next p { margin: 4px 0; }
.est .est-links { list-style: none; padding: 0; margin: 8px 0 0; }
.est .est-links li { padding: 6px 0; border-bottom: 1px solid rgba(127,127,127,.25); }
.est .est-prev { margin: 10px 0; }

/* ================= Noorult Plus, Feed the bird, ads ================= */
.plus-btn { border: var(--bw-thin) solid var(--orange) !important; color: var(--orange) !important; background: var(--canvas) !important; white-space: nowrap; margin-right: 6px; }
@media (max-width: 760px) { .plus-btn { display: none !important; } }
.plus-chip { display: inline-block; background: var(--navy, #0B1D3F); color: #fff; font: 800 11px/1 var(--f-data); letter-spacing: .06em; padding: 4px 6px; margin-right: 6px; vertical-align: middle; border: 2px solid var(--orange); }
.drawer-support { display: block; margin: 10px 16px; padding: 12px 14px; border: var(--bw-thin) solid var(--orange); font-weight: 800; color: var(--ink); text-decoration: none; }
.sp { max-width: 1060px; margin: 0 auto; padding: var(--s-4, 16px) 0 var(--s-6, 40px); }
.sp h1 { margin: 8px 0 10px; }
.sp .lede { font-size: 1.08rem; max-width: 62ch; }
.sp-free { border-left: 6px solid var(--green, #1f7a3a); background: color-mix(in srgb, var(--green, #1f7a3a) 10%, var(--canvas)); padding: 12px 16px; margin: 16px 0 26px; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 800px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
.sp-card { border: var(--bw) solid var(--ink); box-shadow: 8px 8px 0 var(--orange); background: var(--canvas); padding: 20px 22px; }
.sp-card h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); }
.sp-card ul { margin: 6px 0 14px; padding-left: 20px; } .sp-card li { margin: 4px 0; }
.sp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 10px; }
.sp-plan { position: relative; display: block; border: var(--bw-thin) solid var(--ink); padding: 12px 14px; color: var(--ink); text-decoration: none; background: var(--canvas); transition: transform .1s; }
.sp-plan:hover, .sp-plan:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.sp-plan.on { box-shadow: 4px 4px 0 var(--navy, #0B1D3F); }
.sp-plan b { display: block; font-size: 1.7rem; margin: 2px 0; }
.sp-plan small { color: var(--muted); }
.sp-tag { position: absolute; top: -12px; right: 8px; background: var(--green, #1f7a3a); color: #fff; font: 800 11px var(--f-data); padding: 3px 7px; letter-spacing: .04em; }
.sp-why { margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--line, #bbb); }
.sp-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.sp-tip { display: block; border: var(--bw-thin) solid var(--ink); padding: 10px; text-align: center; color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--orange) 8%, var(--canvas)); }
.sp-tip:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.sp-tip b { display: block; font-size: 1.4rem; } .sp-tip span { font-size: .88rem; color: var(--muted); }
.sp-faq { margin-top: 34px; max-width: 72ch; } .sp-faq h3 { margin: 16px 0 4px; font-size: 1.05rem; }
.sp-thanks { display: flex; gap: 16px; align-items: center; border: var(--bw) solid var(--ink); background: color-mix(in srgb, var(--green, #1f7a3a) 12%, var(--canvas)); padding: 14px 18px; margin: 0 0 22px; }
.sp-thanks h2 { margin: 0 0 4px; } .sp-thx-p { width: 72px; height: auto; }
/* the Feed the bird banner: the picture, with the words in the empty half */
.ftb { position: relative; container-type: inline-size; }
.ftb img { display: block; width: 100%; height: auto; }
.ftb-t { position: absolute; left: 48%; right: 5%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 1.6cqw; color: #111; }
.ftb-t span { font-size: 7.4cqw; line-height: 1; }
.ftb-t i { display: block; height: max(3px, .8cqw); background: #F26B1D; width: 100%; }
.ftb-t small { font-size: 2.9cqw; line-height: 1.25; color: #333; }
/* Plus card on the Bird Nest */
.plus-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; align-items: center; border: var(--bw) solid var(--ink); box-shadow: 8px 8px 0 var(--orange); padding: 18px 22px; margin: var(--s-4, 16px) 0; background: var(--canvas); }
.plus-card h2 { margin: 8px 0 6px; font-size: clamp(20px, 2.4vw, 28px); } .plus-card p { margin: 0 0 10px; max-width: 64ch; }
.plus-card .stamp { font-size: 12px; transform: rotate(-2deg); }
.plus-card-p { width: 110px; height: auto; }
@media (max-width: 640px) { .plus-card { grid-template-columns: minmax(0, 1fr); } .plus-card-p { width: 80px; } }

/* ================= UI audit fixes (28 Sep 2026) ================= */
/* News home: lead story and "Today's 5 things" stack on phones and can always shrink */
.nf-top > * { min-width: 0; }
.nf-five li a { overflow-wrap: anywhere; }
@media (max-width: 760px) { .nf-top { grid-template-columns: minmax(0, 1fr); } }
/* fund header: the Share/Compare buttons get their own column, so the live-price line wraps instead of running under them */
@media (min-width: 1000px) {
  #fund-top .co-head:has(> .co-actions) { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: end; }
  #fund-top .co-head:has(> .co-actions) > .co-actions { position: static; }
  #fund-top .co-head:has(> .co-actions) .live-q, #fund-top .co-head:has(> .co-actions) .co-meta { padding-right: 0; }
}
/* screener cards: the Custom min/max row sits under the menu, never beside the label */
.fwrap .fcell .fcustom { grid-column: 1 / -1; }
/* owner tables (and any other .table-wrap) scroll inside their box instead of widening the page */
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
/* room at the bottom so the bird button never sits on the last rows */
#app { padding-bottom: 76px; }
/* Learn intros: on phones the pigeon sits above the text instead of taking a column */
@media (max-width: 480px) {
  .lhook { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lhook-p { width: 76px; }
}
/* desktop header: the logo and menu never get squeezed under each other; the search box gives way first, and the
   signed-out "Remove ads" button only shows when there is room for it (it is also in the menu, footer and under each ad) */
@media (min-width: 1101px) {
  .header-row > .mark, .main-nav { flex-shrink: 0; }
  #header-search { min-width: 150px; }
}
@media (max-width: 1599px) { .site-header .plus-btn { display: none; } }
#acct .btn { white-space: nowrap; }
/* desktop header, final word: one row, vertically centred, a little wider than the page column so everything fits
   without spilling past the right edge (it used to overflow and look off-centre), search box takes the spare room.
   Between 1101 and 1279px the two-row header from the clean-up pass stays. */
@media (min-width: 1280px) {
  .site-header .header-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px 14px; max-width: calc(1440px + 2 * var(--gutter));
    min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
  .site-header .header-row > * { grid-column: auto; grid-row: auto; margin-top: 0; margin-bottom: 0; }
  .site-header .main-nav { padding: 0; margin: 0 0 0 4px; gap: 16px; overflow: visible; align-self: center; -webkit-mask-image: none; mask-image: none; }
  .site-header .main-nav > * { align-self: center; }
  .site-header #header-search { flex: 1 1 220px; min-width: 150px; max-width: 380px; margin-left: auto; }
}
@media (min-width: 1180px) and (max-width: 1279px) { .site-header .main-nav { padding-top: 0; padding-bottom: 0; } }
/* in a lesson the floating "Ask the bird" button covered the Next button; lessons have their own "Stuck? Ask the bird" */
body:has(#lesson) .bird-fab { display: none !important; }
/* outside-news links */
.xnews-l { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* ================= Analyst ratings (29 Sep 2026) ================= */
.rat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-3); margin: var(--s-2) 0 var(--s-3); }
@media (max-width: 760px) { .rat { grid-template-columns: minmax(0, 1fr); } }
.rat-card { border: var(--bw) solid var(--ink); background: var(--canvas); padding: 14px 16px; min-width: 0; }
.rat-head { font-size: clamp(17px, 2vw, 21px); margin: 0 0 10px; }
.rat-sub { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 15px; margin: 0 0 8px; }
.rat-sum { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rat-donut { width: 128px; height: 128px; flex: 0 0 auto; }
.rat-donut .rat-n { font: 800 30px var(--f-data); fill: var(--ink); }
.rat-donut .rat-l { font: 13px var(--f-body); fill: var(--muted); }
.rat-key { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 16px; }
.rat-dot { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); margin-right: 8px; vertical-align: -1px; }
.rat-bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 20px; }
.rat-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.rat-stack { width: 100%; max-width: 56px; display: flex; flex-direction: column; border: var(--bw-thin) solid var(--ink); }
.rat-seg { display: block; min-height: 2px; }
.rat-seg + .rat-seg { border-top: 1px solid var(--canvas); }
.rat-tot { font-size: 13px; }
.rat-mon { font-size: 12px; color: var(--muted); white-space: nowrap; }
.rat-legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.rat-t td, .rat-t th, .tgt-t td, .tgt-t th { white-space: nowrap; }
.tgt-sum { border: var(--bw) solid var(--ink); padding: 14px 16px; margin: var(--s-2) 0 var(--s-3); }
.tgt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tgt-range { position: relative; padding: 8px 0 4px; }
.tgt-track { position: relative; height: 26px; margin: 0 4px; border-bottom: var(--bw-thin) solid var(--ink); }
.tgt-band { position: absolute; top: 9px; height: 8px; background: var(--grey-scribble); }
.tgt-dot { position: absolute; top: 8px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--royal); border: 1px solid var(--canvas); }
.tgt-avg { position: absolute; top: 0; bottom: -3px; width: 3px; margin-left: -1.5px; background: var(--ink); }
.tgt-px { position: absolute; top: -4px; bottom: -6px; width: 0; margin-left: -1px; border-left: 3px dashed var(--orange); }
.tgt-lab { position: relative; height: 22px; margin: 4px 4px 0; font-size: 12px; }
.tgt-lab span { position: absolute; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-data); }
.tgt-lab span:first-child { transform: none; } .tgt-lab span:last-child:not(:first-child) { transform: translateX(-100%); }
.tgt-lab .tgt-lab-avg { font-weight: 700; top: 18px; }
.tgt-lab-px { color: var(--orange); margin-top: 16px; } .tgt-lab-px span { transform: translateX(-50%) !important; }
.tgt-src a { white-space: nowrap; }
.rat-sb { background: #1B7A2A; stroke: #1B7A2A; } .rat-b, .rat-buy { background: var(--green); stroke: var(--green); }
.rat-h, .rat-hold { background: #A0A0A0; stroke: #A0A0A0; }
.rat-s { background: #F07A7E; stroke: #F07A7E; } .rat-ss, .rat-sell { background: var(--red); stroke: var(--red); }
/* ================= Sign-up details (29 Sep 2026) ================= */
.auth-form[hidden] { display: none; }
.name-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2); }
@media (max-width: 420px) { .name-row { grid-template-columns: minmax(0, 1fr); } }
.btn.apple { gap: 10px; background: #000; color: #fff; border-color: #000; text-transform: none; font: 700 16px var(--f-body); margin-top: 8px; }
.btn.apple:hover { background: #1c1c1c; }
.btn.apple svg { flex: none; margin-top: -2px; }
:root[data-theme="dark"] .btn.apple { background: #fff; color: #000; border-color: #fff; }
.hear-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .hear-opts { grid-template-columns: minmax(0, 1fr); } }
.hear-btn { min-height: 56px; font-size: 17px; margin: 0; }
.hear-btn.on { background: var(--navy); color: var(--on-fill, #fff); }
.hear-skip { text-align: center; margin: 4px 0 0; }
.linkbtn.quiet { color: var(--muted); font-weight: 400; font-size: 13px; text-decoration-thickness: 1px; }
.ov-src { margin-top: var(--s-4); }
.src-bars { display: grid; gap: 8px; margin-top: 10px; }
.src-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 110px 110px; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.src-row:hover .src-l { text-decoration: underline; }
.src-bar { height: 14px; background: var(--paper); border: var(--bw-thin) solid var(--ink); }
.src-bar i { display: block; height: 100%; background: var(--orange); }
@media (max-width: 600px) { .src-row { grid-template-columns: 80px minmax(0, 1fr) 90px; } .src-w { display: none; } }
.src-h { font-size: 15px; margin: var(--s-3) 0 6px; }
.src-other { margin: 0; padding-left: 18px; }
/* ================= Installable app (29 Sep 2026) ================= */
.inst { max-width: 760px; }
.inst-q { font-size: 18px; margin: var(--s-4) 0 8px; }
.inst-dev { display: flex; flex-wrap: wrap; gap: 6px; }
.inst-one { margin: var(--s-3) 0 0; }
.inst-steps { list-style: none; padding: 0; margin: var(--s-4) 0; display: grid; gap: 12px; counter-reset: none; }
.inst-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; border: var(--bw) solid var(--ink); padding: 12px 14px; background: var(--canvas); box-shadow: 4px 4px 0 var(--ink); }
.inst-n { width: 40px; height: 40px; display: grid; place-items: center; background: var(--orange); color: #000; border: var(--bw-thin) solid var(--ink); font-size: 20px; }
.inst-h { margin: 6px 0 2px; font-size: 18px; }
.inst-steps p.small { margin: 0; }
.ik { display: inline-grid; place-items: center; width: 30px; height: 30px; vertical-align: middle; margin: -4px 2px 0; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--royal); }
.ik svg { width: 18px; height: 18px; fill: currentColor; }
.ik svg[fill="none"] { fill: none; }
.ik-tog { width: 44px; border: 0; background: none; } .ik-tog svg { width: 38px; height: 22px; }
.inst-done { display: flex; gap: 18px; align-items: center; padding: 18px; margin-top: var(--s-4); }
.inst-done h2 { margin: 0 0 6px; }
.me-app { margin-top: var(--s-3); border-color: var(--orange); }
.pwa-nudge { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--canvas); border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); max-width: 520px; margin: 0 auto; }
.pwa-nudge img { border: 2px solid var(--ink); border-radius: 10px; flex: none; }
.pwa-nudge p { margin: 0; flex: 1; min-width: 0; line-height: 1.25; font-size: 14px; }
.pwa-nudge p span { display: block; color: var(--muted); font-size: 13px; }
.pwa-nudge .btn { margin: 0; flex: none; }
.pwa-x { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; min-width: 36px; min-height: 36px; }
@media (display-mode: standalone) { .pwa-nudge { display: none; } }
/* ================= Feed the bird via Buy Me a Coffee (30 Sep 2026) ================= */
.sp-grid--one { grid-template-columns: minmax(0, 620px); }
/* ================= Support link in the header (30 Sep 2026) ================= */
.header-link.hl-support { color: #B85600; display: inline-flex; align-items: center; gap: 5px; }
.header-link.hl-support[hidden] { display: none; }
.hl-cup { width: 1.15em; height: 1.15em; flex: none; margin-top: -2px; }
:root[data-theme="dark"] .header-link.hl-support { color: var(--orange); }
.cup-btn { display: none; }
@media (max-width: 760px) {
  .cup-btn:not([hidden]) { order: 7; display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--canvas); color: #B85600; border: var(--bw-thin) solid var(--ink); }
  :root[data-theme="dark"] .cup-btn { color: var(--orange); }
  .cup-btn svg { width: 22px; height: 22px; }
}
/* ================= Price targets chart (30 Sep 2026) ================= */
.tgt-sum { border: var(--bw) solid var(--ink); padding: 18px 20px 14px; margin: var(--s-2) 0 var(--s-3); background: var(--canvas); }
.tgt-top { display: grid; grid-template-columns: minmax(170px, auto) minmax(0, 1fr); gap: 22px; align-items: center; padding-bottom: 14px; border-bottom: var(--bw-thin) solid var(--grey-scribble); }
.tgt-big { text-align: center; padding-right: 22px; border-right: var(--bw-thin) solid var(--grey-scribble); }
.tgt-avgv { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.tgt-up { font-weight: 700; margin-top: 6px; font-size: 17px; }
.tgt-say { margin: 0; font-size: 16px; line-height: 1.5; }
.tgt-chart { margin-top: 12px; }
.tgt-all { font-size: 18px; margin: var(--s-3) 0 8px; }
.tgc { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--f-data); }
.tgc-grid { stroke: var(--grey-scribble); stroke-width: 1; }
.tgc-vgrid { stroke: var(--grey-scribble); stroke-width: 1; opacity: .55; }
.tgc-base { stroke: var(--ink); stroke-width: 1.5; }
.tgc-today { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: .6; }
.tgc-ax { font-size: 12px; fill: var(--muted); } .tgc-b { fill: var(--ink); font-weight: 700; }
.tgc-h { font-size: 13px; font-weight: 700; fill: var(--ink); font-family: var(--f-display); letter-spacing: .02em; }
.tgc-px { fill: none; stroke: var(--royal); stroke-width: 2.4; stroke-linejoin: round; }
.tgc-dot { fill: var(--canvas); stroke: var(--ink); stroke-width: 2; } .tgc-dot.pos { stroke: var(--green); } .tgc-dot.neg { stroke: var(--red); }
.tgc-now { fill: var(--ink); stroke: var(--canvas); stroke-width: 2; }
.tgc-fan { stroke-width: 2.4; stroke-dasharray: 7 6; }
.tgc-hi { stroke: var(--green); } .tgc-avg { stroke: var(--muted); } .tgc-lo { stroke: var(--red); }
.tgc-lab rect { fill: var(--canvas); stroke-width: 1.5; }
.tgc-lab.tgc-hi rect { stroke: var(--green); } .tgc-lab.tgc-avg rect { stroke: var(--muted); } .tgc-lab.tgc-lo rect { stroke: var(--red); }
.tgc-ln { font-size: 11px; fill: var(--muted); } .tgc-lv { font-size: 14px; font-weight: 700; fill: var(--ink); }
.tgc-lab.tgc-hi .tgc-lv { fill: var(--green); } .tgc-lab.tgc-lo .tgc-lv { fill: var(--red); }
.tgc-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--muted); }
.tgc-key i { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin-right: 6px; border-top: 3px solid var(--royal); }
.tgc-key .tgc-k-dot { width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; }
.tgc-key .tgc-k-hi { border-top: 3px dashed var(--green); } .tgc-key .tgc-k-avg { border-top: 3px dashed var(--muted); } .tgc-key .tgc-k-lo { border-top: 3px dashed var(--red); }
@media (max-width: 640px) {
  .tgt-top { grid-template-columns: 1fr; gap: 12px; } .tgt-big { border-right: 0; padding-right: 0; }
  .tgc-ax { font-size: 13px; } .tgc-h { font-size: 14px; } .tgc-lv { font-size: 14px; } .tgc-ln { font-size: 11px; }
}
/* ================= Feedback and help (1 Oct 2026) ================= */
.fb-head { align-items: center; }
.fb-head .fb-p { width: 130px; height: auto; flex: none; }
.fb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-4); align-items: start; margin-top: var(--s-4); }
@media (max-width: 860px) { .fb-grid { grid-template-columns: 1fr; } .fb-head .fb-p { width: 90px; } }
.fb-form { display: flex; flex-direction: column; gap: 8px; padding: var(--s-4); }
.fb-kinds { border: 0; padding: 0; margin: 0 0 var(--s-2); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.fb-kinds legend { font-size: 20px; margin-bottom: 10px; padding: 0; }
.fb-kind { display: flex; flex-direction: column; gap: 2px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); padding: 10px 12px; cursor: pointer; min-height: 44px; }
.fb-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kind strong { font-family: var(--f-display); font-size: 17px; }
.fb-kind span { font-size: 14px; color: var(--muted); line-height: 1.3; }
.fb-kind.on { background: var(--navy); color: var(--on-fill); border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange); }
.fb-kind.on span { color: inherit; opacity: .85; }
.fb-kind:focus-within { outline: 3px solid var(--royal); outline-offset: 2px; }
.fb-l { font-weight: 700; margin-top: 6px; }
.fb-form textarea, .fb-form input[type=email] { width: 100%; box-sizing: border-box; padding: 10px 12px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 0; font: 16px/1.5 var(--f-body); color: var(--text); }
.fb-form textarea { min-height: 160px; resize: vertical; }
.fb-count { text-align: right; margin-top: -4px; }
.fb-hint { margin: -2px 0 4px; }
.fb-page { display: flex; gap: 8px; align-items: baseline; font-size: 15px; flex-wrap: wrap; }
.fb-page code { overflow-wrap: anywhere; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-err { color: var(--red); font-weight: 700; margin: 0; }
.fb-send { align-self: flex-start; margin: 6px 0 4px; }
.fb-done { align-items: flex-start; }
.fb-done .fb-thx-p { width: 120px; height: auto; }
.fb-side h2 { font-size: 22px; margin: 0 0 8px; }
.fb-faq { padding-left: 18px; margin: 0; }
.fb-faq li { margin: 8px 0; line-height: 1.4; }
.drawer-fb { display: block; padding: 12px 16px; font-weight: 700; border-top: var(--bw-thin) solid var(--rule, #000); }
.ofb-f { display: flex; gap: 8px; flex-wrap: wrap; margin: var(--s-3) 0; }
.ofb-row { padding: var(--s-3); margin: 0 0 var(--s-3); }
.ofb-row.ofb-done { opacity: .6; }
.ofb-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ofb-msg { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; margin: 10px 0; }
.ofb-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ov-fb { display: block; padding: 12px 16px; margin-bottom: var(--s-3); border-color: var(--orange); }

/* DCF tab */
.dcf-nfa { border: var(--bw) solid var(--orange); background: var(--tint); padding: 12px 14px; margin: 0 0 var(--s-3); line-height: 1.5; font-size: 14px; }
.dcf-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 22px; border: var(--bw) solid var(--ink); background: var(--canvas); padding: 14px; margin: var(--s-3) 0; align-items: end; }
.dcf-ctl label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.dcf-ctl output { float: right; font-family: var(--f-data); font-weight: 600; color: var(--text); }
.dcf-ctl input[type=range] { width: 100%; accent-color: var(--orange); }
.dcf-read { margin: var(--s-3) 0; line-height: 1.6; }
table.num td.dcf-mid { outline: 2px solid var(--orange); outline-offset: -2px; font-weight: 700; }
.dcf-how li { margin: 6px 0; line-height: 1.5; }

/* famous investors */
.g-pop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.g-pop .chip { text-decoration: none; }
.g-card h3 { margin: 0; }
.g-card p { margin: 2px 0; }
.g-card-v { margin-top: 8px !important; }
.g-mini { display: grid; gap: 4px; margin-top: 10px; }
.g-mini > span { display: grid; grid-template-columns: 58px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; }
.g-mini i { display: block; height: 8px; background: var(--orange); border: 1px solid var(--ink); }
.g-mini em { font-style: normal; text-align: right; color: var(--muted); font-family: var(--f-data); }
.g-hero-p { width: 120px; height: auto; }
.g-blurb { max-width: 760px; }
.g-stale { border: var(--bw) solid var(--orange); background: var(--tint); padding: 10px 14px; margin: var(--s-3) 0; }
.g-moves { margin-top: 8px; }
.g-bar { display: inline-block; width: 70px; height: 8px; border: 1px solid var(--ink); margin-right: 8px; vertical-align: middle; background: var(--canvas); }
.g-bar i { display: block; height: 100%; background: var(--orange); }
.g-w { white-space: nowrap; }
.g-tab tr[hidden] { display: none; }
.g-st { font-size: 13px; font-weight: 600; white-space: nowrap; }
.g-new { color: var(--royal); } .g-added { color: var(--up); } .g-reduced, .g-sold { color: var(--red); } .g-same { color: var(--muted); font-weight: 400; }
.g-list { list-style: none; padding: 0; margin: 8px 0 0; } .g-list li { padding: 5px 0; border-bottom: 1px solid var(--grey-scribble); }
.g-sec { display: grid; gap: 6px; max-width: 640px; } .g-sec > div { display: grid; grid-template-columns: 170px 1fr 60px; align-items: center; gap: 10px; font-size: 14px; }
.g-sec .g-bar { width: 100%; } .g-sec em { font-style: normal; text-align: right; }
.g-gate { margin: var(--s-3) 0; } .g-gate .gate-card { position: static; margin: 0 auto; }
.g-ask { margin: 28px 0 12px; padding: 16px; }
.g-ask-h { display: flex; gap: 14px; align-items: flex-start; } .g-ask-h h2 { margin: 0 0 4px; }
.g-ask-p { width: 72px; height: auto; flex: none; }
.g-ask form { display: grid; gap: 10px; margin-top: 12px; } .g-ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-ask label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.g-ask input { font: inherit; font-weight: 400; padding: 10px 12px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--text); min-height: 44px; }
.g-ask-err { color: var(--red); margin: 0; }
.g-ask button { justify-self: start; }
.g-top { display: flex; gap: 16px; align-items: center; margin: 24px 0 8px; } .g-top h1 { margin: 0 0 4px; } .g-top p { margin: 0; max-width: 760px; }
.g-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.g-filter { font: inherit; padding: 8px 12px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--text); min-height: 42px; flex: 1 1 260px; max-width: 360px; }
.g-viewtog { margin-left: auto; }
.g-lb th .sort { white-space: nowrap; }
.g-lb tr.g-row { cursor: pointer; } .g-lb tr.g-row:hover td { background: var(--hover); }
.g-lb tr.g-spy td { background: var(--tint); }
.g-tops { font-size: 13px; white-space: nowrap; }
.g-old { color: var(--red); }
.g-sticky { position: sticky; left: 0; background: var(--canvas); z-index: 1; min-width: 170px; }
.g-lb tr.g-spy td.g-sticky { background: var(--tint); }
.g-card-p { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px !important; }
.g-vs { margin-top: 2px; }
.g-jump { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 0; padding: 4px 0 8px; }
.g-jump a { border: var(--bw-thin) solid var(--ink); padding: 4px 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.g-jump a:hover { background: var(--tint); }
section[id^="g-"] { scroll-margin-top: 70px; }
.g-yrs td:first-child, .g-yrs th:first-child { text-align: left; } .g-yrs tr.g-diff td { font-weight: 600; }
@media (max-width: 640px) { .g-top { gap: 10px; } .g-viewtog { margin-left: 0; } .g-sticky { min-width: 130px; } .g-ptiles { --cols: 2 !important; } .g-lb .g-hm { display: none; } .g-lb td, .g-lb th { padding-left: 6px; padding-right: 6px; } }
@media (max-width: 640px) { .g-ask-row { grid-template-columns: 1fr; } .g-sec > div { grid-template-columns: 110px 1fr 52px; } .g-hero-p { width: 90px; } .g-ask-p { width: 56px; } }

/* push notifications */
.push-card { padding: 16px; margin: 16px 0; }
.push-h { display: flex; gap: 12px; align-items: center; } .push-h h2 { margin: 0; }
.push-p { width: 44px; height: 44px; flex: none; }
.push-kinds { display: grid; gap: 8px; margin: 8px 0 12px; }
.push-k { display: flex; gap: 12px; align-items: flex-start; border: var(--bw-thin) solid var(--ink); padding: 10px 12px; cursor: pointer; background: var(--canvas); }
.push-k input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.push-k > span { display: grid; gap: 2px; }
.push-err { color: var(--red); }
.push-nudge { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: var(--bw) solid var(--orange); background: var(--tint); padding: 10px 14px; margin: 12px 0; }
.push-nudge > div { display: grid; gap: 2px; flex: 1 1 220px; }

/* one-off setup sheet */
.ss-wrap { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.ss-back { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.ss-card { position: relative; width: min(520px, 100%); max-height: 88vh; overflow: auto; background: var(--canvas); color: var(--text); border: var(--bw) solid var(--ink);
  border-bottom: 0; border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform .3s cubic-bezier(.2,1.2,.4,1); pointer-events: auto; box-shadow: 0 -6px 0 var(--shadow-c, #000); }
.ss-wrap.on .ss-back { opacity: 1; } .ss-wrap.on .ss-card { transform: none; }
.ss-card h2 { margin: 4px 0 6px; font-size: 22px; } .ss-card > p { margin: 6px 0; font-size: 15px; line-height: 1.45; }
.ss-top { display: flex; justify-content: center; } .ss-p { width: 72px; height: auto; animation: ss-bob 2.4s ease-in-out infinite; }
@keyframes ss-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.ss-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--text); cursor: pointer; padding: 6px 10px; }
.ss-steps { margin: 10px 0; padding: 0; } .ss-steps li { padding: 8px 10px !important; margin: 0 0 8px !important; gap: 10px !important; } .ss-steps .small { display: none; } .ss-steps .inst-n { width: 30px !important; height: 30px !important; font-size: 16px !important; min-width: 30px; } .ss-steps .inst-h { margin: 0; font-size: 16px; } .ss-list { margin: 8px 0 10px; padding-left: 20px; } .ss-list li { margin: 4px 0; }
.ss-later { text-align: center; margin: 8px 0 0; }
.btn.wide { width: 100%; justify-content: center; }
@media (min-width: 700px) { .ss-wrap { align-items: center; } .ss-card { border-radius: 18px; border-bottom: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--shadow-c, #000); } }
@media (prefers-reduced-motion: reduce) { .ss-card, .ss-back { transition: none; } .ss-p { animation: none; } }

/* ideas invite */
.ip-h { margin: 10px 0 4px !important; }
.ip-list { display: grid; gap: 8px; margin: 0 0 12px; }
.ip-idea { display: grid; gap: 3px; border: var(--bw-thin) solid var(--ink); padding: 10px 12px; text-decoration: none; color: var(--text); background: var(--canvas); }
.ip-idea:hover { background: var(--tint); }
.ip-idea strong { font-size: 15px; line-height: 1.3; }
.ip-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }

/* ================= UI v2 (Oct 2026): options A + B + C ================= */
/* A. text boxes at 16px on touch screens: iPhones zoom in on anything smaller, and stay zoomed */
@media (max-width: 760px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea { font-size: 16px !important; }
  :is(#home-search, .search.big) input { font-size: 19px !important; }
}
.l-short { display: none; }
@media (max-width: 760px) { .l-long { display: none; } .l-short { display: inline; } }

/* A. tables say when there is more to the right; light striping */
:root { --zebra: color-mix(in srgb, var(--paper) 55%, var(--canvas)); }
.tswrap { position: relative; min-width: 0; max-width: 100%; }
.thint { display: none; justify-content: space-between; align-items: center; gap: 10px; min-height: 22px; margin: 0 0 6px; font: 600 12px/1.1 var(--f-data); color: var(--muted); }
.thint b { color: var(--ink); background: var(--tint); border: var(--bw-thin) solid var(--ink); padding: 3px 7px; font-weight: 600; white-space: nowrap; }
.tswrap.more > .thint { display: flex; }
.tswrap.more::after { content: ""; position: absolute; z-index: 3; right: var(--bw); bottom: var(--bw); top: calc(28px + var(--bw)); width: 36px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--canvas) 85%); transition: opacity .2s; }
.tswrap.more.end::after { opacity: 0; }
:where(table.num) > :where(tbody) > :where(tr:nth-child(even):not(.group):not(.self):not(.g-spy):not(.ai-row):not(.median)) > td { background-color: var(--zebra); }
:where(table.num) > :where(tbody) > :where(tr:nth-child(even):not(.group):not(.self):not(.g-spy):not(.ai-row):not(.median)) > td:first-child:nth-child(1) { background-color: var(--zebra); }
table.num > tbody > tr:hover > td:first-child:nth-child(1) { background-color: var(--hover); }
table.num td.col-ttm, table.num th.col-ttm { background-color: var(--paper); }

/* A. phones: one-row header, phone-sized headings, chips in a row, tighter company header and controls */
@media (max-width: 760px) {
  .acct > a.header-link, .cup-btn { display: none !important; }
  .header-row { gap: 8px !important; padding-top: 7px !important; padding-bottom: 7px !important; }
  .mark { font-size: 15px !important; padding: 4px 8px !important; }
  .acct-me { max-width: 92px !important; }
  #app h1.display { font-size: 30px; line-height: 1.04; }
  #app .fda-hero h1.display, #app .hero.home h1.display { font-size: 38px; }
  #app h2.section { font-size: 22px; margin: 26px 0 10px; }
  .co-meta, .g-pop { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; padding-bottom: 3px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .co-meta::-webkit-scrollbar, .g-pop::-webkit-scrollbar { display: none; }
  .co-meta > *, .g-pop > * { flex: 0 0 auto; white-space: nowrap; }
  .g-pop { align-items: center; }
  .co-head { padding-top: 14px !important; row-gap: 10px !important; }
  .live-q { margin-top: 8px !important; }
  .stats { margin-top: 10px !important; }
  .stat { padding: 8px 12px !important; }
  .stat .v { font-size: 18px !important; }
  .stat .k { font-size: 12px !important; }
  .tabs { margin-top: 12px !important; }
  .tabs a { padding: 10px 12px !important; min-height: 42px !important; font-size: 14px !important; }
  .co-sub { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  .co-sub::-webkit-scrollbar { display: none; }
  .co-sub a { flex: 0 0 auto; white-space: nowrap; border-radius: 999px; }
  .controls { gap: 8px !important; margin: 12px 0 10px !important; }
  .controls .seg { flex-wrap: nowrap !important; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .controls .seg::-webkit-scrollbar { display: none; }
  .seg button { min-height: 38px !important; padding: 6px 11px !important; font-size: 12.5px !important; white-space: nowrap; }
  .controls .btn { min-height: 38px !important; padding: 6px 12px !important; font-size: 13px !important; }
  .controls input[type=search] { flex: 1 1 100% !important; width: 100% !important; min-width: 0 !important; }
  table.num td:first-child, table.num th:first-child { box-shadow: 4px 0 6px -4px rgba(0, 0, 0, .4); }
  /* the bird: a round button */
  .bird-fab { width: 50px !important; height: 50px !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; border-width: 3px !important;
    display: inline-grid !important; place-items: center; overflow: hidden; box-shadow: 3px 3px 0 var(--shadow-c, #000) !important; }
  .bird-fab .nrt-head { width: 40px !important; height: 40px !important; border: 0 !important; }
  .bird-fab:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--shadow-c, #000) !important; }
}

/* B. phones: stacked period tables, cards for lists, one row of drop-downs on Financials */
.pstep, .tview, .optbar { display: none; }
@media (max-width: 760px) {
  .stack-wrap { overflow: visible !important; border: 0 !important; }
  table.stack, table.stack > tbody { display: block; width: 100%; }
  table.stack { border: var(--bw) solid var(--ink); }
  table.stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--grey-scribble); }
  table.stack tr > * { position: static !important; width: auto !important; min-width: 0 !important; max-width: none !important; box-shadow: none !important; border: 0 !important;
    padding: 1px 12px 10px !important; background: transparent !important; font-size: 15px !important; white-space: nowrap; }
  table.stack tr > :first-child { grid-column: 1 / -1; min-width: 0 !important; max-width: none !important; white-space: normal; text-align: left;
    padding: 10px 12px 2px !important; font: 400 14px/1.3 var(--f-body) !important; color: var(--text); }
  table.stack tr > td.indent-1:first-child { padding-left: 24px !important; }
  table.stack tr > td.indent-2:first-child { padding-left: 36px !important; }
  table.stack tr.total > td { font-weight: 700 !important; }
  table.stack .px { display: none !important; }
  table.stack tr:first-child { position: sticky; top: var(--stick, 0px); z-index: 4; background: var(--navy); border-bottom: 3px solid var(--orange); }
  table.stack tr:first-child > * { color: var(--on-fill) !important; font: 800 14px var(--f-display) !important; text-transform: uppercase; padding: 9px 12px !important; }
  table.stack tr:first-child > :first-child { display: none; }
  table.stack tr:first-child a { color: inherit; }
  table.stack tr:nth-child(even) { background: var(--zebra); }
  table.stack tr.group { background: var(--paper); }
  table.stack tr.group > :first-child { font: 800 13px var(--f-display) !important; text-transform: uppercase; padding: 12px 12px 8px !important; }
  table.stack td.col-ttm { font-weight: 700; }
  .pstep { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
  .pstep[hidden] { display: none; }
  .pstep button { flex: none; min-height: 38px; padding: 4px 11px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); font: 800 12.5px var(--f-display); text-transform: uppercase; cursor: pointer; }
  .pstep button:disabled { opacity: .35; cursor: default; }
  .pstep span { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; line-height: 1.2; }
  .pstep b { font: 600 13px var(--f-data); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .pstep small { font-size: 11px; color: var(--muted); }

  .cards-wrap { overflow: visible !important; border: 0 !important; background: none !important; }
  table.cards, table.cards > tbody, table.cards > thead { display: block; width: 100%; }
  table.cards tr.c-head { display: none; }
  table.cards tr { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 12px 14px; margin: 0 0 10px;
    border: var(--bw) solid var(--ink); background: var(--canvas); box-shadow: 4px 4px 0 var(--shadow-c, #000); }
  table.cards tr.c-wide { display: block; }
  table.cards td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; position: static !important; min-width: 0 !important; max-width: none !important;
    box-shadow: none !important; background: transparent !important; white-space: normal !important; font-size: 15px !important; overflow-wrap: anywhere; width: auto !important; }
  table.cards td::before { content: attr(data-l); display: block; margin-bottom: 1px; font: 400 12px/1.3 var(--f-body); color: var(--muted); }
  table.cards td.c-name { grid-column: 1 / -1; padding: 0 44px 7px 0 !important; border-bottom: 1px solid var(--grey-scribble) !important; }
  table.cards td.c-name::before, table.cards td.c-sel::before, table.cards td[data-l=""]::before { display: none; }
  table.cards td.c-name a { font-size: 17px; font-weight: 700; }
  table.cards td.c-sel { position: absolute !important; top: 12px; right: 12px; left: auto !important; width: auto !important; }
  table.cards td.cx { display: none !important; }
  table.cards tr.self { box-shadow: 4px 4px 0 var(--orange); }
  table.cards tr.median { font-style: italic; }
  .tview { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
  .tview .tv-sort, .tview .tv-dir { display: none; }
  .tview.is-cards .tv-sort { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 600 13px var(--f-body); color: var(--muted); }
  .tview.is-cards .tv-dir:not([hidden]) { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); font-size: 13px; cursor: pointer; }
  .tview select { height: 38px; min-width: 0; max-width: 160px; padding: 0 8px; border: var(--bw-thin) solid var(--ink); border-radius: 0; background: var(--canvas); color: var(--ink); font-family: var(--f-body); }
  .tview .tv-seg { margin-left: auto; flex: none; flex-wrap: nowrap; }
  .tview .tv-seg button { min-height: 36px !important; padding: 4px 12px !important; }

  .optbar { display: flex; gap: 8px; margin: 2px 0 12px; }
  .optbar button { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 4px 8px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink);
    font: 700 13.5px var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
  .optbar button i { font-style: normal; font-size: 11px; }
  .optbar .ob-more { flex: 0 0 44px; font-size: 20px; line-height: 1; }
  .controls.ob-on > .seg ~ .seg, .controls.ob-hide { display: none !important; }
  .ob-sheet .controls.ob-hide { display: flex !important; }
}
.ob-sheet .ob-row { margin: 0 0 14px; }
.ob-sheet .ob-h { margin: 0 0 6px !important; font: 600 13px var(--f-body); color: var(--muted); }
.ob-sheet .seg { display: flex; width: 100%; flex-wrap: nowrap; }
.ob-sheet .seg button { flex: 1 1 0; min-height: 44px !important; }
.ob-sheet .controls { margin: 0 !important; flex-wrap: wrap; gap: 8px; }
.ob-sheet .controls .grow { display: none; }
.ob-sheet .controls .btn { flex: 1 1 auto; }

/* B. desktop: floating header row for long tables */
.fhead { position: fixed; z-index: 18; overflow: hidden; background: var(--canvas); border: var(--bw) solid var(--ink); border-top: 0; border-bottom: 0; box-shadow: 0 4px 0 rgba(0, 0, 0, .07); }
.fhead[hidden] { display: none; }
.fhead table { table-layout: fixed; }
@media (max-width: 760px) { .fhead { display: none !important; } }

/* C. compact company bar on every tab except Summary */
.cbar { display: none; }
body.co-compact :is(#co-top, #fund-top) { position: sticky; top: var(--hdr-h, 0px); z-index: 19; background: var(--canvas); margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 8px; border-bottom: var(--bw) solid var(--ink); }
body.co-compact :is(#co-top, #fund-top) > :is(.co-head, .stats, .stats-edit-row) { display: none !important; }
body.co-compact .cbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0 8px; }
.cbar .cb-n { min-width: 0; line-height: 1.15; }
.cbar .cb-n strong { display: block; font: 800 17px/1.15 var(--f-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbar .cb-n span { font: 600 12px var(--f-data); color: var(--muted); }
.cbar .cb-p { text-align: right; line-height: 1.15; white-space: nowrap; }
.cbar .cb-p strong { display: block; font: 700 17px var(--f-data); }
.cbar .cb-p span { font: 600 12px var(--f-data); }
.cbar .cb-p .dn { color: var(--red); } .cbar .cb-p .up { color: var(--up); }
.cbar .cb-mini { display: none; }
.cbar .cb-star { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: var(--bw-thin) solid var(--ink); background: var(--canvas); cursor: pointer; }
.cbar .cb-star svg { width: 20px; height: 20px; }
:root[data-theme="dark"] .cbar .cb-star { background: #fff; }
body.co-compact :is(#co-top, #fund-top) > nav.tabs { margin-top: 0 !important; border-bottom-width: var(--bw-thin); }
body.co-compact :is(#co-top, #fund-top) > nav.tabs a { min-height: 38px !important; padding: 8px 12px !important; font-size: 13px !important; }
body.co-compact :is(#co-top, #fund-top) > .co-sub { margin: 8px 0 0 !important; }
body.co-compact :is(#co-top, #fund-top) > .co-sub a { padding: 3px 12px !important; font-size: 13px !important; min-height: 38px; display: inline-flex; align-items: center; border-radius: 999px; }
body.co-compact #panel > section.panel { padding-top: 6px; }
@media (min-width: 761px) {
  body.co-compact .cbar { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 18px; }
  .cbar .cb-n strong { display: inline; font-size: 22px; }
  .cbar .cb-n span { margin-left: 8px; font-size: 14px; }
  .cbar .cb-p { display: flex; gap: 10px; align-items: baseline; text-align: left; }
  .cbar .cb-p strong { font-size: 20px; }
  body.co-compact .cbar .cb-mini { display: flex; gap: 18px; justify-content: flex-end; overflow: hidden; white-space: nowrap; font: 13px var(--f-data); color: var(--muted); }
  .cbar .cb-mini b { color: var(--text); font-weight: 600; }
}

/* ================= analytics consent banner and privacy settings ================= */
.ck-wrap:not(.ck-panel) { align-items: flex-end; justify-content: flex-start; padding: 0 12px 12px; }
.ck-wrap:not(.ck-panel) .ss-card { width: min(380px, 100%); border-radius: 14px; border-bottom: var(--bw) solid var(--ink); padding: 12px 14px 10px; box-shadow: 4px 4px 0 var(--shadow-c, #000); }
@media (max-width: 760px) { .ck-wrap:not(.ck-panel) { padding: 0 8px calc(70px + env(safe-area-inset-bottom)); justify-content: center; } }
.ck-card { display: flex; gap: 12px; align-items: flex-start; }
.ck-panel .ck-card { width: min(560px, 100%); }
.ck-p { width: 44px; height: auto; flex: none; }
.ck-in { flex: 1; min-width: 0; }
.ck-card h2 { margin: 0 0 4px; font-size: 18px; }
.ck-card p { margin: 4px 0; font-size: 14px; line-height: 1.4; }
.ck-why p { font-size: 13px !important; color: var(--muted); }
.ck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 2px; }
.ck-btns .btn { justify-content: center; width: 100%; min-height: 40px; padding: 4px 10px; font-size: 14px; }
.ck-small { margin: 4px 0 0 !important; text-align: center; }
.ck-small .linkbtn { font-size: 12.5px; padding: 0; min-height: 0; }
.ck-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--grey-scribble); padding: 10px 0; }
.ck-row p { margin: 2px 0 0 !important; font-size: 13px !important; }
.ck-on { font: 700 12px var(--f-data); color: var(--up); white-space: nowrap; }
.ck-sw { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 30px; border: var(--bw-thin) solid var(--ink); border-radius: 999px; background: var(--paper); position: relative; cursor: pointer; }
.ck-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: left .15s; }
.ck-sw:checked { background: var(--up); } .ck-sw:checked::after { left: 25px; background: #fff; }
.ck-msg { color: var(--up); }
/* owner: visitors */
.vs-days { display: flex; gap: 8px; margin: 10px 0 14px; } .vs-days .btn.on { background: var(--navy); color: #fff; }
.vs-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0; }
@media (min-width: 1000px) { .vs-grid { grid-template-columns: 1fr 1fr; } }
.vt { padding: 14px 16px; margin: 0 0 16px; min-width: 0; } .vt h2 { font-size: 18px; margin: 0 0 4px; }
.vtab td, .vtab th { font-size: 13px !important; padding: 6px 8px !important; }
.vtab td:first-child { max-width: 260px !important; overflow-wrap: anywhere; }
.vs-fun { display: grid; gap: 6px; margin: 12px 0; } .vs-fun > b { font: 800 14px var(--f-display); text-transform: uppercase; }
.vs-fun span { position: relative; display: flex; justify-content: space-between; border: var(--bw-thin) solid var(--ink); padding: 6px 10px; overflow: hidden; }
.vs-fun span i { position: absolute; inset: 0 auto 0 0; background: var(--tint-2, #FFE9D1); } .vs-fun em, .vs-fun strong { position: relative; font-style: normal; }
.vs-tl { list-style: none; padding: 0; margin: 10px 0 0; } .vs-tl li { padding: 6px 0; border-bottom: 1px solid var(--grey-scribble); font-size: 14px; } .vs-tl li .data { display: inline-block; min-width: 70px; }

/* ================= Today + Ideas (21 Oct 2026) ================= */
.mk-kick { font: 800 11px var(--f-display); letter-spacing: .08em; color: var(--orange); text-transform: uppercase; }
.mk-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.mk-sh h2 { font-size: 20px; margin: 0; line-height: 1.15; } .mk-sh b { font-size: 16px; } .mk-sh > a, .mk-sh > span { white-space: nowrap; flex: none; }
.mk-card { border: var(--bw) solid var(--ink); background: var(--canvas); padding: 14px; box-shadow: 4px 4px 0 var(--shadow-c, var(--ink)); display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; }
.mk-card h3 { margin: 2px 0; font-size: 18px; } .mk-card p { margin: 0; font-size: 15px; line-height: 1.45; }
.td-empty { color: var(--muted); margin: 6px 0; }

/* layout: one column on phones (sections in reading order), briefing + conversation side by side on a laptop */
.td { display: flex; flex-direction: column; padding-bottom: 20px; }
.td-main, .td-side { display: contents; }
.td-o1 { order: 1; } .td-o2 { order: 2; } .td-o3 { order: 3; } .td-o4 { order: 4; } .td-o5 { order: 5; } .td-o6 { order: 6; }
.td-o7 { order: 7; } .td-o8 { order: 8; } .td-o9 { order: 9; } .td-o10 { order: 10; } .td-o11 { order: 11; }
@media (min-width: 1000px) {
  .td { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 32px; align-items: start; }
  .td-main, .td-side { display: flex; flex-direction: column; min-width: 0; }
  .td-side { padding-top: 22px; }
  .td-side > section:first-child .mk-sh:first-child { margin-top: 0; }
}
.td-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding-top: 22px; }
.td-head h1 { margin: 4px 0 0; font-size: clamp(32px, 5vw, 46px); line-height: 1; }
.td-sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.td-streak { flex: none; border: var(--bw) solid var(--ink); background: var(--tint); padding: 6px 12px; text-align: center; box-shadow: 3px 3px 0 var(--shadow-c, var(--ink)); display: flex; flex-direction: column; align-items: center; min-width: 84px; }
.td-fire { display: flex; align-items: center; gap: 4px; } .td-fire svg { width: 22px; height: 22px; } .td-fire b { font-size: 24px; line-height: 1; }
.td-streak > span:last-child { font-size: 11px; }
.tasks { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.tasks a, .tasks button { border: var(--bw-thin) solid var(--ink); padding: 4px 9px; font: 700 13px var(--f-body); background: var(--canvas); color: var(--ink); text-decoration: none; cursor: pointer; }
.tasks a:hover, .tasks button:hover { background: var(--tint); }
.tasks .dn1 { background: var(--up); color: #fff; border-color: var(--up); text-decoration: line-through; }
:root[data-theme="dark"] .tasks .dn1 { color: #10301A; }
.mk-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--bw) solid var(--ink); background: var(--navy); color: #fff; }
.mk-strip > div { padding: 8px 10px; border-right: 1px solid rgba(255,255,255,.2); display: flex; flex-direction: column; min-width: 0; }
.mk-strip > div:last-child { border-right: 0; }
.mk-strip span { font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mk-strip b { font-size: 15px; }
.mk-strip .up { color: #6EE787; } .mk-strip .dn { color: #FF8A8A; }

/* the 5 stories */
.mk-top5 { list-style: none; margin: 0; padding: 0; border: var(--bw) solid var(--ink); background: var(--canvas); }
.mk-top5 li { border-bottom: 1px solid var(--grey-scribble); } .mk-top5 li:last-child { border-bottom: 0; }
.td5-a, .mk-top5 li.td-skel, .mk-top5 li.td-none { display: grid; grid-template-columns: 32px minmax(0, 1fr) 92px; gap: 10px; align-items: center; padding: 10px 12px; color: var(--text); text-decoration: none; }
.mk-top5 li.td-none { display: block; }
.td5-a:hover { background: var(--hover); }
.mk-top5 b { display: block; font-size: 15px; line-height: 1.25; }
.mk-top5 li.mk-read .td5-a { opacity: .6; } .mk-top5 li.mk-read .mk-n { background: var(--up); }
.mk-n { display: grid; place-items: center; width: 30px; height: 30px; background: var(--navy); color: #fff; font-size: 16px; }
.td5-fig { width: 92px; height: 62px; border: var(--bw-thin) solid var(--ink); overflow: hidden; display: block; background: var(--paper); }
.td5-fig img, .td5-fig svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-skel b { height: 16px; background: var(--paper); }
.tk-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--muted); }
.tk-bar { display: inline-block; width: 64px; height: 9px; border: var(--bw-thin) solid var(--ink); background: color-mix(in srgb, var(--red) 22%, var(--canvas)); flex: none; }
.tk-bar.none { background: var(--paper); }
.tk-bar i { display: block; height: 100%; background: var(--green); transition: width .4s; }

/* the debate */
.db { border: var(--bw) solid var(--orange); background: var(--navy); color: #fff; padding: 14px; box-shadow: 4px 4px 0 var(--shadow-c, var(--ink)); }
.db .mk-kick { color: var(--orange); }
.db-story { display: block; color: #DCE3F2; font-size: 13px; margin-top: 6px; text-decoration: underline; text-underline-offset: 2px; }
.db h3 { margin: 6px 0 10px; font-size: 18px; line-height: 1.2; color: #fff; }
.db-opts { display: flex; flex-direction: column; gap: 7px; }
.db-o { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; border: 2px solid #fff; padding: 9px 11px; font: 700 15px var(--f-body); color: #fff; overflow: hidden; background: rgba(255,255,255,.06); cursor: pointer; text-align: left; }
.db-o:hover:not(:disabled) { background: rgba(255,255,255,.14); } .db-o:disabled { cursor: default; opacity: 1; }
.db-o i { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.18); transition: width .5s; }
.db-o i.up { background: rgba(59,178,115,.55); } .db-o i.dn { background: rgba(214,38,47,.5); }
.db-o span, .db-o b { position: relative; } .db-o em { font-style: normal; color: var(--orange); font-size: 12px; }
.db-o.db-me { border-color: var(--orange); } .db-o.db-win { border-color: #6EE787; } .db-o.db-win em { color: #6EE787; }
.db-note { margin: 8px 0 0; font-size: 12.5px; color: #DCE3F2; } .db-note a { color: #fff; }
.db-err { margin: 8px 0 0; font-size: 13px; color: #FFB3B3; }
.db.sm { padding: 12px; box-shadow: 3px 3px 0 var(--shadow-c, var(--ink)); } .db.sm h3 { font-size: 15px; } .db.sm .db-o { padding: 6px 9px; font-size: 13.5px; }
.db-closed { border-color: var(--grey-scribble); }
/* smaller questions (Ideas → Debates): light cards, so the page isn't a wall of navy */
.db.sm { background: var(--canvas); color: var(--text); border: var(--bw-thin) solid var(--ink); }
.db.sm h3 { color: var(--text); } .db.sm .db-story { color: var(--muted); } .db.sm .db-note { color: var(--muted); } .db.sm .db-note a { color: var(--royal); }
.db.sm .db-o { color: var(--ink); border-color: var(--ink); background: var(--canvas); } .db.sm .db-o:hover:not(:disabled) { background: var(--tint); }
.db.sm .db-o i { background: color-mix(in srgb, var(--muted) 22%, transparent); } .db.sm .db-o i.up { background: color-mix(in srgb, var(--green) 35%, transparent); } .db.sm .db-o i.dn { background: color-mix(in srgb, var(--red) 28%, transparent); }
.db.sm .db-o.db-me { border-color: var(--orange); } .db.sm .db-o.db-win { border-color: var(--up); } .db.sm .db-o.db-win em { color: var(--up); } .db.sm .db-err { color: var(--red); }
.db.sm.db-closed { border-color: var(--grey-scribble); }
.db.sm:not(.db-shown) .db-opts { flex-direction: row; } .db.sm:not(.db-shown) .db-o { justify-content: center; text-align: center; padding: 8px 4px; }

/* takes */
.tk { border: var(--bw-thin) solid var(--ink); border-left-width: 5px; padding: 10px 12px; margin: 8px 0; background: var(--canvas); }
.tk-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; }
.tk-h .dir { font-size: 11px; padding: 1px 6px; }
.tk-av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 12px var(--f-display); flex: none; }
.tk-av.me { background: var(--orange); width: 30px; height: 30px; } .tk-av svg { width: 16px; height: 16px; }
.tk-t { font-weight: 600; color: var(--ink); } .tk-since { margin-left: auto; font-weight: 600; }
.tk-x { margin: 6px 0 4px; font-size: 15px; line-height: 1.4; } .tk-x a { color: var(--text); text-decoration: none; } .tk-x a:hover { text-decoration: underline; }
.tk-b { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.tk-a.ic-actions { margin-top: 2px; gap: 2px; } .tk-a .ia { font-size: 12.5px; padding: 2px 6px; min-height: 30px; border-color: transparent; color: var(--muted); } .tk-a .ia:hover, .tk-a .ia.on { border-color: currentColor; } .tk-a .ia svg { width: 16px; height: 16px; }
.tk-comp { display: flex; align-items: center; gap: 8px; width: 100%; border: var(--bw-thin) dashed var(--ink); padding: 8px 10px; margin: 10px 0; background: var(--canvas); color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.tk-comp:hover { background: var(--tint); } .tk-ph { flex: 1; color: var(--muted); }
.fnd { display: inline-block; font: 800 9.5px var(--f-display); letter-spacing: .06em; padding: 1px 5px; border: 1.5px solid var(--orange); color: var(--orange); vertical-align: middle; margin-left: 2px; }
.idea-card.is-take .ic-title { font-family: var(--f-body); text-transform: none; font-size: 17px; font-weight: 600; line-height: 1.4; }
.take-chip { background: var(--navy); color: #fff; border-color: var(--navy); }

/* lesson, pulse, watchlist, leaderboard, finish */
.mk-lesson { background: var(--tint); } .mk-lesson .btn { align-self: flex-start; }
.mk-pbar { height: 8px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); } .mk-pbar i { display: block; height: 100%; background: var(--orange); }
.pulse { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pulse > a { border: var(--bw-thin) solid var(--ink); padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--text); text-decoration: none; background: var(--canvas); }
.pulse > a:hover { background: var(--hover); } .pulse > a b { flex: 1 1 100%; }
.td-idea { margin-top: 6px; } .td-idea .tk { margin-top: 4px; }
.wl2 { border: var(--bw) solid var(--ink); background: var(--canvas); padding: 0 12px; }
.wl2-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--grey-scribble); padding: 9px 0; color: var(--text); text-decoration: none; }
.wl2-r:last-child { border-bottom: 0; } .wl2-r:hover b { text-decoration: underline; }
.wl2-r > div:first-child { display: flex; flex-direction: column; min-width: 0; } .wl2-top { display: flex; gap: 8px; align-items: baseline; } .wl2-r > div:first-child .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl2-s { display: flex; align-items: center; gap: 6px; flex: none; }
.lb { display: flex; flex-direction: column; gap: 6px; }
.lb > a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; border: var(--bw-thin) solid var(--ink); padding: 8px 10px; color: var(--text); text-decoration: none; background: var(--canvas); }
.lb > a:hover { background: var(--hover); } .lb-n { font-size: 18px; color: var(--orange); }
.lb-t td, .lb-t th { white-space: nowrap; }
.mk-finish { margin: 26px 0 10px; border: var(--bw) solid var(--orange); background: var(--navy); color: #fff; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.mk-finish b { font-size: 18px; } .mk-finish > span { color: #DCE3F2; font-size: 14px; }
.td-fin-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mk-finish .btn { background: #fff; color: #000; }
.td-o11 { margin-top: 8px; }

/* end of a story */
.st-end { margin: 26px 0 8px; max-width: 760px; }
.st-next { margin-top: 14px; } .st-next b { font-size: 17px; } .st-next .small { color: var(--muted); }
.st-next:hover { background: var(--tint); }

/* company pages and profiles */
.co-mood { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 0; }
.prof-tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }

/* Ideas: tabs, debates */
.ideas-tabs { margin-bottom: 14px; }
.ideas-sort { margin: 0 0 12px; }
.dbt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1000px) { .dbt { grid-template-columns: minmax(0, 1fr) 340px; } }
.dbt-main > .db { margin-bottom: 4px; }
.dbt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dbt-col { display: flex; flex-direction: column; gap: 12px; }
.dbt-side h2.section:first-child { margin-top: 0; }

/* the take sheet */
.tsheet .ss-card { padding: 18px 18px 16px; }
.tp-card h2 { margin: 0 0 8px; font-size: 22px; }
.tp-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; } .tp-r > div { flex: 1 1 100%; }
.tp-about { margin: 0 0 6px; }
.tp-dirs { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.tp-dirs .dir { cursor: pointer; background: var(--canvas); font-size: 14px; padding: 7px 14px; }
.tp-dirs .dir.on { outline: 3px solid var(--orange); outline-offset: 1px; background: var(--tint); }
.tp-box { width: 100%; border: var(--bw) solid var(--ink); min-height: 92px; padding: 10px; font: 16px/1.45 var(--f-body); background: var(--paper); color: var(--text); resize: vertical; box-sizing: border-box; }
.tp-opt { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.tp-err { color: var(--red); font-weight: 600; margin: 6px 0; }
.chip.on { outline: 2px solid var(--orange); }

/* phone header search and the + Take tab */
.hdr-search { display: none; }
@media (max-width: 760px) {
  .hdr-search { display: inline-grid; place-items: center; order: 8; width: 40px; height: 40px; padding: 0; background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); cursor: pointer; }
  .hdr-search svg { width: 20px; height: 20px; }
  .menu-btn { order: 9; }
  .tabbar .tab-take { position: relative; }
  .tabbar .tab-take .tt-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--orange); color: #fff; border: var(--bw) solid var(--ink); }
  .tabbar .tab-take .tt-ic svg { width: 22px; height: 22px; }
  .td-head h1 { font-size: 32px; }
  .td-sub { font-size: 14px; }
  .td5-a { grid-template-columns: 30px minmax(0, 1fr) 76px; } .td5-fig { width: 76px; height: 52px; }
  .mk-strip b { font-size: 14px; }
  .pulse { grid-template-columns: 1fr 1fr; }
  .mk-sh h2 { font-size: 18px; }
  .tk-comp .chip { display: none; }
  .wl2-s .small { display: none; } .wl2-s .tk-bar { width: 56px !important; }
}
@media (min-width: 761px) { :root:not([data-pro="1"]) body.is-home #header-search { display: block; } :root:not([data-pro="1"]) body.is-home .region-switch { margin-left: 0; } }
/* phones, signed in: the account button becomes a round icon so bell, account, search and menu fit on one row */
@media (max-width: 760px) {
  .header-row { gap: 6px !important; } .acct { gap: 6px; }
  .hdr-search, .menu-btn, .acct .bell { width: 36px !important; height: 36px !important; }
  .acct-me { width: 36px; height: 36px; max-width: none !important; padding: 0 !important; display: inline-grid; place-items: center; border-radius: 50%; }
  .acct-me .data, .acct-me .acct-caret { display: none; }
  .acct-me::before { content: ''; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4 21a8 8 0 0 1 16 0' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4 21a8 8 0 0 1 16 0' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
}
@media (max-width: 380px) { .region-switch button { padding: 0 6px !important; min-width: 0 !important; font-size: 12px !important; } .mark { padding: 4px 7px !important; font-size: 15px !important; } }

/* first visit on this device: the 5 stories straight under the heading, no jobs or streak yet */
.td-fresh #td-jobs, .td-fresh #td-streak, .td-fresh #td-finish { display: none; }
@media (max-width: 760px) {
  .td-fresh .td-head { padding-top: 14px; }
  .td-fresh .td-head h1 { font-size: 28px; }
  .td-fresh .td-sub { margin-top: 6px; }
  .td-fresh .td-o4 { order: 2; } .td-fresh .td-o3 { order: 4; margin-top: 18px; }
  .td-fresh #td-top .mk-sh { margin-top: 14px; }
}

/* ---- 23 Oct 2026: reading ring, confetti, vote → take, Founding spots ---- */
.rring { position: fixed; left: 18px; bottom: 22px; z-index: 54; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--canvas); box-shadow: 0 2px 10px rgba(11, 29, 63, .18); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .25s, transform .25s; pointer-events: none; }
.rring.shown { opacity: 1; transform: none; pointer-events: auto; }
.rring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rring circle { fill: none; stroke-width: 4; }
.rr-bg { stroke: var(--grey-scribble); opacity: .45; }
.rr-fg { stroke: var(--orange); stroke-linecap: round; transition: stroke-dashoffset .12s linear, stroke .3s; }
.rr-t { position: relative; font-size: 12px; font-weight: 800; color: var(--ink); }
.rring.done .rr-fg { stroke: var(--green); }
.rring.done .rr-t { font-size: 20px; color: var(--up); }
.rring.pop { animation: rr-pop .6s ease; }
@keyframes rr-pop { 0% { transform: scale(1); } 35% { transform: scale(1.25); } 100% { transform: scale(1); } }
.rr-cta { position: absolute; left: 60px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--navy); color: #fff; font: 800 12px var(--f-display); text-transform: uppercase; letter-spacing: .03em; padding: 8px 12px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.rring.cta .rr-cta { opacity: 1; }
@media (max-width: 860px) { .rring { left: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); width: 42px; height: 42px; } .rr-t { font-size: 11px; } .rring.done .rr-t { font-size: 17px; } .rr-cta { left: 50px; } }
.rring.gone { opacity: 0 !important; pointer-events: none !important; transform: translateY(10px) scale(.9) !important; }
.cf { position: fixed; z-index: 9999; width: 0; height: 0; pointer-events: none; }
.cf i { position: absolute; left: -4px; top: -3px; width: 8px; height: 6px; opacity: 0; animation: cf-fly 1.1s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes cf-fly { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 60px)) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .rring, .rr-fg, .rr-cta { transition: none; } .rring.pop { animation: none; } }
.vt-why { display: block; margin-top: 12px; padding-top: 12px; border-top: var(--bw-thin) dashed var(--grey-scribble); min-width: 0; max-width: 100%; }
.vt-why > * { max-width: 100%; min-width: 0; }
.vt-why label { display: block; font-size: 14px; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; }
.vt-row { display: flex; gap: 8px; width: 100%; min-width: 0; }
.vt-row .btn { flex: 0 0 auto; }
.vt-row input { flex: 1 1 0; width: 0; min-width: 0; -webkit-appearance: none; appearance: none; border-radius: 0; font: inherit; font-size: 16px; padding: 9px 11px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); }
.vt-ok { margin: 0; font-size: 14px; }
.vt-fnd, .st-fnd, .ideas-fnd, .tp-fnd { margin: 6px 0 0; line-height: 1.5; }
.vt-fnd .fnd, .st-fnd .fnd, .ideas-fnd .fnd, .tp-fnd .fnd { margin: 0 6px 0 0; vertical-align: 1px; }
.ideas-fnd { margin: 10px 0 0; }
.tp-back { background: var(--tint); padding: 8px 10px; margin: 0 0 10px; }
.tp-alt { text-align: center; margin: 10px 0 0; }
.db.sm .vt-why label { font-size: 13px; }
[data-fnd-left][hidden] { display: none !important; }
/* 23 Oct 2026: the "Have your say" pill is tappable, and the take box pulses when you land on it */
.rring.cta .rr-cta { pointer-events: auto; cursor: pointer; }
.tk-comp.hl-pulse { animation: hl-pulse 1.4s ease 2; }
@keyframes hl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 127, 0, 0); } 40% { box-shadow: 0 0 0 6px rgba(255, 127, 0, .55); } }
@media (prefers-reduced-motion: reduce) { .tk-comp.hl-pulse { animation: none; outline: 3px solid var(--orange); } }

/* ---------- 23 Oct 2026: phone layout pass. Nothing runs off the screen: rows wrap instead of scrolling sideways ---------- */
@media (max-width: 860px) {
  /* tab rows, pills and chips wrap onto a second line rather than disappearing off the edge */
  .tabs, .tabs.co-groups, nav.co-sub, .co-meta, .g-pop, .controls .seg, .seg, .scr-results .controls .seg, .ideas-tabs {
    flex-wrap: wrap !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; max-width: 100%; }
  .tabs { row-gap: 2px; }
  .tabs a { flex: 0 0 auto; padding: 9px 10px !important; min-height: 40px !important; font-size: 13px !important; letter-spacing: 0; }
  .co-sub { row-gap: 6px; }
  .co-meta > *, .g-pop > * { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .seg button, .seg a.seg-a { flex: 0 0 auto; }
  .ob-sheet .seg { flex-wrap: nowrap !important; }
  /* the market index cards: a 2-column grid, not a sideways carousel */
  .mkt-key { grid-auto-flow: row !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-columns: auto !important; overflow: visible !important; scroll-snap-type: none !important; padding-bottom: 0 !important; }
  .mkt-key > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* long words and links never push a box wider than the screen */
  #app h1, #app h2, #app h3, #app p, #app li { overflow-wrap: break-word; }
  #app img, #app video, #app iframe { max-width: 100%; }
  .g-sticky .peer-sub, .g-sticky .g-old { white-space: normal !important; }
  /* chart labels at the right edge were being cut */
  .cwrap svg { overflow: visible; }
  /* stamps that sit on top of a heading */
  .hero .stamp, .fb-head .stamp, .hero-p .stamp { margin-bottom: 14px; }
  .hero .stamp + h1, .hero-p .stamp + h1 { margin-top: 6px; }
  /* a long idea title in the giant display font */
  #idea h1, .idea-page h1 { font-size: clamp(22px, 6.4vw, 30px) !important; line-height: 1.15; overflow-wrap: anywhere; }
  /* the Ask the bird button hides while you scroll down and comes back when you scroll up */
  .bird-fab { transition: transform .25s ease, opacity .25s ease; }
  body.fab-hide .bird-fab { transform: translateY(140%); opacity: 0; pointer-events: none; }
  /* tables scroll inside their own box, never the page */
  .tscroll, .tw { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lb-wrap { margin: 10px 0; }
}

/* the header: one row on every phone */
@media (max-width: 480px) {
  .site-header .header-row { flex-wrap: nowrap !important; column-gap: 6px !important; padding-left: 12px !important; padding-right: 12px !important; }
  .site-header .mark { flex: 0 0 auto; margin-right: auto !important; }
  .site-header .acct { flex: 0 1 auto; min-width: 0; }
  .site-header .acct :is(.btn, a):not(.acct-me):not(.bell) { padding: 6px 10px !important; font-size: 12px !important; min-height: 36px !important; white-space: nowrap; }
  .site-header .hdr-search, .site-header .menu-btn { flex: 0 0 auto; width: 36px !important; height: 36px !important; }
  .lb-t .lb-best { display: none; }
  .lb-t td, .lb-t th { padding-left: 6px !important; padding-right: 6px !important; }
}
@media (max-width: 400px) {
  .site-header .region-switch { display: none !important; }
  .td5-a { grid-template-columns: 28px minmax(0, 1fr) 64px !important; gap: 8px !important; padding: 10px 10px !important; } .td5-fig { width: 64px !important; height: 46px !important; }
  .co-actions .btn { padding-left: 10px !important; padding-right: 10px !important; white-space: nowrap; }
}
@media (max-width: 345px) {
  .site-header .mark { font-size: 14px !important; }
  .site-header .acct :is(.btn, a):not(.acct-me):not(.bell) { padding: 6px 8px !important; font-size: 11px !important; }
}
/* the US / EU switch, inside the phone menu */
.md-reg { display: flex; gap: 0; align-items: center; flex-wrap: wrap; }
.md-reg > span { margin-right: 10px; font-weight: 700; }
.md-reg button { min-height: 40px; padding: 6px 16px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); margin-right: -2px; font: 800 13px var(--f-display); }
.md-reg button[aria-pressed="true"] { background: var(--navy); color: var(--on-fill); }
@media (max-width: 480px) {
  .co-groups .lg { display: none; }
  .co-meta { gap: 6px !important; }
  .co-meta .chip, .co-meta > a, .co-meta > span { font-size: 12px !important; padding: 3px 8px !important; min-height: 0 !important; }
}
@media (max-width: 480px) {
  /* company and Ideas section tabs: one even row (short labels on phones) */
  .tabs.co-groups, .tabs.ideas-tabs { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 !important; }
  .tabs.co-groups a, .tabs.ideas-tabs a { justify-content: center; text-align: center; padding: 9px 2px !important; font-size: 11.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  body.co-compact :is(#co-top, #fund-top) .co-mood { display: none !important; }
  .co-actions { flex-wrap: wrap !important; row-gap: 8px; }
  .co-actions > * { max-width: 100%; }
  .lb-t th:first-child, .lb-t td:first-child { width: 28px; }
  #app span.stamp { margin-bottom: 10px; }
  #app .stamp + :is(h1, h2, h3) { margin-top: 12px !important; }
  .ia-more[open] .ia-menu { position: static; min-width: 0; margin-top: 6px; }
  .tabbar a, .tabbar button { min-width: 0 !important; flex: 1 1 0 !important; }
  .tabbar a > span, .tabbar button:not(.tab-take) > span { max-width: 100%; overflow: hidden; text-overflow: clip; }
  .tabbar .tab-take { overflow: visible !important; }
}
@media (max-width: 345px) { .tabs.co-groups a, .tabs.ideas-tabs a { font-size: 10.5px !important; } .tabbar a, .tabbar button { font-size: 9.5px !important; } }
@media (max-width: 480px) {
  html body :is(#app, #co-top, #fund-top) nav.tabs.co-groups a, html body #app nav.tabs.ideas-tabs a {
    display: block !important; font: 700 12px/1.2 var(--f-body) !important; letter-spacing: 0 !important; text-transform: none; padding: 11px 1px !important; min-height: 40px !important; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lb-wrap .lb-t { width: 100%; min-width: 0 !important; font-size: 13px; }
  .lb-wrap .lb-t th, .lb-wrap .lb-t td { text-align: left; }
}
@media (max-width: 345px) { html body :is(#app, #co-top, #fund-top) nav.tabs.co-groups a, html body #app nav.tabs.ideas-tabs a { font-size: 11px !important; } }
@media (max-width: 480px) {
  .lb-wrap .lb-t th:first-child, .lb-wrap .lb-t td:first-child { min-width: 0 !important; width: 22px !important; position: static !important; box-shadow: none !important; }
  .lb-wrap .lb-t th, .lb-wrap .lb-t td:nth-child(2) { white-space: normal !important; }
  .lb-wrap .lb-t td:nth-child(2) .fnd { display: inline-block; margin: 2px 0 0; }
}
@media (max-width: 480px) {
  html body :is(#app, #co-top, #fund-top) nav.tabs.co-groups { display: flex !important; flex-wrap: wrap !important; }
  html body :is(#app, #co-top, #fund-top) nav.tabs.co-groups a { flex: 1 1 30% !important; padding: 10px 4px !important; min-height: 38px !important; }
  html body #app nav.tabs.ideas-tabs a { font-size: 11.5px !important; }
}
@media (max-width: 345px) { html body #app nav.tabs.ideas-tabs a { font-size: 10.5px !important; } }
.ideas-tabs .sm { display: none; }
@media (max-width: 480px) { .ideas-tabs .lg { display: none; } .ideas-tabs .sm { display: inline; } }
@media (max-width: 860px) {
  .optbar { flex-wrap: wrap; }
  .optbar button { flex: 1 1 auto !important; overflow: visible !important; text-overflow: clip !important; padding: 4px 10px !important; }
  .peer-sub { white-space: normal !important; }
  .peer-sub .lvl { white-space: nowrap; }
}
/* the robot check is 300px wide at least: on small phones, give the sign-in card more room and shrink the check to fit */
@media (max-width: 380px) {
  .auth-card { padding-left: 12px !important; padding-right: 12px !important; }
  .cap { max-width: 100%; overflow: hidden; }
}
@media (max-width: 345px) {
  .cap > div { transform: scale(.88); transform-origin: left top; margin-bottom: -8px; }
}
@media (max-width: 400px) {
  .pstep span { flex: 1 1 auto; white-space: normal !important; font-size: 11.5px; }
  .pstep span * { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
}

/* the round account button: icon dead centre */
@media (max-width: 860px) {
  .site-header .acct .acct-me { padding: 0 !important; min-height: 0 !important; display: inline-grid !important; place-items: center !important; aspect-ratio: 1; }
  .site-header .acct .acct-me::before { margin: 0 !important; }
}
/* a tilted stamp sitting right above a heading overlapped its first line (desktop too) */
:not(.gate-card):not(.tour-ask) > .stamp + :is(h1, h2, h3) { margin-top: 20px !important; }

/* ---------- 23 Oct 2026: Tap a year (company Summary charts) ---------- */
[data-ycard] svg .hit:not(.bg), [data-ycard] svg .bar { cursor: pointer; }
[data-ycard].yc-on svg .bar { opacity: .32; transition: opacity .2s; }
[data-ycard].yc-on svg .bar.yc-pin { opacity: 1; }
[data-ycard].yc-on svg .hit.bg.yc-pin { fill: var(--paper); }
[data-ycard] .yc-tap { font-size: 12.5px; margin: -2px 0 6px; }
[data-ycard] .yc-tap b { color: var(--orange); }
.yc { margin: 10px 0 18px; border: var(--bw) solid var(--orange); background: var(--canvas); animation: yc-in .22s ease; outline: none; }
@keyframes yc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .yc { animation: none; } }
.yc-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--navy); color: #fff; border-bottom: var(--bw-thin) solid var(--orange); }
.yc-h strong { font-size: 17px; letter-spacing: .02em; }
.yc-h span { font-size: 12.5px; color: #D8DEEA; }
.yc-h .grow { flex: 1; }
.yc-h button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: var(--bw-thin) solid #fff; background: transparent; color: #fff; font: 700 17px var(--f-body); cursor: pointer; }
.yc-h button:disabled { opacity: .3; cursor: default; }
.yc-b { padding: 12px; }
.yc-what { margin: 0 0 12px; line-height: 1.45; }
.yc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--bw-thin) solid var(--ink); }
.yc-tiles > div { padding: 8px 10px; border-right: 1px solid var(--grey-scribble); min-width: 0; }
.yc-tiles > div:last-child { border-right: 0; }
.yc-tiles span { display: block; font-size: 12px; color: var(--muted); }
.yc-tiles b { display: block; font-size: 16px; margin-top: 2px; overflow-wrap: anywhere; }
.yc-tiles em { display: block; font-size: 11.5px; font-style: normal; color: var(--muted); margin-top: 2px; }
.yc-tiles .up { color: var(--up); } .yc-tiles .dn { color: var(--red); }
.yc-split { margin-top: 12px; }
.yc-sbar { display: flex; height: 12px; border: 1.5px solid var(--ink); margin-top: 4px; }
.yc-sbar i { display: block; height: 100%; }
.yc-skey { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.yc-skey i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.yc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.yc .note { margin: 10px 0 0; }
@media (max-width: 600px) {
  .yc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yc-tiles > div:nth-child(2) { border-right: 0; }
  .yc-tiles > div:nth-child(-n+2) { border-bottom: 1px solid var(--grey-scribble); }
  .yc-acts .btn { flex: 1 1 100%; justify-content: center; }
}
/* Financials opened from a year card: that year's column stands out */
td.yc-col, th.yc-col { background: color-mix(in srgb, var(--orange) 14%, transparent) !important; }
th.yc-col { box-shadow: inset 0 -3px 0 var(--orange); }
@media (hover: none) { [data-ycard].yc-on .ctip { display: none !important; } }
.yc-acts .lock { margin-left: 6px; }
html body table tr > td.yc-col { background: color-mix(in srgb, var(--orange) 16%, transparent) !important; }
html body table tr > th.yc-col { background: color-mix(in srgb, var(--orange) 30%, transparent) !important; }

/* ---------- 23 Oct 2026: economic calendar ---------- */
#ecocal .ec-ctl { display: grid; gap: 10px; margin: 14px 0 8px; }
#ecocal .ec-row2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#ecocal .ec-q { flex: 1 1 220px; display: block; }
#ecocal .ec-q input { width: 100%; font: inherit; padding: 9px 12px; min-height: 42px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--text); }
#ecocal select.ec-cat { font: inherit; min-height: 42px; padding: 0 10px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--text); }
#ecocal .ec-pick { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; border: var(--bw-thin) dashed var(--grey-scribble); }
#ecocal .ec-cb { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; }
.ec-day { margin: 18px 0 6px; }
.ec-dh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; padding-bottom: 6px; border-bottom: var(--bw) solid var(--ink); }
.ec-dh .muted { margin-left: auto; font-family: var(--f-body); text-transform: none; letter-spacing: 0; }
.ec-head, .ec-r { display: grid; grid-template-columns: 74px 64px minmax(0, 1fr) 96px 96px 96px 46px; gap: 0 10px; align-items: center; }
.ec-head { padding: 4px 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.ec-head span:nth-child(n+4):nth-child(-n+6) { text-align: right; }
.ec-r { padding: 9px 8px; border-bottom: 1px solid var(--grey-scribble); cursor: pointer; }
.ec-r:hover { background: var(--hover); }
.ec-r:focus-visible { outline: 3px solid var(--royal); outline-offset: -3px; }
.ec-r.past:not(.out) .ec-n, .ec-r.past .ec-t { color: var(--muted); }
.ec-r.imp3 .ec-n { font-weight: 800; }
.ec-r.imp1 .ec-n { color: var(--muted); }
.ec-t { font-size: 14px; display: flex; flex-direction: column; line-height: 1.15; }
.ec-t em { font-style: normal; font-size: 11px; color: var(--orange); font-weight: 700; font-family: var(--f-body); margin-top: 2px; }
.ec-c { font: 700 13px var(--f-data); white-space: nowrap; }
.ec-fl { margin-right: 5px; font-size: 16px; vertical-align: -2px; }
.ec-n { min-width: 0; overflow-wrap: anywhere; }
.ec-v { text-align: right; font-size: 14px; white-space: nowrap; }
.ec-v small { display: none; }
.ec-a { font-weight: 700; }
.ec-a i { font-style: normal; font-size: 10px; margin-left: 4px; vertical-align: 1px; }
.ec-a.ab i { color: var(--royal); } .ec-a.be i { color: var(--orange); }
.ec-imp { display: inline-flex; gap: 2px; justify-content: flex-end; }
.ec-imp i { width: 7px; height: 14px; border: 1.5px solid var(--grey-scribble); display: block; }
.ec-imp i.on { background: var(--orange); border-color: var(--orange); }
.ec-more { display: none; grid-column: 1 / -1; margin: 8px 0 2px; padding: 8px 10px; background: var(--paper); font-size: 14px; line-height: 1.5; }
.ec-more .chip { margin-right: 6px; }
.ec-r.open .ec-more { display: block; }
.ec-r.ec-new { animation: ec-flash 2.4s ease; }
@keyframes ec-flash { 0%, 40% { background: color-mix(in srgb, var(--orange) 22%, transparent); } 100% { background: transparent; } }
.ec-now { display: flex; align-items: center; gap: 10px; margin: 2px 0; color: var(--orange); font: 800 12px var(--f-display); text-transform: uppercase; letter-spacing: .05em; }
.ec-now::before, .ec-now::after { content: ''; height: 2px; background: var(--orange); flex: 1; }
.ec-now::before { flex: 0 0 18px; }
.ec-stale { padding: 8px 10px; border-left: 4px solid var(--orange); background: var(--tint); }
@media (max-width: 760px) {
  .ec-head { display: none; }
  .ec-r { grid-template-columns: 52px repeat(3, minmax(0, 1fr)); grid-template-areas: 't n n n' 't c c i' '. a f p' 'm m m m'; gap: 3px 8px; padding: 11px 2px; }
  .ec-t { grid-area: t; align-self: start; font-size: 13px; }
  .ec-n { grid-area: n; font-size: 15px; line-height: 1.3; }
  .ec-c { grid-area: c; font-size: 12px; color: var(--muted); }
  .ec-imp { grid-area: i; align-self: center; }
  .ec-a { grid-area: a; } .ec-f { grid-area: f; } .ec-p { grid-area: p; }
  .ec-v { text-align: left; font-size: 14px; margin-top: 4px; }
  .ec-v small { display: block; font: 600 11px var(--f-body); color: var(--muted); }
  .ec-more { grid-area: m; }
}
#ecocal .ec-pick[hidden] { display: none; }
#ecocal .seg button { font: 600 14px var(--f-body) !important; text-transform: none; letter-spacing: 0; }

/* ---------- 24 Oct 2026: news archive ---------- */
.narch { margin: var(--s-6) 0 var(--s-4); }
.narch-m { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.narch-m .chip { text-decoration: none; }
.narch-m .chip.on { background: var(--navy); color: var(--on-fill); border-color: var(--orange); }
#npage > .nsearch { display: block; margin: 12px 0 16px; max-width: 420px; }

/* ==== signup-push start ==== */
/* 25 Oct 2026: sign-up card on Today, in-app browser bar and help sheet, one-per-visit sign-up sheet */
.su-card { position: relative; margin: 16px 0 18px; padding: 14px 14px 12px; border: var(--bw) solid var(--orange); background: var(--tint); box-shadow: 4px 4px 0 var(--shadow-c, var(--ink)); max-width: 560px; }
.su-card h2 { margin: 0 26px 6px 0; font-size: 19px; line-height: 1.15; text-transform: uppercase; }
.su-card .su-p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.su-why { list-style: none; margin: 0 0 12px; padding: 0; font-size: 15px; line-height: 1.55; }
.su-why li::before { content: '✓ '; color: var(--green); font-weight: 800; }
.su-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.su-card .btn.su-go, .su-sheet .btn.su-go { margin-top: 0; }
.su-alt { margin: 8px 0 0; text-align: center; font-size: 14px; }
.su-alt .linkbtn { font-size: 14px; }
.su-terms { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.su-terms a { color: inherit; }
.su-streak { display: flex; gap: 6px; justify-content: center; margin: 6px 0 10px; }
.su-streak i { width: 34px; height: 34px; display: grid; place-items: center; font: 800 12px var(--f-display, inherit); font-style: normal; border: 2px solid var(--ink); background: var(--paper, var(--canvas)); }
.su-streak i.on { background: var(--orange); color: #fff; }
.su-sheet .ss-card h2 { padding-right: 30px; }
/* in-app browser bar */
.iab-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 10px 8px 10px 12px; background: #FFE9CF; color: #2B1A05; border-bottom: var(--bw) solid #1B1B1B; position: relative; z-index: 30; }
.iab-t b { display: block; font-size: 14px; line-height: 1.2; }
.iab-t span { display: block; font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
.iab-go { background: var(--orange); color: #fff; border: 3px solid #1B1B1B; font: 800 13px var(--f-display, inherit); text-transform: uppercase; padding: 9px 10px; white-space: nowrap; box-shadow: 2px 2px 0 #1B1B1B; cursor: pointer; }
.iab-x { border: 0; background: none; color: #2B1A05; font-size: 22px; line-height: 1; padding: 4px 6px; cursor: pointer; }
.iab-help .stamp { margin-bottom: 6px; }
.iab-steps { list-style: none; counter-reset: s; margin: 10px 0 14px; padding: 0; }
.iab-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 16px; }
.iab-steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 800; border: 2px solid var(--ink); }
.iab-key { font-family: var(--f-data); font-weight: 600; font-size: 14px; border: 2px solid var(--ink); padding: 1px 7px; background: var(--paper, var(--canvas)); white-space: nowrap; }
.iab-arrow { position: fixed; top: 6px; right: 12px; z-index: 2; color: var(--orange); text-align: right; pointer-events: none; text-transform: uppercase; font-size: 14px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.iab-arrow svg { display: block; width: 46px; height: 60px; margin-left: auto; animation: iab-nudge 1.2s ease-in-out infinite; }
@keyframes iab-nudge { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .iab-arrow svg { animation: none; } }
@media (max-width: 380px) { .iab-go { padding: 8px 7px; font-size: 12px; } .iab-t span { display: none; } }
.tour-card:has([data-su-tour]) [data-tour="done"] { display: none; }
.tour-card:has([data-su-tour]) [data-tour="next"] { background: var(--canvas); color: var(--text); }
/* ==== signup-push end ==== */

/* ==== activation start ==== */
/* 28 Oct 2026: two-box sign-up, first-minute setup, story endings, votes on Today */
.qs-form .hint { margin-top: -4px; }
.qs-form .check { margin: 6px 0 4px; }
.su-sheet .qs-form .f { margin-bottom: 10px; }
/* setup */
.ob { max-width: 560px; margin: 0 auto; padding: 22px 0 40px; }
.ob h1 { font-size: clamp(26px, 6vw, 36px); line-height: 1.05; margin: 6px 0 8px; }
.ob > p.muted { margin: 0 0 14px; line-height: 1.45; }
.ob-step { color: var(--orange); font: 800 12px var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.ob-search input { width: 100%; height: 46px; border: var(--bw) solid var(--ink); background: var(--paper, var(--canvas)); padding: 0 12px; font: 16px var(--f-body); color: var(--text); }
.ob-res { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; }
.ob-hit { text-align: left; border: 2px solid var(--ink); background: var(--canvas); color: var(--text); padding: 8px 10px; font: 15px var(--f-body); cursor: pointer; }
.ob-hit span { color: var(--muted); }
.ob-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 8px; }
.ob-pk { border: var(--bw) solid var(--ink); background: var(--canvas); color: var(--text); padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ob-pk b { font-size: 16px; } .ob-pk span { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-pk[aria-pressed="true"] { background: var(--orange); color: #fff; } .ob-pk[aria-pressed="true"] span { color: #FFF3E6; }
.ob .btn.wide { margin-top: 14px; }
.ob-skip { text-align: center; margin: 8px 0 0; }
.ob-tg { display: flex; align-items: center; gap: 12px; border: var(--bw) solid var(--ink); padding: 12px; margin: 0 0 10px; cursor: pointer; }
.ob-tg > span { flex: 1; } .ob-tg b { display: block; font-size: 16px; } .ob-tg > span > span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.ob-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-tg i { flex: none; width: 48px; height: 28px; border-radius: 14px; border: 2px solid var(--ink); background: var(--grey-scribble); position: relative; transition: background .15s; }
.ob-tg i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--ink); transition: left .15s; }
.ob-tg input:checked + i { background: var(--orange); } .ob-tg input:checked + i::after { left: 23px; }
.ob-tg input:focus-visible + i { outline: 3px solid var(--orange); outline-offset: 2px; }
.ob-note { margin: 2px 0 6px; }
.ob-nudge { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; margin: 14px 0 12px; padding: 12px 14px; border: var(--bw) solid var(--orange); background: var(--tint); color: var(--text); text-decoration: none; box-shadow: 4px 4px 0 var(--shadow-c, var(--ink)); max-width: 560px; }
.ob-nudge b { font-size: 16px; } .ob-nudge span { grid-column: 1; font-size: 13px; color: var(--muted); } .ob-nudge .ob-arw { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; color: var(--orange); }
/* story endings */
.se-h { font-size: 16px; text-transform: uppercase; margin: 22px 0 10px; }
.se-co { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: var(--bw) solid var(--ink); padding: 10px 12px; margin: 0 0 8px; background: var(--canvas); }
.se-co a { color: var(--text); text-decoration: none; min-width: 0; } .se-co a b { font-size: 16px; margin-right: 6px; }
.se-co a span { color: var(--muted); font-size: 14px; } .se-co em { font-style: normal; }
.se-fl { border: 2px solid var(--orange); background: none; color: var(--orange); font: 800 12px var(--f-display); text-transform: uppercase; padding: 7px 10px; cursor: pointer; white-space: nowrap; }
.se-fl[aria-pressed="true"] { background: var(--orange); color: #fff; }
.se-nx { display: block; border: var(--bw) solid var(--orange); background: var(--tint); padding: 12px 14px; color: var(--text); text-decoration: none; box-shadow: 4px 4px 0 var(--shadow-c, var(--ink)); }
.se-nx b { display: block; font: 700 17px/1.3 var(--f-body); margin: 4px 0; }
.se-next { margin-bottom: 22px; }
/* votes on Today's list */
.qv { padding: 0 12px 12px 54px; }
.qv-o { display: flex; gap: 6px; flex-wrap: wrap; }
.qv-b { flex: 1 1 0; min-width: 0; border: 2px solid var(--ink); background: var(--canvas); color: var(--text); font: 700 13px var(--f-body); padding: 6px 6px; cursor: pointer; line-height: 1.2; }
.qv-b.on { background: var(--orange); color: #fff; border-color: var(--ink); }
.qv-b:disabled { opacity: .6; cursor: default; }
.qv-r { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .qv { padding: 0 10px 12px 46px; } .qv-b { font-size: 12.5px; } }
.vs-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; border: var(--bw) solid var(--ink); padding: 8px 12px; margin: 0 0 10px; }
.vs-n { width: 34px; height: 34px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 17px; border: 2px solid var(--ink); }
.vs-zero .vs-n { background: var(--canvas); color: var(--muted); } .vs-zero .vs-days { display: none; }
.vs-strip b { display: block; font-size: 15px; } .vs-strip div span { display: block; font-size: 12.5px; color: var(--muted); }
.vs-days { display: flex; gap: 4px; } .vs-days i { width: 12px; height: 12px; border: 2px solid var(--ink); } .vs-days i.on { background: var(--orange); }
@media (max-width: 380px) { .vs-days { display: none; } }
/* ==== activation end ==== */

/* ==== owner-v2 start ==== */
/* 30 Oct 2026: owner dashboard v2. Tables become cards on a phone. */
.o2-tw { overflow-x: auto; margin: 8px 0; -webkit-overflow-scrolling: touch; }
.o2-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.o2-t th { font: 600 12px var(--f-body); color: var(--muted); text-align: right; padding: 6px 8px; border-bottom: var(--bw-thin) solid var(--ink); white-space: nowrap; }
.o2-t td { padding: 8px; text-align: right; border-bottom: 1px solid var(--grey-scribble); vertical-align: top; font-family: var(--f-data); white-space: nowrap; }
.o2-t th.l, .o2-t td.l { text-align: left; font-family: var(--f-body); }
.o2-t th:first-child, .o2-t td:first-child { position: static; border-right: 0; min-width: 0; max-width: none; background: none; font-size: 14px; }
.o2-t td:first-child { white-space: normal; min-width: 180px; max-width: 420px; line-height: 1.35; }
.o2-t tbody tr:hover { background: var(--tint); }
.o2-t td.l a { font-weight: 600; }
.o2-th { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; font: inherit; color: inherit; white-space: nowrap; padding: 2px 0; }
.o2-th:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.o2-th:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.o2-arr { font-size: 11px; opacity: .45; min-width: 9px; }
.o2-t th.o2-on { color: var(--ink); } .o2-t th.o2-on .o2-arr { opacity: 1; color: var(--orange); }
.o2-people td:first-child { white-space: normal; min-width: 200px; }
.o2-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.o2-t .chip { font-size: 11px; padding: 0 6px; margin-left: 2px; font-family: var(--f-body); }
.chip.o2-tag { background: var(--tint-2); }
.chip.o2-ok { background: var(--tint); border-color: var(--up); color: var(--up); }
.o2-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--grey-scribble); }
.o2-dot.now { background: var(--green, #2FAE4A); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green, #2FAE4A) 30%, transparent); }
.o2-dot.day { background: var(--orange); } .o2-dot.week { background: var(--royal); }
.o2-live .ov-v { color: var(--up); }
.o2-live .ov-s a { font-weight: 600; }
.o2-warn { border: var(--bw) solid var(--orange); background: var(--tint); padding: 10px 14px; margin: 0 0 var(--s-4); }
.o2-warn h2 { font-size: 18px; margin: 0 0 4px; } .o2-warn p { margin: 4px 0; font-size: 14px; }
.o2-fun { display: grid; gap: 8px; margin-top: 10px; }
.o2-fr { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 48px; gap: 10px; align-items: center; font-size: 14px; }
.o2-fr b { text-align: right; }
.o2-fb { height: 16px; background: var(--tint); border: 1px solid var(--grey-scribble); }
.o2-fb i { display: block; height: 100%; background: var(--royal); }
.o2-coh { margin-top: var(--s-4); }
.o2-h { display: inline-block; min-width: 46px; padding: 2px 6px; background: color-mix(in srgb, var(--royal) calc(var(--h) * 100%), transparent); }
.o2-small td, .o2-small th { padding: 5px 6px; }
.o2-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.o2-ctl input[type="search"] { flex: 1 1 260px; min-height: 44px; padding: 8px 12px; font-size: 16px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); }
.o2-sel select { min-height: 40px; padding: 6px 10px; font-size: 15px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); }
.o2-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.o2-chips .chip { cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; font: 600 13px var(--f-body); background: var(--canvas); text-decoration: none; color: var(--ink); }
.o2-chips .chip.on { background: var(--navy); color: var(--on-fill); }
#o2-tags { display: contents; }
.o2-back { margin: 0 0 8px; font-size: 14px; }
.o2-who { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin: 4px 0 var(--s-4); }
.o2-who h1 { font-size: 32px; margin: 0 0 4px; }
.o2-who p { margin: 0; font-size: 14px; max-width: 720px; }
.o2-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.o2-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.o2-cols > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); min-width: 0; }
.o2-cols > * { min-width: 0; }
.o2-sec { padding: 14px 16px; margin: 0 0 var(--s-4); }
.o2-cols .o2-sec { margin: 0; }
.o2-sec h2 { font-size: 20px; margin: 0 0 4px; }
.o2-sh { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.o2-chipsw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.o2-chipsw .chip { text-decoration: none; font-size: 13px; }
.o2-tl { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 2px; }
.o2-tl li, .o2-tl li > a { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 14px; padding: 5px 0; border-bottom: 1px solid var(--grey-scribble); color: var(--ink); text-decoration: none; }
.o2-tl li > a { grid-column: 1 / -1; border: 0; padding: 0; } .o2-tl li > a:hover span:last-child { text-decoration: underline; }
.o2-tl .data { color: var(--muted); font-size: 12.5px; }
.o2-list { padding-left: 18px; margin: 6px 0 0; font-size: 14px; } .o2-list li { margin: 4px 0; }
#o2-note textarea, #o2-note input { width: 100%; box-sizing: border-box; font: 15px var(--f-body); padding: 8px 10px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--ink); margin: 6px 0; }
#owner .home-sec { margin-top: var(--s-5); }
@media (max-width: 900px) { .o2-cols { grid-template-columns: minmax(0, 1fr); } }
/* phone: every owner table becomes a list of cards, one row per card, each value labelled */
@media (max-width: 700px) {
  #owner .owner-head .blog-p { display: none; }
  .o2-who h1 { font-size: 26px; }
  .o2-acts .btn { flex: 1 1 auto; }
  .o2-ctl input[type="search"] { flex-basis: 100%; }
  .o2-ctl .o2-sel { flex: 1 1 auto; } .o2-ctl .o2-sel select { width: 100%; }
  .o2-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
  .o2-chips::-webkit-scrollbar { display: none; }
  .o2-chips .chip { flex: 0 0 auto; white-space: nowrap; }
  #o2-tags { display: contents; }
  .o2-tw { overflow: visible; }
  .o2-t, .o2-t tbody, .o2-t tr, .o2-t td { display: block; width: auto; }
  .o2-t thead { display: none; }
  .o2-t tr { border: var(--bw-thin) solid var(--ink); background: var(--canvas); padding: 8px 12px; margin: 0 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .o2-t tbody tr:hover { background: var(--canvas); }
  .o2-t td { border: 0; padding: 3px 0; text-align: left; white-space: normal; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
  .o2-t td::before { content: attr(data-l); display: block; font: 600 11px var(--f-body); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
  .o2-t td:first-child { max-width: none; min-width: 0; grid-column: 1 / -1; font-size: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--grey-scribble); margin-bottom: 4px; }
  .o2-t td:first-child::before { display: none; }
  .o2-people td:first-child { min-width: 0; }
  .o2-t td:has(> .muted:only-child) { opacity: .7; }
  .o2-sub { max-width: none; }
  .o2-small tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .o2-fr { grid-template-columns: 1fr 40px; } .o2-fr .o2-fb { grid-column: 1 / -1; grid-row: 2; }
  .o2-tl li, .o2-tl li > a { grid-template-columns: 1fr; gap: 0; }
  #owner .owner-table, #owner .ov-chart table, #ol-body table { display: block; overflow-x: auto; }
  .ov-tile { min-height: 0; } .ov-v { font-size: 22px; }
}
/* ==== owner-v2 end ==== */

/* ==== u2 start ==== */
/* 8 Nov 2026: Today's new order (debate first, then yesterday's verdict and your stocks), the remind card, the calls page,
   the sign-up strip, and search answers for indices / crypto / private companies. */
.td-hero .mk-sh:first-child { margin-top: 14px; }
.td-hero .db { margin: 0; }
.td-hero .db h3 { font-size: 19px; }
/* the new order (phones: one column; laptops: within each column) */
  .td.td-v2 .td-head { order: 1; }
  .td.td-v2 #td-hero { order: 2; }
  .td.td-v2 #su-strip { order: 3; }
  .td.td-v2 #td-verdict { order: 3; }
  .td.td-v2 #td-watch.td-watch-up { order: 4; }
  .td.td-v2 #td-jobs { order: 5; }
  .td.td-v2 #td-strip { order: 6; margin-top: 16px; }
  .td.td-v2 #td-top { order: 7; }
  .td.td-v2 #td-lesson { order: 8; }
  .td.td-v2 #td-db { order: 9; }
  .td.td-v2 #td-pulse { order: 10; }
  .td.td-v2 #td-watch { order: 11; }
  .td.td-v2 #td-lb { order: 12; }
  .td.td-v2 #td-finish { order: 13; }
  .td.td-v2 .td-o11 { order: 14; }
.td-verdict .mk-sh:first-child { margin-top: 16px; }
.vd { border: var(--bw) solid var(--ink); background: var(--paper); padding: 10px 12px; }
.vd-q { display: block; color: var(--text); text-decoration: none; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.vd-q .muted { display: block; font-weight: 400; font-size: 13px; margin-top: 2px; }
.vd-r { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--grey-scribble); font-size: 14px; }
.vd-r b.up, .vd-r b.dn { font-weight: 800; }
.vd-you { font-weight: 700; }
.vd-note { margin: 6px 0 0; }
.rm { display: flex; gap: 10px; align-items: center; border: var(--bw) solid var(--ink); background: var(--canvas); padding: 10px 12px; margin-top: 10px; }
.rm > div { flex: 1; min-width: 0; } .rm b { display: block; } .rm span { display: block; font-size: 13px; color: var(--muted); }
.rm-x { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; min-width: 32px; min-height: 32px; }
.rm-ok { border-color: var(--up); }
.su-strip { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; border: 2px dashed var(--orange); padding: 10px 12px; margin: 14px 0 0; }
.su-strip-t { font-size: 14px; flex: 1 1 220px; }
.su-strip-b { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.su-strip-b .btn.google { display: inline-flex; align-items: center; gap: 8px; }
.su-strip-b .btn.google svg { width: 16px; height: 16px; }
.su-strip-b a { font-size: 13px; }
.su-sheet .qs-form { margin-top: 6px; }
/* the calls page */
.calls-pg { max-width: 760px; margin: var(--s-5) auto var(--s-7); }
.calls-pg h1 { margin: 4px 0 8px; }
.cl-score { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.cl-score > div { border: var(--bw) solid var(--ink); background: var(--paper); padding: 12px; text-align: center; }
.cl-score .cl-you { border-color: var(--orange); }
.cl-score b { display: block; font-size: 28px; } .cl-score span { font-size: 13px; color: var(--muted); }
.cl-list { border: var(--bw) solid var(--ink); }
.cl-row { display: grid; grid-template-columns: 64px 1fr auto 70px 22px; gap: 8px; align-items: baseline; padding: 9px 12px; border-bottom: 1px solid var(--grey-scribble); color: var(--text); text-decoration: none; }
.cl-row:last-child { border-bottom: 0; } .cl-row:hover { background: var(--tint); }
.cl-call { color: var(--muted); } .cl-row i { font-style: normal; font-weight: 800; text-align: right; }
.cl-row > span.data { text-align: right; }
.cl-empty { border: var(--bw) solid var(--ink); padding: 16px; }
.cl-lb { border: var(--bw) solid var(--ink); }
.cl-lb > div { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--grey-scribble); }
.cl-lb > div:last-child { border-bottom: 0; } .cl-lb i { font-style: normal; color: var(--orange); } .cl-lb .me { background: var(--tint); }
.cl-opt { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 4px; font-size: 14px; cursor: pointer; }
.cl-opt input { margin-top: 3px; }
@media (max-width: 560px) { .cl-row { grid-template-columns: 56px 1fr 62px 20px; } .cl-row .cl-d { display: none; } }
/* search answers that aren't a company */
.suggest li[data-t^="_/"] { display: block; }
.suggest li[data-t^="_/"] .t { display: block; font-family: var(--f-body); font-weight: 700; min-width: 0; }
.suggest li[data-t^="_/"] .n { display: block; white-space: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }
.suggest li[data-t^="_/"] .x { display: none; }
/* Learn: step counter, why Next is waiting, Crash Museum play */
.lesson-step { margin: 6px 0 0; }
.lnext-hint { align-self: center; margin-right: 8px; }
/* ==== u2 end ==== */

/* ==== spooky-2026 start ==== */
/* Halloween 2026 ("Haunted graveyard"): on until the end of 1 November. index.html sets data-spooky before paint; the
   look only applies on top of dark mode, so switching it off (menu, footer or the theme button) restores the normal site. */
:root[data-spooky="1"][data-theme="dark"] {
  --canvas: #17121F; --paper: #221A30; --ink: #EFE7FF; --text: #F3EEFF; --muted: #B9ACCF; --grey-scribble: #3D3350;
  --navy: #2A1A45; --navy-2: #3A2560; --royal: #C7A8FF;
  --tint: #33243F; --tint-2: #3F2C4C; --hover: #211A2D; --shadow-c: #4A3D66;
  --rank-lo: #4A2C3A; --rank-mid: #221A30; --rank-hi: #33295A;
  --c-navy: #A77BFF; --c-royal: #C7A8FF;
  --skel: #241C33; --skel-hi: #2F2542;
}
:root[data-spooky="1"][data-theme="dark"] body { background: radial-gradient(130% 520px at 50% 0, rgba(167, 123, 255, .16), transparent 72%) no-repeat, var(--canvas); }
/* a cobweb in the header's top-right corner */
:root[data-spooky="1"][data-theme="dark"] .site-header::after { content: ''; position: absolute; right: 0; top: 0; width: 74px; height: 74px; pointer-events: none; opacity: .45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70'%3E%3Cg fill='none' stroke='%23EFE7FF' stroke-width='1'%3E%3Cpath d='M70 0 L0 70 M70 0 L20 70 M70 0 L45 70 M70 0 L0 45 M70 0 L0 20'/%3E%3Cpath d='M58 0 Q60 10 70 12 M44 0 Q48 20 70 26 M30 0 Q36 30 70 40 M16 0 Q26 40 70 56'/%3E%3C/g%3E%3C/svg%3E") no-repeat right top / contain; }
/* the + Take button glows like a lantern */
:root[data-spooky="1"][data-theme="dark"] .tabbar .tab-take .tt-ic { box-shadow: 0 0 18px rgba(255, 127, 0, .7); }
:root[data-spooky="1"][data-theme="dark"] :is(.mk-strip, .mk-top5) { box-shadow: 0 0 0 1px rgba(167, 123, 255, .22), 0 0 24px rgba(167, 123, 255, .13); }
/* fog rolling along the bottom of the screen */
.spk-fog { display: none; }
:root[data-spooky="1"][data-theme="dark"] .spk-fog { display: block; position: fixed; left: 0; right: 0; bottom: 0; height: 130px; background-size: 130% 100% !important; z-index: 6; pointer-events: none;
  background: radial-gradient(50% 70% at 30% 100%, rgba(167, 123, 255, .2), transparent 70%), radial-gradient(40% 70% at 75% 100%, rgba(205, 191, 240, .14), transparent 70%);
  animation: spk-drift 9s ease-in-out infinite alternate; }
@media (max-width: 760px) { :root[data-spooky="1"][data-theme="dark"] .spk-fog { bottom: calc(60px + env(safe-area-inset-bottom)); height: 100px; } }
@keyframes spk-drift { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* Today: moon, ghost and bats by the headline */
.spk-sky, .spk-yard { display: none; }
:root[data-spooky="1"][data-theme="dark"] .td-head { position: relative; }
:root[data-spooky="1"][data-theme="dark"] .spk-sky { display: block; position: absolute; right: 116px; top: 0; width: 140px; height: 62px; pointer-events: none; }
:root[data-spooky="1"][data-theme="dark"] .td-fresh .spk-sky { right: 0; }
@media (min-width: 761px) { :root[data-spooky="1"][data-theme="dark"] .td-head { padding-top: 46px; } }
.spk-moon { position: absolute; right: 6px; top: 2px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #FFFBE6, #EFE3B8 62%, #D9C98F); box-shadow: 0 0 34px rgba(244, 236, 208, .35); }
.spk-ghost { position: absolute; right: 0; top: 12px; width: 40px; height: 46px; animation: spk-bob 3s ease-in-out infinite; }
.spk-bats { position: absolute; left: 0; top: 0; width: 90px; height: 45px; color: #EFE7FF; }
.spk-bats path { fill: currentColor; }
.spk-bat1 { animation: spk-flap 1.6s ease-in-out infinite; transform-origin: 30px 20px; }
.spk-bat2 { animation: spk-flap 1.3s ease-in-out infinite .3s; transform-origin: 90px 38px; }
@keyframes spk-flap { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-5px) scaleY(.7); } }
@keyframes spk-bob { 50% { transform: translateY(-6px); } }
@media (max-width: 760px) {
  :root[data-spooky="1"][data-theme="dark"] .spk-sky, :root[data-spooky="1"][data-theme="dark"] .td-fresh .spk-sky { right: 0; top: 2px; width: 104px; height: 64px; }
  .spk-moon { width: 44px; height: 44px; top: 4px; right: 4px; }
  .spk-ghost { width: 34px; height: 40px; top: 14px; }
  .spk-bats { width: 60px; height: 30px; left: -4px; }
  :root[data-spooky="1"][data-theme="dark"] .td-head .mk-kick { padding-right: 100px; display: inline-block; }
}

/* Today: "Here lie today's biggest fallers", real movers from the live market feed */
:root[data-spooky="1"][data-theme="dark"] .spk-yard { display: block; margin: 0 0 18px; }
.spk-graves { display: flex; gap: 12px; padding: 0 6px 6px; }
.spk-grave { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 4px 10px; position: relative; text-decoration: none;
  background: #3B3150; color: #EFE7FF; border: 2px solid #CDBFF0; border-radius: 46px 46px 4px 4px; font-weight: 700; font-size: 12px; line-height: 1.2; }
.spk-grave:hover { background: #463A5E; }
.spk-grave b { font-size: 15px; color: #fff; letter-spacing: .02em; }
.spk-grave em { font-style: normal; font-size: 14px; color: #FF9C9C; }
.spk-grave::after { content: ''; position: absolute; left: -8px; right: -8px; bottom: -7px; height: 8px; background: #2C3D22; border-radius: 6px; }
.spk-note { margin: 12px 0 0; }

/* the switches */
.spk-foot { margin: 12px 0 14px; font-size: 14px; }
.spk-foot button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; }
@media (prefers-reduced-motion: reduce) { .spk-fog, .spk-ghost, .spk-bat1, .spk-bat2 { animation: none !important; } }
/* ==== spooky-2026 end ==== */

/* ==== xmas-2026 start ==== */
/* Christmas 2026 ("Santa Rally"): on from 24 November to the end of 5 January, when the Santa rally window closes.
   index.html sets data-xmas before paint. The look has a dark palette and a light palette, so the theme button just
   switches between the two; the off switch is in the phone menu and the footer. Colours come from the site's own
   variables, so every page follows. */
:root[data-xmas="1"][data-theme="dark"] {
  --canvas: #16241F; --paper: #1F332B; --ink: #F2EFE4; --text: #F5F2E9; --muted: #B9CCC1; --grey-scribble: #3A5246;
  --navy: #1F4D3A; --navy-2: #2A6149; --royal: #F4C95D; --orange: #F4C95D; --amber: #FFE08A;
  --tint: #263D32; --tint-2: #2F4D3E; --hover: #1B2C25; --shadow-c: #4A6558;
  --rank-lo: #4A2A2C; --rank-mid: #1F332B; --rank-hi: #2A5540;
  --skel: #1D3029; --skel-hi: #284238; --xm-snow: #F7FAFF;
}
:root[data-xmas="1"][data-theme="light"] {
  --canvas: #FFFDF8; --paper: #F4EFE3; --ink: #14211B; --text: #17251E; --muted: #4F6257; --grey-scribble: #CFC8B6;
  --navy: #1F4D3A; --navy-2: #2A6149; --royal: #1B6B45; --orange: #C8242B; --amber: #F4C95D;
  --tint: #F5FAF3; --tint-2: #E6F0E3; --hover: #F7F3E8;
  --rank-lo: #FBE3E4; --rank-mid: #F4EFE3; --rank-hi: #DCEBDD; --xm-snow: #A9C3D6;
}
:root[data-xmas="1"][data-theme="dark"] body { background: radial-gradient(120% 460px at 50% 0, rgba(244, 201, 93, .07), transparent 72%) no-repeat, var(--canvas); }
/* light mode: the accent is Christmas red on the page, and gold inside anything filled green or red, where red would
   not show (the variable is simply swapped inside those boxes, so their borders, labels and badges all follow) */
:root[data-xmas="1"][data-theme="light"] :is(.mark, .bar, .chip.navy, .btn.primary, .seg button[aria-pressed="true"], .tabs a[aria-current="page"], .news-month,
  .scr-tabs button[aria-selected="true"], .fcell.on select, .fcell.on input[type="search"], .bird-fab, .bird-head, .seg a.seg-a[aria-pressed="true"], .avatar, .ce-tool[aria-pressed="true"],
  .owner-head .stamp, .pro-btn[aria-pressed="true"], .me-row .btn[aria-pressed="true"], .door-mkt, .q-build, .hear-btn.on, .fb-kind.on, table.stack tr:first-child, .vs-days .btn.on, .mk-strip,
  .mk-n, .db:not(.sm), .take-chip, .mk-finish, .rr-cta, .md-reg button[aria-pressed="true"], .yc-h, .xm-rally) { --orange: #F4C95D; --muted: #D6E4DB; }
:root[data-xmas="1"][data-theme="light"] :is(.chip.tog.on, .chip.on, .tk-av, .bell-n, .inst-n, .lw-mat-bar.left, .scr-tabs .n) { --orange: #F4C95D; }

/* fairy lights on a wire, in their own strip under the header (it scrolls away with the page, so nothing is covered) */
.xm-lights, .xm-snow { display: none; }
:root[data-xmas="1"] .xm-lights { display: flex; height: 26px; overflow: hidden; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 26'%3E%3Cpath d='M0 1 Q32 22 64 1' fill='none' stroke='%236B8578' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 64px 26px repeat-x; }
.xm-lights i { flex: 0 0 64px; position: relative; }
.xm-lights i::after { content: ''; position: absolute; left: 50%; top: 11px; width: 10px; height: 12px; margin-left: -5px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: #FF5A5F; animation: xm-tw 1.8s ease-in-out infinite; }
.xm-lights i:nth-child(4n+2)::after { background: #F4C95D; animation-delay: .45s; }
.xm-lights i:nth-child(4n+3)::after { background: #5ED477; animation-delay: .9s; }
.xm-lights i:nth-child(4n)::after { background: #7FB5FF; animation-delay: 1.35s; }
@keyframes xm-tw { 50% { opacity: .3; } }
:root[data-xmas="1"][data-theme="light"] .xm-lights i::after { box-shadow: 0 0 0 1px rgba(20, 33, 27, .35); }

/* a little snow, kept sparse and faint so it never gets in the way of reading */
:root[data-xmas="1"] .xm-snow { display: block; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 6; }
.xm-snow i { position: absolute; top: -12px; border-radius: 50%; background: var(--xm-snow, #fff); opacity: .5; animation: xm-fall linear infinite; }
@keyframes xm-fall { to { transform: translate3d(14px, 104vh, 0); } }
@media (max-width: 760px) { .xm-snow i:nth-child(n+7) { display: none; } }

/* a Santa hat on the pigeon in the logo */
:root[data-xmas="1"] .mark { position: relative; }
:root[data-xmas="1"] .mark::after { content: ''; position: absolute; left: 2px; top: -13px; width: 28px; height: 24px; transform: rotate(-14deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cpath d='M6 26 C8 12 18 3 34 6 C28 10 27 18 28 26 Z' fill='%23D7262D' stroke='%23000' stroke-width='2'/%3E%3Crect x='3' y='24' width='28' height='8' rx='4' fill='%23fff' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='35' cy='7' r='4.5' fill='%23fff' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 480px) { :root[data-xmas="1"] .mark::after { display: none; } }

/* phones: the + Take button is a bauble, and snow has settled on the tab bar */
:root[data-xmas="1"] .tabbar .tab-take .tt-ic { position: relative; background: #D7262D; color: #fff; box-shadow: 0 0 14px rgba(244, 201, 93, .5); }
:root[data-xmas="1"] .tabbar .tab-take .tt-ic::before { content: ''; position: absolute; left: 50%; top: -10px; width: 12px; height: 8px; margin-left: -6px; background: #F4C95D; border: 2px solid #0B1410; border-radius: 2px 2px 0 0; }
:root[data-xmas="1"] .tabbar::before { content: ''; position: absolute; left: 0; right: 0; top: -13px; height: 10px; pointer-events: none;
  background: radial-gradient(ellipse 60px 10px at 50% 100%, var(--xm-snow) 98%, transparent) 0 0 / 150px 10px repeat-x, radial-gradient(ellipse 40px 8px at 50% 100%, var(--xm-snow) 98%, transparent) 70px 2px / 110px 8px repeat-x; }

/* the debate box goes Christmas red (the small past-debate cards keep the page colour) */
:root[data-xmas="1"] .db:not(.sm) { background: #7A1A1F; }
/* readability: falls on the green market strip get a lighter red, and in dark mode anything filled with the accent
   (gold there, not orange) gets dark text instead of white */
:root[data-xmas="1"] .mk-strip .dn { color: #FFB0B0; }
:root[data-xmas="1"][data-theme="dark"] .lp-list li.cap .lp-n, :root[data-xmas="1"][data-theme="dark"] .su-streak i.on, :root[data-xmas="1"][data-theme="dark"] .iab-go,
:root[data-xmas="1"][data-theme="dark"] .iab-steps li::before, :root[data-xmas="1"][data-theme="dark"] .ob-pk[aria-pressed="true"], :root[data-xmas="1"][data-theme="dark"] .se-fl[aria-pressed="true"],
:root[data-xmas="1"][data-theme="dark"] .qv-b.on, :root[data-xmas="1"][data-theme="dark"] .vs-n, :root[data-xmas="1"][data-theme="dark"] .tk-av.me, :root[data-xmas="1"][data-theme="dark"] .scr-tabs .n,
:root[data-xmas="1"][data-theme="dark"] a.chip.next:hover, :root[data-xmas="1"][data-theme="dark"] .bird-sug .chip:hover { color: #16241F; }
:root[data-xmas="1"][data-theme="dark"] .vs-zero .vs-n { color: var(--muted); }
:root[data-xmas="1"][data-theme="light"] a.chip.next:hover { color: #fff; }

/* Today: Santa rally watch, and the Naughty & Nice list (real movers from the live market feed) */
.xm-rally, .xm-list { display: none; }
:root[data-xmas="1"] .xm-rally { display: flex; align-items: center; gap: 12px; border: var(--bw) solid var(--orange); background: var(--navy); color: #fff; padding: 12px 14px; margin: 18px 0; box-shadow: 4px 4px 0 var(--shadow-c); }
.xm-rally svg { flex: none; width: 60px; height: 38px; }
.xm-rt { flex: 1; min-width: 0; }
.xm-rt b { display: block; font-size: 14px; letter-spacing: .04em; }
.xm-rt span { display: block; font-size: 13px; line-height: 1.35; color: #D6E4DB; }
.xm-fig { flex: none; text-align: right; font: 600 22px var(--f-data); color: #F4C95D; }
.xm-fig.up { color: #7CE08F; }
.xm-fig.dn { color: #FF9C9C; }
.xm-fig small { display: block; max-width: 132px; font: 400 11px/1.3 var(--f-body); color: #D6E4DB; }
@media (max-width: 480px) {
  :root[data-xmas="1"] .xm-rally { flex-wrap: wrap; gap: 10px 12px; }
  .xm-rally svg { width: 44px; height: 28px; }
  .xm-fig { flex: 1 1 100%; display: flex; align-items: baseline; gap: 10px; text-align: left; }
  .xm-fig small { max-width: none; }
}
:root[data-xmas="1"] .xm-list { display: block; margin: 0 0 18px; }
.xm-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 2px 4px; }
.xm-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.xm-col > span { font: 800 12px var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.xm-nice > span { color: var(--up); }
.xm-naughty > span { color: var(--red); }
.xm-tag, .xm-coal { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; text-decoration: none; font: 600 15px var(--f-data); }
.xm-tag em, .xm-coal em { font-style: normal; }
.xm-tag { position: relative; padding-left: 26px; background: #F2EFE4; color: #16241F; }
:root[data-xmas="1"][data-theme="light"] .xm-tag { box-shadow: inset 0 0 0 2px #14211B; }
.xm-tag::before { content: ''; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #16241F; }
.xm-tag:nth-of-type(odd) { transform: rotate(-1deg); }
.xm-tag:nth-of-type(even) { transform: rotate(.8deg); }
.xm-tag em { color: #1F7A2A; }
.xm-tag:hover { background: #fff; }
.xm-coal { background: #0B1410; color: #F2EFE4; clip-path: polygon(4% 8%, 38% 0, 92% 6%, 100% 48%, 94% 96%, 52% 100%, 6% 92%, 0 44%); }
.xm-coal:nth-of-type(even) { clip-path: polygon(2% 14%, 46% 2%, 96% 10%, 100% 56%, 90% 100%, 40% 96%, 4% 100%, 0 50%); }
.xm-coal em { color: #FF9C9C; }
.xm-coal:hover { background: #000; }
.xm-note { margin: 12px 0 0; }

/* the switches */
.xm-foot { margin: 12px 0 14px; font-size: 14px; }
.xm-foot button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .xm-snow i, .xm-lights i::after { animation: none !important; } }
@media print { .xm-lights, .xm-snow { display: none !important; } }
/* ==== xmas-2026 end ==== */
/* ==== insiders-2026 start ==== */
/* Insider trades page (#/_/insiders). Colours come from the site's own variables, so light, dark and seasonal themes all apply. */
.ins-pre { margin: 10px 0 0; }
.ins-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 14px 0 0; padding: 12px 14px; border: var(--bw) solid var(--ink); background: var(--paper); }
.ins-f { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; min-width: 0; color: var(--text); }
.ins-f select, .ins-f input[type="search"] { height: 40px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); color: var(--text); font: 14px var(--f-body); border-radius: 0; padding: 0 8px; min-width: 0; max-width: 100%; }
.ins-fq { flex: 1 1 220px; }
.ins-fq input { width: 100%; }
.ins-bar .seg { flex-wrap: nowrap; }
.ins-bar .seg button { min-height: 40px; white-space: nowrap; }
.ins-chk { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; align-items: center; min-height: 40px; font-weight: 400; font-size: 14px; }
.ins-chk label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 32px; }
.ins-chk label[hidden] { display: none; }
.ins-chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.ins-stats { margin-top: 14px; }
.ins-sum { margin: 12px 0 8px; }
.ins-gap { border-left: 4px solid var(--orange); padding-left: 10px; color: var(--text); }
.ins-t td { vertical-align: top; }
.ins-t td.ins-l { text-align: left; }
.ins-t td.ins-who, .ins-t td.ins-names { font-family: var(--f-body); white-space: normal; }
.ins-t td.ins-who { min-width: 176px; }
.ins-t td:first-child .peer-sub { max-width: 170px; }
@media (min-width: 761px) { table.num.ins-t th:first-child, table.num.ins-t td:first-child { min-width: 176px; } }
.ins-t .ins-sh { max-width: none; font-family: var(--f-data); }
.ins-thl { display: inline-block; font: 600 14px/32px var(--f-data); color: var(--ink); }
.ins-who a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ins-who a:hover { text-decoration: underline; }
.ins-who .peer-sub { white-space: normal; max-width: 250px; }
.ins-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ins-tag { font: 600 11px/1.5 var(--f-body); padding: 0 5px; border: 1px solid var(--grey-scribble); color: var(--muted); white-space: nowrap; cursor: help; }
.ins-tag.warn { border-color: var(--orange); color: var(--text); }
.ins-dp { font-size: 12px; margin-left: 3px; }
.ins-t a.fl { text-decoration: none; margin-left: 2px; }
.ins-t td.ins-names { min-width: 280px; font-size: 14px; }
.ins-see { white-space: nowrap; margin-left: 6px; font-size: 13px; }
.ins-how { margin: 18px 0 0; border: var(--bw-thin) solid var(--ink); padding: 10px 14px; background: var(--paper); color: var(--text); }
.ins-how summary { cursor: pointer; font-weight: 700; }
.ins-how ul { margin: 10px 0 2px; padding-left: 20px; }
.ins-how li { margin: 6px 0; font-size: 15px; max-width: 820px; }
@media (max-width: 760px) {
  .ins-bar { gap: 8px 10px; padding: 10px; }
  .ins-f { flex: 1 1 calc(50% - 5px); }
  .ins-fq, .ins-bar > .ins-f:nth-child(2), .ins-chk { flex: 1 1 100%; }
  .ins-bar .seg { display: grid; grid-template-columns: repeat(4, auto); flex-wrap: nowrap !important; }
  .ins-bar .seg button { padding: 7px 6px; font-size: 13px; min-width: 0; }
  .ins-t td.ins-who, .ins-t td.ins-names { min-width: 0; }
  table.cards.ins-t .ins-who .peer-sub, table.cards.ins-t td:first-child .peer-sub { max-width: none; }
  table.cards.ins-t td.ins-names, table.cards.ins-t td.ins-who { grid-column: 1 / -1; }
  table.cards.ins-t td.ins-own.cx, table.cards.ins-t td.ins-fd.cx { display: block !important; }
}
@media (max-width: 380px) { .ins-bar .seg { grid-template-columns: repeat(2, 1fr); } }
/* ==== insiders-2026 end ==== */

/* ==== backlog-nov28 start ==== (docs/2026-11-28-bigger-features.md) */
/* 1. In 30 seconds */
.g30 { margin: 0 0 var(--s-4); }
.g30 h2.section { margin-top: 0; }
.g30 ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.g30 li { line-height: 1.45; }
.g30 .note { margin: 12px 0 0; }
/* 8. jump links on long company tabs, and the pinned company bar slides away while scrolling down on phones */
.pj { margin: 0 0 14px; }
#panel h2.section[id] { scroll-margin-top: calc(var(--stick, 0px) + 12px); }
@media (max-width: 860px) {
  body.co-compact :is(#co-top, #fund-top) { transition: transform .25s ease; }
  body.co-compact.fab-hide :is(#co-top, #fund-top) { transform: translateY(-100%); }
  body.co-compact.fab-hide { --stick: var(--hdr-h, 0px); }
}
/* ==== backlog-nov28 end ==== */
/* 2. the lesson behind a story */
.nlesson { display: grid; gap: 4px; margin: var(--s-4) 0 0; padding: 14px 16px; text-decoration: none; color: var(--text); }
.nlesson b { font-size: 18px; }
.nlesson:hover b { text-decoration: underline; }
/* ==== backlog-nov28 (more) ==== */
/* 5. "?" lesson links on key numbers, and a lesson's "On <company>'s numbers" card */
.stat .k .qm { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 5px; border: 1px solid currentColor; border-radius: 50%;
  font: 700 11px/1 var(--f-body); text-decoration: none; color: var(--muted); vertical-align: 1px; }
.stat .k .qm:hover { color: var(--text); }
@media (pointer: coarse) { .stat .k .qm { width: 24px; height: 24px; font-size: 12px; } }
.lnum { margin: 12px 0 16px; padding: 14px 16px; }
.lnum dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; margin: 8px 0; }
.lnum dt { margin: 0; } .lnum dd { margin: 0; text-align: right; }
/* 3. Since you last looked (Today), and 9. results dates on watchlist rows */
.td.td-v2 #td-recent { order: 4; }
.td-recent-x { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
#td-recent .wl2-r { grid-template-columns: minmax(0, 1fr); }
.wl2-res { color: var(--text); font-weight: 700; }
#saved-news { margin-bottom: var(--s-5, 32px); }
/* 6. earned badges next to usernames (FOUNDING keeps the orange) */
.fnd.ebadge { border-color: var(--text); color: var(--text); margin-left: 4px; }

/* ==== mrkt-dec26 start ==== (docs/2026-11-28-mrkt-comparison.md) */
/* 1. "A new version is out" bar */
.ver-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3000; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--text); color: var(--paper); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.ver-bar .ver-go { min-height: 44px; }
.ver-bar .ver-x { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer; }
/* 2. Watch page */
.wt-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr); gap: 20px; margin-top: 16px; align-items: start; }
.wt-player { position: relative; aspect-ratio: 16 / 9; background: #000; border: var(--bw) solid var(--ink); border-radius: 12px; overflow: hidden; }
.wt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wt-ch { display: flex; flex-direction: column; gap: 8px; }
.wt-ch a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: var(--bw-thin, 2px) solid var(--ink); border-radius: 12px; color: var(--text); text-decoration: none; background: var(--paper); }
.wt-ch a span { font-size: 14px; color: var(--muted); }
.wt-ch a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.wt-ch a[aria-current="true"] span { color: #dfe6f3; }
.wt-ours { margin-top: 28px; }
.wt-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.wt-v { display: flex; flex-direction: column; gap: 6px; text-align: left; background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; font: inherit; }
.wt-v img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: var(--bw-thin, 2px) solid var(--ink); }
#watch .wt-wait { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; padding: 16px; text-align: center; }
.wt-live { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--red, #d22); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; }
@media (max-width: 760px) { .wt-grid { grid-template-columns: 1fr; } }
/* 4. Market mood */
.mood-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); }
.mood-row { display: flex; align-items: center; gap: 14px; }
.mood-row > div { display: flex; flex-direction: column; gap: 2px; }
.mood-l { font-size: 22px; line-height: 1.1; }
.mood-g { flex: none; color: var(--text); }
#mkt .mk-mood { margin: 16px 0; }
.mood-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 20px 0 8px; }
.mood-top p { margin: 4px 0 0; }
.mood-big { font-size: 40px; line-height: 1; }
.mood-top .data { font-size: 28px; }
.mood-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mood-p { border: var(--bw-thin, 2px) solid var(--ink); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.mood-p p { margin: 8px 0 0; }
.mood-ph { display: flex; justify-content: space-between; gap: 8px; }
.mood-bar { position: relative; height: 10px; border-radius: 6px; margin-top: 8px;
  background: linear-gradient(90deg, #c62828 0 25%, #e8a33d 25% 45%, #9e9e9e 45% 56%, #7cb342 56% 76%, #2e7d32 76% 100%); }
.mood-bar i { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--text); }
.mood-h { width: 100%; height: 160px; display: block; color: var(--text); border: var(--bw-thin, 2px) solid var(--ink); border-radius: 12px; }
#mood .nlesson { margin: 24px 0 8px; max-width: 420px; }
/* 6. Live wire */
.nswitch { margin: 12px 0 4px; }
.wire-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red, #d22); margin-right: 6px; vertical-align: middle; animation: wire-pulse 2s infinite; }
@keyframes wire-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .wire-dot { animation: none; } }
.wire .nfilter { align-items: center; }
.wire-read[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.wire-list { list-style: none; margin: 12px 0 0; padding: 0; }
.wr { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--grey-scribble, rgba(127,127,127,.3)); }
.wr-t { font-size: 13px; color: var(--muted); padding-top: 2px; }
.wr-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wr-src { color: var(--muted); }
.wr-h { color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.35; overflow-wrap: anywhere; }
.wr-h:hover { text-decoration: underline; }
.wr.imp3 .wr-h { font-weight: 800; }
.wr-hot { color: var(--red, #d22); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.wr-nw { color: var(--orange, #e86a1a); }
.wr-new { animation: wr-in .6s ease-out; background: linear-gradient(90deg, rgba(232,106,26,.12), transparent 60%); }
@keyframes wr-in { from { opacity: 0; transform: translateY(-6px); } }
.wr-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.wr-act .chip { min-height: 32px; cursor: pointer; font: inherit; font-size: 13px; }
.wire-mini .wr { grid-template-columns: 64px minmax(0, 1fr); padding: 8px 0; }
.wire-mini .wr-h { font-size: 15px; }
@media (max-width: 600px) { .wr { grid-template-columns: 1fr; gap: 2px; } .wr-act .chip { min-height: 44px; padding-left: 14px; padding-right: 14px; } }
/* 7. Daily recap */
.rc-nav { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0; font-size: 14px; }
.rc-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 28px; align-items: start; }
.rc-s p { font-size: 18px; line-height: 1.55; margin: 6px 0 18px; }
.rc-s mark { background: rgba(232,106,26,.25); color: inherit; padding: 0 2px; border-radius: 3px; }
.rc-moves { border: var(--bw-thin, 2px) solid var(--ink); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.rc-moves ul { list-style: none; margin: 8px 0 0; padding: 0; }
.rc-m { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 56px; gap: 8px; align-items: center; padding: 4px 0; font-size: 14px; }
.rc-b { position: relative; height: 10px; }
.rc-b::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.rc-b i { position: absolute; top: 0; height: 10px; border-radius: 3px; }
.rc-b i.up { left: 50%; background: var(--green, #2e7d32); }
.rc-b i.dn { right: 50%; background: var(--red, #c62828); }
.rc-m b { text-align: right; }
.rc-more ul { list-style: none; padding: 0; margin: 8px 0 0; }
.rc-more li a { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--grey-scribble, rgba(127,127,127,.3)); color: var(--text); text-decoration: none; }
.rc-more li a .small { flex-basis: 100%; }
#td-recap { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
@media (max-width: 760px) { .rc-grid { grid-template-columns: 1fr; } }
/* 8. How markets usually react (calendar rows) */
.ec-react { display: inline-block; margin-top: 6px; font-size: 14px; }
/* ==== mrkt-dec26 end ==== */

/* ==== phase3-dec26 start ==== (docs/2026-11-29-phase3-why-did-it-move.md) */
.mv-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.mv-cv { position: relative; min-height: 300px; border: var(--bw-thin, 2px) solid var(--ink); border-radius: 12px; overflow: hidden; cursor: crosshair; }
/* the chart library draws inside a <table>: undo the site's table styles (sticky first column, padding), as .ce-cv does */
.mv-cv table { width: auto; border-collapse: separate; font-size: inherit; }
.mv-cv th, .mv-cv td, .mv-cv td:first-child { padding: 0; border: 0; white-space: normal; text-align: left; position: static; background: none; z-index: auto; font-family: inherit; min-width: 0; max-width: none; vertical-align: top; }
.mv-cv tr:hover td:first-child { background: none; }
.mv-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; color: var(--muted); }
.mv-key span { display: inline-flex; align-items: center; gap: 5px; }
.mv-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-style: normal; font-size: 10px; font-weight: 700; flex: none; }
.mv-arr { font-style: normal; color: var(--text); font-size: 11px; }
.mv-day { margin: 14px 0; padding: 14px 16px; border: var(--bw-thin, 2px) solid var(--ink); border-radius: 12px; background: var(--paper); }
.mv-day > p { margin: 0; }
.mv-dh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.mv-dh h3 { margin: 0; }
.mv-cmp { font-size: 14px; }
.mv-why { margin: 10px 0 0; line-height: 1.5; }
.mv-evs { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.mv-evs li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.mv-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mv-act .chip { cursor: pointer; font: inherit; font-size: 14px; min-height: 36px; }
.mv-tv { margin: 12px 0; }
@media (max-width: 600px) { .mv-act .chip, .mv-bar .seg button, .mv-go, .mv-adv { min-height: 44px; } }
.mv-ctx { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.mv-ctx > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: var(--bw-thin, 2px) solid var(--ink); border-radius: 12px; background: var(--paper); }
.mv-ctx .display { font-size: 26px; line-height: 1; }
.mv-go { background: none; border: 0; padding: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.mv-list ol { list-style: none; margin: 8px 0 0; padding: 0; }
.mv-list li button { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--grey-scribble, rgba(127,127,127,.3)); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mv-list li button:hover .mv-l2 { text-decoration: underline; }
.mv-l1 { display: flex; gap: 12px; align-items: baseline; }
.mv-l2 { line-height: 1.4; font-size: 15px; }
/* What's helping / What's hurting (Summary tab) */
.hh { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.hh-c { border: var(--bw-thin, 2px) solid var(--ink); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.hh-c h3 { margin: 0 0 6px; }
.hh-up h3::before { content: "▲ "; color: var(--green, #2e7d32); }
.hh-down h3::before { content: "▼ "; color: var(--red, #c62828); }
.hh-c ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.hh-c a { color: var(--text); }
.hh-n { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .hh { grid-template-columns: 1fr; } }
/* ==== phase3-dec26 end ==== */

/* ==== phase4-dec26 start ==== (docs/2026-11-29-phase4-alerts-ask-week-help.md) */
/* Ask page: the bird panel, full page */
.ask-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; margin-top: 16px; }
.ask-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 8px; }
.ask-side .mk-kick { margin: 10px 0 0; }
.ask-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.ask-list li { display: flex; align-items: stretch; border: var(--bw-thin) solid var(--ink); background: var(--paper); }
.ask-c { flex: 1; min-height: 44px; text-align: left; background: none; border: 0; padding: 6px 8px; cursor: pointer; font: 14px/1.3 var(--f-body); color: inherit; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.ask-c[aria-current="true"] { background: var(--tint); box-shadow: inset 4px 0 0 var(--orange); }
.ask-del { min-width: 44px; background: none; border: 0; border-left: 1px solid var(--grey-scribble); cursor: pointer; font-size: 18px; color: var(--muted); }
.ask-del:hover { color: var(--red); }
.ask-list .ask-none { border: 0; background: none; padding: 4px 0; }
.ask-pre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.ask-pre[hidden] { display: none; }
.ask-pre .chip { display: block; width: 100%; min-height: 44px; margin: 6px 0 0; text-align: left; cursor: pointer; background: var(--tint); font: 14px/1.3 var(--f-body); padding: 8px 10px; }
.ask-pre .chip:hover { background: var(--amber); }
.bird-panel.bird-page { position: static; width: auto; height: auto; min-height: 60vh; z-index: auto; box-shadow: 6px 6px 0 var(--shadow-c); border: var(--bw) solid var(--ink); }
.bird-page .bird-body { min-height: 40vh; max-height: 65vh; }
.bird-page .x, .bird-page .bird-intro + .bird-sug { display: none; }
body.ask-on .bird-fab { display: none !important; }   /* phones make it a round button with !important */
.bird-mic { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); border: var(--bw-thin) solid var(--ink); cursor: pointer; color: var(--ink); }
.bird-mic.on { background: var(--orange); color: var(--on-fill); animation: birdhop 1.2s infinite ease-in-out; }
@media (prefers-reduced-motion: reduce) { .bird-mic.on { animation: none; } }
@media (max-width: 900px) { .ask-pre { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ask-grid { grid-template-columns: 1fr; }
  .ask-side { position: static; order: 2; }
  .bird-panel.bird-page { position: static; inset: auto; width: auto; height: auto; min-height: 50vh; border: var(--bw) solid var(--ink); }
}
/* the earnings week grid */
.cw-seg { margin-left: auto; }
.cw-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.cw-day { border: var(--bw-thin) solid var(--ink); background: var(--paper); padding: 8px; min-width: 0; }
.cw-day.today { box-shadow: inset 0 4px 0 var(--orange); }
.cw-day.past { opacity: .72; }
.cw-day h3 { font-size: 18px; margin: 0 0 6px; }
.cw-s h4 { font: 600 12px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 6px; }
.cw-bs { display: flex; flex-wrap: wrap; gap: 4px; }
.cw-b { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 2px 6px 2px 2px; border: 1px solid var(--grey-scribble); background: var(--canvas); text-decoration: none; color: inherit; font-size: 13px; }
.cw-b:hover { border-color: var(--ink); }
.cw-b.mine { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.cw-l { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font: 700 13px/1 var(--f-body); color: #fff; background: hsl(var(--h) 55% 38%); }
.cw-more summary { cursor: pointer; font-size: 13px; margin: 6px 0 4px; min-height: 32px; display: flex; align-items: center; }
@media (max-width: 1100px) { .cw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cw-grid { grid-template-columns: 1fr; } .cw-b, .cw-more summary { min-height: 44px; } .cw-seg { margin-left: 0; } }
/* what can move it this week */
.wk { border: var(--bw-thin) solid var(--ink); background: var(--paper); padding: 12px 14px; margin: 16px 0; }
.wk[hidden] { display: none; }
.wk h2 { margin: 0 0 8px; }
.wk h3 { margin: 12px 0 4px; }
.wk-l { list-style: none; margin: 0; padding: 0; }
.wk-l li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--grey-scribble); }
.wk-l li:first-child { border-top: 0; }
.wk-r b, .wk-d b { color: var(--orange); }
@media (max-width: 640px) { .wk-l li { grid-template-columns: 1fr; gap: 2px; } }
/* topic alerts */
.tp { margin-top: 18px; padding-top: 14px; border-top: var(--bw-thin) solid var(--ink); }
.tp h3 { margin: 0 0 4px; }
.tp-w { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.tp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-row input { flex: 1; min-width: 200px; min-height: 44px; font: 16px var(--f-body); padding: 6px 8px; border: var(--bw-thin) solid var(--ink); }
.tp-row .btn { min-height: 44px; }
/* help */
.help-q input { width: 100%; max-width: 560px; min-height: 44px; font: 16px var(--f-body); padding: 8px 10px; border: var(--bw-thin) solid var(--ink); margin: 14px 0 6px; }
.help-g { margin: 18px 0; }
.help-g details { border-top: 1px solid var(--grey-scribble); }
.help-g summary { cursor: pointer; padding: 10px 0; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.help-g details p { margin: 0 0 12px; max-width: 70ch; }
/* get set up (Today) */
.td-setup { border: var(--bw) solid var(--ink); background: var(--tint); padding: 10px 14px; margin: 14px 0; }
.td-setup .mk-sh { align-items: center; gap: 10px; }
.td-setup h2 { margin: 0; }
.td-setup-x { margin-left: auto; min-width: 44px; min-height: 44px; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
.td-setup ol { margin: 6px 0 0; padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.td-setup li { min-height: 44px; display: flex; align-items: center; }
.td-setup li.done { color: var(--muted); }
/* ==== phase4-dec26 end ==== */

/* ==== conews-dec26 start ==== (docs/superpowers/specs/2026-11-29-company-news-alerts-design.md) */
.cn-l { list-style: none; margin: 0; padding: 0; }
.cn-i { padding: 10px 8px; border-top: 1px solid var(--grey-scribble); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.cn-i:first-child { border-top: 0; }
.cn-i.hl { background: var(--tint); box-shadow: inset 4px 0 0 var(--orange); }
.cn-m { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.cn-t { font-weight: 600; overflow-wrap: anywhere; }
.cn-x { min-height: 44px; cursor: pointer; }
.cn-bell { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.cn-bell[aria-pressed="true"] { background: var(--tint); }
@media (max-width: 640px) { .cn-i { grid-template-columns: 1fr; } .cn-x { justify-self: start; } }
/* ==== conews-dec26 end ==== */
/* ==== phase5-dec26 start ==== (docs/2026-11-29-phase5.md) */
.ai .card { margin: 14px 0; }
.ai-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ai-row code { font-size: 16px; padding: 8px 10px; border: var(--bw-thin) solid var(--ink); background: var(--paper); overflow-wrap: anywhere; }
.ai-row .btn { min-height: 44px; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ai-grid .card { margin: 0; }
.ai-grid ol { padding-left: 20px; }
.ai-grid code { overflow-wrap: anywhere; }
.ai-ex li { margin: 4px 0; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }
.sm-l { list-style: none; margin: 0; padding: 0; }
.sm-l li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--grey-scribble); }
.sm-l li:first-child { border-top: 0; }
.sm-sec { display: flex; flex-direction: column; gap: 6px; }
.sm-row { display: grid; grid-template-columns: 170px 1fr 90px 200px; gap: 10px; align-items: center; }
.sm-bar { height: 14px; background: var(--tint); display: block; }
.sm-bar i { display: block; height: 100%; }
.sm-bar i.up { background: var(--green, #2e7d32); }
.sm-bar i.down { background: var(--red, #c62828); }
.sm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sm-co { padding-left: 22px; }
.sm-co li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; padding: 4px 0; min-height: 44px; align-items: center; }
.sm-co li .small { grid-column: 2 / -1; }
#smart .card { margin: 14px 0; }
@media (max-width: 760px) {
  .sm-l li { grid-template-columns: 1fr; gap: 2px; }
  .sm-row { grid-template-columns: 1fr auto; } .sm-row .sm-bar { grid-column: 1 / -1; order: 3; } .sm-row .small { grid-column: 1 / -1; order: 4; }
  .sm-two { grid-template-columns: 1fr; }
}
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 14px 0; }
.rt { margin: 0; }
.rt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rt-h h2 { margin: 0; }
.rt-v { font-size: 32px; margin: 6px 0; }
.rt-l { list-style: none; margin: 0 0 8px; padding: 0; }
.rt-l li { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 4px 0; border-top: 1px solid var(--grey-scribble); font-size: 14px; }
.rt-tb { border-left: 4px solid var(--orange); padding: 6px 10px; background: var(--tint); }
.eco-c { margin-top: 10px; }
.eco-c .seg button { min-height: 44px; }
.rp .seg .btn[aria-pressed="true"] { background: var(--navy); color: var(--on-fill); }
.rp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 12px 0 6px; }
.rp-top > div:first-child { display: flex; flex-direction: column; }
.rp-px { font-size: 32px; }
.rp-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-ctl .btn, .rp-ch .btn, .rp .seg .btn { min-height: 44px; }
.rp-chart { border: var(--bw-thin) solid var(--ink); background: var(--paper); padding: 6px; }
.rp-svg { width: 100%; height: auto; display: block; }
.rp-grid { stroke: var(--grey-scribble); stroke-width: 1; }
.rp-ax { font: 12px var(--f-body); fill: var(--muted); }
.rp-line { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linejoin: round; }
.rp-dot { fill: var(--navy); stroke: var(--paper); stroke-width: 2; }
.rp-now { fill: var(--orange); stroke: var(--ink); stroke-width: 2; }
.rp-ev .card { margin: 12px 0; }
.rp-t { font-size: 18px; margin: 6px 0; }
.rp-ch { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-ch .btn[aria-pressed="true"] { background: var(--orange); color: var(--on-fill); }
.rp-out { margin-top: 10px; }
.lh-replay { display: flex; flex-direction: column; gap: 4px; margin: 14px 0; text-decoration: none; color: inherit; border-left: 6px solid var(--orange); }
.lh-replay b { font-size: 22px; }
/* ==== phase5-dec26 end ==== */

/* ==== mrkt-left-dec26 start ==== (docs/superpowers/specs/2026-11-29-mrkt-leftovers-design.md) */
.wr-mvh:empty { display: none; }
.wr-mv { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: help; }
.wr-mv:not(.up):not(.dn) { color: var(--muted); }
.cn-i .wr-mvh { grid-column: 1; }
#saved-wire { margin-bottom: 28px; }
/* ==== mrkt-left-dec26 end ==== */
/* ==== four-more-dec26 start ==== */
.ask-sync { display: flex; gap: 8px; align-items: center; margin-top: 14px; cursor: pointer; }
#ask-sync-n { margin: 6px 0 0; }
.rp-pick { flex-wrap: wrap; gap: 10px; }
.rp-any { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rp-any input { width: 9em; text-transform: uppercase; }
.mcp-warn { border: 2px solid var(--down, #c0392b); border-radius: 10px; padding: 10px 12px; }
/* ==== four-more-dec26 end ==== */
