/* Layout: a plain reference handbook on warm paper, left-aligned columns, one very legible family.
   Colour appears only where it carries meaning: links and selection (blue), heat (orange), stance and status,
   amino-acid chemistry and body-map rings. Deliberately a single light theme; every colour is set explicitly. */
:root {
  color-scheme: light;
  /* 2027 palette (WGSN and Coloro): each colour has one job */
  --page: #f7f2ea;       /* warm paper ground */
  --white: #fffdf9;      /* raised surfaces: search, status box, bubbles */
  --ink: #14173a;        /* text, footer */
  --muted: #5c5a66;
  --faint: #8d8a94;
  --line: #e3d9ca;
  --rule: #cdbfac;
  --panel: #efe7db;
  --panel-2: #e6dacb;
  --off: #ddd2c2;        /* empty meter segments */
  --link: #2433c2;       /* Luminous Blue: links, buttons, selection, evidence */
  --link-soft: #dfe2f8;
  --orange: #ff6a1a;     /* Energy Orange: heat only */
  --pink: #f7a8cb;       /* Pop Pink */
  --green: #7fa66a;      /* Meadowland Green */
  --clay: #cfa896;       /* Clay */
  --good: #3f7a3a;
  --warn: #b04a08;
  --bad: #c0331d;
  --good-soft: #dfe8d3;
  --bad-soft: #ffdcc7;
  --mixed-soft: #eadbd0;
  --aa-h: #ffc6a3;       /* water-avoiding: orange tint */
  --aa-p: #c9cdf4;       /* water-loving: blue tint */
  --aa-pos: #f7b8d3;     /* positive: pink */
  --aa-neg: #c4d9b6;     /* negative: green tint */
  --aa-s: #e6d2c6;       /* structural: clay tint */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Source Serif 4', 'Source Serif Pro', 'Iowan Old Style', Georgia, serif;
  --night: #141413;      /* hero band, as in Project Glasswing */
  --night-ink: #faf9f5;
  --night-muted: #b8b5ab;
  --for-soft: #e3ecd9;
  --against-soft: #fde3ee;
  --mixed-tint: #f1e5dc;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1180px;
}

