/* Trade Gecko · "Passbook" theme, the same look as the dara-invest page: pale green paper, soft off-white cards,
   Source Serif 4 headings, Hanken Grotesk text, one bottle-green accent. Losses and warnings are a warm umber,
   never red, and always come with a sign or a word. Motion is short and eased, and it all switches off for
   people who ask their device for less motion (the last section of this file). */

@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #EDF1EC;   /* the page */
  --card: #FAFBF8;     /* cards, inputs, the header */
  --well: #F2F5F1;     /* a quiet box inside a card (number tiles) */
  --ink: #1B2420;      /* text: 15:1 on the card */
  --soft: #55615B;     /* secondary text: 6.1:1 on the card, 5.5:1 on the ground (AA) */
  --line: #D3DCD5;     /* hairlines */
  --edge: #7F8C84;     /* input borders: 3.3:1 against the card, above the 3:1 minimum for a control's outline */
  --track: #DDE5DF;    /* the empty part of a bar */
  --accent: #1D4D3F;   /* bottle green: links, buttons, "now", gains (10:1) */
  --accent-hi: #163C31;
  --tint: #E1EBE4;     /* green wash behind the current tab */
  --warn: #8A5A12;     /* amber umber: "no", a broken limit, stale data (5.6:1) */
  --warn-tint: #F5ECDD;
  --down: #7A4A21;     /* losses (7.6:1); always with a minus sign */
  --up: var(--accent);
  /* chart fills are lighter than the text colours, so a bar is never mistaken for a word */
  --up-fill: #3E7F66;
  --down-fill: #B9824F;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --s1: 13px; --s2: 16px; --s3: 22px;            /* small, body, number */
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 36, 32, .04), 0 2px 8px -4px rgba(27, 36, 32, .06);
  --shadow-up: 0 2px 4px rgba(27, 36, 32, .05), 0 14px 32px -16px rgba(27, 36, 32, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);         /* fast start, soft landing */
  --spring: cubic-bezier(.34, 1.56, .64, 1);    /* a small overshoot, for things that "arrive" */
  --tabbar: 64px;
  --gutter: 16px;
  --wide: 1120px;
  --hair: var(--line);                          /* old names, still used by a few rules */
  --faded: var(--soft);
  --gold: var(--warn);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; background: var(--ground);
  font: 400 var(--s2)/1.55 var(--body);
  font-variant-numeric: tabular-nums lining-nums;   /* prices line up and never jump sideways while they count */
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); transition: color .15s, text-decoration-color .15s; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 650; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 12px 16px; z-index: 20; border-radius: 0 0 8px 8px; }
.skip:focus { left: 16px; }
.faded { color: var(--soft); }
.up { color: var(--up); } .down { color: var(--down); }
.gold { color: var(--warn); }
.small { font-size: var(--s1); }
code { font: .875em var(--mono); background: var(--well); padding: 1px 5px; border-radius: 4px; }

/* ---------- display type (typeset.py) ---------- */
.type { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
.type-md { font-size: 1.75rem; }
.type-lg { font-size: clamp(2.5rem, 11vw, 3.5rem); }
.type-xl { font-size: clamp(2.25rem, 9vw, 3rem); font-weight: 600; }
.type.gold { color: var(--accent); }               /* the old gold accent was "this matters": now bottle green */
.type.faded { color: var(--soft); }
.ket { white-space: nowrap; }
.ket i { font-style: italic; padding: 0 .04em 0 .06em; }
.ket-l { font-weight: 300; }
.ket-r { display: inline-block; width: .3em; height: 1em; vertical-align: -.12em; margin-left: .06em; overflow: visible; }
.ket-r path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.title { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.title > span { display: inline-block; }
.gecko rect { fill: var(--accent); }
.gecko .eye { fill: var(--card); transform-box: fill-box; transform-origin: center; }

/* ---------- small charts (typeset.spark / steps) ---------- */
svg.spark, svg.mini, svg.equity { display: block; width: 100%; overflow: visible; }
svg.spark { height: 96px; margin-top: 18px; }
svg.mini { height: 32px; margin-top: 10px; }
svg.equity { height: 140px; }
svg .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
svg.fall .line { stroke: var(--down); }
svg .area { fill: var(--accent); opacity: .07; }
svg.fall .area { fill: var(--down); }
svg .base { fill: none; stroke: var(--edge); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
svg .tip { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
svg.fall .tip { stroke: var(--down); }
svg.mini .tip { stroke-width: 6; }
svg.mini .line { stroke-width: 1.5; }

/* ---------- shell ---------- */
.page { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) calc(var(--tabbar) + 48px + env(safe-area-inset-bottom)); display: flow-root; }
.page:focus { outline: none; }
@media (min-width: 900px) { .page { padding-bottom: 72px; } }

.top { position: sticky; top: 0; z-index: 9; background: color-mix(in srgb, var(--ground) 92%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.top.scrolled { background: var(--card); border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(27, 36, 32, .35); }
.top-in { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand .gecko { width: 30px; height: auto; transition: transform .4s var(--spring); }
.brand:hover .gecko { transform: rotate(-8deg) scale(1.06); }
.brand .lbl { font: 600 1.125rem/1 var(--display); letter-spacing: -.01em; }
.nav-main { display: none; gap: 2px; margin-left: auto; }
.nav-main a { position: relative; gap: 7px; color: var(--soft); padding: 8px 14px 8px 12px; min-height: 40px; display: flex; align-items: center; border-radius: 99px; text-decoration: none; transition: color .15s, background-color .15s; }
.nav-main a:hover { color: var(--ink); background: var(--tint); }
.nav-main a[aria-current] { color: var(--accent); background: var(--tint); }
.more { margin-left: auto; position: relative; }
.more summary { list-style: none; cursor: pointer; gap: 7px; color: var(--soft); padding: 8px 14px 8px 12px; min-height: 40px; display: flex; align-items: center; border-radius: 99px; transition: color .15s, background-color .15s; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover, .more[open] summary { color: var(--ink); background: var(--tint); }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); padding: 6px; display: flex; flex-direction: column; transform-origin: top right; }
.more[open] .more-menu { animation: pop .22s var(--ease) both; }
.more-menu a { padding: 10px 12px; border-radius: 7px; text-decoration: none; color: var(--ink); transition: background-color .12s; }
.more-menu a:hover { background: var(--well); }
.more-menu a[aria-current] { color: var(--accent); background: var(--tint); font-weight: 600; }
.more-menu .group { padding: 12px 12px 4px; font-size: var(--s1); color: var(--soft); border-top: 1px solid var(--line); margin-top: 6px; }
@media (min-width: 900px) { .nav-main { display: flex; } .more { margin-left: calc(2px - 24px); } }   /* undoes .top-in's 24px gap down to the tabs' 2px, so More sits with them */

/* bottom tab bar: phone only */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);   /* one column per tab in nav.py */
  background: color-mix(in srgb, var(--card) 96%, transparent); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -20px rgba(27, 36, 32, .4);
}
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--soft); text-decoration: none; transition: color .15s, transform .15s var(--ease); }
.tabs a:active { transform: scale(.94); }
.tabs a .ic { width: 24px; height: 24px; transition: transform .25s var(--spring); }
.tabs a[aria-current] { color: var(--accent); }
.tabs a[aria-current] .ic { stroke-width: 2.3; transform: translateY(-1px); }
.tabs a[aria-current] .lbl { font-weight: 700; }
@media (min-width: 900px) { .tabs { display: none; } }
.more summary.on { color: var(--accent); background: var(--tint); }
.nav-main .ic, .more summary .ic { width: 18px; height: 18px; }

/* "‹ Gold" at the top of a page that sits under a tab (nav.back_of): one level, so one small link */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 10px 0 -14px; padding: 0 4px; color: var(--accent); font-weight: 600; text-decoration: none; }
.back span { font-size: 1.5em; line-height: 1; transform: translateY(-1px); transition: transform .2s var(--ease); }
.back:hover span { transform: translate(-3px, -1px); }
@media (min-width: 900px) { .back { margin-top: 24px; margin-bottom: -28px; } }

