/* ============================================================
   Portside — editorial-finance design system
   ============================================================ */

/* Palette (11 Oct 2026): white page, neutral charcoal ink and soft greys, and the ORIGINAL terracotta accent from
   before the 6 Oct redesign (user: "the original main colour was better ... try that with the white background";
   claret, deep teal and ink navy were tried and dropped). Link text uses the darker terracotta for legibility on white.
   Market green/red tuned for financial data. Light first, then dark (a warm near-black). */
:root,
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F6F7F8;
  --surface-3: #ECEDF0;
  --text: #17181C;
  --text-soft: #363840;
  --muted: #646872;
  --border: #E5E7EB;
  --border-strong: #CFD3DA;
  --accent: #E0603F;
  --accent-ink: #B6482B;
  --accent-wash: #FBEAE3;
  /* small text in the accent (10 Nov 2026, contrast): the darker terracotta - 5.3:1 on white, where #E0603F is 3.5:1 */
  --accent-text: #B6482B;
  /* the header's compass (index.html .brand__mark): the app icon's navy */
  --brand-point: #14213D;
  --up: #0A7D48;
  --up-wash: #E4F4EB;
  --down: #C42B3D;
  --down-wash: #FBEAEC;
  --link: #B6482B;
  --mark: #FCE9A8;
  --mark-ink: #17202E;
  --navy: #191A1E;
  --navy-2: #24262C;
  --shadow: 0 1px 2px rgba(20,22,28,.05), 0 6px 20px rgba(20,22,28,.06);
  --series-1: #E0603F; --series-2: #2A6FD6; --series-3: #0E9370; --series-4: #8E55D0;
  --series-5: #D2477A; --series-6: #1A86A8; --series-7: #B07D00; --series-8: #6A8A12;
  --shadow-sm: 0 1px 2px rgba(20,22,28,.05);
  --font-ui: "IBM Plex Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #14110F;
  --surface: #1C1816;
  --surface-2: #24201D;
  --surface-3: #2E2925;
  --text: #EFEAE5;
  --text-soft: #CFC7C0;
  --muted: #9C928A;
  --border: #2F2925;
  --border-strong: #413933;
  --accent: #E0603F;
  --accent-ink: #F2C6B6;
  --accent-wash: #33221D;
  --accent-text: #E0603F;   /* (on the dark surfaces the usual accent already reads at ~5:1) */
  --brand-point: #E4DED8;
  --up: #2FBF77;
  --up-wash: #11281E;
  --down: #F0626E;
  --down-wash: #2E1A1F;
  --link: #F0A58E;
  --mark: #6E5A22;
  --mark-ink: #FBF3D9;
  --navy: #0D0B0A;
  --navy-2: #171412;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  --series-1: #E0603F; --series-2: #3D80E6; --series-3: #16A07B; --series-4: #9A66E0;
  --series-5: #D9517F; --series-6: #2397BA; --series-7: #B88300; --series-8: #7E9A1C;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
  font-feature-settings: "kern", "liga"; text-rendering: optimizeLegibility;
  letter-spacing: .002em;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3, h4 { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.15; color: var(--text); margin: 0; letter-spacing: -.015em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
}
.topbar__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex;
}
.topbar__right { margin-left: auto; display: flex; align-items: center; flex: 0 0 auto; }

/* global search — sits after the tabs, does NOT grow, so the right group is pushed hard to the edge */
.topbar__search { position: relative; flex: 0 1 327px; min-width: 132px; }
.topbar__search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
#globalSearch {
  width: 100%; padding: 9px 12px 9px 34px;
  border: 1px solid var(--border-strong); color: var(--text);
  font: inherit; font-size: .9rem; transition: background .18s ease, border-color .18s ease;
  border-radius: 8px; background: var(--surface-2); border-color: var(--border);
  height: 36px; padding-top: 0; padding-bottom: 0;
}
#globalSearch::placeholder { color: var(--muted); }
#globalSearch:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
#globalSearch::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  max-height: 360px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow);
}
.search-results li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .88rem;
}
.search-results li:hover, .search-results li[aria-selected="true"] { background: var(--surface-2); }
.search-results .sr-badge {
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 5px; background: var(--surface-3); color: var(--muted); white-space: nowrap;
}
.search-results .sr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results .sr-name b { font-weight: 600; }
.search-results .sr-name span { color: var(--muted); }
.search-results .sr-chg { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.search-results .sr-empty { display: block; padding: 10px; color: var(--muted); cursor: default; }
.search-results .sr-empty:hover { background: none; }
.search-results .sr-head { display: flex; justify-content: space-between; padding: 5px 10px 3px; cursor: default; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.search-results .sr-head:hover { background: none; }
.search-results .sr-clear { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--accent-ink); cursor: pointer; font-size: .66rem; }
.search-results .sr-clear:hover { text-decoration: underline; }
.search-results li.sr-recent { padding: 7px 10px; gap: 8px; font-size: .8rem; }
.search-results li.sr-recent .sr-chg { font-size: .76rem; }
.search-results .sr-badge--recent { display: inline-flex; padding: 3px; background: none; color: var(--muted); }
.search-results .sr-badge--recent svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* (8 Nov 2026; the dial's four points since 10 Nov) the mark is the app icon's compass (app/scripts/make-icons.py dial), in --brand-point so it turns pale in
   dark mode. (10 Nov 2026, user: "make the icon size on the website more in line with the 'portside' title") its size
   follows the wordmark's: --brand-size is the word's font size and the mark is 1.08 times it (the points reach just past
   the capitals - it was a fixed 40px, over twice their height), centred on the capitals: Newsreader's line box puts
   their middle .12em above the box's own middle. Breakpoints change --brand-size only */
.brand { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; --brand-size: 1.55rem; }
.brand__mark { width: calc(var(--brand-size) * 1.08); height: calc(var(--brand-size) * 1.08); flex: 0 0 auto;
               transform: translateY(calc(var(--brand-size) * -.12)); }
.brand__word { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 600; font-size: var(--brand-size); color: var(--text); }

.mainnav { display: flex; flex: 0 0 auto; }
.mainnav a {
  font-weight: 500; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.mainnav a.is-active { color: var(--accent-ink); background: var(--accent-wash); }
:root[data-theme="dark"] .mainnav a.is-active { color: var(--accent); }

/* Theme slider */
.theme-slider { background: none; border: 0; padding: 0; cursor: pointer; }
.theme-slider__track {
  position: relative; display: inline-flex; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  transition: background .2s ease;
}
.theme-slider__icon { color: var(--muted); display: inline-flex; z-index: 1; }
.theme-slider__icon svg { width: 100%; height: 100%; }
.theme-slider__icon--sun { color: #C9862B; }
.theme-slider__icon--moon { color: #8A8A92; }
.theme-slider__thumb {
  position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.4,.1,.2,1);
}
:root[data-theme="dark"] .theme-slider__thumb { transform: translateX(32px); }

/* Location picker — flag + dropdown arrow only (name kept in aria-label/title) */
.locpicker { position: relative; }
.locpicker__btn {
  display: flex; align-items: center; gap: 6px; line-height: 1;
  cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: background .18s ease;
}
.locpicker__btn:hover { background: var(--surface-3); }
.locpicker__btn #locFlag { display: inline-flex; align-items: center; }
.locpicker__btn .chev { width: 14px; height: 14px; color: var(--muted); }
.flag { width: 21px; height: 15px; display: block; object-fit: cover; flex: 0 0 auto; }
.locpicker__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  width: 264px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow);
}
.locpicker__search {
  width: 100%; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: .88rem;
}
.locpicker__search::placeholder { color: var(--muted); }
.locpicker__search:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.locpicker__list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.locpicker__list li {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px;
  cursor: pointer; font-size: .9rem;
}
.locpicker__list li:hover,
.locpicker__list li[aria-selected="true"] { background: var(--surface-2); }
.locpicker__list li span { flex: 1; }
.locpicker__list .loc-empty { color: var(--muted); cursor: default; }
.locpicker__list .loc-empty:hover { background: none; }

/* ---------- Ticker ---------- */
.tickerbar { overflow: hidden; }
.tickerbar__track {
  display: flex; white-space: nowrap;
  width: max-content; animation: ticker 92s linear infinite;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: baseline; gap: 8px; }
.tick__px { font-variant-numeric: tabular-nums; }
.tick__chg { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Layout ---------- */
.view { max-width: 1240px; margin: 0 auto; padding: 30px 22px 70px; }
.sitefoot { max-width: 1240px; margin: 0 auto; padding: 24px 22px 40px; color: var(--muted); font-size: .82rem; }
/* (4 Dec 2026, page speed) the footer waits for the page: drawn under the still-empty <main>, it was pushed down
   when the page came in - PageSpeed's layout shift (CLS 0.124 on a stock page) */
main.view:empty ~ .sitefoot { visibility: hidden; }

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.i18n-note { color: var(--accent-ink); font-weight: 500; }
:root[data-theme="dark"] .i18n-note { color: var(--accent); }
.eyebrow { text-transform: uppercase; font-weight: 600; color: var(--accent-ink); }
:root[data-theme="dark"] .eyebrow { color: var(--accent); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.section-title { margin-bottom: 14px; display: flex; align-items: center; }
.section-title .rule { flex: 1; height: 1px; background: var(--border); }

.pill-btn {
  padding: 7px 13px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-soft); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .16s ease;
}
.pill-btn:hover { border-color: var(--accent); color: var(--text); }

.flash-up { animation: flashUp .6s ease; }
.flash-down { animation: flashDown .6s ease; }
@keyframes flashUp { 0% { background: var(--up-wash); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: var(--down-wash); } 100% { background: transparent; } }

/* ---------- Markets home ---------- */
.markets-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
.markets-grid--flush { margin-top: -8px; }
.lead { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }   /* (shrinkable column: fits phones) */
/* the home page's left column keeps its natural height: stretched to the rail's height, its grid spread the extra
   space between its cards and Smart Money moved whenever the Week Ahead card (aligned beside it) did */
.markets-grid > .lead { align-self: start; }
.lead__hero {
  position: relative; border-radius: 9px; overflow: hidden;
  background: linear-gradient(135deg, #18191D, #22242A 60%, #33241F);
  color: #F3EEE8; min-height: 340px; display: flex; align-items: stretch;
  cursor: pointer; transition: border-color .16s ease, transform .16s ease;
}
.lead__hero:hover { border-color: var(--accent); }
.lead__hero--wait { cursor: default; }                     /* (the hero's place, kept while the Originals come - app.js) */
.lead__hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.lead__hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(100deg, rgba(6,12,24,.68) 0%, rgba(6,12,24,.34) 40%, rgba(6,12,24,0) 100%),
    linear-gradient(0deg, rgba(6,12,24,.5) 0%, rgba(6,12,24,0) 52%),
    radial-gradient(120% 90% at 84% 0%, rgba(224,96,63,.26), transparent 55%);
}
.lead__hero .inner {
  position: relative; z-index: 1; padding: 34px 36px; width: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  text-shadow: 0 1px 14px rgba(4,9,18,.72), 0 1px 3px rgba(4,9,18,.5);
}
.lead__hero .hero-body { display: grid; gap: 16px; }
.lead__hero h2 {
  color: #fff; font-size: clamp(1.85rem, 3.8vw, 2.9rem); line-height: 1.14;
  max-width: 42ch; margin: 0;
}
.lead__hero .meta { font-size: .82rem; opacity: .85; margin: 0; letter-spacing: .04em; text-transform: uppercase; }
.meta .ago-cap { text-transform: none; }
.lead__hero .src { margin-top: 2px; }
.lead__hero p { max-width: 60ch; opacity: .92; margin: 10px 0 0; }
/* (audit, 26 Oct 2026: dark ink on the dark theme's highlight read at 2.5:1) - each theme's own ink */
mark, .mark { background: var(--mark); color: var(--mark-ink); padding: 0 .18em; border-radius: 2px; box-decoration-break: clone; }
.lead__hero .mark { background: var(--accent); color: #fff; }
/* blog variant of the hero — a link into #/blog rather than an outbound story */
.lead__hero--blog .meta { opacity: 1; font-weight: 700; letter-spacing: .07em; }
.lead__hero--blog .src { color: #F3EEE8; opacity: .9; font-weight: 600; }
.live-dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;
  background: var(--accent); vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(224, 96, 63, .7); animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 96, 63, .7); }
  70% { box-shadow: 0 0 0 7px rgba(224, 96, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 96, 63, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- Live Markets Blog page ---------- */
.blog-list { display: grid; gap: 34px; max-width: 880px; }
.blog-post {
  border-top: 1px solid var(--border); padding-top: 26px;
}
.blog-post:first-child { border-top: 0; padding-top: 4px; }
/* the standalone Portside Originals page (#/feature/<id>) — no list context */
.blog-post--full { border-top: 0; padding-top: 14px; max-width: 760px; }
.blog-post--full .blog-post__title { font-size: 2rem; }
.blog-post__main { min-width: 0; }
.blog-post__time { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .74rem; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.blog-post__title { font-size: 1.55rem; line-height: 1.2; margin: 8px 0 12px; }
.blog-post__body p { margin: 0 0 12px; color: var(--text-soft); max-width: 64ch; }
.blog-post__body p:last-child { margin-bottom: 0; }
.blog-post__insts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.blog-inst {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 5px 11px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface-2); font-size: .78rem; white-space: nowrap;
}
.blog-inst__name { font-weight: 600; }
.blog-inst__px { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.blog-inst__chg { font-variant-numeric: tabular-nums; font-weight: 600; }
.blog-inst--macro { border-style: dashed; }
.blog-post__src { margin-top: 14px; font-size: .78rem; color: var(--muted); font-style: italic; }
.blog-empty { color: var(--muted); max-width: 60ch; }

/* market-close recap post */
.blog-post--close .blog-post__main, .blog-post--recap .blog-post__main, .blog-post--weekend .blog-post__main,
.blog-post--ratedecision .blog-post__main { border-left: 3px solid var(--accent); padding-left: 18px; }
.cl-badge {
  display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 5px;
  background: var(--accent); color: #fff; font-family: var(--font-ui);
  font-size: .64rem; font-weight: 700; letter-spacing: .06em; vertical-align: 1px;
}
.cl-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 4px; }
.cl-idx { font-size: .82rem; }
.cl-idx b { font-weight: 600; }
.cl-idx .num { font-variant-numeric: tabular-nums; }
.cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 18px; }
.cl-movers h4, .cl-rel h4 {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.cl-movers ol { margin: 0; padding: 0; list-style: none; }
.cl-movers li {
  display: flex; justify-content: space-between; gap: 10px; padding: 4px 0;
  font-size: .84rem; border-bottom: 1px solid var(--border);
}
.cl-movers li:last-child { border-bottom: 0; }
.cl-mv-name em { color: var(--muted); font-style: normal; font-size: .78rem; margin-left: 4px; }
.cl-movers .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cl-rel { margin-top: 16px; }
.cl-rel ul { margin: 0; padding-left: 18px; }
.cl-rel li { font-size: .82rem; color: var(--text-soft); margin-bottom: 4px; }
.recap-idx-table { margin: 4px 0 18px; }
.recap-idx-table .recap-idx__region th {
  text-align: left; font-family: var(--font-ui); font-size: .66rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 12px 6px 4px; border-bottom: 1px solid var(--border);
}
.recap-idx-table .recap-idx__region:first-child th { padding-top: 8px; }
@media (max-width: 560px) { .cl-grid { grid-template-columns: 1fr; } }

.secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story {
  padding: 16px; cursor: pointer; transition: border-color .16s ease, transform .16s ease;
}
.story:hover { border-color: var(--accent); transform: translateY(-2px); }
.story .meta { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.story h3 { font-size: 1.16rem; margin: 7px 0 0; }
.story .src { margin-top: 10px; font-size: .78rem; color: var(--accent-ink); font-weight: 600; }
:root[data-theme="dark"] .story .src { color: var(--accent); }

/* "Portside Originals" feature articles — home-page teaser card + full post */
.feature-badge {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  background: var(--accent); color: #fff; font-family: var(--font-ui);
  font-size: .58rem; font-weight: 700; letter-spacing: .06em; vertical-align: 1px;
  text-transform: uppercase;
}
.story--feature { padding: 22px; }
.story--feature .meta { font-size: .58rem; font-weight: 700; letter-spacing: .06em; }
.feature-ago { font-size: .7rem; font-weight: 600; letter-spacing: .05em; }
.blog-post--feature .blog-post__main { border-left: 3px solid var(--accent); padding-left: 18px; }
.feature-chart { margin: 18px 0; }
.feature-chart .linechart, .feature-chart .barchart, .feature-chart .dotplot { display: block; width: 640px; max-width: 100%; height: auto; }
.feature-chart figcaption { margin-top: 6px; font-size: .76rem; color: var(--muted); }
/* the chart's takeaway, as a sentence above it (FT review, 22 Oct 2026) */
.feature-chart__title { font-weight: 700; font-size: .98rem; line-height: 1.3; color: var(--text); margin: 0 0 6px; max-width: 640px; }
/* one-sentence standfirst under an Original's headline */
.feature-standfirst { font-size: 1.12rem; line-height: 1.45; color: var(--text-soft); margin: -4px 0 16px; max-width: 64ch; }
.feature-pie__body { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.feature-pie .donut { flex: 0 0 auto; width: 220px; height: 220px; margin: 0; }
.feature-pie .pie-legend { flex: 0 1 430px; max-width: 430px; margin: 0; }   /* kept narrow so the £bn / % columns sit close to the labels */
.feature-pie .pie-legend em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; }
.feature-pie .pie-legend em + b { margin-left: 12px; min-width: 2.6em; text-align: right; }
.feature-img { margin: 18px 0; max-width: 64ch; }
.feature-img img { display: block; width: auto; height: auto; max-width: 100%; max-height: 320px; border-radius: 8px; }
.feature-img figcaption { margin-top: 6px; font-size: .76rem; color: var(--muted); }
/* a photo opted in with `wide: true` fills the article text's own width (the figure is already
   capped at 64ch, matching the paragraphs) instead of the default 320px-tall natural-size cap */
.feature-img--wide img { width: 100%; max-height: none; }
/* the photo that leads an Original, under the standfirst (FT review, 25 Oct 2026): the full text width; a
   tall photo is trimmed to 440px, keeping its upper part where faces usually are */
.feature-img--lead { margin: 4px 0 20px; }
.feature-img--lead img { width: 100%; max-height: 440px; object-fit: cover; object-position: 50% 30%; }
.feature-img__credit { opacity: .8; margin-left: 4px; }
.feature-img__credit::before { content: "Photo: "; }
.feature-img__credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); }
.feature-polls { margin: 18px 0; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.feature-polls__head { font-size: .8rem; font-weight: 600; color: var(--text-soft); margin: 0 0 12px; }
.feature-polls__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.feature-polls__table { width: 100%; border-collapse: collapse; }
.feature-polls__table th {
  text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 0 6px 6px; border-bottom: 1px solid var(--border-strong); font-weight: 600;
}
.feature-polls__table td { padding: 6px; font-size: .82rem; border-bottom: 1px solid var(--border); }
.feature-polls__table th.num, .feature-polls__table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.feature-polls .feature-polls__note {
  display: flex; gap: .3em; margin: 8px 0 0; max-width: none; font-size: .74rem; line-height: 1.4; color: var(--muted);
}
@media (max-width: 560px) { .feature-polls__grid { grid-template-columns: 1fr; } }
.feature-table { margin: 18px 0; }
.feature-table__table { width: 100%; max-width: 64ch; border-collapse: collapse; }
.feature-table__table th {
  text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 0 6px 6px; border-bottom: 1px solid var(--border-strong); font-weight: 600;
}
.feature-table__table td { padding: 6px; font-size: .82rem; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.feature-table__table th.num, .feature-table__table td.num { text-align: right; }
.feature-table__table tr.is-subject td:first-child { font-weight: 600; }
/* a table's note reads as a chart's does (17 Nov 2026: it had no rule of its own and came out at body-text size) */
.feature-table figcaption { margin-top: 6px; font-size: .76rem; color: var(--muted); max-width: 64ch; }

.rail { display: grid; gap: 22px; align-content: start; }

.quote-card { padding: 16px; }
.quote-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.quote-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: 10px; border-bottom: 1px solid var(--border);
}
.quote-row:last-child { border-bottom: 0; }
.quote-row .qname { font-weight: 600; font-size: .9rem; }
.quote-row .qsub { color: var(--muted); font-size: .76rem; }
.quote-row .qpx { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.quote-row .qchg {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: .85rem;
  display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; min-width: 92px;
}
.arrow-badge { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto; }

/* Top Winners & Losers (home page) */
.movers-card { padding: 16px; }
.movers-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.movers-head h3 { font-size: 1.05rem; margin: 0; }
.movers-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.movers-filters .select { font-size: .8rem; padding: 5px 9px; }
.movers-filters .select:disabled { opacity: .45; cursor: not-allowed; }
/* Winners + losers share one table (a rank's winner and loser are in the same
   <tr>) so the two sides can never drift out of vertical alignment. */
.movers-table { width: 100%; margin-top: 14px; }
.movers-table th, .movers-table td { padding: 7px 6px; font-size: .8rem; }
.movers-table td:first-child, .movers-table td:nth-child(4),
.movers-table th:first-child, .movers-table th:nth-child(4) { text-align: left; }
.movers-table td:nth-child(4), .movers-table th:nth-child(4) { padding-left: 16px; }
.movers-table .movers-group {
  text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); border-bottom: none; padding-bottom: 2px;
}
.movers-table .h-name span { display: block; font-size: .72rem; }
.movers-empty { color: var(--muted); font-size: .84rem; margin: 6px 0 0; }
.arrow-badge svg { width: 11px; height: 11px; }
.arrow-badge.up { background: var(--up-wash); color: var(--up); }
.arrow-badge.down { background: var(--down-wash); color: var(--down); }
.spark { width: 66px; height: 24px; }

.originals-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 8px; border-bottom: 1px solid var(--border); text-decoration: none;
  color: var(--text); transition: background .15s ease;
}

/* ---------- News archive ---------- */
.news-list { padding: 4px 10px; overflow: hidden; /* clip the fill to the card's rounded corners */ }
.news-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text);
  transition: background .15s ease;
}
.news-row:hover { background: var(--surface-2); }
.news-row:last-child { border-bottom: 0; }
.news-row__date { font-size: .74rem; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.news-row__excerpt { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.news-row__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.news-tag {
  font-size: .68rem; border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 2px 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
.news-empty { color: var(--muted); font-size: .84rem; padding: 12px 8px; }

/* News > Notes & reports: the notes library (26 Oct 2026) */
a.wl-tab { text-decoration: none; }
.lib-filters .lib-q .textinput { min-width: 230px; }
.lib-count { font-size: .8rem; margin: -6px 0 10px; }
.news-row.lib-row { grid-template-columns: 46px 1fr auto; align-items: start; }
.lib-row__ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 46px; margin-top: 2px;
  border: 1px solid var(--border-strong); border-radius: 4px; font-size: .62rem; font-weight: 700; letter-spacing: .06em;
  color: var(--accent-ink); background: var(--surface-2); position: relative; }
.lib-row__ic::after { content: ""; position: absolute; top: -1px; right: -1px; border-width: 0 9px 9px 0; border-style: solid;
  border-color: var(--surface) var(--surface) var(--border-strong) var(--border-strong); }
.lib-row__body { min-width: 0; }
.lib-row__kicker { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-ink); margin-bottom: 3px; }
.lib-row__open { align-self: center; font-size: .8rem; font-weight: 600; color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.lib-row:hover .lib-row__open { border-color: var(--accent); color: var(--accent-ink); }
/* a company or sector note below Plus (user, 28 Oct 2026): listed, its button the lock */
.lib-row--locked .lib-row__open { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.lib-row--locked .lib-row__open .plan-pill { margin-left: 0; }
.lib-row--locked .lib-row__ic { color: var(--muted); }
@media (max-width: 640px) {
  .lib-row__open { display: none; }
  .news-row.lib-row--locked { grid-template-columns: 38px 1fr auto; }
  .lib-row--locked .lib-row__open { display: inline-flex; }
  .lib-filters .lib-q, .lib-filters .lib-q .textinput { width: 100%; min-width: 0; }
}

/* Filings rows: title on the left, the type badge + time anchored together
   on the right (overrides .news-row's own [date][content] grid, which the
   News archive still uses unchanged). */
.news-row--filing { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.news-row--filing .news-row__title { flex: 1 1 auto; min-width: 0; }
.news-row--filing .news-row__meta {
  flex: none; display: flex; align-items: center; justify-content: flex-end;
  gap: 10px;    /* its two children are fixed-width, so the block is the same width on every row */
}
.news-row--filing .news-row__date { padding-top: 0; min-width: 3.1em; text-align: right; font-variant-numeric: tabular-nums; }
/* fixed-width pill + time so the filing-type bubbles line up down the right edge whatever the label or time */
.news-row--filing .news-tag--filing { box-sizing: border-box; width: 5.2em; padding-left: 0; padding-right: 0; text-align: center; }
.news-tag--filing { color: var(--accent-ink); }
/* day heading in the Filings feed — same look as the Calendar tab's day bars (.cal .daybar td) */
.news-day {
  /* negative side margins cancel the list's 10px padding so the fill runs edge to edge of the white card;
     the 10px side padding lines the day text up with the row titles */
  margin: 0 -10px; padding: 11px 10px; font-family: "Newsreader", Georgia, serif; font-size: 1rem; font-weight: 600;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.news-list > .news-day:first-child { margin-top: -4px; }
.news-row--last-of-day { border-bottom: 0; }   /* the row above a day heading: the heading's own fill is the divider */   /* ...and the list's 4px top padding */
:root[data-theme="dark"] .news-tag--filing { color: var(--accent); }

.newsfeed .nf-item {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s ease;
}
.newsfeed .nf-item:hover { background: var(--surface-2); }
.newsfeed .nf-item:last-child { border-bottom: 0; }
.newsfeed .nf-item--static { cursor: default; }
.newsfeed .nf-item--static:hover { background: none; }
.newsfeed .nf-item--inline { display: flex; align-items: baseline; gap: 10px; }
.newsfeed .nf-item--inline .nf-head { flex: 1 1 auto; min-width: 0; }
.nf-time {
  flex: none; width: 54px; font-size: .74rem; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.nf-head { font-size: .92rem; font-weight: 500; }
.nf-src { font-size: .74rem; color: var(--muted); margin-top: 3px; }
.nf-src b { color: var(--accent-ink); font-weight: 600; }
:root[data-theme="dark"] .nf-src b { color: var(--accent); }

/* Markets-home "Week Ahead" card (right rail). Sized to its (capped) rows rather than stretched to
   the bottom of the left column — stretching left a tall empty card when the rail above was short. */
.rail--home { grid-template-rows: auto auto 1fr; }
.rail--home > .week-cal { align-self: start; }
.week-cal .nf-time { width: 84px; }
.week-cal .wk-dow { display: inline-block; min-width: 2.6em; font-weight: 700; color: var(--text-soft); }
.week-cal .cal-cur { font-size: .7rem; color: var(--muted); margin-left: 4px; }
.week-cal .wl-rail__empty { padding-left: 0; }

/* Markets-home "Smart Money" card (hedge-fund 13F changes / politician trades) */
.sm-tabs { display: flex; gap: 8px; margin: 2px 0 12px; }
.sm-fund {
  display: block; width: 100%; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--border);
  background: none; text-align: left; cursor: pointer; font: inherit; color: inherit;
  transition: background .15s ease;
}
.sm-fund:hover { background: var(--surface-2); }
.sm-fund:last-of-type { border-bottom: 0; }
.sm-fund__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.sm-fund__head b { font-size: .92rem; }
.sm-fund__head span { font-size: .76rem; color: var(--muted); }
.sm-fund__head .sm-fund__when { margin-left: auto; font-variant-numeric: tabular-nums; }
.sm-fund__head .sm-region {
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 5px; line-height: 1.5;
}
.sm-tally { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.sm-tally b { font-variant-numeric: tabular-nums; font-size: .95rem; }

/* watchlists rail card (markets home) */
.wl-rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.wl-rail__head h3 { margin-bottom: 0; }
.wl-rail__all { font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.wl-rail__all:hover { color: var(--text); }
.wl-rail__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%;
  padding: 11px 8px; border: 0; background: none; text-align: left; cursor: pointer;
  border-bottom: 1px solid var(--border); transition: background .15s ease; border-radius: 8px;
}
.wl-rail__row:last-child { border-bottom: 0; }
.wl-rail__row:hover { background: var(--surface-2); }
.wl-rail__name { min-width: 0; font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-rail__sub { display: block; color: var(--muted); font-size: .74rem; font-weight: 400; }
.wl-rail__chg { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .86rem; text-align: right; min-width: 56px; }
.wl-rail__empty { color: var(--muted); font-size: .86rem; padding: 8px; }
.wl-rail__empty a { color: var(--accent-ink); font-weight: 600; cursor: pointer; }
:root[data-theme="dark"] .wl-rail__empty a { color: var(--accent); }

/* ---------- Filings ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px;
}
.filters label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.select, .textinput {
  padding: 8px 11px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: .88rem; min-width: 150px;
}

/* Checkbox multi-select dropdown (Filings' Region/Industry/Company filters) */
.msel { position: relative; }
.msel__btn {
  display: flex; align-items: baseline; gap: 7px; padding: 8px 11px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: .88rem; cursor: pointer;
}
.msel__btn:hover { background: var(--surface-2); }
.msel__btn[aria-expanded="true"] { border-color: var(--accent); }
.msel__label {
  font-size: .78rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.msel__value { font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel__btn .chev { width: 14px; height: 14px; color: var(--muted); flex: none; margin-left: 2px; align-self: center; }
.msel__menu {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; width: 270px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow);
}
.msel__search {
  width: 100%; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: .88rem;
}
.msel__search::placeholder { color: var(--muted); }
.msel__search:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.msel__list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.msel__opt {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px;
  cursor: pointer; font-size: .88rem;
}
.msel__opt:hover { background: var(--surface-2); }
.msel__opt input { flex: none; accent-color: var(--accent); }
.msel__opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel__empty { color: var(--muted); font-size: .86rem; padding: 8px; cursor: default; }

/* ---------- Economic calendar ---------- */
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.cal-datewrap { position: relative; display: inline-flex; }
/* the Custom Date month calendar — opens directly under the button (left edge set from the button in JS) */
.cal-picker { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 268px; padding: 10px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; box-shadow: var(--shadow); }
.cal-picker[hidden] { display: none; }
.cal-picker__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; }
.cal-picker__head button { border: 0; background: none; cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 4px 11px; border-radius: 8px; color: var(--muted); }
.cal-picker__head button:hover { background: var(--surface-2); color: var(--text); }
.cal-picker__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-picker__dow span { font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-picker__day { position: relative; border: 0; background: none; cursor: pointer; padding: 8px 0; border-radius: 8px; font: inherit; font-size: .84rem; color: var(--text); }
.cal-picker__day:hover { background: var(--surface-2); }
.cal-picker__day.is-today { font-weight: 700; color: var(--accent-ink); }
.cal-picker__day.is-selected { background: var(--accent); color: #fff; }
.cal-picker__day.has-events::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal-picker__day.is-selected.has-events::after { background: #fff; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--muted); }
.seg button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.cal { width: 100%; border-collapse: collapse; }
.cal thead th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border-strong); font-weight: 600;
}
.cal td { padding: 11px 12px; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: top; }
.cal .daybar td { background: var(--surface-2); font-weight: 600; font-family: "Newsreader", Georgia, serif; font-size: 1rem; }
.cal .cur { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .82rem; }
.cal .imp { letter-spacing: 1px; font-weight: 700; }
.imp--3 { color: var(--accent-text); }
.imp--2 { color: var(--text-soft); }
.imp--1 { color: var(--muted); }
.cal .num { text-align: right; }
.cal .cal-src { font-size: .78rem; color: var(--muted); }
.cal .cal-src a { color: var(--muted); }
.cal .tag-p { font-size: .64rem; border: 1px solid var(--border-strong); border-radius: 3px; padding: 0 4px; color: var(--muted); margin-left: 6px; vertical-align: middle; }
.earn-detail td { background: var(--surface-2); }
.metric { font-size: .84rem; }
.metric .mk { color: var(--muted); }
.metric .mv { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Watchlists ---------- */
.wl-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.wl-filters label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.wl-filters label + .select { margin-right: 8px; }
.wl-filters__count { color: var(--muted); font-size: .82rem; margin-left: auto; }
.wl-tag {
  display: inline-block; padding: 1px 7px; border-radius: 999px; margin-right: 5px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .03em; color: var(--text-soft);
}
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* ---- Watchlists index (redesign, 28 Sep): header with a clear "Create watchlist" action, the reader's own lists
   first ("Your watchlists"), then the curated ones with their filters; cards with one meta line, a full-width
   sparkline and a Today / 1 year stat row ---- */
.wl-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.wl-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0; }
.wl-hero p { color: var(--muted); margin: 8px 0 0; max-width: 62ch; }
.wl-create, .wl-empty .btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.wl-create svg, .wl-empty .btn svg { width: 16px; height: 16px; }
/* "Your watchlists" / "All watchlists" tabs — underlined, like the risk-analysis tabs */
.wl-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin: 0 0 22px; }
.wl-tab { padding: 12px 1px 11px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none;
  font: inherit; font-size: .98rem; font-weight: 500; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.wl-tab:hover { color: var(--text); }
.wl-tab.is-active { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.wl-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wl-tab__n { font-size: .74rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 999px;
  padding: 2px 8px; font-variant-numeric: tabular-nums; }
.wl-tab.is-active .wl-tab__n { color: var(--accent-ink); background: var(--accent-wash); }
.wl-panel { margin-bottom: 36px; }
.wl-empty { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 26px;
  border: 1.5px dashed var(--border-strong); border-radius: 10px; background: var(--surface); }
.wl-empty h3 { font-size: 1.15rem; margin: 0 0 6px; }
.wl-empty p { color: var(--muted); margin: 0; max-width: 64ch; font-size: .92rem; line-height: 1.5; }
.wl-index .wl-filters label { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.wl-index .wl-grid { gap: 16px; }
.wl-none { color: var(--muted); }
.wlc { position: relative; padding: 18px 18px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease; }
.wlc:hover, .wlc:focus-visible { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); outline: none; }
.wlc__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wlc--mine .wlc__top { padding-right: 24px; }
.wlc__top h3 { font-size: 1.18rem; margin: 0; line-height: 1.25; min-width: 0; }
.wlc__n { font-size: .78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wlc__meta { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlc__spark { height: 56px; margin: 10px 0 6px; }
.wlc__spark .spark { width: 100%; height: 56px; display: block; }
.wlc__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto; }
.wlc__stat span { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
.wlc__stat b { font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wlc__stat:last-child { text-align: right; }
.wlc__rm { position: absolute; top: 12px; right: 10px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: none; color: var(--muted); border-radius: 50%; cursor: pointer; opacity: .7; transition: opacity .15s ease, color .15s ease; }
.wlc:hover .wlc__rm, .wlc:focus-within .wlc__rm { opacity: 1; }
.wlc__rm:hover, .wlc__rm:focus-visible { background: var(--surface-2); color: var(--down); opacity: 1; }
.wlc__rm svg { width: 15px; height: 15px; }
/* watchlist page: title with the "Delete watchlist" button (own lists only) on the right */
.wl-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wl-titlebar h1 { margin-bottom: 0; }
/* (8 Nov 2026) a custom list's title-bar actions: Edit (pencil - the Edit pop-up) and Delete (bin), as square icon buttons */
.wl-acts { display: inline-flex; gap: 8px; flex: 0 0 auto; }
.btn.wl-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; color: var(--muted); }
.wl-ico svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn.wl-ico:hover, .btn.wl-ico:focus-visible { color: var(--text); border-color: var(--text); }
.btn.wl-del:hover, .btn.wl-del:focus-visible { color: var(--down); border-color: var(--down); }
/* "Create watchlist" tile at the end of Your watchlists: same footprint as a card, dashed outline, no fill */
.wlc--new { align-self: stretch; height: auto; align-items: center; justify-content: center; gap: 10px; min-height: 200px; border: 1.5px dashed var(--border-strong);
  border-radius: 10px; background: transparent; color: var(--text-soft); font: inherit; font-weight: 600; font-size: .95rem; }
.wlc--new:hover, .wlc--new:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.wlc--new__icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); }
.wlc--new__icon svg { width: 18px; height: 18px; }
.wlc--new__note { margin-top: -6px; font-size: .78rem; font-weight: 500; color: var(--muted); }   /* (free access: one list - 27 Oct 2026) */
@media (max-width: 640px) {
  .wl-hero, .wl-empty { flex-direction: column; align-items: stretch; }
  .wl-create, .wl-empty .btn { justify-content: center; }
}

.wl-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.wl-back:hover { color: var(--text); }
.perf-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 16px 0 28px; }
.perf-stat { padding: 14px 16px; text-align: center; }
.perf-stat .pl { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.perf-stat .pv { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }

.pc-wrap { padding: 20px; }
.pc-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr); gap: 28px; align-items: start; }
.pc-main { min-width: 0; }
.pc-main .linechart { height: auto; }
.wl-info { background: none; border: 1px solid var(--border-strong, var(--border)); border-radius: 9px; padding: 16px 18px; font-size: .88rem; line-height: 1.5; }
.wl-info h3 { font-size: 1rem; margin: 0 0 6px; }
.wl-info h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 14px 0 6px; }
.wl-info h4 span { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.wl-info p { margin: 0; color: var(--text-soft, var(--text)); }
.wl-info ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.wl-risk__head { display: flex; align-items: baseline; gap: 10px; }
.wl-risk__score { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wl-risk__score small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.wl-risk__label { font-weight: 600; color: var(--accent-ink); }
.wl-risk__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 6px 0 8px; }
.wl-risk__bar i { height: 8px; border-radius: 4px; background: var(--border-strong, var(--border)); }
.wl-risk__bar i.on { background: var(--accent); }
.wl-info .wl-risk__note { font-size: .78rem; color: var(--muted); }
.wl-risk__more { padding: 0; background: none; border: 0; color: var(--accent-ink); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.wl-risk__more:hover { text-decoration: underline; }
/* below Plus: a padlock in place of the score, linking to the plans page (user, 1 Nov 2026) */
.wl-risk__lock { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-2); color: var(--text-soft); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  text-align: left; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.wl-risk__lock:hover, .wl-risk__lock:focus-visible { border-color: var(--accent); color: var(--accent-ink); outline: none; }
.wl-risk__lock svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .wl-risk__more { color: var(--accent); }

/* ---- basket risk analysis (assets/js/risk.js) ---- */
.risk-wrap { padding: 20px; }
.risk-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 20px; }
.risk-head__score { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.risk-big { font-family: "Newsreader", Georgia, serif; font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.risk-head__score small { color: var(--muted); font-size: 1rem; }
.risk-label { font-weight: 700; color: var(--accent-ink); }
:root[data-theme="dark"] .risk-label { color: var(--accent); }
.risk-summary { margin: 0; color: var(--text-soft); font-size: .92rem; line-height: 1.55; }
.risk-pillars { display: grid; gap: 9px; margin-bottom: 22px; }
.rp-row { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 34px; gap: 12px; align-items: center; font-size: .88rem; }
.rp-name em { display: block; font-style: normal; font-size: .72rem; color: var(--muted); }
.rp-track { height: 10px; border-radius: 5px; background: var(--border-strong); overflow: hidden; }
.rp-track i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.rp-score { text-align: right; font-variant-numeric: tabular-nums; }
.risk-h { font-family: inherit; }
.risk-grid { display: grid; }
.risk-stat { position: relative; }
.rs-l { padding-right: 18px; color: var(--muted); }
.rs-s { color: var(--muted); line-height: 1.35; margin-top: 2px; }
/* info icon, top-right of each stat tile — a plain-English definition of the number on hover/focus.
   A CUSTOM tooltip (::after, from data-tip), not the native `title` attribute: a native tooltip
   can't be sized and renders the full definition in one very wide line — this one is a fixed,
   narrow box instead. Plain pointer cursor, not "help" (no question-mark decoration next to it). */
.rs-info { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: flex; align-items: center;
  justify-content: center; padding: 0; border: 0; background: none; border-radius: 50%; color: var(--muted); cursor: pointer; }
.rs-info:hover, .rs-info:focus-visible { color: var(--text); background: var(--surface-2); }
.rs-info[data-tip]::after {
  content: attr(data-tip);
  position: absolute; top: 50%; left: 100%; margin-left: 8px; transform: translateY(-50%); z-index: 30;
  width: 190px; padding: 8px 10px; border-radius: 8px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: .72rem; font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.4; text-align: left;
  white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease;
}
.rs-info:hover::after, .rs-info:focus-visible::after { opacity: 1; visibility: visible; }
/* the same icon at the top-right corner of a table column heading (e.g. "t-stat") — out of flow, so the heading
   text doesn't move — and its tooltip opens BELOW the icon:
   the table sits in an overflow (scroll) wrapper, which would clip a sideways tooltip at the header row */
.th-tip { position: relative; }
.rs-info--inline { position: absolute; top: -5px; left: 100%; right: auto; width: 16px; height: 16px; margin-left: 1px; }
.rs-info--inline[data-tip]::after { top: 100%; left: 50%; margin: 6px 0 0; transform: translateX(-50%); }
.risk-table { width: 100%; border-collapse: collapse; }
.risk-table th { text-align: left; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--border-strong); }
.risk-table th.r, .risk-table td.r { text-align: center; }   /* every risk table: figures centred under their headings (first column stays left) */
/* Figure-plus-words columns (factors "Effect on the basket", liquidity "Analyst actions"): the column stays centred, but
   its entries are right-aligned among themselves — each sits in a box as wide as the column's widest entry (set by
   alignBlocks() in risk.js), and the box is centred. */
.rt-block { display: inline-block; text-align: right; white-space: nowrap; }
/* factors table: "Effect on the basket" is left-aligned, its figure in a fixed right-aligned slot so the percentages
   line up on the decimal point and the "per +1% ..." text starts at one x on every row; t-stat / share stay centred */
.risk-table--factors th:nth-child(2), .risk-table--factors td:nth-child(2) { text-align: left; white-space: nowrap; }
.risk-table--factors th:nth-child(2) { padding-left: 10px; }
.fx-num { display: inline-block; min-width: 4.4em; margin-right: 8px; text-align: right; font-variant-numeric: tabular-nums; }
.risk-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: .88rem; font-variant-numeric: tabular-nums; }
.risk-table tr.is-hi td { background: color-mix(in srgb, var(--accent-wash) 50%, transparent); }   /* softer row highlight (user, 27 Sep) */
.risk-note { font-size: .8rem; color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
.risk-note b { color: var(--text); }
.risk-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-top: 24px; }
.risk-chart h4 { font-size: .95rem; margin: 0 0 8px; }
.risk-chart .linechart { height: auto; }
.fb-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--border-strong); }
.fb-seg { display: inline-block; height: 100%; }
.fb-0 { background: var(--accent); } .fb-1 { background: #2F6F8F; } .fb-2 { background: #5B8C5A; } .fb-x { background: var(--border-strong); }
.fb-key .fb-seg { width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; }
.rb { display: grid; gap: 2px; }
.rb-row { display: grid; grid-template-columns: minmax(180px, 320px) minmax(0, 1fr) 54px; gap: 12px 8px; align-items: center; padding: 5px 0; font-size: .86rem; }
.rb-track { position: relative; height: 12px; border-radius: 6px; background: var(--border-strong); }
.rb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--accent); }
.rb-fill.is-up { background: var(--up); }
/* bars that fill in when their tab opens (growBars in risk.js); same curve and duration as the Summary pillar bars */
.fb-seg.is-growing, .rb-fill.is-growing { transition: width 1.1s cubic-bezier(.33, 1, .68, 1); }
/* wider invisible hit area than the visible 2px line, so hovering/focusing for the benchmark's
   own figure (title tooltip) doesn't require pixel-perfect aim */
.rb-bench { position: absolute; top: -3px; bottom: -3px; width: 13px; margin-left: -6px; cursor: pointer; }
.rb-bench::before { content: ""; position: absolute; left: 6px; top: 3px; bottom: 3px; width: 0; border-left: 2px dashed var(--text); }
.rb-row b { text-align: right; font-variant-numeric: tabular-nums; }
.legend i.tick { width: 0; height: 12px; border-left: 2px dashed var(--text); background: none; border-radius: 0; }
.risk-foot { font-size: .76rem; color: var(--muted); margin: 18px 0 0; line-height: 1.5; border-top: 1px solid var(--border); padding-top: 12px; }
@media (max-width: 720px) {
  .risk-head { grid-template-columns: 1fr; gap: 10px; }
  .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .rp-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .rp-row .rp-track { grid-column: 1 / -1; grid-row: 2; }
  .rb-row { grid-template-columns: minmax(0, 1fr) 54px; }
  .rb-row .rb-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 900px) { .pc-top { grid-template-columns: 1fr; } }
.chart-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .82rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.dash { background-image: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px); height: 3px; }
.linechart { width: 100%; height: 300px; }
.linechart text { fill: var(--muted); font-size: 11px; font-family: var(--font-ui); font-variant-numeric: tabular-nums lining-nums; }
.linechart text.axis-label { fill: var(--muted); font-weight: 500; font-size: 11.5px; text-transform: none; letter-spacing: 0; }
.linechart .grid { stroke: var(--border); stroke-width: 1; stroke-opacity: .75; }
.linechart .grid--base { stroke: var(--border-strong, var(--border)); stroke-opacity: 1; }
.linechart .vmark-line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.linechart text.vmark-label { fill: var(--text); font-weight: 600; font-size: 11px; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.linechart .end-dot { stroke: var(--surface); stroke-width: 2; }
.linechart text.end-tag__text { fill: #fff; font-size: 11px; font-weight: 600; }
.linechart .hover-line { stroke: var(--muted); stroke-width: 1; }
.linechart .vol-bar { fill: var(--muted); opacity: .35; }
.linechart .vol-bar--up { fill: var(--up); opacity: .42; }
.linechart .vol-bar--down { fill: var(--down); opacity: .42; }
/* the main price line lifts off the chart with a soft shadow in its own colour */
.linechart .lc-main { filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--accent) 18%, transparent)); }
.linechart .cdl--up { fill: var(--up); stroke: var(--up); }
.linechart .cdl--down { fill: var(--down); stroke: var(--down); }
.linechart .cdl--wick { stroke-width: 1; }
.linechart .cdl--body { stroke: none; }
.linechart .cdl--bar { fill: none; stroke-width: 1.4; stroke-linecap: round; }
.chart-tip__row--ohlc { padding-left: 15px; }
/* chart style picker beside Compare: four icon buttons in the toolbar's segmented style */
.sdd { position: relative; }
/* the price chart can be zoomed (wheel) and dragged sideways; vertical swipes still scroll the page on touch */
.stock-page #chartHost svg.linechart[data-geo] { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stock-page #chartHost.is-dragging svg.linechart { cursor: grabbing; }
.sdd__btn {
  display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px 0 9px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.sdd__btn:hover { background: var(--surface-2); }
.sdd__btn[aria-expanded="true"] { border-color: var(--accent); }
.sdd__btn .chev { width: 14px; height: 14px; color: var(--muted); flex: none; }
.sdd__cur svg, .sdd__menu svg { display: block; flex: none; }
.sdd__menu {
  position: fixed; z-index: 60; min-width: 190px; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow);
}
.sdd__menu li {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px;
  cursor: pointer; font-size: .88rem; color: var(--text);
}
.sdd__menu li:hover, .sdd__menu li:focus { background: var(--surface-2); outline: none; }
.sdd__menu li.is-active { color: var(--accent); font-weight: 600; }
.pc-style { height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface);
  color: var(--text); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236C6355' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.chart-tip__row--vol { margin-top: 3px; padding-top: 3px; border-top: 1px solid var(--border); }
.chart-tip__row--vol i { background: var(--muted); border-radius: 2px; }
.linechart .hover-pill { fill: var(--text); }
.linechart text.hover-pill__text { fill: var(--surface); font-size: 10.5px; font-weight: 600; }
/* a new view draws its line in from the left (pathLength="1" on the path); off for reduced motion */
.linechart.lc-anim .lc-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lc-draw .9s cubic-bezier(.4, 0, .2, 1) forwards; }
.linechart.lc-anim path[fill^="url"] { opacity: 0; animation: lc-fade .5s ease .45s forwards; }
@keyframes lc-draw { to { stroke-dashoffset: 0; } }
@keyframes lc-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .linechart.lc-anim .lc-draw, .linechart.lc-anim path[fill^="url"] { animation: none; stroke-dashoffset: 0; opacity: 1; } }
.linechart .ref-line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 1.5 3.5; stroke-linecap: round; opacity: .8; }
.linechart .hover-dot { stroke: var(--surface); stroke-width: 2; }
.barchart { width: 100%; height: auto; }
.barchart text { fill: var(--muted); font-size: 12px; font-family: var(--font-ui); }
.barchart text.bar-value { fill: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
/* AI build-out comparison (aiBuildoutChart in app.js): era name + years above each bubble, value inside it */
.buildout-chart text.bo-name { fill: var(--text); font-size: 14px; font-weight: 600; }
.buildout-chart text.bo-name--ai { fill: var(--accent-ink); }
.buildout-chart text.bo-sub { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.buildout-chart text.bo-val { fill: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.buildout-chart text.bo-val--ai { fill: #fff; font-size: 15px; }
:root[data-theme="dark"] .buildout-chart text.bo-name--ai { fill: var(--accent); }
.dotplot circle { fill: var(--accent); }
.dotplot .dotplot-divider { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }

.pies { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.pie-box { text-align: left; }
.pie-box h4 { font-size: 1rem; margin-bottom: 10px; }
.pie-box__body { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }   /* (both donuts level at the top, whatever the legend length - user, 14 Oct 2026) */
.donut { width: 180px; height: 180px; margin: 0 auto; }
.pie-box__body .donut { margin: 0; flex: 0 0 auto; width: 130px; height: 130px; }
.pie-legend { display: grid; gap: 6px; margin-top: 12px; font-size: .8rem; text-align: left; max-width: 240px; margin-inline: auto; }
.pie-box__body .pie-legend { margin: 0; flex: 1 1 180px; min-width: 160px; max-width: 280px; }
.pie-legend span { display: flex; align-items: center; gap: 8px; }
.pie-legend i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.pie-legend b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }

.holdings { width: 100%; border-collapse: collapse; margin-top: 6px; }
.holdings th { text-align: right; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border-strong); font-weight: 600; }
.holdings th:first-child, .holdings td:first-child { text-align: left; }
.holdings td { padding: 12px; border-bottom: 1px solid var(--border); font-size: .9rem; font-variant-numeric: tabular-nums; text-align: right; }
.holdings .h-name b { display: block; }
.holdings .h-name span { color: var(--muted); font-size: .78rem; }

/* ---------- Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(10,14,22,.5); padding: 20px; }
.modal-root[hidden] { display: none !important; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  box-shadow: var(--shadow); max-width: 440px; width: 100%; padding: 24px;
}
.modal h3 { font-size: 1.25rem; margin-bottom: 8px; }
.modal p { color: var(--text-soft); font-size: .92rem; margin: 0 0 6px; }
.modal .modal-url { font-size: .8rem; color: var(--muted); word-break: break-all; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn { padding: 9px 18px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .9rem; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }


/* ---------- Responsive ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 960px) {
  /* minmax(0, 1fr), not 1fr: a plain fr track won't shrink below its widest content (home ran 520px wide on phones) */
  .markets-grid { grid-template-columns: minmax(0, 1fr); }
  .pies { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  /* everything on ONE line: Portside · tabs · (shrinking) search · flag · slider */
  .topbar__inner { flex-wrap: nowrap; gap: 10px; }
  .topbar__search { flex: 1 1 80px; min-width: 84px; }
  .mainnav { flex: 0 1 auto; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { flex: 0 0 auto; padding: 8px 10px; }
}
/* Phones: the one-row header can't fit (it pushed every page ~750px wide) — three compact rows instead:
   logo + location/theme, a full-width search, then the section links as one sideways-scrolling row */
@media (max-width: 640px) {
  .topbar__inner { flex-wrap: wrap; }
  .brand { order: 1; }
  .topbar__right { order: 2; margin-left: auto; gap: 8px; }
  .topbar__search input { width: 100%; }
  /* calendar: the Today / Tomorrow / This week / ... date pills scroll sideways within the screen */
  .cal-datewrap { max-width: 100%; }
  .cal-datewrap > :first-child { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .cal-datewrap > :first-child::-webkit-scrollbar { display: none; }
}
@media (max-width: 820px) {
  .perf-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .secondary { grid-template-columns: 1fr; }
  .cal thead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tickerbar__track { animation: none; }
}

/* ---- opening animation & loading placeholders ---- */
.view-enter { animation: viewEnter .34s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes viewEnter { from { opacity: 0; transform: translateY(10px); } }
.fade-in, .risk-fade { animation: fadeIn .4s ease backwards; }
@keyframes fadeIn { from { opacity: 0; } }
.skeleton, .skeleton-line {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 300% 100%; animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skeleton { border-radius: 10px; }
.chart-skel rect { fill: var(--surface-2); animation: skelPulse 1.6s ease-in-out infinite; }
@keyframes skelPulse { 50% { fill: var(--surface-3); } }
#chartLegend { min-height: 21px; }                                   /* the legend fills in later; keep its row */
.skeleton-line--sub { height: 10px; margin-top: 8px; }
.wl-skel td { height: 68px; padding-top: 0; padding-bottom: 0; }     /* = the height of a real holdings row */
.wl-skel td:first-child .skeleton-line { display: block; }
.wl-skel-li { list-style: none; min-height: 42px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.skeleton--risk { min-height: 420px; display: flex; align-items: center; justify-content: center; }
.skeleton__msg { color: var(--muted); font-size: .9rem; }
.skeleton-line { display: block; height: 12px; border-radius: 6px; }
.perf-stat .pv.is-wait, .wl-risk__score.is-wait { color: var(--muted); }
/* the About-panel bar fills continuously (each of the five segments is filled by --f, 0..1, set per frame) */
.wl-risk__bar i[data-rk-seg] {
  background: linear-gradient(90deg, var(--accent) calc(var(--f, 0) * 100%), var(--border-strong, var(--border)) calc(var(--f, 0) * 100%));
}
.wl-risk__foot { min-height: 22px; display: flex; align-items: center; }
.wl-risk__foot .wl-risk__note { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .view-enter, .fade-in, .risk-fade, .skeleton, .skeleton-line, .chart-skel rect { animation: none; }
}

/* ======================================================================
   Typography + watchlist page refinement
   Newsreader (display) carries titles and the one hero numeral, the risk rating; IBM Plex Sans (the same family as the feed's Plex Mono) carries everything
   else, with tabular figures for data. Labels are sentence-case (no tracked capitals). Coral marks data only: the line
   and the rating. Scoped to .wl-page so the feature articles that share some class names are untouched.
   ====================================================================== */
.wl-page { font-variant-numeric: lining-nums; }
.wl-page h1 { font-size: clamp(2.05rem, 3.6vw, 2.8rem); font-weight: 500; letter-spacing: -.024em; }
.wl-page .wl-back { background: none; border: 0; padding: 2px 0; margin-bottom: 16px; color: var(--muted); font-weight: 500; font-size: .88rem; }
.wl-page .wl-back:hover { color: var(--text); }
.wl-page .section-title { font-size: 1.5rem; font-weight: 500; letter-spacing: -.016em; margin: 40px 0 16px; }
.wl-page .section-title .rule { background: var(--border); }

/* performance figures: one strip, hairline dividers, no boxes */
.wl-page .perf-strip {
  gap: 0; margin: 22px 0 8px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm);
}
.wl-page .perf-stat { background: none; border: 0; border-left: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 14px 20px 13px; }
.wl-page .perf-stat:first-child { border-left: 0; }
.wl-page .perf-stat .pl { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 500; color: var(--muted); line-height: 1.3; }
.wl-page .perf-stat .pv { font-size: 1.42rem; font-weight: 600; letter-spacing: -.017em; margin-top: 4px; line-height: 1.3; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 720px) {
  .wl-page .perf-stat { padding: 11px 15px 10px; }
  .wl-page .perf-stat:nth-child(odd) { border-left: 0; }
  .wl-page .perf-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .wl-page .perf-stat:last-child { grid-column: 1 / -1; }
}

/* the chart card: chart on the left, a single divider, the about column on the right (no box inside a box) */
.wl-page .pc-wrap { padding: 26px 30px 26px; }
.wl-page .pc-top { grid-template-columns: minmax(0, 1.75fr) minmax(290px, 1fr); gap: 0; }
.wl-page .pc-main { padding-right: 34px; }
.wl-page .chart-toolbar--split { justify-content: space-between; margin-bottom: 18px; }
.pc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chart-note { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.stock-page #chartLegend[hidden] { display: none; }
.wl-page .seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 10px; }
.wl-page .seg .pill-btn { border: 0; background: transparent; border-radius: 8px; padding: 6px 15px; font-size: .84rem; font-weight: 500; color: var(--muted); }
.wl-page .seg .pill-btn:hover { color: var(--text); }
.wl-page .seg .pill-btn.is-active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(23,32,46,.12); }
:root[data-theme="dark"] .wl-page .seg .pill-btn.is-active { background: var(--surface-3); box-shadow: none; }
.wl-page .msel__btn { border-radius: 10px; padding: 7px 12px; background: var(--surface); }
.wl-page .msel__label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .84rem; }
.wl-page .msel__value { font-weight: 600; font-size: .86rem; }

.wl-page .linechart text { font-size: 11px; font-variant-numeric: tabular-nums lining-nums; }
.wl-page .linechart text.axis-label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11.5px; fill: var(--muted); }
.wl-page .linechart .grid { stroke: var(--border); stroke-opacity: .8; }
.wl-page .linechart text.end-label { fill: var(--accent-ink); font-weight: 700; font-size: 11.5px; }
:root[data-theme="dark"] .wl-page .linechart text.end-label { fill: var(--accent); }
.wl-page .linechart .end-dot { stroke: var(--surface); stroke-width: 2; }
.wl-page .legend { font-size: .86rem; gap: 20px; margin-top: 16px; color: var(--text-soft); }

/* about column */
.wl-page .wl-info { border: 0; border-left: 1px solid var(--border); border-radius: 0; padding: 2px 0 2px 34px; font-size: .92rem; line-height: 1.6; }
.wl-page .wl-info h3 { font-family: var(--font-ui); font-size: .95rem; font-weight: 600; letter-spacing: 0; margin: 0 0 8px; }
.wl-page .wl-info h4 { font-family: var(--font-ui); text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 600; color: var(--text); margin: 26px 0 10px; }
.wl-page .wl-info p { color: var(--text-soft); }
.wl-page .wl-info .wl-risk h4 { margin-bottom: 6px; }
@media (max-width: 900px) {
  .wl-page .pc-top { grid-template-columns: 1fr; }
  .wl-page .pc-main { padding-right: 0; }
  .wl-page .wl-info { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; margin-top: 26px; }
}

/* the risk rating: the one memorable element */
.wl-page .wl-risk__head { align-items: center; gap: 14px; }
.wl-page .wl-risk__score { font-family: "Newsreader", Georgia, serif; font-size: 3.3rem; font-weight: 500; letter-spacing: -.035em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.wl-page .wl-risk__score small { font-family: var(--font-ui); font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 3px; }
.wl-page .wl-risk__label { font-size: .8rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-wash); padding: 4px 11px; border-radius: 999px; }
:root[data-theme="dark"] .wl-page .wl-risk__label { color: var(--accent); }
.wl-page .wl-risk__bar { gap: 4px; margin: 16px 0 12px; }
.wl-page .wl-risk__bar i { height: 7px; border-radius: 4px; background: var(--surface-3); }
.wl-page .wl-risk__bar i[data-rk-seg] {
  background: linear-gradient(90deg, var(--accent) calc(var(--f, 0) * 100%), var(--surface-3) calc(var(--f, 0) * 100%));
}
.wl-page .wl-risk__more { font-size: .86rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* main features: hairline rows instead of bullets */
.wl-page .wl-info ul { list-style: none; padding: 0; margin: 0; gap: 0; }
.wl-page .wl-info li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-soft); font-size: .9rem; line-height: 1.55; white-space: pre-line; }   /* pre-line: a fact can carry its own line breaks */
.wl-page .wl-info li:last-child { border-bottom: 0; }
.wl-page .wl-info .wl-risk + h4 { margin-top: 36px; }   /* more separation from the "Full risk analysis" link above (was 26px) */
.wl-page .wl-info li:first-child { padding-top: 5px; }   /* "Main features" heading sits a little closer to the first feature (15px, was 20px) */
.wl-page .wl-skel-li { min-height: 66px; padding: 10px 0; border-bottom: 1px solid var(--border); justify-content: center; }

/* composition donuts */
.wl-page .pies { grid-template-columns: 1fr 1fr; gap: 0; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--border); }
.wl-page .pie-box:first-child { padding-right: 34px; }
.wl-page .pie-box + .pie-box { padding-left: 34px; border-left: 1px solid var(--border); }
.wl-page .pie-box h4 { font-family: var(--font-ui); font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; }
.wl-page .pie-box__body { gap: 20px 28px; }
.wl-page .pie-box__body .pie-legend { flex: 1 1 190px; min-width: 0; max-width: 320px; gap: 0; font-size: .9rem; }
.wl-page .pie-legend span { padding: 8px 0; border-bottom: 1px solid var(--border); }
.wl-page .pie-legend span:last-child { border-bottom: 0; }
.wl-page .pie-legend i { width: 9px; height: 9px; border-radius: 50%; }
.wl-page .pie-legend b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .wl-page .pies { grid-template-columns: 1fr; gap: 26px; }
  .wl-page .pie-box:first-child { padding-right: 0; }
  .wl-page .pie-box + .pie-box { padding-left: 0; border-left: 0; padding-top: 26px; border-top: 1px solid var(--border); }
}

/* holdings table and the risk analysis section: sentence-case headers, quieter labels */
.wl-page .holdings th { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 500; }
.wl-page .holdings tbody tr { transition: background .15s ease; }
.wl-page .holdings tbody tr:hover { background: var(--surface-2); }
.wl-page .holdings .h-name b { font-weight: 600; }
/* members table: sortable column headings replace the old "Sort by" dropdown */
.wl-page .members-card { padding-top: 6px; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; position: relative; }
.th-sort:hover { color: var(--text); }
.th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wl-page .holdings th.is-sorted { color: var(--text); font-weight: 600; }
/* members table: figure columns (and their headings) centred like the risk tables; the sort arrow sits just outside
   the heading text (absolutely positioned) so it doesn't pull the label off-centre */
.wl-page .members-card .holdings th:not(:first-child), .wl-page .members-card .holdings td:not(:first-child) { text-align: center; }
.th-arrow { position: absolute; left: 100%; margin-left: 4px; color: var(--accent-text); font-size: .85em; }
.wl-page .select { border-radius: 10px; }
.risk-h { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; color: var(--text); margin: 28px 0 10px; }
.rs-l { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 500; }
.rs-v { font-weight: 600; letter-spacing: -.015em; font-size: 1.55rem; margin-top: 7px; font-variant-numeric: tabular-nums lining-nums; }
.risk-table th { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 500; }
.risk-big { font-weight: 500; letter-spacing: -.03em; }

/* risk analysis: underlined tabs and hairline metrics instead of filled pills and boxed tiles */
/* tabs sit at the top of the risk card, above the Summary / detail content */
/* stat tiles: ONE key-stats panel, not separate boxes (user, 27 Sep — separate outlined/filled/hairline tiles were all
   rejected). A single rounded frame; the cells are divided by thin internal rules drawn as box-shadows, which the
   frame's overflow clips at its outer edges so only the INNER dividers show. Column count per tab is set by
   risk.js (--cols) so rows fill evenly (8 -> 4+4, 6 -> 3+3, 5 -> one row). Label + value centred; the label is padded
   both sides so the top-right info icon doesn't pull it off-centre. */
.risk-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0; border: 1px solid var(--border-strong);
  border-radius: 10px; overflow: hidden; background: var(--surface); }
.risk-stat { border: 0; border-radius: 0; background: none; padding: 20px 14px 19px; text-align: center;
  box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
.risk-stat .rs-l { padding: 0 24px; }
/* the frame's overflow would clip the info tooltips; let them escape */
.risk-grid:has(.rs-info:hover), .risk-grid:has(.rs-info:focus-visible) { overflow: visible; }
.rs-s { font-size: .8rem; }


/* leaders and laggards: each holding's return over the selected range, under the chart */
.wl-page .lag { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.wl-page .lag h4 { font-family: var(--font-ui); font-size: .95rem; font-weight: 600; letter-spacing: 0; margin: 0 0 10px; }
.wl-page .lag-row { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) 58px; align-items: center; gap: 12px; height: 20px; font-size: .84rem; }
.wl-page .lag-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); }
.wl-page .lag-track { position: relative; height: 9px; }
.wl-page .lag-track::before { content: ""; position: absolute; left: var(--zero, 0%); top: -5px; bottom: -5px; border-left: 1px solid var(--border-strong); }
.wl-page .lag-track i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.wl-page .lag-track i.up { background: var(--up); }
.wl-page .lag-track i.down { background: var(--down); }
.wl-page .lag-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.wl-page .lag-row .skeleton-line { height: 9px; }

/* watchlist Overview: what drove the return (each holding's contribution, in percentage points) */
.wl-contrib { padding: 18px 20px; }
.wl-contrib__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.wl-contrib__head p { margin: 0; color: var(--text-soft); font-size: .88rem; }
.wl-contrib__row { display: grid; grid-template-columns: minmax(110px, 26%) 56px 64px minmax(0, 1fr) 70px; align-items: center; gap: 12px;
  min-height: 30px; font-size: .86rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.wl-contrib__row .num { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.wl-contrib__row .num.up { color: var(--up); }
.wl-contrib__row .num.down { color: var(--down); }
a.wl-contrib__row:hover .lag-name { color: var(--accent); }
.wl-contrib__cols { min-height: 26px; font-size: .74rem; color: var(--muted); }
.wl-contrib__cols span:nth-child(2), .wl-contrib__cols span:nth-child(3), .wl-contrib__cols span:nth-child(5) { text-align: right; }
.wl-contrib__total { border-bottom: 0; border-top: 1px solid var(--border-strong); font-weight: 600; margin-top: -1px; }
.wl-contrib__total .lag-name { color: var(--text); }
.wl-contrib__row .skeleton-line { height: 9px; }
@media (max-width: 640px) {
  .wl-contrib__row { grid-template-columns: minmax(80px, 1fr) 54px minmax(50px, 26%) 62px; gap: 8px; }
  .wl-contrib__row > :nth-child(2) { display: none; }
}

/* watchlist Overview: coming up (results, ex-dividend dates, economic releases) */
.wl-events { padding: 0; overflow: hidden; }
.wl-ev__row { display: grid; grid-template-columns: 128px 76px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 20px;
  border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; font-size: .9rem; }
.wl-ev__list > :last-child { border-bottom: 0; }
a.wl-ev__row:hover { background: var(--surface-2); }
a.wl-ev__row:hover .wl-ev__what { color: var(--accent-ink); }
.wl-ev__when { font-size: .8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-ev__tag { justify-self: start; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-soft); }
.wl-ev__tag--results { background: var(--accent-wash); color: var(--accent-ink); }
.wl-ev__tag--dividend { background: var(--up-wash); color: var(--up); }
.wl-ev__what { font-weight: 500; }
.wl-ev__what small { margin-left: 6px; color: var(--muted); font-weight: 400; font-size: .8rem; }
.wl-ev__row .skeleton-line { height: 10px; }
@media (max-width: 640px) {
  .wl-ev__row { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 16px; }
  .wl-ev__what { grid-column: 1 / -1; }
}
/* watchlist Overview: latest news - which holdings each story names */
.wl-news__names { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }

/* ---------- stock pages (#/stock/<ticker>) and links into them (30 Sep 2026) ---------- */
.stock-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.stock-head h1 { margin: 0 0 4px; }
.stock-head__sub { color: var(--muted); font-size: .88rem; }
.stock-head__sub b { color: var(--text); letter-spacing: .02em; }
.stock-head__px { display: flex; align-items: baseline; gap: 12px; }
.stock-head__price { font-size: 1.9rem; font-weight: 600; letter-spacing: -.01em; }
.stock-head__price.is-wait { color: var(--muted); }
.stock-head__chg { font-size: .95rem; font-weight: 600; }
/* ---- stock page Overview: one control style across the toolbar, a period summary over the chart, and an About
   column of labelled sections (clamped description, ruled key-fact rows) ---- */
.stock-page .chart-toolbar--split { gap: 10px; margin-bottom: 16px; }
/* "Reset chart": sits midway between the time ranges and the chart-type / Compare controls while zoomed */
.pc-reset {
  height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: .8rem; cursor: pointer;
}
.pc-reset:hover { background: var(--surface-2); }
.pc-reset[hidden] { display: none; }
/* the Peer Comparison chart scrolls (drag / swipe) and zooms (wheel); its reset sits at the card's top right */
#pcChartCard .div-card-head { align-items: center; }
#pcChartCard .pc-reset { height: 30px; }
#pcChartCard .pcmp-chart-ctl { display: flex; align-items: center; gap: 10px; margin-left: auto; }
#pcChartCard .pcmp-span { display: inline-flex; font-size: .8rem; }
#pcChartCard .pcmp-span button { min-width: 64px; justify-content: center; }
#pcChartCard .pcmp-chart svg.linechart { cursor: grab; touch-action: pan-y; }
#stPc.is-dragging #pcChartCard svg.linechart { cursor: grabbing; }
#stPc.is-dragging { user-select: none; }
.stock-page .seg { height: 34px; align-items: center; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; }
.stock-page .seg .pill-btn, .stock-page .seg button { height: 26px; display: inline-flex; align-items: center; padding: 0 12px; border: 0; border-radius: 6px;
  background: transparent; box-shadow: none; font-size: .8rem; font-weight: 500; color: var(--muted); transition: color .18s, background .18s; }
.stock-page .seg .pill-btn:hover, .stock-page .seg button:hover { color: var(--text); }
.stock-page .seg .is-active, .stock-page .seg .pill-btn.is-active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(23,32,46,.12); }
:root[data-theme="dark"] .stock-page .seg .is-active { background: var(--surface-3, var(--surface)); box-shadow: none; }
.stock-page .msel__btn { height: 34px; align-items: center; padding: 0 12px; border-radius: 9px; border-color: var(--border); }
.stock-page .msel__label, .stock-page .msel__value { font-size: .8rem; }
.stock-page .pc-tools { gap: 10px; }
/* the chart runs closer to the About column's divider (the shared watchlist layout keeps a wider gutter) */
@media (min-width: 901px) { .stock-page .pc-main { padding-right: 4px; } }
.stock-page #chartHost { position: relative; }
.stock-page .linechart .grid { stroke: var(--border); stroke-opacity: .7; }
.chart-tip { position: absolute; z-index: 60; min-width: 150px; padding: 8px 10px; pointer-events: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow, 0 4px 14px rgba(23,32,46,.12));
  font-size: .78rem; line-height: 1.45; }
.chart-tip[hidden] { display: none; }
.chart-tip__date { margin-bottom: 4px; font-weight: 600; color: var(--text); }
.chart-tip__row { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.chart-tip__row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chart-tip__row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-tip__row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tip__row b em { font-style: normal; font-weight: 500; color: var(--muted); }
/* section titles in the About column: the site's serif heading face, full-strength text, so they read as titles */
.stock-page .wl-info .sa-h { font-family: "Newsreader", Georgia, serif; font-size: 1.02rem; font-weight: 600; letter-spacing: -.005em;
  text-transform: none; color: var(--text); line-height: 1.25; margin: 0 0 10px; }
.stock-page .wl-info .sa-h--sub { margin: 26px 0 6px; }
.stock-page .wl-info .sa-h--wl { margin-bottom: 12px; }
.stock-about { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--text-soft, var(--text));
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.stock-about.is-open { display: block; -webkit-line-clamp: unset; }
.stock-about__more { margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 600; color: var(--accent-ink); cursor: pointer; }
.stock-about__more:hover { text-decoration: underline; }
.stock-about__more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.stock-about__more[hidden] { display: none; }
.stock-about-skel { height: 96px; margin: 0; border-radius: 8px; }
.stock-page .sa-facts { grid-template-columns: minmax(0, 1fr) auto; gap: 0; column-gap: 0; row-gap: 0; margin: 0; }
.sa-facts dt, .sa-facts dd { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .86rem; line-height: 1.4; }
.sa-facts dt { color: var(--muted); padding-right: 16px; }
.stock-facts.sa-facts dd { font-weight: 500; text-align: right; }
.sa-facts dt:last-of-type, .sa-facts dd:last-of-type { border-bottom: 0; }
.stock-facts { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 8px 0 0; }
.stock-facts dt { color: var(--muted); }
.stock-facts dd { margin: 0; text-align: right; font-weight: 600; }
.stock-wls { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 5px !important; }
.stock-wls a { display: inline-block; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; color: var(--text); text-decoration: none; }
.stock-wls a:hover { background: var(--surface-2); }
.stock-fin { padding: 18px 20px; }
.stock-fin--joined { margin-top: 16px; }
/* stock page tabs (Overview | Financials | Risk analysis | Valuation) */
.st-tabs { display: flex; gap: 4px; margin: 22px 0 20px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab {
  position: relative; padding: 10px 14px 11px; border: 0; background: none; color: var(--muted); cursor: pointer; white-space: nowrap;
  font: inherit; font-size: .95rem; font-weight: 500;
}
.st-tab:hover { color: var(--text); }
.st-tab.is-active { color: var(--text); font-weight: 600; }
.st-tab.is-active::after { content: ""; position: absolute; bottom: -1px; left: 8px; right: 8px; height: 2px; border-radius: 0; background: var(--accent); }
.st-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
/* Financials tab: statements */
.stock-st { padding: 18px 20px; }
/* Dividends tab */
.stock-div { display: flex; flex-direction: column; gap: 16px; }
#stDivSafe:not(:empty) { margin-top: 16px; }
.div-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.div-tile { display: grid; grid-template-rows: auto 1.5rem; align-content: start; row-gap: 6px; padding: 14px 20px; min-width: 0; border-left: 1px solid var(--border); }
.div-tile:first-child { border-left: 0; }
.div-tile span { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.div-tile b { display: flex; align-items: flex-end; font-size: 1.4rem; font-weight: 600; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.div-tile b small { font-size: .74rem; font-weight: 500; color: var(--muted); margin-left: 6px; padding-bottom: 2px; }
.div-tile b.is-word { font-size: 1.05rem; letter-spacing: 0; padding-bottom: 2px; }
.div-tile em { font-style: normal; font-size: .76rem; color: var(--muted); line-height: 1.35; }
.div-tile--next span { color: var(--accent); }
.div-card { padding: 16px 18px; }
.div-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.div-card-head .sa-h { margin: 0; }
.div-count { font-size: .78rem; color: var(--muted); }
.div-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: stretch; }
.div-bars { width: 100%; height: auto; display: block; }
.div-col { fill: var(--accent); }
.div-col--part { fill: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.div-col--sp { fill: var(--series-2, #6b8afd); }
.div-legend { display: flex; gap: 14px; margin-top: 6px; font-size: .76rem; color: var(--muted); }
.div-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); margin-right: 5px; vertical-align: -1px; }
.div-sw--sp { background: var(--series-2, #6b8afd); }
.div-growth { display: grid; grid-template-columns: 1fr; gap: 0; margin: 16px 0 0; border-top: 1px solid var(--border); }
.div-growth > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.div-growth > div:last-child { border-bottom: 0; }
.div-growth dt { font-size: .86rem; color: var(--text); }
.div-growth dd { margin: 0; text-align: right; font-weight: 600; font-size: .92rem; }
.div-growth small { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); }
.div-table td { padding: 8px 8px; }
.div-table tr.is-next td { font-weight: 600; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.div-table .up { color: var(--up); font-size: .8rem; }
.div-table .down { color: var(--down); font-size: .8rem; }
.div-flat { color: var(--muted); }
.div-kind--sp { color: var(--text); font-weight: 600; }
.div-more { margin-top: 10px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .82rem; cursor: pointer; }
.div-more:hover { background: var(--surface-2); }
@media (max-width: 900px) { .div-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .div-tile--next { grid-column: 1 / -1; } .div-tile { border-left: 0; border-top: 1px solid var(--border); } .div-tile:first-child { border-top: 0; } .div-tile:nth-child(odd):not(:first-child) { border-left: 1px solid var(--border); } .div-grid { grid-template-columns: minmax(0, 1fr); } }
.div-decl { font-size: .74rem; color: var(--muted); margin-left: 4px; }
.div-kind { font-size: .84rem; color: var(--muted); }
.div-src { color: var(--up); font-weight: 700; text-decoration: none; font-size: .8rem; }
.div-early, .div-unconf { font-size: .76rem; color: var(--muted); }
.div-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.st-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.st-per { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.st-per select {
  height: 34px; padding: 0 30px 0 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: .85rem; font-weight: 500; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.st-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.st-table th, .st-table td { padding: 9px 8px; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); text-align: left; }
.st-table thead th { font-weight: 600; text-transform: uppercase;
  vertical-align: bottom; }
.st-table thead th small { display: block; margin-top: 2px; font-size: .7rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.st-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-table tbody th { font-weight: 400; }
.st-table tr.is-total th, .st-table tr.is-total td { font-weight: 600; }
.st-table .st-prev { color: var(--muted); }
.st-table .st-chg { color: var(--muted); font-size: .8rem; width: 72px; }
.st-table tr.is-head th { padding-top: 16px; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.st-table--filed tbody th { padding-left: 14px; }
.st-table--filed thead th:first-child { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--text); }
.st-mode { margin-left: auto; }
@media (max-width: 640px) { .st-table .st-prev { display: none; } .st-table:not(.pcmp-sum):not(.pcmp-peers):not(.sval-methods):not(.sval-fc):not(.sval-heat):not(.sval-scen):not(.sval-sotp):not(.sval-trk):not(.eq-table):not(.ci-t):not(.tg-table):not(.wl-an__table):not(.wl-val__table):not(.wla-scrt) thead th:nth-child(3) { display: none; } }
.stock-fin__per { font-size: .72rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stock-fin__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 18px; }
.stock-fin__cell { display: flex; flex-direction: column; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.stock-fin__cell span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.stock-fin__cell b { font-size: 1.12rem; }
.stock-fin__src { margin: 14px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.stock-fin__src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.stock-fin__src a:hover { color: var(--accent); }
/* Peer Comparison tab */
.stock-pcmp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pcmp-card { padding: 20px 22px; min-width: 0; }
.pcmp-wins { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pcmp-sub { color: var(--muted); font-size: .8rem; }
.pcmp-sum th, .pcmp-sum td, .pcmp-peers th, .pcmp-peers td { padding: 8px 7px; white-space: nowrap; }
/* the stock tabs' tables fit their card, never a scroll bar (user, 7 Oct 2026): headings and company names may take two
   lines; the figures stay on one */
.pcmp-sum thead th, .pcmp-peers thead th, .st-panel .st-table thead th.num, .st-panel .st-table thead th { white-space: normal; }
.pcmp-peers tbody th, .pcmp-sum tbody th { white-space: normal; min-width: 110px; }
.pcmp-sum thead th, .pcmp-peers thead th { vertical-align: bottom; }
.pcmp-sum tbody th label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.pcmp-sum input[type="radio"] { accent-color: var(--accent); margin: 0; }
.pcmp-sum tr[data-pcm] { cursor: pointer; }
.pcmp-sum tr[data-pcm]:hover { background: var(--surface-2); }
.pcmp-sum tr.is-sel { background: var(--accent-wash); }
.pcmp-sum tr.pcmp-price th, .pcmp-sum tr.pcmp-price td { color: var(--muted); font-size: .82rem; }
.pcmp-sum tr.pcmp-fwd th { font-weight: 500; padding-left: 31px; }
.pcmp-sum .pcmp-na { color: var(--muted); font-size: .8rem; }
.pcmp-sum tr.is-none th { color: var(--muted); }
.pcmp-far { font-weight: 700; color: var(--accent); }
.pcmp-trend svg { width: 70px; height: 22px; display: block; }
.pcmp-range { display: block; overflow: visible; }
.pcmp-range__track { stroke: var(--border-strong); stroke-width: 2; stroke-linecap: round; }
.pcmp-range__avg { fill: var(--text); }
.pcmp-range__cur { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.pcmp-range-h { font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
.pcmp-key { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; font-size: .74rem; color: var(--muted); }
.pcmp-key i { display: inline-block; width: 9px; height: 9px; }
.pcmp-key__cur { background: var(--accent); border-radius: 50%; }
.pcmp-key__avg { background: var(--text); transform: rotate(45deg) scale(.8); }
.pcmp-peers tbody th { font-weight: 500; }
.pcmp-peers tbody th a { color: inherit; text-decoration: none; }
.pcmp-peers tbody th a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.pcmp-peers tbody th small { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; }
.pcmp-peers tr.pcmp-me { background: color-mix(in srgb, var(--accent-wash) 45%, transparent); }
.pcmp-peers tr.pcmp-me th, .pcmp-peers tr.pcmp-me td { font-weight: 700; }
.pcmp-rank td.pcmp-rk { font-weight: 700; font-size: .95rem; }
.pcmp-rank td.up { color: var(--up); }
.pcmp-rank td.down { color: var(--down); }
.pcmp-peers tr.pcmp-prem th, .pcmp-peers tr.pcmp-prem td { color: var(--accent); font-weight: 600; }
.pcmp-peers tr.pcmp-avg th, .pcmp-peers tr.pcmp-avg td { font-weight: 600; border-bottom: 1px solid var(--border-strong); }
.pcmp-out { color: var(--muted); opacity: .55; }
.pcmp-note .stock-fin__src { margin: 0 4px; }
.pcmp-legend { gap: 18px; }
.pcmp-sw { display: inline-block; width: 18px; height: 0; border-top: 2px solid currentColor; vertical-align: middle; }
.pcmp-sw--thick { border-top-width: 3px; }
.pcmp-legend .pcmp-sw--line:first-child { border-top-width: 3px; }
.pcmp-sw--dot { border-top: 2px dotted currentColor; }
.pcmp-sw--dash { border-top: 2px dashed currentColor; }
.stock-news { padding: 0; overflow: hidden; }
/* the coverage list inside its card: inset from the card's edge, the date level with the headline */
.stock-news .news-row { grid-template-columns: 76px minmax(0, 1fr); padding: 14px 20px; align-items: center; }
.stock-news .news-row__date { padding-top: 0; }
.stock-news .stock-empty { padding: 16px 20px; margin: 0; }
.stock-news__more { margin: 10px 20px 14px; }
.stock-empty { margin: 0; padding: 18px 20px; color: var(--muted); font-size: .9rem; }
.stock-fin .stock-empty { padding: 0; }

/* ---- stock page: risk rating ---- */
.stock-risk, .stock-val { padding: 20px 22px; }
.stock-risk .stock-empty, .stock-val .stock-empty { padding: 0; }
.stock-risk { --mid: #C98A1B; }
:root[data-theme="dark"] .stock-risk { --mid: #E8B04A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stock-risk { --mid: #E8B04A; } }
.srisk { display: grid; grid-template-columns: minmax(220px, 270px) 1fr; gap: 32px; align-items: stretch; }
/* the headline score in its own panel */
.srisk-score { display: flex; flex-direction: column; padding: 18px 20px; border-radius: 9px; border: 1px solid var(--border); }
.srisk-score .srisk-badge { align-self: center; }
/* (user, 20 Oct 2026: the rating centred in its box - heading, figure and band; the scale stays full width) */
.srisk-score .srisk-kicker, .srisk-score .srisk-num { text-align: center; }
.srisk-scale-lab { margin-bottom: 14px; display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.srisk-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.srisk-num { font-size: 2.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.srisk-num span { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.srisk-num.up, .srisk-val.up { color: var(--up); }
.srisk-num.mid, .srisk-val.mid { color: var(--mid); }
.srisk-num.down, .srisk-val.down { color: var(--down); }
.srisk-badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.srisk-badge.up { color: var(--up); background: color-mix(in srgb, var(--up) 13%, transparent); }
.srisk-badge.mid { color: var(--mid); background: color-mix(in srgb, var(--mid) 15%, transparent); }
.srisk-badge.down { color: var(--down); background: color-mix(in srgb, var(--down) 13%, transparent); }
.srisk-scale { position: relative; margin: 18px 0 6px; }
.srisk-segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.srisk-segs i { height: 6px; border-radius: 3px; opacity: .28; }
.srisk-segs i.is-on { opacity: 1; }
.srisk-segs .b0 { background: var(--up); }
.srisk-segs .b1 { background: color-mix(in srgb, var(--up) 55%, var(--mid)); }
.srisk-segs .b2 { background: var(--mid); }
.srisk-segs .b3 { background: color-mix(in srgb, var(--mid) 45%, var(--down)); }
.srisk-segs .b4 { background: var(--down); }
.srisk-scale b { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--text); box-sizing: border-box; }
.srisk-cap { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); line-height: 1.5; }
.srisk-cap b { color: var(--text); font-weight: 600; }
/* the pillars: name, bar, score, weight, with column heads */
.srisk-bars { align-self: start; }
.srisk-bars h4, .sval-cols h4, .sval-fc h4, .sval-grid h4 { margin: 0 0 12px; font-size: .92rem; }
.srisk-row { display: grid; grid-template-columns: minmax(150px, 210px) 1fr 40px 44px; gap: 14px; align-items: center;
  padding: 8px 0; font-size: .88rem; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.srisk-row:last-child, .srisk-row:nth-last-child(2) { border-bottom: 0; }
.srisk-head { padding: 0 0 8px; border-bottom: 1px solid var(--border); font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); }
.srisk-head > span:nth-child(n+3) { text-align: right; }
.srisk-head > span:first-child { color: var(--text); font-family: "Newsreader", Georgia, serif; text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.srisk-foot { padding: 6px 0 0; border-bottom: 0; }
.srisk-axis { position: relative; height: 14px; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.srisk-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.srisk-axis span:first-child { transform: none; }
.srisk-axis span:last-child { transform: translateX(-100%); }
.srisk-name { color: var(--text); }
.srisk-name em { font-style: normal; color: var(--muted); font-size: .78rem; margin-left: 4px; }
/* track with faint quarter marks, so a bar's length reads against the 1-5 scale */
.srisk-track { position: relative; height: 6px; border-radius: 3px; overflow: hidden;
  background: linear-gradient(90deg, transparent calc(25% - 1px), var(--surface) calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), var(--surface) calc(50% - 1px) 50%,
    transparent 50% calc(75% - 1px), var(--surface) calc(75% - 1px) 75%, transparent 75%), var(--border); }
.srisk-track i { display: block; height: 100%; border-radius: 3px; }
.srisk-track i.up { background: var(--up); } .srisk-track i.mid { background: var(--mid); } .srisk-track i.down { background: var(--down); }
.srisk-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.srisk-w { text-align: right; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
/* the measures: two tables side by side */
.srisk-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 40px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.srisk-group h5 { margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.srisk-m { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.srisk-m:last-child { border-bottom: 0; }
.srisk-m__l { font-size: .86rem; min-width: 0; }
.srisk-m__l small { display: block; margin-top: 2px; font-size: .74rem; color: var(--muted); line-height: 1.35; }
.srisk-m b { font-size: .95rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.srisk-note, .sval-note, .sval-disclaimer { margin: 14px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
/* the model's footnote as a quiet callout */
.srisk-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 0; color: var(--muted); }
.srisk-note svg { flex: none; margin-top: 1px; color: var(--muted); }

/* EPS by half year / year for a company with no quarterly figures */
.ov-epsbar { fill: var(--accent); }
.ov-epsbar.is-derived { fill: color-mix(in srgb, var(--accent) 62%, var(--surface)); }
.ov-epsbar.is-neg { fill: var(--down); }
.ov-epsval { font-size: 11px; font-weight: 600; fill: var(--text); }

/* a stock tab's table too wide for its card, a step tighter (fitStockTables) */
.st-panel .st-table.fit-1 { font-size: .8rem; }
.st-panel .st-table.fit-1 th, .st-panel .st-table.fit-1 td { padding-left: 5px; padding-right: 5px; }
.st-panel .st-table.fit-2 { font-size: .72rem; letter-spacing: -.01em; }
.st-panel .st-table.fit-2 th, .st-panel .st-table.fit-2 td { padding-left: 3px; padding-right: 3px; }
.st-panel .st-table.fit-1 thead th, .st-panel .st-table.fit-2 thead th { letter-spacing: 0; }

/* ---- stock page: Corporate Info ---- */
.ci-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ci-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* each column's last card stretches to the taller column, so the two end level (user, 7 Oct 2026) */
.ci-col > .card:last-child { flex: 1 1 auto; }
@media (max-width: 900px) { .ci-grid { grid-template-columns: minmax(0, 1fr); } }
/* at a glance: four centred figures in one strip (figure boxes are always centred - user, 6 Oct 2026) */
.ci-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 0; overflow: hidden; }
.ci-glance > div { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  padding: 16px 14px; min-width: 0; }
.ci-glance > div + div { border-left: 1px solid var(--border); }
.ci-glance span { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ci-glance b { font-size: 1.08rem; font-weight: 600; color: var(--text); line-height: 1.25; max-width: 100%; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ci-glance em { font-style: normal; font-size: .78rem; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .ci-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ci-glance > div + div { border-left: 0; } .ci-glance > div:nth-child(even) { border-left: 1px solid var(--border); }
  .ci-glance > div:nth-child(n+3) { border-top: 1px solid var(--border); } }
/* executive team: people, the key roles first and marked */
.ci-people { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
@media (max-width: 600px) { .ci-people { grid-template-columns: minmax(0, 1fr); } }
.ci-people li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); min-width: 0; }
.ci-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 600;
  letter-spacing: .02em; background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }
.ci-people li.is-key .ci-av { background: var(--accent-wash); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.ci-person { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ci-person b { font-weight: 600; font-size: .9rem; color: var(--text); }
.ci-person span { font-size: .8rem; color: var(--muted); }
.ci-person em { font-style: normal; font-size: .74rem; color: var(--text-soft); margin-top: 2px; }
/* brokers / coverage lists */
.ci-list { list-style: none; margin: 2px 0 0; padding: 0; }
.ci-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.ci-list li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ci-list b { font-weight: 600; font-size: .88rem; color: var(--text); }
.ci-list li > div > span { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); }
.ci-list--tight li { padding: 7px 0; }
.ci-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: var(--accent-wash);
  color: var(--accent-ink); }
.ci-grade { flex: none; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-soft); }
.ci-grade.is-up { background: var(--up-wash); color: var(--up); }
.ci-grade.is-down { background: var(--down-wash); color: var(--down); }
.ci-ext { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--link, var(--accent)); text-decoration: none; }
.ci-ext:hover { text-decoration: underline; text-underline-offset: 2px; }
.ci-ext .ci-ico { width: 12px; height: 12px; }
.ci-ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* contact */
.ci-contact { margin-top: 22px; }
.ci-dl { margin: 2px 0 0; display: flex; flex-direction: column; }
.ci-dl > div { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 12px; padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); font-size: .86rem; }
.ci-dl dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ci-dl dd { margin: 0; overflow-wrap: anywhere; }
.ci-dl a, .ci-src a { color: var(--link, var(--accent)); }
/* shareholders: the ownership bar, then the tables */
.ci-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-3); margin: 6px 0 10px; }
.ci-stack i { display: block; height: 100%; border-right: 2px solid var(--surface); }
.ci-legend { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .78rem; color: var(--text-soft); }
.ci-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ci-legend li i { width: 9px; height: 9px; border-radius: 2px; }
.ci-legend li i.is-rest { background: var(--surface-3); border: 1px solid var(--border); }
.ci-legend b { font-weight: 600; color: var(--text); }
.ci-own .ci-rank { color: var(--muted); width: 28px; }
.ci-own th.num, .ci-own td.num { text-align: center; }
.ci-fixed { table-layout: fixed; min-width: 600px; }
.ci-fixed col.c-rank { width: 40px; } .ci-fixed col.c-role { width: 190px; }
/* (figure columns wide enough to sit in balance with the names, not crowded at the far right: user, 13 Oct 2026) */
.ci-fixed col.c-num { width: 180px; }
.ci-fixed.ci-many col.c-num { width: 130px; }   /* (five figure columns: the names keep room) */
.ci-fixed tbody th { overflow-wrap: anywhere; }   /* figure columns centred under their headings (user, 7 Oct 2026) */
.ci-own tbody th small { display: block; margin-top: 2px; font-size: .74rem; color: var(--muted); }
.ci-role { color: var(--text-soft); font-size: .84rem; }
.ci-via { color: var(--muted); font-size: .8rem; font-weight: 400; }
.ci-old { margin-top: 12px; }
.ci-old summary { cursor: pointer; font-size: .8rem; color: var(--muted); padding: 4px 0; }
.ci-old summary:hover { color: var(--text); }
.ci-old table { margin-top: 4px; }
.ci-old th, .ci-old td { color: var(--text-soft); }
.ci-sec { margin-top: 26px; }
.ci-sub { margin: 22px 0 6px; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.div-card-head + .ci-sub { margin-top: 6px; }
.ci-src { margin: 10px 0 0; font-size: .74rem; color: var(--muted); line-height: 1.45; }
.ci-note, .ci-empty, .ci-wait { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.st-table td small { color: var(--muted); }
#stCi { display: flex; flex-direction: column; gap: 16px; }

/* ---- stock page: valuation ---- */
.stock-val { display: flex; flex-direction: column; gap: 16px; }
.sval-card { padding: 20px 22px; min-width: 0; }
.sval-targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.sval-t { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px 18px 15px; border: 1px solid var(--border); border-radius: 10px; }
.sval-t--base { border-color: var(--accent); background: var(--accent-wash); }
.sval-t__label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sval-t--base .sval-t__label { color: var(--accent-ink); }
.sval-t b { font-size: 1.7rem; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }   /* (the same size as the watchlist Valuation boxes - user, 20 Oct 2026) */
.sval-t__up { font-weight: 600; font-size: .9rem; }
.sval-t__up.up { color: var(--up); } .sval-t__up.down { color: var(--down); }
.sval-t__sub { font-size: .78rem; color: var(--muted); line-height: 1.4; }
/* the range: scenario markers labelled above the line, today's price below */
.sval-range { position: relative; margin: 30px 46px 8px; padding: 34px 0 30px; }
.sval-range__marks { position: absolute; left: 0; right: 0; top: 0; height: 30px; }
.sval-mk { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; white-space: nowrap; line-height: 1.2; }
.sval-mk em { font-style: normal; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.sval-mk b { font-size: .8rem; font-variant-numeric: tabular-nums; }
.sval-mk--bear b { color: var(--down); } .sval-mk--bull b { color: var(--up); } .sval-mk--base b { color: var(--accent-ink); }
.sval-range__bar { position: relative; height: 6px; border-radius: 3px; background: var(--border); }
.sval-range__fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--down) 45%, transparent), color-mix(in srgb, var(--accent) 45%, transparent), color-mix(in srgb, var(--up) 45%, transparent)); }
.sval-range__bar i { position: absolute; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 1px 2px rgba(23,32,46,.18); }
.sval-range__bar i.bear { background: var(--down); } .sval-range__bar i.base { background: var(--accent); } .sval-range__bar i.bull { background: var(--up); }
.sval-range__bar b { position: absolute; top: -9px; width: 2px; height: 24px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.sval-range__today { position: absolute; bottom: 0; transform: translateX(-50%); font-size: .76rem; color: var(--muted); white-space: nowrap; }
.sval-range__today b { color: var(--text); font-variant-numeric: tabular-nums; }
.sval-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
/* how the target is built */
.sval-methods { width: 100%; font-variant-numeric: tabular-nums; }
.sval-methods th, .sval-methods td { padding: 10px 10px; }
.sval-methods tbody th { font-weight: 500; text-align: left; }
.sval-methods td.sval-base { font-weight: 700; }
.sval-methods .sval-w { width: 130px; }
.sval-w__bar { display: inline-block; vertical-align: middle; width: 70px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-right: 8px; }
.sval-w__bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.sval-w__pc { display: inline-block; min-width: 32px; text-align: right; font-size: .82rem; }
.sval-note { margin: 16px 0 0; font-size: .82rem; line-height: 1.6; color: var(--muted); }
.sval-note b { color: var(--text); font-weight: 600; }
/* our target vs the analysts' */
.sval-cols > .sval-card { display: flex; flex-direction: column; }
.sval-cols .sval-methods th, .sval-cols .sval-methods td { padding: 13px 10px; }
.sval-vs { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.sval-vs__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sval-vs h4 { font-family: inherit; margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); font-weight: 700; }
.sval-vs__rec { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.sval-vs__rec--up { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.sval-vs__rec--mid { color: var(--text); background: var(--surface-2); }
.sval-vs__rec--down { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.sval-vs__rows { display: flex; flex-direction: column; }
.sval-vs__row { display: grid; grid-template-columns: 128px 86px minmax(0, 1fr) 54px; align-items: center; gap: 12px; padding: 7px 0; font-size: .84rem; }
.sval-vs__row + .sval-vs__row { border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.sval-vs__lab { color: var(--muted); white-space: nowrap; }
.sval-vs__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.sval-vs__pc { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .8rem; }
.sval-vs__pc.up { color: var(--up); } .sval-vs__pc.down { color: var(--down); }
.sval-vs__track { position: relative; height: 10px; }
.sval-vs__zero { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--text); opacity: .35; }
.sval-vs__fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: color-mix(in srgb, var(--text) 55%, transparent); }
.sval-vs__row--ext .sval-vs__fill { background: color-mix(in srgb, var(--text) 22%, transparent); }
.sval-vs__row--ours .sval-vs__fill { background: var(--accent); }
.sval-vs__row--ours .sval-vs__lab { color: var(--text); font-weight: 600; }
.sval-vs__row--ours .sval-vs__val { color: var(--accent-ink); }
/* our bull / bear cases: orange outline bars, each under the analysts' high / low */
.sval-vs__row--case .sval-vs__fill { background: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: inset 0 0 0 1px var(--accent); }
.sval-vs__row--case .sval-vs__lab { color: var(--text); }
.sval-vs__foot { margin-top: 8px; font-size: .74rem; color: var(--muted); }
@media (max-width: 720px) { .sval-vs__row { grid-template-columns: 104px 74px minmax(0, 1fr) 46px; gap: 8px; font-size: .8rem; } }
.sval-cols > .sval-card .sval-note { margin-top: 22px; font-size: .84rem; line-height: 1.65; }
/* key assumptions, in groups */
.sval-groups { display: flex; flex-direction: column; gap: 16px; }
.sval-group h5 { font-family: inherit; margin: 0 0 6px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); font-weight: 700; }
.sval-group dl { margin: 0; }
.sval-group dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.sval-group dl > div:last-child { border-bottom: 0; }
.sval-group dt { color: var(--muted); }
.sval-group dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
/* discounted cash flow: forecast beside the sensitivity grid */
.sval-dcf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.sval-sub h4 { font-family: inherit; margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.sval-fc, .sval-heat { width: 100%; font-variant-numeric: tabular-nums; }
.sval-fc th, .sval-fc td, .sval-heat th, .sval-heat td { padding: 8px 6px; }
.sval-fc tbody th, .sval-heat tbody th { font-weight: 500; text-align: left; }
.sval-heat td.sval-mid { font-weight: 700; outline: 2px solid var(--accent); outline-offset: -2px; }
/* what each case assumes */
.sval-scen { width: 100%; table-layout: fixed; font-variant-numeric: tabular-nums; }
.sval-scen thead th.num, .sval-scen td.num { text-align: center; }
.sval-scen tr.sval-scen__out td em { display: block; margin: 2px 0 0 !important; }
.sval-scen th, .sval-scen td { padding: 10px 12px; }
.sval-scen tbody th { font-weight: 500; text-align: left; }
.sval-scen td.sval-base { font-weight: 700; background: color-mix(in srgb, var(--accent-wash) 55%, transparent); }
.sval-scen thead th.sval-scen__bear { color: var(--down); } .sval-scen thead th.sval-scen__bull { color: var(--up); }
.sval-scen tr.sval-scen__out th, .sval-scen tr.sval-scen__out td { border-top: 2px solid var(--border-strong); font-weight: 700; }
.sval-scen td em, .sval-sotp__top em, .sval-try__out em { font-style: normal; font-size: .76rem; font-weight: 600; margin-left: 6px; }
.sval-scen td em.up, .sval-sotp__top em.up, .sval-try__out em.up { color: var(--up); }
.sval-scen td em.down, .sval-sotp__top em.down, .sval-try__out em.down { color: var(--down); }
/* sum of the parts */
.sval-sotp__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; }
.sval-sotp__top > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; }
.sval-sotp__top > div + div { border-left: 1px solid var(--border); }
.sval-sotp__top span { font-size: .72rem; color: var(--muted); }
.sval-sotp__top b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.sval-sotp__top em { margin-left: 0 !important; color: var(--muted); }
.sval-sotp { width: 100%; font-variant-numeric: tabular-nums; }
.sval-sotp th, .sval-sotp td { padding: 10px 12px; vertical-align: top; }
.sval-sotp tbody th { font-weight: 500; text-align: left; }
.sval-sotp small { display: block; margin-top: 2px; font-size: .72rem; color: var(--muted); font-weight: 400; }
.sval-sotp td.sval-base { font-weight: 700; }
.sval-bridge { margin: 14px 0 0 auto; max-width: 360px; font-size: .86rem; font-variant-numeric: tabular-nums; }
.sval-bridge > div { display: flex; justify-content: space-between; padding: 6px 12px; }
.sval-bridge dt { color: var(--muted); } .sval-bridge dd { margin: 0; font-weight: 600; }
.sval-bridge > div.is-total { border-top: 2px solid var(--border-strong); margin-top: 4px; padding-top: 9px; }
.sval-bridge > div.is-total dt { color: var(--text); font-weight: 700; } .sval-bridge > div.is-total dd { font-weight: 700; }
/* try your own DCF */
.sval-try { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.sval-try__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sval-try__head h4 { font-family: inherit; margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); font-weight: 700; }
.sval-try__head .pc-reset { height: 30px; }
.sval-try__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.sval-try__sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.sval-try__s { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: var(--muted); }
.sval-try__s span { display: flex; justify-content: space-between; }
.sval-try__s b { color: var(--text); font-variant-numeric: tabular-nums; }
.sval-try__s input[type=range] { width: 100%; accent-color: var(--accent); }
.sval-try__out { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border-radius: 9px; background: var(--accent-wash); text-align: center; }
.sval-try__out span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); font-weight: 600; }
.sval-try__out b { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.sval-try__out em { margin-left: 0 !important; font-size: .86rem !important; }
.sval-try__out small { font-size: .74rem; color: var(--muted); margin-top: 4px; }
/* track record */
.sval-track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; }
.sval-track h4 { font-family: inherit; margin: 0 0 10px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); font-weight: 700; }
.sval-track .linechart { width: 100%; height: auto; display: block; }
.sval-trk { width: 100%; font-variant-numeric: tabular-nums; }
.sval-trk th, .sval-trk td { padding: 8px 10px; white-space: nowrap; }
.sval-trk tbody th { font-weight: 500; text-align: left; }
.sval-track__note, .sval-track__empty { margin: 10px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 720px) {
  .sval-try__grid, .sval-track { grid-template-columns: minmax(0, 1fr); }
  .sval-try__sliders { grid-template-columns: minmax(0, 1fr); }
  .sval-sotp__top { grid-template-columns: minmax(0, 1fr); }
  .sval-sotp__top > div + div { border-left: 0; border-top: 1px solid var(--border); }
}
.sval-disclaimer { margin: 0 4px; font-size: .76rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) {
  .srisk, .sval-cols, .sval-dcf { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sval-range { margin: 26px 30px 6px; }
  .sval-targets { grid-template-columns: 1fr; }
  .srisk-row { grid-template-columns: minmax(110px, 1fr) 1fr 30px 34px; gap: 8px; }
  .srisk-axis { display: none; }
  .srisk-groups { grid-template-columns: minmax(0, 1fr); }
  .stock-risk, .stock-val { padding: 16px; }
}
/* rows / cells that open a stock's page */
.holdings tr.is-link, .movers-table td.mv-link { cursor: pointer; }
.holdings tr.is-link:focus-visible, .movers-table td.mv-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.holdings tr.is-link:hover .h-name b, .movers-table td.mv-link.h-name:hover b { color: var(--accent); }
.movers-table td.mv-link.mv-hover { background: var(--surface-2); }
.movers-table td.mv-link.h-name.mv-hover b { color: var(--accent); }
a.lag-row { color: inherit; text-decoration: none; }
a.lag-row:hover .lag-name { color: var(--accent); }
/* the stock page's watchlist chips: a wrapping row, not the About panel's divided feature list */
.wl-page .wl-info ul.stock-wls { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-page .wl-info ul.stock-wls li { padding: 0; border: 0; }
.wl-page .wl-info .stock-facts { margin-top: 10px; }

/* ---- stock page overview: earnings, price targets, seasonality ---- */
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ov-grid--one { grid-template-columns: minmax(0, 1fr); }
.ov-card { padding: 16px 18px; }
.seg--sm button { padding: 5px 12px; font-size: .8rem; }
.ov-beat { margin: -4px 0 6px; font-size: .8rem; color: var(--muted); }
.ov-range { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.ov-svg { width: 100%; height: auto; display: block; }
.ov-svg text { font-size: 11px; fill: var(--muted); }
.ov-est { fill: var(--surface); stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 3 2; }
.ov-act { stroke: var(--surface); stroke-width: 2; }
.ov-act.is-beat { fill: var(--up); }
.ov-act.is-miss { fill: var(--down); }
.ov-act.is-na { fill: var(--muted); }
.ov-svg text.ov-surp { font-weight: 700; font-size: 11px; }
.ov-svg text.ov-surp.up { fill: var(--up); }
.ov-svg text.ov-surp.down { fill: var(--down); }
.ov-svg text.ov-next { font-style: italic; }
.ov-rev { fill: var(--accent); }
.ov-hit { fill: transparent; pointer-events: all; }
.ov-hit:hover { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.ov-ni { fill: var(--series-2); }
.ov-ni.is-neg { fill: var(--down); }
.ov-mline { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-dasharray: 4 3; }
.ov-mdot { fill: var(--text); stroke: var(--surface); stroke-width: 1.5; }
.ov-svg text.ov-mlab { fill: var(--text); font-weight: 600; font-size: 10.5px; }
.ov-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.ov-sw--beat { background: var(--up); border-radius: 50%; }
.ov-sw--miss { background: var(--down); border-radius: 50%; }
.ov-sw--na { background: var(--muted); border-radius: 50%; }
.ov-sw--est { border: 1.6px dashed var(--muted); border-radius: 50%; width: 9px; height: 9px; }
.ov-sw--rev { background: var(--accent); }
.ov-sw--ni { background: var(--series-2); }
.ov-sw--line { width: 16px; height: 0; border-top: 2px dashed var(--text); border-radius: 0; vertical-align: 3px; }
.ov-foot { margin: 10px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
/* price targets */
.tg-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 18px; }
.tg-head { display: grid; grid-template-rows: auto 2.1rem auto; justify-items: center; align-items: center; row-gap: 4px; padding: 0 18px; text-align: center; border-left: 1px solid var(--border); }
.tg-head:first-child { border-left: 0; }
.tg-head span { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tg-head b { font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.tg-head em { font-style: normal; font-size: .82rem; color: var(--muted); font-weight: 600; min-height: 1.1em; }
.tg-head em.up { color: var(--up); }
.tg-head em.down { color: var(--down); }
.tg-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.tg-col { min-width: 0; }
.tg-colhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 30px; }
.tg-colhead span { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tg-colhead em { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--text); }
.tg-head .tg-pill { display: inline-block; padding: 2px 14px; border-radius: 99px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.tg-head .tg-pill--buy { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.tg-head .tg-pill--sell { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); }
.tg-head .tg-pill--hold { background: var(--surface-2); color: var(--text); }
.tg-range { padding: 0 2px; }
.tg-track { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); }
.tg-band { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.tg-pin { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2.5px solid var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent); }
.tg-pin b { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .76rem; font-weight: 600; font-style: normal; }
.tg-pin--px { background: var(--text); z-index: 2; }
.tg-pin--px b { bottom: 18px; color: var(--text); }
.tg-pin--mean { background: var(--accent); z-index: 1; }
.tg-pin--mean b { top: 18px; color: var(--accent-text); }
.tg-ends { position: relative; height: 18px; margin-top: 34px; font-size: .76rem; color: var(--muted); }
.tg-ends span { position: absolute; white-space: nowrap; }
.tg-ends b { color: var(--text); font-weight: 600; }
.tg-stack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.tg-seg { display: block; }
.tg-seg--strongBuy { background: var(--up); }
.tg-seg--buy { background: color-mix(in srgb, var(--up) 55%, var(--surface)); }
.tg-seg--hold { background: color-mix(in srgb, var(--muted) 45%, var(--surface)); }
.tg-seg--sell { background: color-mix(in srgb, var(--down) 55%, var(--surface)); }
.tg-seg--strongSell { background: var(--down); }
.tg-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: .8rem; color: var(--muted); }
.tg-keys b { color: var(--text); font-weight: 600; }
.tg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.tg-then { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.tg-sub { margin: 22px 0 6px; }
.tg-table td .up { color: var(--up); font-weight: 600; }
.tg-table td .down { color: var(--down); font-weight: 600; }
.tg-prior, .tg-from { color: var(--muted); font-size: .8rem; }
/* seasonality */
.sz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.sz-verdict { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.sz-verdict p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.sz-badge { flex: none; padding: 6px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.sz-badge--buy { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
.sz-badge--sell { background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down); }
.sz-badge--neutral { background: var(--surface-2); color: var(--muted); }
.sz-wrap { overflow-x: auto; }
.sz-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; font-size: .76rem; min-width: 760px; }
.sz-table th { font-weight: 600; color: var(--muted); padding: 4px; text-align: center; font-size: .7rem; letter-spacing: .03em; }
.sz-table thead th span { display: inline-block; padding: 3px 10px; border-radius: 99px; }
.sz-table thead th.is-now span { background: var(--accent); color: #fff; }
.sz-table th[scope="row"], .sz-table thead th:first-child { text-align: left; padding-left: 4px; width: 56px; }
.sz-table th[scope="row"] { color: var(--text); font-weight: 600; }
.sz-table tr.sz-gap td { height: 8px; padding: 0; }
.sz-table td { text-align: center; padding: 7px 2px; border-radius: 6px; color: var(--text); font-weight: 500; }
.sz-table td.is-part { box-shadow: inset 0 0 0 2.5px var(--accent); }
.sz-table td.is-later { color: color-mix(in srgb, var(--muted) 55%, transparent); }
/* the summary rows, set apart from the years */
.sz-table tfoot tr.sz-avg th, .sz-table tfoot tr.sz-avg td { font-weight: 700; }
.sz-table tfoot tr.sz-avg th { position: relative; }
.sz-table tfoot tr.sz-hit td { color: var(--muted); font-weight: 600; padding-top: 6px; }
.sz-table tfoot td.is-now { color: var(--accent-text); }
/* (the Average row's cells are tinted green / red up to 58%, where no orange text reads well - 10 Nov 2026 contrast
   check: this month's average keeps the normal text and an accent ring instead; its header pill marks it too) */
.sz-table tfoot tr.sz-avg td.is-now { color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }
.sz-bar { display: block; height: 3px; margin: 5px auto 0; width: 70%; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sz-bar i { display: block; height: 100%; border-radius: 99px; background: color-mix(in srgb, var(--muted) 55%, transparent); }
.sz-bar i.is-up { background: var(--up); }
.sz-bar i.is-down { background: var(--down); }
@media (max-width: 900px) {
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .tg-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tg-head { border-left: 0; padding: 0; }
  .tg-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sz-top { flex-direction: column; align-items: flex-start; }
  .sz-verdict { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.pcmp-sw--faint { opacity: .55; }
.pcmp-card .vmark-line { stroke-dasharray: 1.5 4; stroke-linecap: round; stroke-width: 1.4; stroke: var(--text); opacity: .7; }
.pcmp-why { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .82rem; line-height: 1.5; }
.pcmp-why b { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pcmp-why ul { margin: 0; padding-left: 18px; }
.pcmp-why li { margin: 3px 0; }
/* the competitors table: each number centred under its own heading (wide headings over short numbers looked offset
   when both were right-aligned) */
.pcmp-peers thead th.num, .pcmp-peers td.num { text-align: center; }
/* the summary table the same way: every column after the first centred under its heading, sparklines and range bars
   included */
.pcmp-sum thead th:not(:first-child), .pcmp-sum td.num, .pcmp-sum td.pcmp-trend { text-align: center; }
.pcmp-sum .pcmp-trend svg, .pcmp-sum .pcmp-range { margin: 0 auto; }
.pcmp-sum .pcmp-key:last-child { margin-right: 0; }
/* Risk analysis extras */
.stock-rx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.rx-card { padding: 20px 22px; min-width: 0; }
.rx-sub { color: var(--muted); font-size: .8rem; }
.rx-note { margin: 12px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.rx-table th, .rx-table td { padding: 8px 9px; }
.rx-table td small, .rx-table th small { display: block; color: var(--muted); font-size: .74rem; font-weight: 400; }
.rx-table thead th.num, .rx-table td.num { text-align: center; }
.rx-neg { color: var(--down); }
.rx-falls { table-layout: fixed; width: 100%; font-variant-numeric: tabular-nums; }
.rx-falls td, .rx-falls th { padding: 10px 12px; }
.rx-falls th:first-child, .rx-falls td:first-child { padding-left: 4px; }
.rx-falls td.num small { display: inline; margin-left: 4px; color: var(--muted); font-size: .8rem; }
.rx-falls td.rx-neg { font-weight: 600; }
.rx-muted { color: var(--muted); }
.rx-shocks { table-layout: fixed; width: 100%; font-variant-numeric: tabular-nums; }
.rx-shocks td, .rx-shocks th { padding: 10px 12px; vertical-align: middle; }
.rx-shocks th:first-child, .rx-shocks td:first-child { padding-left: 4px; }
.rx-shocks td small { margin-top: 2px; }
.rx-shocks td.num { font-size: .92rem; }
.rx-shocks td.rx-own { font-weight: 600; }
.rx-pos { color: var(--up); }
.rx-peers tbody th { font-weight: 500; }
.rx-peers tbody th a { color: inherit; text-decoration: none; }
.rx-peers tbody th a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.rx-peers tr.rx-me { background: color-mix(in srgb, var(--accent-wash) 45%, transparent); }
.rx-peers tr.rx-me th, .rx-peers tr.rx-me td { font-weight: 700; }
.rx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rx-tile { border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
  align-items: center; text-align: center; }   /* figure boxes are always centred (user, 6 Oct 2026) */
.rx-tile span { color: var(--muted); font-size: .78rem; }
.rx-tile b { font-size: 1.25rem; }
.rx-tile em { font-style: normal; color: var(--muted); font-size: .76rem; }
.rx-tile--tip { position: relative; cursor: default; }
.rx-tile--tip:hover, .rx-tile--tip:focus-visible { border-color: var(--border-strong); outline: none; }
.rx-tile--tip::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 30;
  padding: 7px 11px; border-radius: 8px; white-space: nowrap; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .78rem; line-height: 1.4;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease;
}
.rx-tile--tip:hover::after, .rx-tile--tip:focus-visible::after { opacity: 1; visibility: visible; }
@media (max-width: 720px) { .rx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rx-card { padding: 16px 14px; } }
.linechart .lc-zone__lab { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; fill: var(--muted); opacity: .8; }
.linechart .xtick { stroke: var(--border-strong); stroke-width: 1; }
.linechart .lc-mark { fill: var(--surface); stroke: var(--text); stroke-width: 1.5; }
.linechart text.lc-mark__lab { fill: var(--text); font-size: 10.5px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
/* the Risk tab's charts sized to their own drawing (a fixed box height left empty space above the note) */
.rx-card .linechart { height: auto; display: block; }
.rx-card .rx-note { margin-top: 14px; }
.linechart .lc-zone__edge { stroke: var(--surface); stroke-width: 1.5; }

/* ---- Risk tab: factor exposures, results-day moves ---- */
.rx-facs { display: flex; flex-direction: column; }
.rx-fac { display: grid; grid-template-columns: 190px minmax(0, 1fr) 56px 210px; align-items: center; gap: 14px; padding: 9px 0; font-size: .85rem; }
.rx-fac + .rx-fac { border-top: 1px solid var(--border); }
.rx-fac__lab { font-weight: 500; }
.rx-fac__bar { position: relative; height: 10px; border-radius: 3px; background: var(--surface-2); }
.rx-fac__zero { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--text); opacity: .4; }
.rx-fac__one { position: absolute; top: -4px; bottom: -4px; width: 1px; border-left: 1px dashed var(--muted); }
.rx-fac__fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.rx-fac__fill.is-pos { background: var(--accent); } .rx-fac__fill.is-neg { background: var(--text-soft); }
.rx-fac__val { text-align: right; font-variant-numeric: tabular-nums; }
.rx-fac em { font-style: normal; color: var(--text); font-size: .8rem; }
/* (every row solid and in the normal colours - user, 18 Oct 2026: no faded or see-through rows) */
.rx-ev { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.rx-ev__col { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; }
.rx-ev__pc { font-weight: 600; font-variant-numeric: tabular-nums; } .rx-ev__pc.up { color: var(--up); } .rx-ev__pc.down { color: var(--down); }
.rx-ev__track { position: relative; width: 100%; max-width: 46px; height: 110px; border-bottom: 0; background: linear-gradient(var(--border), var(--border)) center / 100% 1px no-repeat; }
.rx-ev__track i { position: absolute; left: 18%; right: 18%; border-radius: 3px; }
.rx-ev__track i.is-up { background: var(--up); } .rx-ev__track i.is-down { background: var(--down); }
.rx-ev__d { display: flex; flex-direction: column; align-items: center; color: var(--muted); white-space: nowrap; }
.rx-ev__d b { font-weight: 600; font-size: .7rem; } .rx-ev__d b.up { color: var(--up); } .rx-ev__d b.down { color: var(--down); }
@media (max-width: 720px) {
  .rx-fac { grid-template-columns: 120px minmax(0, 1fr) 48px; } .rx-fac em { grid-column: 1 / -1; }
  .rx-ev { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
}
/* ---- Dividends: total shareholder yield ---- */
.rx-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rx-tile--main { border-color: var(--accent); background: var(--accent-wash); }
.shy-basis { font-size: .78rem; color: var(--muted); }
.shy-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.shy-foot .div-legend { margin: 0; }
.shy-eq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin-top: 4px; }
.shy-eq__part { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 11px 16px; }
.shy-eq__part + .shy-eq__part { border-left: 1px solid var(--border); }
.shy-eq__part span { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--text); }
.shy-eq__part b { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.shy-eq__part.is-total span { font-weight: 600; }
.shy-sub { margin: 24px 0 4px; font-size: .86rem; font-weight: 600; }
.shy-chart-wrap { margin-top: 2px; }
.shy-chart { width: 100%; height: auto; display: block; }
.shy-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.shy-grid.is-base { stroke: var(--border-strong); stroke-dasharray: none; }
.shy-ax { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.shy-bb { fill: color-mix(in srgb, var(--accent) 40%, var(--surface)); }
.shy-dv { fill: var(--accent); }
.shy-bar:hover .shy-bb { fill: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.shy-val { font-size: 13px; font-weight: 700; fill: var(--text); font-variant-numeric: tabular-nums; }
.shy-yrl { font-size: 12.5px; fill: var(--muted); }
.shy-bar.is-last .shy-yrl { fill: var(--text); font-weight: 600; }
.shy-sw--dv { background: var(--accent); } .shy-sw--bb { background: color-mix(in srgb, var(--accent) 40%, var(--surface)); }
@media (max-width: 720px) {
  .shy-eq { grid-template-columns: minmax(0, 1fr); }
  .shy-eq__part + .shy-eq__part { border-left: 0; border-top: 1px solid var(--border); }
}
/* ---- Peer Comparison: growth vs valuation ---- */
.pcs { width: 100%; height: auto; display: block; }
.pcs text { font-size: 11px; fill: var(--muted); }
.pcs .pcs-ax { font-size: 11.5px; fill: var(--muted); }
.pcs .pcs-corner { font-size: 11px; fill: var(--muted); font-style: italic; opacity: .75; }
.pcs-grid { stroke: var(--border); stroke-width: 1; }
.pcs-grid--v { stroke-dasharray: 2 4; }
.pcs-zero { stroke: var(--text); stroke-opacity: .3; }
.pcs-fit { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-dasharray: 7 5; }
.pcs-pt circle { fill: color-mix(in srgb, var(--text) 50%, transparent); stroke: var(--surface); stroke-width: 1.6; }
.pcs-pt:hover circle { fill: var(--text); }
.pcs .pcs-pt text { fill: var(--text); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.pcs-pt.is-me circle { fill: var(--accent); }
.pcs .pcs-pt.is-me text { font-weight: 800; fill: var(--accent-ink); font-size: 13px; }
.pcs-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.pcs-key span { display: inline-flex; align-items: center; gap: 7px; }
.pcs-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text) 50%, transparent); }
.pcs-dot--me { background: var(--accent); width: 12px; height: 12px; }
.pcs-dash { display: inline-block; width: 22px; border-top: 2px dashed var(--muted); }
.pcs-note { margin: 10px 0 0; font-size: .84rem; color: var(--muted); }
/* ---- Financials: earnings quality ---- */
.eq-card { margin-top: 16px; padding: 20px 22px; }
.eq-tile--up b { color: var(--up); } .eq-tile--mid b { color: var(--text); } .eq-tile--down b { color: var(--down); }
.eq-table { width: 100%; margin-top: 16px; font-variant-numeric: tabular-nums; }
.eq-table th, .eq-table td { padding: 9px 12px; } .eq-table tbody th { font-weight: 500; text-align: left; }
.eq-table thead th.num, .eq-table td.num { text-align: center; }
/* ---- Overview: key upcoming dates ---- */
@media (max-width: 720px) { .rx-tiles--3 { grid-template-columns: minmax(0, 1fr); } }

/* results-day moves chart */
.rx-evc-wrap { margin-top: 18px; }
.rx-evc { width: 100%; height: auto; display: block; }
.rx-evc__band { fill: var(--surface-2); }
.rx-evc__bandlab { font-size: 11px; fill: var(--muted); }
.rx-evc__grid { stroke: var(--border); stroke-width: 1; }
.rx-evc__grid.is-zero { stroke: var(--text); stroke-opacity: .45; }
.rx-evc__ax { font-size: 11px; fill: var(--muted); }
.rx-evc__bar.is-up rect { fill: var(--up); } .rx-evc__bar.is-down rect { fill: var(--down); }
.rx-evc__bar.is-small rect { fill-opacity: .45; }
.rx-evc__val { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rx-evc__bar.is-up .rx-evc__val { fill: var(--up); } .rx-evc__bar.is-down .rx-evc__val { fill: var(--down); }
.rx-evc__date { font-size: 11.5px; fill: var(--text); }
.rx-evc__beat { font-size: 11px; font-weight: 600; } .rx-evc__beat.up { fill: var(--up); } .rx-evc__beat.down { fill: var(--down); }
.rx-evc__key { margin-top: 6px; }
.rx-evc__k-up { background: var(--up); } .rx-evc__k-down { background: var(--down); }
.rx-evc__k-band { background: var(--surface-2); border: 1px solid var(--border); }
.rx-evc__k-small { background: color-mix(in srgb, var(--up) 45%, transparent); }

/* the rating: plain text, "Rating" in grey then the call in bold in its colour */
.sval-rec { --rc: var(--text); display: inline-flex; align-items: baseline; gap: 6px; font-family: "Newsreader", Georgia, serif;
  font-size: 1.17rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.15; }   /* the card title's own font, size and weight */
.sval-rec--up { --rc: var(--up); } .sval-rec--down { --rc: var(--down); }
.sval-rec__lab { color: var(--muted); font-weight: 400; }
.sval-rec__call { color: var(--rc); font-weight: 700; }


/* ============================================================
   Design layer (redesign, 6 Oct 2026): a sharper, institutional finance look. Revert = the git tag
   pre-redesign-2026-10-06.
   ============================================================ */

/* masthead: solid white bar, navigation underlined rather than pill-shaped */
.topbar { background: var(--surface); backdrop-filter: none; border-bottom: 1px solid var(--border); }
.topbar__inner { padding: 10px 22px; gap: 18px; }
.brand__word { letter-spacing: -.01em; }
.mainnav { gap: 2px; }
.mainnav a { position: relative; border-radius: 6px; padding: 8px 12px; font-size: .92rem; color: var(--text-soft); }
.mainnav a:hover { background: transparent; color: var(--text); }
.mainnav a.is-active, :root[data-theme="dark"] .mainnav a.is-active { background: transparent; color: var(--text); font-weight: 600; }
.mainnav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 2px; background: var(--accent); }
.locpicker__btn, .theme-slider__track { border-color: var(--border); }
.locpicker__btn { border-radius: 8px; }

/* market tape: a dark navy strip, like a terminal ticker */
.tickerbar { background: var(--navy); border-top: 0; border-bottom: 1px solid var(--navy-2); }
.tickerbar__track { padding: 7px 0; gap: 34px; }
.tick { font-size: .8rem; }
.tick__sym { color: #FFFFFF; font-weight: 600; letter-spacing: .04em; }
.tick__px { color: #B9B9BE; }
.tickerbar .tick__chg.up, .tickerbar .up { color: #3DD68C; }
.tickerbar .tick__chg.down, .tickerbar .down { color: #FF6F7D; }

/* cards: flat, hairline borders, minimal shadow */
.card { box-shadow: 0 1px 0 rgba(20,22,28,.03); border-color: var(--border); }
:root[data-theme="dark"] .card { box-shadow: none; }

/* section headings: serif title with a strong rule above, newspaper style */
.section-title { font-size: 1.25rem; padding-top: 12px; border-top: 2px solid var(--text); gap: 12px; }
.section-title .rule { display: none; }
/* (straight under a tab bar, whose own line already separates it) */
.st-panel > .section-title:first-child, .st-panel .section-title.is-lead { border-top: 0; padding-top: 0; margin-top: 4px; }

/* labels */
.eyebrow { letter-spacing: .12em; font-size: .7rem; }

/* buttons and segmented controls: squarer */
.pill-btn { border-radius: 6px; border-color: var(--border-strong); }
.pill-btn.is-active { background: var(--text); border-color: var(--text); color: var(--surface); }

/* tables: firmer header rule, quieter body lines, hover rows */
.st-table thead th { color: var(--muted); border-bottom: 1px solid var(--border-strong); font-size: .7rem; letter-spacing: .07em; }
.st-table th, .st-table td { border-bottom-color: var(--border); }
.st-table tbody tr:hover > * { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }

/* stock page tabs */
.st-tabs { border-bottom-color: var(--border-strong); }

/* hero */
.lead__hero { border: 0; }
.lead__hero:hover { transform: none; box-shadow: 0 0 0 2px var(--accent); }
.lead__hero--wait:hover { box-shadow: none; }

/* footer */
.sitefoot { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 20px; }

/* links inside text */
.view p a:not([class]) { color: var(--link); }
.tickerbar .flash-up { animation-name: tapeUp; } .tickerbar .flash-down { animation-name: tapeDown; }
@keyframes tapeUp { 0% { background: rgba(61,214,140,.28); } 100% { background: transparent; } }
@keyframes tapeDown { 0% { background: rgba(255,111,125,.28); } 100% { background: transparent; } }
.lead__hero--blog .meta { color: #F0A58E; }
.lead__hero .live-dot { background: #F0A58E; }

/* dropdowns: one consistent control everywhere (flat, hairline border, drawn chevron) */
.view select:not([multiple]) {
  -webkit-appearance: none; appearance: none; height: 32px; padding: 0 30px 0 11px; border-radius: 6px;
  border: 1px solid var(--border-strong); color: var(--text); font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%235D6879' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 12px;
}
.view select:not([multiple]):hover { border-color: var(--text-soft); }
.view select:not([multiple]):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
:root[data-theme="dark"] .view select:not([multiple]) { background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%238B98AB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.view select option { color: var(--text); background: var(--surface); }

/* headlines in lists: the serif headline face, like a newspaper's index */
.news-row__title { font-family: "Newsreader", Georgia, serif; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.news-row--filing .news-row__title { font-family: var(--font-ui); font-size: .95rem; letter-spacing: 0; }
.news-row:hover .news-row__title { color: var(--accent-ink); }

/* native radios, checkboxes and range sliders in the accent */
:root { accent-color: var(--accent); }
/* the phone header: navigation sits on its own scrolling row, so its underline goes at the foot of the link */

/* ---- stock page: Quant tab (11 Oct 2026; tidied the same day) ---- */
#stQt { display: block; }
.qt-glance { margin-bottom: 18px; }
.qt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.qt-grid > .qt-wide { grid-column: 1 / -1; }
.qt-card { display: flex; flex-direction: column; }
.qt-card > .sa-h { margin-bottom: 12px; }
.qt-card .table-scroll { flex: 0 0 auto; }
.qt-note { margin: auto 0 0; padding-top: 12px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.qt-tip { border-bottom: 1px dotted var(--border-strong); cursor: help; }
.qt-table tr.qt-sub th, .qt-table tr.qt-sub td { color: var(--muted); font-size: .8rem; padding-top: 0; }
.qt-table tr.qt-sub th { padding-left: 14px; }
.qt-var th.qt-grp { text-align: center; border-bottom: 1px solid var(--border); }
.qt-of { color: var(--muted); font-size: .76rem; font-weight: 400; }
/* a bond auction's bid-to-cover under its yield in the calendar tables, "3.2x cover" (user, 29 Nov 2026) */
.cal-cover { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; line-height: 1.25; white-space: nowrap; }
.qt-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.5;
  background: var(--surface-2); color: var(--text-soft); white-space: nowrap; }
.qt-pill--up { background: var(--up-wash); color: var(--up); }
.qt-pill--down { background: var(--down-wash); color: var(--down); }
.qt-pill--mid { background: var(--accent-wash); color: var(--accent-ink); }
.qt-tiles .rx-tile span .qt-tip { border-bottom-color: var(--border); }
.qt-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 16px; }
.qt-h4 { margin: 0 0 8px; font-size: .9rem; }
.qt-score { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.qt-score b { font-size: 1.6rem; font-weight: 600; }
/* the Q-Score card */
.qs-card { display: grid; grid-template-columns: minmax(190px, 0.75fr) minmax(0, 2.2fr); column-gap: 32px; row-gap: 16px;
  padding: 24px 28px 18px; margin-bottom: 18px; align-items: center; }
.qs-main { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; padding-right: 32px;
  border-right: 1px solid var(--border); align-self: stretch; justify-content: center; }
.qs-label { font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.qs-score { display: flex; align-items: baseline; }
.qs-score b { font-size: 2.9rem; font-weight: 700; line-height: 1; color: var(--text); letter-spacing: -.02em; }
.qs-score span { font-size: 1.05rem; color: var(--muted); margin-left: 5px; }
.qs-meter { display: flex; gap: 4px; margin: 2px 0 4px; }
.qs-meter i { display: block; width: 24px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.qs-meter b { display: block; height: 100%; background: var(--muted); }
.qs-card--up .qs-meter b { background: var(--up); }
.qs-card--down .qs-meter b { background: var(--down); }
.qs-card--mid .qs-meter b { background: var(--accent); }
.qs-rank { font-size: .78rem; color: var(--muted); }
.qs-groups { display: flex; flex-direction: column; }
.qs-row { display: grid; grid-template-columns: minmax(150px, 1fr) 52px minmax(0, 2fr) 46px; column-gap: 14px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.qs-row:last-child { border-bottom: 0; }
.qs-row.is-na { color: var(--muted); }
.qs-row.is-info .qs-bar i { opacity: .45; }
.qs-row.is-info { color: var(--text-soft); }
.qs-hdr { padding-top: 0; font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.qs-hdr .qs-name { font-size: .7rem; }
.qs-wt { color: var(--muted); font-size: .8rem; text-align: right; }
.qs-hdr .qs-wt { font-size: .7rem; }
.qs-scale { display: flex; justify-content: space-between; font-weight: 500; letter-spacing: 0; text-transform: none; }
.qs-bar { position: relative; height: 8px; border-radius: 4px; background: var(--surface-3); }
.qs-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--border-strong); }
.qs-bar i.is-hi { background: var(--up); }
.qs-bar i.is-lo { background: var(--down); }
.qs-bar i.is-mid { background: var(--text-soft); opacity: .45; }
.qs-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); opacity: .6; }
.qs-row b { text-align: center; font-weight: 600; }
.qs-meter b.is-growing, .qs-bar i.is-growing { transition: width 1.1s cubic-bezier(.33, 1, .68, 1); }
.qs-hdr b { font-weight: 600; }
@media (max-width: 760px) { .qs-card { grid-template-columns: minmax(0, 1fr); padding: 20px 18px 16px; }
  .qs-main { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--border); }
  .qs-row { grid-template-columns: minmax(100px, 1fr) 40px minmax(0, 1.2fr) 34px; column-gap: 10px; } }
/* a half-width card's tiles: two by two, filling the card's height beside its neighbour */
.qt-card:not(.qt-wide) .qt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; flex: 1 1 auto; }
.qt-card:not(.qt-wide) .qt-tiles .rx-tile { justify-content: center; }
.qt-card:not(.qt-wide) .qt-tiles .rx-tile b { font-size: 1.45rem; }
.qt-table td.num { white-space: nowrap; }
@media (max-width: 900px) { .qt-grid, .qt-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { #stQt .rx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Options page: profit calculator (11 Oct 2026; restyled the same day) ---- */
.opt-hero { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 20px 24px; margin-bottom: 16px; }
.opt-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 4px 4px 4px 12px; background: var(--surface); }
.opt-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.opt-search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: 0 0 auto; }
.opt-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text); padding: 7px 0; }
.opt-go { border: 0; border-radius: 7px; background: var(--accent); color: #fff; font: inherit; font-size: .86rem; font-weight: 600; padding: 8px 16px; cursor: pointer; }
.opt-go:hover { background: var(--accent-ink); }
.opt-quote { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name px" "chips chips"; gap: 6px 20px; align-items: center;
  padding-left: 28px; border-left: 1px solid var(--border); min-height: 64px; }
.opt-quote__name { grid-area: name; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.opt-quote__name h2 { font-size: 1.45rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-quote__px { grid-area: px; display: flex; align-items: baseline; gap: 10px; }
.opt-quote__px b { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.opt-quote__px span { font-size: .95rem; font-weight: 600; }
.opt-quote__chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 6px; }
.opt-build { padding: 18px 22px 16px; margin-bottom: 16px; }
.opt-strats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.opt-strats__lab { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.opt-chip { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); border-radius: 999px; padding: 5px 12px;
  font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.opt-chip:hover { border-color: var(--accent); color: var(--text); }
.opt-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt-chip--ghost { cursor: default; border-style: dashed; }
.opt-chip--ghost:hover { border-color: var(--border-strong); color: var(--text-soft); }
.opt-chip--ghost.is-active { background: var(--accent-wash); color: var(--accent-ink); border-color: var(--accent); border-style: solid; }
.opt-legs { width: 100%; }
.opt-legs thead th { text-align: left; }
.opt-legs thead th.num { text-align: right; }
.opt-legs td, .opt-legs th { padding: 7px 8px; vertical-align: middle; }
.opt-legs td.num { text-align: right; }
.opt-legs input, .opt-legs select { font: inherit; font-size: .88rem; font-weight: 500; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 7px; padding: 6px 8px; height: 34px; }
.opt-legs input:focus, .opt-legs select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.opt-legs input[type="number"] { width: 88px; text-align: right; }
.opt-legs input[data-k="qty"] { width: 72px; }
.opt-legs td.num input[data-k="iv"] { width: 66px; margin-right: 3px; }
.opt-legs select { min-width: 92px; }
.opt-legs select[data-k="date"] { min-width: 128px; }
.opt-side { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 7px; overflow: hidden; }
.opt-side button { border: 0; background: var(--surface); color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600; padding: 7px 12px; cursor: pointer; }
.opt-side button + button { border-left: 1px solid var(--border-strong); }
.opt-side button.is-buy { background: var(--up-wash); color: var(--up); }
.opt-side button.is-sell { background: var(--down-wash); color: var(--down); }
.opt-x { border: 0; background: none; color: var(--muted); font-size: 1.25rem; cursor: pointer; line-height: 1; padding: 3px 8px; border-radius: 6px; }
.opt-x:hover { color: var(--down); background: var(--down-wash); }
.opt-legs-foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.opt-add { border: 1px dashed var(--border-strong); background: none; color: var(--text-soft); border-radius: 8px; padding: 7px 14px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.opt-fixed { display: inline-block; padding: 6px 2px; font-size: .88rem; font-weight: 600; color: var(--text); }
/* watchlist weights (custom lists): the bar above the members table, and the Weight column */
.holdings td.h-na { color: var(--muted); }
.holdings tfoot td { padding: 10px 8px 4px; border-bottom: 0; }
.wl-optpick { padding: 10px 8px; border-top: 1px solid var(--border); margin-top: 4px; }
.wl-optpick__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; font-size: .86rem; }
.wl-optpick__row label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.wl-optpick__row select { padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; font-size: .86rem; text-transform: none; letter-spacing: 0; }
.wl-optpick__row .wl-wbar__edit { margin-left: 0; }
.holdings caption.h-note { caption-side: bottom; text-align: left; padding: 10px 8px 2px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.wl-new-err { margin: 8px 0 0; color: var(--down); font-size: .84rem; }
/* ---------- the watchlist pop-up: create and edit (user, 24 Nov 2026: "clean up the watchlist creation pop up, make it
   visually better and stock/instrument search smoother") - head with the x, a body that scrolls, the button fixed below ---------- */
.modal.wlp { max-width: 580px; padding: 0; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; outline: none;
  max-height: calc(100vh - 80px); max-height: calc(100dvh - min(7vh, 60px) - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  box-shadow: 0 24px 60px rgba(10, 14, 22, .22), 0 2px 8px rgba(10, 14, 22, .08); }
/* (held near the top, so it grows downwards as the results open and rows are added instead of re-centring - which moved
   the x and the button under the pointer) */
.modal-root:has(> .modal.wlp) { place-items: start center; padding-top: calc(min(7vh, 60px) + env(safe-area-inset-top, 0px)); }
/* (a click outside a pop-up that only its x closes: a small nudge, so the click isn't simply ignored) */
.modal.is-nudge { animation: modal-nudge .3s ease; }
@keyframes modal-nudge { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.016); } }
.wlp__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }
.modal .wlp__head h3 { margin: 0 0 4px; font-size: 1.35rem; }
.modal .wlp__sub { margin: 0; font-size: .86rem; color: var(--muted); }
.wlp__x { flex: none; width: 36px; height: 36px; margin: -5px -9px 0 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: none;
  color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.wlp__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wlp__x:hover { background: var(--surface-2); color: var(--text); }
.wlp__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 10px; }
.wlp__lab { display: block; margin: 18px 0 7px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.wlp__body > .wlp__lab:first-child { margin-top: 0; }
.wlp__name, .wlp__search input { width: 100%; height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface);
  color: var(--text); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.wlp__name { padding: 0 14px; }
.wlp__name:focus, .wlp__search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.wlp__name::placeholder, .wlp__search input::placeholder { color: var(--muted); }
.wlp__search { position: relative; }
.wlp__search input { padding: 0 44px 0 40px; }
.wlp__glass { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2;
  stroke-linecap: round; pointer-events: none; }
.wlp__clear { position: absolute; right: 7px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); display: grid; place-items: center; border: 0;
  border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.wlp__clear svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wlp__clear:hover { background: var(--surface-2); color: var(--text); }
.wlp__spin { position: absolute; right: 15px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid var(--border-strong); border-top-color: var(--accent);
  border-radius: 50%; animation: wlp-spin .7s linear infinite; }
.wlp__clear[hidden], .wlp__spin[hidden] { display: none; }
@keyframes wlp-spin { to { transform: rotate(360deg); } }
.wlp__res { list-style: none; margin: 6px 0 0; padding: 6px; max-height: 318px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); box-shadow: 0 10px 28px rgba(10, 14, 22, .10); }
.wlp__grp { padding: 6px 10px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.wlp__hit { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  font-size: .88rem; }
.wlp__hit.is-hl { background: var(--surface-2); }
.wlp__hn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); }
.wlp__hn b { color: var(--text); font-weight: 650; margin-right: 2px; }
.wlp__hn mark { padding: 0; border-radius: 0; background: none; color: var(--accent-ink); font-weight: 700; }
.wlp__hs { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .78rem; }
.wlp__more { padding: 10px; color: var(--muted); font-size: .86rem; }
.wlp__badge { justify-self: start; padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-soft); font-size: .62rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.wlp__listhead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; margin: 22px 0 10px; }
.wlp__lab--in { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.wlp__n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-ink); font-size: .7rem; letter-spacing: 0; text-align: center; }
.wlp__n:empty { display: none; }
.wlp__rows { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.wlp__rows:has(> .wlp__empty) { border-style: dashed; border-color: var(--border-strong); }
.wlp__row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 32px; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--border);
  background: var(--surface); font-size: .9rem; }
.wlp__row:first-child { border-top: 0; }
.wlp__row.is-new { animation: wlp-new 1.8s ease; }
@keyframes wlp-new { 0%, 30% { background: var(--accent-wash); } 100% { background: var(--surface); } }
.wlp__nm { min-width: 0; display: flex; align-items: baseline; gap: 8px; overflow: hidden; white-space: nowrap; }
.wlp__nm b { flex: none; color: var(--text); font-weight: 650; }
.wlp__nm span { overflow: hidden; text-overflow: ellipsis; color: var(--text-soft); }
.wlp__eq { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.wlp__win { display: inline-flex; align-items: center; gap: 5px; }
.wlp__win input { width: 76px; height: 32px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text);
  font: inherit; font-size: .88rem; text-align: right; font-variant-numeric: tabular-nums; }
.wlp__win input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.wlp__win span { color: var(--muted); font-size: .84rem; }
.wlp__rm { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s; }
.wlp__rm svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.wlp__rm:hover { background: var(--down-wash); color: var(--down); }
.wlp__empty { display: grid; justify-items: center; gap: 4px; padding: 22px 18px; background: var(--surface-2); text-align: center; }
.wlp__empty b { color: var(--text); font-size: .92rem; }
.wlp__empty span { max-width: 340px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.modal .wlp__tot { margin: 10px 2px 0; color: var(--text-soft); font-size: .84rem; text-align: right; font-variant-numeric: tabular-nums; }
.modal .wlp__tot b { color: var(--text); }
.modal .wlp__tot.is-off { color: var(--accent-ink); }
.modal.wlp .wl-new-err { margin: 10px 0 0; color: var(--down); font-size: .86rem; }
.wlp .wl-optpick { margin-top: 4px; }
.wlp__actions { display: flex; justify-content: flex-end; padding: 14px 24px 18px; border-top: 1px solid var(--border); background: var(--surface); }
.wlp__actions .btn { min-width: 172px; height: 44px; border-radius: 10px; }
@media (max-width: 640px) {
  .wlp__head { padding: 16px 16px 12px; }
  .wlp__body { padding: 14px 16px 8px; }
  .wlp__actions { padding: 12px 16px 14px; }
  .wlp__actions .btn { width: 100%; }
  .wlp__hit { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .wlp__hs { display: none; }
  .wlp__row { grid-template-columns: 64px minmax(0, 1fr) auto 30px; gap: 8px; padding-left: 10px; }
  .wlp__nm { flex-direction: column; align-items: flex-start; gap: 0; }
  .wlp__nm span { max-width: 100%; font-size: .8rem; }
}
/* (pop-ups stay clear of the phone's status bar and gesture bar in the app - seen on the S24, 8 Nov 2026) */
.modal-root { padding-top: calc(20px + env(safe-area-inset-top, 0px)); padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.wl-wbar__edit { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.wl-wbar__edit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.wl-wbar__edit:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }
.holdings td.h-wt { font-variant-numeric: tabular-nums; font-weight: 600; }
.opt-reset { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.opt-reset svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.opt-reset:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }
.opt-add:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }
.opt-field { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.opt-inline { flex-direction: row; align-items: center; gap: 8px; }
.opt-field select, #optMult { font: inherit; font-size: .86rem; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px; padding: 5px 8px; }
#optMult { width: 80px; text-align: right; }
.opt-sum { margin-bottom: 16px; }
.opt-card { margin-bottom: 16px; }
/* Options page: volatility smile (SABR fit, 15 Nov 2026) */
.opt-smile { width: 100%; height: auto; display: block; }
.opt-smile text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.opt-smile .axis-label { fill: var(--text-soft); }
.opt-smile__fit { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.opt-smile__pt { fill: var(--surface); stroke: var(--text); stroke-width: 1.2; }
.opt-smile__sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.2px solid var(--text); background: var(--surface); vertical-align: middle; margin-right: 6px; }
.opt-smile__tiles { margin: 14px 0 4px; box-shadow: none; }
.opt-card .div-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.opt-ctl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.opt-ctl .seg { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; gap: 2px; }
.opt-ctl .seg .pill-btn { border: 0; background: none; border-radius: 7px; padding: 5px 12px; font-size: .82rem; color: var(--muted); }
.opt-ctl .seg .pill-btn.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(20,22,28,.12); }
.opt-ctl .seg .pill-btn:disabled { opacity: .4; cursor: default; }
/* the returns matrix: a heatmap of rounded tiles */
.opt-matrix { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.opt-matrix thead th { padding: 4px 4px 8px; font-size: .72rem; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; border: 0; }
.opt-matrix thead th small { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.opt-matrix thead th.is-exp { color: var(--text); }
.opt-matrix tbody th { padding: 0 10px 0 0; text-align: right; font-weight: 600; white-space: nowrap; border: 0; font-size: .8rem; }
.opt-matrix tbody th small { margin-left: 6px; font-weight: 500; color: var(--muted); font-size: .72rem; display: inline-block; min-width: 34px; text-align: left; }
.opt-matrix td { padding: 0; border: 0; text-align: center; }
.opt-matrix td span { display: block; padding: 6px 4px; border-radius: 5px; white-space: nowrap; color: var(--text); }
.opt-matrix td.is-deep span { font-weight: 600; color: #fff; }
.opt-matrix tr.is-now th { color: var(--accent-ink); }
.opt-matrix tr.is-now td span { box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 700; }
.opt-matrix tr.is-now th small { color: var(--accent-ink); }
@media (max-width: 760px) { .opt-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .opt-quote { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--border); grid-template-areas: "name" "px" "chips"; grid-template-columns: minmax(0, 1fr); } }

/* watchlist: Analyst view (Overview) and Valuation tab (12 Oct 2026) */
.wl-an { padding: 18px 20px; }
.rx-tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .rx-tiles--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rx-tiles--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wl-an .rx-tile b .tg-pill { font-size: .9rem; }
.wl-an__rat { margin-top: 18px; }
.wl-an__table tbody tr[data-href], .wl-val__table tbody tr[data-href] { cursor: pointer; }
.wl-an__table tbody tr:hover td, .wl-val__table tbody tr:hover td { background: var(--surface-2); }
.wl-an__table td a, .wl-val__table td a { color: inherit; text-decoration: none; font-weight: 500; }
.wl-an__table td a:hover, .wl-val__table td a:hover, .wl-an .tg-table td a:hover { color: var(--accent); }
.wl-an .tg-table td a { color: inherit; text-decoration: none; }
.wl-an .div-more { margin-top: 12px; }
.wl-an .tg-pill { display: inline-block; padding: 1px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; line-height: 1.5;
  background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-soft); }
.wl-an .tg-pill--buy { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.wl-an .tg-pill--sell { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); }
/* (a figure's own coloured part - a move, a rating pill - isn't the tile's grey label text) */
.rx-tile b span { font-size: inherit; }
.rx-tile b .up { color: var(--up); }
.rx-tile b .down { color: var(--down); }

/* watchlist Valuation tab: six figure boxes, the fair-value ranges and the valuation-vs-growth chart (12 Oct 2026) */
.rx-tiles--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* (user, 20 Oct 2026: the watchlist Valuation boxes' figures bigger) */
.rx-tiles--6 .rx-tile { padding: 16px 14px 14px; gap: 6px; }
.rx-tiles--6 .rx-tile b { font-size: 1.7rem; line-height: 1.15; letter-spacing: -.01em; }
@media (max-width: 640px) { .rx-tiles--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wl-an .rx-tiles--3 { margin-bottom: 18px; }
@media (max-width: 720px) { .wl-an .rx-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.wl-val__lede { margin: 0 0 12px; font-size: .92rem; color: var(--text-soft); }
.wl-fv__row { display: grid; grid-template-columns: minmax(110px, 24%) minmax(0, 1fr) 56px; align-items: center; gap: 14px; min-height: 30px;
  font-size: .86rem; color: inherit; text-decoration: none; }
a.wl-fv__row:hover .lag-name { color: var(--accent); }
.wl-fv__head { font-size: .74rem; color: var(--muted); min-height: 22px; }
.wl-fv__head > span:last-child { text-align: right; }
.wl-fv__scale { position: relative; height: 18px; }
.wl-fv__scale i { position: absolute; transform: translateX(-50%); font-style: normal; white-space: nowrap; font-size: .72rem; color: var(--muted); }
.wl-fv__track { position: relative; height: 10px; }
.wl-fv__track::before { content: ""; position: absolute; left: var(--zero); top: -6px; bottom: -6px; border-left: 1px dashed var(--border-strong); display: none; }
.wl-fv__band { position: absolute; top: 1px; bottom: 1px; border-radius: 99px; background: color-mix(in srgb, var(--text) 14%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--down) 22%, transparent), color-mix(in srgb, var(--text) 10%, transparent) 50%, color-mix(in srgb, var(--up) 24%, transparent)); }
.wl-fv__base { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; border-radius: 2px; z-index: 1; }
.wl-fv__base.up { background: var(--up); }
.wl-fv__base.down { background: var(--down); }
.wl-sc { width: 100%; height: auto; display: block; }
.wl-sc text { font-size: 11px; fill: var(--muted); }
.wl-sc .axis-label { font-size: 11px; fill: var(--text-soft); }
.wl-sc__pt circle { fill: color-mix(in srgb, var(--accent) 30%, transparent); stroke: var(--accent); stroke-width: 1.5; }
.wl-sc__pt text { fill: var(--text); font-size: 11.5px; }
.wl-sc__peg { stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 5 4; }
.wl-sc__sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 30%, transparent); border: 1.5px solid var(--accent); vertical-align: middle; }
@media (max-width: 640px) { .wl-fv__row { grid-template-columns: minmax(80px, 30%) minmax(0, 1fr) 46px; gap: 8px; } }

/* watchlist Valuation tab, polished (12 Oct 2026): one card per section, a one-line reading at the top of each */
.wl-val { padding: 20px 22px; }
.wl-val .wl-val__lede { margin: 0 0 16px; font-size: .95rem; line-height: 1.5; color: var(--text); }
.wl-val__sub { margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--border); }
.wl-val__table th .th-sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
/* (the figure columns centred under their headings - user, 13 Oct 2026) */
.wl-val__table th.num, .wl-val__table td.num { text-align: center; }
.wl-val__table th.num .th-sort { width: 100%; justify-content: center; text-align: center; }
.wl-val__table th.is-sorted { color: var(--text); }
.wl-val__table .th-arrow { margin-left: 3px; }
.wl-val__table tfoot td { border-bottom: 0; }
.wl-val__total td { font-weight: 600; border-top: 1px solid var(--border-strong); background: var(--surface-2); }
.wl-val__ix td { color: var(--muted); font-size: .84rem; }
.wl-val .stock-fin__src { margin-top: 14px; }
/* fair-value range: a % scale, bars shaded from the bear end to the bull end, and a key */
.wl-fv__scale i.is-zero { color: var(--text-soft); font-weight: 600; }
.wl-fv__row:not(.wl-fv__head) { border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); min-height: 34px; }
.wl-fv__key { margin-top: 12px; }
.wl-fv__keyband { display: inline-block; width: 26px; height: 8px; border-radius: 99px; vertical-align: middle;
  background: linear-gradient(90deg, color-mix(in srgb, var(--down) 22%, transparent), color-mix(in srgb, var(--up) 24%, transparent)); }
.wl-fv__keybase { display: inline-block; width: 3px; height: 14px; border-radius: 2px; background: var(--up); vertical-align: middle; }
/* valuation vs growth: the corners named */
.wl-sc .wl-sc__corner { font-size: 11px; fill: var(--muted); font-style: italic; }
@media (max-width: 640px) { .wl-fv__scale i:not(.is-zero) { display: none; } }
/* fair-value range: today's price as a clear line on each bar, naming the price on hover */
.wl-fv__now { position: absolute; top: -9px; bottom: -9px; width: 14px; margin-left: -7px; cursor: default; z-index: 2; }
.wl-fv__now::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; border-left: 2px dashed var(--text-soft); }
.wl-fv__now:hover::before { border-left-color: var(--text); }
.wl-fv__now::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 4px 8px; border-radius: 6px; background: var(--text); color: var(--bg, #fff); font-size: .74rem; font-weight: 600;
  opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.wl-fv__now:hover::after { opacity: 1; visibility: visible; }
.wl-contrib .stock-fin__src { margin: 14px 0 0; }

/* watchlist Members table, polished (12 Oct 2026): name first, a weight bar, returns grouped (coloured text, no fill) */
.wl-page .members-card .wl-skel td { height: 63px; }
.wl-page .members-card .holdings td { padding: 10px 12px; }
.wl-page .members-card .holdings .h-name b { font-size: .92rem; }
.wl-page .members-card .holdings .h-name span { font-size: .76rem; margin-top: 2px; display: block; }
.wl-page .members-card .holdings .h-group th { border-bottom: 0; padding: 4px 12px 0; }
.wl-page .members-card .holdings .h-group__ret span { display: block; padding-bottom: 5px; border-bottom: 1px solid var(--border); font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.wl-page .members-card .holdings th.h-ret--first, .wl-page .members-card .holdings td.h-ret--first { border-left: 1px solid var(--border); }
.wl-page .members-card .holdings td.h-mcap { color: var(--text-soft); }
.holdings td.h-wt:not(:has(input)) { white-space: nowrap; }
.holdings .h-wtv { display: inline-block; min-width: 3.4em; text-align: right; }
.holdings .h-chg { font-weight: 500; }

/* watchlist Risk analysis tab, polished (12 Oct 2026): a reading per section, pillar bars by score, charts one per row */
.risk-lede { margin: 0 0 16px; font-size: .95rem; line-height: 1.5; color: var(--text); }
.wl-page .risk-wrap { padding: 20px 22px; }
.rp-track i.rp-lo { background: var(--up); }
.rp-track i.rp-mid { background: #C98A1B; }
.rp-track i.rp-hi { background: var(--down); }
:root[data-theme="dark"] .rp-track i.rp-mid { background: #E8B04A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rp-track i.rp-mid { background: #E8B04A; } }
.rp-track { background: color-mix(in srgb, var(--text) 9%, transparent); }
.wl-page .risk-charts { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.wl-page .risk-chart h4 { font-family: var(--font-ui); font-size: .92rem; font-weight: 600; margin-bottom: 10px; }
.wl-page .risk-table td:last-child { white-space: nowrap; }
.wl-page .risk-table td b { font-weight: 600; }
/* (the Market & tail risk pair side by side, each drawn at the width it's shown at) */
.wl-page .risk-charts.risk-charts--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 720px) { .wl-page .risk-charts.risk-charts--pair { grid-template-columns: minmax(0, 1fr); } }
/* the performance strip: each figure centred in its box (user, 12 Oct 2026) */

/* ===== Charts page (chartpro.js, 12 Oct 2026): the look of IG (white ground, hairline borders, quiet small type) with
   the toolbars of TradingView (top: symbol, intervals, type, indicators; left: drawing tools; right: watchlist) ===== */
.view.view--charts { max-width: none; padding: 0; }
.cp-page { height: calc(100vh - 112px); min-height: 520px; }
.cp { --cp-line: var(--border); --cp-on: #2962FF; display: flex; flex-direction: column; height: 100%; background: var(--surface); color: var(--text);
  font-family: var(--font-ui); font-size: 13px; outline: none; position: relative; }
.cp:fullscreen { height: 100vh; }
.cp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cp-top { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--cp-line); flex-wrap: nowrap; min-height: 44px; transition: background .4s ease; }
.cp-top > * { flex-shrink: 0; }
/* one line always (user, 20 Oct 2026): tightened a step at a time while it doesn't fit (fitTop in chartpro.js) */
.cp-top--f1 .cp-sym span { display: none; }
.cp-top--f2 .cp-lbl { display: none; }
.cp-top--f2 [data-cp="type"] .cp-chev { display: none; }
.cp-top--f3 .cp-stocklink { display: none; }
.cp-top--f4 { gap: 2px; padding-left: 6px; padding-right: 6px; }
.cp-top--f4 .cp-ivs button, .cp-top--f4 .cp-btn { padding: 6px 6px; }
.cp-top--f4 .cp-sep { margin: 4px 3px; }
.cp-top--f4 .cp-qchip { padding: 3px 6px; }
.cp-sep { width: 1px; align-self: stretch; margin: 4px 6px; background: var(--cp-line); }
.cp-grow { flex: 1; }
.cp-sym { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 0; background: none; color: inherit; font: inherit; border-radius: 6px; cursor: pointer; max-width: 340px; }
.cp-sym:hover, .cp-btn:hover, .cp-ivs button:hover, .cp-tools button:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.cp-sym b { font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.cp-sym span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-ivs { display: flex; gap: 1px; }
.cp-ivs button, .cp-btn { border: 0; background: none; color: var(--text-soft); font: inherit; font-weight: 500; padding: 6px 9px; border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cp-ivs button.is-on, .cp-btn.is-on, .cp-tools button.is-on { color: var(--cp-on); background: color-mix(in srgb, var(--cp-on) 10%, transparent); }
.cp-ico { padding: 6px 7px; }
.cp-chev { width: 12px !important; height: 12px !important; opacity: .6; }
.cp-dd { position: relative; }
.cp-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 190px; padding: 6px; background: var(--surface); border: 1px solid var(--cp-line);
  border-radius: 8px; box-shadow: 0 10px 30px rgba(20, 22, 28, .14); display: flex; flex-direction: column; }
.cp-menu[hidden] { display: none; }
.cp-menu button { border: 0; background: none; color: var(--text); font: inherit; text-align: left; padding: 8px 10px; border-radius: 5px; cursor: pointer; }
.cp-menu button:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.cp-menu--ind { min-width: 270px; }
.cp-menu--ind b { display: inline-block; min-width: 46px; font-weight: 700; color: var(--cp-on); }
.cp-menu--ind button.is-on { background: color-mix(in srgb, var(--cp-on) 8%, transparent); }
.cp-menu--ind button.is-on::after { content: "\2713"; float: right; color: var(--cp-on); font-weight: 700; }
/* Compare: a search box over ticked rows */
.cp-menu--cmp { width: 340px; padding: 0; overflow: hidden; }
.cp-menu--cmp input { border: 0; border-bottom: 1px solid var(--cp-line); padding: 11px 12px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); outline: none; }
.cp-cmp__list { max-height: 360px; overflow-y: auto; padding: 4px 6px 6px; display: flex; flex-direction: column; }
.cp-cmp__h { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 4px; }
.cp-cmp__note { font-size: 12px; color: var(--muted); padding: 8px; }
.cp-menu .cp-cmp__row { display: grid; grid-template-columns: 16px 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; }
.cp-cmp__row b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-cmp__row span:not(.cp-cmp__box) { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-cmp__row em { font-style: normal; font-size: 11px; color: var(--muted); }
.cp-cmp__box { width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 3px; position: relative; }
.cp-cmp__row.is-on .cp-cmp__box::after { content: ""; position: absolute; left: 3.5px; top: 0.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cp-lg--cmp i { width: 10px; height: 3px; border-radius: 2px; align-self: center; }
.cp-lg__na { color: var(--muted); }
.cp-body { flex: 1; display: flex; min-height: 0; }
.cp-toolsbtn { display: none; }
.cp-tools { width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-right: 1px solid var(--cp-line); }
.cp-tools button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: var(--text-soft); border-radius: 6px; cursor: pointer; }
.cp-tools__sep { width: 24px; height: 1px; background: var(--cp-line); margin: 6px 0; }
.cp-stage { flex: 1; position: relative; min-width: 0; overflow: hidden; cursor: crosshair; }
.cp-canvas { position: absolute; inset: 0; display: block; touch-action: none; }
.cp-head { position: absolute; top: 8px; left: 12px; right: 90px; pointer-events: none; font-size: 12px; color: var(--text-soft); }
.cp-head__l1 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cp-head__iv { font-weight: 600; color: var(--text); }
.cp-head__ohlc { display: inline-flex; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.cp-head__ohlc b { font-weight: 600; }
.cp .up { color: #1E9B52; } .cp .down { color: #D9363B; }
.cp-legend { position: absolute; left: 10px; bottom: 32px; font-size: 12px; color: var(--text-soft); pointer-events: none; }
.cp-legend__l1, .cp-legend__l2 { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.cp-legend__l2 { margin-top: 3px; gap: 10px; font-variant-numeric: tabular-nums; }
.cp-lg { display: inline-flex; gap: 6px; align-items: baseline; pointer-events: auto; padding: 1px 4px; border-radius: 4px; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.cp-lg b, .cp-lg span { cursor: pointer; }
.cp-lg b { font-weight: 600; color: var(--text); }
.cp-lg button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; }
.cp-lg button:hover { color: var(--down); }
.cp-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.cp-msg[hidden] { display: none; }
.cp-edit { position: absolute; left: 10px; bottom: 76px; z-index: 20; width: 220px; padding: 12px; background: var(--surface); border: 1px solid var(--cp-line);
  border-radius: 8px; box-shadow: 0 10px 30px rgba(20, 22, 28, .14); }
.cp-edit[hidden] { display: none; }
.cp-edit h5 { margin: 0 0 10px; font-size: 13px; font-family: var(--font-ui); }
.cp-edit label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--text-soft); }
.cp-edit input[type=number] { width: 72px; padding: 5px 7px; border: 1px solid var(--cp-line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }
.cp-edit input[type=color] { width: 40px; height: 26px; border: 1px solid var(--cp-line); border-radius: 6px; background: none; padding: 1px; }
.cp-edit__acts { display: flex; justify-content: space-between; margin-top: 10px; }
.cp-edit__acts button { border: 1px solid var(--cp-line); background: none; color: var(--text-soft); font: inherit; font-size: 12px; padding: 5px 12px; border-radius: 6px; cursor: pointer; }
.cp-edit__acts .is-primary { background: var(--cp-on); border-color: var(--cp-on); color: #fff; }
.cp-side { width: 260px; flex: none; border-left: 1px solid var(--cp-line); display: flex; flex-direction: column; min-height: 0; }
.cp--noside .cp-side { display: none; }
.cp-side__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--cp-line); font-weight: 600; }
.cp-side__head button { border: 1px solid var(--cp-line); background: none; color: var(--text-soft); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1; }
.cp-side__list { overflow-y: auto; flex: 1; }
.cp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid color-mix(in srgb, var(--cp-line) 60%, transparent); cursor: pointer; }
.cp-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.cp-row.is-on { background: color-mix(in srgb, var(--cp-on) 8%, transparent); box-shadow: inset 2px 0 0 var(--cp-on); }
.cp-row__n b { display: block; font-size: 12.5px; }
.cp-row__n span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-row__q { text-align: right; font-variant-numeric: tabular-nums; }
.cp-row__q b { display: block; font-size: 12.5px; font-weight: 600; }
.cp-row__q span { font-size: 11px; }
.cp-row button { border: 0; background: none; color: var(--muted); cursor: pointer; opacity: 0; font-size: 14px; padding: 0; }
.cp-row:hover button { opacity: 1; }
.cp-search { position: absolute; inset: 0; z-index: 40; background: rgba(20, 22, 28, .28); display: flex; justify-content: center; align-items: flex-start; padding-top: 70px; }
.cp-search[hidden] { display: none; }
.cp-search__box { width: min(560px, 92%); background: var(--surface); border-radius: 10px; box-shadow: 0 20px 60px rgba(20, 22, 28, .25); overflow: hidden; }
.cp-search input { width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--cp-line); font: inherit; font-size: 15px; background: var(--surface); color: var(--text); outline: none; }
.cp-search ul { list-style: none; margin: 0; padding: 6px; max-height: 380px; overflow-y: auto; }
.cp-search li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.cp-search li:hover { background: color-mix(in srgb, var(--cp-on) 8%, transparent); }
.cp-search li b { font-weight: 700; }
.cp-search li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-soft); }
.cp-search li em { font-style: normal; font-size: 11px; color: var(--muted); }
.cp-search li.cp-none { color: var(--muted); cursor: default; }
@media (max-width: 900px) { .cp-side { display: none; } }
@media (max-width: 640px) {
  .cp-page { height: calc(100vh - 150px); }
  .cp-tools { width: 38px; } .cp-tools button { width: 30px; height: 30px; }
  .cp-sym span { display: none; }
  .cp-head { right: 70px; } .cp-head__ohlc span:nth-child(n+5) { display: none; }
}
.stock-wls li[hidden] { display: none; }
.stock-wls__more { display: inline-block; padding: 3px 8px; border: 1px dashed var(--border-strong); border-radius: 999px; font: inherit; font-size: .8rem; color: var(--text-soft); background: none; cursor: pointer; }
.stock-wls__more:hover { color: var(--text); border-style: solid; background: var(--surface-2); }

/* Charts page: a drawing's right-click menu (colour, thickness, line style, delete) */
.cp-ctx { position: absolute; z-index: 35; width: 196px; padding: 10px; background: var(--surface); border: 1px solid var(--cp-line);
  border-radius: 8px; box-shadow: 0 10px 30px rgba(20, 22, 28, .16); }
.cp-ctx[hidden] { display: none; }
.cp-ctx__h { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 6px; }
.cp-ctx__row { display: flex; gap: 4px; margin-bottom: 10px; }
.cp-ctx__cols { flex-wrap: wrap; gap: 5px; }
.cp-ctx__cols button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.cp-ctx__cols button.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--cp-on); }
.cp-ctx__pick { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; position: relative; cursor: pointer;
  background: conic-gradient(#E0393E, #FF9800, #FFEB3B, #26A65B, #00897B, #2962FF, #9C27B0, #E0393E); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.cp-ctx__pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.cp-ctx__opt { flex: 1 1 0; min-width: 0; padding: 0; height: 28px; display: grid; place-items: center; border: 1px solid var(--cp-line); border-radius: 6px; background: none; color: var(--text); cursor: pointer; }
.cp-ctx__opt svg { width: 24px !important; height: 10px !important; stroke-width: 1.6; }
.cp-ctx__opt:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.cp-ctx__opt.is-on { border-color: var(--cp-on); color: var(--cp-on); background: color-mix(in srgb, var(--cp-on) 8%, transparent); }
.cp-ctx__del { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-top: 1px solid var(--cp-line); margin-top: 2px;
  background: none; color: var(--down, #D9363B); font: inherit; font-size: 13px; cursor: pointer; border-radius: 0 0 4px 4px; }
.cp-ctx__del:hover { background: color-mix(in srgb, #D9363B 8%, transparent); }
.cp-textin { position: absolute; z-index: 36; width: 210px; padding: 6px 8px; font: 14px var(--font-ui); color: var(--text); background: var(--surface);
  border: 1px solid var(--cp-on); border-radius: 6px; box-shadow: 0 6px 18px rgba(20, 22, 28, .14); outline: none; }
.cp-ctx__edit { width: 100%; margin: 0 0 8px; padding: 6px 8px; border: 1px solid var(--cp-line); border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.cp-ctx__edit:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }

/* Charts page side panel: featured instruments <-> the site's watchlists (+ / -), rows sliding down as they swap */
.cp-side__tabs { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--cp-line); }
.cp-side__tabs[hidden] { display: none; }
.cp-side__tabs button { flex: 1; border: 0; background: none; color: var(--text-soft); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.cp-side__tabs button:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.cp-side__tabs button.is-on { color: var(--cp-on); background: color-mix(in srgb, var(--cp-on) 10%, transparent); }
/* (cascades: each row falls into place / falls away in turn, delays set per row) */
.cp-cas-in { animation: cp-cas-in .28s cubic-bezier(.2, .75, .25, 1) both; }
.cp-cas-out { animation: cp-cas-out .22s cubic-bezier(.4, 0, .9, .6) both; }
@keyframes cp-cas-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes cp-cas-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px); } }
.cp-side__empty { display: block; cursor: default; color: var(--muted); font-size: 12.5px; line-height: 1.5; padding: 14px 12px; }
.cp-side__empty:hover { background: none; }
.cp-side__empty a { color: var(--cp-on); }
.cp-wl { border-bottom: 1px solid color-mix(in srgb, var(--cp-line) 60%, transparent); }
.cp-wl__head { display: flex; align-items: stretch; }
.cp-wl__head:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.cp-wl__tog { flex: none; width: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 6px; }
.cp-wl__tog:hover { color: var(--text); }
.cp-wl__name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 4px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.cp-wl__name b { flex: 1; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-wl__name:hover b { color: var(--cp-on); }
.cp-wl__name span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-wl.is-on > .cp-wl__head { background: color-mix(in srgb, var(--cp-on) 8%, transparent); box-shadow: inset 2px 0 0 var(--cp-on); }
.cp-wl__chev { width: 14px !important; height: 14px !important; color: var(--muted); transition: transform .2s ease; }
.cp-wl.is-open .cp-wl__chev { transform: rotate(90deg); }
.cp-wl__body { overflow: hidden; transition: height .27s cubic-bezier(.2, .75, .25, 1); }
.cp-row--sub { padding-left: 30px; }
@media (prefers-reduced-motion: reduce) { .cp-cas-in, .cp-cas-out { animation: none; } .cp-wl__body { transition: none; } }

/* Corporate Info, US: the banks on the company's latest offerings, grouped by role, each linked to FINRA BrokerCheck */

/* Corporate Info, US: "Previously used" banks - each role a quiet label with its count, the banks as rows with an
   initials badge (as the executive list), hairlines between */
.ci-banks { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.ci-banks__role { display: flex; align-items: baseline; gap: 6px; margin: 0 0 4px; font-size: .78rem; font-weight: 600; color: var(--text-soft); }
.ci-banks__role span { font-size: .7rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ci-banks__role span::before { content: "·"; margin-right: 6px; }
/* (two banks a row: a long list no longer stretches the card past the executive team beside it - user, 13 Oct 2026) */
.ci-banks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.ci-banks li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--border); font-size: .84rem; line-height: 1.3; color: var(--text); min-width: 0; }
.ci-banks li:nth-child(-n+2) { border-top: 0; }
.ci-banks__av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700;
  letter-spacing: .02em; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border); }
.ci-banks__grp:first-child .ci-banks__av { color: var(--accent-ink); background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.ci-banks:not(.is-open) .is-extra { display: none; }
.ci-banks__all { align-self: flex-start; margin-top: -2px; padding: 4px 10px; border: 1px dashed var(--border-strong, var(--border)); border-radius: 999px; background: none;
  font: inherit; font-size: .76rem; color: var(--text-soft); cursor: pointer; }
.ci-banks__all:hover { color: var(--text); border-style: solid; background: var(--surface-2); }

/* Smart Money (user, 13 Oct 2026): the home card's title links to the watchlists of the funds' and politicians'
   portfolios; that tab has a section per kind */
.sm-title { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.sm-title svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: transform .15s ease, opacity .15s ease; }
.sm-title:hover { color: var(--accent); }
.sm-title:hover svg { opacity: 1; transform: translateX(2px); }
.wl-smart + .wl-smart { margin-top: 34px; }
.wl-smart__head { margin: 4px 0 14px; }
.wl-smart__head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.wl-smart__head p { margin: 0; color: var(--muted); font-size: .86rem; max-width: none; }
.wl-src { margin: -4px 0 12px; font-size: .82rem; }
.wl-src a { color: var(--link, var(--accent)); text-decoration: none; }
.wl-src a:hover { text-decoration: underline; }

/* Smart Money cards (user, 13 Oct 2026): a fund's logo on a light plate (logos are drawn for white, so the plate stays
   light in dark mode too) and a member's official portrait, in place of the sparkline */
.wlc__logo { height: 96px; margin: 10px 0 6px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  padding: 12px 14px; background: linear-gradient(180deg, #fff 0%, #f7f6f3 100%); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(20, 22, 28, .05); transition: box-shadow .18s ease, border-color .18s ease; }
.wlc:hover .wlc__logo { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(20, 22, 28, .08); }
.wlc__logo img { max-width: 100%; max-height: 58px; object-fit: contain; display: block; }
.wlc__word { font-family: var(--font-display, Georgia, serif); font-size: 1.12rem; font-weight: 600; letter-spacing: .01em; color: #2a2d34;
  text-align: center; line-height: 1.2; }
/* a member's portrait (user, 14 Oct 2026: improve the photo tiles): the whole official portrait, never cropped in,
   centred on a plain plate with the party label on it - no blurred or shaded fill at the sides */
.wlc__photo { position: relative; height: 195px; margin: 10px 0 6px; border-radius: 12px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border); display: flex; justify-content: center; align-items: center;
  box-shadow: 0 1px 2px rgba(20, 22, 28, .05); transition: box-shadow .18s ease, border-color .18s ease; }
.wlc__photo .wlc__photo-fg { position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block;
  transition: transform .35s ease; transform-origin: 50% 40%; }
.wlc:hover .wlc__photo { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: 0 3px 10px rgba(20, 22, 28, .08); }
.wlc:hover .wlc__photo .wlc__photo-fg { transform: scale(1.03); }
.wlc__party { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; z-index: 1; white-space: nowrap; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; padding: 3px 8px; border-radius: 999px; line-height: 1.3; }
.wlc__party--r { background: #B4232F; }
.wlc__party--d { background: #1F4FA0; }
.wlc__party--i { background: #5B6170; }
.wlc__mono { font-family: var(--font-display, inherit); font-size: 1.6rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.wlc__logo .wlc__mono { color: #6b6f78; }
.wl-sc__lead { stroke: var(--muted); stroke-width: 1; opacity: .7; }
.label-lead { stroke: var(--muted); stroke-width: 1; opacity: .7; }
/* the Charts page's Quant button: a premium feature, so it stands out from the plain toolbar buttons - a black pill
   with depth (lit from above), a hairline gold edge, a crisp gold PRO tag and a faint gold glint passing across it
   (user, 13 Oct 2026) */
.cp-quant { --q-gold: #D9AE48; position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px;
  height: 30px; padding: 0 5px 0 15px; border: 1px solid rgba(217, 174, 72, .45); border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #2B2D33 0%, #121317 55%, #0A0B0D 100%); color: #F6F1E4;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .035em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .25), 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.cp-quant::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 32%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(247, 221, 139, .16), transparent); animation: cp-sheen 5s ease-in-out infinite; }
.cp-quant:hover { transform: translateY(-1px); border-color: rgba(217, 174, 72, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 4px rgba(0, 0, 0, .25), 0 6px 18px rgba(217, 174, 72, .22); }
.cp-quant:active { transform: translateY(0); }
.cp-quant:focus-visible { outline: 2px solid var(--q-gold); outline-offset: 2px; }
.cp-quant__pro { font-size: 8.5px; font-weight: 800; letter-spacing: .12em; line-height: 1; padding: 4px 6px 4px 7px; border-radius: 999px;
  background: linear-gradient(180deg, #FBE7A6 0%, #E2B954 45%, #B98A2B 100%); color: #33240A;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(120, 80, 10, .35), 0 0 0 1px rgba(0, 0, 0, .35); }
@keyframes cp-sheen { 0%, 72% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .cp-quant::after { animation: none; display: none; } }

/* ===== Premium showcase pop-up (premium.js): a locked feature's previews, main features and subscribe ===== */
body.qp-lock { overflow: hidden; }
.qp-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10, 11, 14, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.qp-backdrop.is-in { opacity: 1; }
.qp { position: relative; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 16px; background: var(--surface); color: var(--text);
  font-family: var(--font-ui); box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(217, 174, 72, .35);
  transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
  width: min(640px, 100%);
}
.qp-backdrop.is-in .qp { transform: none; }
.qp-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #F6F1E4; font-size: 20px; line-height: 1; }
.qp-x:hover { background: rgba(255, 255, 255, .22); }
.qp-show { position: relative; overflow: hidden; padding: 18px 0 10px; border-radius: 16px 16px 0 0;
  background: radial-gradient(120% 90% at 50% 0%, #2B2D33 0%, #121317 60%, #0A0B0D 100%); border-bottom: 1px solid rgba(217, 174, 72, .35); }
.qp-track { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.qp-slide { flex: 0 0 100%; margin: 0; padding: 0 22px; box-sizing: border-box; }
.qp-slide svg { display: block; width: 100%; height: auto; max-height: 205px; font-family: var(--font-ui); }
.qp-slide figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; color: #F6F1E4; }
.qp-slide figcaption b { font-size: 14px; color: #E2B954; letter-spacing: .02em; }
.qp-slide figcaption span { font-size: 12.5px; color: rgba(246, 241, 228, .7); }
.qp-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.qp-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(246, 241, 228, .3); transition: width .3s ease, background .3s ease; }
.qp-dots button.is-on { width: 22px; background: #E2B954; }
.qp-body { padding: 16px 24px 18px; }
.qp-kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qp-body h2 { margin: 8px 0 4px; font-size: 23px; line-height: 1.2; letter-spacing: -.01em; }
.qp-sub { margin: 0 0 12px; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.qp-body h2 + .qp-feats { margin-top: 14px; }   /* (no caption between them) */
/* (28 Oct 2026: six tools, three to a row, each centred - icon over its name and line) */
.qp-feats { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qp-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.qp-note a:hover { color: var(--text); }
.qp-feats li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: color-mix(in srgb, #D9AE48 5%, var(--surface)); }
.qp-feats svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #B98A2B; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qp-feats div { max-width: 100%; }
/* (one line each - user, 28 Oct 2026: "make the captions for the boxes fit on one line"; the words are kept short to fit) */
.qp-feats b, .qp-feats span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-feats b { display: block; font-size: 13px; }
.qp-feats span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.qp-acts { display: flex; gap: 18px; align-items: center; }
.qp-cta { flex: 1; height: 44px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: #33240A;
  background: linear-gradient(180deg, #FBE7A6 0%, #E2B954 45%, #B98A2B 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 18px rgba(217, 174, 72, .35);
  transition: transform .15s ease, box-shadow .2s ease; }
.qp-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 9px 24px rgba(217, 174, 72, .45); }
.qp-cta:disabled { cursor: default; opacity: .8; }
.qp-note { margin: 10px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
/* (28 Oct 2026) the Basic and Plus pop-ups: the same showcase in the site's own accent instead of Pro's gold */
.qp-badge { font-size: 8.5px; font-weight: 800; letter-spacing: .12em; line-height: 1; padding: 4px 6px 4px 7px; border-radius: 999px; color: #fff;
  background: linear-gradient(180deg, #F59A7C 0%, #E0603F 55%, #B6482B 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 1px rgba(0, 0, 0, .2); }
.qp--accent { box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(224, 96, 63, .35); }
.qp--accent .qp-show { border-bottom-color: rgba(224, 96, 63, .4); }
.qp--accent .qp-slide figcaption b { color: #F08A6C; }
.qp--accent .qp-dots button.is-on { background: #F08A6C; }
.qp--accent .qp-feats li { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.qp--accent .qp-feats svg { stroke: var(--accent-ink); }
:root[data-theme="dark"] .qp--accent .qp-feats svg { stroke: var(--accent); }
.qp--accent .qp-cta { color: #fff; background: linear-gradient(180deg, #F59A7C 0%, #E0603F 50%, #B6482B 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px rgba(224, 96, 63, .32); }
.qp--accent .qp-cta:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 9px 24px rgba(224, 96, 63, .42); }
@media (max-width: 600px) { .qp-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .qp-feats { grid-template-columns: 1fr; }
  .qp-body { padding: 16px 16px 18px; }
  .qp-body h2 { font-size: 20px; }
  .qp-slide { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .qp-track, .qp, .qp-backdrop { transition: none; } }
/* Watchlist Analysis tab (portfolio_opt.py) */
.wla-disc { margin: 18px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.wla-table td.wla-w { position: relative; min-width: 84px; }
.wla-table .wla-bar { position: absolute; left: 50%; transform: translateX(-50%); top: 50%; height: 4px; margin-top: 9px; background: var(--accent); opacity: .4; border-radius: 2px; max-width: 64px; }
.wla-table .wla-v { position: relative; }
.wla-table thead th.num, .wla-table td.num, .wla-table tfoot td.num { text-align: center; }
.wla-table tfoot td { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border-strong); }
.wla-table td.wla-best { font-weight: 700; }
.wla-keys { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 12px; font-size: .82rem; color: var(--muted); }
.wla-key i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.wla-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wla-card { padding: 16px 18px; }
.wla-card__h { display: flex; align-items: center; align-content: flex-start; align-self: start; gap: 6px 10px; flex-wrap: wrap; font-weight: 600; }
.wla-card__h a { line-height: 1.2; color: var(--text); font-family: "Newsreader", Georgia, serif; font-size: 1.12rem; }
.wla-card__h .wla-tag { display: inline-flex; align-items: center; line-height: 1; padding: 4px 7px; position: relative; top: -2px; }
.wla-card__h .wla-sub { line-height: 1.2; position: relative; top: -1px; }
.wla-card__h--in { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.wla-sub { color: var(--muted); font-size: .8rem; font-weight: 400; }
.wla-tag { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.wla-tag--out { color: var(--down); background: var(--down-wash); }
.wla-tag--in { color: var(--up); background: var(--up-wash); }
.wla-why { margin: 8px 0 0; padding-left: 18px; font-size: .86rem; color: var(--text-soft); line-height: 1.5; }
/* the plus button at the top right of a Potential Replacements / Additions card, on the reader's own lists (user,
   2 Dec 2026): swaps the suggested stock in / adds it; pressed, it shows a tick (on a pointer, a cross to undo) */
.wla-card.has-plus { position: relative; }
.wla-card.has-plus > .wla-card__h:first-child { padding-right: 40px; }
.wla-plus { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--text-soft); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; }
.wla-plus svg { display: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wla-plus svg:first-child { display: block; }
.wla-plus:hover { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink); }
.wla-plus:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wla-plus.is-on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-wash); color: var(--accent-ink); }
.wla-plus.is-on svg:first-child { display: none; }
.wla-plus.is-on svg:nth-child(2) { display: block; }
@media (hover: hover) {
  .wla-plus.is-on:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text-soft); }
  .wla-plus.is-on:hover svg:nth-child(2) { display: none; }
  .wla-plus.is-on:hover svg:nth-child(3) { display: block; }
}
/* Quant Pro charting (quant_signals.py): menu, status line, model record panel */
.cp-menu--quant { min-width: 300px; left: auto; right: 0; }
.cp-menu--quant button { display: block; width: 100%; font-size: 12px; color: var(--muted); line-height: 1.35; }
.cp-menu--quant b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.cp-menu--quant button.is-on { background: color-mix(in srgb, #D9AE48 10%, transparent); }
.cp-menu--quant button.is-on b::after { content: "\2713"; float: right; color: #B08A2E; font-weight: 700; }
.cp-quant.is-on { box-shadow: 0 0 0 2px rgba(217, 174, 72, .45); }
.cp-qstat { position: absolute; top: 30px; left: 12px; right: 90px; font-size: 12px; color: var(--text-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; z-index: 3; }
.cp-qstat[hidden] { display: none; }
.cp-qstat b.up { color: var(--up); } .cp-qstat b.down { color: var(--down); }
.cp-qstat__warn { color: var(--muted); font-style: italic; }
.cp-qstat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.cp-qstat__dot--on { background: #D9AE48; } .cp-qstat__dot--off { background: var(--border-strong); }
.cp-qstat__dot--busy { background: #D9AE48; animation: cpq-pulse 1.1s ease-in-out infinite; }
@keyframes cpq-pulse { 50% { opacity: .25; } }
.cp-qstat button { border: 1px solid var(--cp-line, var(--border)); background: var(--surface); color: var(--text); font: inherit; font-size: 11px; padding: 2px 8px; border-radius: 999px; cursor: pointer; }
.cp-qstat button:hover { border-color: #D9AE48; }
.cp-qpanel { position: absolute; top: 56px; right: 86px; width: min(430px, calc(100% - 110px)); max-height: calc(100% - 100px); overflow: auto; z-index: 6;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 12.5px; }
.cp-qpanel[hidden] { display: none; }
.cp-qpanel__h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.cp-qpanel__x { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.cp-qpanel__verdict { margin: 10px 0; padding: 8px 10px; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 6px 6px 0; line-height: 1.45; }
.cp-qpanel__verdict.is-edge { border-left-color: #D9AE48; }
.cp-qpanel__t { width: 100%; border-collapse: collapse; }
.cp-qpanel__t td { padding: 5px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.cp-qpanel__t td:last-child { text-align: right; padding-left: 10px; font-variant-numeric: tabular-nums; }
.cp-qpanel__t small { color: var(--muted); }
.cp-qkey__t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 0; border-bottom: 1px solid var(--border); }
.cp-qkey__t td { font-size: 12.5px; }
.cp-qkey__t td:first-child small { display: block; margin-top: 2px; line-height: 1.35; }
.cp-qkey__t td:nth-child(2) { color: var(--text-soft); padding-left: 14px; text-align: left; line-height: 1.4; }
.cp-qkey__t td:first-child { white-space: nowrap; vertical-align: top; }
.cp-qkey__t th:nth-child(2) { padding-left: 14px; }
.cp-qpanel__sub { margin-top: 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.cp-qpanel__drv { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cp-qpanel__drv .up { color: var(--up); } .cp-qpanel__drv .down { color: var(--down); }
.cp-qpanel__ctx, .cp-qpanel__foot { margin: 6px 0 0; color: var(--text-soft); line-height: 1.45; }
.cp-qpanel__foot { color: var(--muted); font-size: 11.5px; margin-top: 10px; }
/* a name that wraps to two lines no longer pushes its card's logo / portrait below its neighbours': the picture and
   the stats sit together at the foot of the card, so plates line up across a row (user, 14 Oct 2026) */
.wlc__logo, .wlc__photo { margin-top: auto; }
.wlc__logo + .wlc__stats, .wlc__photo + .wlc__stats { margin-top: 0; }
/* replace cards: each part (the holding, its reasons, the "with" stock, its reasons) shares a row track with the
   cards beside it, so the "With" separators line up across a row (user, 14 Oct 2026) */
.wla-card--rep { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.wla-card--rep > .wla-why:first-of-type { margin-bottom: 0; }

/* Watchlist Weightings tab (user, 14 Oct 2026: improve the look): one colour per mix carried through the profile
   cards, the weights heat map, the chart and the record table */
.wla-profs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 860px) { .wla-profs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wla-prof { position: relative; text-align: center; padding: 18px 16px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); overflow: hidden; }
.wla-prof::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.wla-prof__name { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--c); }
.wla-prof:first-child .wla-prof__name { color: var(--muted); }
.wla-prof__fig { font-family: "Newsreader", Georgia, serif; font-size: 2rem; font-weight: 600; line-height: 1.1; margin: 8px 0 2px; color: var(--text); }
.wla-prof__fig span { display: block; font-family: var(--font-sans, inherit); font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.wla-prof__ret { font-size: .84rem; font-weight: 600; color: var(--text-soft); margin-top: 6px; }
.wla-prof__desc { font-size: .78rem; color: var(--muted); line-height: 1.4; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.wla-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.wla-dot--dash { background: none; border-radius: 0; border-top: 2px dashed var(--c); width: 12px; height: 0; vertical-align: 3px; }
.wla-table--w th:first-child, .wla-table--w td:first-child { width: 32%; }
.wla-table--w td.wla-w { font-variant-numeric: tabular-nums; }
.wla-table--w td.wla-risk { color: var(--muted); }
.wla-table--w tfoot td { font-weight: 600; color: var(--text-soft); padding-top: 10px; padding-bottom: 10px; }
.wla-table--bt td.wla-best { font-weight: 700; color: var(--text); }
.wla-br { display: none; }
.wla-grid.is-stacked .wla-card > .wla-card__h:first-child .wla-br { display: block; flex-basis: 100%; height: 0; }
.wla-grid.is-stacked .wla-card > .wla-card__h:first-child .wla-tag { top: 0; }
/* politicians' cards: tighter above and below the portrait (user, 14 Oct 2026: the name and %s less tall) */
.wlc:has(.wlc__photo) { padding: 13px 16px 11px; gap: 3px; }
.wlc:has(.wlc__photo) .wlc__top h3 { font-size: 1.08rem; line-height: 1.2; }
/* (user, 24 Nov 2026: not all the cards lined up) the portrait keeps margin-top: auto, so it, the line under it and the
   % figures sit at the foot of the card and line up across a row however many lines the name takes ("Gilbert Ray
   Cisneros, Jr." wraps to two); the 7px above the portrait moves to the line above it, so the space is still there */
.wlc:has(.wlc__photo) .wlc__photo { margin: auto 0 4px; }
@media (min-width: 641px) { .wlc:has(.wlc__photo) .wlc__meta { margin-bottom: 7px; } }
.wlc:has(.wlc__photo) .wlc__stats { padding-top: 7px; gap: 8px; }
.wlc:has(.wlc__photo) .wlc__stat span { margin-bottom: 0; }
.wlc:has(.wlc__photo) .wlc__stat b { font-size: 1.1rem; }
/* Charts: Quant's options as toggles beside its button, and the Quant side panel above the watchlist; opening one
   section folds the other in a cascade (user, 14 Oct 2026) */

.cp-qchips { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.cp-qchips[hidden] { display: none; }
.cp-qchip { border: 1px solid var(--cp-line); background: none; color: var(--text-soft); font: inherit; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; cursor: pointer; line-height: 1.2; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.cp-qchip:hover { border-color: color-mix(in srgb, #D9AE48 60%, var(--cp-line)); color: var(--text); }
.cp-qchip.is-on { color: #8A6A1E; background: color-mix(in srgb, #D9AE48 16%, transparent); border-color: color-mix(in srgb, #D9AE48 70%, transparent); }
.cp-qchip--rec { border-style: dashed; }
.cp-qside { border-bottom: 1px solid var(--cp-line); }
.cp-qside[hidden] { display: none; }

.cp-qside__sub { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 12px 6px; }
.cp-qside__sub small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; margin-top: 1px; font-size: 10.5px; color: var(--muted); text-align: right; }

.cp-side__title[data-cp] { cursor: pointer; }

.cp--qopen .cp-qchip { font-size: 11.5px; padding: 3px 8px; }
.cp--qopen .cp-qchips { gap: 3px; margin-left: 4px; }
/* the Quant section, redone (user, 15 Oct 2026): a head like the Watchlist's with a + / - box; ranked rows with the
   reading, the usual rate and the lift in points; its opening and folding run in JS with the watchlist's cascade */
.cp-qside__head { border-bottom: 1px solid var(--cp-line); }
.cp-qside__title { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.cp-qside__pro { font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #8A6A1E; background: color-mix(in srgb, #D9AE48 22%, transparent);
  border: 1px solid color-mix(in srgb, #D9AE48 60%, transparent); padding: 1px 5px; border-radius: 4px; }
.cp-qside__box { font-weight: 500; }
.cp-side.is-q .cp-qside { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.cp-qside__body { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.cp-qside__body[hidden] { display: none; }
.cp-qside__sub span { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.cp-qside__sub span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--up); }
.cp-qside__sub--sell span::before { background: var(--down); }
.cp-qrow { width: 100%; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 46px; align-items: center; gap: 8px; padding: 7px 12px;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--cp-line) 60%, transparent); background: none; font: inherit; color: inherit;
  text-align: left; cursor: pointer; transition: background .15s ease; }
.cp-qrow:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.cp-qrow.is-on { background: color-mix(in srgb, var(--cp-on) 8%, transparent); box-shadow: inset 2px 0 0 var(--cp-on); }
.cp-qrow__k { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.cp-qrow__n b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-qrow__n span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-qrow__q { text-align: right; font-variant-numeric: tabular-nums; }
.cp-qrow__q b { display: block; font-size: 13px; font-weight: 700; }
.cp-qrow__q b.up { color: var(--up); }
.cp-qrow__q b.down { color: var(--down); }
.cp-qrow__q span { display: block; font-size: 10.5px; color: var(--muted); }
.cp-qrow__lift { font-size: 10.5px; font-weight: 700; text-align: center; border-radius: 999px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.cp-qrow__lift--up { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.cp-qrow__lift--down { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.cp-qrow__lift::after { content: " pts"; font-weight: 500; font-size: 9px; }
/* Quant panel, grouped (user, 15 Oct 2026: "improve the look"): group titles with a rule, one-line headings with the
   caption beneath, insider rows with ticker + date under the name */
.cp-qside__group { display: flex; align-items: center; gap: 8px; padding: 14px 12px 2px; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cp-qside__group::after { content: ""; flex: 1; height: 1px; background: var(--cp-line); }
.cp-qside__body .cp-qside__sub { display: block; padding: 10px 12px 6px; }
.cp-qside__body .cp-qside__sub span { white-space: nowrap; font-size: 11.5px; letter-spacing: .04em; }
.cp-qside__body .cp-qside__sub small { display: block; margin: 2px 0 0 13px; text-align: left; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-size: 10.5px; }
.cp-qside__body .cp-qside__empty { margin: 0 12px 4px; padding: 8px 10px; font-size: 11.5px; border-radius: 6px;
  background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.cp-qside__mini { margin: 6px 12px 2px; padding-top: 6px; border-top: 1px dashed var(--cp-line); font-size: 10px;
  color: var(--muted); letter-spacing: .02em; }
.cp-qrow--ins { grid-template-columns: 16px minmax(0, 1fr) auto; }
.cp-qside__body .cp-qside__note { margin: 8px 12px 4px; font-size: 10.5px; line-height: 1.45; }
.cp-qside__body .cp-qside__note:last-child { margin-bottom: 14px; }
.cp-qside__body .cp-qside__note:empty { display: none; }
.cp-qrow__when { font-size: 10.5px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-qside__empty { padding: 6px 12px 12px; font-size: 12px; color: var(--muted); }
.cp-qside__note { margin: 10px 12px 14px; font-size: 10.5px; line-height: 1.45; color: var(--muted); }
/* Dividend calendar: market column muted, the amount links to the company's own announcement */
.div-mkt { color: var(--text-soft); font-size: .86em; white-space: nowrap; }
a.div-amt { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent); text-underline-offset: 3px; }
a.div-amt:hover { text-decoration-color: currentColor; }
/* (user, 29 Oct 2026: "improve the alignment of these columns") every column after the company - market, dividend, type,
   div impact, declared, pays - centred under its heading, figures in even-width digits */
.cal--div th:nth-child(n+4), .cal--div td:nth-child(n+4) { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cal--div th:nth-child(n+4) { padding-left: 14px; padding-right: 14px; }
.cal--div td { vertical-align: middle; }                 /* (a company name on two lines: the row's figures beside its middle) */
.cal--div td:first-child { text-align: left; }          /* (the ticker, under its left-hand heading) */
/* the Macro and Company calendars the same way (user, 29 Oct 2026: "improve the alignment on the macro and company tables
   too"): time, currency and importance in narrow columns, the time under its heading, importance and the figures centred */
.cal--macro td, .cal--earn > tbody > tr:not(.earn-detail) > td { vertical-align: middle; }
/* (4 Dec 2026) Finance Calendar's credit under the Macro table - its licence asks for a visible link by the data */
.cal-credit { margin: 0; padding: 10px 14px 12px; font-size: .78rem; color: var(--muted); }
.cal-credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.cal-credit a:hover { color: var(--text); }
.cal--macro .cur, .cal--earn .cur, .cal--div .cur { vertical-align: -1px; }   /* (the flag and code level with the row's text) */
.cal--macro th:nth-child(1), .cal--macro td:nth-child(1) { width: 76px; text-align: left; font-variant-numeric: tabular-nums; }
.cal--macro th:nth-child(2), .cal--earn th:nth-child(2) { width: 92px; }
.cal--macro th:nth-child(3), .cal--macro td:nth-child(3), .cal--earn th:nth-child(3), .cal--earn tr:not(.earn-detail) > td:nth-child(3) { width: 64px; text-align: center; }
.cal--macro th:nth-child(n+5), .cal--macro td:nth-child(n+5) { width: 108px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cal--earn th:nth-child(1) { width: 108px; }
.cal--earn th:nth-child(4) { width: 38%; }
/* FX pages (user, 15 Oct 2026) */
.fx-page .perf-strip { grid-template-columns: repeat(6, 1fr); }
/* (user, 27 Oct 2026: the rule sat right under the Upcoming table) - each section heading 28px below the one before,
   as on the stock pages; the first on a tab keeps its place */
.fx-page .section-title { margin-top: 28px; }
.fx-page .section-title:first-child { margin-top: 0; }
.fx-head { align-items: flex-end; }
.fx-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.fx-sub { color: var(--text-soft); font-size: .92rem; margin-top: 2px; }
.fx-px { text-align: right; font-variant-numeric: tabular-nums; }
.fx-px b { display: block; font-family: "Newsreader", Georgia, serif; font-size: 2.2rem; font-weight: 600; line-height: 1.1; }
.fx-px span { font-weight: 700; }
.fx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 8px; }
.fx-tiles .rx-tile { text-align: center; align-items: center; }
.fx-cap { margin: 10px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.fx-cap a { color: var(--link, var(--accent)); }
.fx-season td, .fx-corr td, .fx-ev td { font-variant-numeric: tabular-nums; }
.fx-season tr.is-now td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.fx-bar-h { width: 34%; }
.fx-bar { position: relative; height: 22px; }
.fx-bar__z { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: var(--border-strong, var(--border)); }
.fx-bar i { position: absolute; top: 7px; height: 8px; border-radius: 2px; }
.fx-bar i.up { background: var(--up); }
.fx-bar i.down { background: var(--down); }
@media (max-width: 860px) { .fx-tiles, .fx-page .perf-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* (the dividend calendar's dates, prices and marks on one line each) */
#calWrap td.num, #calWrap td .imp { white-space: nowrap; }

/* ---- Chart Pro layout (user, 15 Oct 2026): the chart over a signals table, sliding into place; four side sections ---- */
.cp-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cp-main .cp-stage { flex: 1 1 auto; min-height: 0; }
.cp-pro { flex: 0 0 0%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; border-top: 1px solid transparent;
  background: var(--surface);
  transition: flex-basis .7s cubic-bezier(.65, 0, .35, 1), border-color .3s ease;
}
.cp--pro .cp-pro { flex-basis: 38%; border-top-color: var(--cp-line); }
.cp--still .cp-pro, .cp--still .cp-pro * { transition: none !important; }
.cp-pro__bar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-bottom: 1px solid var(--cp-line); flex: none;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease .18s, transform .35s ease .18s; }
.cp--pro .cp-pro__bar { opacity: 1; transform: none; }
.cp-pro__brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; letter-spacing: .01em; }
.cp-pro__tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.cp-pro__tabs button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--text-soft); padding: 5px 12px; border-radius: 6px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.cp-pro__tabs button.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.cp-pro__note { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cp-pro__body { flex: 1; min-height: 0; overflow: auto; }
.cp-pro__pane { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 100%; }
.cp-pro__pane[hidden] { display: none; }
.cp-pro__col { min-width: 0; overflow-x: auto; }
.cp-pro__col + .cp-pro__col { border-left: 1px solid var(--cp-line); }
.cp-pro__h { display: flex; align-items: center; gap: 7px; padding: 10px 14px 6px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.cp-pro__h::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--up); }
.cp-pro__h--sell::before { background: var(--down); }
.cp-pro__empty { margin: 4px 14px 12px; padding: 10px 12px; border-radius: 6px; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.cp-pt { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.cp-pt th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 4px 8px;
  border-bottom: 1px solid var(--cp-line); position: sticky; top: 0; background: var(--surface); }
.cp-pt td { padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, var(--cp-line) 55%, transparent); vertical-align: middle; white-space: nowrap; }
.cp-pt th:first-child, .cp-pt td:first-child { padding-left: 14px; color: var(--muted); width: 18px; }
.cp-pt th:last-child, .cp-pt td:last-child { padding-right: 14px; }
.cp-pt .num { text-align: right; }
.cp-pt td b { font-weight: 600; }
.cp-pt td span { display: block; font-size: 10.5px; color: var(--muted); }
.cp-pt td:nth-child(2) b { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.cp-pt .up b { color: var(--up); }
.cp-pt .down b { color: var(--down); }
.cp-pt tbody tr { cursor: pointer; transition: background .15s ease; }
.cp-pt tbody tr:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.cp-pt tbody tr.is-on { background: color-mix(in srgb, var(--cp-on) 8%, transparent); box-shadow: inset 2px 0 0 var(--cp-on); }
.cp-pt__tf { display: inline-block !important; font-size: 10.5px !important; font-weight: 600; color: var(--text-soft) !important; padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--cp-line); }
.cp-pt__lift { display: inline-block !important; font-size: 10.5px !important; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.cp-pt__lift--up { color: var(--up) !important; background: color-mix(in srgb, var(--up) 12%, transparent); }
.cp-pt__lift--down { color: var(--down) !important; background: color-mix(in srgb, var(--down) 12%, transparent); }
/* the Pro look: a quieter, denser toolbar and side, the brand's accent as the active colour */
.cp--pro .cp-top { background: color-mix(in srgb, var(--text) 2.5%, var(--surface)); transition: background .4s ease; }
.cp--pro .cp-side__head { padding-top: 9px; padding-bottom: 9px; }
.cp--pro .cp-side__title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
/* side sections: one open at a time; the others' heads stack beneath */
.cp-sec { cursor: pointer; transition: background .2s ease; }
.cp-sec:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.cp-sec .cp-side__title { cursor: pointer; }
.cp-sec.is-open { background: none; }
.cp-side__list { transition: none; }
/* the News section */
.cp-news { display: block; padding: 9px 12px; border-bottom: 1px solid color-mix(in srgb, var(--cp-line) 60%, transparent); color: inherit; text-decoration: none; }
.cp-news:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.cp-news__meta { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-news__meta b { font-weight: 700; color: var(--text-soft); }
.cp-news--social .cp-news__meta b { color: #1185FE; }
.cp-news--filing .cp-news__meta b { color: var(--accent, #E0603F); }
.cp-news__t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.4; }
.cp-news--social .cp-news__t { font-size: 11.5px; color: var(--text-soft); }

.cp-pro__bar { flex-wrap: nowrap; min-width: 0; }
.cp-pt th, .cp-pt td { padding-left: 6px; padding-right: 6px; }
.cp-side__list[hidden] { display: none; }
.cp-newshead { justify-content: flex-start; gap: 8px; }
.cp-newshead[hidden], .cp-sec[hidden] { display: none; }
.cp-newshead__sym { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
/* the toggles beside Chart Pro cascade sideways - sliding in to the right, out to the right (user, 15 Oct 2026) */
.cp-qchips .cp-cas-in { animation-name: cp-cas-in-x; }
.cp-qchips .cp-cas-out { animation-name: cp-cas-out-x; }
@keyframes cp-cas-in-x { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes cp-cas-out-x { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(14px); } }
/* Chart Pro: the expand button (top right of the chart, left of the price axis) and the folded table */
.cp-expand { position: absolute; top: 6px; right: 82px; z-index: 6; display: none; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: 1px solid var(--cp-line); border-radius: 7px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text-soft); cursor: pointer;
  transition: background .2s ease, color .2s ease; }
.cp-expand:hover { background: var(--surface); color: var(--text); }
.cp-expand svg { width: 15px; height: 15px; }
.cp--pro .cp-expand { display: inline-flex; }
.cp--pro.cp--pshut .cp-pro { flex-basis: 0%; border-top-color: transparent; }
/* expanded Chart Pro: the side closes with the table (its pieces cascade off to the right first) */
.cp-side { overflow: hidden; }
.cp--pro.cp--pshut .cp-side { width: 0; border-left-color: transparent; }
.cp-side--x .cp-cas-out { animation-name: cp-cas-out-x; }
.cp-side--x .cp-cas-in { animation-name: cp-cas-in-xr; }
@keyframes cp-cas-in-xr { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.cp-side > * { min-width: 260px; }
/* the chart's stand-in during a panel animation (stretches with the chart area; fades once the chart is redrawn) */
.cp-snap { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.cp-snap[hidden] { display: none; }
.cp-snap.is-fading { opacity: 0; }
/* the expand / collapse glide: an even ease-in-out over 0.7 s (the earlier curve front-loaded the movement into a snap) */
.cp-side { transition: width .7s cubic-bezier(.65, 0, .35, 1), border-color .3s ease; }
/* as-filed statements: the same column places on the income statement, balance sheet and cash flow (user, 18 Oct 2026) */
.st-table--filed { table-layout: fixed; }
.st-table--filed col.st-col-num { width: 132px; }
.st-table--filed col.st-col-chg { width: 88px; }
.st-table--filed tbody th { overflow-wrap: anywhere; }

/* ---- Elections page (19 Oct 2026) ---- */
.el-card { padding: 20px 22px; margin-bottom: 18px; }
.el-head__t { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.el-head__t h2 { margin: 0; font-size: 1.45rem; }
.el-head p { color: var(--text-soft); margin: 10px 0 0; max-width: 820px; line-height: 1.5; }
.el-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.el-tiles .rx-tile { align-items: center; text-align: center; }
.el-tiles .rx-tile b { font-size: 1.1rem; }
.el-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--down); margin-left: 4px; vertical-align: 1px;
  animation: el-pulse 1.6s ease-in-out infinite; }
@keyframes el-pulse { 50% { opacity: .35; } }
.el-maphead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.el-maphead .sa-h { margin: 0; }
.el-maphead .opt-strats { margin: 0; padding: 0; border: 0; }
.el-mapwrap { position: relative; display: flex; justify-content: center; }
.el-map { width: 100%; height: auto; max-height: 560px; touch-action: none; }
.el-map--uk { max-height: 860px; cursor: grab; }
.el-map path { fill: var(--surface-3); stroke: var(--surface); stroke-width: .8; vector-effect: non-scaling-stroke; transition: fill-opacity .15s; cursor: pointer; }
.el-map--uk path { stroke-width: .35; }
.el-map path.is-none { fill: var(--surface-3); }
.el-map path:hover { stroke: var(--text); stroke-width: 1.4; }
.el-zoom { position: absolute; right: 6px; top: 6px; display: flex; flex-direction: column; gap: 4px; }
.el-zoom button { width: 30px; height: 30px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 6px;
  font-size: 1rem; cursor: pointer; }
.el-zoom button:hover { border-color: var(--accent); }
.el-tip { position: absolute; z-index: 3; pointer-events: none; min-width: 160px; max-width: 240px; padding: 8px 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); font-size: .8rem; line-height: 1.55; }
.el-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .8rem; color: var(--text-soft); align-items: center; }
.el-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.el-dot--none { background: var(--surface-3); border: 1px solid var(--border); }
.el-search { border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 10px; background: var(--surface); color: var(--text); min-width: 220px; }
.el-table th[scope], .el-table tbody th { text-align: left; font-weight: 600; }
.el-table td, .el-table tbody th { vertical-align: top; }
.el-sub { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; margin-top: 2px; }
.el-cands span { display: block; }
.el-rate { display: inline-block; font-weight: 600; padding-left: 8px; border-left: 3px solid var(--c); }
.el-vbar { display: grid; grid-template-columns: 44px minmax(60px, 120px) auto; gap: 8px; align-items: center; font-size: .8rem; }
.el-vbar__lab { font-weight: 600; }
.el-vbar__track { height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.el-vbar__track i { display: block; height: 100%; }
.el-table tr.is-flash { background: var(--accent-wash); transition: background .3s; }
.el-blog { display: flex; flex-direction: column; }
.el-post { padding: 12px 0; border-bottom: 1px solid var(--border); }
.el-post:last-child { border-bottom: 0; }
.el-post__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.el-post h4 { margin: 4px 0 0; font-size: 1rem; font-weight: 500; line-height: 1.4; }
.el-post h4 a { color: inherit; text-decoration: none; }
.el-post h4 a:hover { text-decoration: underline; }
.el-post p { margin: 6px 0 0; color: var(--text-soft); font-size: .88rem; line-height: 1.5; }
/* a call / projection: bold red (user, 19 Oct 2026) */
.el-post.is-key h4, .el-post.is-key h4 a { color: #C8102E; font-weight: 700; }
.el-key { color: #C8102E; font-weight: 700; }
.el-post--own { border-left: 3px solid var(--accent); padding-left: 12px; }
.el-source { color: var(--muted); font-size: .76rem; line-height: 1.5; margin: 0 0 24px; }
@media (max-width: 640px) {
  .el-card { padding: 16px 14px; }
  .el-search { min-width: 0; width: 100%; }
  .el-vbar { grid-template-columns: 40px minmax(40px, 80px) auto; }
}
.el-blog__note { margin: -4px 0 6px; }

/* the hero's small label sits on its own dark tab so it reads on any photo (user, 19 Oct 2026: the text over a hero photo
   must stand out) - the coral "Live Markets Blog" label was under 3:1 on most photos */
/* (user, 20 Oct 2026: no box behind it - a soft dark shadow round the letters keeps it readable on any photo instead) */
.lead__hero .meta { justify-self: start; width: fit-content; background: none; padding: 0; border-radius: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 10px rgba(0, 0, 0, .55); }

/* Calendar, Company view: the estimates button and the estimates-vs-actuals table (19 Oct 2026) */
.earn-est { padding: 6px 4px 8px; }
.earn-est__t { width: 100%; border-collapse: collapse; font-size: .84rem; }
.earn-est__t th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; text-align: left;
  border-bottom: 1px solid var(--border-strong); padding: 4px 8px; }
.earn-est__t td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.earn-est__t .num { text-align: right; white-space: nowrap; }
.earn-est__note { font-size: .76rem; margin: 6px 0 0; }

/* 981-1180px: with eight sections in the menu (Elections added 19 Oct 2026) the one-row header ran ~60px past a
   1024px window - tighter links, a narrower search, and the search box shrinks (to its icon at the narrowest) so every section stays in view */
@media (min-width: 981px) and (max-width: 1180px) {
  .mainnav { flex: 0 0 auto; }                         /* (every section stays in view; the search gives up the room) */
  .mainnav a { flex: 0 0 auto; }
  .topbar__inner { gap: 10px; }
  .topbar__search { flex: 1 1 60px; min-width: 40px; }
}
.earn-est__t tr.is-ctx td { color: var(--text-soft); }
.earn-est__sub td { font-size: .74rem; color: var(--muted); padding-top: 10px; border-bottom: 1px solid var(--border-strong); font-style: italic; }

/* Calendar, Company view: the estimates panel, redesigned (19 Oct 2026) */
.ee { padding: 10px 6px 6px; }
.ee-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ee-kicker { font-family: "Newsreader", Georgia, serif; font-size: 1.05rem; font-weight: 600; color: var(--text); margin-right: 10px; }
.ee-per { font-size: .78rem; color: var(--muted); }
.ee-status { font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ee-status--watch { background: var(--accent-wash); color: var(--accent-ink); }
.ee-status--in { background: var(--up-wash); color: var(--up); }
.ee-sec { margin-top: 12px; }
.ee-sec h5 { margin: 0 0 4px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft); display: inline-block; }
.ee-sec h5 em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ee-src { font-size: .74rem; color: var(--muted); margin-left: 10px; }
.ee-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .86rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ee-t col.ee-c1 { width: 30%; } .ee-t col.ee-c2 { width: 14%; } .ee-t col.ee-c3 { width: 32%; } .ee-t col.ee-c4 { width: 12%; } .ee-t col.ee-c5 { width: 12%; }
.ee-t thead th { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left;
  padding: 7px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.ee-t tbody th { text-align: left; font-weight: 500; padding: 8px 12px; color: var(--text); border-top: 1px solid var(--border); }
.ee-t td { padding: 8px 12px; border-top: 1px solid var(--border); }
.ee-t tbody tr:first-child th, .ee-t tbody tr:first-child td { border-top: 0; }
.ee-t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ee-est { font-weight: 600; }
.ee-act { font-weight: 700; }
.ee-range { display: flex; align-items: center; gap: 10px; }
.ee-bar { width: 132px; height: 16px; flex: 0 0 auto; overflow: visible; }
.ee-bar__rng { stroke: var(--border-strong); stroke-width: 4; stroke-linecap: round; }
.ee-bar__end { stroke: var(--border-strong); stroke-width: 1; }
.ee-bar__mean { stroke: var(--text); stroke-width: 2; }
.ee-bar__act { stroke: var(--surface); stroke-width: 1.5; }
.ee-bar__act--up, .ee-bar__out--up { fill: var(--up); } .ee-bar__act--down, .ee-bar__out--down { fill: var(--down); }
.ee-rng { font-size: .76rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ee-nil { color: var(--border-strong); }
.ee-pill { display: inline-block; font-size: .76rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ee-pill--up { background: var(--up-wash); color: var(--up); } .ee-pill--down { background: var(--down-wash); color: var(--down); }
.ee-sec--ctx .ee-t { opacity: .92; }
.ee-sec--ctx .ee-t tbody th, .ee-sec--ctx .ee-est { color: var(--text-soft); }
.ee-foot { font-size: .76rem; color: var(--text-soft); margin: 10px 0 0; }
.ee-empty { font-size: .82rem; color: var(--muted); margin: 6px 0; }
@media (max-width: 760px) {
  .ee-t col.ee-c1 { width: 34%; } .ee-t col.ee-c3 { width: 0; }
  .ee-t th:nth-child(3), .ee-t td:nth-child(3) { display: none; }
  .ee-head { flex-wrap: wrap; }
}
.earn-detail .ee td, .earn-detail .ee th { background: var(--surface); }
.earn-detail .ee thead th { background: var(--surface-2); }
@media (max-width: 760px) { .ee-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* estimates panel as boxes (user, 19 Oct 2026: "try all boxes") - every figure box centred */
.ee-boxes { display: grid; gap: 10px; }
.ee-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 12px 11px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
/* (user, 20 Oct 2026: a box stretched to its row's height keeps its contents in the middle, not at the top) */
.ee-box__k { font-size: .74rem; color: var(--text-soft); font-weight: 600; }
.ee-box__v { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.2; }
.ee-box__s { font-size: .72rem; color: var(--muted); }
.ee-box__r { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ee-box .ee-bar { width: 110px; margin-top: 2px; }
.ee-box .ee-pill { font-size: .72rem; }
.ee-box.is-pending .ee-box__v { color: var(--border-strong); font-weight: 500; }
.ee-sec--ctx .ee-box { background: transparent; }
.ee-sec--ctx .ee-box__v { font-size: 1.1rem; color: var(--text-soft); }
@media (max-width: 760px) { .ee-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Chart Pro news: our own Portside Originals, featured at the top (19 Oct 2026) */
.cp-news--original .cp-news__meta b { color: var(--accent, #E0603F); }
.cp-news--original .cp-news__t { font-weight: 600; }

/* stock page -> its chart; chart -> its stock page (19 Oct 2026) */
.stock-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.stock-nav .wl-back { margin-bottom: 0; }
.stock-head__chart { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-soft, var(--muted)); font-size: .86rem; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.stock-head__chart:hover { border-color: var(--text-soft); color: var(--text); background: color-mix(in srgb, var(--text) 5%, var(--surface)); }
.stock-head__chart:focus-visible { outline: 2px solid var(--text-soft); outline-offset: 2px; }
a.cp-stocklink { text-decoration: none; }
a.cp-stocklink[hidden] { display: none; }

/* ---- Chart Pro: the strategy tester (user, 20 Oct 2026) - rules on the left, results on the right ---- */
.cp--pro.cp--bt .cp-pro { flex-basis: 48%; }
.cp--pro.cp--bt.cp--pshut .cp-pro { flex-basis: 0%; }
.cp-pro__pane.cp-bt { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); height: 100%; min-height: 0; }
.cp-bt__build, .cp-bt__res { min-height: 0; overflow: auto; padding: 10px 14px 14px; }
.cp-bt__build { border-right: 1px solid var(--cp-line); background: color-mix(in srgb, var(--text) 1.5%, var(--surface)); }
/* (refreshed look, user 20 Oct 2026: "improve the look of these boxes and the custom backtest section") */
.cp-bt select, .cp-bt input { font: inherit; font-size: 12px; color: var(--text); background: var(--surface); border: 1px solid var(--cp-line); border-radius: 7px;
  height: 30px; padding: 0 8px; min-width: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.cp-bt select:hover, .cp-bt input:hover { border-color: color-mix(in srgb, var(--text) 22%, var(--cp-line)); }
.cp-bt select:focus, .cp-bt input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.cp-bt input[type="number"] { font-variant-numeric: tabular-nums; }
.cp-bt__row { display: flex; gap: 6px; margin-bottom: 8px; }
.cp-bt__preset { flex: 1; font-weight: 600; }
.cp-bt__name { flex: 1; font-weight: 600; }
.cp-bt__btn { flex: none; font: inherit; font-size: 12px; font-weight: 600; height: 30px; padding: 0 14px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--cp-line); background: color-mix(in srgb, var(--text) 4%, var(--surface)); color: var(--text); }
.cp-bt__btn:hover { border-color: var(--text-soft); }
.cp-bt__btn--q { background: none; color: var(--muted); }
.cp-bt__seg { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--text) 6%, transparent); margin: 2px 0 12px; }
.cp-bt__seg button { flex: 1; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--text-soft); padding: 6px 8px; border-radius: 7px; cursor: pointer;
  transition: background .15s ease, color .15s ease; }
.cp-bt__seg button:hover { color: var(--text); }
.cp-bt__seg button.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
/* a rule set: a card with its kind's colour down the left edge */
.cp-bt__g { position: relative; margin-bottom: 10px; padding: 10px 10px 10px 13px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--cp-line); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.cp-bt__g::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; border-radius: 10px 0 0 10px; background: var(--muted); opacity: .55; }
.cp-bt__g--le::before { background: var(--up); opacity: 1; }
.cp-bt__g--se::before { background: var(--down); opacity: 1; }
.cp-bt__gh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; font-size: 12px; color: var(--text-soft); }
.cp-bt__gh select { height: 24px; font-size: 11.5px; padding: 0 6px; font-weight: 600; }
.cp-bt__gt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
/* a condition reads top to bottom: what - how - against what */
.cp-bt__c { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 8px 34px 8px 8px; border-radius: 8px; position: relative;
  background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.cp-bt__op { display: flex; gap: 5px; min-width: 0; flex-wrap: wrap; }
.cp-bt__op select { flex: 1; min-width: 0; }
.cp-bt__op input { width: 62px; flex: none; text-align: right; }
.cp-bt__op input.is-num { width: 84px; }
.cp-bt__cmp { justify-self: start; height: 26px !important; padding: 0 10px !important; border-radius: 999px !important; font-weight: 600; font-size: 11.5px !important;
  color: var(--text) !important; background: color-mix(in srgb, var(--accent) 9%, var(--surface)) !important; border-color: color-mix(in srgb, var(--accent) 30%, var(--cp-line)) !important; }
.cp-bt__and { margin: 4px 0; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cp-bt__x { position: absolute; top: 8px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; }
.cp-bt__x:hover { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.cp-bt__add { display: block; width: 100%; margin-top: 8px; border: 1px dashed color-mix(in srgb, var(--text) 18%, var(--cp-line)); background: none; color: var(--text-soft);
  font: inherit; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.cp-bt__add:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cp-bt__hint { margin: 6px 0 0; font-size: 11px; color: var(--muted); line-height: 1.45; }
/* the settings: a card each */
.cp-bt__card { margin-bottom: 10px; padding: 10px 12px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--cp-line); }
.cp-bt__card--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-bt__card .cp-bt__fs + .cp-bt__fs { margin-top: 8px; }
.cp-bt__sec { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cp-bt__sec small { font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-left: 4px; }
.cp-bt__fs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cp-bt__f { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--muted); min-width: 0; }
.cp-bt__f span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-bt__f input { width: 100%; text-align: right; }
.cp-bt__f--w { grid-column: 1 / -1; }
/* results: three main figures, then a strip of the rest - centred, as every label + figure box on the site */
.cp-bt__hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
/* (smaller - user, 20 Oct 2026) */
.cp-bt__hc { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 11px 8px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--text) 3%, var(--surface)); overflow: hidden; min-width: 0; }
.cp-bt__hc span { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cp-bt__hc b { font-family: "Newsreader", Georgia, serif; font-size: 21px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cp-bt__hc b.up { color: var(--up); }
.cp-bt__hc b.down { color: var(--down); }
.cp-bt__hc small { font-size: 10.5px; color: var(--text-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-bt__hc small + small { color: var(--muted); }
.cp-bt__strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; border: 1px solid var(--cp-line); border-radius: 10px; overflow: hidden; }
.cp-bt__sc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; padding: 8px 6px; min-width: 0; }
.cp-bt__sc + .cp-bt__sc { border-left: 1px solid var(--cp-line); }
.cp-bt__sc span { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cp-bt__sc b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-bt__sc small { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 1250px) { .cp-bt__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cp-bt__sc:nth-child(4) { border-left: 0; }
  .cp-bt__sc:nth-child(n+4) { border-top: 1px solid var(--cp-line); } .cp-bt__hc b { font-size: 19px; } }
.cp-bt__eq { margin-bottom: 8px; }
.cp-bt__eqh { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--text-soft); margin-bottom: 4px; }
.cp-bt__key { display: inline-flex; align-items: center; gap: 6px; }
.cp-bt__key i { width: 16px; height: 0; border-top: 2px solid var(--accent); }
.cp-bt__key i.cp-bt__key--b { border-top: 1.5px dashed var(--text); }
.cp-bt__eqn { margin-left: auto; color: var(--muted); }
.cp-bt__eq canvas { display: block; width: 100%; height: 280px; }          /* (taller, so the lines aren't squeezed - user, 20 Oct 2026) */
.cp-bt__luck { margin: 0 0 4px; padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.45; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.cp-bt__luck.is-hi { background: color-mix(in srgb, var(--up) 9%, transparent); }
.cp-bt__how { margin: 0 0 10px; font-size: 11px; color: var(--muted); line-height: 1.45; }
.cp-bt__trades td:nth-child(2) b { max-width: none; }
.cp-bt__side { display: inline-block !important; font-size: 10.5px !important; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.cp-bt__side--l { color: var(--up) !important; background: color-mix(in srgb, var(--up) 12%, transparent); }
.cp-bt__side--s { color: var(--down) !important; background: color-mix(in srgb, var(--down) 12%, transparent); }
@media (max-width: 1100px) { .cp-pro__pane.cp-bt { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); } }
/* (the tester alone in the table: its title in place of the Signals / Insider trades tabs - user, 20 Oct 2026) */
.cp-pro__tabs[hidden], .cp-pro__title[hidden] { display: none; }
.cp-pro__title { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 5px 0; white-space: nowrap; }
.cp-pro__title::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
/* the Backtest's Run button (beside the title) and walk-forward results (user, 20 Oct 2026) */
/* (the Run button in the Save button's format, with its play arrow - user, 20 Oct 2026) */
.cp-bt__run { display: inline-flex; align-items: center; gap: 5px; flex: none; font: inherit; font-size: 12px; font-weight: 600; height: 26px; padding: 0 12px 0 9px;
  border-radius: 6px; cursor: pointer; border: 1px solid var(--cp-line); background: color-mix(in srgb, var(--text) 4%, var(--surface)); color: var(--text); }
.cp-bt__run[hidden] { display: none; }
.cp-bt__run svg { width: 11px; height: 11px; fill: currentColor; }
.cp-bt__run:hover { border-color: var(--text-soft); }
.cp-bt__run.is-stale { border-color: var(--text-soft); }
.cp-bt__unit { display: flex; gap: 3px; }
.cp-bt__unit input { flex: 1; min-width: 0; text-align: right; }
.cp-bt__unit select { flex: none; width: 58px; }
.cp-bt__f--w select { width: 100%; }
.cp-bt__sec2 { margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid var(--cp-line); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cp-bt__wft td:nth-child(3) { white-space: normal; color: var(--text-soft); }
.cp-bt__key[hidden] { display: none; }
.cp-bt__key i.cp-bt__key--w { border-top: 2px solid var(--series-2, #2962FF); }
/* Chart Pro's bottom section filling the chart's room (user, 20 Oct 2026): its up arrow, and the expanded layout - the
   section's flex-basis glides to 100% on the same .7 s ease as the Chart Pro panel, the chart shrinking to nothing */
.cp-pro__max { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 4px;
  border: 1px solid var(--cp-line); border-radius: 7px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text-soft); cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease; }
.cp-pro__max:hover { background: var(--surface); color: var(--text); border-color: var(--text-soft); }
.cp-pro__max svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp--pro.cp--pmax .cp-pro { flex-basis: 100%; }
.cp--pro.cp--pmax .cp-expand { display: none; }
/* the builder's groups, instrument fields and day pickers (user, 20 Oct 2026: mixed logic, other instruments, the
   calendar, trailing stops) */
.cp-bt__op .cp-bt__sym { flex: 1 1 100%; width: auto; text-align: left; font-weight: 600; letter-spacing: .02em;
  background: color-mix(in srgb, var(--series-2, #2A6FD6) 6%, var(--surface)); border-color: color-mix(in srgb, var(--series-2, #2A6FD6) 35%, var(--cp-line)); }
.cp-bt__op .cp-bt__day { flex: 0 0 auto; width: 120px; }
.cp-bt__sub { position: relative; margin: 2px 0; padding: 8px; border-radius: 9px; border: 1px dashed color-mix(in srgb, var(--text) 22%, var(--cp-line));
  background: color-mix(in srgb, var(--text) 2%, transparent); }
.cp-bt__subh { display: flex; align-items: center; gap: 6px; margin: 0 26px 8px 0; font-size: 12px; color: var(--text-soft); }
.cp-bt__subh select { height: 24px; font-size: 11.5px; padding: 0 6px; font-weight: 600; }
.cp-bt__x--sub { top: 6px; right: 6px; }
.cp-bt__sub .cp-bt__c { background: var(--surface); border: 1px solid var(--cp-line); }
.cp-bt__adds { display: flex; gap: 6px; }
.cp-bt__adds .cp-bt__add { flex: 1; }
.cp-bt__fs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Chart Pro tools (user, 20 Oct 2026): the position tools only in Chart Pro; bar replay's controls; the position menu */
.cp-replay { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 4px;
  padding: 5px 6px 5px 12px; border-radius: 10px; background: rgba(19, 23, 34, .92); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); font-size: 12px; }
.cp-replay[hidden] { display: none; }
.cp-replay__t { margin-right: 6px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
/* the bar is dragged by its grip, its date or its edge (chartpro.js rpPlace); not on a phone, where it spans the chart */
.cp-replay__grip { display: inline-flex; align-items: center; justify-content: center; align-self: stretch; width: 14px; margin: 0 2px 0 -8px; color: rgba(255, 255, 255, .5);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.cp-replay__grip:hover { color: #fff; }
.cp-replay .cp-replay__grip svg { width: 8px; height: 13px; fill: currentColor; stroke: none; }
.cp-replay.is-drag { box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
.cp-replay.is-drag, .cp-replay.is-drag .cp-replay__grip, .cp-replay.is-drag .cp-replay__t { cursor: grabbing; }
.cp-replay button { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 28px; padding: 0 6px; border: 0; border-radius: 7px;
  background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font: inherit; font-weight: 600; }
.cp-replay button:hover { background: rgba(255, 255, 255, .18); }
.cp-replay button:disabled { opacity: .4; cursor: default; }
.cp-replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp-replay select { height: 28px; border-radius: 7px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 600; padding: 0 4px; }
.cp-replay select option { color: #111; }
.cp-replay__x { padding: 0 10px !important; margin-left: 2px; background: rgba(242, 54, 69, .25) !important; }
.cp--replay .cp-qstat { display: none !important; }
/* a replay's practice trades (user, 17 Nov 2026): Sell and Buy over the replay bar, the trading ticket beside the chart,
   and - in the readings' place under it - the open positions and working orders with the total P&L at their head */
.cp-rt-btns { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); display: flex; gap: 6px; }
.cp-rt-btns[hidden] { display: none; }
.cp-replay .cp-rt-btn { height: 38px; min-width: 116px; padding: 0 14px; gap: 10px; justify-content: space-between; border-radius: 9px; font-size: 12.5px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.cp-replay .cp-rt-btn b { font-weight: 600; font-variant-numeric: tabular-nums; opacity: .92; }
.cp-replay .cp-rt-btn--sell, .cp-replay .cp-rt-btn--sell:hover { background: #C42B3D; }
.cp-replay .cp-rt-btn--buy, .cp-replay .cp-rt-btn--buy:hover { background: #0A7D48; }
.cp-replay .cp-rt-btn:hover { filter: brightness(1.1); }
.cp-main { position: relative; }
.cp-ticket { position: absolute; left: 12px; top: 40px; z-index: 30; width: 264px; max-height: calc(100% - 52px); overflow-y: auto; box-sizing: border-box;
  padding: 14px; background: var(--surface); border: 1px solid var(--cp-line); border-radius: 12px; box-shadow: 0 14px 40px rgba(20, 22, 28, .18); cursor: default; font-size: 12.5px; }
.cp-ticket[hidden] { display: none; }
/* (dragged by its heading - or any part that isn't a field or button - to wherever the reader wants it kept) */
.cp-ticket__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 8px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.cp-ticket.is-drag { user-select: none; -webkit-user-select: none; box-shadow: 0 18px 48px rgba(20, 22, 28, .26); }
.cp-ticket.is-drag, .cp-ticket.is-drag .cp-ticket__h { cursor: grabbing; }
.cp-ticket__h b { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-ticket__x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.cp-ticket__x:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.cp-ticket__sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.cp-ticket__side { display: flex; align-items: baseline; justify-content: center; gap: 7px; padding: 8px 6px; border: 1px solid var(--cp-line); border-radius: 9px; background: none;
  color: var(--text-soft); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.cp-ticket__side b { font-size: 13px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cp-ticket__side:not(.is-on):hover { border-color: var(--text-soft); }
.cp-ticket__side--sell.is-on { background: #C42B3D; border-color: #C42B3D; color: #fff; }
.cp-ticket__side--buy.is-on { background: #0A7D48; border-color: #0A7D48; color: #fff; }
.cp-ticket__seg { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--text) 6%, transparent); margin: 0 0 10px; }
.cp-ticket__seg button { flex: 1; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--text-soft); padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.cp-ticket__seg button:hover { color: var(--text); }
.cp-ticket__seg button.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.cp-ticket__f { display: grid; grid-template-columns: 1fr 116px; align-items: center; column-gap: 10px; row-gap: 2px; margin: 0 0 7px; color: var(--text-soft); }
.cp-ticket__f input { width: 100%; box-sizing: border-box; height: 30px; padding: 0 9px; border: 1px solid var(--cp-line); border-radius: 7px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.cp-ticket__f input::-webkit-outer-spin-button, .cp-ticket__f input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cp-ticket__f input:focus { outline: 2px solid color-mix(in srgb, var(--cp-on) 45%, transparent); outline-offset: -1px; border-color: var(--cp-on); }
.cp-ticket__f small { grid-column: 1 / -1; text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-ticket__f small:empty { display: none; }
.cp-ticket__err { margin: 2px 0 10px; padding: 7px 9px; border-radius: 7px; font-size: 11.5px; line-height: 1.4; color: var(--down); background: color-mix(in srgb, var(--down) 9%, transparent); }
.cp-ticket__err[hidden] { display: none; }
.cp-ticket__go { width: 100%; height: 36px; margin-top: 3px; border: 0; border-radius: 9px; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.cp-ticket__go--buy { background: #0A7D48; }
.cp-ticket__go--sell { background: #C42B3D; }
.cp-ticket__go:hover { filter: brightness(1.1); }
.cp-ticket__foot { margin: 7px 0 -3px; font-size: 10.5px; line-height: 1.3; color: var(--muted); text-align: center; }
/* the replay's summary when its period ends (user, 17 Nov 2026): a card in the middle of the screen, its six figures in
   centred boxes */
.cp-sum { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 22, 28, .38); }
.cp-sum[hidden] { display: none; }
/* (user, 17 Nov 2026: "make the summary window at the end look more professional" - a report card: what was replayed
   in its heading, the result as one large figure, the account's P&L through the period as a chart, the other four
   figures in a ruled row of centred cells, and the actions on a footer band) */
.cp-sum__card { width: min(620px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; background: var(--surface); color: var(--text);
  border: 1px solid var(--cp-line); border-radius: 14px; box-shadow: 0 28px 80px rgba(20, 22, 28, .34); }
.cp-sum__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px 26px; border-bottom: 1px solid var(--cp-line); }
.cp-sum__eyebrow { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text, var(--accent)); }
.cp-sum__head h4 { margin: 0; font-family: var(--font-ui); font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.cp-sum__sub { margin: 5px 0 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-sum__x { flex: none; width: 32px; height: 32px; margin-top: -4px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.cp-sum__x:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.cp-sum__hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 26px 18px; text-align: center; }
.cp-sum__lab { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cp-sum__big { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
.cp-sum__big b { font-size: 38px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cp-sum__big em { font-style: normal; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 999px; color: var(--text-soft);
  background: color-mix(in srgb, var(--text) 7%, transparent); }
.cp-sum__big.up b { color: var(--up); }
.cp-sum__big.down b { color: var(--down); }
.cp-sum__big.up em { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.cp-sum__big.down em { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.cp-sum__cap { font-size: 12px; color: var(--muted); }
.cp-sum__chart { margin: 0; padding: 0 22px 14px; }
/* (the chart page gives every svg inside it an icon's outline - `.cp svg`: a 1.6px stroke in the text colour - which
   drew round this chart's numbers, wash and tag and made them look bold; the chart takes none of it) */
.cp-sum__chart svg { display: block; width: 100%; height: auto; fill: initial; stroke: none; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; flex: initial; }
.cp-sum__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--cp-line); }
.cp-sum__stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 15px; text-align: center; min-width: 0; }
.cp-sum__stat + .cp-sum__stat { border-left: 1px solid var(--cp-line); }
.cp-sum__stat span { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cp-sum__stat b { font-size: 19px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-sum__stat b.up { color: var(--up); }
.cp-sum__stat b.down { color: var(--down); }
.cp-sum__stat em { font-style: normal; font-size: 11px; line-height: 1.3; color: var(--muted); }
.cp-sum__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px 14px 26px; border-top: 1px solid var(--cp-line); background: var(--surface-2);
  border-radius: 0 0 13px 13px; }
.cp-sum__note { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.cp-sum__acts { display: flex; gap: 8px; flex: none; margin-left: auto; }
.cp-sum__acts button { height: 36px; padding: 0 16px; border: 1px solid var(--border-strong, var(--cp-line)); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600;
  white-space: nowrap; cursor: pointer; }
.cp-sum__acts button:hover { border-color: var(--text-soft); }
.cp-sum__acts .is-primary { background: var(--text); border-color: var(--text); color: var(--surface); }
.cp-sum__acts .is-primary:hover { opacity: .88; }
.cp-replay .cp-replay__sum { padding: 0 10px; margin-left: 2px; background: rgba(255, 255, 255, .2); }
.cp-replay .cp-replay__sum[hidden] { display: none; }
.cp-rt__sum { display: inline-flex; align-items: baseline; gap: 8px; flex: none; white-space: nowrap; padding: 3px 0; }
.cp-rt__sum[hidden] { display: none; }
.cp-rt__sum span { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.cp-rt__sum b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-rt__sum em { font-style: normal; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.cp-rt__sum .up { color: var(--up); }
.cp-rt__sum .down { color: var(--down); }
.cp-pro__h--pos::before { background: var(--accent); }
/* (the left box's tabs: open positions | closed positions, each with its count) */
.cp-rt__tabs { gap: 4px; padding-top: 7px; padding-bottom: 3px; }
.cp-rt__tabs::before { margin-right: 3px; }
.cp-rt__tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 8px; border-radius: 6px; font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--muted); cursor: pointer; }
.cp-rt__tabs button:first-of-type { padding-left: 0; }
.cp-rt__tabs button:hover { color: var(--text); }
.cp-rt__tabs button.is-on { color: var(--text); }
.cp-rt__tabs button:not(:first-of-type).is-on, .cp-rt__tabs button:not(:first-of-type):hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.cp-rt__tabs small { font-size: 10px; font-weight: 700; letter-spacing: 0; min-width: 16px; padding: 1px 5px; border-radius: 999px; text-align: center; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-soft); }
.cp-rt__tabs small:empty { display: none; }
.cp-rt [data-pt][hidden] { display: none; }
.cp-pro__h--ord::before { background: var(--muted); }
.cp-rt .cp-pt th:first-child, .cp-rt .cp-pt td:first-child { width: auto; color: inherit; }
.cp-rt .cp-pt tbody tr { cursor: default; }
.cp-rt .cp-pt td b.cp-rt__side { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.cp-rt .cp-pt td b.cp-rt__side--buy { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.cp-rt .cp-pt td b.cp-rt__side--sell { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.cp-rt__x { border: 1px solid var(--cp-line); background: none; color: var(--text-soft); font: inherit; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px; cursor: pointer; }
.cp-rt__x:hover { border-color: var(--text-soft); color: var(--text); }
/* the position tool's numbers in its right-click menu (user, 20 Oct 2026) */
.cp-ctx__pos { display: grid; gap: 3px; margin: 0 0 10px; padding: 0 0 9px; border-bottom: 1px solid var(--cp-line); font-size: 12px; min-width: 190px; }
.cp-ctx__pos div { display: flex; justify-content: space-between; gap: 12px; }
.cp-ctx__pos span { color: var(--muted); }
.cp-ctx__pos b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cp-ctx__pos b.up { color: var(--up); } .cp-ctx__pos b.down { color: var(--down); }
.cp-ctx__pos small { font-weight: 500; opacity: .8; }
.cp-ctx__flds { display: grid; grid-template-columns: 0.8fr 1.3fr 0.9fr; gap: 6px; }
.cp-ctx__flds input { width: 100%; min-width: 0; box-sizing: border-box; }
.cp-ctx { max-height: calc(100% - 12px); overflow-y: auto; }
.cp-ctx.cp-ctx--pos { width: 250px; }
.cp-ctx__fld { display: flex; flex-direction: column; gap: 3px; margin: 0 0 8px; font-size: 11px; color: var(--muted); }
.cp-ctx__fld input { height: 28px; border: 1px solid var(--cp-line); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 12px; color: var(--text); background: var(--surface); text-align: right; }
/* Chart Pro alerts (user, 20 Oct 2026): the panel and the notes that pop up on any page */
.cp-alerts { width: min(460px, calc(100% - 110px)); }
.cp-al__new { margin: 10px 0 4px; padding: 10px; border-radius: 9px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.cp-al__lab { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cp-al__row { display: flex; gap: 6px; }
.cp-al__row select, .cp-al__row input { height: 30px; border: 1px solid var(--cp-line); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; padding: 0 8px; min-width: 0; }
.cp-al__row select { flex: 1.2; }
.cp-al__row input { flex: 1; text-align: right; font-variant-numeric: tabular-nums; }
.cp-al__row [hidden] { display: none; }
.cp-al__add { flex: none; height: 30px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--cp-line); background: color-mix(in srgb, var(--text) 4%, var(--surface)); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cp-al__add:hover { border-color: var(--text-soft); }
.cp-al__hint { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.cp-al__hint:empty { display: none; }
.cp-al__sub { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cp-al__clr { border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.cp-al__list, .cp-al__log { list-style: none; margin: 0; padding: 0; }
.cp-al__list li { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.cp-al__list li span { flex: 1; min-width: 0; }
.cp-al__list li b { display: block; font-weight: 600; font-size: 12.5px; }
.cp-al__list li small { color: var(--muted); font-size: 11px; }
.cp-al__list li.is-here b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #E0952B; margin: 0 6px 1px 0; }
.cp-al__list li.is-off b { color: var(--muted); font-weight: 500; }
.cp-al__list button { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--cp-line); background: var(--surface); color: var(--text-soft); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.cp-al__list .cp-al__x { width: 26px; padding: 0; font-size: 16px; line-height: 1; color: var(--muted); }
.cp-al__list .cp-al__x:hover { color: var(--down); border-color: var(--down); }
.cp-al__log li { padding: 5px 0; font-size: 12px; border-bottom: 1px solid var(--border); }
.cp-al__log li small { display: block; color: var(--muted); font-size: 10.5px; }
.cp-al__perm { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
/* the alert box (user, 20 Oct 2026): top left, the site's white, drops down into place, stays until closed, fades away */
.pa-alert { position: fixed; top: 12px; left: 16px; z-index: 9999; width: min(360px, calc(100vw - 32px)); display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(20, 22, 30, .14), 0 2px 6px rgba(20, 22, 30, .06); font-size: 13px; line-height: 1.45;
  animation: pa-down .5s cubic-bezier(.2, .8, .25, 1) both; transition: opacity .3s ease; }
.pa-alert.is-out { opacity: 0; pointer-events: none; }
.pa-alert.is-bump { animation: pa-bump .45s cubic-bezier(.2, .8, .25, 1); }
.pa-alert__body { flex: 1; min-width: 0; }
.pa-alert__body > b { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--down); margin-bottom: 2px; }
.pa-alert__body > b i { font-style: normal; letter-spacing: 0; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--down); color: #fff; font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.pa-alert__msg { display: block; font-weight: 600; color: var(--text); }
.pa-alert__body > small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.pa-alert__x { flex: none; width: 24px; height: 24px; margin: -3px -3px 0 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.pa-alert__x:hover { background: var(--surface-2); color: var(--text); }
.pa-alert__bell { width: 15px; height: 15px; margin-top: 1px; flex: none; color: var(--down); }
.pa-alert__bell svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.pa-alert__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 9px 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
  color: var(--text-soft); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.pa-alert__more:hover { border-color: var(--border-strong); color: var(--text); }
.pa-alert__more svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.pa-alert.is-open .pa-alert__more svg { transform: rotate(180deg); }
.pa-alert__drop { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .25, 1); }
.pa-alert.is-open .pa-alert__drop { grid-template-rows: 1fr; }
.pa-alert__clip { min-height: 0; overflow: hidden; }
.pa-alert__list { list-style: none; margin: 0; padding: 0; max-height: min(320px, 60vh); overflow-y: auto; }
.pa-alert__list li { padding: 8px 0 7px; border-top: 1px solid var(--border); }
.pa-alert__list li:first-child { margin-top: 9px; }
.pa-alert__list li small { display: block; color: var(--muted); font-size: 10.5px; }
.pa-alert__list li span { color: var(--text-soft); font-size: 12.5px; }
@keyframes pa-down { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }
@keyframes pa-bump { 0% { transform: none; } 35% { transform: translateY(4px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pa-alert, .pa-alert.is-bump { animation-duration: .01s; } .pa-alert__drop { transition: none; } }
/* the multi-chart layout (free - user, 20 Oct 2026): one, two side by side or stacked, or four charts */
.cp-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 1px; background: var(--cp-line); }
.cp-grid--2v { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-grid--2h { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.cp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.cp-grid > .cp-stage, .cp-cell { min-width: 0; min-height: 0; background: var(--surface); position: relative; }
.cp-cell { overflow: hidden; }
.cp-grid > .is-active { box-shadow: inset 0 0 0 2px color-mix(in srgb, #2962FF 55%, transparent); }
.cp-menu--layout button { display: flex; align-items: center; gap: 8px; }
.cp-menu--layout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
/* a cell's chart: its instrument, interval and type; nothing else */
.cp--mini { height: 100%; }
.cp--mini .cp-top > :not(.cp-keep) { display: none !important; }
.cp--mini .cp-top { padding-top: 4px; padding-bottom: 4px; min-height: 0; gap: 2px; font-size: 12px; flex-wrap: nowrap; overflow: hidden; }
.cp--mini .cp-tools, .cp--mini .cp-side, .cp--mini .cp-pro, .cp--mini .cp-expand, .cp--mini .cp-replay { display: none !important; }
.cp--mini .cp-qstat { font-size: 11px; }
.cp--short .cp-qstat, .cp--short .cp-legend__l2 { display: none !important; }
.cp--mini .cp-ivs button { padding: 4px 6px; }
.cp--mini .cp-sym span { display: none; }
.cp--mini .cp-head { font-size: 11px; }
.cp--mini .cp-head__src { display: none; }
/* the heading's / legend's text under a chart hover card steps aside (user, 20 Oct 2026) */
.cp-head .is-under, .cp-legend .is-under, .cp-qstat.is-under { opacity: 0 !important; transition: opacity .1s ease; }
/* the Options calculator before an instrument is chosen (user, 20 Oct 2026) */
.opt-start { margin: 0; color: var(--muted); font-size: 14px; }
.opt-quote:has(> .opt-start) { display: flex; align-items: center; }   /* (level with the middle of the search bar) */
/* the Valuation tab's model view history and the note at its foot (user, 20 Oct 2026) */
.sval-views td.up b { color: var(--up); } .sval-views td.down b { color: var(--down); }
.sval-views__was { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; }
.sval-about { margin: 22px 4px 4px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; line-height: 1.55; }
.sval-about h4 { margin: 0 0 6px; font-size: .8rem; font-weight: 600; color: var(--text-soft); }
.sval-about p { margin: 0 0 7px; }
/* the Weighting Optimiser's Risk Breakdown and Diversification Screener (user, 20 Oct 2026) */
.wla-sec { display: block; font-size: .76rem; color: var(--muted); }
.wla-sub2 { color: var(--muted); font-size: .8rem; }
.wla-rs { white-space: nowrap; }
/* (user, 20 Oct 2026: every column but the holding centred, as in the Diversification Screener) */
.wla-bd th:not(:first-child), .wla-bd td:not(:first-child) { text-align: center; padding-left: 14px; padding-right: 14px; }
.wla-bd th:first-child, .wla-bd td:first-child { padding-left: 4px; }
.wla-rsbar { display: inline-block; width: 56px; height: 5px; margin-right: 8px; vertical-align: middle; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.wla-rsbar i { display: block; height: 100%; background: var(--accent); opacity: .7; }
.wla-scr { padding: 16px 18px 14px; }
.wla-scr__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.wla-scr__n { flex: none; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
/* (the sector drop-down - user, 24 Nov 2026: in place of a chip for every sector) */
.wla-scr .msel__value { max-width: 240px; }
.wla-scr .msel__menu { width: 330px; max-width: calc(100vw - 48px); }
.wla-scrt { font-size: .86rem; table-layout: fixed; }
.wla-scrt thead th { white-space: nowrap; padding-top: 10px; padding-bottom: 10px; }
.wla-scrt tbody tr { transition: background .12s; }
.wla-scrt tbody tr:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.wla-scrt td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
.wla-scrt .wla-co a { display: block; font-weight: 600; color: var(--text); text-decoration: none; }
.wla-scrt .wla-co a:hover { color: var(--accent); }
.wla-scrt .wla-co span { display: block; margin-top: 1px; font-size: .76rem; color: var(--muted); }
.wla-sort { cursor: pointer; user-select: none; }
.wla-sort:hover, .wla-sort.is-on { color: var(--text); }
.wla-sort__a { display: inline-block; width: 12px; margin-left: 3px; font-size: .62rem; color: var(--accent); }
/* (columns: fixed widths, every figure right-aligned to the same edge as its heading; the sort arrow hangs in the
   heading's right padding so it never pushes the heading off its column) */
.wla-scrt col.w-corr { width: 118px; } .wla-scrt col.w-vol { width: 108px; } .wla-scrt col.w-lv { width: 150px; }
.wla-scrt col.w-rr { width: 140px; } .wla-scrt col.w-sw { width: 136px; }
.wla-scrt th, .wla-scrt td { padding-left: 14px; padding-right: 14px; }
/* (user, 20 Oct 2026: the figures and their headings centred in their columns) */
.wla-scrt th.num, .wla-scrt td.num { text-align: center; }
.wla-scrt th:first-child, .wla-scrt td:first-child { padding-left: 4px; }
.wla-scrt th.wla-sort { position: relative; }
.wla-scrt .wla-sort__a { position: absolute; top: 50%; transform: translateY(-50%); width: auto; margin: 0 0 0 4px; }
.wla-scrt td.num b { display: inline-block; min-width: 30px; font-weight: 500; text-align: right; }
.wla-scrt .wla-co a, .wla-scrt .wla-co span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wla-pill { display: inline-block; min-width: 38px; box-sizing: border-box; text-align: center; margin-left: 8px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 500; }
.wla-meter { display: inline-flex; gap: 2px; margin-right: 8px; vertical-align: middle; }
.wla-meter i { width: 7px; height: 7px; border-radius: 2px; background: var(--surface-3); }
.wla-meter i.on { background: var(--accent); opacity: .75; }
.wla-sbar { display: inline-block; width: 40px; height: 5px; margin-right: 8px; vertical-align: middle; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.wla-sbar i { display: block; height: 100%; background: color-mix(in srgb, var(--text) 40%, transparent); }
.wla-scr__more { display: block; margin: 12px auto 0; padding: 6px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-soft); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.wla-scr__more:hover { border-color: var(--border-strong); color: var(--text); }
/* (the screener's Add button on each row, on the reader's own lists - user, 24 Nov 2026) */
.wla-scrt col.w-add { width: 104px; }
.wla-scrt th.wla-addc, .wla-scrt td.wla-addc { padding-left: 6px; padding-right: 4px; text-align: right; }
.wla-add { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 84px; height: 30px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text-soft); font: inherit;
  font-size: .8rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.wla-add svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wla-add:hover { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink); }
.wla-add.is-on { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-wash); color: var(--accent-ink); }
.wla-add__off { display: none; }
@media (hover: hover) {
  .wla-add.is-on:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text-soft); }
  .wla-add.is-on:hover svg { display: none; }
  .wla-add.is-on:hover .wla-add__on { display: none; }
  .wla-add.is-on:hover .wla-add__off { display: inline; }
}
.wla-scr__note { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 14px 0 0; padding: 12px 14px 12px 16px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 12px; background: color-mix(in srgb, var(--accent-wash) 70%, var(--surface)); color: var(--text); font-size: .86rem; line-height: 1.45;
  box-shadow: 0 10px 30px rgba(10, 14, 22, .14), 0 1px 3px rgba(10, 14, 22, .06); animation: wla-note-in .22s ease; }
@keyframes wla-note-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wla-scr__note[hidden] { display: none; }
.wla-scr__note > div { flex: 1 1 320px; min-width: 0; }
.wla-scr__note-sub { display: block; margin-top: 2px; color: var(--text-soft); font-size: .8rem; }
.wla-scr__note .btn { flex: none; padding: 7px 14px; font-size: .84rem; }
@media (max-width: 640px) {
  .wla-scrt col.w-co { width: 128px; }
  .wla-scrt col.w-add { width: 50px; }
  .wla-scrt th:first-child, .wla-scrt td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
  .wla-scrt th.wla-addc, .wla-scrt td.wla-addc { position: sticky; right: 0; z-index: 1; padding-left: 6px; padding-right: 2px; background: var(--surface);
    box-shadow: -10px 0 10px -10px rgba(10, 14, 22, .22); }
  .wla-add { min-width: 0; width: 38px; height: 34px; padding: 0; }
  .wla-add span { display: none; }
  .wla-add svg { width: 15px; height: 15px; }
  .wla-scr__note .btn { width: 100%; }
  /* (the table's "more to the right" arrow sits just left of the pinned Add buttons, not on top of them) */
  .ts-hint:has(> .table-scroll > .wla-scrt--add) > .ts-more { right: 50px; }
}
/* the company calendar's open / close arrow, left of the time (user, 20 Oct 2026) */
.cal td.cal-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cal td.cal-time > span { vertical-align: middle; }
.cal th.cal-timeh { padding-left: 38px; }                 /* (over the time, past the expand arrow) */
.cal-exp { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 0 6px 0 -2px; padding: 0; vertical-align: middle;
  border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.cal-exp:hover { background: var(--surface-2); color: var(--text); }
.cal-exp svg { width: 15px; height: 15px; transition: transform .2s ease; }
.cal-exp[aria-expanded="true"] { color: var(--accent); }
.cal-exp[aria-expanded="true"] svg { transform: rotate(90deg); }

/* ---- Share button on Portside Originals (21 Oct 2026) ---- */
.feature-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share { position: relative; flex: none; }
.share__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600; cursor: pointer;
}
.share__btn:hover, .share__btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.share__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 168px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.share__menu[hidden] { display: none; }
.share__item {
  display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 7px; background: none;
  color: var(--text); font-family: var(--font-ui); font-size: .84rem; text-decoration: none; cursor: pointer;
}
.share__item:hover, .share__item:focus-visible { background: var(--surface-2); outline: none; }
.share__copy { border-top: 1px solid var(--border); border-radius: 0 0 7px 7px; margin-top: 4px; padding-top: 9px; }

/* Terms and Conditions page (#/terms, text in assets/legal/terms.html - 25 Oct 2026) */
.sitefoot a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.sitefoot a:hover { color: var(--text); }
.legal-wrap { max-width: 78ch; }
.legal__kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--accent-text); margin: 0 0 6px; }
.legal__head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0; }
.legal__meta { color: var(--muted); margin: 6px 0 22px; font-size: .9rem; }
.legal__notice { border-left: 3px solid var(--accent); background: var(--surface-2); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 26px; }
.legal__notice p { margin: 0; line-height: 1.6; }
.legal__toc { border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px 10px; margin: 0 0 30px; }
.legal__toc h2 { font-size: 1rem; margin: 0 0 8px; }
.legal__toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 28px; font-size: .9rem; line-height: 1.7; }
.legal__toc a { color: var(--link, var(--text)); text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal section { scroll-margin-top: 90px; margin: 0 0 22px; }
.legal section h2 { font-size: 1.15rem; margin: 0 0 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.legal section p, .legal section li { line-height: 1.65; font-size: .95rem; }
.legal section p { margin: 0 0 10px; }
.legal section ul { margin: 0 0 12px; padding-left: 1.3em; }
.legal section li { margin: 0 0 6px; }
.legal-fill { background: #FFF3B0; color: #5A4500; padding: 0 3px; border-radius: 3px; }
.legal__end { color: var(--muted); font-size: .82rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 28px; }
@media (max-width: 640px) { .legal__toc ol { columns: 1; } }
.legal-scroll { overflow-x: auto; margin: 0 0 12px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 4px 0 12px; }
.legal-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--border-strong, var(--border)); padding: 6px 10px 6px 0; }
.legal-table td { border-bottom: 1px solid var(--border); padding: 7px 10px 7px 0; vertical-align: top; line-height: 1.5; }
.legal-table code { font-size: .8rem; white-space: nowrap; }
.legal section a, .legal__notice a { color: var(--link, var(--accent)); }
@media (max-width: 640px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .legal-table td { display: block; border: 0; padding: 2px 0; }
  .legal-table td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted); }
  .legal-table code { white-space: normal; word-break: break-all; }
}
/* the Cookie Policy's "Remember my browsing" switch */
.legal-switch { margin: 4px 0 16px; }
.legal-switch__row { display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; cursor: pointer; position: relative; background: var(--surface-2); }
.legal-switch__text { flex: 1 1 auto; display: grid; gap: 3px; font-size: .9rem; line-height: 1.45; }
.legal-switch__text span { color: var(--muted); }
.legal-switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.legal-switch__track { flex: 0 0 auto; width: 42px; height: 24px; border-radius: 12px; background: var(--border-strong, #C9CDD4);
  position: relative; transition: background .15s ease; }
.legal-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s ease; }
.legal-switch__input:checked + .legal-switch__track { background: var(--accent); }
.legal-switch__input:checked + .legal-switch__track::after { transform: translateX(18px); }
.legal-switch__input:focus-visible + .legal-switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the consent banner on a first visit (25 Oct 2026; slimmed to one line the same day - user: "too chunky") */
.consent { position: fixed; z-index: 900; left: 16px; right: 16px; bottom: 14px; margin: 0 auto; max-width: 940px;
  background: var(--surface, #fff); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 6px 22px rgba(10, 16, 30, .14); padding: 8px 10px 8px 16px; display: flex; gap: 14px; align-items: center; }
.consent__body { flex: 1 1 auto; margin: 0; font-size: .84rem; line-height: 1.4; }
.consent__body a { color: var(--link, var(--accent)); white-space: nowrap; }
.consent__actions { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }
.consent__btn { font: inherit; font-size: .8rem; font-weight: 600; border-radius: 6px; padding: 6px 11px; cursor: pointer; white-space: nowrap; }
.consent__btn--main { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.consent__btn--main:hover { filter: brightness(.94); }
.consent__btn--link { background: none; border: 0; color: var(--muted); padding: 6px 6px; text-decoration: underline; text-underline-offset: 2px; }
.consent__btn--link:hover { color: var(--text); }
.consent__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .consent { flex-wrap: wrap; }
  .consent__body { flex-basis: 100%; }
  .consent__actions { width: 100%; }
  .consent__btn--main { flex: 1 1 0; }
}
/* the disclosure under Chart Pro's readings tables (25 Oct 2026) */
.cp-pro__disc { grid-column: 1 / -1; margin: 0; padding: 8px 14px 12px; border-top: 1px solid var(--border); font-size: 11px; line-height: 1.5; color: var(--muted); }
.cp-pro__disc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cp-pro__disc a:hover { color: var(--text); }
/* the chart's results (E) and dividends (D) switches in the left tool column (25 Oct 2026): the marker's own letter
   and colour - outlined while off, filled when on */
.cp-evico { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10.5px; font-weight: 700;
  line-height: 1; border: 1.5px solid var(--evc); color: var(--evc); background: transparent; transition: background .12s ease, color .12s ease; }
.cp-evico--e { --evc: #2A6FD6; }
.cp-evico--d { --evc: #0E9370; }
.cp-tools button.cp-evtog.is-on { background: none; }
.cp-tools button.cp-evtog.is-on .cp-evico { background: var(--evc); color: #fff; }

/* (audit, 26 Oct 2026) phone width: the Charts toolbar, the watchlist tab bar and the price-targets table were wider
   than the screen, so the whole page scrolled sideways - each now scrolls within itself */
@media (max-width: 640px) {
  .cp-top { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .tg-card { overflow-x: auto; }
}

/* ---------- accounts: the top-right link, log in / sign up, My account (26 Oct 2026) ---------- */
.acct-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: .88rem;
  font-weight: 600; text-decoration: none; white-space: nowrap; line-height: 1; transition: background .18s ease; }
.acct-link:hover { background: var(--surface-3); text-decoration: none; }
.acct-link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.acct-link.is-in { border-color: var(--accent); }
@media (max-width: 1180px) { .acct-link { padding: 6px 7px; } .acct-link__label { display: none; } }

.acct-wrap { max-width: 920px; }
.acct-wrap:has(> .acct-auth) { max-width: none; }          /* (the log-in card centred on the page) */
.acct-loading { color: var(--muted); }
.acct-auth { max-width: 440px; margin: 24px auto; padding: 22px 24px; }
.acct-auth__title { font-size: 1.6rem; margin: 0 0 16px; }
.acct-auth__alt { margin: 14px -24px -22px; padding: 14px 24px; border-top: 1px solid var(--border); font-size: .88rem; text-align: center; color: var(--text-soft); }
.acct-auth__note { margin: 0 0 12px; color: var(--text-soft); }
.acct-auth__small { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.acct-owner-links { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-owner-links .btn { text-decoration: none; color: var(--text); }
.acct-owner-links .btn--primary { color: #fff; }   /* the site owner's three pages (user, 1 Dec 2026) */
/* the owner's personal-holdings disclosure: a small line at the foot of the Weighting Optimiser and the Valuation tabs
   (user, 2 Dec 2026 - app.js discLine) */
.hold-disc { margin: 18px 0 0; font-size: .72rem; line-height: 1.4; color: var(--muted); }
.hold-disc[hidden] { display: none; }
.wla-disc + .hold-disc { margin-top: 6px; }
/* the owner's personal holdings, under the owner's pages (user, 2 Dec 2026 - account.js drawHoldings) */
.acct-hold { margin-top: 26px; }
.acct-hold__title { margin: 0 0 6px; font-size: 1.05rem; }
.acct-hold__add { position: relative; max-width: 520px; }
.acct-hold__q { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; }
.acct-hold__q:focus { outline: none; border-color: var(--accent); }
.acct-hold__results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px; max-height: 340px; overflow: auto; }
.acct-hold__results[hidden] { display: none; }
.acct-hold__opt { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px;
  color: var(--text); font: inherit; cursor: pointer; }
.acct-hold__opt:hover, .acct-hold__opt:focus-visible { background: var(--surface-2); outline: none; }
.acct-hold__opt b { display: block; font-size: .92rem; }
.acct-hold__opt span { font-size: .8rem; color: var(--muted); }
.acct-hold__none { margin: 0; padding: 8px 10px; font-size: .86rem; color: var(--muted); }
.acct-hold__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.acct-hold__empty { color: var(--muted); font-size: .88rem; }
.acct-hold__item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.acct-hold__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.acct-hold__head b { font-size: .95rem; }
.acct-hold__sym { font-size: .8rem; color: var(--muted); }
.acct-hold__rm { margin-left: auto; font-size: .8rem; padding: 4px 11px; }
.acct-auth__small--centre { text-align: center; }   /* the log-in / sign-up card's "Forgotten your password?" line (user, 1 Dec 2026) */
.acct-form { display: grid; gap: 14px; }
.acct-field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.acct-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.acct-field small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.acct-field small.acct-caps { color: var(--down); font-weight: 600; }   /* (the Caps Lock line under a password box) */
.acct-field small.acct-caps[hidden] { display: none; }
.acct-field input, .acct-field select { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 400; }
.acct-field input:focus, .acct-field select:focus { outline: none; border-color: var(--accent); }
.acct-field--widget { max-width: 440px; }       /* (the app's home-screen widget list - My account, 4 Nov 2026) */
.acct-check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--text-soft); line-height: 1.45; }
.acct-check input { margin-top: 3px; accent-color: var(--accent); }
/* (within 14 days of a yearly renewal: cancel now with a refund, or at the year's end - account.js drawCancel) */
.acct-cancel-how { display: grid; gap: 10px; margin: 4px 0 14px; }
.acct-cancel-how .acct-check { color: var(--text); }
/* (the Terms tick box wherever a payment starts - user, 2 Dec 2026: "simply just put a tick box agreeing to the terms &
   conditions"; account.js consentHtml) */
.acct-consent { margin: 4px 0 2px; text-align: left; }
.acct-consent__box { color: var(--text); }
.acct-consent__box a { color: var(--accent); }
.acct-consent.is-missing input { outline: 2px solid var(--accent); outline-offset: 2px; }
.sub-note + .acct-consent, .acct-plans + .acct-consent { display: flex; justify-content: center; margin: 16px 0 4px; }
.acct-error { margin: 0; color: var(--down); font-size: .88rem; }
.acct-submit { width: 100%; padding: 11px 18px; }
.btn:disabled { opacity: .6; cursor: default; }

.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acct-sec { margin: 0 0 34px; }
.acct-lede { margin: 0 0 6px; }
.acct-hint { margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.acct-status { min-height: 1.3em; margin: 10px 0 0; font-size: .86rem; color: var(--text-soft); }
.acct-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.acct-plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* (a free account sees all four; a paid one the three) */
@media (max-width: 1000px) { .acct-plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acct-tier { font-style: normal; font-weight: 600; color: var(--accent-ink); font-size: .74rem; margin-left: 6px; padding: 1px 7px;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.acct-switch.is-locked .legal-switch__text { opacity: .72; }
/* the padlock in a locked note's switch place (user, 28 Oct 2026) - as wide as the switch, so the rows line up */
.acct-lock { flex: 0 0 auto; width: 42px; height: 24px; display: grid; place-items: center; color: var(--muted); border-radius: 12px; }
.acct-lock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acct-lock:hover, .acct-lock:focus-visible { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.sub-tier__incl { display: block; text-align: center; padding: 9px 0; font-size: .88rem; }
/* (17 Nov 2026, user: "improve the look of this") the plan cards in My account follow the Subscribe page's: name, a
   large price, the button, then the ticked list - on shared rows (subgrid), so the parts line up across the plans */
.acct-plan { padding: 22px 22px 24px; border-radius: 14px; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0;
  align-content: start; }
.acct-plan.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -16px color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface)) 0, var(--surface) 200px); }
.acct-plan__name { margin: 0; font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.01em; }
.acct-plan__price { padding: 12px 0 16px; color: var(--muted); }
.acct-plan__price b { font-family: "Newsreader", Georgia, serif; font-size: 1.9rem; font-weight: 600; line-height: 1; letter-spacing: -.015em; color: var(--text); }
.acct-plan__price b.is-soon { font-size: 1.2rem; color: var(--muted); font-weight: 500; }
.acct-plan__price span { margin-left: 6px; font-size: .88rem; }
.acct-plan__price small { display: block; margin-top: 7px; font-size: .84rem; }
.acct-plan__price em { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: .74rem; font-weight: 600;
  color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
:root[data-theme="dark"] .acct-plan__price em { color: var(--accent); }
.acct-plan__act { align-self: start; }
.acct-plan__act .btn, .acct-plan__current { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 42px;
  border-radius: 9px; font-size: .9rem; }
.acct-plan__current { font-weight: 600; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
:root[data-theme="dark"] .acct-plan__current { color: var(--accent); }
.acct-plan__current svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.acct-plan__feats { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.acct-plan__all { margin: 0 0 10px; font-size: .84rem; font-weight: 600; color: var(--text); }
.acct-plan__feats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .88rem; line-height: 1.45; color: var(--text-soft); }
.acct-plan__feats li { display: flex; gap: 9px; align-items: flex-start; }
.acct-plan__feats li svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round; }
.acct-cancel { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
.acct-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--down); text-decoration: underline; cursor: pointer; }
/* (17 Nov 2026, user: Emails "a click to expand") the section's one line - what they get, and the cue to open it */
.acct-fold { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: .95rem;
  line-height: 1.45; text-align: left; cursor: pointer; }
.acct-fold:hover { border-color: var(--border-strong); }
.acct-fold[aria-expanded="true"] { background: var(--surface-2); }
.acct-fold__text { min-width: 0; overflow-wrap: anywhere; }
.acct-fold__cue { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--accent-ink); }
:root[data-theme="dark"] .acct-fold__cue { color: var(--accent); }
.acct-fold__cue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .15s ease; }
.acct-fold[aria-expanded="true"] .acct-fold__cue svg { transform: rotate(180deg); }
.acct-fold__body { margin-top: 14px; }
.acct-bulk { display: flex; gap: 8px; margin: 0 0 12px; }
.acct-switches { display: grid; gap: 10px; }
.acct-when { font-style: normal; font-weight: 500; color: var(--muted); font-size: .82rem; margin-left: 6px; }
.acct-form--row { grid-template-columns: 1fr 1fr auto; align-items: start; }
.acct-form--row .btn { margin-top: 24px; }
@media (max-width: 720px) {
  .acct-plans { grid-template-columns: 1fr; }
  .acct-form--row { grid-template-columns: 1fr; }
  .acct-form--row .btn { margin-top: 0; }
}
/* change password (27 Oct 2026): current / new / confirm side by side, the button under them; after a reset the
   section is a highlighted box at the top of My account */
.acct-form--pw { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px 16px; max-width: 760px; }
.acct-form--pw2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 508px; }   /* (after a reset: no current-password box) */
.acct-form--pw input { box-sizing: border-box; height: 44px; }
.acct-pw-acts { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.acct-pw-acts .btn { box-sizing: border-box; height: 44px; padding: 0 16px; }
.acct-show { margin: 0; align-items: center; cursor: pointer; }
.acct-show input { margin: 0; }
@media (max-width: 720px) { .acct-form--pw, .acct-form--pw2 { grid-template-columns: 1fr; } .acct-pw-acts .btn { width: 100%; } }
.acct-sec--reset { padding: 18px 22px 16px; border: 1px solid var(--accent); border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.acct-sec--reset .section-title { border-top: 0; padding-top: 0; }
/* (cancel / delete: the same password box and button on both, the button level with the box and the same height) */
.acct-form--del { grid-template-columns: minmax(0, 360px) auto; justify-content: start; align-items: end; }
.acct-form--del .btn { margin-top: 0; padding-left: 16px; padding-right: 16px; }   /* (as wide as the words: user, 27 Oct 2026) */
.acct-form--del input, .acct-form--del .btn { box-sizing: border-box; height: 44px; padding-top: 0; padding-bottom: 0; }
/* leaving pop-up (27 Oct 2026): the 30%-off offer, then why they're going */
.acct-leave { max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; }   /* (scrolls on a short screen) */
.acct-leave__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem !important; font-weight: 700; color: var(--accent) !important; margin-bottom: 4px !important; }
.acct-leave__deal { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 16px 0 20px; padding: 16px;
  border-radius: 10px; border: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.acct-leave__deal b { font-size: 2rem; line-height: 1.1; color: var(--accent); }
.acct-leave__deal span { font-size: .88rem; color: var(--text-soft); }
.acct-leave__acts { flex-wrap: wrap; margin-top: 18px; }
.acct-leave__acts--stack { flex-direction: column-reverse; }   /* (the offer: "Yes" on top, both full width) */
.acct-leave__acts--stack .btn { width: 100%; padding: 11px 18px; }
.acct-leave__why { display: grid; gap: 6px; margin-top: 12px; }
.acct-leave__opt { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .9rem; cursor: pointer; }
.acct-leave__opt:hover { background: var(--surface-2); }
.acct-leave__opt input { accent-color: var(--accent); margin: 0; }
.acct-leave__opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.acct-leave__why textarea { margin-top: 4px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-size: .9rem; resize: vertical; }
.acct-leave__why textarea:focus { outline: none; border-color: var(--accent); }
.acct-leave .acct-error { margin-top: 6px; color: var(--down); }
.acct-ending { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 12px; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.acct-ending p { margin: 0; flex: 1 1 320px; font-size: .9rem; }   /* (a cancelled subscription running to the month end) */
.acct-deal { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; display: inline-block; font-size: .9rem;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.acct-del-btn { color: var(--down); border-color: var(--down); }
@media (max-width: 720px) { .acct-form--del { grid-template-columns: 1fr; } }

/* ---------- the Subscribe button and #/subscribe (26 Oct 2026) ---------- */
.sub-link { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--accent);
  border: 1px solid var(--accent); color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; line-height: 1; }
.sub-link:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; text-decoration: none; }
:root[data-theme="dark"] .sub-link:hover { color: var(--surface); }
.sub-link.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.sub-link[hidden] { display: none; }
.acct-link.is-active { background: var(--surface-3); border-color: var(--text); color: var(--text); }

.acct-wrap--wide { max-width: 1080px; margin: 0 auto; }
.sub-hero { text-align: center; max-width: 880px; margin: 8px auto 28px; }
.sub-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 6px 0 10px; }
.sub-hero p { color: var(--muted); margin: 0; }
/* (the caption on one line where it fits - user, 28 Oct 2026; it wraps on narrower screens) */
@media (min-width: 900px) { .sub-hero p { white-space: nowrap; } }
/* (redesign 28 Oct 2026, user: "make this look better") four cards whose parts - name and tagline, price, button,
   features - share rows (subgrid), so they line up across the plans */
.sub-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; column-gap: 16px; row-gap: 28px; }   /* (Free, Basic, Plus, Pro) */
.sub-tier { position: relative; padding: 28px 24px 26px; border-radius: 14px; display: grid; grid-row: span 4;
  grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.sub-tier.is-top { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -14px color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface)) 0, var(--surface) 220px); }
.sub-tier__badge { position: absolute; top: -11px; left: 24px; padding: 3px 10px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sub-tier__name { font-size: 1.6rem; }
.sub-tier__tag { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.sub-tier__price { padding: 18px 0 16px; }
.sub-tier__price b { font-family: "Newsreader", Georgia, serif; font-size: 2rem; font-weight: 600; line-height: 1; letter-spacing: -.015em; color: var(--text); }
.sub-tier__price b.is-soon { font-size: 1.25rem; color: var(--muted); font-weight: 500; }
/* (prices, 28 Oct 2026) "a month" beside the figure; the yearly price and its saving under it */
.sub-tier__per { margin-left: 6px; font-size: .88rem; color: var(--muted); }
.sub-tier__yr { margin-top: 8px; font-size: .84rem; color: var(--muted); }
.sub-tier__save { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
:root[data-theme="dark"] .sub-tier__save { color: var(--accent); }
.sub-tier__per + .sub-tier__save { margin-left: 8px; vertical-align: 2px; }     /* (Yearly: the saving beside "a year") */
.sub-tier__act { align-self: start; }
.sub-tier__act .btn, .sub-tier__here, .sub-tier__incl { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  min-height: 42px; text-align: center; text-decoration: none; border-radius: 9px; font-size: .9rem; }
.sub-tier__act a.btn { color: var(--text); }
.sub-tier__act a.btn--primary { color: #fff; }
.sub-tier__here { font-weight: 600; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
:root[data-theme="dark"] .sub-tier__here { color: var(--accent); }
.sub-tier__here svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sub-tier__incl { color: var(--muted); border: 1px dashed var(--border-strong); }
.sub-tier__feats { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.sub-tier__all { margin: 0 0 10px; font-size: .84rem; font-weight: 600; color: var(--text); }
.sub-tier__feats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .88rem; line-height: 1.45; color: var(--text-soft); }
.sub-tier__feats li { display: flex; gap: 9px; align-items: flex-start; }
.sub-tier__feats li svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round; }
.sub-tier__soon { margin: 12px 0 16px; font-size: .88rem; color: var(--muted); flex: 1 1 auto; line-height: 1.5; }
.sub-tier__feats .sub-tier__soon { margin: 0; }
.sub-note { text-align: center; color: var(--muted); font-size: .86rem; margin: 26px 0 0; }
/* Monthly / Yearly (1 Nov 2026: the billing period goes with the choice to the payment page) */
.sub-period { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: -8px auto 0; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface, #fff); margin-bottom: 22px; }
.sub-period button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.sub-period button[aria-checked="true"] { background: var(--accent); color: #fff; }
.sub-period button span { font-weight: 500; font-size: .78rem; opacity: .85; margin-left: 4px; }
.sub-status { text-align: center; }
.acct-plan .sub-tier__soon { margin: 0; }
@media (max-width: 1100px) { .sub-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; } }
@media (max-width: 640px) {
  .sub-tiers { grid-template-columns: 1fr; }
}
/* (26 Oct 2026: with Subscribe and the account link the phone's top row no longer fitted - it wrapped to a 4th row)
   phones: the logo with Subscribe + account on row 1; the search with the location flag and theme switch on row 2 */
@media (max-width: 640px) {
  .topbar__right { display: contents; }
  .sub-link { order: 2; }
  .acct-link { order: 2; }
  .topbar__search { order: 3; flex: 1 1 140px; min-width: 0; }
  .locpicker { order: 3; }
  #themeToggle { order: 3; }
}

/* ---------- the Screener (#/screener, 26 Oct 2026) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scr-bar { padding: 14px 16px; margin-bottom: 18px; }
.scr-bar__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scr-add select { padding: 9px 34px 9px 14px; border-radius: 9px; border: 1px solid var(--accent); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.scr-count { margin-left: auto; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.scr-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-top: 12px; }
.scr-filters:has(> .scr-empty) { display: block; }
.scr-empty { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.scr-filter { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 10px 12px; }
.scr-filter__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.scr-filter__head b { font-size: .9rem; }
.scr-hint { color: var(--muted); font-size: .76rem; }
.scr-x { margin-left: auto; background: none; border: 0; font-size: 1.15rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.scr-x:hover { color: var(--down); }
.scr-filter__body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.scr-filter__body select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .86rem; }
.scr-range { display: inline-flex; align-items: center; gap: 6px; }
.scr-range input { width: 76px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-size: .86rem; font-variant-numeric: tabular-nums; }
.scr-range input:focus, .scr-filter__body select:focus { outline: none; border-color: var(--accent); }
.scr-to, .scr-unit, .scr-note { color: var(--muted); font-size: .82rem; }
.scr-chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.scr-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft);
  font: inherit; font-size: .82rem; cursor: pointer; }
.scr-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.scr-wait { color: var(--muted); }
.scr-table th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; white-space: nowrap; }
.scr-table th[aria-sort="ascending"], .scr-table th[aria-sort="descending"] { color: var(--text); }
.scr-table th.txt, .scr-table td.txt { text-align: left; }
.scr-table td { white-space: nowrap; padding: 10px 8px; font-size: .86rem; }
.scr-table th { padding: 10px 8px; }
.scr-table .h-name span { overflow: hidden; text-overflow: ellipsis; display: block; line-height: 1.3; margin-top: 1px; max-width: 250px; }
.scr-table .h-name .flag { flex: 0 0 auto; }
.scr-more { text-align: center; margin: 16px 0 0; }
.scr-foot { color: var(--muted); font-size: .8rem; margin: 18px 0 0; max-width: 90ch; }
@media (max-width: 720px) { .scr-hide-sm { display: none; } .scr-filters { grid-template-columns: 1fr; } .scr-count { margin-left: 0; width: 100%; } }
/* (26 Oct 2026: with Screener, Subscribe and the account link the one-row header ran ~30px past a 1024px screen) -
   from 1180px down the section links give way first: slightly tighter, then scrolling sideways as on smaller screens */
@media (max-width: 1180px) and (min-width: 641px) {
  .mainnav { flex: 0 1 auto; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { flex: 0 0 auto; padding: 8px 9px; }
}

/* masthead room (user, 26 Oct 2026: "our top section here is now very cramped") - the content column stays 1240px so the
   logo lines up with the page; the room comes from the controls: the light/dark switch is one icon button (the icon
   shows the mode a click turns on), the location picker is just the flag, and the menu links sit a little closer */
.theme-slider__track { padding: 0; justify-content: center; border-radius: 8px; }
.theme-slider__thumb { display: none; }
.theme-slider__icon { width: 17px; height: 17px; }
.theme-slider__icon--sun { display: none; }
:root[data-theme="dark"] .theme-slider__icon--sun { display: inline-flex; }
:root[data-theme="dark"] .theme-slider__icon--moon { display: none; }
.theme-slider:hover .theme-slider__track { background: var(--surface-3); }
.locpicker__btn { padding: 0 9px; }
.locpicker__btn .chev { display: none; }
.topbar__right { gap: 8px; }
@media (min-width: 1181px) {
  .topbar__inner { gap: 16px; }
  .mainnav a { padding: 8px 10px; }
  .mainnav a.is-active::after { left: 10px; right: 10px; }
}
/* (a 1024px window cut the last menu link, Screener, by ~44px: a little tighter between 981 and 1180px) */
@media (min-width: 981px) and (max-width: 1180px) {
  .mainnav a { padding: 8px 7px; }
  .mainnav a.is-active::after { left: 7px; right: 7px; }
  .brand { --brand-size: 1.38rem; }
  .sub-link { padding: 7px 11px; }
}
/* (user, 26 Oct 2026) the masthead spans the window, no longer the 1240px page column: the logo at the far left, the
   location / light-dark / Subscribe / Log in group at the far right, the menu and search after the logo */
@media (min-width: 981px) {
  .topbar__inner { max-width: none; padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 981px) and (max-width: 1180px) { .topbar__inner { padding-left: 16px; padding-right: 16px; } }
/* (user, 26 Oct 2026: "put these bits more in the centre") - the menu and search centred on the page between the logo
   (far left) and the account group (far right); on narrower windows, evenly spaced between the two */
@media (min-width: 1181px) {
  .mainnav { margin-left: auto; }
  .topbar__search { margin-right: auto; }
  .topbar__right { margin-left: 0; }
}
@media (min-width: 1300px) {
  .topbar__inner { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(170px, 327px) minmax(max-content, 1fr); }
  .brand { justify-self: start; }
  .mainnav { margin-left: 0; }
  .topbar__search { margin-right: 0; width: 100%; }
  .topbar__right { justify-self: end; }
}
/* (user, 26 Oct 2026: "does this look optimal?") - every control in the masthead one height (36px: the search was 42,
   the flag and light/dark 34, Log in 31, Subscribe 30), centred on one line; the logo and the account group closer
   to the window's edges */
.locpicker__btn { height: 36px; }
.theme-slider__track { width: 36px; height: 36px; }
.sub-link, .acct-link { height: 36px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.topbar__inner { align-items: center; }
@media (min-width: 1181px) { .topbar__inner { padding-left: 24px; padding-right: 24px; } }

/* Screener table (user, 26 Oct 2026): every column centred under its title; the company cell a normal table cell
   (it was itself a flex box, which broke its row line and floated the flag), the name on one line beside the flag
   with the ticker under it */
.scr-table th:not(:first-child), .scr-table td:not(:first-child) { text-align: center; }
.scr-table th.txt:not(:first-child), .scr-table td.txt:not(:first-child) { text-align: center; }
.scr-table td.h-co { vertical-align: middle; }
.scr-table .h-name { display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; max-width: none; }
.scr-table .h-name .flag, .scr-table .h-name .h-noflag { flex: 0 0 21px; }
.scr-table .h-name .h-txt { min-width: 0; }
.scr-table .h-name b { display: block; line-height: 1.3; max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
/* (so every column fits the page without scrolling sideways: names up to 180px, tighter cells, long sectors on two lines) */
.scr-table td, .scr-table th { padding-left: 6px; padding-right: 6px; }
.scr-table .h-name b, .scr-table .h-name span { max-width: 180px; }
.scr-table td.c-sector { white-space: normal; max-width: 130px; line-height: 1.3; }
.scr-table .scr-fy { font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-left: 3px; }

/* commodity pages (27 Oct 2026) - as the currency pages; the ticker's commodity chips link to them */
a.tick { color: inherit; text-decoration: none; }
a.tick:hover .tick__sym { text-decoration: underline; }
.cmd-news { list-style: none; margin: 0; padding: 0; }
.cmd-news li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.cmd-news li:last-child { border-bottom: 0; }
.cmd-news a { color: var(--text); font-weight: 600; }
.cmd-src { color: var(--muted); font-size: .76rem; margin-left: 4px; }
/* (user, 27 Oct 2026) figures centred under their headings; the producers' and consumers' tables share one set of
   column widths so the two line up */
.cmd-stocks { table-layout: fixed; width: 100%; min-width: 560px; }
.cmd-stocks th:first-child { width: 40%; }
.cmd-stocks th.num, .cmd-stocks td.num { text-align: center; }
.cmd-stocks td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-stocks tr.is-link { cursor: pointer; }
.cmd-stocks tr.is-link:hover td { background: var(--surface-2); }

/* ---------- the plans' locks (27 Oct 2026): a lock on a tab, the card in place of a locked feature, its pop-up ---------- */
.lock-ico { width: 13px; height: 13px; margin-left: 5px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.st-tab.is-locked, .wl-tab .lock-ico { color: var(--muted); }
/* (29 Oct 2026) the plan's own mark in place of the padlock: FREE and BASIC softly tinted, PLUS in the accent, PRO in
   gold (the second look - user, 29 Oct 2026: "improve the look of the pills on the tabs") */
.plan-pill { display: inline-flex; align-items: center; margin-left: 6px; font-size: 8px; font-weight: 800; letter-spacing: .09em;
  line-height: 1; padding: 3.5px 6px 3px 6.5px; border-radius: 999px; vertical-align: 1px; white-space: nowrap;
  font-feature-settings: "case" 1; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.plan-pill--free { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 30%, transparent); }
.plan-pill--basic { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 11%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent); }
:root[data-theme="dark"] .plan-pill--basic { color: #F08A6C; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.plan-pill--plus { color: #fff; background: linear-gradient(180deg, #F2906F 0%, #E0603F 60%, #C94F30 100%);
  text-shadow: 0 1px 0 rgba(120, 35, 15, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 3px rgba(224, 96, 63, .35); }
.plan-pill--pro { color: #3A2808; background: linear-gradient(180deg, #F8DE8E 0%, #E2B954 55%, #C99A35 100%);
  text-shadow: 0 1px 0 rgba(255, 245, 210, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 3px rgba(185, 138, 43, .4); }
/* on a tab, the pill sits up at the label's top right, like a superscript (user, 29 Oct 2026), and lifts as the tab's
   hovered */
.st-tab .plan-pill, .wl-tab .plan-pill { position: relative; top: -7px; margin-left: 3px; font-size: 7.5px; padding: 3px 5px 2.5px 5.5px; }
.wl-tab .plan-pill { margin-left: -4px; }
.st-tab:hover .plan-pill, .wl-tab:hover .plan-pill { transform: translateY(-1px); filter: brightness(1.05); }
.st-tab:hover .plan-pill--plus, .wl-tab:hover .plan-pill--plus { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 7px rgba(224, 96, 63, .4); }
.st-tab:hover .plan-pill--pro, .wl-tab:hover .plan-pill--pro { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 7px rgba(185, 138, 43, .45); }
.st-panel.is-locked > :not(.lock-card) { display: none !important; }
.lock-card { max-width: 560px; margin: 26px auto; padding: 30px 30px 26px; text-align: center; }
.lock-card__ico { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }
.lock-card__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lock-card__kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.lock-card h3 { font-size: 1.35rem; margin: 0 0 8px; line-height: 1.25; }
.lock-card__lede { margin: 0 auto 6px; color: var(--text-soft); max-width: 440px; line-height: 1.5; }
.lock-card__with { margin: 16px 0 6px; font-weight: 600; font-size: .88rem; }
.lock-card__list { display: inline-block; text-align: left; margin: 0 0 4px; padding-left: 18px; font-size: .9rem; color: var(--text-soft); line-height: 1.55; }
.lock-card__acts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.lock-card__acts .btn { min-width: 150px; text-align: center; text-decoration: none; color: var(--text); }
.lock-card__acts .btn--primary { color: #fff; }
.lock-page { padding: 12px 0 30px; }
.lock-page--pop { min-height: 60vh; }          /* (a paid page shown only as its plan pop-up - nothing under it) */
.lk-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10, 11, 14, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s ease; }
.lk-backdrop.is-in { opacity: 1; }
.lk { position: relative; width: min(500px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 16px; background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3); transform: translateY(10px); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.lk-backdrop.is-in .lk { transform: none; }
.lk .lock-card { margin: 0; max-width: none; padding: 34px 28px 26px; }
.lk-x { background: var(--surface-2); color: var(--text); }
.lk-x:hover { background: var(--border); }
/* an Original past the day's 3: its headline, then the lock */
.blog-post--capped .lock-card { margin-top: 22px; }
/* favourite watchlists: the star on a card and beside a list's name */
.wlc__star { flex: none; align-self: center; width: 30px; height: 30px; margin: -6px -8px -6px 0; border: 0; border-radius: 50%; background: none;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.wlc__star svg, .wl-star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.wlc__star:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.wlc__star.is-on, .wl-star.is-on { color: #E8A317; }
.wlc__star.is-on svg, .wl-star.is-on svg { fill: currentColor; }
.wl-star { display: inline-flex; align-items: center; gap: 6px; }
.wl-favs { margin-top: 32px; }
.wl-favs .wl-smart__head p a { color: var(--accent); }
.wl-tab__n:empty { display: none; }

/* ==========================================================================================================================
   PHONES (user, 1 Nov 2026: "go over the mobile app/version of portside and make it as professional and sleek as
   possible"). Kept together here, last in the file, so it wins over the older phone rules above. ≤640px unless noted.
   ========================================================================================================================== */
.topbar__searchbtn { display: none; }
@media (max-width: 640px) {
  /* the header: ONE row of controls (logo · search · Sign up · account), then the sections as a sideways row - it was
     three rows (~205px of an 812px screen, and sticky); the search, region and theme fold away behind the search button */
  .topbar__inner { padding: 9px 14px 0; gap: 0 8px; align-items: center; }
  .brand { --brand-size: 1.3rem; }
  .topbar__searchbtn { display: inline-flex; order: 2; margin-left: auto; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
    cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .topbar__searchbtn svg { width: 17px; height: 17px; }
  .topbar.is-search .topbar__searchbtn { background: var(--surface-3); border-color: var(--text-soft); }
  .sub-link { margin-left: 0; height: 36px; padding: 0 15px; font-size: .86rem; }
  .acct-link { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .topbar__search, .locpicker, #themeToggle { display: none; }
  .topbar.is-search .topbar__search { display: block; order: 3; flex: 1 1 200px; min-width: 0; margin-top: 9px; }   /* (200px: too wide for the top row, so it starts the next) */
  .topbar.is-search .locpicker { display: block; order: 3; margin-top: 9px; }
  .topbar.is-search #themeToggle { display: block; order: 3; margin-top: 9px; }
  .topbar__search input { height: 38px; font-size: 16px; }            /* (16px: iOS doesn't zoom the page on focus) */
  .mainnav { order: 4; flex: 1 1 100%; margin: 4px -14px 0; padding: 0 26px 0 6px; gap: 0;
}  /* (the fade at the right edge gave way to the scroll arrow - .scroll-more) */
  .mainnav a { padding: 11px 10px 12px; font-size: .9rem; }
  .mainnav a.is-active::after { left: 10px; right: 10px; bottom: 0; height: 2.5px; border-radius: 2px 2px 0 0; }
  .tickerbar__track { padding: 6px 0; gap: 26px; font-size: .8rem; }
  .view { padding: 18px 16px 56px; }
}
@media (max-width: 640px) {
  /* the returns strip (stock, watchlist, currency and commodity pages): one row of five slim cells, not a 2-column grid
     of boxes three rows deep */
  .perf-strip, .wl-page .perf-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 14px 0 18px; }
  .wl-page .perf-stat, .wl-page .perf-stat:nth-child(odd) { padding: 9px 2px 8px; text-align: center; border-left: 1px solid var(--border); border-top: 0; }
  .wl-page .perf-stat:first-child { border-left: 0; }
  .wl-page .perf-stat:last-child { grid-column: auto; }
  .wl-page .perf-stat .pl { white-space: nowrap; }
  .wl-page .perf-stat .pv { margin-top: 2px; white-space: nowrap; }
  .fx-page .perf-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-page .perf-stat:nth-child(4) { border-left: 0; }
  .fx-page .perf-stat:nth-child(n+4) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  /* cards: less padding inside on a narrow screen, so charts and tables get the width */
  .pc-wrap, .wl-page .pc-wrap { padding: 16px 14px; }
  .pc-top, .wl-page .pc-top { gap: 18px; }
  .pcmp-card { padding: 16px 14px; }
  /* the key figures (free cash flow, total debt...) two to a row, not one long column */
  .stock-fin__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
  .stock-fin__cell span { font-size: .68rem; }
  .stock-fin__cell b { font-size: 1.02rem; }
  /* tab rows scroll sideways: a fade at the right edge says there's more; each tab a comfortable 44px to tap */
  .st-tabs { margin: 18px -16px 16px; padding: 0 22px 0 8px;
}  /* (the fade at the right edge gave way to the scroll arrow - .scroll-more) */
  .st-tab { padding: 12px 11px 13px; font-size: .92rem; min-height: 44px; }
  /* the plan pop-ups and locks come up from the bottom of the screen, as a phone's own sheets do */
  .qp-backdrop, .lk-backdrop { align-items: flex-end; padding: 0; }
  .qp, .lk { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; transform: translateY(40px); }
  .qp-backdrop.is-in .qp, .lk-backdrop.is-in .lk { transform: none; }
  .qp::before, .lk::before { content: ""; position: sticky; top: 0; display: block; width: 38px; height: 4px; margin: 8px auto -12px;
    border-radius: 2px; background: color-mix(in srgb, currentColor 30%, transparent); z-index: 3; }
  .lk .lock-card { padding: 28px 20px calc(22px + env(safe-area-inset-bottom)); }
  .lock-card__acts .btn { flex: 1 1 140px; min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  /* the consent banner: compact, its buttons side by side and easy to tap */
  .consent { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-radius: 14px; }
  .consent__body { font-size: .8rem; }
  .consent__actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
  .consent__btn { min-height: 40px; font-size: .84rem; }
  /* the plan badges on locked tabs were 7.5px - too small to read */
  .plan-pill { font-size: 8.5px; }
  .sitefoot { padding: 20px 16px calc(32px + env(safe-area-inset-bottom)); line-height: 1.9; }
}
@media (max-width: 640px) {
  .ov-svg text { font-size: 13px; }
}
@media (max-width: 640px) {
  /* News: the time above the headline instead of an 84px column beside it */
  .news-list { padding: 0 14px; }
  .news-row:not(.lib-row):not(.news-row--filing) { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0 15px; }
  .news-row:not(.lib-row):not(.news-row--filing) .news-row__date { padding-top: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
  .news-row__title { font-size: 1rem; line-height: 1.35; }
  .news-row__excerpt { font-size: .86rem; line-height: 1.5; }
  .news-tag { font-size: .66rem; }
  .news-row.lib-row { grid-template-columns: 40px minmax(0, 1fr); }
  .news-row.lib-row > :last-child:not(.lib-row__body) { grid-column: 2; }
}
@media (max-width: 640px) {
  /* Watchlists: each list a compact row (name and region · a small chart · today and 1 year) - a card each was ~300px
     tall, so 59 lists made a very long scroll */
  .wlc:not(.wlc--new) { display: grid;
    }
  .wlc:not(.wlc--new):hover { transform: none; }
  .wlc__top { justify-content: flex-start; grid-area: top; align-items: flex-start; gap: 10px; }
  .wlc__n { display: none; }
  .wlc__spark { margin: 0; grid-area: spark; height: 30px; }
  .wlc__stats { display: flex; flex-direction: column; padding: 0; border: 0; margin: 0; grid-area: stats; align-items: stretch; gap: 4px; }
  .wlc__stat { display: flex; align-items: baseline; gap: 5px; text-align: right; justify-content: center; }
  .wlc__stat span { display: inline; font-size: .64rem; margin: 0; white-space: nowrap; }
  .wlc__stat b { font-size: .92rem; min-width: 4.4em; }
  .wlc--mine .wlc__top { padding-right: 0; }
  .wlc__rm { opacity: 1; top: auto; bottom: 6px; right: auto; left: 6px; display: none; }
  .wlc--new { min-height: 64px; flex-direction: row; }
  /* the tabs above them: one line each, scrolling sideways if they must */
  .wl-tabs { gap: 20px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 18px; padding: 0 16px; }
  .wl-tabs::-webkit-scrollbar { display: none; }
  .wl-tab { white-space: nowrap; flex: 0 0 auto; min-height: 44px; }
  .wl-filters { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; }
  .wl-filters label + .select { margin-right: 0; width: 100%; }
}
@media (max-width: 640px) { .wl-grid, .wl-index .wl-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  /* the plan pop-up's six "what you get" tiles: two to a row (they stacked one per row - a long scroll to the button) */
  .qp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .qp-feats li { padding: 10px 8px; }
  .qp-feats b { font-size: 12.5px; white-space: normal; }
  .qp-feats span { font-size: 11.5px; white-space: normal; }
  .qp-cta { min-height: 46px; }
}
@media (max-width: 640px) {
  /* Calendar (Macro): each release a small card - time · currency · importance, the event across the full width, then
     Actual / Forecast / Previous with their names - not a 7-column table squeezing the event into a sliver */
  table.cal--macro, table.cal--macro tbody { display: block; width: 100%; }
  table.cal--macro thead { display: none; }
  table.cal--macro tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 10px; padding: 12px 14px;
    border-bottom: 1px solid var(--border); align-items: center; }
  table.cal--macro tbody tr > td { display: block; padding: 0; border: 0; text-align: left; }
  table.cal--macro tbody tr > td[colspan], table.cal--macro tbody tr.daybar > td { grid-column: 1 / -1; }
  table.cal--macro tbody tr.daybar { display: block; padding: 10px 14px; background: var(--surface-2); }
  table.cal--macro tbody tr.daybar > td { width: auto; background: none; }
  table.cal--macro tbody tr > td:nth-child(1):not([colspan]) { font-variant-numeric: tabular-nums; }
  table.cal--macro tbody tr > td:nth-child(4):not([colspan]) { font-weight: 600; line-height: 1.35; }
  table.cal--macro tbody tr > td:nth-child(n+5):not([colspan]) { font-variant-numeric: tabular-nums; }
  table.cal--macro tbody tr > td:nth-child(5):not([colspan])::before { content: "Actual"; }
  table.cal--macro tbody tr > td:nth-child(6):not([colspan])::before { content: "Forecast"; }
  table.cal--macro tbody tr > td:nth-child(7):not([colspan])::before { content: "Previous"; }
  table.cal--macro tbody tr > td:nth-child(n+5):not([colspan])::before { display: block; color: var(--muted);
    text-transform: uppercase;
    font-size: .6rem; font-weight: 600; letter-spacing: .06em; margin-bottom: 2px;
}
  /* the date choices: one line each, scrolling sideways */
  .cal-datewrap .seg button { white-space: nowrap; }
}
@media (max-width: 640px) {
  /* Subscribe: the four plans side by side, swiped like cards (each ~84% wide, so the next one peeks in) - stacked,
     Pro was four long cards down the page */
  .sub-tiers { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; max-width: none !important;
    margin: 0 -16px !important; padding: 14px 16px 10px; scrollbar-width: none; }
  .sub-tiers::-webkit-scrollbar { display: none; }
  .sub-tier { flex: 0 0 84%; scroll-snap-align: center; }
  .sub-hero { margin-bottom: 18px; }
  .sub-hero h1 { font-size: 1.85rem; }
}
@media (max-width: 640px) {
  /* Financials (as filed): the figure columns were fixed at 132 + 132 + 88px, which left the line items' names no room at
     all on a phone - narrower figure columns, the names get the rest, and the card scrolls sideways if it still must */
  .stock-st { overflow-x: auto; }
  .st-table--filed col.st-col-num { width: 78px !important; }
  .st-table--filed col.st-col-chg { width: 54px !important; }
  .st-table--filed col.st-col-num + col.st-col-num { width: 0 !important; }      /* (the year before: hidden on phones, see .st-prev) */
  .st-table--filed { width: 100%; }
  .st-table--filed th, .st-table--filed td { padding-left: 5px; padding-right: 5px; font-size: .8rem; }
  .st-table--filed tbody th { padding-left: 8px; white-space: normal; }
  .st-table--filed thead th { font-size: .7rem; }
}

/* ==========================================================================================================================
   THE APPS (iPhone, iPad, Android - app/, 1 Nov 2026): html.is-app is set by assets/js/app-native.js
   ========================================================================================================================== */
/* a notification that arrives with the app open, and the app's short messages */
.app-banner { position: fixed; z-index: 1100; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: 0 12px 34px rgba(10, 16, 30, .18); transform: translateY(-140%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); cursor: pointer; }
.app-banner.is-in { transform: none; }
.app-banner b { font-size: .92rem; }
.app-banner span { font-size: .86rem; color: var(--text-soft); line-height: 1.4; }
.app-ask .lock-card__title { font-size: 1.25rem; margin: 6px 0 8px; }
/* the iPhone widget tapped (app-native.js widgetTable, 4 Nov 2026): its whole list in a sheet - title line, the list's
   page a button away, column titles, then every line scrolling under them (the Android widget's own table, drawn) */
.app-wt .lk { display: flex; flex-direction: column; overflow: hidden; }
.app-wt__head { display: flex; align-items: center; gap: 8px; padding: 12px 6px 2px 20px; }
.app-wt__brand { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.15rem; }
.app-wt__title { flex: 1; min-width: 0; color: var(--text-soft); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-wt__time { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.app-wt__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
/* (the list's page a tap away - in the sheet's own colours, a fill a step off it with an arrow, as the Android one) */
.app-wt__open { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin: 4px 12px 14px; padding: 0 14px 0 16px;
  border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; font-size: .95rem; text-align: left; cursor: pointer; }
.app-wt__open::after { content: "›"; color: var(--muted); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.app-wt__open:active { background: var(--surface-3); }
.app-wt__cols, .app-wt__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; gap: 12px; align-items: center; padding: 0 20px; }
.app-wt__cols { padding-bottom: 6px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; }
.app-wt__cols span:nth-child(2) { text-align: right; }
.app-wt__cols span:nth-child(3) { text-align: center; }
.app-wt__rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.app-wt__row { min-height: 56px; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.app-wt__row:last-child { border-bottom: 0; }
.app-wt__name { min-width: 0; }
.app-wt__name b, .app-wt__name small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-wt__name b { font-weight: 500; }
.app-wt__name small { color: var(--muted); font-size: .76rem; }
.app-wt__price { text-align: right; font-variant-numeric: tabular-nums; }
.app-wt__pct { padding: 4px 0; border-radius: 6px; text-align: center; color: var(--muted); font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums; }
.app-wt__pct.is-up { background: var(--up-wash); color: var(--up); }
.app-wt__pct.is-down { background: var(--down-wash); color: var(--down); }
.app-wt__note { margin: 0; padding: 18px 20px; color: var(--muted); }
/* inside the app: no web-only parts - the "Sign up" pill stays (it opens the plans), the cookie banner's choice is the
   phone's, the footer is shorter; tap highlights off; the page doesn't bounce sideways */
html.is-app body { overscroll-behavior-x: none; -webkit-tap-highlight-color: transparent; }
html.is-app .sitefoot { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

.app-pay { max-width: 460px; margin: 24px auto; text-align: center; }
/* tablets (iPad, Android tablets) use the full desktop layout from 768px; between 641 and 900px a little tighter */
@media (min-width: 641px) and (max-width: 900px) {
  html.is-app .view { padding: 20px 22px 60px; }
}

/* the screen's safe areas (1 Nov 2026: viewport-fit=cover in index.html - the apps draw edge to edge, so the header fills
   the strip under the status bar in the site's own colour; a notched phone in landscape keeps text clear of the notch; on
   a computer every inset is 0 and nothing changes) */
.topbar { padding-top: env(safe-area-inset-top, 0px); }

/* ==========================================================================================================================
   HOME PAGE ON A PHONE (user, 1 Nov 2026: "we should fix the look of the home page on the app, it doesnt look great") - an
   app's layout: each section a full-width block with a thin grey band between them (no boxed cards inset from the edges),
   the top story edge to edge, Portside Originals as a list with their photos, winners OR losers, dates above headlines
   ========================================================================================================================== */
.mv-tabs, .story__thumb { display: none; }
@media (max-width: 640px) {
  /* no light hairline under the dark ticker - it showed as a thin white strip above the edge-to-edge top story (user, 3 Nov) */
  .topbar { border-bottom: 0; }
  .markets-grid--flush { gap: 0; }
  .markets-grid--flush .lead, .markets-grid--flush .rail--home { gap: 0; display: block; }
  /* the sections: full width, a grey band above each */
  .markets-grid--flush .card:not(.story) { border: 0; border-radius: 0; box-shadow: none; margin: 0 -16px; padding: 20px 16px 18px;
    border-top: 8px solid var(--surface-2); background: var(--surface); }
  .markets-grid--flush .card h3, .markets-grid--flush .wl-rail__head h3, .markets-grid--flush .movers-head h3 { font-size: 1.22rem; }
  /* the top story: the photo edge to edge, the headline over it */
  .markets-grid--flush .lead__hero { margin: -18px -16px 0; border-radius: 0; border: 0; min-height: 0; aspect-ratio: 4 / 3.4; }
  .markets-grid--flush .lead__hero:hover { transform: none; }
  .markets-grid--flush .lead__hero h2 { font-size: 1.75rem; line-height: 1.12; }
  /* the label and headline centred in the photo (user, 3 Nov) - 8px more padding on top, where the header covers the photo,
     and an even shade (the desktop one darkens the left, behind left-aligned text) */
  .markets-grid--flush .lead__hero .inner { align-items: center; text-align: center; padding: 42px 26px 34px; gap: 14px; }
  .markets-grid--flush .lead__hero .hero-body { align-self: stretch; justify-items: center; }
  .markets-grid--flush .lead__hero::after { background:
    radial-gradient(90% 70% at 50% 52%, rgba(6,12,24,.6) 0%, rgba(6,12,24,.32) 70%, rgba(6,12,24,.2) 100%),
    linear-gradient(0deg, rgba(6,12,24,.3) 0%, rgba(6,12,24,0) 40%); }
  /* Portside Originals: a list - headline beside the article's photo, the whole row the link */
  .markets-grid--flush .secondary { display: block; margin: 0 -16px; padding: 4px 16px 6px; background: var(--surface); }
  .markets-grid--flush .story--feature { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 14px; align-items: start;
    border: 0; border-radius: 0; box-shadow: none; background: none; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--border); }
  .markets-grid--flush .story--feature:last-child { border-bottom: 0; }
  .markets-grid--flush .story--feature.has-thumb { grid-template-columns: minmax(0, 1fr) 104px; grid-template-rows: auto 1fr; }
  .markets-grid--flush .story--feature:hover { transform: none; }
  .markets-grid--flush .story--feature .meta { grid-column: 1; font-size: .62rem; }
  .markets-grid--flush .story--feature h3 { grid-column: 1; font-size: 1.08rem; line-height: 1.3; margin-top: 6px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .markets-grid--flush .story--feature .src { display: none; }
  .markets-grid--flush .story__thumb { display: block; grid-column: 2; grid-row: 1 / span 2; width: 104px; height: 78px;
    object-fit: cover; border-radius: 8px; background: var(--surface-2); }
  /* Winners & losers: the two filters side by side, then winners or losers (a switch) - three columns that fit */
  .movers-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .movers-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .movers-filters .select { width: 100%; min-width: 0; }
  .mv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 14px 0 6px; border-radius: 10px;
    background: var(--surface-2); }
  .mv-tabs button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .9rem; color: var(--muted);
    padding: 8px 0; border-radius: 7px; cursor: pointer; }
  .mv-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(10, 16, 30, .12); }
  .movers-card .table-scroll { overflow: visible; }
  .movers-table { width: 100%; min-width: 0 !important; }
  .movers-table thead tr:first-child { display: none; }
  .movers-card:not(.mv-show-losers) .movers-table th:nth-child(n+4), .movers-card:not(.mv-show-losers) .movers-table td:nth-child(n+4),
  .movers-card.mv-show-losers .movers-table th:nth-child(-n+3), .movers-card.mv-show-losers .movers-table td:nth-child(-n+3) { display: none; }
  .movers-table td, .movers-table th { padding-top: 11px; padding-bottom: 11px; }
  /* Analyst changes, Top stories and the like: the date above the headline, the headline the full width */
  .newsfeed .nf-item--inline { display: block; }
  .newsfeed .nf-item--inline .nf-time { display: block; font-size: .72rem; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .04em; }
  .newsfeed .nf-item--inline .nf-head { display: block; }
  /* Smart Money funds: the quarter and filing date on their own line under the fund's name, on the left (user, 3 Nov) */
  .sm-fund__head .sm-fund__when { margin-left: 0; flex-basis: 100%; }
}

/* ==========================================================================================================================
   STOCK, WATCHLIST, CURRENCY AND COMMODITY PAGES ON A PHONE (user, 1 Nov 2026: "give the other main pages the same app-style
   treatment") - as the home page: each section a full-width block with a thin grey band above it, not a bordered box inset
   from the edges; section titles without the heavy rule; the returns strip's figures kept inside their cells
   ========================================================================================================================== */
@media (max-width: 640px) {
  .wl-page .card:not(.perf-stat):not(.wlc):not(.lock-card) { border: 0; border-radius: 0; box-shadow: none;
    margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; border-top: 8px solid var(--surface-2); }
  .wl-page .card .card { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; border-top: 0 !important; }
  .wl-page .ov-grid, .wl-page .stock-pcmp { gap: 0; }
  .wl-page .section-title { border-top: 0; padding-top: 0; margin: 26px 0 10px; font-size: 1.3rem; }
  .wl-page .perf-stat .pv { font-size: .8rem; letter-spacing: -.03em; }
  .wl-page .perf-stat .pl { font-size: .64rem; }
  /* the page's own title block a little tighter */
  .wl-page h1 { font-size: 2rem; margin-bottom: 2px; }
}
@media (max-width: 640px) {
  /* currency and commodity pages: the same full-width sections */
  .fx-page .card:not(.perf-stat):not(.lock-card) { border: 0; border-radius: 0; box-shadow: none;
    margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; border-top: 8px solid var(--surface-2); }
  .fx-page .card .card { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; border-top: 0 !important; }
  .fx-page .section-title { border-top: 0; padding-top: 0; margin: 26px 0 10px; font-size: 1.3rem; }
  /* their Upcoming releases: a card each (when · currency, the event, forecast and previous with their names) */
  table.fx-ev, table.fx-ev tbody { display: block; width: 100%; }
  table.fx-ev thead { display: none; }
  table.fx-ev tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  table.fx-ev tbody td { display: block; padding: 0; border: 0; text-align: left; }
  table.fx-ev tbody td:nth-child(1) { font-size: .8rem; color: var(--muted); }
  table.fx-ev tbody td:nth-child(2) { justify-self: end; font-size: .8rem; font-weight: 600; }
  table.fx-ev tbody td:nth-child(3) { grid-column: 1 / -1; font-weight: 600; }
  table.fx-ev tbody td:nth-child(4)::before { content: "Forecast "; color: var(--muted); font-size: .76rem; }
  table.fx-ev tbody td:nth-child(5)::before { content: "Previous "; color: var(--muted); font-size: .76rem; }
  table.fx-ev tbody td[colspan] { grid-column: 1 / -1; }
  table.fx-ev tbody td.num { text-align: left; }
  /* News, Filings: the lists full width; the filters two to a row */
  .news-list.card { border: 0; border-radius: 0; box-shadow: none; margin: 0 -16px; padding: 0 16px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filters:has(> label) { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; }   /* (label: picker) */
  .filters .select, .filters .textinput { width: 100%; min-width: 0; }
  .filters .lib-q { grid-column: 1 / -1; }
  /* a filing: the headline the full width, its source and time underneath */
  .news-row--filing { flex-direction: column; gap: 6px; }
  .news-row--filing .news-row__meta { justify-content: flex-start; flex-direction: row-reverse; gap: 8px; }
  .news-row--filing .news-row__date { min-width: 0; text-align: left; font-size: .76rem; }
  .news-row--filing .news-row__title { font-size: .98rem; }
}
@media (max-width: 640px) {
  /* a currency or commodity page's six returns: one slim strip of two rows, like a stock page's - not six boxes */
  .fx-page .perf-strip { gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
  .fx-page .perf-strip .perf-stat { border: 0; border-radius: 0; box-shadow: none; padding: 10px 4px 9px; text-align: center; background: none; }
  .fx-page .perf-strip .perf-stat:not(:nth-child(3n+1)) { border-left: 1px solid var(--border); }
  .fx-page .perf-strip .perf-stat:nth-child(n+4) { border-top: 1px solid var(--border); }
  .fx-page .perf-strip .perf-stat .pl { font-size: .64rem; letter-spacing: .04em; }
  .fx-page .perf-strip .perf-stat .pv { font-size: 1.05rem; margin-top: 2px; }
}

/* ==========================================================================================================================
   PHONES, ROUND 3 (user, 1 Nov 2026: charts "too cramped"; favourites "just a star symbol on the top right"; the period
   performance squares "don't look great"; the members table's name column fixed when scrolled; the analyst tables to fit;
   an arrow showing the menu and tab rows scroll to the right)
   ========================================================================================================================== */
.perf-stat .pl-s, .perf-stat .pv-s, .scroll-more { display: none; }
@media (max-width: 640px) {
  /* favourites: a star at the top right of the title */
  .wl-titlebar { flex-wrap: nowrap; align-items: flex-start; }
  .wl-titlebar h1 { flex: 1 1 auto; min-width: 0; }
  /* (user, 1 Nov 2026: no circle, and up at the top right, level with "All watchlists") - a bare star, its tap area centred on
     the back link's line and its edge lined up with the page's */
  .wl-page { position: relative; }
  .wl-titlebar .wl-star { position: absolute; top: -4px; right: -5px; width: 34px; height: 34px; padding: 0; margin: 0; border: 0 !important;
    border-radius: 0; background: none !important; box-shadow: none !important; justify-content: center; color: var(--text); }
  .wl-titlebar .wl-star.is-on { color: #E8A317; }
  .wl-titlebar .wl-star.is-on svg { fill: currentColor; }
  .wl-titlebar .wl-star span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wl-titlebar .wl-star svg { width: 22px; height: 22px; }
  /* the period returns: a row of small tiles - short label, the move, tinted green or red - instead of boxed squares */
  .perf-strip, .wl-page .perf-strip, .fx-page .perf-strip { display: flex !important; gap: 6px; border: 0 !important; border-radius: 0;
    background: none !important; overflow: visible; margin: 14px 0 18px; }
  .perf-strip .perf-stat, .wl-page .perf-strip .perf-stat, .wl-page .perf-strip .perf-stat:nth-child(odd), .fx-page .perf-strip .perf-stat {
    flex: 1 1 0; min-width: 0; margin: 0 !important; padding: 8px 2px 7px !important; border: 0 !important; border-radius: 10px !important;
    box-shadow: none; text-align: center; background: var(--surface-2) !important; }
  .perf-strip .perf-stat--up { background: color-mix(in srgb, var(--up) 10%, var(--surface)) !important; }
  .perf-strip .perf-stat--down { background: color-mix(in srgb, var(--down) 9%, var(--surface)) !important; }
  .perf-stat .pl-l { display: none; }
  .perf-stat .pl-s { display: inline; }
  .perf-strip .perf-stat .pl { font-size: .7rem !important; font-weight: 600; color: var(--muted); letter-spacing: .02em; text-transform: none; white-space: nowrap; }
  .perf-strip .perf-stat .pv { font-size: .84rem !important; font-weight: 700; margin-top: 2px; letter-spacing: -.02em; white-space: nowrap; }
  /* a table that scrolls sideways (a watchlist's members): its first column - the name - stays put */
  .table-scroll .holdings th:first-child, .table-scroll .holdings td:first-child { position: sticky; left: 0; z-index: 2;
    background: var(--surface); box-shadow: 1px 0 0 var(--border); }
  .table-scroll .holdings tr:hover td:first-child { background: var(--surface-2); }
  /* Analyst view and the rating / target changes: made to fit - the analyst count left out, tighter cells, a target
     change ("$348.00 -> $352.00") allowed onto two lines */
  .wl-an__table th:nth-child(3), .wl-an__table td:nth-child(3),
  .wl-an__table th:nth-child(4), .wl-an__table td:nth-child(4) { display: none; }   /* (analyst count and price - the price is in Members) */
  .wl-an__table th, .wl-an__table td, .tg-table th, .tg-table td { padding-left: 4px !important; padding-right: 4px !important; font-size: .78rem; }
  .wl-an__table th, .tg-table th { font-size: .62rem; white-space: normal; line-height: 1.25; }
  .tg-table td:last-child { white-space: normal; }
  .wl-an__table .tg-pill { font-size: .7rem; padding: 0 8px; height: 22px; }
  .wl-an__table, .tg-table { width: 100%; }
  /* the scroll arrow at the right end of a sideways row */
  .scroll-more { display: flex; position: sticky; right: 0; flex: 0 0 36px; align-self: stretch; align-items: center;
    justify-content: flex-end; padding: 0 2px 0 0; border: 0;
    color: var(--text); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 3; cursor: pointer;
    margin-left: -44px; flex-basis: 44px; background: linear-gradient(90deg, transparent, var(--surface) 45%);
}
  .has-more > .scroll-more { opacity: 1; pointer-events: auto; }
  .scroll-more svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
}
@media (max-width: 640px) {
  .perf-stat .pv-l { display: none; }
  .perf-stat .pv-s { display: inline; }
  /* (the arrow sits at the row's very edge: no right padding for it to stop short of) */
  .mainnav, .st-tabs { padding-right: 0 !important; }
  /* a sideways table's arrow (app.js tableHint): a fade down its right edge, the arrow riding down with the page */
  .ts-hint { position: relative; }
  .ts-more { position: absolute; top: 0; right: 0; bottom: 0; width: 34px; pointer-events: none; opacity: 0; transition: opacity .2s ease; z-index: 3;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 85%, transparent) 60%); }
  .ts-hint.has-more > .ts-more { opacity: 1; }
  .ts-more button { position: sticky; top: calc(var(--topbar-h, 130px) + 38vh); display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin: 8px 4px 0 auto; border: 1px solid var(--border); border-radius: 50%; background: var(--surface);
    color: var(--text); box-shadow: 0 2px 8px rgba(10, 16, 30, .14); pointer-events: auto; cursor: pointer; }
  .ts-hint:not(.has-more) .ts-more button { pointer-events: none; }
  .ts-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
}
.ts-more { display: none; }
@media (max-width: 640px) { .ts-more { display: block; } }

/* the consensus pills ("Strong buy", "Buy", "Hold"...) - user, 1 Nov 2026: "the circles around strong buy are off": in a
   narrow column the words wrapped onto two lines and the pill became a lopsided oval. Always one line now, the text
   centred in an even capsule, the same height in every row */
.tg-pill { white-space: nowrap; display: inline-flex !important; align-items: center; justify-content: center; vertical-align: middle;
  line-height: 1 !important; box-sizing: border-box; }
.wl-an .tg-pill { min-height: 22px; padding-top: 0 !important; padding-bottom: 0 !important; }
.tg-head .tg-pill { min-height: 32px; padding-top: 0; padding-bottom: 0; }
.wl-an__table td:nth-child(2) { white-space: nowrap; }

/* ==========================================================================================================================
   FILINGS ON A PHONE (user, 1 Nov 2026: "improve the look of the filings tab") - each filing: the company as a small bold line,
   the announcement in normal weight beneath (it was all bold - a wall of heavy text), then the source and time; the three
   filters in one even row; the day headings stay pinned under the header while that day's filings scroll past
   ========================================================================================================================== */
.fl-co { font-weight: inherit; }
@media (max-width: 640px) {
  #termFeed { overflow: visible; }          /* (a clipping box would pin the day headings to itself, not under the header) */
  #termFeed .news-row--filing { padding: 14px 0 15px; gap: 5px; }
  #termFeed .news-row__title { font-weight: 400; font-size: 1rem; line-height: 1.4; color: var(--text); }
  #termFeed .fl-co { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .01em; color: var(--accent-ink); margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #termFeed .fl-sep { display: none; }
  #termFeed .fl-hl { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  /* source and time: one quiet line, no boxed badge */
  #termFeed .news-row__meta { flex-direction: row; gap: 6px; align-items: center; }
  #termFeed .news-tag--filing { width: auto; border: 0; padding: 0; font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); background: none; }
  #termFeed .news-row__date { order: 2; font-size: .74rem; color: var(--muted); }
  #termFeed .news-row__date::before { content: "· "; }
  /* the day headings pinned under the header */
  #termFeed .news-day { position: sticky; top: var(--topbar-h, 0px); z-index: 4; margin: 0 -16px; padding: 9px 16px; font-size: .95rem;
    background: var(--surface-2); border-bottom: 1px solid var(--border); }
  /* the three filters: one even row - each its name above its choice */
  .filters:has(> .msel) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .filters > .msel .msel__btn { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
    padding: 7px 26px 7px 10px; position: relative; border-radius: 10px; }
  .filters > .msel .msel__label { font-size: .6rem; }
  .filters > .msel .msel__value { font-size: .86rem; max-width: 100%; }
  .filters > .msel .msel__btn > svg, .filters > .msel .msel__btn .chev { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
  .filters > .msel .msel__menu { min-width: 220px; }
  .filters > .msel:last-child .msel__menu { right: 0; left: auto; }
}

/* ==========================================================================================================================
   CALENDAR ON A PHONE (user, 1 Nov 2026: "Improve the look of the calendar page") - the view switch as three equal buttons,
   the date choices scrolling with an arrow, the lists full width with the day headings pinned under the header, and the
   Company and Dividends tables as cards like Macro's (the dividends' amount and dates were off the edge of the screen)
   ========================================================================================================================== */
@media (max-width: 640px) {
  .cal-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .cal-toolbar > .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .cal-toolbar > .seg button { padding: 9px 0; font-weight: 600; }
  .cal-datewrap, .cal-datewrap > .seg { width: 100%; }
  #cal-date { display: flex; padding-right: 0 !important; }
  #cal-date button { flex: 0 0 auto; }
  .cal-toolbar > span:last-child { display: flex; align-items: center; gap: 10px; }
  .cal-toolbar > span:last-child .select { flex: 1 1 auto; }
  .page-head p { font-size: .9rem; }
  /* the list: full width, no box; its day headings stay under the header while that day scrolls past */
  .card.table-scroll:has(> table.cal) { border: 0; border-radius: 0; box-shadow: none; margin: 4px -16px 0; overflow: visible; background: var(--surface); }
  table.cal tbody tr.daybar { position: sticky; top: var(--topbar-h, 0px); z-index: 4; }
  table.cal--macro tbody tr { padding-left: 16px; padding-right: 16px; }

  /* Company: the company and its importance, then time · currency · event */
  table.cal--earn, table.cal--earn tbody { display: block; width: 100%; }
  table.cal--earn thead { display: none; }
  table.cal--earn tbody tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "co co co imp" "time cur ev ev";
    gap: 4px 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  table.cal--earn tbody tr > td { display: block; padding: 0; border: 0; text-align: left; }
  table.cal--earn tbody tr.daybar { display: block; padding: 10px 16px; background: var(--surface-2); }
  table.cal--earn tbody tr > td[colspan] { grid-column: 1 / -1; grid-area: auto; }
  table.cal--earn tbody tr > td:nth-child(1):not([colspan]) { grid-area: time; display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); }
  table.cal--earn tbody tr > td:nth-child(2):not([colspan]) { grid-area: cur; font-size: .8rem; }
  table.cal--earn tbody tr > td:nth-child(3):not([colspan]) { grid-area: imp; justify-self: end; }
  table.cal--earn tbody tr > td:nth-child(4):not([colspan]) { grid-area: co; font-size: 1rem; }
  table.cal--earn tbody tr > td:nth-child(4) a { color: var(--text); text-decoration: none; }
  table.cal--earn tbody tr > td:nth-child(5):not([colspan]) { grid-area: ev; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  table.cal--earn .cal .cur, table.cal--earn .cur { font-size: .78rem; }

  /* Dividends: the company and the dividend, then ticker · currency · market · type and the impact, then the dates */
  table.cal--div, table.cal--div tbody { display: block; width: 100%; }
  table.cal--div thead { display: none; }
  table.cal--div tbody tr { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid var(--border); }
  table.cal--div tbody tr > td { display: block; padding: 0; border: 0; text-align: left; font-size: .8rem; }
  table.cal--div tbody tr.daybar { display: block; padding: 10px 16px; background: var(--surface-2); }
  table.cal--div tbody tr.daybar > td { font-size: 1rem; }
  table.cal--div tbody tr > td[colspan] { grid-column: 1 / -1; }
  table.cal--div tbody tr > td:nth-child(3):not([colspan]) { font-size: 1rem; }
  table.cal--div tbody tr > td:nth-child(3) a { color: var(--text); text-decoration: none; }
  table.cal--div tbody tr > td:nth-child(5):not([colspan]) { text-align: right; font-size: .95rem; font-weight: 700; }
  table.cal--div tbody tr > td:nth-child(1):not([colspan]) { font-weight: 700; }
  table.cal--div tbody tr > td:nth-child(1) a { color: var(--muted); text-decoration: none; }
  table.cal--div tbody tr > td:nth-child(4):not([colspan]) { grid-column: 3; grid-row: 2; color: var(--muted); display: none; /* (the market - the flag says it) */ }
  table.cal--div tbody tr > td:nth-child(6):not([colspan]) { color: var(--muted); }
  table.cal--div tbody tr > td:nth-child(7):not([colspan]) { text-align: right; }
  table.cal--div tbody tr > td:nth-child(8):not([colspan]) { color: var(--muted); }
  table.cal--div tbody tr > td:nth-child(7):not([colspan])::before { content: "Impact "; color: var(--muted); }
  table.cal--div tbody tr > td:nth-child(8):not([colspan])::before { content: "Declared "; }
  table.cal--div tbody tr > td:nth-child(9):not([colspan])::before { content: "Pays "; }
  /* (an empty field - just a dash - is left out instead of a row of labelled dashes) */
  table.cal--div tbody tr > td:is(:nth-child(6), :nth-child(7), :nth-child(8), :nth-child(9)):not([colspan]):has(> .muted:only-child) { display: none; }
}
@media (max-width: 640px) {
  /* (a company's estimates panel stays hidden until its arrow is tapped - the card layout had shown it as an empty band) */
  table.cal tbody tr[hidden] { display: none !important; }
  table.cal--earn tbody tr.earn-detail:not([hidden]) { display: block; padding: 0 16px 14px; }
  /* the date choices' arrow fades into their own grey bar */
  #cal-date .scroll-more { background: linear-gradient(90deg, transparent, var(--surface-2) 45%); border-radius: 0 999px 999px 0; }
}

/* ==========================================================================================================================
   CALENDAR MACRO AND DIVIDENDS ON A PHONE, ROUND 2 (user, 1 Nov 2026: "improve the look of the dividend and macro parts of
   the calendar")
   ========================================================================================================================== */
@media (max-width: 640px) {
  /* --- Macro: time · flag currency together on the left, importance as a tinted badge on the right, the event, then the
     three figures in one light strip (the actual in bold once it's out) --- */
  table.cal--macro tbody tr:not(.daybar) { gap: 6px 0; padding-top: 14px; padding-bottom: 14px; }
  table.cal--macro tbody tr > td:nth-child(1):not([colspan]) { grid-column: 1; grid-row: 1; font-size: .8rem; font-weight: 600; color: var(--text-soft); }
  table.cal--macro tbody tr > td:nth-child(2):not([colspan]) { justify-self: start; }
  table.cal--macro tbody tr > td:nth-child(2) .cur { font-size: .78rem; gap: 5px; }
  table.cal--macro tbody tr > td:nth-child(2) .cur img { width: 18px; height: auto; border-radius: 2px; }
  table.cal--macro tbody tr > td:nth-child(3):not([colspan]) { grid-column: 3; grid-row: 1; justify-self: end; }
  table.cal--macro tbody tr > td:nth-child(4):not([colspan]) { grid-column: 1 / -1; grid-row: 2; font-size: 1rem; margin-top: 1px; }
  /* the figures: one grey strip, three even cells, the label beside nothing - above its value, both left-aligned */
  table.cal--macro tbody tr > td:nth-child(n+5):not([colspan]) { grid-row: 3; background: var(--surface-2); padding: 7px 10px; margin-top: 4px;
    font-size: .92rem; font-weight: 500; }
  table.cal--macro tbody tr > td:nth-child(5):not([colspan]) { grid-column: 1; border-radius: 8px 0 0 8px; font-weight: 700; }
  table.cal--macro tbody tr > td:nth-child(6):not([colspan]) { grid-column: 2; }
  table.cal--macro tbody tr > td:nth-child(7):not([colspan]) { grid-column: 3; border-radius: 0 8px 8px 0; text-align: right; }
  table.cal--macro tbody tr > td:nth-child(n+5):not([colspan]):is(.up, .down) { font-weight: 700; }
  /* importance: £££ red, ££ amber, £ grey - small tinted badges */
  table.cal .imp { display: inline-block; font-size: .72rem; letter-spacing: .5px; padding: 2px 7px; border-radius: 6px; line-height: 1.3; }
  table.cal .imp--3 { background: color-mix(in srgb, var(--down) 12%, var(--surface)); color: var(--down); }
  table.cal .imp--2 { background: color-mix(in srgb, #E8A317 16%, var(--surface)); color: #A06A00; }
  table.cal .imp--1 { background: var(--surface-2); color: var(--muted); }
  :root[data-theme="dark"] table.cal .imp--2 { color: #F0B940; }

  /* --- Dividends: the company and the amount; then ticker · currency · frequency and the impact; then declared · pays --- */
  table.cal--div tbody tr:not(.daybar) { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 5px 8px; padding-top: 14px; padding-bottom: 14px; }
  table.cal--div tbody tr > td:nth-child(3):not([colspan]) { grid-column: 1 / 4; grid-row: 1; }
  table.cal--div tbody tr > td:nth-child(5):not([colspan]) { grid-column: 4; grid-row: 1; align-self: start; }
  table.cal--div tbody tr > td:nth-child(5) .muted { font-size: .78rem; font-weight: 500; color: var(--muted); }   /* ("Last paid" - not yet confirmed) */
  table.cal--div tbody tr > td:nth-child(1):not([colspan]) { grid-column: 1; grid-row: 2; font-size: .76rem; }
  table.cal--div tbody tr > td:nth-child(2):not([colspan]) { grid-column: 2; grid-row: 2; }
  table.cal--div tbody tr > td:nth-child(2) .cur { font-size: .76rem; gap: 5px; }
  table.cal--div tbody tr > td:nth-child(2) .cur img { width: 18px; height: auto; border-radius: 2px; }
  table.cal--div tbody tr > td:nth-child(6):not([colspan]) { grid-column: 3; grid-row: 2; font-size: .76rem; justify-self: start; }
  table.cal--div tbody tr > td:nth-child(6):not([colspan])::before { content: "· "; }
  table.cal--div tbody tr > td:nth-child(7):not([colspan]) { grid-column: 4; grid-row: 2; font-size: .76rem; color: var(--muted); }
  table.cal--div tbody tr > td:nth-child(8):not([colspan]) { grid-column: 1 / 4; grid-row: 3; text-align: left; font-size: .76rem; }
  table.cal--div tbody tr > td:nth-child(9):not([colspan]) { grid-column: 4; grid-row: 3; text-align: right; font-size: .76rem; color: var(--text-soft); font-weight: 600; }
  table.cal--div tbody tr > td:nth-child(8):not([colspan])::before, table.cal--div tbody tr > td:nth-child(9):not([colspan])::before {
    font-weight: 400; color: var(--muted); }
}
@media (max-width: 640px) {
  /* a row that's just one full-width cell - "There are no events...", a day heading - is a plain block, not a squeezed card */
  table.cal tbody tr:has(> td[colspan]:only-child) { display: block !important; }
  table.cal tbody tr > td[colspan]:only-child { display: block; width: auto; }
}
@media (max-width: 640px) {
  table.cal--macro tbody tr > td:nth-child(n+5):not([colspan]) { width: auto !important; min-width: 0; justify-self: stretch; box-sizing: border-box; }
}
@media (max-width: 640px) {
  /* (the figures as three equal thirds; the currency just after the time, sharing the first column) */
  table.cal--macro tbody tr:not(.daybar) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  table.cal--macro tbody tr > td:nth-child(2):not([colspan]) { grid-column: 1 / 3; grid-row: 1; margin-left: 54px; }
}
@media (max-width: 640px) {
  /* (user, 1 Nov 2026: "make a centre alignment for the columns on the macro table") - Actual, Forecast and Previous each
     centred in their third, label and figure alike */
  table.cal--macro tbody tr > td:nth-child(n+5):not([colspan]) { text-align: center !important; }
}

/* watchlist rows on a phone, round 2 (user, 1 Nov 2026: "redesign the watchlist lists so that the full watchlist name is
   featured") - the name gets the whole top line (wrapping if it must, never cut short); underneath, the region and theme,
   the small chart and today / 1 year */
@media (max-width: 640px) {
  .wlc__top h3 { white-space: normal; overflow: visible; text-overflow: clip; flex: 1 1 auto; font-size: 1.1rem; line-height: 1.28; }
  .wlc__star { margin-top: -5px; order: 0; width: 28px; height: 28px; margin: -3px -5px -4px 0; }
  .wlc__meta { grid-area: meta; white-space: normal; line-height: 1.35; font-size: .78rem; }
  .wlc__spark .spark { height: 30px; }
}

/* ==========================================================================================================================
   WATCHLISTS PAGE ON A PHONE, ROUND 3 (user, 1 Nov 2026: "improve the look of it") - the lists as one full-width list
   with hairline dividers (no box per list), the star at the top right of each row, today's move as a tinted pill with
   the year's move beneath, Region and Theme side by side (each its name inside the box, like Filings' filters), the count
   and a "Today · 1 year" key as the list's heading, and the tabs' arrow at the very edge (it sat over the next tab's name)
   ========================================================================================================================== */
@media (max-width: 640px) {
  .wl-tabs { padding-right: 0; margin-bottom: 14px; }
  /* the filters */
  .wl-index .wl-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 0; }
  .wl-index .wl-filters > label, .wl-index .wl-filters > .select { grid-row: 1; }
  .wl-index .wl-filters > label[for="wlRegion"], #wlRegion { grid-column: 1; }
  .wl-index .wl-filters > label[for="wlTheme"], #wlTheme { grid-column: 2; }
  .wl-index .wl-filters > label { z-index: 1; align-self: start; margin: 7px 0 0 11px; pointer-events: none; font-size: .6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .wl-index .wl-filters > select.select { min-width: 0; width: 100%; height: 50px; padding: 19px 28px 4px 10px; font-size: .9rem; font-weight: 500;
    border-radius: 10px; }
  /* the list's heading: how many are shown on the left, what the figures are on the right */
  .wl-filters__count { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; margin: 12px 0 0; padding: 0 0 7px;
    font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
    padding-right: 34px;
}
  .wl-filters__count::after { content: "Today · 1 year"; }

  /* the list: full width, a hairline between rows */
  .wl-grid, .wl-index .wl-grid { gap: 0; margin: 0 -16px; border-top: 1px solid var(--border); }
  .wlc:not(.wlc--new) { border: 0;
    border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; background: var(--surface); }
  .wlc:not(.wlc--new):hover { box-shadow: none; }
  .wlc:not(.wlc--new):active { background: var(--surface-2); }
  /* the star: top right, no circle */
  .wlc__star:hover { background: none; }
  .wlc__spark, .wlc__spark .spark { height: 34px; }
  /* today: a tinted pill the width of the column; the year: a small line beneath it */
  .wlc__stat:first-child span { display: none; }
  .wlc__stat:first-child b { flex: 1 1 auto; min-width: 0; padding: 4px 0 3px; border-radius: 7px; text-align: center; font-size: .92rem;
    font-weight: 700; letter-spacing: -.01em; background: var(--surface-2); }
  .wlc__stat:first-child b.up { background: color-mix(in srgb, var(--up) 12%, var(--surface)); }
  .wlc__stat:first-child b.down { background: color-mix(in srgb, var(--down) 11%, var(--surface)); }
  .wlc__stat:last-child span { font-size: 0; }
  .wlc__stat:last-child span::before { content: "1Y"; font-size: .62rem; font-weight: 600; letter-spacing: .03em; }
  .wlc__stat:last-child b { min-width: 0; font-size: .76rem; font-weight: 600; }

  /* Funds and Politicians: the logo or portrait as a small square at the left of the row */
  .wlc__logo, .wlc__photo, .wlc:has(.wlc__photo) .wlc__photo { grid-area: pic; margin: 0; border-radius: 10px; align-self: center; width: 52px; height: 52px; }
  .wlc__logo { padding: 4px; }
  .wlc__logo img { width: auto !important; height: auto !important; max-width: 46px; max-height: 30px; }
  /* (a fund with no logo: its name as a wordmark - 8px is a phone's smallest text, so it is zoomed down a touch to fit) */
  .wlc__logo:has(.wlc__word) { padding: 2px; }
  .wlc__word { font-size: .5rem; line-height: 1.2; zoom: .88; overflow-wrap: break-word; }
  .wlc:has(.wlc__photo) .wlc__stats { padding-top: 0; gap: 4px; }
  .wlc:has(.wlc__photo) .wlc__stat:first-child b { font-size: .92rem; }
  .wlc:has(.wlc__photo) .wlc__stat:last-child b { font-size: .76rem; }
  .wlc__mono { font-size: 1rem; }
  .wlc__party { left: 0; right: 0; bottom: 0; transform: none; height: 3px; padding: 0; border-radius: 0; font-size: 0; }

  /* "Create watchlist": a row of the list in the accent colour */
  .wl-grid > .wlc--new { min-height: 0; justify-content: flex-start; gap: 12px; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--border);
    border-radius: 0; background: var(--surface); color: var(--accent); }
  .wl-grid > .wlc--new .wlc--new__icon { width: 32px; height: 32px; }
  .wl-grid > .wlc--new .wlc--new__note { margin: 0 0 0 auto; }
  .wl-favs { margin-top: 26px; }
}

/* watchlist rows on a phone, round 4 (user, 1 Nov 2026: "make the watchlist name and text under it more balanced in their
   watchlist box") - the name and its region line as one tight pair on the left, the figures as a matching pair opposite
   (today's pill level with the name, the year level with the region), the small chart beside the region line, and the
   star centred at the far right; two even lines instead of a name with the rest floating beneath it */
@media (max-width: 640px) {
  .wlc:not(.wlc--new) {
    gap: 3px 10px; align-items: center; padding: 13px 16px; }
  .wlc:not(.wlc--new) .wlc__top { display: contents; }
  .wlc:not(.wlc--new) .wlc__top h3 { grid-area: top; align-self: end; font-size: 1.04rem; line-height: 1.25; }
  .wlc:not(.wlc--new) .wlc__meta { grid-area: meta; align-self: start; font-size: .8rem; line-height: 1.3; color: var(--text-soft); }
  .wlc:not(.wlc--new) .wlc__spark { grid-area: spark; align-self: center; }
  .wlc:not(.wlc--new) .wlc__stats { grid-area: stats; align-self: center; }
  .wlc:not(.wlc--new) .wlc__star { grid-area: star; justify-self: end; align-self: center; margin: 0 -6px 0 0; }
  /* (the heading's "Today · 1 year" over the figures, not over the stars) */
  /* Funds and Politicians: the same two lines beside the logo or portrait */
  .wlc:not(.wlc--new):has(.wlc__logo, .wlc__photo) {
    grid-template-areas: "pic top stats star" "pic meta stats star"; gap: 3px 10px; padding: 12px 16px;
    grid-template-columns: 52px minmax(0, 1fr) 72px 22px; column-gap: 8px;
}
}

/* (user, 1 Nov 2026: "move the charts up so they are more inline with the middle") - the small chart spans both lines,
   centred on the row like the figures and the star; the name keeps to its own column (a long name wraps, never cut) */
@media (max-width: 640px) {
  .wlc:not(.wlc--new) { grid-template-columns: minmax(0, 1fr) 52px 72px 22px; grid-template-areas: "top spark stats star" "meta spark stats star";
    column-gap: 8px; }
  .wlc:not(.wlc--new) .wlc__spark, .wlc:not(.wlc--new) .wlc__spark .spark { height: 28px; }
}

/* ==========================================================================================================================
   CHARTS, SCREENER, OPTIONS, HOME'S LEAD STORIES AND MY ACCOUNT ON A PHONE (user, 3 Nov 2026: "phone layout: remaining
   pages") - the chart fills the screen under the header and above the phone's gesture bar (no page scroll, no footer);
   Screener's filters and Options' boxes as full-width sections with the grey band, like the other pages; the stories under
   a signed-in reader's top story as a list, not boxes; My account shows the features of the reader's own plan only
   ========================================================================================================================== */
@media (max-width: 640px) {
  .cp-page { height: calc(100dvh - var(--topbar-h, 150px) - env(safe-area-inset-bottom, 0px)); min-height: 0; }
  body:has(main.view--charts) .sitefoot { display: none; }
  .scr-bar.card, .opt-page .card { border: 0; border-radius: 0; box-shadow: none; margin-left: -16px; margin-right: -16px;
    padding-left: 16px; padding-right: 16px; border-top: 8px solid var(--surface-2); border-bottom: 8px solid var(--surface-2); }
  .opt-page .card + .card { border-top: 0; }
  .markets-grid--flush .secondary > .story:not(.story--feature) { border: 0; border-radius: 0; box-shadow: none; background: none;
    padding: 16px 0; margin: 0; border-bottom: 1px solid var(--border); }
  .markets-grid--flush .secondary > .story:not(.story--feature):last-child { border-bottom: 0; }
  .markets-grid--flush .secondary > .story:not(.story--feature):hover { transform: none; }
  .markets-grid--flush .secondary > .story:not(.story--feature) .meta { font-size: .62rem; }
  .markets-grid--flush .secondary > .story:not(.story--feature) h3 { font-size: 1.08rem; line-height: 1.3; margin-top: 6px; }
  .acct-plan:not(.is-current) .acct-plan__feats { display: none; }
  /* Winners & losers: on a day with fewer risers than fallers (or the reverse) the shorter side's rows are blank - not shown */
  .movers-card:not(.mv-show-losers) .movers-table tbody tr:has(> td:first-child:empty),
  .movers-card.mv-show-losers .movers-table tbody tr:has(> td:nth-child(4):empty) { display: none; }
}

/* ==========================================================================================================================
   CHART PRO ON A PHONE (user, 3 Nov 2026: the timeframes in one button, an arrow showing the toolbar scrolls, a signal's box
   that stays and fits, roomier strongest ups and downs, the news as a full-screen sheet with an X) - the chart's menus open
   as a list from the foot of the screen (the scrolling toolbar cut them off); with Chart Pro open the chart keeps the
   screen and its tables sit below it, one above the other
   ========================================================================================================================== */
.cp-ivdd, .cp-newsx { display: none; }
@media (max-width: 640px) {
  .cp:not(.cp--mini) .cp-ivs { display: none; }
  .cp:not(.cp--mini) .cp-ivdd { display: block; }
  .cp-ivdd .cp-btn { font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 2px; }
  .cp-ivdd .cp-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
  .cp:not(.cp--mini) .cp-menu { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto; min-width: 0; max-height: 62vh; overflow-y: auto; z-index: 1001; padding: 8px; border-radius: 14px;
    box-shadow: 0 -6px 30px rgba(10, 16, 30, .22); }
  .cp-menu--iv button { display: block; width: 100%; padding: 12px 14px; font-size: 15px; }
  .cp-menu--iv button.is-on { color: var(--cp-on); background: color-mix(in srgb, var(--cp-on) 10%, transparent); font-weight: 600; }
  .cp-top { position: relative; }
  .cp-top > .scroll-more { background: linear-gradient(90deg, transparent, var(--surface) 45%); color: var(--text-soft); }
  /* the model's line under the prices (moved into the heading on phones) */
  .cp-head .cp-qstat { position: static; margin-top: 2px; pointer-events: none; font-size: 10px; line-height: 1.3; }
  .cp-head .cp-qstat button { pointer-events: auto; }
  /* the prices over the chart smaller, and fingers pass through them to the chart (user: they got in the way of a pinch) */
  .cp:not(.cp--mini) .cp-head { top: 6px; font-size: 10.5px; line-height: 1.35; }
  .cp:not(.cp--mini) .cp-head__src { display: none; }
  .cp:not(.cp--mini) .cp-head__l1 { gap: 6px; }
  .cp:not(.cp--mini) .cp-head__ohlc { gap: 6px; }
  .cp:not(.cp--mini) .cp-legend { font-size: 10.5px; bottom: 28px; }
  .cp:not(.cp--mini) .cp-legend__l1 { gap: 8px; }
  .cp:not(.cp--mini) .cp-legend__l2 { gap: 6px; margin-top: 1px; }
  .cp:not(.cp--mini) :is(.cp-head, .cp-legend, .cp-expand) { touch-action: none; }
  /* news: the whole screen, an X at the top right */
  .cp--newsfull .cp-side { display: flex !important; position: fixed; inset: 0; z-index: 1000; width: auto !important; border: 0;
    background: var(--surface); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .cp--newsfull .cp-side > :not(.cp-newshead):not(.cp-side__list) { display: none !important; }
  .cp--newsfull .cp-newshead { display: flex !important; align-items: center; padding: 12px 8px 12px 16px; }
  .cp--newsfull .cp-newshead .cp-side__title { font-size: 1.15rem; }
  .cp--newsfull .cp-newsx { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 40px; height: 40px;
    border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
  .cp--newsfull .cp-side__list { flex: 1; overflow-y: auto; }
  body:has(.cp--newsfull) { overflow: hidden; }
  /* Chart Pro open: the chart the screen's height, the tables below it (the page scrolls), stacked */
  .cp-page:has(.cp--pro:not(.cp--pshut):not(.cp--pmax)) { height: auto; }
  .cp--pro:not(.cp--pshut):not(.cp--pmax) { height: auto; }
  .cp--pro:not(.cp--pshut):not(.cp--pmax) .cp-body { flex: none; }
  .cp--pro:not(.cp--pshut):not(.cp--pmax) .cp-main { display: block; }
  .cp--pro:not(.cp--pshut):not(.cp--pmax) .cp-grid { height: calc(100dvh - var(--topbar-h, 150px) - 45px - env(safe-area-inset-bottom, 0px)); }
  .cp--pro:not(.cp--pshut):not(.cp--pmax) .cp-pro { flex: none; overflow: visible; }
  .cp--pro:not(.cp--pshut):not(.cp--pmax) .cp-pro__body { overflow: visible; }
  .cp-pro__pane:not(.cp-bt) { grid-template-columns: minmax(0, 1fr); }
  .cp-pro__col + .cp-pro__col { border-left: 0; border-top: 8px solid var(--surface-2); }
  .cp-pro__h { padding-top: 14px; }
  /* strongest up / down readings: each share as two lines (user: "far too cramped") - name and chance, then ticker,
     timeframe, reading and the edge over the usual rate; "Usually" left out (the edge says it) */
  [data-ppane="sig"] .cp-pt, [data-ppane="sig"] .cp-pt thead, [data-ppane="sig"] .cp-pt tbody { display: block; }
  [data-ppane="sig"] .cp-pt tr { display: grid; grid-template-columns: 30px auto auto minmax(0, 1fr) auto; column-gap: 8px; row-gap: 3px;
    align-items: center; padding: 9px 14px 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--cp-line) 55%, transparent); }
  [data-ppane="sig"] .cp-pt th, [data-ppane="sig"] .cp-pt td { padding: 0; border: 0; width: auto; }
  [data-ppane="sig"] .cp-pt th:first-child, [data-ppane="sig"] .cp-pt td:first-child { grid-row: 1 / 3; grid-column: 1; padding-left: 14px; }
  [data-ppane="sig"] .cp-pt thead tr { padding-top: 4px; padding-bottom: 5px; }
  [data-ppane="sig"] .cp-pt th:nth-child(2) { grid-row: 1; grid-column: 2 / 5; }
  [data-ppane="sig"] .cp-pt th:nth-child(5) { grid-row: 1; grid-column: 5; }
  [data-ppane="sig"] .cp-pt th:nth-child(3), [data-ppane="sig"] .cp-pt th:nth-child(4),
  [data-ppane="sig"] .cp-pt th:nth-child(6), [data-ppane="sig"] .cp-pt th:nth-child(7),
  [data-ppane="sig"] .cp-pt td:nth-child(6) { display: none; }
  [data-ppane="sig"] .cp-pt td:nth-child(2) { display: contents; }
  [data-ppane="sig"] .cp-pt td:nth-child(2) b { grid-row: 1; grid-column: 2 / 5; max-width: none; font-size: 13.5px; }
  [data-ppane="sig"] .cp-pt td:nth-child(2) span { grid-row: 2; grid-column: 2; font-size: 11px; }
  [data-ppane="sig"] .cp-pt td:nth-child(3) { grid-row: 2; grid-column: 3; }
  [data-ppane="sig"] .cp-pt td:nth-child(4) { grid-row: 2; grid-column: 4; white-space: normal; font-size: 11px; color: var(--muted); }
  [data-ppane="sig"] .cp-pt td:nth-child(5) { grid-row: 1; grid-column: 5; font-size: 15px; }
  [data-ppane="sig"] .cp-pt td:nth-child(7) { grid-row: 2; grid-column: 5; }
  /* the strategy tester: one column, the results first (seen straight after Run), the rules under them */
  .cp-pro__pane.cp-bt { display: flex; flex-direction: column; height: auto; }
  .cp-pro__pane.cp-bt[hidden] { display: none; }
  .cp-bt__build, .cp-bt__res { overflow: visible; height: auto; }
  .cp-bt__res { order: -1; }
  .cp-bt__build { border-right: 0; border-top: 8px solid var(--surface-2); }
  /* its figures: the headline one across the width, the other two side by side; the smaller ones two to a row */
  .cp-bt__hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-bt__hero > :first-child { grid-column: 1 / -1; }
  .cp-bt__hc b { font-size: 19px; }
  .cp-bt__hc span { white-space: normal; line-height: 1.25; }
  .cp-bt__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-bt__sc + .cp-bt__sc, .cp-bt__sc:nth-child(4) { border-left: 0; }
  .cp-bt__sc:nth-child(even) { border-left: 1px solid var(--cp-line); }
  .cp-bt__sc:nth-child(n+3) { border-top: 1px solid var(--cp-line); }
  .cp-bt__sc:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* its trades: two lines each - side, entry and exit dates, return; then time held and the two prices */
  .cp-bt__trades, .cp-bt__trades thead, .cp-bt__trades tbody,
  .cp-bt__wft, .cp-bt__wft thead, .cp-bt__wft tbody { display: block; }
  .cp-bt__trades tr { display: grid; grid-template-columns: 0 52px minmax(0, 1fr) minmax(0, 1fr) auto; column-gap: 6px; row-gap: 2px;
    align-items: center; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--cp-line) 55%, transparent); }
  .cp-bt__trades th, .cp-bt__trades td, .cp-bt__wft th, .cp-bt__wft td { padding: 0 !important; border: 0; width: auto; }
  .cp-bt__trades :is(th, td):nth-child(1) { display: none; }       /* (the trade's number: room for the dates) */
  .cp-bt__trades :is(th, td):nth-child(2) { grid-row: 1; grid-column: 2; }
  .cp-bt__trades :is(th, td):nth-child(3) { grid-row: 1; grid-column: 3; }
  .cp-bt__trades :is(th, td):nth-child(5) { grid-row: 1; grid-column: 4; }
  .cp-bt__trades :is(th, td):nth-child(8) { grid-row: 1; grid-column: 5; text-align: right; }
  .cp-bt__trades td:nth-child(7) { grid-row: 2; grid-column: 2; text-align: left; }
  .cp-bt__trades td:nth-child(4) { grid-row: 2; grid-column: 3; text-align: left; }
  .cp-bt__trades td:nth-child(6) { grid-row: 2; grid-column: 4; text-align: left; }
  .cp-bt__trades td:is(:nth-child(4), :nth-child(6), :nth-child(7)) { font-size: 11px; color: var(--muted); }
  .cp-bt__trades th:is(:nth-child(4), :nth-child(6), :nth-child(7)) { display: none; }
  .cp-bt__trades thead tr { padding: 4px 0; }
  /* the walk-forward years: the years tested and the return; then the settings picked, trades and buy & hold */
  .cp-bt__wft tr { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px;
    align-items: center; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--cp-line) 55%, transparent); }
  .cp-bt__wft :is(th, td):nth-child(1) { grid-row: 1 / 3; grid-column: 1; }
  .cp-bt__wft :is(th, td):nth-child(2) { grid-row: 1; grid-column: 2; }
  .cp-bt__wft :is(th, td):nth-child(5) { grid-row: 1; grid-column: 3; text-align: right; }
  .cp-bt__wft td:nth-child(3) { grid-row: 2; grid-column: 2; font-size: 11px; }
  .cp-bt__wft td:nth-child(4) { display: none; }
  .cp-bt__wft td:nth-child(6) { grid-row: 2; grid-column: 3; text-align: right; font-size: 11px; color: var(--muted); }
  .cp-bt__wft td:nth-child(6)::before { content: "B&H "; }
  .cp-bt__wft th:is(:nth-child(3), :nth-child(4), :nth-child(6)) { display: none; }
  .cp-bt__wft thead tr { padding: 4px 0; }
  /* bar replay's controls: across the chart, the date on its own line over the buttons (it hung off both sides) */
  /* (22 Nov 2026: in a strip of their own under the chart, which chartpro.js replayDock draws that much shorter - over
     the chart they hid the bottom indicator panes) */
  .cp-replay { left: 6px; right: 6px; bottom: 6px; transform: none; flex-wrap: wrap; justify-content: center; row-gap: 4px; }
  .cp-replay__t { flex-basis: 100%; margin-right: 0; text-align: center; cursor: default; touch-action: auto; }
  .cp-replay__grip { display: none; }
  .cp-replay button { height: 34px; min-width: 38px; }
  .cp-replay select { height: 34px; padding: 0 8px; -webkit-appearance: none; appearance: none;
    background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 0 !important; }
  /* a replay's practice trades: bigger Sell and Buy, the ticket as a sheet across the chart's foot, and the tables down
     to side, quantity, price and P&L (the stop and target are on the chart) */
  .cp-replay .cp-rt-btn { height: 44px; min-width: 132px; }
  .cp-ticket { position: fixed; left: 8px; right: 8px; width: auto; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 90px); z-index: 90; }
  .cp-ticket__h { cursor: default; touch-action: auto; }
  .cp-sum { padding: 10px; }
  .cp-sum__head { padding: 16px 12px 14px 16px; }
  .cp-sum__hero { padding: 18px 16px 14px; }
  .cp-sum__big b { font-size: 31px; }
  .cp-sum__chart { padding: 0 8px 10px; }
  .cp-sum__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-sum__stat:nth-child(odd) { border-left: 0; }
  .cp-sum__stat:nth-child(n+3) { border-top: 1px solid var(--cp-line); }
  .cp-sum__foot { flex-direction: column; align-items: stretch; padding: 12px 16px 14px; }
  .cp-sum__note { text-align: center; }
  .cp-sum__acts { margin-left: 0; }
  .cp-sum__acts button { flex: 1 1 0; height: 42px; padding: 0 8px; }
  .cp-ticket__f input { height: 40px; font-size: 16px; }
  .cp-ticket__go { height: 44px; }
  [data-pt="rtpos"] .cp-pt :is(th, td):is(:nth-child(4), :nth-child(5)),
  [data-pt="rtord"] .cp-pt :is(th, td):is(:nth-child(2), :nth-child(5), :nth-child(6)),
  [data-pt="rtdone"] .cp-pt :is(th, td):nth-child(5) { display: none; }
  .cp-rt__x { padding: 7px 12px; }
  .cp-rt__sum b { font-size: 16px; }
  /* more of the screen for the chart (user, 3 Nov 2026: "a bit cramped"): the drawing tools behind the pencil button,
     over the chart's left edge when open (the prices ticker stays - user) */
  .cp:not(.cp--mini) .cp-toolsbtn { display: inline-flex; }
  .cp:not(.cp--mini) .cp-body { position: relative; }
  .cp:not(.cp--mini) .cp-tools { display: none; position: absolute; left: 0; top: 0; z-index: 9; height: auto; max-height: 100%; overflow-y: auto;
    background: var(--surface); border-right: 1px solid var(--cp-line); border-bottom: 1px solid var(--cp-line); border-radius: 0 0 10px 0;
    box-shadow: 4px 4px 18px rgba(10, 16, 30, .12); }
  .cp--tools:not(.cp--mini) .cp-tools { display: flex; }
}

/* ---- Printing (user, 10 Nov 2026: "do 7") - an article, a stock page or any other page prints as the page itself:
   the logo at the top so a print says where it came from, and none of the header's menus, the ticker, the footer, the
   cookie banner, the back link or the share button. Charts, tables and photos aren't split across pages, and an
   article's source links print with their address. (A dark-mode page takes the light colours - app.js beforeprint.) */
@media print {
  @page { margin: 14mm 12mm; }
  html, body { background: #fff !important; }
  body { font-size: 11pt; }
  .skip-link, .tickerbar, .sitefoot, .modal-root, .consent, .wl-back, .share, .search-results,
  .topbar__inner > :not(.brand), .st-tabs, .wl-tabs, .sm-tabs, .mv-tabs, .stock-nav, .scroll-more,
  .seg, .chart-toolbar, .sdd, .msel, .pc-reset, .stock-head__chart, .stock-about__more, .stock-wls__more, .div-more,
  main select { display: none !important; }
  .topbar { position: static !important; box-shadow: none !important; border: 0 !important; background: none !important; }
  .topbar__inner { padding: 0 0 10px !important; min-height: 0 !important; }
  .view { max-width: none !important; margin: 0 !important; padding: 0 !important; }
  /* (animations jump to their end, so a line that draws itself in or a fade that ends visible prints finished) */
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; transition: none !important; }
  h1, h2, h3, h4 { break-after: avoid; }
  figure, tr, svg, canvas, img, .feature-img { break-inside: avoid; }
  img, svg, canvas { max-width: 100% !important; }
  p { orphans: 3; widows: 3; }
  a { color: inherit !important; text-decoration: none !important; }
  .blog-post__body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #555; word-break: break-all; }
}

/* ============================================================================================================
   THE SHOP (#/shop - assets/js/shop.js; user, 22 Nov 2026: "give it a professional look"). The home page's product
   cards (24 Nov 2026), then each product's page: the gallery beside the buying box, what's inside, the time-zone
   section (the planner), the details, more from the shop - and the checkout pop-up, where the planner's buyer says
   where they are and the edition for that clock is chosen.
   ============================================================================================================ */
.shop { max-width: 1160px; margin: 0 auto; padding: 6px 0 48px; }
.shop-top { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 52px; align-items: start; }
.shop-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 44px; border-radius: 18px; background: var(--surface-2); overflow: hidden; }
.shop-stage--spread { padding: 28px 66px; }          /* (the sides clear of the arrows) */
.shop-stage__img { display: block; width: 100%; height: auto; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(20,22,28,.10), 0 14px 34px rgba(20,22,28,.14); }
/* an A4 page, upright: sized by its width, so the whole page sits inside the square */
.shop-stage--page .shop-stage__img { width: min(74%, 400px); }
/* a wide head-on picture (the desk mat) fills the stage from side to side at every width, as on its card (two classes:
   above the narrower screens' .shop-stage--spread padding) */
.shop-stage.shop-stage--full { padding: 0 3%; }
.shop-stage--full .shop-stage__img { border-radius: 5px; }
.shop-inside--page .shop-feat__img img { width: 62%; margin: 0 auto; }
.shop-stage__cap { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: .74rem; color: var(--muted); }
/* zooming in on a picture (user, 24 Nov 2026: "reinstate the magnifying glass curser for zooming in on the photos when
   on individual product pages but make sure the quality of the image stays high even when zoomed in"): mouse only -
   shop.js swaps in the 2400 px copy and scales the picture about the pointer; the caption steps aside meanwhile */
@media (hover: hover) and (pointer: fine) {
  [data-zoom] { cursor: zoom-in; }
  [data-zoom].is-zoomed { cursor: zoom-out; }
  [data-zoom] img { transition: transform .22s ease-out; }
}
.is-zoomed .shop-stage__cap { opacity: 0; }
.is-zoomed img { box-shadow: none; }
/* the finished book (user, 24 Nov 2026: "make the planner photos more realistic and professionally done"): a square
   studio picture rendered from the print files (render_shop_photos.py), filling the frame edge to edge; it stays
   square at every width so the book is never cropped. Its caption sits on the picture's own pale table, so it keeps
   a fixed dark grey in either theme. */
.shop-stage--photo { padding: 0; aspect-ratio: 1 / 1; background: #ECEAE6; }
.shop-stage__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-stage--photo .shop-stage__cap { bottom: 14px; color: #6E6C68; }
.shop-thumb--photo { padding: 0; overflow: hidden; background: #ECEAE6; }
.shop-thumb--photo img { object-fit: cover; transform: scale(1.3); }
.shop-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.shop-thumb { flex: 0 0 auto; width: 74px; height: 74px; padding: 7px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); cursor: pointer; }
.shop-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-thumb:hover { border-color: var(--border-strong); }
.shop-thumb.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.shop-eyebrow { margin: 6px 0 10px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.shop-buy h1 { font-size: 2.5rem; line-height: 1.06; }
.shop-lede { margin: 14px 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--text-soft); }
.shop-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.shop-price b { font-family: "Newsreader", Georgia, serif; font-size: 2.1rem; font-weight: 600; line-height: 1; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.shop-price span { font-size: .85rem; color: var(--muted); }
.shop-price span a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.shop-opt { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.shop-opt legend, .shop-co__f > span, .shop-co__f legend, .shop-co__lab { padding: 0; margin: 0 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.shop-eds { display: grid; gap: 8px; }
.shop-ed, .shop-size, .shop-co__place { display: grid; text-align: left; padding: 12px 15px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.shop-ed { grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; }
.shop-ed__n, .shop-ed__p { font-weight: 600; }
.shop-ed__p { font-variant-numeric: tabular-nums; }
.shop-ed__l { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.shop-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* the cover colour: four swatches, navy first (user, 23 Nov 2026) */
.shop-opt__val { margin-left: 6px; font-size: .8rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
.shop-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shop-col { display: grid; justify-items: center; align-content: start; gap: 7px; padding: 10px 6px 9px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.shop-col__sw { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 1px 3px rgba(20,22,28,.25); }
.shop-col__n { font-size: .8rem; line-height: 1.2; text-align: center; }
/* the poster's frame (24 Nov 2026): a small square frame in its colour, the unframed one a bare sheet */
.shop-col__sw--frame { border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 6px var(--sw), inset 0 0 0 7px rgba(20,22,28,.12), 0 1px 3px rgba(20,22,28,.25); }
.shop-col__sw--none { box-shadow: inset 0 0 0 1px var(--border-strong), 0 1px 3px rgba(20,22,28,.18); }
.shop-col:hover { border-color: var(--text); }
.shop-col.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-wash); }
.shop-size b { font-size: 1rem; }
.shop-size span, .shop-co__place span { font-size: .82rem; color: var(--muted); }
.shop-ed:hover, .shop-size:hover, .shop-co__place:hover { border-color: var(--text); }
.shop-ed.is-on, .shop-size.is-on, .shop-co__place.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-wash); }
.shop-zone { display: flex; gap: 13px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.shop-zone b { display: block; font-size: .93rem; }
.shop-zone span { display: block; margin-top: 2px; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.shop-zone span b { display: inline; font-size: inherit; color: var(--text); }
.shop-cta { width: 100%; margin-top: 18px; padding: 15px 18px; border-radius: 12px; font-size: 1.02rem; }
.shop-assure { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; font-size: .86rem; color: var(--muted); }
.shop-assure li { position: relative; padding-left: 22px; }
.shop-assure li::before { content: ""; position: absolute; left: 3px; top: .34em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.shop-sec { margin-top: 60px; }
.shop-sec__lede { max-width: 74ch; margin: 0 0 20px; font-size: .98rem; line-height: 1.6; color: var(--text-soft); }
.shop-inside { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 36px; }
.shop-feat { display: grid; gap: 16px; align-content: start; }
.shop-feat__img { position: relative; display: block; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.shop-feat__img img { display: block; width: 100%; height: auto; border-radius: 2px; background: #fff; box-shadow: 0 1px 2px rgba(20,22,28,.08), 0 8px 20px rgba(20,22,28,.10); }
.shop-feat h3 { font-size: 1.22rem; }
.shop-feat p { margin: 7px 0 0; font-size: .95rem; line-height: 1.55; color: var(--text-soft); }
.shop-specs { margin: 0; }
.shop-specs > div, .shop-co__sum > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.shop-specs dt, .shop-co__sum dt { font-size: .86rem; color: var(--muted); }
.shop-specs dd, .shop-co__sum dd { margin: 0; font-size: .94rem; line-height: 1.6; color: var(--text-soft); }
/* the checkout */
.modal.shop-co { max-width: 540px; padding: 24px 26px 22px; border-radius: 14px; text-align: left;
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.shop-co__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.shop-co__step { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.shop-co__x { width: 32px; height: 32px; margin-right: -8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.shop-co__x:hover { background: var(--surface-2); color: var(--text); }
.modal.shop-co h3 { font-size: 1.5rem; margin-bottom: 8px; }
.shop-co__lede { font-size: .93rem; line-height: 1.5; }
.shop-co__f { display: block; margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.shop-co__f > span { display: block; }
.shop-co__f select { width: 100%; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.shop-co__places { display: grid; gap: 6px; }
.shop-co__place { padding: 10px 14px; }
.shop-co__place b { font-size: .93rem; }
.shop-co__res { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); }
.shop-co__res--none { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.modal .shop-co__lab { margin: 0 0 4px; }
.modal .shop-co__ed { margin: 0; }
.shop-co__ed b { display: block; font-family: "Newsreader", Georgia, serif; font-size: 1.3rem; font-weight: 600; color: var(--text); }
.shop-co__ed span { display: block; margin-top: 2px; font-size: .84rem; color: var(--muted); }
.modal .shop-co__note { margin: 12px 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.modal .shop-co__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.shop-co__sum { margin: 10px 0 0; }
.shop-co__sum > div { grid-template-columns: 110px minmax(0, 1fr); padding: 10px 0; }
.shop-co__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.shop-co__total span { font-size: .9rem; color: var(--muted); }
.shop-co__total b { font-family: "Newsreader", Georgia, serif; font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.modal .shop-co__soon { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--accent-wash); font-size: .88rem; line-height: 1.5; color: var(--text); }
.modal.shop-co .modal-actions { margin-top: 20px; }
/* the add-ons step (user, 24 Nov 2026: "add an upselling step to the ordering pop up ... 10% discount on the total
   cost of the order"): a row for each other product - its picture, name, its own choices, its price and an Add button */
.shop-co__adds { list-style: none; margin: 14px 0 0; padding: 0; }
.shop-co__add { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.shop-co__add:last-child { border-bottom: 1px solid var(--border); }
.shop-co__add > img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #ECEAE6; }
.shop-co__add.is-on > img { box-shadow: 0 0 0 2px var(--accent); }
.shop-co__add-main { min-width: 0; }
.shop-co__add-main > b { display: block; font-size: .95rem; color: var(--text); }
.shop-co__add-main > span { display: block; margin-top: 1px; font-size: .8rem; color: var(--muted); }
.shop-co__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.shop-co__opts select { max-width: 100%; padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .8rem; }
.shop-co__add-buy { display: grid; justify-items: end; gap: 7px; }
.shop-co__add-buy > span { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.shop-co__addbtn { min-width: 78px; padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.shop-co__addbtn:hover { border-color: var(--text); }
.shop-co__addbtn.is-on { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-text); }
.shop-co__was { margin-right: 4px; font-size: 1.1rem; font-weight: 400; color: var(--muted); }
.shop-co__add-buy .shop-co__was { margin-right: 2px; font-size: .82rem; }   /* (each add-on's price, crossed out, then 10% off) */
/* the order: each item under its name (and its price, with more than one), then the 10% off */
.shop-co__item-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.shop-co__item-h b { font-family: "Newsreader", Georgia, serif; font-size: 1.12rem; font-weight: 600; color: var(--text); }
.shop-co__item-h span { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.shop-co__item .shop-co__sum { margin-top: 2px; }
.shop-co__bill { margin: 14px 0 0; }
.shop-co__bill > div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-size: .9rem; }
.shop-co__bill dt { color: var(--muted); }
.shop-co__bill dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--text); }
.shop-co__off dt, .shop-co__off dd { color: var(--accent-text); font-weight: 600; }
/* the shop's home page (#/shop) and the product cards, also under each product as "More from the shop" (user, 24 Nov
   2026: "create a more traditional product home page for the shop that they can then click to open the product pages") */
/* (no heading or intro over the cards - user, 24 Nov 2026: "get rid of this on the shop page") */
.shop-home .shop-grid[data-cards] { margin-top: 14px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px; margin-top: 38px; }
.shop-card { display: flex; flex-direction: column; min-width: 0; }
.shop-card__media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #ECEAE6; }
.shop-card__link { position: absolute; inset: 0; display: block; }
.shop-card__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
/* a page: on the stage's grey, like the product page's main picture, clear of the arrows */
.shop-card__page { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10% 15%; background: var(--surface-2); }
.shop-card__page img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 2px; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 22, 28, .10), 0 12px 28px rgba(20, 22, 28, .14); }
/* a wide head-on picture - the desk mat - fills the frame from side to side, a slim margin left so it still reads as a
   mat (user, 24 Nov 2026: "make the head on images for the mats more zoomed in and maintain high quality on the
   image"); its arrows are light, over the navy */
.shop-card__page--full { padding: 0 3.5%; }
.shop-card__page--full img { width: 100%; border-radius: 4px; }
/* the dots: bare, no white strip behind them (user, 24 Nov 2026: "get rid of the white bubbles around these"). Like the
   arrows, the text colour on a page and dark on a book photo's pale background, in either theme */
.shop-card__dots { position: absolute; left: 50%; bottom: 16px; z-index: 1; display: flex; gap: 6px; color: var(--text);
  transform: translateX(-50%); pointer-events: none; }
.shop-card__dots--photo { color: #1D1F24; }
.shop-card__dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .25; transition: opacity .2s; }
.shop-card__dots i.is-on { opacity: .9; }
@media (hover: hover) {
  .shop-card__link:hover .shop-card__img { transform: scale(1.015); }
  .shop-card__name a:hover { color: var(--accent-text); }
}
/* the arrows on the main pictures and the cards (user, 24 Nov 2026: "make the main pictures on the shop have a click
   right and left to show the photos of the pages too"): bare chevrons, no round behind them (user, 24 Nov 2026: "make
   the arrows not have the white bubbles around them"). On a page they take the text colour (the grey behind follows
   the theme); on a book photo they stay dark, since its studio background is pale in both themes. The button keeps a
   42 px target. pan-y leaves sideways swipes to shop.js. */
.shop-stage, .shop-card__media { touch-action: pan-y; }
.shop-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; padding: 0;
  border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; opacity: .72; transition: opacity .15s, transform .15s; }
.shop-nav--photo { color: #1D1F24; }
/* (on a photo whose edges are dark - the navy desk mat - the arrows are light, with a soft shadow so they still show
   where they cross onto the pale desk: user, 24 Nov 2026, "The arrows ... aren't working" - they were dark on navy) */
.shop-nav--dark { color: #FFFFFF; }
.shop-nav--dark svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.shop-nav svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-nav--prev { left: 10px; }
.shop-nav--next { right: 10px; }
.shop-nav:hover { opacity: 1; }
.shop-nav:active { transform: scale(.9); }
.shop-nav:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 0; }
/* with a mouse, the arrows show only while the cursor is on the picture (user, 24 Nov 2026: "have the arrows only
   appear when your curser hovers on the photo"), or when the keyboard is on one; touch screens, with no cursor, keep them */
@media (hover: hover) and (pointer: fine) {
  .shop-nav { opacity: 0; }
  .shop-stage:hover .shop-nav, .shop-card__media:hover .shop-nav,
  .shop-stage:has(:focus-visible) .shop-nav, .shop-card__media:has(:focus-visible) .shop-nav { opacity: .72; }
  /* (the same weight as the lines above, so this later one wins: the arrow pointed at, or tabbed to, at full strength) */
  .shop-stage .shop-nav:hover, .shop-card__media .shop-nav:hover,
  .shop-stage .shop-nav:focus-visible, .shop-card__media .shop-nav:focus-visible { opacity: 1; }
}
.shop-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 2px 0; }
.shop-card__name { font-size: 1.6rem; }
.shop-card__name a { color: inherit; text-decoration: none; }
.shop-card__line { margin: 8px 0 0; font-size: .97rem; line-height: 1.55; color: var(--text-soft); }
.shop-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 16px; }
.shop-card__price { font-size: .88rem; color: var(--muted); }
.shop-card__price b { margin-left: 3px; font-family: "Newsreader", Georgia, serif; font-size: 1.45rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.shop-card__cols { display: flex; gap: 8px; }
.shop-card__sw { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--sw); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 1px var(--border-strong); transition: box-shadow .15s; }
.shop-card__sw.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); }
.shop-card__cta { display: flex; align-self: stretch; justify-content: center; margin-top: 16px; padding: 12px 16px; border-radius: 12px; color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.shop-card__cta:hover { border-color: var(--text); background: var(--surface-2); }
.shop-perks { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 64px 0 0; padding: 28px 0 0; border-top: 1px solid var(--border); }
.shop-perks li { display: flex; gap: 12px; align-items: flex-start; }
.shop-perks svg, .shop-zone svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-perks b { display: block; font-size: .95rem; }
.shop-perks span { display: block; margin-top: 3px; font-size: .86rem; line-height: 1.45; color: var(--muted); }
/* a product page's way back to the shop's home (user, 24 Nov 2026: a "back to shop" link and arrow, not a breadcrumb) */
.shop-back { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px; font-size: .88rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.shop-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.shop-back:hover { color: var(--text); }
.shop-back:hover svg { transform: translateX(-3px); }
/* (under a product: the other products as wide cards, the book beside its words) */
.shop-grid--more { grid-template-columns: 1fr; margin-top: 4px; }
.shop-grid--more .shop-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; }
.shop-grid--more .shop-card__body { max-width: 520px; padding-top: 0; }
.shop-grid--more .shop-card__cta { align-self: flex-start; }
@media (max-width: 900px) {
  .shop-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }   /* (minmax: a long row of thumbnails scrolls instead of widening the page) */
  .shop-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* (the stage stays square at every width, book or page, so the arrows stay put as the pictures change) */
  .shop-stage { padding: 30px; }
  .shop-stage--spread { padding: 18px 64px; }
  .shop-stage--photo { padding: 0; }
  .shop-buy h1 { font-size: 2.1rem; }
}
@media (max-width: 640px) {
  .shop { padding-bottom: 28px; }
  .shop-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 26px; }
  .shop-card__media { border-radius: 14px; }
  .shop-card__name { font-size: 1.4rem; }
  .shop-grid--more .shop-card { grid-template-columns: 1fr; gap: 0; }
  .shop-grid--more .shop-card__body { padding-top: 18px; }
  .shop-grid--more .shop-card__cta { align-self: stretch; }
  .shop-perks { grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }
  .shop-stage { border-radius: 14px; padding: 26px 26px 34px; }
  .shop-stage--spread { padding: 12px 46px; }
  .shop-stage--page .shop-stage__img { width: 86%; }
  .shop-stage--photo { padding: 0; }
  .shop-nav { width: 36px; height: 36px; margin-top: -18px; }
  .shop-nav svg { width: 24px; height: 24px; }
  .shop-nav--prev { left: 6px; }
  .shop-nav--next { right: 6px; }
  .shop-card__dots { bottom: 10px; }
  .shop-stage--photo .shop-stage__cap { bottom: 8px; font-size: .7rem; }
  .shop-thumbs { position: relative; gap: 8px; overflow-x: auto; }   /* (relative: the thumbnails' hidden labels scroll with them) */
  .shop-thumb { width: 60px; height: 60px; padding: 5px; }
  .shop-buy h1 { font-size: 1.9rem; }
  .shop-sizes { grid-template-columns: 1fr; }
  .shop-sec { margin-top: 42px; }
  .shop-inside { grid-template-columns: 1fr; gap: 28px; }
  .shop-specs > div { grid-template-columns: 1fr; gap: 4px; }
  .modal.shop-co { padding: 20px 18px 18px; }
  .shop-co__add { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .shop-co__add > img { width: 52px; height: 52px; }
  .shop-co__add-buy { grid-column: 2; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
  .shop-co__sum > div { grid-template-columns: 92px minmax(0, 1fr); }
}

/* ==========================================================================================================================
   GIFT SUBSCRIPTIONS (user, 24 Nov 2026 - gifts.py): the gift page in the Shop (#/shop/gift-subscription, shop.js), its
   card on the shop's home page, the gift pop-up on the home page and the invitation link's page (#/gift/<token>), and
   the gift box in My account (account.js). The gift is drawn as a navy card with the logo's four-point compass in
   silver (its port point darker, as on the covers) - the brand's own colours, the same in both themes.
   ========================================================================================================================== */
.gift-card { position: relative; container-type: inline-size; display: flex; flex-direction: column; justify-content: space-between;
  width: min(80%, 440px); aspect-ratio: 1.586; padding: 7% 7.5% 6.5%; border-radius: 18px; overflow: hidden; color: #fff; transform: rotate(-3deg);
  background:
    repeating-radial-gradient(circle at 104% 108%, rgba(255, 255, 255, .045) 0 1px, transparent 1px 13px),
    radial-gradient(120% 95% at 88% 0%, #2B3B60 0%, #14213D 55%, #0D172D 100%);
  box-shadow: 0 1px 2px rgba(10, 14, 22, .25), 0 26px 50px -14px rgba(10, 14, 22, .5); }
.gift-card__sheen { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, .08) 50%, transparent 62%); }
.gift-card__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; }
.gift-card__brand { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 7.2cqi; line-height: 1; letter-spacing: -.01em; }
.gift-card__brand i { font-style: normal; color: #E0603F; }
.gift-card .gift-compass { width: 12cqi; height: 12cqi; margin: 0; }
.gift-card__mid { position: relative; display: grid; gap: 1.6cqi; }
.gift-card__eyebrow { font-size: 2.9cqi; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #C9CEDA; }
.gift-card__title { font-family: "Newsreader", Georgia, serif; font-size: 8.6cqi; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.gift-card__foot { position: relative; display: flex; justify-content: space-between; gap: 4cqi; font-size: 3.3cqi; color: #C9CEDA; }
.gift-card__foot b { font-weight: 600; color: #fff; }
.gift-card__foot span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* the gift page's main picture, and the card's picture on the shop's home page */
.shop-stage--gift, .shop-card__media--gift { display: grid; place-items: center;
  background: radial-gradient(90% 80% at 30% 20%, color-mix(in srgb, var(--accent) 7%, var(--surface-2)) 0%, var(--surface-2) 70%); }
.shop-stage--gift { padding: 40px 40px 52px; }
.shop-stage--gift .gift-card { width: min(84%, 470px); }
/* the gift's card: as wide as the grid, the card beside its words (under a product: as wide as the other book's card) */
.shop-grid--gift { grid-template-columns: 1fr; margin-top: 44px; }
.shop-card--gift { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.shop-card__media--gift { aspect-ratio: 16 / 10; text-decoration: none; }
.shop-card__media--gift .gift-card { width: 66%; transition: transform .5s ease; }
.shop-card--gift .shop-card__body { padding: 0; max-width: 500px; }
.shop-card--gift .shop-eyebrow { margin: 0 0 6px; }
.shop-card--gift .shop-card__cta { align-self: flex-start; padding-left: 26px; padding-right: 26px; }
@media (hover: hover) { .shop-card__media--gift:hover .gift-card { transform: rotate(-1.5deg) translateY(-3px); } }
.shop-more .shop-grid--gift { margin-top: 36px; }
.shop-more .shop-card--gift { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; }
.shop-more .shop-card__media--gift { aspect-ratio: 1 / 1; }
.shop-more .shop-card__media--gift .gift-card { width: 80%; }
/* the buy box: the plan, then how long (months or years, and a stepper), then the addresses and the message */
.gift-len { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.gift-unit { display: inline-flex; padding: 3px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); }
.gift-unit button { padding: 8px 18px; border: 0; border-radius: 9px; background: none; color: var(--text-soft); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; }
.gift-unit button.is-on { background: var(--accent-wash); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.gift-step { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); }
.gift-step button { width: 44px; height: 42px; border: 0; background: none; color: var(--text); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; border-radius: 11px; }
.gift-step button:hover:not(:disabled) { background: var(--surface-2); }
.gift-step button:disabled { color: var(--border-strong); cursor: default; }
.gift-step output { min-width: 116px; text-align: center; font-family: "Newsreader", Georgia, serif; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.gift-len__note { margin: 10px 0 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.gift-f { display: grid; align-content: start; gap: 6px; margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--text); }
.shop-opt > .gift-f:first-of-type { margin-top: 0; }
.gift-f em { font-style: normal; font-weight: 400; color: var(--muted); }
.gift-f input, .gift-f textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface);
  color: var(--text); font: inherit; font-size: .95rem; font-weight: 400; }
.gift-f textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.gift-f input:focus, .gift-f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.gift-f [aria-invalid="true"] { border-color: var(--down); }
.gift-f small { font-size: .78rem; font-weight: 400; line-height: 1.4; color: var(--muted); }
.gift-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gift-row .gift-f { margin-top: 0; }
.gift-row + .gift-f { margin-top: 16px; }
/* (the gift's picture stays in view beside the form, so the name typed shows on the card) */
@media (min-width: 901px) { .shop--gift .shop-gallery { position: sticky; top: 96px; } }
.gift-err { margin: 16px 0 0; }
.gift-buy .shop-cta { margin-top: 18px; }
.gift-sent { margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-wash); font-size: .95rem; line-height: 1.5; }
/* how it works: four steps, numbered */
.gift-how { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; }
.gift-how li { display: grid; gap: 12px; align-content: start; }
.gift-how__n { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--accent); border-radius: 50%; color: var(--accent-text);
  font-family: "Newsreader", Georgia, serif; font-size: 1.05rem; font-weight: 600; }
.gift-how h3 { margin: 0 0 6px; font-size: 1.06rem; }
.gift-how p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--text-soft); }
/* what each plan gives: the three side by side, the one chosen outlined */
.gift-cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gift-cmp__col { padding: 20px 22px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.gift-cmp__col.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.gift-cmp__col h3 { margin: 0; font-size: 1.35rem; }
.gift-cmp__price { margin: 4px 0 14px; font-size: .86rem; color: var(--muted); }
.gift-cmp ul, .gift-claim__feats ul { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
.gift-cmp li, .gift-claim__feats li { display: flex; gap: 9px; font-size: .9rem; line-height: 1.45; color: var(--text-soft); }
.gift-cmp svg, .gift-claim__feats svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* the checkout's summary of the gift */
.gift-co__mail, .gift-co__none { color: var(--muted); font-size: .88rem; }
.gift-co__msg { font-family: "Newsreader", Georgia, serif; font-style: italic; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .gift-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-cmp { grid-template-columns: 1fr; }
  .shop-card--gift { grid-template-columns: 1fr; gap: 0; }
  .shop-card--gift .shop-card__body { padding-top: 20px; max-width: none; }
}
@media (max-width: 640px) {
  .shop-stage--gift { padding: 26px 22px 44px; }
  .shop-stage--gift .gift-card { width: 90%; }
  .shop-card__media--gift .gift-card { width: 76%; }
  .shop-card--gift .shop-card__cta { align-self: stretch; }
  .shop-more .shop-card--gift { grid-template-columns: 1fr; gap: 0; }
  .shop-more .shop-card__media--gift { aspect-ratio: 16 / 10; }
  .shop-more .shop-card__media--gift .gift-card { width: 76%; }
  .gift-row { grid-template-columns: 1fr; }
  .gift-how { grid-template-columns: 1fr; gap: 22px; }
  .gift-how li { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
}

/* My account: the gift running on the account */
.acct-gift { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.acct-gift__icon { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acct-gift p { margin: 0 0 6px; font-size: .92rem; line-height: 1.5; }
.acct-gift p:last-child { margin-bottom: 0; }
.acct-gift .btn { margin-top: 6px; }

/* the gift pop-up (the home page, the first visit after a gift reaches the account) and the invitation link's page */
.modal-root--gift { background: rgba(10, 14, 22, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal.gift-pop { position: relative; max-width: 460px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 0; overflow-y: auto;
  border: 0; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); animation: giftIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.gift-pop__top, .gift-claim__top { position: relative; overflow: hidden; padding: 36px 28px 28px; text-align: center; color: #fff;
  background: radial-gradient(120% 100% at 50% 0%, #27375C 0%, #14213D 58%, #0D172D 100%); }
.gift-pop__rings { position: absolute; left: 50%; top: 64px; width: 380px; height: 380px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, .07) 0 1px, transparent 1px 24px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%); mask-image: radial-gradient(circle, #000 25%, transparent 70%); }
.gift-compass { position: relative; display: block; width: 60px; height: 60px; margin: 0 auto 16px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.gift-pop .gift-compass { animation: giftSpin 1.1s cubic-bezier(.2, .8, .2, 1) .12s both; }
:is(.gift-pop__top, .gift-claim__top) .gift-pop__eyebrow { position: relative; margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #F4A58F; }
:is(.gift-pop__top, .gift-claim__top) .gift-pop__title { position: relative; margin: 8px 0 6px; font-family: "Newsreader", Georgia, serif; font-size: 1.95rem; font-weight: 600; line-height: 1.12; color: #fff; }
:is(.gift-pop__top, .gift-claim__top) .gift-pop__from { position: relative; margin: 0; font-size: .98rem; color: #C9CEDA; }
.gift-pop__from b { font-weight: 600; color: #fff; }
.gift-pop__x { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none;
  color: rgba(255, 255, 255, .72); font-size: 1.55rem; line-height: 1; cursor: pointer; }
.gift-pop__x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.gift-pop__x:focus-visible { outline: 2px solid #F4A58F; outline-offset: 0; }
.gift-pop__body { padding: 22px 26px 24px; }
.modal .gift-pop__what { margin: 0 0 18px; font-size: .98rem; line-height: 1.55; text-align: center; color: var(--text-soft); }
.gift-pop__msg { margin: 0 0 20px; padding: 16px 18px 16px 20px; border-left: 3px solid var(--accent); border-radius: 4px 12px 12px 4px; background: var(--surface-2); }
.gift-pop__msg figcaption { margin: 0 0 6px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gift-pop__msg blockquote { margin: 0; font-family: "Newsreader", Georgia, serif; font-size: 1.14rem; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.gift-pop__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gift-pop__acts .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
@keyframes giftIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes giftSpin { from { opacity: 0; transform: rotate(-90deg) scale(.55); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal.gift-pop, .gift-pop .gift-compass { animation: none; } }
@media (max-width: 480px) {
  .gift-pop__top { padding: 32px 20px 24px; }
  :is(.gift-pop__top, .gift-claim__top) .gift-pop__title { font-size: 1.6rem; }
  .gift-pop__body { padding: 20px 18px 20px; }
}
/* #/gift/<token>: the gift, its message, then the account form beside what the plan gives */
.acct-wrap--gift { max-width: 940px; margin: 0 auto; }
.gift-claim { margin: 12px 0 0; padding: 0; overflow: hidden; border-radius: 18px; }
.gift-claim__top { padding: 44px 28px 32px; }
.gift-claim__top .gift-pop__rings { top: 74px; width: 460px; height: 460px; }
.gift-claim__top .gift-compass { width: 66px; height: 66px; }
.gift-claim__top .gift-pop__title { font-size: 2.4rem; }
.gift-claim__body { padding: 28px 32px 32px; }
.gift-claim .gift-pop__msg { max-width: 640px; margin: 0 auto 28px; }
.gift-claim__cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.gift-claim__lab { margin: 0 0 12px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gift-claim__form .acct-auth__alt { margin: 4px 0 0; padding: 14px 0 0; text-align: left; }
.gift-claim__form .acct-auth__small { margin-top: 2px; }
.gift-claim__feats { padding: 20px 22px; border-radius: 14px; background: var(--surface-2); }
.gift-claim__feats .acct-auth__small { margin-top: 16px; }
@media (max-width: 720px) {
  .gift-claim__cols { grid-template-columns: 1fr; gap: 24px; }
  .gift-claim__body { padding: 20px 18px 22px; }
  .gift-claim__top { padding: 36px 20px 26px; }
  .gift-claim__top .gift-pop__title { font-size: 1.8rem; }
}

/* ---------- THE WALL CALENDAR in the shop (24 Nov 2026) ----------
   Three products on the shop's home page: three across on a wide screen. The calendar comes in one format, so its card
   names it where the books show their cover colours. */
@media (min-width: 981px) {
  .shop-home > .shop-grid[data-cards] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
}
.shop-card__fmt { font-size: .86rem; color: var(--muted); }

/* ---------- THE RESEARCH NOTEBOOK in the shop (24 Nov 2026) ----------
   Four products on the home page: two rows of two, or four across once the shop is at its full width - never three in
   a row with one left alone below. */
@media (min-width: 981px) {
  .shop-home > .shop-grid[data-cards]:has(> .shop-card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px; }
}
@media (min-width: 1200px) {
  .shop-home > .shop-grid[data-cards]:has(> .shop-card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
}

/* ---------- THE DESK MAT in the shop (24 Nov 2026) ----------
   Five products on the home page: never one left alone on a row. Pairs with the fifth centred under them, then three
   across with the last two centred under them once there is room (a six-column grid, each card two columns wide). */
@media (min-width: 641px) {
  .shop-home > .shop-grid[data-cards]:has(> .shop-card:nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
  .shop-home > .shop-grid[data-cards]:has(> .shop-card:nth-child(5)) > .shop-card { grid-column: span 2; }
  .shop-home > .shop-grid[data-cards]:has(> .shop-card:nth-child(5)) > .shop-card:nth-child(5):last-child { grid-column: 2 / span 2; }
}
@media (min-width: 981px) {
  .shop-home > .shop-grid[data-cards]:has(> .shop-card:nth-child(5)) { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 28px; }
  .shop-home > .shop-grid[data-cards]:has(> .shop-card:nth-child(5)) > .shop-card:nth-child(5):last-child { grid-column: span 2; }
  .shop-home > .shop-grid[data-cards]:has(> .shop-card:nth-child(5)) > .shop-card:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
}

/* ---- the shop's ordering (24 Nov 2026, user: "Yes, build it" - shop_orders.py): the checkout's Delivery step and an
   order's own page, #/shop/order-<id> ---- */
.shop-co__addr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; margin-top: 2px; }
.shop-co__in { margin-top: 12px; min-width: 0; }
.shop-co__in--wide { grid-column: 1 / -1; }
.shop-co__in select { width: 100%; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.shop-co__in select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.shop-co__in input[aria-invalid="true"], .shop-co__in select[aria-invalid="true"] { border-color: var(--down); }
.shop-co__in .shop-co__ferr { font-size: .8rem; color: var(--down); }
.shop-co__q { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--border); }
.shop-co__off-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-text, var(--accent)); font-size: .72rem; font-weight: 600; vertical-align: 1px; }
.shop-co__test { margin: 14px 0 0; padding: 10px 14px; border: 1px dashed var(--border-strong); border-radius: 10px; font-size: .85rem; line-height: 1.5; color: var(--text-soft); }
.shop-co__err { margin-top: 14px; }
@media (max-width: 640px) { .shop-co__addr { grid-template-columns: minmax(0, 1fr); } }

.shop--order .shop-order { max-width: 720px; margin: 6px auto 48px; }
.shop-order__wait { color: var(--muted); }
.shop-order__head { margin: 0 0 22px; }
.shop-order__id { margin: 0 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.shop-order__title { margin: 0; font-family: "Newsreader", Georgia, serif; font-size: 2rem; line-height: 1.15; font-weight: 600; }
.shop-order__when { margin: 8px 0 0; color: var(--text-soft); font-size: .92rem; }
.shop-order__parcels { display: grid; gap: 14px; }
.shop-order__parcel { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.shop-order__ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.shop-order__ph h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.shop-order__st { padding: 3px 10px; border-radius: 999px; background: var(--accent-wash); color: var(--text); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.shop-order__st--shipped { background: var(--up-wash); color: var(--up); }
.shop-order__st--problem, .shop-order__st--cancelled, .shop-order__st--refunded { background: var(--down-wash); color: var(--down); }
.shop-order__items { margin: 0; padding: 0; list-style: none; }
.shop-order__items li { display: grid; gap: 2px; padding: 6px 0; border-top: 1px solid var(--border); }
.shop-order__items li:first-child { border-top: 0; }
.shop-order__items span { font-size: .85rem; color: var(--muted); }
.shop-order__track p, .shop-order__hint { margin: 10px 0 0; font-size: .88rem; color: var(--text-soft); }
.shop-order__track a { color: var(--accent); font-weight: 600; }
.shop-order__bill { margin-top: 22px; }
.shop-order__help { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
/* the checkout's payment step: Stripe's embedded form inside the pop-up (user, 24 Nov 2026) - wider, so the form fits */
.modal.shop-co.shop-co--pay { max-width: 600px; }
.shop-co__pay { margin: 16px 0 0; min-height: 140px; }
.modal .shop-co__wait { padding: 40px 0; text-align: center; font-size: .9rem; color: var(--muted); }
.shop-co__fake { padding: 14px 16px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.modal .shop-co__fake-h { margin: 0 0 4px; font-size: .85rem; color: var(--text-soft); }
.shop-co__fbtn { display: flex; justify-content: flex-end; margin-top: 16px; }
@media (max-width: 640px) { .shop-co__fake { padding: 12px; } }
/* the name on the cover (user, 24 Nov 2026: personalised covers on the books' own pages): a text box under the size,
   and a preview of the front with the name over it where the cover prints it - the cover's own typeface (Libre
   Baskerville, OFL: assets/fonts/OFL-librebaskerville.txt; it loads only when the preview shows), its size a share
   of the front's width (cqw), and a grey gradient standing in for the printed metallic silver */
@font-face { font-family: "Portside Cover"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/librebaskerville-normal-400.woff2) format("woff2"); }
.shop-name__lab { display: block; margin: 0 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.shop-name__in { width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; }
.shop-name__in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.shop-name__in[aria-invalid="true"] { border-color: var(--down); }
.shop-name__hint { margin: 7px 0 0; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.shop-name__hint.is-bad { color: var(--down); }
.shop-namecard { position: relative; width: min(74%, 400px); container-type: inline-size; }
.shop-stage--name .shop-namecard .shop-stage__img { width: 100%; }
.shop-namecard__n { position: absolute; left: 50%; top: 88.13%; transform: translate(-50%, -84%); width: max-content; white-space: nowrap;
  padding-left: .25em; font-family: "Portside Cover", "Libre Baskerville", Georgia, serif; font-size: 2.352cqw; font-weight: 400; line-height: 1; letter-spacing: .25em;
  background: linear-gradient(128deg, #aeb4bc 0%, #eef0f2 14%, #c4c8ce 28%, #868d97 44%, #d9dce0 60%, #f4f5f6 68%, #9aa1aa 84%, #cfd2d7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (hover: hover) and (pointer: fine) { .shop-namecard { transition: transform .22s ease-out; } }