/* Spacing scale used throughout: 4, 8, 12, 16, 24, 32, 48, 64.
   Type scale: 13.5 (fine print), 14.5 (meta), 15.5 (dense body), 17 (body, h3), 19 (lead), h2 21-25, h1 30-48. */

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }
svg { display: block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1 { font-family: var(--serif); font-size: clamp(38px, 5.2vw, 60px); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-family: var(--serif); font-size: clamp(27px, 3vw, 36px); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.sub { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.quiet { font-size: 14.5px; color: var(--muted); }
.card-k { font-size: 14.5px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-size: 14.5px; font-weight: 400; color: var(--muted); }
.cite { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--link); color: #ffffff; border: 1px solid var(--link); border-radius: 9999px; padding: 8px 20px; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #1b279c; }
.btn-o { background: var(--white); color: var(--ink); border-color: var(--rule); }
.btn-o:hover { background: var(--panel); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.more-row { grid-column: 1 / -1; padding-top: 8px; }
.rest { display: contents; }

/* disclosure rows: a plain blue line with the native marker */
.morev > summary, .why > summary { display: list-item; cursor: pointer; color: var(--link); font-weight: 600; padding-block: 10px; }
.morev[open] > summary { margin-bottom: 16px; }

/* ---------- frame ---------- */
.top { background: rgba(247, 242, 234, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.top-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 8px var(--gutter) 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }
.brand { display: inline-flex; align-items: center; min-height: 40px; font-family: var(--serif); font-size: 23px; font-weight: 400; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav { display: flex; gap: 24px; order: 5; width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--ink); }
.nav a:focus-visible { outline-offset: -2px; }
.nav a[aria-current="page"] { color: var(--link); font-weight: 700; box-shadow: inset 0 -2px 0 var(--link); }
.top-r { display: flex; align-items: center; gap: 12px; }
.region { display: flex; align-items: center; gap: 8px; font-size: 15.5px; color: var(--muted); }
.region > span { display: none; }
.region select { min-height: 40px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--white); padding: 4px 8px; font-size: 15.5px; color: var(--ink); max-width: 46vw; }
@media (min-width: 860px) {
  .top-in { padding-block: 8px; }
  .nav { order: 0; width: auto; margin-right: auto; }
  .brand { margin-right: 0; }
  .region > span { display: inline; }
}
main { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); padding-block: 0 48px; }
main:focus { outline: none; }
.foot { background: var(--ink); margin-top: 64px; }
.foot-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); padding-block: 32px 48px; display: grid; gap: 8px; font-size: 14.5px; color: #c9c6d6; }
.foot-in a { color: #ffffff; }
.foot-in p { max-width: 44em; }
.foot-in b { color: #ffffff; font-weight: 700; }

/* ---------- home: intro and search ---------- */
.intro { display: grid; gap: 16px; padding-block: clamp(32px, 5vw, 48px) 32px; }
.lede { font-family: var(--serif); font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34em; }
.searchwrap { position: relative; max-width: 720px; margin-top: 8px; }
.search { display: flex; align-items: center; gap: 12px; border: 1px solid var(--rule); border-radius: 16px; padding: 0 4px 0 12px; min-height: 52px; background: var(--white); }
.search:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px var(--link-soft); }
.s-ico { width: 18px; height: 18px; flex: none; color: var(--faint); }
.s-field { position: relative; flex: 1; min-width: 0; }
.s-field input, .ghost { font-size: 17px; line-height: 1.5; padding: 0; letter-spacing: 0; }
.s-field input { width: 100%; height: 48px; border: 0; background: transparent; outline: none; position: relative; color: var(--ink); }
.s-field input::placeholder { color: var(--faint); }
.ghost { position: absolute; inset: 0; line-height: 48px; color: var(--faint); white-space: pre; overflow: hidden; pointer-events: none; }
.s-clear { min-height: 44px; border: 0; background: none; padding: 0 8px; color: var(--link); font-size: 15.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 15; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(20, 23, 58, 0.10); padding: 4px; display: grid; }
.sug li { display: grid; grid-template-columns: 72px minmax(0, auto) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.sug li[aria-selected="true"], .sug li:hover { background: var(--panel); }
.sug-k { font-size: 13.5px; color: var(--faint); }
.sug-l { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-s { font-size: 14.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .sug li { grid-template-columns: minmax(0, 1fr); gap: 0; } .sug-k { display: none; } }

/* ---------- small parts ---------- */
.ev { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; white-space: nowrap; }
.ev-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; position: relative; }
.ev-bars i { width: 4px; border-radius: 0; background: var(--off); }
.ev-bars i:nth-child(1) { height: 5px; } .ev-bars i:nth-child(2) { height: 8px; } .ev-bars i:nth-child(3) { height: 11px; } .ev-bars i:nth-child(4) { height: 14px; }
.ev-bars i.on { background: var(--link); }
.ev-F .ev-bars::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 1.5px; background: var(--bad); transform: rotate(-24deg); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; line-height: 1.35; color: var(--ink); white-space: nowrap; }
.st svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.st-good svg { color: var(--good); } .st-warn svg { color: var(--warn); } .st-bad svg { color: var(--bad); }
.heat { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; white-space: nowrap; }
.heat-segs { display: inline-flex; gap: 2px; }
.heat-segs i { width: 6px; height: 13px; border-radius: 0; background: var(--off); }
.heat-segs i.on { background: var(--orange); }
.tag { font-size: 13.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.ico { width: 16px; height: 16px; flex: none; color: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border: 1px solid var(--rule); background: var(--white); border-radius: 9999px; padding: 4px 14px; font-size: 15.5px; color: var(--ink); cursor: pointer; text-decoration: none; text-align: left; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--link-soft); border-color: var(--link); color: var(--link); font-weight: 700; }
.chip .n { font-size: 13.5px; color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 400; }
.chip .sw { display: none; }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.seg-l { font-size: 14.5px; color: var(--muted); }
.seg button { min-height: 40px; border: 0; background: none; padding: 0; font-size: 15.5px; color: var(--link); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.seg button:hover { text-decoration-color: currentColor; }
.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: none; cursor: default; }

/* ---------- home: filters and list ---------- */
.map { display: grid; gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.plate-col { display: block; min-width: 0; }
.plate-col > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 18px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--white); cursor: pointer; font-weight: 700; list-style: none; }
.plate-col > summary::-webkit-details-marker { display: none; }
.plate-col > summary #fsum { font-weight: 400; color: var(--link); }
.plate-col[open] > summary { margin-bottom: 16px; }
.filters-in { display: grid; gap: 24px; }
.side-h { display: block; font-family: var(--font); font-size: 15.5px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--ink); margin-bottom: 4px; }
.plate-col .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.plate-col .chip { display: flex; justify-content: space-between; width: 100%; min-height: 40px; border: 0; border-radius: 9999px; background: transparent; padding: 4px 8px; margin-left: -8px; }
.plate-col .chip:hover { background: var(--panel); }
.plate-col .chip[aria-pressed="true"] { background: var(--link-soft); color: var(--link); }
.famsel { display: grid; }
.famsel select { min-height: 44px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--white); padding: 8px 12px; font-size: 15.5px; color: var(--ink); width: 100%; }
.plate { background: var(--panel); border-radius: 20px; overflow: hidden; width: 100%; max-width: 300px; }
.plate svg { width: 100%; height: auto; }
.plate figcaption { font-size: 13.5px; color: var(--muted); padding: 0 16px 16px; }
.aura { cursor: pointer; transition: color 0.15s ease; }
.aura-all { color: #ebe2d4; } .aura-sleep { color: #d8dcf5; } .aura-immune { color: #ffdcc4; } .aura-longevity { color: #f9d6e5; } .aura-healing { color: #d8e5cd; }
.aura-sleep:hover, .aura-sleep.on { color: #a9b0ee; } .aura-immune:hover, .aura-immune.on { color: #ffad7a; } .aura-longevity:hover, .aura-longevity.on { color: #f4a3c6; } .aura-healing:hover, .aura-healing.on { color: #a6c493; }
.aura:focus, .node:focus { outline: none; }
.aura:focus-visible ellipse:first-child { stroke: var(--link); stroke-width: 3; }
.fig-glow { display: none; }
.fig-edge { color: var(--page); pointer-events: none; }
.fig-body { color: var(--ink); pointer-events: none; }
.aura-label { font-family: var(--font); font-size: 18px; fill: var(--muted); pointer-events: none; }
.aura-label.on { fill: var(--ink); font-weight: 700; }
.node { cursor: pointer; }
.node .hit, .node .halo { fill: transparent; }
.node .ring { fill: none; stroke: #ffffff; stroke-width: 1.5; opacity: 0.6; }
.node .dot { fill: #ffffff; }
.node:hover .ring, .node:focus-visible .ring { opacity: 1; stroke-width: 2.5; }
.node:focus-visible .ring { stroke: var(--link); }
.node.on .ring { opacity: 1; r: 13; fill: #ffffff; stroke: var(--link); stroke-width: 3; }
.node.on .dot { fill: var(--link); }
.lead { stroke: var(--ink); stroke-width: 1; opacity: 0.2; pointer-events: none; }
.lead.on { opacity: 0.8; }
.node-label { font-family: var(--font); font-size: 21px; fill: var(--muted); }
.node.on .node-label { fill: var(--ink); font-weight: 700; }
@media (max-width: 700px) { .plate { display: none; } }
@media (min-width: 1000px) {
  .map { grid-template-columns: 270px minmax(0, 1fr); gap: 48px; align-items: start; }
  .plate-col > summary { display: none; }
  .plate-col .chips { grid-template-columns: 1fr; }
  .plate-col .chip { min-height: 34px; }
}

.list-col { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; scroll-margin-top: 120px; }
.zone-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.zone-head .blurb { color: var(--muted); max-width: 38em; }
.zone-head .linkbtn { padding-block: 10px; }
.zone-head .count { margin-left: 4px; font-size: 15.5px; font-weight: 400; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.rows-head { display: none; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 16px; padding: 12px 10px 16px; margin-inline: -10px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: 4px; }
.prow:hover { background: var(--white); }
.prow:hover .row-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prow-main { display: grid; gap: 4px; min-width: 0; }
.row-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.2; letter-spacing: -0.012em; }
.row-name .tag { font-family: var(--font); letter-spacing: 0; }
.prow-em { display: flex; align-self: start; padding-top: 2px; }
.mthumb .mt-bg { fill: var(--white); stroke: var(--line); }
.mthumb .mt-ln { fill: none; stroke: var(--ink); stroke-opacity: 0.4; stroke-width: 1; stroke-linecap: round; }
.row-claim { font-size: 15.5px; color: var(--muted); }
.row-more { font-size: 13.5px; color: var(--faint); white-space: nowrap; }
.cc:empty { display: none; }
.cc { margin-left: 8px; font-size: 13.5px; color: var(--muted); }
.prow-ev, .prow-st, .prow-heat { display: inline-flex; }
.prow .heat-word { display: none; }
@media (max-width: 859px) {
  .prow { grid-template-columns: 44px auto auto 1fr; align-items: center; column-gap: 14px; }
  .prow-em { grid-row: span 2; }
  .prow-main { grid-column: 2 / -1; }
  .prow-st .st { white-space: normal; }
  .prow-main, .prow-st { min-width: 0; }
  .row-name, .row-claim, .prow-st .st span { overflow-wrap: anywhere; hyphens: auto; }
}
@media (min-width: 860px) {
  .rows-head, .prow { grid-template-columns: 44px minmax(0, 1fr) 150px 200px 64px; align-items: center; padding-block: 16px; }
  .rows-head { display: grid; gap: 16px; margin-inline: -10px; padding: 0 10px 8px; border-bottom: 2px solid var(--ink); font-size: 13.5px; color: var(--muted); }
}
.empty { padding: 24px 0; color: var(--muted); border-bottom: 1px solid var(--line); }

/* ---------- peptide page ---------- */
.back { display: inline-block; font-size: 15.5px; padding-block: 10px; margin-block: 16px 12px; }
.pep-hero { display: grid; gap: 16px; align-items: center; background: var(--night); color: var(--night-ink); box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax); padding-block: 0 32px; margin-bottom: 48px; }
.ph-text { display: grid; gap: 16px; align-content: center; min-width: 0; }
.pep-hero .back { color: var(--night-muted); margin-block: 16px 8px; }
.pep-hero h1 { font-size: clamp(46px, 7.4vw, 88px); line-height: 1; letter-spacing: -0.025em; color: var(--night-ink); }
.pep-hero h1:focus { outline: none; }
.famline { font-size: 15.5px; color: var(--muted); }
.pep-hero .famline, .pep-hero .aka { color: var(--night-muted); }
.famline .tag { font-size: inherit; color: inherit; }
.aka { font-size: 15.5px; color: var(--muted); }
.sum { font-family: var(--serif); font-size: 20px; line-height: 1.5; max-width: 32em; }
.pep-hero .sum { color: #e8e6dc; }
.ph-fig { display: grid; gap: 8px; min-width: 0; }
#molcv { display: block; width: 100%; height: clamp(300px, 46vw, 500px); }
.ph-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font-size: 14.5px; color: var(--night-muted); font-variant-numeric: tabular-nums; }
.ph-cap .fx { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; color: var(--night-ink); }
.ph-cap sub { font-size: 0.6em; line-height: 0; }
.fnote { flex-basis: 100%; }
@media (min-width: 900px) { .pep-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; min-height: 560px; padding-block: 8px 48px; } .ph-fig { padding-top: 24px; } }
.pep-grid { display: grid; gap: 40px; grid-template-areas: 'side' 'body'; }
.pep-side { grid-area: side; align-self: start; background: var(--white); border-radius: 20px; min-width: 0; }
.card { display: grid; gap: 10px; align-content: start; padding: 20px 24px; min-width: 0; }
.card .heat-name { font-family: var(--serif); font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.pep-side .card + .card { border-top: 1px solid var(--line); }
.card p { font-size: 15.5px; }
.card .st { justify-self: start; font-size: 17px; font-weight: 700; white-space: normal; }
.card .st svg { width: 17px; height: 17px; }
.jumps { display: flex; flex-wrap: wrap; gap: 0 24px; }
.jumps a { display: inline-flex; align-items: center; min-height: 40px; }
.heat-big { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.heat-big .heat-segs i { width: 8px; height: 16px; }
.why > summary { font-size: 14.5px; font-weight: 400; padding-block: 10px; }
.heat-why { display: grid; gap: 4px; padding: 4px 0 4px 20px; list-style: disc; font-size: 14.5px; color: var(--muted); }
.pep-side .quiet { font-size: 13.5px; }
@media (min-width: 640px) and (max-width: 959px) {
  .pep-side { display: grid; grid-template-columns: 3fr 2fr; }
  .pep-side .card + .card { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 960px) {
  .pep-grid { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: 'body side'; gap: 40px 64px; }
  .pep-side { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; }
}
.pep-body { grid-area: body; display: grid; gap: 64px; min-width: 0; }
.pep-body > section { display: grid; gap: 16px; align-content: start; min-width: 0; scroll-margin-top: 120px; }
@media (min-width: 860px) { .pep-body > section { scroll-margin-top: 80px; } }
.pep-body section > p { font-family: var(--serif); font-size: 19px; line-height: 1.55; max-width: 34em; }
.claims, .risks, .key, .tl { border-top: 1px solid var(--line); }
.claim { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.claim-t { font-weight: 700; }
.claim-z { font-size: 14.5px; }
.claim-z a { color: var(--muted); padding-block: 12px; }
.claim-n { font-size: 15.5px; color: var(--muted); max-width: 40em; }
.accel { font-size: 13.5px; color: var(--warn); }
@media (min-width: 700px) { .claim { grid-template-columns: 208px 128px minmax(0, 1fr); align-items: start; } }
.risk { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.risk-k { font-size: 14.5px; color: var(--muted); }
.risk-t { max-width: 40em; }
.risk-serious .risk-k { color: var(--bad); font-weight: 700; }
.risk-serious .risk-t { font-weight: 600; }
.note-line { font-size: 15.5px; color: var(--muted); max-width: 40em; }
.note-line b { color: var(--ink); font-weight: 700; }
.reports-cols { display: grid; gap: 24px; }
.reports-cols h3 { margin-bottom: 8px; }
.reports-cols ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; font-size: 15.5px; }
@media (min-width: 640px) { .reports-cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
.caveat { font-size: 14.5px; color: var(--muted); max-width: 42em; }
.route { display: grid; gap: 8px; background: var(--white); border-radius: 20px; padding: 20px 24px; max-width: 36em; }
.route p { font-size: 15.5px; font-family: var(--font); }
.sources { display: grid; gap: 8px; padding-left: 24px; list-style: decimal; font-size: 15.5px; }
.sources a { overflow-wrap: anywhere; }

/* amino-acid sequence: periodic-table style tiles, standard chemistry colouring */
.seq-panel { display: grid; gap: 18px; background: var(--white); border-radius: 20px; padding: 24px; }
.seq-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 2px; }
.res { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; color: var(--ink); clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.res b { font-size: 12.5px; font-weight: 600; line-height: 1; margin-top: -7px; }
.res i { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 9px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.aa-h { background-color: var(--orange); } .aa-p { background-color: var(--link); color: #ffffff; } .aa-pos { background-color: var(--pink); } .aa-neg { background-color: var(--green); } .aa-s { background-color: var(--clay); }
.res.aa-odd { background-image: radial-gradient(circle at 50% 50%, transparent 55%, rgba(20, 23, 58, 0.55) 57%, rgba(20, 23, 58, 0.55) 62%, transparent 64%); }
.res.aa-d { background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(20, 23, 58, 0.22) 5px 7px); }
.res.aa-mod { background-image: linear-gradient(180deg, var(--ink) 0 4px, transparent 4px); }
.res.aa-ring { background-image: linear-gradient(0deg, var(--ink) 0 4px, transparent 4px); }
.cap { font-size: 13px; color: var(--muted); background: var(--page); border-radius: 9999px; padding: 4px 10px; margin-right: 6px; }
.cap-q { color: var(--faint); }
.seq-key { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--muted); }
.seqkey { display: inline-flex; align-items: center; gap: 8px; }
.seqkey .res.res-s { width: 16px; height: 16px; }
@media (max-width: 520px) { .res { width: 40px; height: 40px; } .res b { font-size: 11px; } .res i { bottom: 6px; } }

/* ---------- voices: face and speech bubble ---------- */
.vf { display: grid; gap: 12px; margin-bottom: 32px; }
.voices { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.vb { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; --tint: var(--mixed-tint); }
.v-for { --tint: var(--for-soft); } .v-against { --tint: var(--against-soft); }
.ava { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--clay); color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 400; object-fit: cover; }
.vb-body { display: grid; gap: 4px; min-width: 0; }
.vb-bubble { position: relative; display: grid; gap: 8px; background: var(--tint); border-radius: 18px; padding: 14px 18px; margin-bottom: 4px; max-width: 36em; }
.vb-bubble:first-child { border-top-left-radius: 2px; }
.vb-bubble:first-child::before { content: ''; position: absolute; left: -8px; top: 0; border-style: solid; border-width: 0 8px 10px 0; border-color: transparent var(--tint) transparent transparent; }
.vb-bubble p { font-family: var(--serif); font-size: 17.5px; line-height: 1.5; }
.vb-bubble .cite { font-family: var(--font); }
.vb-bubble .cite { font-size: 13.5px; }
.vb-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; font-size: 15.5px; }
.vb-who b { font-weight: 700; }
.stance { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.v-for .stance { color: var(--good); }
.v-against .stance { color: #b0306e; }
.v-for .ava { background: var(--green); }
.v-against .ava { background: var(--pink); }
.usedtag { font-size: 14.5px; color: var(--muted); }
.vb-meta { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.vb .money { font-size: 13.5px; color: var(--warn); }

/* ---------- cases, last resort, access ---------- */
.cases, .edges, .ways { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.case, .edge, .way { display: grid; gap: 8px; align-content: start; padding: 20px 22px; background: var(--white); border-radius: 20px; min-width: 0; }
.case p, .edge p, .way p { font-size: 15.5px; }
.case .cite, .edge .cite, .way .cite { font-size: 13.5px; }
.case-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.outcome, .legal { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.c-benefit .outcome, .w-legal .legal { color: var(--good); }
.c-harm .outcome, .w-illegal .legal { color: var(--bad); }
.w-gray .legal { color: var(--warn); }
.edge dl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; }
.edge dt { font-size: 14.5px; color: var(--muted); }
.edge dd { margin: 0; font-size: 15.5px; }
.risk-line { font-size: 15.5px; color: var(--warn); }
.wise { font-family: var(--serif); font-size: 21px; line-height: 1.4; max-width: 30em; }

/* ---------- charts: label, square-ended bar, large number (as in Project Glasswing) ---------- */
.gb { display: grid; gap: 8px; }
.gb-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); align-items: center; gap: 14px; }
.gb-l { font-size: 15px; color: var(--muted); }
.gb-l:empty { display: none; }
.gb-side .gb-row { grid-template-columns: minmax(0, 1fr); }
.gb-t { display: flex; align-items: center; min-width: 0; height: 46px; background: var(--panel); }
.gb-f { display: flex; align-items: center; justify-content: flex-end; height: 100%; min-width: 4px; padding: 0 12px; background: var(--ink); color: var(--white); }
.gb-v { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gb-out { padding-left: 12px; color: var(--ink); }
.gb-heat .gb-f { background: var(--orange); color: var(--ink); }
.gb-for .gb-f, .gb-buy .gb-f { background: var(--green); color: var(--ink); }
.gb-mixed .gb-f, .gb-hold .gb-f { background: var(--clay); color: var(--ink); }
.gb-against .gb-f, .gb-sell .gb-f { background: var(--pink); color: var(--ink); }
.gb-range .gb-f { background: var(--link); color: #ffffff; }
.gb-stance { max-width: 560px; }
.big { font-family: var(--serif); font-size: 40px !important; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chg { font-size: 15.5px; color: var(--muted); }
.chg.up { color: var(--good); } .chg.down { color: var(--bad); }
.range-l { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-left: calc(7.5em + 14px); }
@media (max-width: 520px) { .gb-row { grid-template-columns: 6em minmax(0, 1fr); } .range-l { padding-left: 0; } }

/* ---------- makers: one line on the peptide page, a full profile page ---------- */
.mk-list { display: grid; gap: 8px; }
.mk-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-height: 56px; padding: 14px 22px; background: var(--white); border-radius: 9999px; color: var(--ink); text-decoration: none; }
.mk-line b { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -0.01em; }
.mk-line span { font-size: 15px; color: var(--muted); }
.mk-line .mk-go { margin-left: auto; color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mk-line:hover .mk-go { text-decoration-thickness: 2px; }
@media (max-width: 600px) { .mk-line { border-radius: 20px; } .mk-line .mk-go { margin-left: 0; flex-basis: 100%; } }
.co-meta { font-size: 15.5px; color: var(--muted); }
.co-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); margin-bottom: 64px; }
.co-block { display: grid; gap: 14px; align-content: start; background: var(--white); border-radius: 20px; padding: 28px; min-width: 0; }
.co-sec { display: grid; gap: 16px; margin-bottom: 56px; max-width: 760px; }
.co-peps li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-peps a { font-family: var(--serif); font-size: 21px; }
.mnews { display: grid; gap: 10px; padding-left: 20px; list-style: disc; font-size: 15.5px; }
.mnews .when { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.co-note { max-width: 760px; margin-bottom: 32px; }
.ad { display: grid; gap: 10px; justify-items: start; max-width: 760px; padding: 28px; border-radius: 20px; background: var(--ink); color: #dcdaea; }
.ad-k { font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--page); border-radius: 4px; padding: 2px 8px; }
.ad-h { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: #ffffff; }
.ad .btn { background: #ffffff; border-color: #ffffff; color: var(--ink); margin-top: 6px; }
.ad .btn:hover { background: var(--page); }

/* ---------- upcoming, voices page, method ---------- */
.page-head { display: grid; gap: 14px; padding-block: clamp(32px, 5vw, 56px) 40px; }
.board { display: grid; gap: 32px; }
.col { display: grid; align-content: start; min-width: 0; }
.col-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--link); }
.col-h span { font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bcard { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bcard b { font-weight: 700; color: var(--link); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.bcard:hover b { text-decoration: underline; text-underline-offset: 3px; }
.bcard .mk { font-size: 13.5px; color: var(--muted); }
.bcard .ln { font-size: 14.5px; color: var(--muted); }
@media (min-width: 640px) { .board { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.two { display: grid; gap: 48px; margin-top: 64px; align-items: start; }
@media (min-width: 960px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; } }
.two section { display: grid; gap: 16px; align-content: start; min-width: 0; }
.tl li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.tl-rest { border-top: 0; }
.tl .when { font-size: 14.5px; font-weight: 700; }
.tl .kind { display: block; font-weight: 400; color: var(--muted); }
.tl .who { display: block; margin-top: 4px; font-size: 14.5px; }
@media (max-width: 520px) {
  .tl li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tl .kind { display: inline; margin-left: 8px; }
}
.list-foot { font-size: 14.5px; color: var(--muted); }
.prose { display: grid; gap: 48px; max-width: 760px; }
.prose section { display: grid; gap: 12px; }
.prose p { font-family: var(--serif); font-size: 19px; line-height: 1.55; max-width: 34em; }
.key > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; font-size: 15.5px; color: var(--muted); }
.key b { color: var(--ink); font-weight: 700; }
@media (max-width: 520px) { .key > div { grid-template-columns: 1fr; gap: 4px; } }
.labs { display: grid; gap: 16px; margin-top: 64px; }
.labgrid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.labgrid .card { background: var(--white); border-radius: 20px; padding: 24px; }
.notes { display: grid; gap: 8px; padding-left: 20px; list-style: disc; font-size: 15.5px; color: var(--muted); max-width: 42em; }

/* ---------- phones: touch targets of at least 40px ---------- */
@media (max-width: 859px) {
  .chip { min-height: 40px; }
  .linkbtn { padding-block: 10px; }
  .vb-meta a, .cite a, .tl .who a { padding-block: 12px; }
  .sources { gap: 16px; }
  .sources a { padding-block: 11px; }
}
@media (prefers-reduced-motion: reduce) { .aura { transition: none; } }

/* ---------- hero description: dotted terms with a short explanation ---------- */
.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 5px; letter-spacing: inherit; }
.term:hover, .term[aria-expanded="true"] { text-decoration-style: solid; }
a.term-link { color: inherit; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
a.term-link:hover { text-decoration-style: solid; }
.pop { position: absolute; z-index: 40; width: min(340px, calc(100vw - 24px)); display: grid; gap: 8px; padding: 16px 18px; background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: 0 16px 40px rgba(20, 23, 58, 0.22); font-family: var(--font); font-size: 15px; line-height: 1.5; letter-spacing: 0; }
.pop-h { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.pep-hero .sum { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.55; max-width: 31em; }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; font-size: 14.5px; color: var(--night-muted); }
.btn-follow { background: transparent; border-color: var(--night-ink); color: var(--night-ink); }
.btn-follow:hover { background: rgba(250, 249, 245, 0.12); }
.btn-follow[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }
.fl-card .btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.ncount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 9999px; background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 600; }
.ncount:empty { display: none; }

/* ---------- heat: reads per month ---------- */
.iv-line { font-size: 15px; }
.spark { display: grid; gap: 4px; margin: 4px 0 0; }
.spark svg { width: 100%; height: auto; }
.spark rect { fill: var(--clay); }
.spark rect.now { fill: var(--orange); }
.spark figcaption { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

/* ---------- access tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--white); color: var(--ink); font-size: 15.5px; font-weight: 500; cursor: pointer; }
.tab .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] { color: var(--ink); border-color: transparent; font-weight: 600; }
.tab-legal[aria-selected="true"] { background: var(--green); }
.tab-gray[aria-selected="true"] { background: var(--clay); }
.tab-illegal[aria-selected="true"] { background: var(--pink); }
.tab[aria-selected="true"] .n { color: var(--ink); }
.tabpanel { display: grid; gap: 16px; }
.tab-sub { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.way-route { background: var(--for-soft); }

/* ---------- companies list and following ---------- */
.co-list, .fl-list { display: grid; gap: 16px; }
.co-card, .fl-card { display: grid; gap: 14px; background: var(--white); border-radius: 20px; padding: 24px 28px; min-width: 0; }
.co-card-h, .fl-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.co-card h2 a, .fl-card h2 a { color: var(--ink); text-decoration: none; }
.co-card h2 a:hover, .fl-card h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.co-card > p { max-width: 44em; }
.co-kpis { display: grid; gap: 12px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 0; }
.co-kpis dt { font-size: 13.5px; color: var(--muted); }
.co-kpis dd { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.co-kpis dd.up { color: var(--good); } .co-kpis dd.down { color: var(--bad); }
.gb-co .gb-row { grid-template-columns: 8.5em minmax(0, 1fr); }
.gb-co .gb-t { height: 36px; } .gb-co .gb-v { font-size: 19px; }
.co-peps-line { font-size: 15px; }
.co-grid-1 { grid-template-columns: minmax(0, 1fr); }
.fl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.fl-card h3 { font-family: var(--font); font-size: 14.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.fl-ev { display: grid; gap: 8px; font-size: 15.5px; }
.fl-ev .when { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.fl-ev .new { font-size: 12.5px; background: var(--orange); color: var(--ink); border-radius: 4px; padding: 1px 6px; }

/* ---------- what it does ---------- */
.does { border-top: 1px solid var(--line); margin: 0; }
.does > div { display: grid; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.does dt { font-size: 15.5px; font-weight: 600; }
.does dd { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.5; max-width: 36em; }
@media (min-width: 700px) { .does > div { grid-template-columns: 176px minmax(0, 1fr); align-items: baseline; } }

/* ---------- notebook ---------- */
.nb-store { max-width: 46em; font-size: 15.5px; color: var(--muted); padding: 14px 18px; background: var(--white); border-radius: 14px; }
.nb-store b { color: var(--ink); font-weight: 600; }
.nb-store .warn { display: block; margin-top: 6px; color: var(--warn); }
.nb-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.nb-form { display: grid; gap: 24px; background: var(--white); border-radius: 20px; padding: 28px; margin: 24px 0 32px; max-width: 880px; scroll-margin-top: 96px; }
.nb-grid { display: grid; gap: 20px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.fld { display: grid; gap: 8px; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.fld > span, .fld > legend { font-size: 15px; font-weight: 600; padding: 0; }
.fld > legend { margin-bottom: 8px; float: left; width: 100%; }
.fld > legend + * { clear: both; }
.fld select, .fld input[type="text"], .fld input[type="email"], .fld textarea { width: 100%; min-height: 44px; border: 1px solid var(--rule); border-radius: 12px; background: var(--page); padding: 10px 12px; font-size: 16px; color: var(--ink); }
.fld textarea { resize: vertical; line-height: 1.5; }
.fld-row { display: flex; gap: 8px; }
.fld-row select { flex: 1; min-width: 0; }
.seg, .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label, .checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--page); font-size: 15px; cursor: pointer; }
.seg label:has(:checked), .checks label:has(:checked) { background: var(--link-soft); border-color: var(--link); }
.seg input, .checks input, .wl-ok input { accent-color: var(--link); margin: 0; width: 18px; height: 18px; }
.nb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-err { color: var(--bad); font-size: 15px; font-weight: 600; }
.nb-err:empty, .wl-msg:empty { display: none; }
.nb-list { display: grid; gap: 16px; }
.nb-card { display: grid; gap: 14px; background: var(--white); border-radius: 20px; padding: 24px 28px; min-width: 0; scroll-margin-top: 96px; }
.nb-h { display: grid; gap: 4px; }
.nb-h h2 a { color: var(--ink); text-decoration: none; }
.nb-h h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.nb-status { font-size: 15px; color: var(--muted); }
.nb-status .on { color: var(--good); font-weight: 600; }
.nb-facts { display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; }
.nb-facts dt { font-size: 13.5px; color: var(--muted); }
.nb-facts dd { margin: 0; font-size: 15.5px; }
.nb-facts dd.good { color: var(--good); font-weight: 600; } .nb-facts dd.bad { color: var(--bad); font-weight: 600; }
.nb-med { font-size: 15px; background: var(--bad-soft); border-radius: 12px; padding: 12px 16px; max-width: 46em; }
.nb-notes { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.nb-notes li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; font-size: 15.5px; }
.nb-notes .when { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14.5px; }
.nb-notes .t { white-space: pre-wrap; overflow-wrap: anywhere; }
.nb-add { display: flex; gap: 8px; align-items: flex-end; }
.nb-add textarea { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--rule); border-radius: 12px; background: var(--page); padding: 10px 12px; font-size: 16px; resize: vertical; }
.nb-row { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.nb-row .linkbtn, .nb-foot .linkbtn { color: var(--muted); }
.nb-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; background: var(--panel); border-radius: 12px; padding: 12px 16px; }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #9e2815; }
.nb-foot { font-size: 15px; padding-top: 8px; }
.nb-why { display: grid; gap: 12px; margin-top: 48px; max-width: 760px; }
.nb-why p { font-family: var(--serif); font-size: 19px; line-height: 1.55; max-width: 34em; }
.nb-copyout { margin-bottom: 16px; max-width: 880px; }
.nb-copyout textarea { min-height: 200px; font-size: 14px; }
.nb-mini { display: grid; gap: 8px; font-size: 16px; }
.nb-mini li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.nb-pep-act { font-family: var(--font) !important; }
@media (max-width: 520px) {
  .nb-form, .nb-card { padding: 20px; }
  .nb-notes li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nb-add { flex-direction: column; align-items: stretch; }
}

/* ---------- watchlist messages ---------- */

/* ---------- companies: logo, price chart, analyst targets ---------- */
.logo { flex: none; width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: #ffffff; }
.logo-ph { display: inline-grid; place-items: center; font-size: 17px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); background: var(--panel-2); }
.logo-ph.t1 { background: var(--for-soft); } .logo-ph.t2 { background: var(--against-soft); } .logo-ph.t3 { background: var(--link-soft); } .logo-ph.t4 { background: var(--mixed-tint); } .logo-ph.t5 { background: var(--panel-2); }
.logo-lg { width: 72px; height: 72px; border-radius: 18px; font-size: 23px; }
.co-card-h { flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 16px; }
.co-name { display: grid; gap: 2px; min-width: 0; }
.co-head { display: flex; align-items: center; gap: 18px; }
.co-head h1 { font-size: clamp(34px, 4.4vw, 52px); }
.co-kpis dd { display: grid; gap: 2px; align-content: start; }
.kp-v { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.kp-s { font-size: 14px; color: var(--muted); }
.co-kpis .chg { font-size: 14px; font-weight: 600; }
.spk { width: 120px; height: 32px; margin: 2px 0; overflow: visible; }
.spk path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chg { white-space: nowrap; }
.chg.flat { color: var(--muted); }
.co-grid .pc { grid-column: 1 / -1; }
.pc { gap: 16px; }
.pc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.pc-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pc-now .chg { font-size: 17px; font-weight: 600; }
.pc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tab { min-height: 40px; min-width: 52px; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; }
.pc-tab:hover { background: var(--panel); }
.pc-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; font-weight: 600; }
.pc-plot { position: relative; height: clamp(200px, 30vw, 300px); margin-right: 64px; touch-action: pan-y; cursor: crosshair; }
.pc-plot:focus-visible { outline-offset: 6px; }
.pc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pc-base { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.pc-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pc-y { position: absolute; left: 100%; transform: translate(10px, -50%); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-log { position: absolute; left: 0; top: 0; font-size: 12.5px; color: var(--muted); background: var(--white); padding-right: 6px; }
.pc-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); pointer-events: none; }
.pc-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--ink); border: 2px solid var(--white); pointer-events: none; }
.pc-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); background: var(--ink); color: #ffffff; font-size: 13.5px; line-height: 1.3; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.pc-tip b { font-weight: 600; margin-right: 6px; }
.pc-x { display: flex; justify-content: space-between; margin-right: 64px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .pc-plot, .pc-x { margin-right: 52px; } .pc-y { font-size: 12px; transform: translate(6px, -50%); } }
.tg-h { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-top: 10px; }
.tg-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.tg-main .chg { font-size: 16px; font-weight: 600; }
.tg-bar { position: relative; height: 28px; margin: 4px 7px; }
.tg-bar::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--panel-2); }
.tg-range { position: absolute; top: 8px; height: 12px; background: var(--link-soft); border: 1px solid var(--link); }
.tg-avg { position: absolute; top: 2px; width: 3px; height: 24px; margin-left: -1.5px; background: var(--link); }
.tg-now { position: absolute; top: 7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ink); border: 2px solid var(--white); }
.tg-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.tg-key span { display: inline-flex; align-items: center; gap: 6px; }
.tg-key i { display: inline-block; flex: none; }
.k-now { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.k-avg { width: 3px; height: 14px; background: var(--link); }
.k-rng { width: 16px; height: 8px; background: var(--link-soft); border: 1px solid var(--link); }
.co-kpis .kp-s, .co-kpis .chg { font-family: var(--font); }
.nb-form h2 { scroll-margin-top: 110px; }

/* ---------- v12: footer nav, watchlist, notebook, media, aha ---------- */
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: 16px; font-size: 16px; }
.foot-nav a { color: #ffffff; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-nav a:hover, .foot-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.foot-in .quiet { color: #9d9ab0; }

.wl-hero { background: var(--night); color: var(--night-ink); box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax); padding-block: clamp(40px, 7vw, 88px); }
.wl-hero-in { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 16px; }
.wl-hero h1 { font-size: clamp(42px, 6.4vw, 76px); }
.wl-hero .sub { color: var(--night-muted); max-width: 30em; }
.wl-mail { display: grid; gap: 10px; margin-top: 8px; max-width: 560px; }
.wl-f { display: flex; gap: 8px; }
.wl-f .fld { flex: 1; min-width: 0; }
.wl-f input { width: 100%; min-height: 48px; border: 1px solid var(--night-muted); border-radius: 9999px; background: transparent; color: var(--night-ink); padding: 8px 20px; font-size: 16px; }
.wl-f input::placeholder { color: var(--night-muted); }
.wl-f .btn { background: var(--night-ink); border-color: var(--night-ink); color: var(--night); white-space: nowrap; }
.wl-f .btn:hover { background: #ffffff; }
.wl-f .btn:disabled, .wl-f input:disabled { opacity: 0.5; cursor: default; }
.wl-fine { font-size: 13.5px; color: var(--night-muted); }
.wl-fine a { color: var(--night-ink); }
.wl-on { color: var(--night-ink); font-weight: 600; }
.wl-hero .nb-err { color: #ffb3a3; }
.wl-hero .wl-msg { color: #c8e8b4; font-weight: 600; }
@media (max-width: 520px) { .wl-f { flex-direction: column; } }
.wl-sec { display: grid; gap: 16px; margin-top: 48px; }
.wl-list { border-top: 1px solid var(--line); }
.wl-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 44px; gap: 12px 20px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wl-name { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 17px; min-width: 0; }
.wl-name:hover b { text-decoration: underline; text-underline-offset: 3px; }
.wl-news { font-size: 15px; color: var(--muted); }
.wl-news .when { display: inline-block; min-width: 80px; font-variant-numeric: tabular-nums; margin-right: 8px; color: var(--muted); }
.wl-news .new { font-size: 12.5px; background: var(--orange); color: var(--ink); border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.wl-x { width: 44px; height: 44px; border: 0; background: none; color: var(--faint); font-size: 26px; line-height: 1; border-radius: 50%; cursor: pointer; }
.wl-x:hover { background: var(--panel); color: var(--bad); }
@media (max-width: 640px) { .wl-row { grid-template-columns: minmax(0, 1fr) 44px; } .wl-news { grid-column: 1 / -1; } }
.wl-groups { display: grid; gap: 16px; margin-top: 56px; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-chip { min-height: 44px; }

.nb-hero { background: var(--night); color: var(--night-ink); box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax); padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px); background-image: repeating-linear-gradient(transparent 0 31px, rgba(250, 249, 245, 0.07) 31px 32px); }
.nb-hero-in { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 8px; }
.nb-date { font-size: 14.5px; color: var(--night-muted); font-variant-numeric: tabular-nums; }
.nb-hero h1 { font-size: clamp(42px, 6vw, 72px); }
.nb-hero .sub { color: var(--night-muted); }
.nb-count { font-size: 15.5px; color: var(--night-ink); }
.nb-store { margin-top: 24px; background: none; padding: 0; }
.nb-shelf { display: grid; gap: 28px; }
.nb-shelf-h { font-family: var(--serif); font-size: 21px; }
.nb-fam { display: grid; gap: 10px; }
.nb-fam h3 { font-family: var(--font); font-size: 14.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nb-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 16px 4px 6px; border: 1px solid var(--line); border-radius: 9999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: 15.5px; }
.nb-pick:hover { border-color: var(--ink); }
.nb-card .nb-h, .nb-form .nb-h { display: flex; align-items: center; gap: 16px; }
.nb-card .nb-h > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nb-st { flex: none; }
.nb-lined { display: grid; gap: 0; border-top: 1px solid var(--line); background-image: repeating-linear-gradient(transparent 0 35px, var(--line) 35px 36px); line-height: 36px; padding-top: 0; }
.nb-lined .nb-notes { border: 0; padding: 0; gap: 0; }
.nb-notes li { line-height: 36px; min-height: 36px; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; font-family: var(--serif); font-size: 17px; }
.nb-notes .when { line-height: 36px; font-family: var(--font); }
.nb-notes .t { line-height: 36px; }
.nb-lined .nb-add { align-items: center; line-height: 36px; }
.nb-lined .nb-add textarea { min-height: 36px; height: 36px; line-height: 36px; padding: 0 0 0 124px; border: 0; background: transparent; border-radius: 0; font-family: var(--serif); font-size: 17px; resize: none; }
.nb-lined .nb-add textarea:focus { outline: none; background: rgba(36, 51, 194, 0.04); }
.nb-lined .nb-add .btn { min-height: 32px; padding: 2px 14px; font-size: 14px; }
@media (max-width: 520px) { .nb-notes li { grid-template-columns: minmax(0, 1fr); } .nb-lined .nb-add textarea { padding-left: 4px; } }

.aha { background: var(--white); border-left: 4px solid var(--orange); border-radius: 0 16px 16px 0; padding: 18px 24px; max-width: 36em; }
.aha p { font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.md-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.md { display: grid; align-content: start; background: var(--white); border-radius: 20px; overflow: hidden; min-width: 0; }
.md-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel); }
.md-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; margin: -18px 0 0 -26px; background: rgba(20, 23, 58, 0.85); border-radius: 10px; }
.md-play::after { content: ''; position: absolute; left: 21px; top: 10px; border-left: 14px solid #ffffff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.md-b { display: grid; gap: 6px; padding: 18px 20px 20px; }
.md-meta { font-size: 13px; color: var(--muted); }
.md h3 { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.md h3 a { color: var(--ink); text-decoration: none; }
.md h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.md-who { font-size: 13.5px; color: var(--muted); }
.md-say { font-size: 15px; }
.md-why { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.md-against { box-shadow: 6px 6px 0 var(--pink); }
.md-for { box-shadow: 6px 6px 0 var(--green); }
.md-mixed { box-shadow: 6px 6px 0 var(--line); }

.ph-sub { font-size: 15.5px; color: var(--night-muted); margin-top: -4px; }
.faq { border-top: 1px solid var(--line); }
.faq-i { border-bottom: 1px solid var(--line); }
.faq-i summary { cursor: pointer; padding: 14px 0; font-family: var(--serif); font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary::after { content: '+'; color: var(--muted); flex: none; }
.faq-i[open] summary::after { content: '-'; }
.faq-i p { font-size: 16px; padding-bottom: 16px; max-width: 40em; }
.rel { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.rel-i { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border-radius: 16px; color: var(--ink); text-decoration: none; min-width: 0; }
.rel-i > span { flex: 1; min-width: 0; display: grid; }
.rel-i .quiet { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-i:hover b { text-decoration: underline; text-underline-offset: 3px; }
.nowrap { white-space: nowrap; }

/* ---------- notebook v2: a daily tracker ---------- */
.nb-add-row { margin: 24px 0 28px; max-width: 560px; }
.nb-sw { position: relative; }
.nb-sw input { width: 100%; min-height: 52px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--white); padding: 10px 22px; font-size: 17px; color: var(--ink); }
.nb-sw input:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.nb-sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--white); border-radius: 16px; box-shadow: 0 16px 40px rgba(20, 23, 58, 0.18); padding: 6px; }
.nb-sug li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.nb-sug li .quiet { margin-left: auto; }
.nb-sug li.on, .nb-sug li:hover { background: var(--link-soft); }
.nl-list { display: grid; gap: 16px; margin-bottom: 48px; }
.nl { display: grid; gap: 16px; background: var(--white); border-radius: 20px; padding: 22px 26px; scroll-margin-top: 90px; }
.nl-h { display: flex; align-items: center; gap: 14px; }
.nl-h > div { flex: 1; min-width: 0; }
.nl-h h2 { font-size: 24px; }
.nl-h h2 a { color: var(--ink); text-decoration: none; }
.nl-stop { color: var(--faint); font-size: 14px; }
.nq-box { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.nq-h { font-family: var(--serif); font-size: 19px; }
.nq-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.nq-k { font-size: 13.5px; color: var(--muted); }
.nq-c { display: flex; flex-wrap: wrap; gap: 6px; }
.nq { min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 9999px; background: var(--page); color: var(--ink); font-size: 15px; cursor: pointer; }
.nq:hover { border-color: var(--ink); }
.nq.on { background: var(--ink); border-color: var(--ink); color: #ffffff; font-weight: 600; }
.nq.nq-good.on { background: var(--green); border-color: var(--green); color: var(--ink); }
.nq.nq-bad.on { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.nl-note { display: flex; gap: 8px; margin-top: 6px; }
.nl-note input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 9999px; background: var(--page); padding: 8px 16px; font-size: 16px; color: var(--ink); }
@media (max-width: 520px) { .nq-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .nl { padding: 18px; } .nl-note { flex-direction: column; } }
.nt { display: grid; gap: 8px; }
.nt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.nt-day { border-top: 1px solid var(--line); }
.nt-i { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 8px 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nt-d { font-size: 14px; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.nt-b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15.5px; }
.nt-a { font-size: 13.5px; padding: 2px 10px; border-radius: 9999px; background: var(--panel); }
.nt-a.good { background: var(--for-soft); } .nt-a.bad { background: var(--against-soft); }
.nt-t { flex-basis: 100%; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.nt-x { justify-self: end; }
.nt-i .nt-x.wl-x { opacity: 0.5; } .nt-i:hover .nt-x.wl-x { opacity: 1; }
span.nt-x { display: flex; gap: 8px; font-size: 14px; justify-self: end; white-space: nowrap; }
@media (max-width: 520px) { .nt-i { grid-template-columns: minmax(0, 1fr) 44px; } .nt-d { grid-column: 1 / -1; padding: 0; } }
.nb-copyout { width: 100%; margin-top: 8px; font-size: 14px; border: 1px solid var(--rule); border-radius: 12px; padding: 10px; }
.nl:focus { outline: none; }

/* ---------- notebook v3: daily check-in ---------- */
.nb-hero .nb-store { margin-top: 8px; color: var(--night-muted); font-size: 14px; }
.ci { display: grid; gap: 22px; background: var(--white); border-radius: 24px; padding: 28px; margin-top: 24px; scroll-margin-top: 80px; }
.ci-date { font-size: 14px; color: var(--muted); }
.ci-h { font-size: clamp(26px, 3vw, 34px); margin-top: -12px; }
.faces { display: flex; justify-content: space-between; gap: 8px; max-width: 520px; }
.face { display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 6px; border-radius: 16px; cursor: pointer; color: var(--muted); font-size: 13.5px; transition: transform 0.15s; }
.face svg { transition: transform 0.15s; }
.face:hover svg { transform: scale(1.08); }
.face.on { color: var(--ink); font-weight: 600; }
.face.on svg { transform: scale(1.18); filter: drop-shadow(0 6px 14px rgba(20, 23, 58, 0.25)); }
.faces:has(.on) .face:not(.on) svg { opacity: 0.45; }
.ci-k { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.took-c, .tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 16px 4px 8px; border: 1px solid var(--line); border-radius: 9999px; background: var(--page); color: var(--ink); font-size: 15.5px; cursor: pointer; }
.tk .mthumb { opacity: 0.6; }
.tk.on { background: var(--ink); border-color: var(--ink); color: #ffffff; font-weight: 600; }
.tk.on .mthumb { opacity: 1; }
.tg { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 16px 4px 12px; border: 1px solid var(--line); border-radius: 9999px; background: var(--page); color: var(--ink); font-size: 15px; cursor: pointer; }
.tg:hover, .tk:hover { border-color: var(--ink); }
.tg.on.tg-good { background: var(--for-soft); border-color: var(--green); font-weight: 600; }
.tg.on.tg-bad { background: var(--against-soft); border-color: var(--pink); font-weight: 600; }
.nb-sw { position: relative; display: inline-block; }
.nb-sw input { min-height: 44px; width: 180px; border: 1px dashed var(--rule); border-radius: 9999px; background: transparent; padding: 6px 16px; font-size: 15.5px; color: var(--ink); }
.nb-sw input:focus { width: 260px; border-style: solid; outline: 2px solid var(--link); outline-offset: 1px; background: var(--white); }
.nb-sug { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 280px; background: var(--white); border-radius: 16px; box-shadow: 0 16px 40px rgba(20, 23, 58, 0.18); padding: 6px; }
.nb-sug li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 16px; white-space: nowrap; }
.nb-sug li .quiet { margin-left: auto; }
.nb-sug li.on, .nb-sug li:hover { background: var(--link-soft); }
.ci-note { display: flex; gap: 8px; }
.ci-note input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 9999px; background: var(--page); padding: 8px 18px; font-size: 16px; color: var(--ink); }
@media (max-width: 520px) { .ci { padding: 20px; border-radius: 20px; } .ci-note { flex-direction: column; } .face svg { width: 48px; height: 48px; } .face { padding: 2px; font-size: 12px; } }
.sum-sec { display: grid; gap: 20px; margin-top: 40px; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { display: grid; }
.stat b { font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 400; }
.stat span { font-size: 13.5px; color: var(--muted); }
.mdots { display: grid; grid-template-columns: repeat(7, 22px); gap: 6px; }
.mdots i { width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); }
.mdots .md-e { background: transparent; }
.mdots .md-0 { background: var(--off); opacity: 0.5; }
.mdots .md-n { background: var(--clay); }
.mline { display: grid; gap: 4px; max-width: 640px; }
.mline svg { width: 100%; height: 120px; overflow: visible; }
.ml-p { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mline figcaption { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.ins { display: grid; gap: 8px; max-width: 640px; }
.ins li { font-size: 16px; padding: 12px 16px; background: var(--white); border-radius: 14px; }
.ins .warn { color: var(--warn); font-weight: 600; }
.lg-list { border-top: 1px solid var(--line); }
.lg { display: grid; grid-template-columns: 34px minmax(0, 1fr) 44px; gap: 8px 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lg-nf { width: 34px; height: 34px; border-radius: 50%; background: var(--panel); }
.lg-b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15.5px; }
.lg-d { font-weight: 600; min-width: 90px; }
.lg-t { color: var(--muted); }
.lg-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.nt-x { justify-self: end; }
.sum-top { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; }
.wl-fi { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--link-soft); color: var(--link); font-weight: 600; font-size: 14px; }
.wl-fam .wl-name { flex-wrap: wrap; }
.wl-fam .quiet { flex-basis: 100%; padding-left: 52px; margin-top: -6px; font-size: 13px; }
.nb-ask { margin-top: 16px; }
.nb-ask .wl-mail { background: var(--white); border-radius: 20px; padding: 20px 24px; max-width: 640px; }
.nb-ask .wl-f input { border-color: var(--rule); color: var(--ink); }
.nb-ask .wl-f .btn { background: var(--link); border-color: var(--link); color: #ffffff; }
.nb-ask .wl-fine, .nb-ask .nb-ask-h { color: var(--muted); }
.nb-ask-h { font-family: var(--serif); font-size: 21px; color: var(--ink) !important; margin-bottom: 4px; }
.wl-on .linkbtn { color: var(--night-ink); margin-left: 8px; }
.wl-fine .linkbtn { color: var(--night-ink); }

/* ---------- v16: watchlist promise, notebook funnel, small screens ---------- */
.wl-hero-in { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .wl-hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.promise { display: grid; gap: 18px; padding-top: 8px; }
.promise li { display: grid; gap: 4px; font-size: 15.5px; color: var(--night-muted); max-width: 30em; padding-left: 16px; border-left: 2px solid rgba(250, 249, 245, 0.25); }
.promise b { color: var(--night-ink); font-weight: 600; }
.wl-name { align-items: center; }
.wl-nm { display: grid; gap: 2px; min-width: 0; }
.wl-nm .quiet { font-size: 13px; white-space: normal; }
.wl-fam .quiet { flex-basis: auto; padding-left: 0; margin-top: 0; }
.wl-fi { flex: none; }
.wl-row { grid-template-columns: 260px minmax(0, 1fr) 44px; }
@media (max-width: 760px) {
  .wl-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 8px; padding: 12px 0; }
  .wl-news { grid-column: 1 / -1; font-size: 14.5px; }
  .wl-news .when { display: block; min-width: 0; margin: 0 0 2px; font-size: 13px; }
  .wl-hero { padding-block: 36px 32px; }
  .wl-hero h1 { font-size: 38px; }
  .wl-hero .sub { font-size: 17px; }
  .wl-sec { margin-top: 32px; }
  .wl-chips .chip { min-height: 40px; font-size: 14.5px; padding: 4px 12px; }
}
.funnel { margin-top: 24px; background: var(--white); border-radius: 24px; padding: 28px; display: grid; gap: 20px; }
.funnel ol { display: grid; gap: 16px; counter-reset: none; }
.funnel li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 16px; align-items: start; }
.funnel li b { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.2; }
.funnel li > span:last-child { grid-column: 2; font-size: 15.5px; color: var(--muted); max-width: 36em; }
.fn-n { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #ffffff; display: grid; place-items: center; font-weight: 600; font-size: 16px; }
.fn-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
@media (min-width: 860px) { .funnel ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .funnel li { grid-template-columns: 40px minmax(0, 1fr); } }
@media (max-width: 520px) { .funnel { padding: 20px; border-radius: 20px; } .funnel li b { font-size: 19px; } .nb-hero h1 { font-size: 40px; } .nb-hero { padding-block: 32px 28px; } .ci-h { font-size: 24px; } .stat b { font-size: 32px; } .mdots { grid-template-columns: repeat(7, 18px); gap: 5px; } .mdots i { width: 18px; height: 18px; } .lg { grid-template-columns: 34px minmax(0, 1fr) 36px; } .nt-head { flex-wrap: wrap; } }
@media (max-width: 760px) { .wl-row { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: 'name x' 'news news'; } .wl-name { grid-area: name; } .wl-x { grid-area: x; align-self: center; } .wl-news { grid-area: news; } }
.funnel li { align-items: center; }
.funnel li b { align-self: end; }
.funnel li > span:last-child { align-self: start; }
.nb-sw input { width: 230px; max-width: 100%; }
@media (max-width: 520px) { .nb-sw, .nb-sw input { width: 100%; } }

/* ---------- upcoming as tabs; stage tabs on phones ---------- */
.page-head-tight { padding-block: clamp(24px, 4vw, 48px) 20px; }
.tabwrap { display: grid; gap: 20px; }
.tabwrap .tabpanel { display: grid; gap: 16px; }
.tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab { flex: none; }
.tab[aria-selected="true"]:not(.tab-legal):not(.tab-gray):not(.tab-illegal) { background: var(--ink); color: #ffffff; }
.tab[aria-selected="true"]:not(.tab-legal):not(.tab-gray):not(.tab-illegal) .n { color: #cfcde0; }
.board-narrow { display: none; }
@media (max-width: 639px) { .board-wide { display: none; } .board-narrow { display: block; } .tabs-stage .tab { min-height: 38px; padding: 4px 14px; font-size: 14.5px; } .tabs-up .tab { min-height: 40px; } }
.tabs-up { margin-bottom: 4px; }
.tabwrap .tl { border-top: 1px solid var(--line); }
.promise li { display: block; }
.promise b { display: inline; margin-right: 4px; }
.wl-chip { gap: 6px; }
.wl-chip .ck { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--rule); flex: none; }
.wl-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.wl-chip[aria-pressed="true"] .n { color: #cfcde0; }
.wl-chip[aria-pressed="true"] .ck { background: var(--green); border-color: var(--green); }
.wl-chip[aria-pressed="true"] .ck::after { content: ''; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

/* ---------- phones: section strip on peptide pages, compact company cards ---------- */
.onpage { display: none; }
@media (max-width: 959px) {
  .onpage { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 60px; z-index: 20; background: var(--page); margin: -24px calc(-1 * var(--gutter)) 24px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); }
  .onpage::-webkit-scrollbar { display: none; }
  .onpage a { flex: none; min-height: 36px; display: inline-flex; align-items: center; padding: 4px 14px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: 14.5px; }
  .pep-body > section { scroll-margin-top: 120px; }
  .pep-hero { margin-bottom: 24px; }
}
@media (max-width: 639px) {
  .co-card { padding: 18px 20px; gap: 10px; }
  .co-card > p, .co-card .gb-co, .co-peps-line { display: none; }
  .co-kpis { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .co-card .btn { min-height: 40px; font-size: 14.5px; }
  .pep-hero h1 { font-size: 36px; }
  .pep-body { gap: 40px; }
}
@media (max-width: 859px) { .onpage { top: 100px; } .pep-side .jumps { display: none; } }
@media (max-width: 639px) { .co-card > p:has(.btn) { display: block; } }

.wl-tick { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--for-soft); color: var(--good); }
.wl-nm .quiet { font-size: 13.5px; color: var(--muted); }
.wl-nm b { font-size: 17px; }
.wl-hero { padding-block: clamp(32px, 5vw, 64px); }
.wl-send { margin-top: 56px; }
.wl-send-in { display: grid; gap: 12px; background: var(--night); color: var(--night-ink); border-radius: 24px; padding: 28px 32px; max-width: 760px; }
.wl-send-in h2 { font-size: clamp(26px, 3vw, 32px); }
.wl-send-in .quiet { color: var(--night-muted); }
.wl-send .wl-on { background: var(--white); border-radius: 16px; padding: 16px 20px; color: var(--ink); }
.wl-send .wl-on .linkbtn { color: var(--link); }
@media (max-width: 520px) { .wl-send-in { padding: 20px; border-radius: 20px; } }

/* ---------- feedback dialog, language switcher ---------- */
.fb-line { color: #ffffff; }
.foot-in .fb-open { color: #ffffff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fb-dlg { border: 0; border-radius: 24px; padding: 0; width: min(560px, calc(100vw - 24px)); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(20, 23, 58, 0.3); }
.fb-dlg::backdrop { background: rgba(20, 23, 58, 0.45); }
.fb { display: grid; gap: 14px; padding: 24px 26px; }
.fb-h { display: flex; justify-content: space-between; align-items: center; }
.fb-h h2 { font-size: 28px; }
.fb textarea, .fb input[type="email"] { width: 100%; border: 1px solid var(--rule); border-radius: 14px; background: var(--page); padding: 10px 14px; font-size: 16px; color: var(--ink); font-family: inherit; }
.langs select { min-height: 40px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--white); padding: 4px 8px; font-size: 15px; color: var(--ink); margin-right: 8px; }
@media (max-width: 520px) { .langs select { max-width: 106px; } }

/* sign-up with name and email; settings at the top right; toast */
.su-f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 640px) { .su-f { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto; align-items: end; } }
.su-sent { font-size: 16px; }
.su-code summary { cursor: pointer; color: var(--link); font-size: 15px; min-height: 40px; display: flex; align-items: center; }
.su-code .wl-f { margin-top: 6px; }
.nb-su { margin-block: 8px 4px; }
.wl-on-off { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.wl-on-off p { margin: 0; }
.acct-top:empty { display: none; }
.acct-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--white); color: var(--ink); font-size: 15px; cursor: pointer; }
.acct-btn:hover { background: var(--panel); }
.acct-in { color: var(--link); border-color: var(--link); }
@media (max-width: 520px) { .acct-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .acct-btn { padding: 4px 9px; } .top-r { gap: 8px; } }
.set-who { display: grid; gap: 2px; }
.set-who span { color: var(--muted); font-size: 15px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-block: 1px solid var(--line); cursor: pointer; }
.set-row > span { display: grid; gap: 2px; }
.set-row > span > span { color: var(--muted); font-size: 14.5px; }
.sw { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 9999px; background: var(--rule); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.sw:checked { background: var(--link); }
.sw:checked::after { transform: translateX(18px); }
.sw:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.set-acts { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.set-del { color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 9999px; font-size: 15.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.nb-ask .wl-fine .linkbtn, .nb-ask .wl-fine a, .fb-dlg .wl-fine .linkbtn, .fb-dlg .wl-fine a, .nb-ask .su-code summary, .fb-dlg .su-code summary { color: var(--link); }
.fb-dlg .wl-fine { color: var(--muted); }
.wl-send-in .su-code summary { color: var(--night-ink); }
.wl-send .wl-on-off p { font-weight: 400; }
.toast { width: max-content; text-align: center; }

/* voices: real profile photos, linked to the person's own channel */
.vb { grid-template-columns: 56px minmax(0, 1fr); }
.vb-face { display: block; width: 56px; height: 56px; border-radius: 50%; text-decoration: none; }
.vb-face .ava { width: 56px; height: 56px; font-size: 21px; }
.ava-p { display: block; object-position: 50% 25%; background: var(--panel); box-shadow: 3px 3px 0 var(--clay); }
.vb-credit { margin-top: 5px; font-size: 11px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.vb-credit a { color: inherit; text-underline-offset: 2px; }
.v-for .ava-p { box-shadow: 3px 3px 0 var(--green); } .v-against .ava-p { box-shadow: 3px 3px 0 var(--pink); }
a.vb-face:hover .ava, a.vb-face:focus-visible .ava { transform: translate(-1px, -1px); }
.vb-name { color: inherit; text-decoration: none; } .vb-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.vb-net { font-size: 13.5px; font-weight: 600; color: var(--link); text-decoration: none; border: 1px solid var(--rule); border-radius: 9999px; padding: 1px 9px; }
.vb-net:hover { border-color: var(--link); }
.faces-note { margin: 8px 0 32px; }
@media (max-width: 520px) { .vb { grid-template-columns: 48px minmax(0, 1fr); } .vb-face, .vb-face .ava { width: 48px; height: 48px; } }
.v-h2 { margin: 8px 0 12px; }
.v-feat { margin-bottom: 40px; }
.v-feat .sub { margin: -4px 0 20px; color: var(--muted); }
.voices-feat .vb-bubble { background: var(--white); box-shadow: 4px 4px 0 var(--tint); }
.voices-feat .vb-bubble:first-child::before { border-color: transparent var(--white) transparent transparent; }
.md-noimg { background: linear-gradient(135deg, var(--night) 0%, #2b2f6b 100%); }

/* peptide page: the wider story folded under one row, evidence first */
.pep-more { margin: 40px 0 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pep-more > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 18px 0; min-height: 48px; }
.pep-more > summary::-webkit-details-marker { display: none; }
.pep-more > summary::after { content: '+'; grid-row: 1 / span 2; grid-column: 2; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--ink); }
.pep-more[open] > summary::after { content: '\2212'; }
.pep-more .pm-h { font-family: var(--serif); font-size: 26px; letter-spacing: -0.015em; }
.pep-more .pm-s { color: var(--muted); font-size: 15px; }
.pep-more > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.pep-more[open] { padding-bottom: 16px; }

/* Upcoming board: a small turning chain beside each card */
.bcard .pipeline-source { font-size: 11px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }
.bcard.has-mol { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.bcard .bc-t { display: grid; gap: 4px; min-width: 0; }
.bmol { width: 52px; height: 52px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