/* home: the main jobs as buttons, an icon and a plain sentence each (two columns on a phone, four on a desktop) */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (min-width: 900px) { .jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.jobs a { display: grid; gap: 4px; align-content: start; min-height: 96px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s var(--ease); }
.jobs a:hover { border-color: var(--edge); }
.jobs a:active { transform: scale(.97); }
.jobs .ic { color: var(--accent); margin-bottom: 4px; }
.jobs b { font-weight: 650; font-size: 15px; line-height: 1.25; }
.jobs span { font-size: 13px; color: var(--soft); }
.jobs + section { margin-top: 16px; }
@media (min-width: 900px) { .jobs-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jobs-2 a { min-height: 0; }

/* small labels in the nav and on cards are real text, first letter capital */
.lbl { letter-spacing: 0; }
.tabs .lbl, .nav-main .lbl, .more summary .lbl { font-size: 14px; font-weight: 600; text-transform: capitalize; }
.tabs .lbl { font-size: 12px; }
h2 .lbl, .pair-sym .lbl, .day .lbl, .read-top .lbl { display: inline-block; }
h2 .lbl::first-letter, .day .lbl::first-letter, .state-lbl .lbl::first-letter, .read-top .lbl::first-letter { text-transform: uppercase; }

/* ---------- danger banner ---------- */
.danger { position: relative; z-index: 9; background: var(--ground); border-bottom: 1px solid var(--line); }
.danger-in { max-width: var(--wide); margin: 0 auto; padding: 8px var(--gutter); min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: var(--s1); color: inherit; text-decoration: none; }
.danger-lines { position: relative; flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); }
.danger-lines::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.danger-text { flex: 1; font-weight: 600; line-height: 1.45; }
.danger[data-state="clear"] .danger-text { color: var(--soft); font-weight: 500; }
.danger[data-state="soon"] { --c: var(--warn); background: var(--warn-tint); border-bottom-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.danger[data-state="soon"] .danger-text { color: var(--warn); }
.danger[data-state="now"] { --c: #F2C27B; background: var(--ink); color: var(--card); border-color: var(--ink); }
.danger[data-state="now"] .faded { color: #C9D2CC; }
.danger[data-state="soon"] .danger-lines::after, .danger[data-state="now"] .danger-lines::after { animation: ping 1.6s var(--ease) infinite; }
.danger[data-state="now"] .danger-in:focus-visible { outline-color: #F2C27B; }   /* green would vanish on the dark strip */
.danger-in:hover .danger-text { text-decoration: underline; text-decoration-color: currentColor; }

/* ---------- page heading ---------- */
.head { padding: 28px 4px 4px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; }
.head h1 { font: 600 clamp(2rem, 8vw, 2.75rem)/1.1 var(--display); letter-spacing: -.02em; }
.meta { color: var(--soft); font-size: var(--s1); max-width: 72ch; }
@media (min-width: 900px) { .head { padding-top: 48px; padding-bottom: 8px; } }
.head .btn { align-self: center; }

/* ---------- cards: every top-level block of a page sits on one ---------- */
.page > section:not(.head):not(.first), .page > .block, .page > details.block, .cols > section,
.page > form.block, .page > .first {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-top: 16px; min-width: 0;
}
@media (min-width: 900px) {
  .page > section:not(.head):not(.first), .page > .block, .page > details.block, .cols > section, .page > .first { padding: 28px 32px; }
}
.page > .block + .block { margin-top: 16px; }
.page > section:empty { background: none; border: 0; box-shadow: none; padding: 0; }   /* e.g. Ask's answer area before the first question */
.page > p, .page > .note, .page > .jump { margin-left: 4px; margin-right: 4px; }
.page > p:not(.note) { margin-top: 16px; }

h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--ink); font: 600 1.25rem/1.25 var(--display); letter-spacing: -.005em; margin: 0 0 14px; }
h2 .stale, .stale { color: var(--warn); font: 600 var(--s1)/1.4 var(--body); }
h2.plain { font: 600 1.125rem/1.35 var(--display); color: var(--ink); margin: 20px 0 0; }
.lede { max-width: 60ch; margin-top: 10px; }
.lede.warn { color: var(--warn); font-weight: 600; }
.empty { color: var(--soft); padding: 14px 0 4px; }

/* notes / flash */
.note { margin: 16px 0 0; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); max-width: 72ch; }
.note.bad { border-left-color: var(--warn); background: var(--warn-tint); }
.page > .note { animation: slide-in .45s var(--ease) both; }

/* ---------- brief ---------- */
.state-lbl { font-size: var(--s1); color: var(--soft); margin-bottom: 8px; }
.verdict { font: 600 1.25rem/1.35 var(--display); margin: 0 0 12px; max-width: 48ch; }
.ket-big { margin: 6px 0 2px; color: var(--accent); }
.ket-big .type { font-size: clamp(2.25rem, 10vw, 3.25rem); }

/* the day as a line: now on the left, the end of tomorrow on the right, events as dots */
.fibre-line { position: relative; height: 36px; }
.fibre-line::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 4px; border-radius: 99px; background: var(--track); }
.fibre-now { position: absolute; left: 0; top: 8px; width: 4px; height: 20px; border-radius: 99px; background: var(--accent); }
.fibre-mid { position: absolute; top: 10px; height: 16px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--edge); }
.ph { position: absolute; top: 10px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); }
.ph.high { background: var(--ink); }
.ph.medium { box-shadow: inset 0 -6px 0 var(--ink); }
.ph.next.high { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 4px var(--warn-tint); }
.fibre-lab { position: relative; display: flex; justify-content: space-between; font-size: var(--s1); color: var(--soft); margin-top: 6px; }
.fibre-lab b { font-weight: 600; color: var(--accent); }
.fibre-midlab { position: absolute; transform: translateX(-50%); }
.fibre-next { margin-top: 10px; font-size: var(--s1); }
.fibre-next b { font-weight: 600; color: var(--warn); }
@media (max-width: 560px) { .fibre-midlab.near { display: none; } }

.cols { display: grid; gap: 0 16px; margin-top: 0; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.15fr 1fr; } .cols .news { grid-column: 1 / -1; } }
@media (min-width: 900px) { .menu-cols { grid-template-columns: 1fr 1fr; align-items: start; } }   /* /more: two columns of areas */
/* /more: the Find box (app.js shows it) */
.find { display: grid; gap: 6px; margin-top: 18px; max-width: 560px; }
.find label { font-size: 14px; font-weight: 600; }
.find-box { position: relative; }
.find-box .ic { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--soft); pointer-events: none; }
.find-box input { padding-left: 44px; }
.find p:empty { display: none; }
.find p { margin: 0; }

.read-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.read-top .lbl { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: var(--s1); color: var(--soft); }
.big { margin: 10px 0 2px; }
.big.old .type { color: var(--soft); }
.hero-old { margin: 0 0 6px; }
.axis { display: flex; justify-content: space-between; gap: 8px; font-size: var(--s1); color: var(--soft); margin-top: 8px; }
@media (max-width: 560px) { .axis .src { display: none; } }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.pair { display: grid; gap: 2px; align-content: start; background: var(--well); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.pair-sym .lbl { font-size: var(--s1); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.pair-p { font: 400 1.5rem/1.2 var(--display); letter-spacing: -.01em; }
.pair-c { font-size: var(--s1); font-weight: 600; }

.day { margin: 22px 0 4px; color: var(--ink); font: 600 var(--s1)/1.4 var(--body); text-transform: uppercase; letter-spacing: .05em; }
.day:first-of-type { margin-top: 0; }
.ev { display: grid; grid-template-columns: 48px 14px 1fr; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.ev-t { font-weight: 650; }
.ev-c { color: var(--soft); font-size: var(--s1); font-weight: 600; }
.ev-nums { grid-column: 3; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--s1); color: var(--soft); }
.ev-nums b { font-weight: 600; color: var(--ink); }
.ev-what { display: block; }
.ev.next { background: linear-gradient(90deg, var(--tint), transparent 70%); margin: 0 -10px; padding: 12px 10px; border-radius: 8px; border-top-color: transparent; }
.ev.next .ev-t { color: var(--accent); }
.ev.past { color: var(--soft); }
.px { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); vertical-align: -1px; }
.px.high { background: var(--ink); }
.px.medium { box-shadow: inset 0 -4px 0 var(--ink); }
.px.low { border-color: var(--edge); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: var(--s1); }

.news-items { display: grid; gap: 12px; }
@media (min-width: 900px) { .news-items { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.item { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 6px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.item:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: transparent; }
.item h3 { font: 600 1.0625rem/1.35 var(--display); margin-bottom: 6px; }
.item p { color: var(--soft); margin-bottom: 6px; max-width: 60ch; font-size: .9375rem; }
.item a { font-size: var(--s1); font-weight: 600; display: inline-block; padding: 10px 0; }
.more-news { margin-top: 28px; }
#claude-week { margin-top: 20px; }
#claude-week form { margin-top: 12px; }

.sine { overflow: hidden; height: 24px; margin: 32px 4px 0; opacity: .9; }
.sine svg { display: block; width: 200%; height: 24px; }
.sine path { fill: none; stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin: 16px 4px 0; font-size: var(--s1); }

/* ---------- controls ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  font: 600 15px/1.2 var(--body); color: #fff; background: var(--accent);
  border: 1px solid var(--accent); border-radius: var(--radius); cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 2px rgba(27, 36, 32, .12);
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(29, 77, 63, .6); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: 0 1px 2px rgba(27, 36, 32, .12); transition-duration: .06s; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--edge); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 6px 16px -10px rgba(27, 36, 32, .35); }
.btn[aria-busy="true"] { cursor: progress; opacity: .85; padding-left: 44px; }
.btn[aria-busy="true"]::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.small { padding: 8px 14px; min-height: 40px; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 10px 0; min-height: 44px; min-width: 44px; font: 600 var(--s1)/1.3 var(--body); color: var(--accent); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.linkbtn:hover { text-decoration-color: var(--accent); }
.linkbtn.danger-link { color: var(--down); }
a.linkbtn { display: inline-flex; align-items: center; }
form.inline { display: inline; }

/* forms */
.form { display: grid; gap: 16px 20px; grid-template-columns: 1fr 1fr; max-width: 720px; }
.form .wide { grid-column: 1 / -1; }
.form .wide > .btn { justify-self: start; width: max-content; }
.field, .form > div { display: grid; gap: 6px; align-content: start; }
.field label, .field .lab, .form > div > label:not(.check) { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--s1); color: var(--soft); }
input, select, textarea {
  font: 400 var(--s2)/1.4 var(--body); color: var(--ink); background: var(--card);
  border: 1px solid var(--edge); border-radius: var(--radius); padding: 11px 14px; min-height: 48px; width: 100%;
  transition: border-color .15s, box-shadow .2s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--soft); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input[aria-invalid="true"] { border-color: var(--down); box-shadow: 0 0 0 4px color-mix(in srgb, var(--down) 12%, transparent); }
.err { color: var(--down); font-size: var(--s1); font-weight: 600; }
.err[role="alert"] { animation: shake .35s var(--ease); }
textarea { min-height: 96px; resize: vertical; }
textarea.tall { min-height: 120px; }
select {
  appearance: none; padding-right: 40px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2355615B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
input[type="checkbox"], input[type="radio"] {
  appearance: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none;
  border: 1.5px solid var(--edge); border-radius: 6px; background: var(--card) center / 12px no-repeat; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .2s var(--spring);
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked { background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); animation: tick .3s var(--spring); }
input[type="radio"]:checked { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--card); background-color: var(--accent); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type="checkbox"]:active, input[type="radio"]:active { transform: scale(.88); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
/* segmented control: the chosen side sits on a raised white chip */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--track); border-radius: calc(var(--radius) + 2px); width: max-content; }
.seg label { display: flex; align-items: center; gap: 8px; padding: 0 20px; min-height: 40px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--soft); text-transform: capitalize; transition: background-color .2s, color .2s, box-shadow .2s var(--ease); }
.seg label:hover { color: var(--ink); }
.seg label:has(input:checked) { background: var(--card); color: var(--accent); box-shadow: 0 1px 3px rgba(27, 36, 32, .16); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 4px; }

/* tables: scroll inside their own region, never the page */
.tablewrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
@media (min-width: 900px) { .tablewrap { margin: 0 -32px; padding: 0 32px; } }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); padding: 8px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: var(--well); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
tfoot td { color: var(--soft); border-bottom: 0; }

/* ---------- journal ---------- */
.edge .big { margin: 6px 0 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0 0; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(7, 1fr); } }
/* home: "your portfolio" (money in three tiles, then what needs a look) */
.stats.pf-money { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.stats.pf-money dd { font-size: clamp(1rem, 4.4vw, 1.375rem); white-space: nowrap; }
.pf-money dd small { font: 500 12px/1 var(--body); color: inherit; }
.needs { list-style: none; margin: 6px 0 0; padding: 0; }
.needs li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.needs li:first-child { border-top: 0; }
.needs b { flex: none; min-width: 4.2em; font-weight: 650; }
.needs li.hit, .needs li.hit b { color: var(--warn); }
.pf-go { margin-top: 16px; }
.pf-money + p { margin-top: 8px; }
.pf .day { margin-top: 20px; }
.stats div { display: grid; gap: 2px; background: var(--well); border-radius: 8px; padding: 10px 12px; align-content: start; min-width: 0; }
.stats dt { font-size: 12px; color: var(--soft); }
.stats dd { margin: 0; font: 400 1.375rem/1.25 var(--display); }
.stats dd .faded { font: var(--s1) var(--body); }
.curve { margin: 28px 0 0; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-col { display: grid; gap: 4px; align-content: start; background: var(--well); border-radius: 8px; padding: 14px 16px; }
.cmp-t { font-size: var(--s1); color: var(--soft); }
.cmp-e { font: 400 1.75rem/1.2 var(--display); }
.cmp-e .faded { font: var(--s1) var(--body); }
.compare .lede { margin-top: 18px; }
.first { margin-top: 24px; }
.first .lede { margin-bottom: 20px; }
.formbox { margin-top: 8px; }
.formbox > summary { list-style: none; width: max-content; }
.formbox > summary::-webkit-details-marker { display: none; }
.formbox[open] > summary { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tradeform { margin-top: 8px; }
.preview { font-size: var(--s1); color: var(--soft); min-height: 1.6em; }
.preview b { color: var(--ink); font-weight: 650; }
.checklist { display: grid; }
.checklist .check { border-bottom: 1px solid var(--line); flex-wrap: wrap; row-gap: 0; }
.hintr { font-size: var(--s1); margin-left: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; font-size: 14px; }
.filters a { color: var(--soft); text-decoration: none; padding: 8px 14px; border-radius: 99px; font-weight: 600; transition: background-color .15s, color .15s; }
.filters a:hover { background: var(--well); color: var(--ink); }
.filters a[aria-current] { color: var(--accent); background: var(--tint); }
.filters .csv { margin-left: auto; text-decoration: underline; text-decoration-color: var(--line); }
.ttable .rr { font-weight: 650; }
.ttable .acts { white-space: nowrap; text-align: right; vertical-align: middle; padding-top: 0; padding-bottom: 0; }
.ttable th.num + th:not(.num), .ttable td.num + td:not(.num) { padding-left: 16px; }
.ttable .acts a { font-size: var(--s1); font-weight: 600; margin-right: 12px; }
.ttable .noterow td { color: var(--soft); padding-top: 0; border-top: 0; }
.ttable tr:has(+ .noterow) td { border-bottom: 0; }
@media (max-width: 760px) {
  .ttable, .ttable tbody { display: block; width: 100%; }
  .ttable thead { display: none; }
  .ttable tr { display: grid; grid-template-columns: 84px auto 1fr auto; align-items: center; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ttable td { border: 0; padding: 0; text-align: left !important; }
  .ttable td[data-l="entry"], .ttable td[data-l="stop"], .ttable td[data-l="target"], .ttable td[data-l="exit"] { display: none; }
  .ttable td[data-l="date"] { grid-area: 1 / 1; color: var(--soft); font-size: var(--s1); }
  .ttable td[data-l="trade"] { grid-area: 1 / 2 / auto / span 2; }
  .ttable td[data-l="R"] { grid-area: 1 / 4; text-align: right !important; font-size: var(--s2); }
  .ttable td[data-l="result"] { grid-area: 2 / 1; font-size: var(--s1); white-space: nowrap; }
  .ttable td[data-l="rules"] { grid-area: 2 / 2; font-size: var(--s1); }
  .ttable .acts { grid-area: 3 / 1 / auto / -1; text-align: left !important; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
  .ttable .acts a, .ttable .acts .linkbtn { min-height: 44px; margin-right: 0; display: inline-flex; align-items: center; font-size: var(--s1); }
  .ttable tr:has(+ .noterow) { border-bottom: 0; padding-bottom: 0; }
  .ttable .noterow { display: block; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
  .ttable .noterow td { display: block; font-size: var(--s1); white-space: normal; overflow: visible; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
  .stats dd { font-size: 1.125rem; }
  .cmp-e { font-size: 1.375rem; }
  th { letter-spacing: .02em; padding-right: 10px; }
  td { padding-right: 10px; }
  svg.equity { height: 96px; }
  .curve { margin-top: 20px; }
}
.showall { margin-top: 16px; }

/* ---------- open trades ---------- */
.open-list { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .open-list { grid-template-columns: 1fr 1fr; } }
.open { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.open:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.open-top h2 { margin: 0; }
.open-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rail { position: relative; height: 24px; margin: 20px 0 8px; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 99px; background: var(--track); }
.rail i { position: absolute; top: 4px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.rail .rail-stop { background: var(--down); }
.rail .rail-target { background: var(--up); }
.rail .rail-entry { background: var(--edge); }
.rail .rail-now { width: 14px; height: 14px; top: 5px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.open-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.open-nums dt { font-size: var(--s1); color: var(--soft); }
.open-nums dd { margin: 0; font-weight: 600; }
.closeform { display: flex; gap: 12px; align-items: end; }
.closeform .field { flex: 1; }

/* ---------- alerts ---------- */
.push-state { margin-bottom: 4px; }
.push-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.prefs { display: grid; gap: 0; margin-top: 16px; max-width: 640px; }
.prefs .btn { width: max-content; margin-top: 12px; }
.devices { margin-top: 16px; font-size: var(--s1); }
.devices summary { cursor: pointer; color: var(--soft); min-height: 44px; display: flex; align-items: center; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sent .row { justify-content: flex-start; }
.sent .row .num { flex: 0 0 88px; font-size: var(--s1); }
.alert-cols { display: grid; gap: 0 16px; }
@media (min-width: 900px) { .alert-cols { grid-template-columns: 1fr 1fr; } }
.arow { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.arow.paused .arow-main, .arow.paused .z-kind { color: var(--soft); border-color: var(--edge); box-shadow: none; }
.arow-main p.small { font-size: var(--s1); }
.arow-acts { display: flex; gap: 14px; }
/* zone type: supply = filled from the top (price is pushed down), demand = from the bottom */
.z-kind { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; }
.z-kind.supply { box-shadow: inset 0 5px 0 var(--ink); }
.z-kind.demand { box-shadow: inset 0 -5px 0 var(--ink); }
.addbox { margin-top: 16px; }
.addbox > summary { list-style: none; width: max-content; }
.addbox > summary::-webkit-details-marker { display: none; }
.addbox[open] > summary { margin-bottom: 16px; }

/* ---------- older pages (signals, plan, DCA board, ask) ---------- */
details.block > summary, .explain > summary { cursor: pointer; color: var(--ink); font-weight: 600; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
details.block > summary::-webkit-details-marker { display: none; }
/* a chevron that turns when the box opens (the glossary boxes have their own + sign) */
details.block:not(.glossary) > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border: solid var(--soft); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s var(--spring); }
details.block[open]:not(.glossary) > summary::after { transform: rotate(-135deg); }
.explain p { margin-top: 10px; max-width: 72ch; }
.regime { white-space: nowrap; }
.sig-group { margin-top: 16px; }
@media (max-width: 760px) { .opt { display: none; } }

/* weekly rule strip and the Futures rules: small tiles */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
@media (min-width: 900px) { .rules { grid-template-columns: repeat(4, 1fr); } .rules.six { grid-template-columns: repeat(3, 1fr); } }
.rule { background: var(--well); border-radius: 8px; padding: 12px 14px; display: grid; gap: 2px; align-content: start; font-size: var(--s1); min-width: 0; }
.rule b { font: 400 1.375rem/1.3 var(--display); }
.rule.breach { background: var(--warn-tint); }
.rule.breach b, .rule .flag { color: var(--warn); }

/* daily board */
.weeknav { margin-top: 20px; }
.week { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
@media (min-width: 900px) { .week { grid-template-columns: repeat(7, 1fr); } }
.week .day { padding: 12px; margin: 0; color: var(--ink); background: var(--well); border-radius: 8px; border-top: 3px solid transparent; text-transform: none; letter-spacing: 0; font: inherit; }
.week .day.today { border-top-color: var(--accent); background: var(--tint); }
.week .day h3 { font: 600 var(--s1)/1.4 var(--body); color: var(--soft); display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; white-space: nowrap; }
.week .day.today h3 span:first-child { color: var(--accent); }
.week .tag { color: var(--ink); }
.entry { padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--s1); display: grid; gap: 2px; }
.entry .meta { color: var(--soft); }
.unplanned { color: var(--warn); }

/* ask gecko */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font: 500 14px/1.3 var(--body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 10px 16px; min-height: 44px; cursor: pointer; text-align: left; transition: border-color .15s, color .15s, transform .2s var(--ease); }
.chip:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.chip:active { transform: scale(.97); }
.log { margin-top: 24px; display: grid; gap: 14px; }
.log .q { justify-self: end; max-width: 80%; background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; animation: rise .35s var(--ease) both; }
.log .answer { white-space: pre-wrap; max-width: 72ch; background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 16px; animation: rise .45s var(--ease) both; }
.log .answer::before { content: "Gecko · "; color: var(--accent); font-weight: 600; }
.log .errors { color: var(--down); }
.sources { display: grid; gap: 8px; }
.src { border-left: 3px solid var(--line); padding: 6px 0 6px 12px; font-size: var(--s1); }
.src b { font-weight: 600; color: var(--soft); display: block; }
body:has(.askform) .page { padding-bottom: calc(var(--tabbar) + 160px); }
.askform { display: flex; gap: 12px; align-items: stretch; margin-top: 24px; position: sticky; bottom: calc(var(--tabbar) + 8px); background: var(--ground); padding: 8px 0; }
@media (min-width: 900px) { .askform { bottom: 8px; } }
.askform textarea { min-height: 52px; }

/* ---------- login ---------- */
body.login { position: relative; overflow-x: hidden; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; place-items: center; }
body.login::before {           /* soft drifting light behind the card, as on the dara-invest login */
  content: ""; position: fixed; inset: -20%; z-index: -1;
  background: radial-gradient(40% 30% at 30% 25%, var(--card), transparent 70%), radial-gradient(45% 35% at 75% 80%, var(--track), transparent 70%);
  animation: drift 28s ease-in-out infinite alternate;
}
.login-wrap { width: 100%; max-width: 420px; padding: 48px var(--gutter); }
.login-mark .gecko { width: 64px; height: auto; }
.login-wrap h1 { margin: 18px 0 6px; }
.login-wrap h1 .type { font-size: 2.5rem; font-weight: 600; }
.alice { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; color: var(--soft); margin: 24px 0 20px; }
.alice .type { font-size: 1.25rem; }
.alice > i { flex: 1; height: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.alice > i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 2px; background: var(--accent); animation: entangle 3.2s var(--ease) infinite; }
.login-form { grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); padding: 24px 20px; }
.login-form .wide > .btn { width: 100%; }
.login .sine { margin-top: 36px; }

/* ---------- navigation helpers ---------- */
html { scroll-behavior: auto; }
[id] { scroll-margin-top: 80px; }
@media (max-width: 899px) {
  .top .more { display: none; }
  html { scroll-padding-top: 80px; scroll-padding-bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); }
}
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jump a { font-size: 14px; font-weight: 600; text-transform: capitalize; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center; transition: border-color .15s, color .15s, transform .2s var(--ease); }
.jump a:hover, .jump a:focus-visible { color: var(--accent); border-color: var(--accent); }
.jump a:active { transform: scale(.96); }
@media (min-width: 900px) { .jump { display: none; } }
.menu-list { display: grid; }
.menu-list a { position: relative; display: grid; gap: 2px; padding: 14px 40px 14px 12px; margin: 0 -12px; min-height: 56px; border-top: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); transition: background-color .15s; }
.menu-list a { border-top-color: transparent; }
.menu-list a:not([hidden]) ~ a { border-top-color: var(--line); }   /* a line between links, none above the first one shown */
.menu-list a:hover { background: var(--well); }
.menu-list a::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid var(--soft); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .25s var(--ease), border-color .15s; }
.menu-list a:hover::after { transform: translateX(4px) rotate(45deg); border-color: var(--accent); }
.menu-list a b { font-weight: 650; }
.menu-list a span { font-size: var(--s1); color: var(--soft); }
.menu-list a:hover b { color: var(--accent); }

/* ---------- futures card (/futures) and settings ---------- */
.fx-form { grid-template-columns: 1fr 1fr; max-width: 560px; margin-top: 12px; }
@media (max-width: 560px) { .fx-form { grid-template-columns: 1fr 1fr; } }
.fx-go { align-content: end; }
.fx-go .btn { width: 100%; }
.fx-form .linkbtn { justify-self: start; text-align: left; }
.fx-card { margin-top: 16px; }
.fx:focus { outline: none; }
.fx { scroll-margin-top: 80px; margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--well); max-width: 640px; border-left: 4px solid var(--line); }
.fx[data-verdict="yes"] { border-left-color: var(--accent); background: var(--tint); }
.fx[data-verdict="no"] { border-left-color: var(--warn); background: var(--warn-tint); }
.fx-word { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-weight: 600; }
.fx-word .type { text-transform: capitalize; color: var(--accent); }
.fx[data-verdict="no"] .fx-word, .fx[data-verdict="no"] .fx-word .type { color: var(--warn); }
.fx-why { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fx-why li { padding-left: 14px; border-left: 3px solid var(--warn); }
.fx-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 22px 0 0; }
.fx-nums dt { font-size: var(--s1); color: var(--soft); }
.fx-nums dd { margin: 0; font-weight: 500; }
.fx-main dd b { font: 400 1.75rem/1.2 var(--display); }
.fx-act { display: grid; gap: 10px; margin-top: 22px; justify-items: start; }
.fx-how { margin: 20px 0 0; padding-left: 1.4em; display: grid; gap: 6px; max-width: 64ch; }
.fx-review { max-width: 56ch; padding-left: 22px; display: grid; gap: 6px; }
.set-group { border: 0; border-top: 1px solid var(--line); margin: 32px 0 0; padding: 16px 0 0; min-width: 0; }
.set-group:first-of-type { border-top: 0; margin-top: 8px; padding-top: 0; }
.set-group legend { padding: 0 12px 0 0; font: 600 1.125rem/1.3 var(--display); }
.set-group .form { margin-top: 12px; }
.hint.gold { color: var(--warn); }
.settings > p { margin-top: 24px; }

/* ---- Claude's reading notes ---- */
.claude-note p, td.claude-note { white-space: pre-line; }
.by-claude { display: block; color: var(--soft); font-size: var(--s1); margin-top: 6px; font-style: italic; }
.ttable .noterow td.claude-note { white-space: pre-line; overflow: visible; }

/* ---------- today strip (top of the brief) and number tiles ---------- */
.today { border-left: 4px solid var(--line); }
.today[data-ok="yes"] { border-left-color: var(--accent); }
.today[data-ok="no"] { border-left-color: var(--warn); }
.today[data-ok="no"] .fx-word, .today[data-ok="no"] .fx-word .type { color: var(--warn); }
.today h2 { margin-bottom: 12px; font: 600 var(--s1)/1.4 var(--body); color: var(--soft); text-transform: none; }
.today h2 .lbl::first-letter { text-transform: uppercase; }
h2 .checked { color: var(--soft); font: 400 var(--s1)/1.4 var(--body); white-space: nowrap; }
.today .lede { margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px 0 0; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--well); border-radius: 8px; padding: 12px 14px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.tile dt { font-size: var(--s1); color: var(--soft); }
.tile dd { margin: 0; font: 400 1.5rem/1.25 var(--display); }
.tile dd .of { font: var(--s1) var(--body); color: var(--soft); white-space: nowrap; }
.tile dd.sub { font: var(--s1)/1.4 var(--body); color: var(--soft); }
.tile.breach { background: var(--warn-tint); }
.tile.breach dd:not(.sub), .tile.breach dd.sub { color: var(--warn); }
/* a thin bar under a tile: how much of the limit is used */
.meter, .tile .meter { display: block; height: 6px; margin: 8px 0 2px; border-radius: 99px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; max-width: 100%; border-radius: 99px; background: var(--accent); transform-origin: left; }
.tile.breach .meter i { background: var(--warn); }
.today-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 20px; }
.today + .jump { margin-top: 16px; }

/* open futures trades */
.olist { list-style: none; margin: 0; padding: 0; }
.orow { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.orow-risk { text-align: right; white-space: nowrap; }
.orow-sub { grid-column: 1 / -1; }

/* status page */
.word-ok { color: var(--accent); font-weight: 600; }
.word-late, .word-never, .word-off { color: var(--warn); font-weight: 600; }
.kvlist { margin: 0; }
.kvlist .row dt { color: var(--ink); }
.kvlist .row dd { margin: 0; color: var(--soft); text-align: right; }

/* expanders ("How each number is made", "Show these days as a list") */
.glossary { margin-top: 16px; font-size: var(--s1); color: var(--soft); }
.page > .glossary { font-size: var(--s2); }
.glossary summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.glossary summary::-webkit-details-marker { display: none; }
.glossary summary::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 2v6M2 5h6' stroke='%231D4D3F' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat; transition: transform .3s var(--spring); }
.glossary[open] summary::before { transform: rotate(45deg); }
.glossary dl { display: grid; gap: 8px; margin: 4px 0 0; max-width: 72ch; }
.glossary dt { color: var(--ink); font-weight: 600; }
.glossary dd { margin: 0 0 6px; }
.closedbox { grid-column: 1 / -1; }
.closedbox > summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 44px; display: flex; align-items: center; font-size: var(--s1); }
.closedbox[open] > .form-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 560px) { .closedbox[open] > .form-sub { grid-template-columns: 1fr; } }
.cancel { margin-top: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- journal insights: four small charts ----------
   Every chart is rows of text plus one mark, placed by inline left / width / height in % (charts.py).
   Gain and loss are told apart by side and sign first, colour second. */
.chart { margin-top: 32px; min-width: 0; }
.chart-t { font: 600 1.125rem/1.35 var(--display); }
.chart-t::first-letter { text-transform: uppercase; }
.chart-d { font-size: var(--s1); color: var(--soft); max-width: 64ch; margin-top: 4px; }
.chart .legend { color: var(--soft); margin-top: 12px; }
.chart .legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart .zero { position: absolute; top: 0; bottom: 0; width: 0; margin-left: -1px; border-left: 2px dotted var(--edge); }
@media (min-width: 900px) { .chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; } }

/* 1. rule chart: a filled dot (kept) and a hollow amber dot (broke) on one shared line */
.mk { display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 50%; }
.mk.kept { background: var(--accent); }
.mk.broke { background: var(--card); border: 3px solid var(--warn); }
.dumb, .div, .hist, .daylist { list-style: none; margin: 0; padding: 0; }
.dumb { margin-top: 12px; }
.dumb li { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.dumb-line { position: relative; height: 20px; margin: 0 6px; }
.dumb-line .link { position: absolute; top: 8px; height: 4px; border-radius: 99px; background: var(--track); }
.dumb-line .mk { position: absolute; top: 4px; margin-left: -6px; box-shadow: 0 0 0 2px var(--card); }
.dumb-v { font-size: var(--s1); }
.dumb li.dumb-axis { padding: 6px 0 0; }
.dumb-scale { position: relative; display: flex; justify-content: space-between; margin: 0 6px; font-size: var(--s1); color: var(--soft); }
.dumb-scale .at { position: absolute; transform: translateX(-50%); }
@media (min-width: 900px) { .dumb li { grid-template-columns: 26ch minmax(200px, 1fr) 50ch; gap: 24px; align-items: center; } }

/* 2. histogram: six columns, the count sits on top of each one */
.hist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 16px; }
.hist li { display: grid; gap: 8px; min-width: 0; }
.hist-col { position: relative; height: 140px; border-bottom: 2px solid var(--line); }
.hist-bar { position: absolute; left: 4px; right: 4px; bottom: 0; height: calc(var(--h) * .8); min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--edge); transform-origin: bottom; }
.hist-bar.up { background: var(--up-fill); }
.hist-bar.down { background: var(--down-fill); }
.hist-n { position: absolute; left: 0; right: 0; bottom: calc(var(--h) * .8 + 4px); text-align: center; font-weight: 650; }
.hist-n.faded { font-weight: 400; }
.hist-l { font-size: var(--s1); color: var(--soft); text-align: center; line-height: 1.3; }

/* 3. calendar: 12 columns of 7 squares. Solid = 1R or more, striped = smaller, ring = loss, outline = no trade */
.cal { display: flex; gap: 4px; margin-top: 16px; }
.cal-days, .cal-col { display: grid; grid-template-rows: 16px repeat(7, 16px); gap: 4px; }
.cal-days { font-size: var(--s1); line-height: 16px; color: var(--soft); padding-right: 6px; grid-template-rows: repeat(7, 16px); margin-top: 20px; }
.cal-m { font-size: var(--s1); line-height: 16px; color: var(--soft); white-space: nowrap; width: 16px; overflow: visible; }
.cal-d { display: inline-block; width: 16px; height: 16px; flex: none; border-radius: 4px; }
.cal-d.none { box-shadow: inset 0 0 0 1px var(--line); }
.cal-d.off { visibility: hidden; }
.cal-d.up { background-color: var(--up-fill); }
.cal-d.up:not(.strong) { background: repeating-linear-gradient(135deg, var(--up-fill) 0 2px, transparent 2px 4px); }
.cal-d.down { box-shadow: inset 0 0 0 2px var(--down-fill); }
.cal-d.down.strong { box-shadow: inset 0 0 0 5px var(--down-fill); }
.cal-d.flat { box-shadow: inset 0 0 0 5px var(--card); background: var(--edge); }
.daylist { max-width: 28ch; }
.daylist li { display: flex; justify-content: space-between; gap: 16px; color: var(--ink); padding: 4px 0; }

/* 4. bars from a middle line: right of it gains, left of it loses */
.grps { display: grid; gap: 28px; margin-top: 16px; }
@media (min-width: 900px) { .grps { grid-template-columns: repeat(3, 1fr); gap: 0 48px; } }
.grp-t { font: 600 var(--s1)/1.4 var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--soft); margin: 0 0 4px; }
.div li { display: grid; grid-template-columns: 9ch 1fr; gap: 2px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.div-l { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.div-line { position: relative; height: 12px; }
.div-line .zero { left: 50%; top: -4px; bottom: -4px; }
.div-line .bar { position: absolute; top: 0; bottom: 0; min-width: 2px; border-radius: 4px; background: var(--edge); }
.div-line .bar.up { background: var(--up-fill); transform-origin: left; }
.div-line .bar.down { background: var(--down-fill); transform-origin: right; }
.div-line .bar.few { background: none; box-shadow: inset 0 0 0 2px var(--edge); }      /* hollow: under 5 trades */
.div-line .bar.few.up { box-shadow: inset 0 0 0 2px var(--up-fill); }
.div-line .bar.few.down { box-shadow: inset 0 0 0 2px var(--down-fill); }
.div-v { grid-column: 1 / -1; font-size: var(--s1); }

/* ---------- /watch: watchlists ---------- */
.w-note { display: block; margin-top: 2px; font-size: var(--s1); color: var(--soft); }
table.watch td { white-space: nowrap; vertical-align: middle; }
table.watch td:first-child { white-space: normal; min-width: 9em; }
table.watch tr.near td:first-child { box-shadow: inset 3px 0 0 var(--warn); padding-left: 10px; }
.w-spark svg.mini { width: 120px; height: 28px; margin-top: 0; }
/* 52-week range: a track from the low to the high, the dot is today's price */
.w-range { position: relative; display: block; width: 120px; height: 12px; margin-top: 4px; }
.w-range::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 4px; border-radius: 99px; background: var(--track); }
.w-range i { position: absolute; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); }
.w-edit summary { cursor: pointer; min-height: 44px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.w-edit-row { border-top: 1px solid var(--line); padding: 16px 0; }
/* the "earnings coming up" card: one report per line, the timing and estimate under it */
ul.earn { list-style: none; margin: 0 0 8px; padding: 0; }
ul.earn li { border-top: 1px solid var(--line); padding: 10px 0; }
ul.earn li:first-child { border-top: 0; }
@media (max-width: 760px) { table.watch td:first-child .w-note { max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* ---------- /capitol: Trump's posts ---------- */
.post { border-top: 1px solid var(--line); padding: 16px 0; max-width: 70ch; }
.post:first-of-type { border-top: 0; }
.post p { margin: 0 0 8px; overflow-wrap: anywhere; }
.w-note.up { color: var(--up); } .w-note.down { color: var(--down); }

/* ======================================================================================================
   Motion. Everything below moves only transform, opacity and clip-path (cheap on a phone), lasts under a
   second, and is switched off by prefers-reduced-motion at the very end.
   ====================================================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes title-up { from { transform: translateY(105%); } }
@keyframes wipe { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -2% -20% 0); } }
@keyframes dot-in { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.5); } }
@keyframes word-in { from { opacity: 0; transform: translateY(.35em) scale(.9); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes ping { 0% { opacity: .6; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick { from { transform: scale(.6); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes drift { to { transform: translate3d(4%, -3%, 0) scale(1.08); } }
@keyframes wave { to { transform: translateX(-50%); } }
@keyframes entangle { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* 1. the page arrives: blocks rise one after another */
.head, .page > :where(:not(.head):not(.cols)), .cols > * { animation: rise .55s var(--ease) both; }
.page > :nth-child(2), .cols > :nth-child(1) { animation-delay: 60ms; }
.page > :nth-child(3), .cols > :nth-child(2) { animation-delay: 120ms; }
.page > :nth-child(4), .cols > :nth-child(3) { animation-delay: 180ms; }
.page > :nth-child(5) { animation-delay: 240ms; }
.page > :nth-child(n+6) { animation-delay: 300ms; }
.cols { animation: none; }
.title > span { animation: title-up .7s var(--ease) both; }
.login-wrap > * { animation: rise .6s var(--ease) both; }
.login-wrap > :nth-child(2) { animation-delay: 80ms; }
.login-wrap > :nth-child(3) { animation-delay: 140ms; }
.login-wrap > :nth-child(n+4) { animation-delay: 200ms; }
/* blocks further down stay hidden until they scroll into view; app.js adds .reveal, then .in, and replays the
   block's animations at that moment, so its charts draw while you watch */
.reveal:not(.in) { opacity: 0; }

/* 2. charts draw themselves: the line wipes in left to right, then the end dot lands */
svg.spark, svg.mini, svg.equity { animation: wipe 1.1s var(--ease) .25s both; }
svg.mini { animation-duration: .8s; animation-delay: .4s; }
svg .tip { transform-box: fill-box; transform-origin: center; animation: dot-in .45s var(--spring) 1.2s both; }
svg.mini .tip { animation-delay: 1.1s; }
svg.spark .tip { animation: dot-in .45s var(--spring) 1.2s both, breathe 2.4s ease-in-out 1.8s infinite; }
@keyframes breathe { 50% { opacity: .55; } }

/* 3. bars fill: histogram columns grow up, middle-line bars grow out from the middle, meters grow right */
.hist-bar { animation: grow-y .8s var(--ease) both; }
.hist li:nth-child(2) .hist-bar { animation-delay: 60ms; } .hist li:nth-child(3) .hist-bar { animation-delay: 120ms; }
.hist li:nth-child(4) .hist-bar { animation-delay: 180ms; } .hist li:nth-child(5) .hist-bar { animation-delay: 240ms; }
.hist li:nth-child(6) .hist-bar { animation-delay: 300ms; }
.hist-n { animation: fade .4s ease .6s both; }
.div-line .bar, .meter i, .dumb-line .link { animation: grow-x .9s var(--ease) .3s both; }
.dumb-line .link { transform-origin: left; }
.dumb-line .mk, .cal { animation: fade .5s ease .6s both; }
.w-range i, .rail .rail-now { animation: dot-in .5s var(--spring) .5s both; }
.fibre-line .ph { animation: dot-in .45s var(--spring) .5s both; }
.fibre-line .ph:nth-child(4) { animation-delay: .6s; } .fibre-line .ph:nth-child(5) { animation-delay: .7s; }
.fibre-line .ph:nth-child(n+6) { animation-delay: .8s; }
.fibre-now { animation: grow-y .5s var(--spring) .3s both; }

/* 4. the answer word (yes / no) arrives with a small bounce; a swapped Futures card slides in */
.fx-word .type { display: inline-block; animation: word-in .6s var(--spring) .15s both; }
.fx.flip { animation: rise .45s var(--ease) both; }
details[open] > :not(summary) { animation: rise .35s var(--ease) both; }

/* 5. small life: the gecko blinks, the wave drifts, the light behind the login moves */
.gecko .eye { animation: blink 6s ease-in-out 2s infinite; }
.sine svg { animation: wave 40s linear infinite; }

/* 6. moving between pages: a quick cross-fade with a small rise; header and tab bar stay put
   (browsers without View Transitions simply load the next page) */
@view-transition { navigation: auto; }
.top { view-transition-name: top; }
.tabs { view-transition-name: tabs; }
::view-transition-old(root) { animation: .14s ease-in both fade-out; }
::view-transition-new(root) { animation: .32s var(--ease) both rise-soft; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(8px); } }

/* 7. opening the app: the gecko and the name, then the page rises in behind them as they lift away.
   static/opening.js adds .launch and .opening to <html> on the first page of a visit (a new tab or the installed app
   being started), never with reduced motion, and takes .opening away after 0.8 s. While .opening is on, the page's
   own rise waits (paused), so the home cards rise as the splash leaves. Without JavaScript nothing here happens. */
.splash { display: none; }
.launch .splash {
  display: grid; place-content: center; justify-items: center; gap: 14px; position: fixed; inset: 0; z-index: 100;
  background: var(--ground); pointer-events: none; animation: splash-out .45s var(--ease) .7s both;
}
.splash .gecko { width: 96px; height: auto; color: var(--accent); animation: splash-pop .6s var(--spring) both; }
.splash b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; animation: rise .5s var(--ease) .15s both; }
.splash i { display: block; width: 72px; height: 3px; border-radius: 2px; background: var(--accent); transform-origin: left; animation: grow-x .5s var(--ease) .25s both; }
@keyframes splash-pop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
@keyframes splash-out { to { opacity: 0; transform: translateY(-24px); visibility: hidden; } }
.launch .tabs { animation: tabs-up .5s var(--ease) .75s both; }
.launch .top { animation: fade .4s ease .7s both; }
@keyframes tabs-up { from { transform: translateY(100%); } }
.opening main, .opening main * { animation-play-state: paused !important; }
/* the home's job cards rise one by one (on every visit, the opening just makes it wait for the splash) */
.jobs { animation: none !important; }
.jobs a { animation: rise .5s var(--ease) both; }
.jobs a:nth-child(2) { animation-delay: 70ms; } .jobs a:nth-child(3) { animation-delay: 140ms; } .jobs a:nth-child(4) { animation-delay: 210ms; }

@media print { .splash { display: none !important; } }
@media print { .reveal { opacity: 1 !important; } *, *::before, *::after { animation: none !important; } .back { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important; transition: none !important;
  }
  .btn:hover, .item:hover, .open:hover { transform: none; }
}
/* wallets: addresses are read character by character, so they wrap anywhere and changed characters stand out */
.addr { font-family: var(--mono); word-break: break-all; letter-spacing: .04em; }
.addr mark { background: var(--warn); color: var(--card); border-radius: 2px; }
.note.good-note { border-left-color: var(--up); }

/* ------------------------------------------------------------------ market-open study (study.py, 13 Nov 2026)
   The word on the left is the rule keeper's call; green for a buy line reached, umber for an exit, quiet otherwise. */
.calls { list-style: none; margin: 8px 0 12px; padding: 0; }
.call { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.call:first-child { border-top: 0; }
.call-w { font: 650 12px/1.2 var(--body); letter-spacing: .04em; text-align: center; padding: 7px 6px; border-radius: 6px;
          border: 1px solid var(--line); background: var(--well); color: var(--soft); }
.call.go .call-w { background: var(--accent); border-color: var(--accent); color: #fff; }
.call.go.soft .call-w { background: var(--tint); color: var(--accent); border-color: var(--accent); }
.call.out .call-w { background: var(--warn); border-color: var(--warn); color: #fff; }
.call.out.soft .call-w { background: var(--warn-tint); color: var(--warn); border-color: var(--warn); }
.call-b p { margin: 0; }
.call-s { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.call-s b { font-weight: 650; font-size: 1.05rem; }
.call-f { color: var(--soft); font-size: var(--s1); margin-top: 2px !important; }
.call-y { margin-top: 6px !important; max-width: 62ch; }
.st-read .verdict { max-width: 40ch; }
.st-heads { list-style: none; margin: 4px 0 0; padding: 0; }
.st-heads li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.st-heads li:first-child { border-top: 0; }
.st-again { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.st-past { list-style: none; margin: 4px 0 0; padding: 0; }
.st-past li { border-top: 1px solid var(--line); }
.st-past li:first-child { border-top: 0; }
.st-past a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
.st-past a[aria-current] { color: var(--accent); }
.st-past b { display: inline-block; min-width: 7em; font-weight: 650; }
.st-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.st-chips li { font-size: var(--s1); padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--well); color: var(--soft); }
.st-chips li b { color: var(--ink); font-weight: 650; margin-right: 2px; }
.st-chips li.go { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.st-chips li.out { background: var(--warn-tint); border-color: var(--warn); color: var(--warn); }
.st-line { margin: 12px 0 0; max-width: 62ch; }
@media (max-width: 420px) { .call { grid-template-columns: 6.2em minmax(0, 1fr); gap: 10px; } }
