* { margin:0; padding:0; box-sizing:border-box; }
html { font-size:14px; }
/* Body matches the grid-container off-white so wide screens don't show black margins. */
/* Top-stack: all top bars stick together at the top of the viewport when scrolling */
.top-stack {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0b1018;  /* matches top-bar so background doesn't show through */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);  /* subtle drop shadow when stuck */
}

/* Top/bottom dark bars (.top-bar, .ticker, .header, .cmd-bar, .status-bar) stay dark. */
body { font-family:'JetBrains Mono',monospace; background:#fef7ec; color:#c8d0dc; min-height:100vh; -webkit-font-smoothing:antialiased; }
.top-bar { height:16px; background:#0b1018; display:flex; align-items:center; justify-content:space-between; padding:0 32px; font-size:10px; letter-spacing:0.03em; color:#6a7a8a; border-bottom:1px solid #1a2330; }
.top-bar .left { display:flex; align-items:center; gap:8px; }
.top-bar .left .tf-terminal { color:#f29c12; font-weight:600; text-decoration:none; }
.top-bar .left .dot { color:#1a2330; }
.top-bar .left .live { color:#22c55e; }
.top-bar .left .live-dot { width:6px; height:6px; background:#22c55e; border-radius:50%; display:inline-block; }
.top-bar .right { display:flex; align-items:center; gap:8px; }
.top-bar .right a { color:#6a7a8a; text-decoration:none; }
.top-bar .right a:hover { color:#f29c12; }
.top-bar .right .subscribe { color:#22c55e; font-weight:600; }
.ticker { height:16px; background:#1d232b; display:flex; align-items:center; padding:0 32px; font-size:10px; overflow:hidden; border-bottom:1px solid #383f48; }
/* The "delayed" signifier is PINNED OUTSIDE the scrolling track. It used to
   be the first item inside the strip, which broke the seamless -50% loop (the
   two copies were not identical) and left the badge off-screen for most of
   every cycle. */
.ticker-badge { flex:0 0 auto; color:#8a9aa8; font-size:8px; letter-spacing:0.06em; padding:0 4px; border:1px solid #383f48; border-radius:2px; margin-right:32px; }
.ticker-viewport { flex:1 1 auto; min-width:0; overflow:hidden; white-space:nowrap; }
/* Two IDENTICAL .ticker-set blocks; the track translates by -50%, which is
   exactly one set width, so the loop is seamless. Each set carries its own
   trailing padding so the gap between the last item of one set and the first
   of the next matches the gap inside a set. */
.ticker-track { display:flex; width:max-content; animation:tickerScroll var(--ticker-duration,60s) linear infinite; will-change:transform; }
@keyframes tickerScroll { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }
.ticker-set { display:flex; gap:26px; padding-right:26px; flex:0 0 auto; }
/* The three fields are content-sized and packed tightly (0.75ch apart), so
 * each instrument reads as ONE group: "SPY 769.36 -0.38%".
 *
 * The stability guarantee moved UP a level. It used to live on the fields:
 * each field had a fixed width so a value that changes length could not
 * resize it. That is what kept the tape still, but it also meant every
 * field carried a dead reservation - up to 3ch of empty space after a
 * short symbol - which is what made the groups look scattered.
 *
 * Now the fields are natural width and the RESERVATION LIVES ON THE ITEM
 * (an explicit width in ch, set by the server and only ever grown). So:
 *   - the fields are tight, with no dead space between them, and
 *   - the item's outer width never changes, so the item after it never
 *     moves and the -50% target never moves.
 *
 * A value that outgrows its reservation is rare (a price crossing a digit
 * boundary). The client detects it and re-reserves at the next
 * animationiteration boundary, where a width change is invisible.
 *
 * ch is the advance width of "0". The tape is monospace, so N characters
 * is exactly N ch, and the server can compute the reservation from the
 * string lengths without measuring anything.
 */
.ticker-item { display:flex; gap:0.75ch; align-items:center; font-variant-numeric:tabular-nums; flex:0 0 auto; }
.ticker-item .tk-name { color:#8a9aa8; font-weight:500; flex:0 0 auto; }
.ticker-item .tk-price { color:#c8d0dc; font-variant-numeric:tabular-nums; flex:0 0 auto; }
.ticker-item .tk-chg { font-weight:500; font-variant-numeric:tabular-nums; flex:0 0 auto; }
.ticker-item .tk-chg.pos { color:#22c55e; }
.ticker-item .tk-chg.neg { color:#ef4444; }
/* A brief highlight on a changed value — proves the update landed without
   touching the layout. */
@keyframes tkFlash { from { background-color:rgba(77,208,225,0.30); } to { background-color:transparent; } }
.ticker-item .tk-price.flash, .ticker-item .tk-chg.flash { animation:tkFlash 700ms ease-out; }
/* Age of the published tape. Lives in the static top bar so it stays put
   and never scrolls off. Shown only once real data has been published; if
   the publisher stops, it keeps counting up so a stale number never looks
   live. */
.top-bar .tf-age { color:#6a7a8a; font-size:10px; letter-spacing:0.04em; }
.top-bar .tf-age.stale { color:#f29c12; }
.header { height:20px; background:#000; display:flex; align-items:center; justify-content:space-between; padding:0 32px; font-size:11px; border-bottom:1px solid #f29c12; }
.header .brand { color:#f29c12; font-weight:600; letter-spacing:0.06em; font-size:inherit; margin:0; }
.header .brand span { color:#6a7a8a; font-weight:400; }
.header .brand .brand-cn { color:#f29c12; font-weight:600; }
.header .brand .brand-link { color:inherit; text-decoration:none; }
/* "AI AGENTS READY" — a highlighted pill so the three-word phrase reads
   as one deliberate badge, not a stray suffix. Amber (the brand accent)
   with a green ready-dot echoing the LIVE indicator. */
.header .brand .brand-ready {
  display:inline-flex; align-items:center; gap:4px;
  margin-left:8px; padding:0 6px;
  font-size:8px; font-weight:700; letter-spacing:0.06em;
  color:#f29c12; border:1px solid #f29c12; border-radius:2px;
  background:rgba(242,156,18,0.12); vertical-align:1px;
}
.header .brand .brand-ready .ready-dot {
  width:4px; height:4px; border-radius:50%; background:#22c55e;
  box-shadow:0 0 5px rgba(34,197,94,0.7);
}
.header .brand .brand-ready .brand-ready-txt {
  color:#f29c12; font-weight:700;
}
.header .nav { display:flex; gap:24px; align-items:center; }
.header .nav a { color:#8a9aa8; text-decoration:none; font-size:10px; letter-spacing:0.04em; }
.header .nav a:hover { color:#f29c12; }
/* Language switcher: a segmented EN / CN-HK toggle. It is a UI scaffold for
   the future language choice — it persists the selection but no strings are
   translated yet, so nothing else on the page changes today. */
.header .lang-switch { display:inline-flex; align-items:center; border:1px solid #2a3340; border-radius:2px; overflow:hidden; }
.header .lang-switch .lang-opt { background:none; border:none; color:#8a9aa8; font-size:9px; letter-spacing:0.04em; padding:1px 6px; cursor:pointer; line-height:1.4; }
.header .lang-switch .lang-opt:hover { color:#f29c12; }
.header .lang-switch .lang-opt.is-active { background:#f29c12; color:#000; font-weight:600; }
.cmd-bar { height:18px; background:#0b1018; display:flex; align-items:center; padding:0 32px; font-size:11px; gap:8px; }
.cmd-bar .prompt { color:#22c55e; font-weight:600; }
.cmd-bar .cmd { color:#c8d0dc; }
.cmd-bar .cursor { width:8px; height:14px; background:#f29c12; display:inline-block; animation:blink 1s step-end infinite; }
@keyframes blink { 50% { opacity:0; } }
/* CSS Grid layout — 14 panels (13 cards + 1 demo GIF card) are direct children
   of .grid-container.
   Default (wide desktop): 3 columns. The browser auto-places children
   row-by-row, so panels fill in reading order:
     row 1: [1] [2] [3]
     row 2: [4] [5] [6]
     row 3: [7] [8] [9]
     row 4: [10] [11] [12]
     row 5: [13]
   This is the same row-major order you see in the single-column layout,
   so the visual flow is consistent at every breakpoint. */
.grid-container {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  /* the banded-series panel spans the full row */
  gap:24px;
  padding:24px 32px 32px;
  background:#fef7ec;
  max-width:1800px;
  margin:0 auto;
}
.panel { background:#fefaf3; border:1px solid #e0e4ea; margin-bottom:0; min-width:0; }
/* The FREE TIER panel is the site's hero — it gets a dark frame so
   the fluid reads as a deliberate block rather than a hole. */
.panel-ft-anim { border-color:#1a2330; box-shadow:0 6px 24px rgba(11,16,24,0.16); }
/* Demo card with embedded animated GIF — sized to match a standard panel. */
.panel-demo .pbody { padding:0; }
/* The stage is a fixed-ratio box so the panel does not resize when a clip
   of a different size is swapped in, and the two <img> elements are stacked
   inside it so the cycle can cross-fade between them. The outgoing clip's
   src is removed once it is hidden, which stops the browser decoding and
   animating a clip nobody can see. */
.panel-demo .gif-stage {
  position:relative;
  width:100%;
  aspect-ratio:480 / 270;
  /* Poster colour: the deep night-blue the clip opens on. While a clip
     is still decoding the panel shows this instead of an empty box. */
  background:#1b1f2a;
  overflow:hidden;
}
.panel-demo img.gif-demo {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  /* Hidden until the image has decoded, so an undecoded GIF cannot
     paint an empty box over the panel. */
  opacity:0;
  transition:opacity .45s ease;
  border-radius:0 0 1px 1px;
}
.panel-demo img.gif-demo.is-ready { opacity:0; }
/* The clip that is in front AND has decoded is the visible one. */
.panel-demo img.gif-demo.is-front.is-ready { opacity:1; }
/* Reduced motion: the clips still advance, but the cut is instant
   instead of a cross-fade. */
.panel-demo .gif-stage.no-fade img.gif-demo { transition:none; }
.phead { margin:0; height:24px; background:#f4e9d4; border-bottom:1px solid #e0e4ea; display:flex; align-items:center; padding:0 12px; font-size:9px; color:#4a5a6a; letter-spacing:0.04em; font-weight:500; }
.phead .badge { font-size:8px; background:#e0e4ea; padding:1px 5px; border-radius:2px; margin-left:6px; color:#4a5a6a; }
.phead .right { margin-left:auto; font-size:8px; color:#6a7a8a; }
/* The data-date badge. Same role as the MOIRAI HK panel's date: it makes
   the panel's currency visible, so a stale panel is obvious rather than
   merely plausible. Sits hard right, after the .right caption. */
.phead .pdate { margin-left:8px; font-size:8px; color:#8b9bb0; font-weight:600; letter-spacing:0.04em; }
/* "solo" = no .right caption beside it, so the badge itself takes the
   far-right slot (the MOIRAI HK panel has no caption to show). */
.phead .pdate.solo { margin-left:auto; }
.pbody { padding:8px 12px; }
.pbody svg { max-width:100%; height:auto; }
/* Banded-series panels fill their grid row. The grid stretches every panel
   in a row to the tallest sibling's height; without this the shorter panels
   (e.g. HK TRIN next to the 300px scatter) leave a dead gap at the bottom.
   The panel and body are flex columns and the chart wrapper grows to absorb
   the leftover height, so the chart always reaches the panel's foot. */
.panel-series { display:flex; flex-direction:column; }
.panel-series .pbody { display:flex; flex-direction:column; flex:1; min-height:0; }
.panel-series .srs-chart { flex:1 1 auto; min-height:60px; }
.panel-series .srs-chart svg { width:100%; height:100%; display:block; }
/* CRANE-X sentiment panel — composite arc dial + per-asset intensity bars. */
/* THE PANEL FILLS ITS GRID ROW.
   The grid stretches every panel in a row to the tallest sibling's
   height. The CRANE-X panel sat in a 286 px row with a 196 px body,
   so ~90 px of the card was empty. Making the panel a flex column
   (the pattern .panel-series already uses) lets the body take the
   remaining height instead of leaving a gap at the bottom. */
.panel-cranex { display:flex; flex-direction:column; }
.panel-cranex .pbody { display:flex; flex-direction:column; flex:1; min-height:0; }

/* THE CONTENT SCALES TO THE SPACE IT IS GIVEN.
   The gauge column and the asset column share the body height. The
   dial grows with the column (width-driven, so the arc never
   distorts), the reading is anchored to the bottom of the gauge
   column, and the asset rows spread over the height they are given. */
.panel-cranex .cranex-top { flex:1 1 auto; min-height:0; display:flex; gap:12px; align-items:stretch; }
.panel-cranex .cr-gauge { flex:0 0 34%; min-width:120px; max-width:200px; display:flex; flex-direction:column; text-align:center; }
/* The dial is anchored to the TOP of its column, so the eye lands on
   the reading first and the space below is the panel's, not the
   gauge's. */
.panel-cranex .cr-dial { flex:0 1 auto; min-height:0; display:flex; align-items:flex-start; justify-content:center; }
/* The SVG keeps its 140x96 aspect ratio: the global .pbody svg rule
   caps the width, and height:auto preserves the ratio, so a wider
   column gives a bigger dial rather than a stretched one. */
.panel-cranex .cr-dial svg { width:100%; height:auto; max-height:100%; }
.panel-cranex .cr-read { flex:0 0 auto; padding-bottom:2px; }
.panel-cranex .cr-gauge-value { font-size:15px; font-weight:700; color:#0b1018; line-height:1.1; }
.panel-cranex .cr-gauge-label { font-size:8px; font-weight:700; letter-spacing:0.06em; }
.panel-cranex .cr-gauge-sub { font-size:6px; color:#9aa7b5; letter-spacing:0.08em; }
/* ONE COLUMN OF ASSET ROWS, WITH THE ROWS FILLING THE HEIGHT.
   Two columns was tried and rejected: the dial shrank (it is sized by
   its column's width) and each BAR - which IS the content - was
   squeezed to about a fifth of its length.

   So the list stays in one column and the leftover VERTICAL space is
   spent on TALLER ROWS, which means a taller BAR: more readable, not
   less. The rows are given a share of the column's height and the
   bar track grows with its row. */
.panel-cranex .cr-assets { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; justify-content:space-between; gap:4px; }
/* The rows grow to fill the column's height, and the BAR grows with
   its row: `.cr-bar` stretches (align-items:stretch on the row), and
   the track fills it. So the extra height shows as a taller, more
   readable bar rather than as empty space.

   `.cr-asset` uses align-items:center for the text, but the bar
   wrapper is given align-self:stretch so it can take the row's full
   height - otherwise the bar keeps its natural 6 px and the extra
   space is just padding. */
/* ONE CLEAN SET OF RULES FOR THE ASSET LIST.
   (The block previously carried DUPLICATE .cr-* rules from the
   iterations: the original set was still present later in the file and
   overrode the new ones, which is why the bar never grew.) */
.panel-cranex .cr-asset { flex:1 1 0; min-height:18px; display:flex; align-items:center; gap:6px; }
.panel-cranex .cr-sym { flex:0 0 26px; font-size:8px; font-weight:700; color:#4a5a6a; }
/* The bar wrapper STRETCHES to the row's height, so the extra height
   the rows now take shows as a taller, more readable bar rather than
   as empty space. */
.panel-cranex .cr-bar { flex:1 1 auto; min-width:0; align-self:center; height:10px; display:flex; align-items:center; }
/* The bar stays a THIN scale, not a block: at 36 px (the full row
   height) it stops reading as a diverging intensity bar and the
   centre-zero comparison between assets is lost. The row's spare
   height goes to the spacing between the rows instead. */
.panel-cranex .cr-bar-track { position:relative; width:100%; height:10px; background:#eef1f5; border-radius:3px; }
.panel-cranex .cr-bar-fill { position:absolute; top:0; height:100%; border-radius:3px; }
.panel-cranex .cr-bar-center { position:absolute; left:50%; top:-2px; width:1px; height:calc(100% + 4px); background:#c8d0dc; }
.panel-cranex .cr-score { flex:0 0 30px; text-align:right; font-size:8px; font-variant-numeric:tabular-nums; font-weight:600; }
.panel-cranex .cr-regime { flex:0 0 auto; min-width:52px; text-align:right; font-size:7px; font-weight:600; letter-spacing:0.04em; }
.panel-cranex .cranex-meta { margin-top:7px; font-size:7px; color:#9aa7b5; display:flex; gap:10px; }
.panel-cranex .cranex-meta b { color:#4a5a6a; font-weight:600; }
/* ACCUMULATOR PRICES panel — 7-column price grid (1x AND 2x tiers).
   The row COUNT is a LAYOUT quantity, not a server quantity. The grid
   stretches every panel in a row to the tallest sibling's height, so the
   height this panel is given depends on the breakpoint AND on which panels
   share the row — neither is known when the PHP is rendered. A server-side
   LIMIT is therefore wrong in every layout except the one it was written
   for, and it leaves dead space below the rows in the taller layouts.

   So the panel renders EVERY published structure (7 stocks x 2 variants x
   2 leverage tiers = 28) and the row region is a flex slot that FILLS the
   height it is given and scrolls for the remainder. `flex-basis: 140px` is
   the ten rows the panel has always shown: that is the panel's minimum
   footprint, so it never shrinks below today's layout, while a taller
   sibling stretches the slot and reveals more rows. Without the zero-content
   contribution (flex-basis + overflow) a longer list would inflate the grid
   row and push the dead space into the sibling panel instead. */
.panel-acc { display:flex; flex-direction:column; }
.panel-acc .pbody { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
.panel-acc .acc-head { flex:0 0 auto; color:#6a7a8a; font-weight:600; letter-spacing:0.05em; border-bottom:1px solid #e0e4ea; padding-bottom:3px; margin-bottom:1px; }
.panel-acc .acc-rows { flex:1 1 140px; min-height:0; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:#c8d0dc transparent; scrollbar-gutter:stable; }
.panel-acc .acc-rows::-webkit-scrollbar { width:6px; }
.panel-acc .acc-rows::-webkit-scrollbar-thumb { background:#c8d0dc; border-radius:3px; }
.panel-acc .acc-rows::-webkit-scrollbar-track { background:transparent; }
.panel-acc .srs-note { flex:0 0 auto; }

/* Phone: the NETWORK VALUATION panel shares its row with nothing, so
   there is no sibling height to defer to. Stack the two tails and take
   their natural height — every name is shown and neither scrolls. */
@media (max-width:650px) {
  .panel-nv .nv-sections { flex:0 0 auto; }
  .panel-nv .nv-sec { flex:0 0 auto; }
  .panel-nv .nv-rows { flex:0 0 auto; height:auto; overflow-y:visible; scrollbar-gutter:auto; }
  /* The full valuation line does not fit a phone: drop the multiples and
     market cap, and keep ticker, z, signal and price. PRICE is the 9th
     child, so it is placed explicitly into the 4th track rather than
     leaving a hole where the hidden columns were. */
  .panel-nv .nv-h:nth-child(4), .panel-nv .nv-h:nth-child(5), .panel-nv .nv-h:nth-child(6),
  .panel-nv .nv-h:nth-child(7), .panel-nv .nv-h:nth-child(8),
  .panel-nv .nv-row > .nv-num:nth-child(4), .panel-nv .nv-row > .nv-num:nth-child(5),
  .panel-nv .nv-row > .nv-num:nth-child(6), .panel-nv .nv-row > .nv-num:nth-child(7),
  .panel-nv .nv-row > .nv-num:nth-child(8) { display:none; }
  .panel-nv .nv-row > .nv-px { grid-column:4; }
  .panel-nv .nv-h:nth-child(9) { grid-column:4; }
}
.panel-acc .acc-grid { display:grid; grid-template-columns:0.8fr 1.25fr 0.45fr 1fr 0.8fr 0.8fr 0.75fr; gap:3px 6px; font-size:8px; font-variant-numeric:tabular-nums; padding:2px 0; }

/* TD SEQUENTIAL SIGNALS panel.
 *
 * The panel replaces MCP INSTALL and shows one row per stock per day.
 * The row has to stay ONE LINE tall while carrying the direction, the
 * strength, the TDST range, the volume and the price — so the two
 * attributes that would each need a text column are rendered as
 * VISUALS instead:
 *
 *   - the strength is a 3-segment meter (0.5 / 0.7 / 1.0), so strengths
 *     compare at a glance without reading numbers;
 *   - the TDST range is a band with a tick at the close, so "the close is
 *     at the bottom of the support zone" is visible without arithmetic;
 *   - the direction is an arrow in a tinted chip — green up for buy, red
 *     down for sell — and a HOLLOW arrow means the qualifier had not
 *     fired yet (a countdown), a filled one means the setup completed.
 *
 * The row slot has ZERO content contribution, so a long list never
 * inflates the grid row it sits in — otherwise adding rows would move
 * the dead space into the sibling panel instead of filling it. */
.panel-td { display:flex; flex-direction:column; }
.panel-td .pbody { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
.panel-td .td-head {
  flex:0 0 auto;
  color:#6a7a8a;
  font-weight:600;
  letter-spacing:0.05em;
  border-bottom:1px solid #e0e4ea;
  padding-bottom:3px;
  margin-bottom:1px;
}
.panel-td .td-rows {
  flex:1 1 140px;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:#c8d0dc transparent;
  scrollbar-gutter:stable;
}
.panel-td .td-rows::-webkit-scrollbar { width:6px; }
.panel-td .td-rows::-webkit-scrollbar-thumb { background:#c8d0dc; border-radius:3px; }
.panel-td .td-rows::-webkit-scrollbar-track { background:transparent; }
.panel-td .td-note { flex:0 0 auto; font-size:7px; color:#8b9bb0; margin-top:5px; line-height:1.4; }
/* The legend: a visual key for the visual marks, so the reader can
   decode a row without hovering every cell. */
.panel-td .td-legend { flex:0 0 auto; display:flex; flex-wrap:wrap; gap:2px 9px; font-size:7px; color:#8b9bb0; margin-top:3px; line-height:1.3; }
.panel-td .td-legend span { display:inline-flex; align-items:center; gap:2px; }
.panel-td .td-legend i { font-style:normal; font-size:7px; }
.panel-td .td-kbuy { color:#22c55e; }
.panel-td .td-ksell { color:#ef4444; }
.panel-td .phead .td-shown { font-variant-numeric:tabular-nums; }

/* DATE | STOCK | SIG | STR | TDST | NOTIONAL | 5D AVG | PX
 *
 * The NOTIONAL column carries a BAR as well as the number: the solid
 * part is this day's notional as a share of the list's largest, and the
 * pale ghost behind it is the stock's 5-day average. That makes two
 * things visible at a glance that numbers alone hide - where the row
 * sits in the ranking, and whether the signal day was an unusually big
 * session for that stock (a long bar past the ghost) or a quiet one.
 */
.panel-td .td-grid {
  display:grid;
  /* Fractions, not pixels. The proportions are the ones the
     fixed-pixel design had (78:32:15:18:74:92:143:48), so the table
     looks the same at the width it was drawn for and scales down from
     there. A fixed-pixel track is WIDER than the panel at every
     breakpoint below the one it was drawn for, and the heading then
     stuck out of the panel while the rows were clipped by the
     scroller - the two behaving differently is what made it look like
     a heading bug rather than a table that no longer fits. */
  /* The minimums are the HEADING widths (8px JetBrains Mono, 0.6em
     advance): a track must be at least as wide as the heading above
     it, or the heading is cut in half. */
  grid-template-columns:
    minmax(21px,1.56fr) minmax(21px,0.64fr) minmax(16px,0.30fr)
    minmax(21px,0.36fr) minmax(21px,1.48fr) minmax(32px,1.84fr)
    minmax(42px,2.86fr) minmax(32px,0.96fr);
  gap:3px 6px;
  align-items:center;
  font-size:8px;
  font-family:var(--mono);
  font-variant-numeric:tabular-nums;
  /* The notional cell is two lines (number over its bar), so the row
     has no vertical padding of its own - the cell provides the space.
     Keeping the row tight is what keeps the panel dense. */
  padding:0;
  line-height:1.15;
}
.panel-td .td-head { font-family:var(--mono); padding:1px 0 2px; overflow:hidden; }
/* The rows scroll, so the scroller takes a 10px scrollbar. The header
   sits OUTSIDE the scroller, so without this it was laid out 10px
   wider than the body: every column drifted and the last one hung
   past the panel's right edge, which read as a cut-off CLOSE column.
   Reserving the same 10px here puts both grids on the same width. */
.panel-td .td-head { padding-right:10px; }
/* The headings were crowding each other (the QUAL heading ran into
   the ZONE heading). Tracking the headings out slightly gives each
   its own air without changing the row height. */
.panel-td .td-head span { letter-spacing:0.02em; min-width:0; overflow:hidden; text-overflow:ellipsis; }
/* The notional cell is a two-line stack: the number on top, its bar
   below. The bar cannot share the number's line — the row is 13px tall
   and a 4px bar drawn across the digits obscures them.
   The pale ghost is the stock's 5-day average notional and the solid
   fill is the signal day's notional, so a fill that reaches past the
   ghost is an unusually big session for that name.
   BOTH bars grow LEFT-TO-RIGHT from a common left edge: a magnitude
   that grows rightward matches the reading direction, and it makes the
   two lengths directly comparable (fill past ghost = unusual day). */
/* The notional cell: the FIGURE owns the right of the cell, the BAR
   owns the left. They sit side by side rather than stacked, so the
   bar never runs underneath the digits.
   The bar is the ranking, so it takes the space that is left; the
   figure is sized to the widest notional label and does not grow. */
.panel-td .td-not { display:flex; align-items:center; gap:5px; overflow:hidden; }
.panel-td .td-not b { flex:0 0 34px; font-weight:600; color:#0b1018; font-size:8px; line-height:9px; text-align:right; }
.panel-td .td-nbar { position:relative; display:block; flex:1 1 auto; min-width:0; height:4px; background:#eef1f5; border-radius:1px; overflow:hidden; }
/* The bars grow LEFT-TO-RIGHT from a common left edge. The track
   clips them, so a bar can never paint outside its own cell - the
   5-day average can exceed the biggest signal-day notional in the
   list, and without the clip that bar spilled over the LEVELS
   column. */
.panel-td .td-nbar i { position:absolute; left:0; top:0; bottom:0; display:block; max-width:100%; }
.panel-td .td-nbar .td-ghost { background:#c7d6ea; }
.panel-td .td-nbar .td-fill { background:#6366f1; }
.panel-td .td-nbar .td-ghost { background:#c7d6ea; }
.panel-td .td-nbar .td-fill { background:#6366f1; }
.panel-td .td-avg { color:#8b9bb0; text-align:right; overflow:hidden; text-overflow:ellipsis; min-width:0; }
/* The PERF marker: a filled diamond for a perfect setup, hollow for an
   ordinary one. A quality mark, not a number, so it reads at a glance. */
/* The QUAL mark: a filled diamond for a perfect setup, a hollow one
   for an ordinary setup, a filled square for a fired countdown. */
.panel-td .td-qual { font-size:8px; line-height:9px; color:#c4ccd6; text-align:center; display:block; }
.panel-td .td-qual.is-on { color:#6366f1; }
.panel-td .td-qual.is-cd { color:#f59e0b; }
.panel-td .td-lv { color:#8b9bb0; font-size:7px; letter-spacing:-0.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
/* The "cancelled" mark: the setup that produced the signal did not
   hold up, so there is no zone. It is dimmed and italic so it cannot
   be misread as a price range. */
.panel-td .td-lv.is-none { color:#c4ccd6; font-style:italic; }
.panel-td .td-head { font-family:var(--mono); }
.panel-td .td-code { font-weight:700; color:#0b1018; overflow:hidden; text-overflow:ellipsis; min-width:0; }
/* The brief stock name. It is truncated rather than wrapped, so a long
   name can never change the row height; the full name is in the
   tooltip. */
.panel-td .td-name { color:#1b2733; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.panel-td .td-sig {
  display:inline-flex;
  max-width:100%;
  overflow:hidden;
  align-items:center;
  justify-content:center;
  border-radius:2px;
  font-size:7px;
  line-height:1.35;
  height:12px;
}
/* A hollow arrow = the qualifier had not fired yet (a countdown). */
.panel-td .td-mark { font-style:normal; }
.panel-td .td-mark.is-open { opacity:0.45; }
/* The strength meter: three segments, `on` for the filled ones. */
/* (The strength meter was removed: for a setup, strength was a pure
   function of perfection, so it duplicated the QUAL mark.) */
/* The TDST band: the zone the signal refers to, with a tick at the close. */
.panel-td .td-band { position:relative; display:block; height:9px; background:#eef1f5; border-radius:2px; overflow:hidden; }
.panel-td .td-band .td-zone { position:absolute; inset:0; display:block; background:#dbe4f0; }
.panel-td .td-band .td-tick { position:absolute; top:0; bottom:0; width:2px; background:#0b1018; margin-left:-1px; display:block; }
.panel-td .td-band.is-none { background:none; color:#c4ccd6; font-size:7px; text-align:center; line-height:8px; }
.panel-td .td-vol { color:#8b9bb0; text-align:right; }
.panel-acc .acc-code { font-weight:700; color:#0b1018; }
.panel-acc .acc-lev { color:#8b9bb0; font-weight:600; }
.panel-acc .acc-lev.is-2x { color:#0b1018; }
/* The visible-row count lives in the HEAD, not the note: the note wraps to
   a second line at some widths, and a count that changes the note's height
   changes the panel's height — which would let this panel drive the grid
   track it shares with its siblings. The head is a fixed 24px bar. */
.panel-acc .phead .acc-shown { font-variant-numeric:tabular-nums; }
.panel-acc .acc-type-a { color:#2563eb; font-weight:600; }
.panel-acc .acc-type-k { color:#d97706; font-weight:600; }
.panel-acc .acc-accrual { color:#2563eb; }
.panel-acc .acc-barrier { color:#d97706; }
.panel-acc .acc-ko { font-weight:600; }

/* CRYPTO TREND SIGNALS panel — the Parabolic-SAR state per asset. Each row
   is a grid: the columns line up across the four assets, and the strip
   (price vs the SAR stop, in ATR units) sits in the flexible column so it
   fills the panel width. The strip SVG uses preserveAspectRatio="none" and
   an explicit height, so it needs higher specificity than .pbody svg. */
/* The SIGNAL column holds "SELL 4h 52m" - a side plus an age. The column
   was 52px, which fits the short form ("SELL 7m" = 33.6px) but missed the
   long form ("SELL 4h 52m" = 52.8px) by 0.8px, so the text wrapped at the
   space into two lines and doubled the row height. It is now 68px, which
   fits every label the panel can emit with margin; the extra width comes
   out of the flexible strip column, which has ample slack. */
.panel-crypto .cx-head { display:grid; grid-template-columns:34px 40px 58px 1fr 42px 68px; gap:3px 6px; font-size:7px; color:#6a7a8a; font-weight:600; letter-spacing:0.05em; border-bottom:1px solid #e0e4ea; padding-bottom:3px; margin-bottom:2px; }
.panel-crypto .cx-row { padding:4px 0; border-bottom:1px solid #f0f2f4; }
.panel-crypto .cx-row:last-of-type { border-bottom:none; }
.panel-crypto .cx-r1 { display:grid; grid-template-columns:34px 40px 58px 1fr 42px 68px; gap:3px 6px; align-items:center; font-size:8px; font-variant-numeric:tabular-nums; }
/* The signal is ONE value ("SELL" + age), never two lines: a wrapped
   "SELL 4h / 52m" reads as two separate figures. */
.panel-crypto .cx-sym { font-size:9px; font-weight:700; color:#0b1018; }
.panel-crypto .cx-dir { font-size:7px; font-weight:700; letter-spacing:0.04em; text-align:center; border-radius:2px; padding:1px 0; }
.panel-crypto .cx-dir.is-long { color:#22c55e; background:#e8f8ed; }
.panel-crypto .cx-dir.is-short { color:#ef4444; background:#fdecec; }
.panel-crypto .cx-px { color:#0b1018; font-weight:600; }
.panel-crypto .cx-strip-wrap { display:block; min-width:0; }
.panel-crypto .cx-strip { display:block; width:100%; height:18px; }
.panel-crypto .cx-rr { text-align:right; font-weight:600; }
/* The signal is ONE value ("SELL" + age), never two lines: a wrapped
   "SELL 4h / 52m" reads as two separate figures. */
.panel-crypto .cx-sig { text-align:right; font-weight:600; white-space:nowrap; }
.panel-crypto .cx-sig.is-buy { color:#22c55e; }
.panel-crypto .cx-sig.is-sell { color:#ef4444; }
.panel-crypto .cx-sig.is-none { color:#8b9bb0; }
/* The meta line shares the row's column template and starts under PRICE, so
   it spans the strip/RR/SIGNAL columns instead of being squeezed into the
   first one (which wrapped it onto four lines and doubled the row height). */
.panel-crypto .cx-r2 { display:grid; grid-template-columns:34px 40px 58px 1fr 42px 68px; gap:3px 6px; margin-top:2px; }

/* NETWORK VALUATION panel — the two tails of the peer-relative spread,
   side by side.
 *
 * The panel used to stack 4 cheapest over 4 dearest, which left about
 * half the panel empty: the grid stretches this panel to its tallest
 * sibling (the NETWORK-OF-COMPANIES panel), and the stacked list was
 * shorter than that. Now the two tails are COLUMNS, so the vertical
 * space is used, and each column scrolls independently.
 *
 * The columns are a flex row, so each scroll region gets HALF the
 * panel's width; the row regions are the flex slots that take the
 * panel's height. */
.panel-nv { display:flex; flex-direction:column; }
.panel-nv .pbody { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
/* The panel is split HORIZONTALLY: the cheap tail on top, the expensive
 * tail below, each taking half the panel's height.
 *
 * Splitting into side-by-side columns instead gave each row only HALF the
 * panel width, so a row could carry three fields (ticker, z, signal,
 * price) and nothing else - the multiples the table publishes (P/E,
 * P/S, P/B, EV/EBITDA, market cap) had nowhere to go. Stacked, each row
 * has the FULL width and carries the whole valuation line.
 *
 * Each section is a flex slot with its own scrollbar, so a long tail
 * never inflates the grid track the panel shares, and the names below
 * the fold stay reachable. */
.panel-nv .nv-sections { display:flex; flex-direction:column; gap:9px; flex:1 1 auto; min-height:0; }
/* Each section takes HALF the sections' height, and the row region
 * inside it takes whatever is left after the two fixed header rows.
 * The basis is 0 so the row region contributes NOTHING to the height:
 * the sections split the space evenly instead of the content deciding. */
/* The two sections hold DIFFERENT numbers of names, so they must NOT
 * split the height evenly: an even split gives the longer tail a
 * scrollbar while the shorter one has spare room, which is the opposite
 * of showing as many as possible in each.
 *
 * So each section is sized by its CONTENT (`flex: 0 1 auto`) and the
 * space left over goes to the section with more rows — the one that can
 * use it. `flex-shrink: 1` still lets a section give space back when
 * the panel is too short, and the rows region scrolls, so nothing is
 * ever lost. */
.panel-nv .nv-sec { display:flex; flex-direction:column; flex:0 1 auto; min-height:0; }
/* The longer tail grows into the panel's spare space. */
.panel-nv .nv-sec[data-grow="1"] { flex-grow:1; }
.panel-nv .nv-head {
  flex:0 0 auto;
  display:flex;
  align-items:baseline;
  gap:6px;
  font-size:7px;
  color:#8b9bb0;
  letter-spacing:.06em;
  padding-bottom:3px;
  margin-bottom:3px;
  border-bottom:1px solid #e0e4ea;
}
.panel-nv .nv-side { color:#6a7a8a; font-weight:600; }
/* The column labels sit in the same grid template as the rows, so they
   line up with the values under them. */
/* ONE template for the column labels and the rows, so every value sits
   under its label. The rows reuse the .nv-cols rule's template. */
/* Fractions, not pixels - the same reasoning as the TD SEQUENTIAL and
   PARABOLIC SAR tables. The proportions are the ones the fixed-pixel
   design had (44:38:104:42:42:42:54:56:48).

   The header (.nv-cols) also carries padding-right:10px, which
   matches the 10px scrollbar gutter the rows region reserves. With
   FRACTION tracks the two grids must be laid out against the SAME
   width or the columns drift - the header would be 10px wider than
   the rows, and every fraction track would be a different size in
   each. */
.panel-nv .nv-cols,
.panel-nv .nv-row {
  /* The minimums are the HEADING widths (7px JetBrains Mono for the
     headings, 0.6em advance): a track must be at least as wide as the
     heading above it, or the heading is cut in half. */
  grid-template-columns:
    minmax(27px,0.94fr) minmax(22px,0.81fr) minmax(27px,2.21fr)
    minmax(14px,0.89fr) minmax(14px,0.89fr) minmax(14px,0.89fr)
    minmax(41px,1.15fr) minmax(30px,1.19fr) minmax(23px,1.02fr);
}
.panel-nv .nv-cols {
  flex:0 0 auto;
  display:grid;
  overflow:hidden;
  /* Matches the 10px scrollbar gutter the rows region reserves, so
     the header and the rows are laid out against the SAME width. */
  padding-right:10px;
  gap:3px 6px;
  font-size:7px;
  color:#8b9bb0;
  font-weight:600;
  letter-spacing:.04em;
  padding-bottom:2px;
}
.panel-nv .nv-h.is-r { text-align:right; }
/* The headings clip inside their own track, exactly like the values
   under them. Without this a long label paints over the next column
   once the tracks are fractions and the panel is narrow. */
.panel-nv .nv-cols > span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
/* The visible-row count lives in the column head, a FIXED-height bar —
   never in the note, whose length must not change the panel's height. */
.panel-nv .nv-shown { margin-left:auto; font-variant-numeric:tabular-nums; color:#6a7a8a; }
.panel-nv .nv-rows {
  /* THE slot: the rows with their own scrollbar, so a long tail never
     inflates the grid track the panel shares.
   *
   * The basis is `auto` — the rows' own height — so the SECTION can
   * measure how many rows it has and size itself to them. With a basis
   * of 0 the section's content height was zero and the shorter tail
   * collapsed to nothing. `flex-grow:1` lets the section that is marked
   * to grow take the panel's spare space, and `flex-shrink:1` lets a
   * section give space back (its rows then scroll). */
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:#c8d0dc transparent;
  scrollbar-gutter:stable;
}
.panel-nv .nv-rows::-webkit-scrollbar { width:6px; }
.panel-nv .nv-rows::-webkit-scrollbar-thumb { background:#c8d0dc; border-radius:3px; }
.panel-nv .nv-rows::-webkit-scrollbar-track { background:transparent; }
/* The row uses the SAME grid template as the column labels above it,
   so every value sits under its label. */
.panel-nv .nv-row {
  display:grid;
  gap:3px 6px;
  align-items:baseline;
  font-size:8px;
  font-family:var(--mono);
  padding:1px 0;
  white-space:nowrap;
}
.panel-nv .nv-row > * { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.panel-nv .nv-tick { font-weight:700; color:#6366f1; }
.panel-nv .nv-z { font-weight:700; }
.panel-nv .nv-sig { color:#8b9bb0; font-size:7px; }
.panel-nv .nv-num { color:#6a7a8a; text-align:right; }
.panel-nv .nv-num.is-r { text-align:right; }
.panel-nv .nv-mcap { color:#8b9bb0; font-size:7px; }
.panel-nv .nv-px { color:#8b9bb0; font-size:7px; }
.panel-nv .nv-note {
  flex:0 0 auto;
  font-size:7px;
  color:#8b9bb0;
  margin-top:9px;
  line-height:1.5;
}
.panel-nv .nv-note-scn { margin-top:5px; border-top:1px solid #e0e4ea; padding-top:5px; }
.panel-nv .nv-note b { color:#0b1018; }
.panel-crypto .cx-meta { grid-column:3 / -1; display:flex; gap:10px; font-size:7px; color:#8b9bb0; font-variant-numeric:tabular-nums; white-space:nowrap; }
.panel-crypto .cx-meta .is-live { color:#d97706; font-weight:700; }
.panel-crypto .cx-meta .is-settled { color:#9aa7b5; }
.panel-crypto .srs-note { flex:0 0 auto; }

.pkg-grid { display:grid; grid-template-columns:1fr 1fr; gap:3px 12px; }
.pkg-row { display:flex; align-items:center; gap:6px; font-size:9px; height:17px; }
.pkg-row .pl { width:26px; font-weight:600; color:#2a3a4a; font-size:10px; }
.pkg-row .pn { color:#4a5a6a; flex:1; }
/* A package name is a link to the panel that shows that package. A
   package with no panel on this page has no link, so its name stays
   plain text. */
.pkg-row .pn a { color:#2563eb; text-decoration:none; }
.pkg-row .pn a:hover { text-decoration:underline; }
/* A jumped-to panel must clear the 70px sticky top stack, or the panel
   head lands UNDER the header and the reader sees the wrong card. */
.panel[id] { scroll-margin-top:84px; }
.pkg-row .ps { color:#22c55e; font-weight:500; width:18px; }
.pkg-row .plm { color:#6a7a8a; font-size:8px; text-align:right; }
.vol-heat { margin-top:4px; }
.vol-atm { display:flex; align-items:baseline; gap:8px; margin-bottom:4px; }
.vol-atm .va-label { font-size:9px; color:#4a5a6a; }
.vol-atm .va-val { font-size:18px; font-weight:600; color:#0b1018; }
.vol-atm .va-meta { font-size:9px; color:#6a7a8a; margin-left:auto; }
.vol-legend { display:flex; align-items:center; gap:8px; margin-top:4px; font-size:8px; color:#4a5a6a; }
.pricing-2x2 { display:grid; grid-template-columns:1fr 1fr; gap:0; }
/* PRICING fills its grid row (same pattern as .panel-series): the panel and
   body are flex columns and the 2x2 tier grid grows to absorb the leftover
   height, so a short card set reaches the panel's foot. Each card is a flex
   column that pins price/CTA to the bottom, so the extra height distributes
   between the description and the price instead of pooling at the card foot. */
.panel-pricing { display:flex; flex-direction:column; }
.panel-pricing .pbody { display:flex; flex-direction:column; flex:1; min-height:0; }
.panel-pricing .pricing-2x2 { flex:1 1 auto; }
.pc { padding:8px; border:1px solid #e0e4ea; position:relative; display:flex; flex-direction:column; align-items:flex-start; }
.pc .ptag { display:inline-block; font-size:7px; font-weight:700; letter-spacing:0.05em; padding:1px 4px; margin-bottom:3px; }
.pc .pname { font-size:10px; font-weight:600; color:#0b1018; margin-bottom:1px; }
.pc .pdesc { font-size:8px; color:#6a7a8a; }
.pc .pprice { font-size:14px; font-weight:700; color:#0b1018; margin:auto 0 3px; }
.pc .pcta { font-size:8px; padding:2px 8px; border:1px solid; display:inline-block; cursor:pointer; text-decoration:none; align-self:flex-start; }
.pc .prec { position:absolute; top:4px; right:6px; font-size:7px; font-weight:600; }
.pc.pc-free { border-color:#22c55e; }
.pc.pc-free .ptag { background:#22c55e; color:#fff; }
.pc.pc-free .pcta { border-color:#22c55e; color:#22c55e; }
.pc.pc-dev { border-color:#6366f1; }
.pc.pc-dev .ptag { background:#6366f1; color:#fff; }
.pc.pc-dev .prec { color:#6366f1; }
.pc.pc-dev .pcta { border-color:#6366f1; color:#6366f1; }
.pc.pc-team { border-color:#f29c12; }
.pc.pc-team .ptag { background:#f29c12; color:#000; }
.pc.pc-team .prec { color:#f29c12; }
.pc.pc-team .pcta { border-color:#f29c12; color:#f29c12; }
.pc.pc-ent { border-color:#0b1018; background:#0b1018; color:#c8d0dc; }
.pc.pc-ent .ptag { background:#f29c12; color:#000; }
.pc.pc-ent .pname { color:#c8d0dc; }
.pc.pc-ent .pprice { color:#c8d0dc; }
.pc.pc-ent .pcta { border-color:#f29c12; color:#f29c12; }
.pc.pc-ent .prec { color:#f29c12; }
.skew-val { font-size:22px; font-weight:600; color:#0b1018; }
.skew-meta { font-size:9px; color:#4a5a6a; }
.skew-z { font-size:12px; font-weight:600; color:#22c55e; }
.skew-regime { font-size:9px; font-weight:600; color:#f59e0b; margin-top:2px; }
.tfx-metrics { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.tfx-m { }
.tfx-m .tfl { font-size:8px; color:#6a7a8a; }
.tfx-m .tfv { font-size:13px; font-weight:600; color:#0b1018; }
.tfx-m .tfz { font-size:9px; color:#4a5a6a; }
.tfx-comp { margin-top:8px; padding-top:8px; border-top:1px solid #e0e4ea; text-align:center; }
.tfx-comp .tcl { font-size:9px; color:#6a7a8a; letter-spacing:0.06em; }
.tfx-comp .tcs { font-size:10px; color:#f59e0b; font-weight:600; }
.tfx-comp .tcv { font-size:20px; font-weight:700; color:#0b1018; }

/* ── Banded-series panel (HK TFX and any future panel of this shape) ────── */
.srs-head { display:flex; align-items:baseline; gap:8px; margin-bottom:2px; }
.srs-value { font-size:20px; font-weight:700; color:#0b1018; }
.srs-unit { font-size:9px; color:#6a7a8a; }
.srs-state { margin-left:auto; font-size:9px; font-weight:600; }
.srs-meta { display:flex; gap:10px; font-size:8px; color:#6a7a8a; margin-bottom:3px; }
.srs-meta b { color:#4a5a6a; font-weight:600; }
.srs-legend { display:flex; flex-wrap:wrap; gap:8px; font-size:8px; color:#6a7a8a; margin-top:3px; }
.srs-legend .sw { display:inline-block; width:7px; height:7px; border-radius:1px; margin-right:3px; vertical-align:-1px; }
.srs-legend .ln { display:inline-block; width:10px; height:0; border-top:1px solid; margin-right:3px; vertical-align:3px; }
.srs-signals { display:flex; flex-wrap:wrap; gap:4px 8px; margin-top:5px; padding-top:5px; border-top:1px solid #e0e4ea; }
.srs-sig { display:flex; align-items:center; gap:3px; font-size:8px; }
.srs-sig .tk { font-weight:600; color:#4a5a6a; }
.srs-sig .dr { font-weight:600; }
.srs-note { font-size:7px; color:#9aa7b5; margin-top:4px; line-height:1.4; }

/* ── ADS panel ─────────────────────────────────────────────────────────── */
/* The dial and the linear scale below it are the SAME scale: one shared
   band definition (inc/tf-ads.php) feeds both, so the colour under the
   needle and the colour under the marker can never disagree. */
.ads-top { display:flex; align-items:flex-start; gap:10px; }
.ads-gauge { flex-shrink:0; }
.ads-read { min-width:0; flex:1; padding-top:1px; }
.ads-read .lab { font-size:8px; color:#6a7a8a; }
.ads-read .val { font-size:22px; font-weight:700; color:#0b1018; line-height:1.1; letter-spacing:-0.01em; }
.ads-read .state { font-size:9px; font-weight:600; margin-top:1px; }
.ads-read .meta { display:flex; flex-wrap:wrap; gap:3px 9px; font-size:7px; color:#8b9bb0;
                  font-family:var(--mono); margin-top:5px; }
.ads-read .meta b { color:#4a5a6a; font-weight:600; }

/* The linear scale. Its segments are the bands themselves, each as wide as
   the band is on the -6..+6 axis, so a value at +1 sits in the same colour
   band on the dial and on the bar. */
.ads-scale { margin-top:8px; }
.ads-scale-bar { position:relative; height:9px; display:flex; border-radius:2px; overflow:hidden; }
.ads-scale-bar i { height:100%; display:block; }
.ads-scale-marker { position:absolute; top:-3px; width:2px; height:15px; background:#0b1018; }
.ads-scale-marker::after { content:''; position:absolute; left:-3px; top:-4px;
  border-left:4px solid transparent; border-right:4px solid transparent; border-top:5px solid #0b1018; }
.ads-scale-legend { display:flex; margin-top:4px; font-size:6.5px; color:#8b9bb0; font-family:var(--mono); }
.ads-scale-legend span { position:relative; text-align:center; }
.ads-scale-legend span b { display:block; font-weight:600; font-size:6.5px; }

/* The stat grid: the same figures the standalone gauge shows, compacted. */
.ads-stats { display:grid; grid-template-columns:repeat(5, 1fr); gap:1px; background:#e0e4ea;
             border:1px solid #e0e4ea; margin-top:8px; }
.ads-stat { background:#fefaf3; padding:4px 5px; min-width:0; }
.ads-stat .l { font-size:6.5px; color:#8b9bb0; text-transform:uppercase; letter-spacing:0.4px;
               white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ads-stat .v { font-size:11px; font-weight:700; color:#0b1018; font-family:var(--mono);
               margin-top:1px; white-space:nowrap; }
.ads-stat .v.up { color:#16a34a; }
.ads-stat .v.down { color:#dc2626; }
.ads-stat .s { font-size:6.5px; color:#9aa7b5; font-family:var(--mono);
               white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* The historical extremes strip. */
.ads-extremes { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin-top:8px; }
.ads-extremes .ex { border-left:2px solid #e0e4ea; padding-left:6px; min-width:0; }
.ads-extremes .ex .l { font-size:6.5px; color:#8b9bb0; text-transform:uppercase; letter-spacing:0.4px;
                       white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ads-extremes .ex .v { font-size:11px; font-weight:700; font-family:var(--mono); margin-top:1px; }
.ads-extremes .ex .d { font-size:6.5px; color:#9aa7b5; font-family:var(--mono); }
/* Animated FREE TIER card — Three.js network background */
/* ==========================================================================
   FREE TIER — the liquid panel
   ==========================================================================
   The structure is:

     .panel-ft-anim   the panel box
       .phead         the heading — ALWAYS ABOVE the canvas
       .ft-stage      the positioned container the canvas fills
         #ft-canvas    the WebGL liquid
         .ft-card      the text, on a dark scrim

   THE HEADING BUG
   The canvas used to be position:absolute with z-index:0 on the PANEL,
   and the renderer was opaque (alpha:false). A positioned box with a
   z-index paints over a static one, so the canvas covered the "FREE
   TIER" heading completely — the heading was in the markup the whole
   time, just painted underneath. The canvas now lives inside
   .ft-stage, which sits below the heading in the flow, so the two
   cannot overlap. The heading is also given its own stacking
   position as a second line of defence.

   THE TEXT LEGIBILITY
   The fluid cycles through saturated indigo/teal, so the text needs
   its own ground. The card carries a dark translucent scrim with a
   blur behind it: the liquid still shows through around the edges
   and behind the glass, but the words sit on something dark enough
   to read at any point in the colour cycle.
   ========================================================================== */

.panel-ft-anim { position:relative; overflow:hidden; display:flex; flex-direction:column; }

/* The heading owns the top strip and paints above everything. */
.panel-ft-anim .phead { position:relative; z-index:2; background:#0b1018; border-bottom:1px solid #1a2330; color:#c8d0dc; }

/* The stage is the canvas's positioned ancestor. It starts BELOW the
   heading, so the canvas can never paint over it. */
/* The stage grows to fill whatever height the grid row gives the
   panel, so the liquid always reaches the bottom edge. */
.ft-stage { position:relative; flex:1 1 auto; min-height:150px; display:flex; align-items:center; justify-content:center; padding:14px 12px; overflow:hidden; }

/* No WebGL: a static gradient carries the panel. */
.ft-stage.ft-no-gl { background:linear-gradient(135deg,#4338ca 0%,#2563eb 45%,#0e7490 100%); }

.panel-ft-anim #ft-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; z-index:0; }

/* The card: a dark glass panel floating on the fluid. */
.panel-ft-anim .ft-card {
  position:relative; z-index:1;
  background:rgba(8,12,20,0.80);
  border:1px solid rgba(255,255,255,0.16);
  border-radius:4px;
  box-shadow:0 8px 28px rgba(11,16,24,0.45);
  color:#e6edf5; text-align:center; padding:16px 20px; min-height:120px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  -webkit-backdrop-filter:blur(10px) saturate(1.25);
  backdrop-filter:blur(10px) saturate(1.25);
}
.panel-ft-anim .ft-card .ft-price-row { display:flex; align-items:baseline; justify-content:center; gap:10px; }
.panel-ft-anim .ft-card .ft-price { color:#fff; font-size:34px; text-shadow:0 2px 12px rgba(0,0,0,0.5); }
/* The label is TEXT, not a chip: a filled green block next to the
   price would read as another button. A small green dot carries the
   "start" signal and the word beside it explains it. */
.panel-ft-anim .ft-card .ft-tag { color:#22c55e; font-size:9px; font-weight:600; letter-spacing:0.08em; display:flex; align-items:center; gap:5px; }
.panel-ft-anim .ft-card .ft-tag::before { content:''; width:5px; height:5px; border-radius:50%; background:#22c55e; box-shadow:0 0 7px rgba(34,197,94,0.85); }
.panel-ft-anim .ft-card .ft-desc { color:#a9bacd; font-size:10px; }

/* The call to action: the brightest thing on the panel, so the eye
   lands on it first. */
.panel-ft-anim .ft-card .ft-btn { border-color:#f29c12; color:#f29c12; background:rgba(242,156,18,0.10); font-weight:600; }
.panel-ft-anim .ft-card .ft-btn:hover { background:#f29c12; color:#0b1018; }
.panel-ft-anim .ft-card .ft-btn.sec { border-color:rgba(255,255,255,0.28); color:#c8d0dc; background:transparent; }
.panel-ft-anim .ft-card .ft-btn.sec:hover { background:rgba(255,255,255,0.14); color:#fff; }

.ft-card { background:#0b1018; color:#c8d0dc; text-align:center; padding:12px; }
.ft-card .ft-price { font-size:24px; font-weight:700; color:#fff; margin:2px 0; }
.ft-card .ft-desc { font-size:9px; color:#8a9aa8; margin:4px 0 8px; }
.ft-card .ft-actions { display:flex; gap:8px; justify-content:center; }
.ft-card .ft-btn { font-size:9px; padding:4px 12px; border:1px solid #6366f1; color:#6366f1; text-decoration:none; cursor:pointer; }
.ft-card .ft-btn:hover { background:#6366f1; color:#fff; }
.ft-card .ft-btn.sec { border-color:#4a5a6a; color:#4a5a6a; }
.ft-card .ft-btn.sec:hover { background:#4a5a6a; color:#fff; }
.ent-card { padding:8px; }
.ent-card .ent-tag { font-size:8px; color:#f29c12; font-weight:600; letter-spacing:0.06em; }
.ent-card .ent-price { font-size:16px; font-weight:700; color:#0b1018; margin-bottom:6px; }
.ent-list { list-style:none; padding:0; margin:0; }
.ent-list li { font-size:8px; color:#4a5a6a; padding:1.5px 0; display:flex; gap:4px; }
.ent-list li .chk { --tick-size: 10px; color:#22c55e; }
.ent-cta { margin-top:8px; font-size:9px; color:#f29c12; text-decoration:none; display:inline-block; border:1px solid #f29c12; padding:3px 10px; cursor:pointer; }
.ent-cta:hover { background:#f29c12; color:#000; }
.news-item { display:flex; flex-direction:column; gap:3px; padding:3px 0 3px 6px; border-left:3px solid #c8d0dc; margin-bottom:4px; }
.news-item:last-child { margin-bottom:0; }
.news-item.neg { border-left-color:#ef4444; }
.news-item.pos { border-left-color:#22c55e; }
.news-item.flat { border-left-color:#8b9bb0; }
.ni-main { display:flex; align-items:center; gap:6px; }
.ni-time { color:#6a7a8a; font-size:8px; width:30px; flex-shrink:0; font-variant-numeric:tabular-nums; }
.ni-topic { font-size:7px; font-weight:600; padding:0 4px; line-height:13px; flex-shrink:0; border:1px solid #e0e4ea; color:#4a5a6a; border-radius:3px; text-transform:uppercase; letter-spacing:0.3px; }
.ni-headline { color:#2a3a4a; flex:1; min-width:0; font-size:8px; text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
a.ni-headline:hover { color:#2563eb; }
.ni-score { font-weight:700; font-size:8px; flex-shrink:0; font-variant-numeric:tabular-nums; }
.ni-score.pos { color:#16a34a; }
.ni-score.neg { color:#dc2626; }
.ni-score.flat { color:#8b9bb0; }
.ni-bar { display:flex; height:3px; border-radius:2px; overflow:hidden; background:#f0f2f4; margin-left:36px; }
.ni-bar i { display:block; height:100%; }
.ni-bar i.neg { background:#ef4444; }
.ni-bar i.neu { background:#c8d0dc; }
.ni-bar i.pos { background:#22c55e; }
.status-bar { height:15px; background:#0b1018; display:flex; align-items:center; justify-content:space-between; padding:0 32px; font-size:9px; color:#4a5a6a; border-top:1px solid #1a2330; }
.status-bar .left { display:flex; gap:12px; }
.status-bar .right { display:flex; gap:12px; }
.status-bar .right a { color:#6a7a8a; text-decoration:none; }
.status-bar .right a:hover { color:#f29c12; }
.disclosure { background:#05080d; color:#4a5a6a; font-size:8px; padding:8px 32px; text-align:center; letter-spacing:0.02em; }

/* ============ RESPONSIVE BREAKPOINTS ============ */
/* 2-column: tablet / narrow desktop. CSS Grid auto-placement keeps the
   row-major reading order: row 1 [1][2], row 2 [3][4], row 3 [5][6], etc.
   Both columns start at the top of their row regardless of how many
   panels each row contains. */
@media (max-width:1399px) {
  .grid-container {
    grid-template-columns:repeat(2, 1fr) !important;
    gap:20px !important;
    padding:24px 32px 32px !important;
  }
}

/* Phone: 1-column, all panels span full width */
@media (max-width:650px) {
  .grid-container {
    grid-template-columns:1fr !important;
    gap:12px !important;
    padding:16px !important;
  }
  .top-bar { padding:0 12px; font-size:8px; flex-wrap:wrap; height:auto; min-height:16px; }
  .header { padding:0 12px; font-size:10px; flex-wrap:wrap; height:auto; min-height:20px; }
  .header .nav { gap:12px; flex-wrap:wrap; }
  .cmd-bar { padding:0 12px; font-size:10px; }
  .ticker { padding:0 12px; }
  .status-bar { padding:0 12px; font-size:8px; flex-wrap:wrap; height:auto; min-height:15px; gap:4px; }
  .disclosure { padding:6px 12px; font-size:7px; }
  .panel { margin-bottom:0; }
  .pbody { padding:6px 8px; }
  .vol-heat svg { width:100%; height:auto; }
  .pkg-grid { gap:2px 6px; }
  .news-item { font-size:7px; }
  .pricing-2x2 { grid-template-columns:1fr; }
  /* ACCUMULATOR: on a phone the panel shares its grid row with nothing, so
     there is no sibling height to defer to — the region takes its natural
     height and shows EVERY published structure instead of scrolling. */
  .panel-acc .acc-rows { flex:0 0 auto; height:auto; overflow-y:visible; scrollbar-gutter:auto; }
  .panel-td .td-rows { flex:0 0 auto; height:auto; overflow-y:visible; scrollbar-gutter:auto; }
  /* PARABOLIC SAR: on a phone the panel shares its grid row with
     nothing, so there is no sibling height to defer to — the region
     takes its natural height and shows EVERY published flip. */
  .panel-sar .sar-rows { flex:0 0 auto; height:auto; overflow-y:visible; scrollbar-gutter:auto; }
  /* The POWER RATIO panel's phone rules live at the END of this file,
     after the base .panel-pr rules. Same specificity, later wins, so
     an override placed earlier is silently ignored — which is what
     happened here: the panel stayed 567px wide on a 390px screen. */
}

/* Phone portrait: stack everything tighter (below 650px) */
@media (max-width:480px) {
  .top-bar .left { flex-wrap:wrap; gap:4px; }
  .header .brand { font-size:9px; }
  .header .nav { gap:8px; }
  .header .nav a { font-size:8px; }
  .ticker-badge { margin-right:16px; }
  .ticker-set { gap:16px; padding-right:16px; }
  .ticker-item { gap:3px; }
  .ticker-item .tk-name { font-size:8px; }
  .ticker-item .tk-price { font-size:8px; }
  .ticker-item .tk-chg { font-size:8px; }
}

/* ============ SITE FOOTER (column-link footer + bottom dark bars) ============ */
.site-footer { background:#0b1018; border-top:1px solid #1a2330; }
.footer-cols { display:flex; flex-wrap:wrap; gap:36px; padding:36px 32px 22px; max-width:1800px; margin:0 auto; }
.footer-col { display:flex; flex-direction:column; gap:7px; min-width:150px; flex:1 1 170px; }
.footer-brand { flex:1 1 300px; }
.footer-col h3 { font-size:9px; font-weight:700; letter-spacing:0.08em; color:#c8d0dc; margin:0 0 4px; text-transform:uppercase; }
.footer-col a { font-size:9px; color:#6a7a8a; text-decoration:none; }
.footer-col a:hover { color:#f29c12; }
.fb-name { display:flex; flex-direction:column; gap:3px; }
.fb-name .fb-l1 { font-size:15px; font-weight:700; color:#f29c12; letter-spacing:0.06em; line-height:1; }
.fb-name .fb-l1 .fb-cn { font-size:12px; font-weight:600; letter-spacing:0.08em; }
.fb-name .fb-l1-link { text-decoration:none; }
.fb-name .fb-l3 { font-size:8px; font-weight:600; color:#8a9aa8; letter-spacing:0.10em; }
/* "AI AGENTS READY" — same highlighted pill as the header, sized for the
   footer's dark background. */
.fb-name .fb-ready {
  align-self:flex-start; display:inline-flex; align-items:center; gap:5px;
  margin-top:2px; padding:1px 8px;
  font-size:8px; font-weight:700; letter-spacing:0.06em;
  color:#f29c12; border:1px solid #f29c12; border-radius:2px;
  background:rgba(242,156,18,0.10);
}
.fb-name .fb-ready .ready-dot {
  width:5px; height:5px; border-radius:50%; background:#22c55e;
  box-shadow:0 0 6px rgba(34,197,94,0.7);
}
.fb-tag { font-size:8px; color:#8a9aa8; line-height:1.6; }
.fb-tm { font-size:8px; color:#6a7a8a; margin-top:6px; line-height:1.5; }

/* ============ STATIC PAGES (about/contact/legal) ============ */
.static-page { max-width:920px; margin:0 auto; padding:44px 32px 64px; color:#2a3a4a; background:#fef7ec; flex:1; }
.static-page h2 { font-size:20px; color:#0b1018; margin:0 0 6px; letter-spacing:-0.01em; }
.static-page .updated { font-size:9px; color:#8b9bb0; margin-bottom:26px; }
.static-page h3 { font-size:13px; color:#0b1018; margin:26px 0 8px; }
/* h4 is a sub-heading of h3, so it must be SMALLER than h3 — the browser
   default (1em = 14px) is larger than the 13px h3 and inverts the hierarchy. */
.static-page h4 { font-size:11px; color:#0b1018; margin:16px 0 4px; font-weight:700; }
.static-page p, .static-page li { font-size:11px; line-height:1.75; color:#4a5a6a; }
.static-page a { color:#2563eb; text-decoration:none; }
.static-page a:hover { text-decoration:underline; }
.static-page ul { margin:6px 0 6px 20px; }
.static-page .legal-note { background:#f4e9d4; border:1px solid #e0e4ea; border-radius:4px; padding:12px 16px; font-size:9px; color:#4a5a6a; margin:18px 0; line-height:1.6; }
.static-page code { font-family:'JetBrains Mono',monospace; font-size:10px; background:#f0f2f4; padding:1px 5px; border-radius:3px; color:#0b1018; }

/* ============ RESEARCH PAGE (research.php) ============ */
/* Wider than .static-page (920px): the page carries a report list and a
   three-channel grid, which need room to breathe. */
.research-page { max-width:1080px; margin:0 auto; padding:44px 32px 64px; color:#2a3a4a; background:#fef7ec; flex:1; }
.research-page h2 { font-size:20px; color:#0b1018; margin:0 0 6px; letter-spacing:-0.01em; }
.research-page h3 { font-size:13px; color:#0b1018; margin:0 0 4px; }
.research-page .updated { font-size:9px; color:#8b9bb0; margin-bottom:22px; }
.research-hero { border-bottom:1px solid #e0e4ea; padding-bottom:18px; margin-bottom:26px; }
.research-hero p { font-size:11px; line-height:1.75; color:#4a5a6a; max-width:76ch; }
.research-hero p + p { margin-top:10px; }
.research-lede { font-size:12px !important; line-height:1.7; color:#2a3a4a !important; border-left:2px solid #f29c12; padding-left:14px; margin-top:14px !important; }

.research-sec { margin-top:34px; }
.research-sec > .sec-head { display:flex; align-items:baseline; gap:10px; margin-bottom:6px; }
.research-sec > .sec-head .rule { flex:1; height:1px; background:#e0e4ea; }
.research-sec > .sec-note { font-size:9px; color:#8b9bb0; margin-bottom:14px; line-height:1.6; }
.research-sec > p { font-size:11px; line-height:1.75; color:#4a5a6a; }
.research-page a { color:#2563eb; text-decoration:none; }
.research-page a:hover { text-decoration:underline; }
.research-page ul { margin:6px 0 6px 20px; }
.research-page li { font-size:11px; line-height:1.75; color:#4a5a6a; }
.research-page code { font-family:'JetBrains Mono',monospace; font-size:10px; background:#f0f2f4; padding:1px 5px; border-radius:3px; color:#0b1018; }

/* ---- report list ---- */
.report-list { border-top:1px solid #e0e4ea; margin-top:4px; }
.report-item { display:flex; gap:16px; padding:14px 0; border-bottom:1px solid #e0e4ea; align-items:flex-start; }
.report-item .rbody { flex:1; min-width:0; }
.report-item .rtitle { font-size:12px; color:#0b1018; font-weight:600; }
.report-item .rdesc { font-size:10px; color:#6a7a8a; line-height:1.65; margin-top:4px; }
.report-item .rmeta { font-size:9px; color:#8b9bb0; margin-top:5px; }
.report-item .rnum { font-size:10px; color:#c8d0dc; font-weight:600; flex:0 0 26px; padding-top:1px; }
.rstatus { flex:0 0 auto; font-size:8px; font-weight:600; letter-spacing:0.05em; padding:2px 7px; border-radius:3px; border:1px solid; white-space:nowrap; }
.rstatus.st-planned { color:#6a7a8a; border-color:#c8d0dc; background:#f0f2f4; }
.rstatus.st-next { color:#b07800; border-color:#f29c12; background:#fdf3e0; }
.rstatus.st-active { color:#1a7f3c; border-color:#22c55e; background:#e9f8ee; }

/* ---- distribution channels ---- */
.channel-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; }
.channel-card { border:1px solid #e0e4ea; border-radius:4px; padding:14px 16px; background:#fff; display:flex; flex-direction:column; }
.channel-card .ch-head { display:flex; align-items:center; gap:7px; margin-bottom:6px; }
.channel-card .ch-name { font-size:11px; font-weight:700; color:#0b1018; }
.channel-card .ch-tag { font-size:8px; letter-spacing:0.05em; padding:1px 5px; border-radius:2px; border:1px solid #c8d0dc; color:#8b9bb0; }
.channel-card .ch-tag.t-live { color:#1a7f3c; border-color:#22c55e; background:#e9f8ee; }
.channel-card .ch-tag.t-soon { color:#b07800; border-color:#f29c12; background:#fdf3e0; }
.channel-card .ch-desc { font-size:10px; line-height:1.65; color:#6a7a8a; flex:1; }
.channel-card .ch-foot { font-size:9px; color:#8b9bb0; margin-top:9px; padding-top:8px; border-top:1px solid #eef0f3; }
.channel-card .ch-foot a { color:#2563eb; }

/* ---- newsletter signup ---- */
/* scroll-margin-top clears the 70px sticky header, so the #newsletter
   anchor target is not scrolled underneath it. */
.signup-panel { border:1px solid #e0e4ea; border-left:3px solid #f29c12; border-radius:4px; background:#fff; padding:18px 20px; scroll-margin-top:84px; }
.signup-panel .sp-title { font-size:13px; color:#0b1018; font-weight:600; margin-bottom:4px; }
.signup-panel .sp-desc { font-size:10px; color:#6a7a8a; line-height:1.65; margin-bottom:12px; }
.signup-form { display:flex; gap:8px; flex-wrap:wrap; align-items:stretch; }
.signup-form input[type=email] { flex:1 1 260px; min-width:0; height:34px; padding:0 11px; font-family:'JetBrains Mono',monospace; font-size:11px; color:#0b1018; background:#fef7ec; border:1px solid #c8d0dc; border-radius:3px; }
.signup-form input[type=email]:focus { outline:none; border-color:#f29c12; background:#fff; }
.signup-form button { height:34px; padding:0 18px; font-family:'JetBrains Mono',monospace; font-size:10px; font-weight:700; letter-spacing:0.06em; color:#fff; background:#0b1018; border:1px solid #0b1018; border-radius:3px; cursor:pointer; }
.signup-form button:hover { background:#f29c12; border-color:#f29c12; color:#0b1018; }
/* Honeypot: off-screen, not display:none — some bots skip hidden inputs. */
.signup-trap { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.signup-fine { font-size:9px; color:#8b9bb0; line-height:1.6; margin-top:10px; }
.signup-fine a { color:#6a7a8a; text-decoration:underline; }
.nl-banner { font-size:10px; line-height:1.65; padding:10px 13px; border-radius:3px; margin-bottom:13px; border:1px solid; }
.nl-banner.t-ok { color:#1a7f3c; border-color:#22c55e; background:#e9f8ee; }
.nl-banner.t-warn { color:#b07800; border-color:#f29c12; background:#fdf3e0; }
.nl-banner.t-error { color:#b02a2a; border-color:#ef4444; background:#fdecec; }
.nl-banner a { color:inherit; text-decoration:underline; }

/* ---- legal note reused on the research page ---- */
.research-page .legal-note { background:#f4e9d4; border:1px solid #e0e4ea; border-radius:4px; padding:12px 16px; font-size:9px; color:#4a5a6a; margin:26px 0 0; line-height:1.6; }

/* ============ PACKAGES PAGE (packages.php) ============ */
.packages-page { max-width:1120px; margin:0 auto; padding:44px 32px 64px; color:#2a3a4a; background:#fef7ec; flex:1; }
.packages-page h2 { font-size:20px; color:#0b1018; margin:0 0 6px; letter-spacing:-0.01em; }
.packages-page h3 { font-size:13px; color:#0b1018; margin:0 0 4px; }
.packages-page .updated { font-size:9px; color:#8b9bb0; margin-bottom:22px; }
.packages-hero { border-bottom:1px solid #e0e4ea; padding-bottom:18px; margin-bottom:26px; }
.packages-hero p { font-size:11px; line-height:1.75; color:#4a5a6a; max-width:78ch; }
.packages-page a { color:#2563eb; text-decoration:none; }
.packages-page a:hover { text-decoration:underline; }

.pkg-status-bar { display:flex; align-items:baseline; gap:9px; margin-top:14px; padding:9px 14px; background:#fff; border:1px solid #e0e4ea; border-left:3px solid #22c55e; border-radius:4px; width:fit-content; }
.pkg-status-bar .psb-count { font-size:17px; font-weight:700; color:#0b1018; }
.pkg-status-bar .psb-label { font-size:10.5px; color:#4a5a6a; }
.pkg-status-bar .psb-asof { font-size:9px; color:#8b9bb0; margin-left:6px; }

.packages-sec { margin-top:34px; }
.packages-sec > .sec-head { display:flex; align-items:baseline; gap:10px; margin-bottom:12px; }
.packages-sec > .sec-head .rule { flex:1; height:1px; background:#e0e4ea; }
.packages-sec > .sec-head .sec-count { font-size:9px; color:#8b9bb0; }

.pkg-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:11px; }
.pkg-card { border:1px solid #e0e4ea; border-radius:4px; background:#fff; padding:13px 15px 12px; display:flex; flex-direction:column; }
.pkg-card-head { display:flex; align-items:baseline; gap:8px; margin-bottom:6px; }
.pkg-card-head .pkg-label { font-family:'JetBrains Mono',monospace; font-size:9px; font-weight:700; letter-spacing:0.05em; flex:0 0 auto; }
.pkg-card-head .pkg-name { font-size:12px; font-weight:600; color:#0b1018; flex:1; min-width:0; }
.pkg-card-head .pkg-status { font-size:7px; font-weight:700; letter-spacing:0.05em; padding:1px 5px; border-radius:2px; flex:0 0 auto; }
.pkg-card-head .pkg-status.ok { color:#22c55e; border:1px solid #22c55e; }
.pkg-card-head .pkg-status.bad { color:#ef4444; border:1px solid #ef4444; }
.pkg-desc { font-size:10px; line-height:1.65; color:#4a5a6a; margin-bottom:9px; }
.pkg-series-head { font-size:8px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:#8b9bb0; margin-bottom:5px; }
.pkg-series { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:10px; flex:1; align-content:flex-start; }
.pkg-series-item { font-family:'JetBrains Mono',monospace; font-size:8.5px; color:#4a5a6a; background:#f0f2f4; border:1px solid #e7eaee; padding:1px 5px; border-radius:2px; white-space:nowrap; }
.pkg-card-foot { display:flex; justify-content:space-between; align-items:center; border-top:1px solid #eef0f3; padding-top:8px; }
.pkg-card-foot .pkg-latency { font-family:'JetBrains Mono',monospace; font-size:8.5px; color:#8b9bb0; }
.pkg-card-foot .pkg-doc { font-size:8px; font-weight:700; letter-spacing:0.05em; color:#2563eb; }

.packages-install { border:1px solid #e0e4ea; border-left:3px solid #f29c12; border-radius:4px; background:#fff; padding:14px 18px; }
.packages-install p { font-size:10.5px; line-height:1.7; color:#4a5a6a; margin:0 0 9px; }
.packages-install pre { background:#0b1018; color:#c8d0dc; font-family:'JetBrains Mono',monospace; font-size:10px; line-height:1.65; padding:12px 14px; border-radius:4px; overflow-x:auto; margin:0 0 11px; }
.packages-install pre code { background:none; padding:0; color:#c8d0dc; font-size:10px; }
.packages-install .packages-note { background:#f4e9d4; border:1px solid #e0e4ea; border-left:3px solid #f29c12; border-radius:3px; padding:10px 13px; font-size:9.5px; line-height:1.65; color:#4a5a6a; margin:11px 0 0; }
.packages-install .packages-note strong { color:#0b1018; }
.packages-access { border:1px solid #e0e4ea; border-radius:4px; background:#fff; padding:14px 18px; }
.packages-access p { font-size:10.5px; line-height:1.7; color:#4a5a6a; margin:0 0 8px; max-width:80ch; }
.packages-access p:last-child { margin-bottom:0; }
.packages-page .legal-note { background:#f4e9d4; border:1px solid #e0e4ea; border-radius:4px; padding:12px 16px; font-size:9px; color:#4a5a6a; margin:30px 0 0; line-height:1.6; }

/* ==========================================================================
 * OK TICK (.chk) — shared by the pricing page and the account platform
 * ==========================================================================
 * The tick used to be the literal "✓" glyph at the surrounding text's own
 * font-size — 10px in the comparison table, 9.5px in the plan cards — so it
 * rendered as a ~6px hairline that was barely legible. It is now a MASKED
 * SVG: the glyph text is hidden and a fat, round-capped stroke is painted
 * in the element's own colour, so the tick is crisp at any size and still
 * inherits the green.
 *
 * The markup still carries "✓" inside .chk, so a browser without mask
 * support falls back to the (now larger) text glyph, and a screen reader
 * still reads the tick.
 *
 * --tick-size sets the painted size per context. It lives on a custom
 * property so each section can set its own size without repeating the
 * mask block: the base rule reads var(--tick-size), and the more specific
 * context rule supplies the value.
 * ====================================================================== */
.chk {
  --tick-size: 13px;
  display: inline-block;
  vertical-align: middle;
  align-self: center;
  flex: 0 0 auto;
  color: #22c55e;
  font-weight: 700;
  font-size: var(--tick-size);  /* text-glyph fallback size */
  line-height: 1;
}
@supports ((-webkit-mask: url("x")) or (mask: url("x"))) {
  .chk {
    font-size: 0;         /* the glyph is replaced by the painted tick */
    line-height: 0;
    width: var(--tick-size);
    height: var(--tick-size);
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 12.8 9.2 19.5 21.5 5.2' fill='none' stroke='black' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 12.8 9.2 19.5 21.5 5.2' fill='none' stroke='black' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
  }
}

/* ============ PRICING PAGE (pricing.php) ============ */
.pricing-page { max-width:1120px; margin:0 auto; padding:44px 32px 64px; color:#2a3a4a; background:#fef7ec; flex:1; }
.pricing-page h2 { font-size:20px; color:#0b1018; margin:0 0 6px; letter-spacing:-0.01em; }
.pricing-page h3 { font-size:13px; color:#0b1018; margin:0 0 4px; }
.pricing-page .updated { font-size:9px; color:#8b9bb0; margin-bottom:22px; }
.pricing-hero { border-bottom:1px solid #e0e4ea; padding-bottom:18px; margin-bottom:26px; }
.pricing-hero p { font-size:11px; line-height:1.75; color:#4a5a6a; max-width:78ch; }
.pricing-hero p + p { margin-top:10px; }
.pricing-lede { font-size:12px !important; line-height:1.7; color:#2a3a4a !important; border-left:2px solid #f29c12; padding-left:14px; margin-top:14px !important; }

.pricing-sec { margin-top:36px; }
.pricing-sec > .sec-head { display:flex; align-items:baseline; gap:10px; margin-bottom:12px; }
.pricing-sec > .sec-head .rule { flex:1; height:1px; background:#e0e4ea; }
.pricing-page a { color:#2563eb; text-decoration:none; }
.pricing-page a:hover { text-decoration:underline; }

/* ---- plan cards ---- */
.plan-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; align-items:stretch; }
.pt-card { border:1px solid #e0e4ea; border-top:3px solid #c8d0dc; border-radius:4px; background:#fff; padding:16px 17px 18px; display:flex; flex-direction:column; position:relative; }
.pt-card .ptag { display:inline-block; align-self:flex-start; font-size:8px; font-weight:700; letter-spacing:0.06em; padding:1px 5px; margin-bottom:7px; border-radius:2px; }
.pt-card .pname { font-size:13px; font-weight:600; color:#0b1018; }
.pt-card .pdesc { font-size:9px; color:#8b9bb0; margin-top:2px; }
.pt-card .pprice { font-size:21px; font-weight:700; color:#0b1018; margin:9px 0 12px; }
.pt-card .pt-list { list-style:none; padding:0; margin:0 0 14px; flex:1; }
.pt-card .pt-list li { font-size:9.5px; color:#4a5a6a; padding:2.5px 0; display:flex; gap:6px; line-height:1.5; }
.pt-card .pt-list .chk { --tick-size: 12px; color:#22c55e; font-weight:700; flex:0 0 auto; }
.pt-card .pcta { display:block; text-align:center; font-size:9px; font-weight:700; letter-spacing:0.06em; padding:7px 10px; border:1px solid; border-radius:3px; text-decoration:none; }
.pt-card .pcta:hover { text-decoration:none; }
.pt-card .prec { position:absolute; top:16px; right:15px; font-size:7px; font-weight:600; letter-spacing:0.04em; color:#8b9bb0; }
.pt-card.pc-free { border-top-color:#22c55e; }
.pt-card.pc-free .ptag { background:#22c55e; color:#fff; }
.pt-card.pc-free .pcta { color:#22c55e; border-color:#22c55e; }
.pt-card.pc-free .pcta:hover { background:#22c55e; color:#fff; }
.pt-card.pc-dev { border-top-color:#6366f1; }
.pt-card.pc-dev .ptag { background:#6366f1; color:#fff; }
.pt-card.pc-dev .pcta { color:#6366f1; border-color:#6366f1; }
.pt-card.pc-dev .pcta:hover { background:#6366f1; color:#fff; }
.pt-card.pc-team { border-top-color:#f29c12; }
.pt-card.pc-team .ptag { background:#f29c12; color:#000; }
.pt-card.pc-team .pcta { color:#b07800; border-color:#f29c12; }
.pt-card.pc-team .pcta:hover { background:#f29c12; color:#000; }
.pt-card.pc-ent { border-top-color:#0b1018; background:#0b1018; }
.pt-card.pc-ent .pname, .pt-card.pc-ent .pprice { color:#c8d0dc; }
.pt-card.pc-ent .pdesc { color:#8b9bb0; }
.pt-card.pc-ent .ptag { background:#f29c12; color:#000; }
.pt-card.pc-ent .pt-list li { color:#a8b4c4; }
.pt-card.pc-ent .pcta { color:#f29c12; border-color:#f29c12; }
.pt-card.pc-ent .pcta:hover { background:#f29c12; color:#000; }
.pt-card.pc-ent .prec { color:#f29c12; }

.pricing-foot { font-size:9.5px; color:#8b9bb0; line-height:1.65; margin-top:14px; }
.pricing-foot a { color:#6a7a8a; text-decoration:underline; }

/* ---- comparison table ---- */
.cmp-wrap { overflow-x:auto; border:1px solid #e0e4ea; border-radius:4px; background:#fff; }
.cmp { width:100%; border-collapse:collapse; font-size:10px; min-width:520px; }
.cmp th { text-align:left; font-size:9px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:#8b9bb0; background:#f7f1e6; padding:9px 11px; border-bottom:1px solid #e0e4ea; }
.cmp td { padding:8px 11px; border-bottom:1px solid #eef0f3; color:#4a5a6a; vertical-align:middle; }
.cmp tbody tr:last-child td { border-bottom:none; }
.cmp td.yes { text-align:center; width:74px; }
/* The "not included" dash. It was #c8d0dc at 10px — legible when the tick
   beside it was a 6px hairline, invisible once the tick became a bold
   15px stroke. Darkened and slightly enlarged so the column still reads
   as a deliberate absence rather than a rendering gap. */
.cmp td.no { text-align:center; width:74px; color:#a9b6c6; font-size:12px; }
.cmp td.yes .chk { --tick-size: 15px; color:#22c55e; font-weight:700; }

/* ======================================================================
 * PARABOLIC SAR SIGNALS
 *
 * The row is ONE line: date, name, code, the flip, the new stop, the
 * distance to it, the close, and the size. It is the CRYPTO TREND
 * SIGNALS panel's density (one line per row, not two) applied to the
 * TD SEQUENTIAL panel's table shape.
 *
 * The grid template is FIXED, never 1fr: with a flexible track the
 * header row and the data rows resolved that track differently (the
 * label text and the value text differ in width), so every right-
 * aligned label sat a few px off its values. A fixed-width track makes
 * both grids resolve identically.
 *
 * The widths are measured against the panel's real inner width:
 * 30 + 74 + 32 + 13 + 46 + 40 + 46 + 137 + 46 = 464, plus eight 6px
 * gaps = 512px, inside a ~560px panel with a few px of slack.
 * ====================================================================== */
.panel-sar { display:flex; flex-direction:column; }
.panel-sar .pbody { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
.panel-sar .sar-head {
  flex:0 0 auto;
  color:#6a7a8a;
  font-weight:600;
  letter-spacing:0.05em;
  border-bottom:1px solid #e0e4ea;
  padding-bottom:3px;
  margin-bottom:1px;
}
/* The row region is a flex slot with ZERO content contribution, so a
   long list never inflates the grid track it sits in - otherwise the
   dead space would move into the sibling panel instead of being
   filled. The basis is the panel's minimum footprint. */
.panel-sar .sar-rows {
  flex:1 1 140px;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:#c8d0dc transparent;
  scrollbar-gutter:stable;
}
.panel-sar .sar-rows::-webkit-scrollbar { width:6px; }
.panel-sar .sar-rows::-webkit-scrollbar-thumb { background:#c8d0dc; border-radius:3px; }
.panel-sar .sar-rows::-webkit-scrollbar-track { background:transparent; }
.panel-sar .sar-note { flex:0 0 auto; font-size:7px; color:#8b9bb0; margin-top:5px; line-height:1.4; }
.panel-sar .sar-legend { flex:0 0 auto; display:flex; flex-wrap:wrap; gap:2px 9px; font-size:7px; color:#8b9bb0; margin-top:3px; line-height:1.3; }
.panel-sar .sar-legend span { display:inline-flex; align-items:center; gap:2px; }
.panel-sar .phead .sar-shown { font-variant-numeric:tabular-nums; }

.panel-sar .sar-grid {
  display:grid;
  /* Fractions, not pixels - the same reasoning as the TD SEQUENTIAL
     table above. The proportions are the ones the fixed-pixel design
     had (30:74:32:13:46:40:46:137:46). */
  /* The minimums are the HEADING widths (8px JetBrains Mono, 0.6em
     advance): a track must be at least as wide as the heading above
     it, or the heading is cut in half. */
  grid-template-columns:
    minmax(25px,0.65fr) minmax(21px,1.59fr) minmax(21px,0.69fr)
    minmax(16px,0.28fr) minmax(16px,0.99fr) minmax(21px,0.86fr)
    minmax(26px,0.99fr) minmax(42px,2.95fr) minmax(32px,0.99fr);
  gap:3px 6px;
  align-items:center;
  font-size:8px;
  font-family:var(--mono);
  font-variant-numeric:tabular-nums;
  padding:0;
  line-height:1.15;
}
.panel-sar .sar-head { font-family:var(--mono); padding:1px 0 2px; overflow:hidden; }
/* The rows scroll, so the scroller takes a 10px scrollbar. The header
   sits OUTSIDE the scroller, so without this it was laid out 10px
   wider than the body and every column drifted. */
.panel-sar .sar-head { padding-right:10px; }
.panel-sar .sar-head span { letter-spacing:0.02em; min-width:0; overflow:hidden; text-overflow:ellipsis; }

.panel-sar .sar-date { color:#8b9bb0; font-variant-numeric:tabular-nums; overflow:hidden; text-overflow:ellipsis; min-width:0; white-space:nowrap; }
.panel-sar .sar-name { color:#1b2733; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.panel-sar .sar-code { font-weight:700; color:#0b1018; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.panel-sar .sar-sar { color:#0b1018; font-weight:600; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.panel-sar .sar-px { color:#4a5a6a; text-align:right; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.panel-sar .sar-avg { color:#8b9bb0; text-align:right; overflow:hidden; text-overflow:ellipsis; min-width:0; }
/* The DIST number: the new stop's distance from the close in ATRs.
   Signed, so the side is visible without a legend lookup - a positive
   number means the stop sits above the close (a short flip). */
.panel-sar .sar-dist { font-weight:700; font-size:8px; line-height:9px; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.panel-sar .sar-dist.is-buy { color:#22c55e; }
.panel-sar .sar-dist.is-sell { color:#ef4444; }
.panel-sar .sar-dist.is-none { color:#c4ccd6; font-weight:400; }
/* The flip marker: filled green triangle for a buy, filled red for a
   sell. */
.panel-sar .sar-mark { font-style:normal; font-size:8px; line-height:9px; }
.panel-sar .sar-sig { max-width:100%; overflow:hidden; }
.panel-sar .sar-mark.is-buy { color:#22c55e; }
.panel-sar .sar-mark.is-sell { color:#ef4444; }
/* The notional cell: the FIGURE owns the right of the cell, the BAR
   owns the left. They sit side by side rather than stacked, so the
   bar never runs underneath the digits. The pale ghost is the stock's
   5-day average notional and the solid fill is the signal day's
   notional, so a fill that reaches past the ghost is an unusually big
   session for that name. Both bars grow LEFT-TO-RIGHT from a common
   left edge, so their lengths are directly comparable. */
.panel-sar .sar-not { display:flex; align-items:center; gap:5px; overflow:hidden; }
.panel-sar .sar-not b { flex:0 0 34px; font-weight:600; color:#0b1018; font-size:8px; line-height:9px; text-align:right; }
.panel-sar .sar-nbar { position:relative; display:block; flex:1 1 auto; min-width:0; height:4px; background:#eef1f5; border-radius:1px; overflow:hidden; }
/* The track clips the bars, so a bar can never paint outside its own
   cell - the 5-day average can exceed the biggest signal-day notional
   in the list. */
.panel-sar .sar-nbar i { position:absolute; left:0; top:0; bottom:0; display:block; max-width:100%; }
.panel-sar .sar-nbar .sar-ghost { background:#c7d6ea; }
.panel-sar .sar-nbar .sar-fill { background:#14b8a6; }

/* ======================================================================
 * POWER RATIO SIGNALS
 *
 * The layout mirrors the PARABOLIC SAR panel above: a fixed-width grid
 * whose column tracks are stated once, so the header and the body rows
 * resolve to identical geometry and no column drifts.
 *
 * Tracks:
 *   74 (name) + 30 (code) + 116 (the ratio strip) + 20 (trigger count)
 *   + 137 (notional) + 46 (5-day average) = 423, plus five 6px gaps
 *   = 453px, inside a ~560px panel with room to spare.
 *
 * The strip is an SVG at 116 x 11 with preserveAspectRatio="none", so
 * it fills its track exactly at every breakpoint. The strip's internal
 * geometry (slot pitch, bar widths) is fixed in the SVG's own viewBox,
 * so the bars keep their proportions however the element is scaled.
 * ====================================================================== */
.panel-pr { display:flex; flex-direction:column; }
.panel-pr .pbody { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
/* The table wrapper caps and centres the table inside the panel. The
   panel spans the grid row so the last row has no gap, but the TABLE
   stays a regular width - the extra space is the panel's frame, not
   the chart's. */
.panel-pr .pr-table {
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  width:100%;
}
.panel-pr .pr-head {
  flex:0 0 auto;
  color:#6a7a8a;
  font-weight:600;
  letter-spacing:0.05em;
  border-bottom:1px solid #e0e4ea;
  padding-bottom:3px;
  margin-bottom:1px;
  font-family:var(--mono);
  /* The header is INSIDE the scroller, so it sticks while the 25 rows
     scroll under it. Being inside the scroller is also what keeps the
     header and the rows in ONE box: the header used to sit outside,
     and was then laid out against the panel's width while the rows
     were laid out against the scroller's width minus the gutter, so
     the two grids centred 5px apart and every column drifted.
     The background is the panel's own, so the rows do not show
     through the labels as they pass under them. */
  position:sticky;
  top:0;
  z-index:2;
  background:#fefaf3;
}
/* The row region is a flex slot with ZERO content contribution, so a
   long list never inflates the grid track it sits in - otherwise the
   dead space would move into the sibling panel instead of being
   filled. The basis is the panel's minimum footprint. */
.panel-pr .pr-rows {
  flex:1 1 140px;
  /* A cap on the region's height, so the panel cannot grow to fit all
     25 rows and the scrollbar always appears. 200px holds about 11 of
     the 17px rows, and the rest are reached by scrolling - the same
     behaviour as the TD SEQUENTIAL and PARABOLIC SAR panels. */
  max-height:200px;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:#c8d0dc transparent;
  scrollbar-gutter:stable;
}
.panel-pr .pr-rows::-webkit-scrollbar { width:6px; }
.panel-pr .pr-rows::-webkit-scrollbar-thumb { background:#c8d0dc; border-radius:3px; }
.panel-pr .pr-rows::-webkit-scrollbar-track { background:transparent; }
.panel-pr .pr-note { flex:0 0 auto; font-size:7px; color:#8b9bb0; margin:5px 0 0; line-height:1.4; }
.panel-pr .pr-legend { flex:0 0 auto; display:flex; flex-wrap:wrap; gap:2px 9px; font-size:7px; color:#8b9bb0; margin:3px 0 0; line-height:1.3; }
.panel-pr .pr-legend span { display:inline-flex; align-items:center; gap:2px; }
.panel-pr .phead .pr-shown { font-variant-numeric:tabular-nums; }

.panel-pr .pr-grid {
  display:grid;
  /* name | code | trig | noise stack | signal stack | notional | 5d avg
     Sized for an ordinary grid cell: the six fixed tracks take 321px
     and the gaps 36px, so the name column takes the rest - about 180px
     in the 3-column layout and 208px in the 2-column one. */
  /* Fractions, not pixels - the same reasoning as the TD SEQUENTIAL,
     PARABOLIC SAR and NETWORK VALUATION tables. The fixed-pixel
     version needed 435px and the panel's content width falls to
     275px in the 2-column layout, so the 5D AVG column was cut off.
     The name column is the greedy one (it holds the longest text);
     the other tracks are fixed-width and give way when squeezed. */
  grid-template-columns:
    minmax(44px,1.40fr) minmax(22px,0.30fr) minmax(20px,0.18fr)
    minmax(27px,0.32fr) minmax(33px,0.32fr) minmax(44px,1.05fr)
    minmax(33px,0.32fr);
  gap:3px 6px;
  align-items:center;
  font-size:8px;
  font-family:var(--mono);
  font-variant-numeric:tabular-nums;
  padding:0;
  line-height:1.15;
}
.panel-td .td-grid > span,
.panel-sar .sar-grid > span {
  /* A value must never WRAP: the row is one line tall by design, and
     a wrapped value makes it two lines and breaks the density. */
  white-space:nowrap;
  /* A grid item's automatic minimum size is its min-content size, so
     without min-width:0 a wide value (TD's LEVELS is 55px of text)
     forces its track wider than its share and pushes the table out
     of the panel again - the heading and the rows then disagree.

     overflow:hidden makes a cell that does not fit clip exactly like
     the heading does, so the two behave the same way. */
  min-width:0;
  overflow:hidden;
}
.panel-pr .pr-name { color:#1b2733; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.panel-pr .pr-code { font-weight:700; color:#0b1018; }
/* The trigger count: how many of the six windows reached the noise
   threshold. Red when at least one did. */
.panel-pr .pr-trig { font-weight:700; color:#c4ccd6; text-align:center; }
/* The TRIG header is 4 characters in a mono face, so it needs more
   room than its track first did - it spilled into the NOISE column
   and the two read as "TRIGNOISE". */
.panel-pr .pr-head span:nth-child(3) { letter-spacing:0; }
.panel-pr .pr-head span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.panel-pr .pr-trig.is-on { color:#ef4444; }

/* THE STACKS: one SVG per series, holding the six window bars stacked
   vertically - shortest horizon at the top, longest at the bottom -
   each bar coloured by its window.

   The SVG is stretched to the cell width with preserveAspectRatio
   "none", so the horizontal scale is relative and the vertical one is
   fixed: the bars keep their proportions at any width, and the dashed
   trigger line lands on the same pixel in every stack.

   The rows scroll, so the scroller takes a 10px scrollbar; the header
   sits OUTSIDE the scroller, so without the padding-right the header
   would be 10px wider than the body and every column would drift. */
.panel-pr .pr-stack-cell { display:block; min-width:0; line-height:0; }
.panel-pr .pr-stack { display:block; width:100%; height:16px; overflow:visible; }
/* A hairline between the rows, so two adjacent stacks read as two
   stocks and not as one taller block. */
.panel-pr .pr-row + .pr-row { margin-top:1px; }

/* The notional cell: the FIGURE owns the right of the cell, the BAR
   owns the left. They sit side by side rather than stacked, so the
   bar never runs underneath the digits. The pale ghost is the stock's
   5-day average notional and the solid fill is the signal day's
   notional, so a fill that reaches past the ghost is an unusually big
   session for that name. Both bars grow LEFT-TO-RIGHT from a common
   left edge, so their lengths are directly comparable. */
.panel-pr .pr-not { display:flex; align-items:center; gap:5px; }
.panel-pr .pr-not b { flex:0 0 34px; font-weight:600; color:#0b1018; font-size:8px; line-height:9px; text-align:right; }
.panel-pr .pr-nbar { position:relative; display:block; flex:1 1 auto; min-width:0; height:4px; background:#eef1f5; border-radius:1px; overflow:hidden; }
/* The track clips the bars, so a bar can never paint outside its own
   cell - the 5-day average can exceed the biggest signal-day notional
   in the list. */
.panel-pr .pr-nbar i { position:absolute; left:0; top:0; bottom:0; display:block; max-width:100%; }
.panel-pr .pr-nbar .pr-ghost { background:#c7d6ea; }
.panel-pr .pr-nbar .pr-fill { background:#a3e635; }
.panel-pr .pr-avg { color:#8b9bb0; text-align:right; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.panel-pr .pr-code { overflow:hidden; text-overflow:ellipsis; min-width:0; }
.panel-pr .pr-not b { flex:0 0 36px; }
/* The legend keys: the marks are visual, so the key is visual too. */
.panel-pr .pr-key { display:inline-block; width:6px; height:6px; border-radius:1px; }
/* The trigger TICK is a solid ink hairline, so its key is one too. */
.panel-pr .pr-key.is-tick { background:#0b1018; height:9px; width:1px; border-radius:0; }

/* ---- enterprise ---- */
.ent-panel { display:flex; gap:24px; border:1px solid #e0e4ea; border-left:3px solid #0b1018; border-radius:4px; background:#fff; padding:18px 20px; }
.ent-copy { flex:1; min-width:0; }
.ent-copy p { font-size:11px; line-height:1.75; color:#4a5a6a; margin:0 0 12px; max-width:66ch; }
.ent-copy ul { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:3px 16px; }
.ent-copy li { font-size:10px; color:#4a5a6a; display:flex; gap:6px; }
.ent-copy .chk { --tick-size: 13px; color:#22c55e; font-weight:700; }
.ent-action { flex:0 0 250px; }
.ent-action .ent-from { font-size:19px; font-weight:700; color:#0b1018; margin-bottom:5px; }
.ent-action p { font-size:9.5px; color:#8b9bb0; line-height:1.6; margin-bottom:12px; }
.ent-action .ent-cta { display:inline-block; font-size:9px; font-weight:700; letter-spacing:0.06em; color:#0b1018; background:#f29c12; border:1px solid #f29c12; padding:7px 14px; border-radius:3px; text-decoration:none; }
.ent-action .ent-cta:hover { background:#0b1018; border-color:#0b1018; color:#fff; text-decoration:none; }

/* ---- FAQ ---- */
.faq { border-top:1px solid #e0e4ea; }
.faq-item { padding:13px 0; border-bottom:1px solid #e0e4ea; }
.faq-q { font-size:11.5px; font-weight:600; color:#0b1018; margin-bottom:5px; }
.faq-a { font-size:10.5px; line-height:1.75; color:#4a5a6a; max-width:84ch; }
.faq-a a { color:#2563eb; }

.pricing-cta { border:1px solid #e0e4ea; border-left:3px solid #f29c12; border-radius:4px; background:#fff; padding:14px 18px; }
.pricing-cta p { font-size:11px; line-height:1.75; color:#4a5a6a; margin:0; }
.pricing-cta a { color:#2563eb; }
.pricing-page .legal-note { background:#f4e9d4; border:1px solid #e0e4ea; border-radius:4px; padding:12px 16px; font-size:9px; color:#4a5a6a; margin:32px 0 0; line-height:1.6; }
.pricing-page .legal-note a { color:#6a7a8a; text-decoration:underline; }

@media (max-width:760px) {
  .ent-panel { flex-direction:column; gap:16px; }
  .ent-action { flex:none; }
}

/* ============ DOCS TREE (/docs/) ============ */
/* Two columns: a sticky sidebar of the tree, and the page body. */
.docs-layout { display:flex; align-items:flex-start; gap:0; max-width:1240px; margin:0 auto; padding:0 32px 64px; }

.docs-nav { flex:0 0 216px; width:216px; position:sticky; top:86px; padding:34px 20px 34px 0; align-self:flex-start; }
.docs-nav-group { margin-bottom:20px; }
.docs-nav-head { font-size:8px; font-weight:700; letter-spacing:0.09em; text-transform:uppercase; color:#8b9bb0; margin-bottom:7px; }
.docs-nav-link { display:block; font-size:11px; color:#4a5a6a; text-decoration:none; padding:3px 0 3px 9px; border-left:2px solid transparent; line-height:1.4; }
.docs-nav-link:hover { color:#0b1018; border-left-color:#e0e4ea; text-decoration:none; }
.docs-nav-link.is-active { color:#0b1018; font-weight:600; border-left-color:#f29c12; }
.docs-nav-foot { border-top:1px solid #e0e4ea; padding-top:12px; display:flex; flex-direction:column; gap:5px; }
.docs-nav-foot a { font-size:10px; color:#6a7a8a; text-decoration:none; }
.docs-nav-foot a:hover { color:#f29c12; }

.docs-main { flex:1 1 auto; min-width:0; padding:34px 0 0 28px; border-left:1px solid #e0e4ea; }
.docs-crumb { font-size:9px; color:#8b9bb0; margin-bottom:8px; }
.docs-crumb a { color:#8b9bb0; text-decoration:none; }
.docs-crumb a:hover { color:#f29c12; }
.docs-crumb span { margin:0 4px; }
.docs-title { font-size:22px; color:#0b1018; margin:0 0 4px; letter-spacing:-0.01em; }
.docs-blurb { font-size:11px; color:#6a7a8a; line-height:1.6; margin-bottom:22px; max-width:74ch; }

/* The body is a two-column grid: prose is capped at a readable 80ch in the
   first column, while tables and code blocks may span into the second. A
   five-column table at 80ch wraps package names mid-word, so tables get
   the full width and prose keeps its measure. */
.docs-body { display:grid; grid-template-columns:minmax(0,80ch) minmax(0,1fr); column-gap:28px; font-size:11px; line-height:1.75; color:#4a5a6a; }
.docs-body > * { grid-column:1; }
.docs-body > table, .docs-body > .docs-wide { grid-column:1 / -1; }
.docs-body h2 { font-size:14px; color:#0b1018; margin:30px 0 8px; padding-bottom:5px; border-bottom:1px solid #e0e4ea; }
.docs-body h2:first-child { margin-top:0; }
.docs-body h3 { font-size:12px; color:#0b1018; margin:20px 0 6px; }
.docs-body h4 { font-size:11px; color:#0b1018; margin:16px 0 4px; font-weight:700; }
.docs-body p { margin:0 0 10px; }
.docs-body ul, .docs-body ol { margin:6px 0 12px 20px; }
.docs-body li { margin-bottom:4px; }
.docs-body a { color:#2563eb; text-decoration:none; }
.docs-body a:hover { text-decoration:underline; }
.docs-body code { font-family:'JetBrains Mono',monospace; font-size:10px; background:#f0f2f4; padding:1px 5px; border-radius:3px; color:#0b1018; }
.docs-body pre { grid-column:1 / -1; background:#0b1018; color:#c8d0dc; font-family:'JetBrains Mono',monospace; font-size:10px; line-height:1.65; padding:13px 15px; border-radius:4px; overflow-x:auto; margin:8px 0 14px; }
.docs-body pre code { background:none; padding:0; color:#c8d0dc; font-size:10px; }
.docs-body .docs-note { background:#f4e9d4; border:1px solid #e0e4ea; border-left:3px solid #f29c12; border-radius:3px; padding:11px 14px; margin:12px 0 16px; font-size:10px; line-height:1.65; }
.docs-body .docs-note strong { color:#0b1018; }
.docs-body table { width:100%; border-collapse:collapse; margin:8px 0 16px; font-size:10px; table-layout:auto; }
.docs-body th { text-align:left; font-size:9px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:#8b9bb0; background:#f7f1e6; padding:7px 9px; border:1px solid #e0e4ea; }
.docs-body td { padding:7px 9px; border:1px solid #e0e4ea; color:#4a5a6a; vertical-align:top; }
.docs-body td code { font-size:9.5px; }
/* A package or series name is one token — never let it break mid-word. */
.docs-body td:first-child code { white-space:nowrap; }
.docs-body .method { font-family:'JetBrains Mono',monospace; font-size:9px; font-weight:700; letter-spacing:0.04em; color:#1a7f3c; }
.docs-body .method.post { color:#2563eb; }

.docs-pager { display:flex; justify-content:space-between; gap:16px; margin-top:38px; padding-top:16px; border-top:1px solid #e0e4ea; }
.docs-pager-link { font-size:10px; color:#4a5a6a; text-decoration:none; }
.docs-pager-link:hover { color:#f29c12; }
.docs-pager-link.next { margin-left:auto; }
.docs-pager-link .dir { color:#f29c12; font-weight:700; }
.docs-main .legal-note { background:#f4e9d4; border:1px solid #e0e4ea; border-radius:4px; padding:12px 16px; font-size:9px; color:#4a5a6a; margin:26px 0 0; line-height:1.6; }

@media (max-width:900px) {
  .docs-layout { flex-direction:column; padding:0 20px 48px; }
  .docs-nav { position:static; width:auto; flex:none; padding:24px 0 8px; border-bottom:1px solid #e0e4ea; margin-bottom:8px; width:100%; }
  .docs-nav-group { margin-bottom:14px; }
  .docs-main { padding:20px 0 0; border-left:none; }
}

/* ======================================================================
 * POWER RATIO — phone (max-width:650px)
 *
 * These MUST come after the base .panel-pr rules above: same
 * specificity, later wins. An override placed earlier is silently
 * ignored, and that is what left the panel 567px wide on a 390px
 * screen.
 *
 * On a phone the table drops the notional BAR (the figure is the
 * number that matters and there is no room for both) and the stacks
 * narrow to 40px. The columns then sum to less than the screen, so
 * the name column takes the slack.
 * ====================================================================== */
@media (max-width:650px) {
  .panel-pr .pr-table { max-width:none; }
  /* The GRID TEMPLATE lives in the <=760px band at the end of this
     file, which owns it at every width where the panel is too narrow
     for the desktop template - not just at the phone width. */
  /* On a phone the region shows EVERY row: a scroll box inside a
     scrolling page is a poor experience on a touch screen. This is
     what the TD SEQUENTIAL and PARABOLIC SAR panels do too. */
  .panel-pr .pr-rows {
    flex:0 0 auto;
    height:auto;
    max-height:none;
    overflow-y:visible;
    scrollbar-gutter:auto;
  }
  .panel-pr .pr-head { position:static; }
}

/* ======================================================================
 * NARROW-WIDTH LAYOUT (max-width:760px)
 *
 * Everything here MUST come after the base rules: same specificity,
 * later wins. An override placed earlier is silently ignored - which
 * is what left the POWER RATIO panel 567px wide on a 390px screen,
 * and the NETWORK VALUATION phone template unreachable.
 *
 * WHY A BAND AT ALL: the page grid is three columns above 1400px and
 * two columns below it. The narrowest panel the two-column layout
 * produces is 250px of content (at a 651px viewport), and the
 * NETWORK VALUATION table needs 286px of tracks to show nine columns.
 * So from 761px down the tables have to give way, and below 760px
 * even the two-column minimums are too much.
 *
 * THE MINIMUMS ARE HEADING WIDTHS. A track must be at least as wide
 * as the heading that sits above it, or the heading is cut in half -
 * and a cut heading is exactly the defect this whole change exists
 * to remove. The VALUES inside a cell are allowed to ellipsise
 * instead: a clipped price range is a smaller loss than a clipped
 * column heading.
 *
 * The heading also clips inside its own track, exactly like the
 * values under it. The rows live in a scroller with overflow-x:hidden
 * so they can never paint outside the panel; the heading sat outside
 * that scroller with no clip at all, so it hung over the panel's edge
 * into the next panel. That was the "different behaviour to the
 * actual data rows" the user reported.
 * ====================================================================== */

/* --- TD SEQUENTIAL ------------------------------------------------ */
@media (max-width:760px) {
  .panel-td .td-grid {
    /* QUAL (a filled/hollow diamond) is a decorative mark, so it is
       the first column to go when the panel is narrow: the other
       seven carry information the reader cannot reconstruct.

       The remaining minimums are the HEADING widths: NAME 21, CODE
       21, SIG 16, ZONE 21, LEVELS 32, NOTIONAL 42, 5D AVG 32 = 205,
       plus six 4px gaps = 229, inside the 248px the narrowest panel
       of the two-column layout has. */
    grid-template-columns:
      minmax(21px,1.56fr) minmax(21px,0.64fr) minmax(16px,0.30fr)
      minmax(21px,0.36fr) minmax(21px,1.48fr) minmax(32px,1.84fr)
      minmax(42px,2.86fr) minmax(32px,0.96fr);
    gap:3px 4px;
  }
}

/* --- PARABOLIC SAR ------------------------------------------------ */
@media (max-width:760px) {
  .panel-sar .sar-grid {
    /* DIST is the distance from the close to the new stop, in ATRs.
       The SAR engine uses a fixed acceleration factor of 4.0, so the
       published DIST is ALWAYS +/-4.0 - a constant column that carries
       no information. It is the first to go when the panel is narrow.

       The remaining minimums are the HEADING widths: DATE 21, NAME
       21, CODE 21, SIG 16, SAR 16, CLOSE 26, NOTIONAL 42, 5D AVG 32
       = 195, plus seven 3px gaps = 216, inside the 248px the
       narrowest panel of the two-column layout has. */
    grid-template-columns:
      minmax(25px,0.65fr) minmax(21px,1.59fr) minmax(21px,0.69fr)
      minmax(16px,0.28fr) minmax(16px,0.99fr) minmax(21px,0.86fr)
      minmax(26px,0.99fr) minmax(42px,2.95fr) minmax(32px,0.99fr);
    gap:3px 3px;
  }
}

/* --- NETWORK VALUATION -------------------------------------------- *
 * Nine columns of valuation multiples do not fit a 250px panel, not
 * even at their minimums. The panel drops the four multiples and
 * the market cap and keeps TICKER, Z, SIGNAL and PRICE - the same
 * four columns it keeps on a phone. PRICE is the ninth child, so it
 * is placed explicitly into the fourth track rather than leaving a
 * hole where the hidden columns were. */
@media (max-width:760px) {
  .panel-nv .nv-cols,
  .panel-nv .nv-row {
    grid-template-columns:
      minmax(27px,0.94fr) minmax(22px,0.81fr) minmax(27px,2.21fr)
      minmax(23px,1.02fr);
  }
  .panel-nv .nv-h:nth-child(4), .panel-nv .nv-h:nth-child(5),
  .panel-nv .nv-h:nth-child(6), .panel-nv .nv-h:nth-child(7),
  .panel-nv .nv-h:nth-child(8),
  .panel-nv .nv-row > .nv-num:nth-child(4), .panel-nv .nv-row > .nv-num:nth-child(5),
  .panel-nv .nv-row > .nv-num:nth-child(6), .panel-nv .nv-row > .nv-num:nth-child(7),
  .panel-nv .nv-row > .nv-num:nth-child(8) { display:none; }
  .panel-nv .nv-row > .nv-px { grid-column:4; }
  .panel-nv .nv-h:nth-child(9) { grid-column:4; }
}

/* --- POWER RATIO --------------------------------------------------- *
 * The desktop template's minimums add up to 217px plus 36px of gaps
 * = 253px, which is more than the 240px the narrowest panel of the
 * two-column layout has (250px of content at a 651px viewport, minus
 * the 10px scrollbar gutter).
 *
 * So below 760px the panel drops the notional BAR - the figure is
 * the number that matters and there is no room for both - and the
 * fixed tracks shrink to their HEADING widths. The name column takes
 * the slack. */
@media (max-width:760px) {
  .panel-pr .pr-grid {
    /* The HEADING widths: CODE 22, TRIG 20, NOISE 27, SIGNAL 33,
       NOTIONAL 44, 5D AVG 33, plus six 4px gaps = 234, inside the
       248px the narrowest panel of the two-column layout has. */
    grid-template-columns:minmax(30px,1fr) 22px 20px 27px 33px 44px 33px;
    gap:3px 4px;
  }
  .panel-pr .pr-nbar { display:none; }
  .panel-pr .pr-not b { flex:1 0 auto; text-align:right; }
}

/* ======================================================================
 * HEADER / ROWS PARITY
 *
 * The column headings of the TD SEQUENTIAL and PARABOLIC SAR tables
 * sit OUTSIDE their scroll regions, so each header reserves the same
 * gutter the scroller reserves, to keep the two grids on the same
 * width. On a phone the scroller releases its gutter
 * (scrollbar-gutter:auto, overflow-y:visible), so the header must
 * release the compensation too - otherwise the header is 10px
 * narrower than the rows and every column drifts.
 *
 * NETWORK VALUATION keeps its 10px compensation at every width: its
 * rows keep scrollbar-gutter:stable at every width, so the heading
 * must reserve the same 10px at every width too.
 *
 * These rules MUST come after the base rules: same specificity,
 * later wins.
 * ====================================================================== */
@media (max-width:650px) {
  .panel-td .td-head,
  .panel-sar .sar-head { padding-right:0; }
}

/* ---- MARKET REGIME OVERVIEW -------------------------------------------
 * One row per indicator panel: a coloured dot, the indicator name, and
 * its regime word on the right in the regime's own colour. Grouped into
 * sections so the eye scans the page's signals in one pass.
 * ====================================================================== */
.panel-regime { display:flex; flex-direction:column; }
.panel-regime .pbody { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
.panel-regime .rg-sec { margin-bottom:7px; }
.panel-regime .rg-sec:last-of-type { margin-bottom:0; }
.panel-regime .rg-sec-head { font-size:8px; font-weight:700; letter-spacing:0.08em;
    color:#8b9bb0; border-bottom:1px solid #e0e4ea; padding-bottom:2px; margin-bottom:2px; }
.panel-regime .rg-row { display:flex; align-items:center; gap:7px; padding:3px 0;
    border-bottom:1px solid #f0f2f4; }
.panel-regime .rg-row:last-of-type { border-bottom:none; }
.panel-regime .rg-dot { flex:0 0 auto; width:7px; height:7px; border-radius:50%; }
.panel-regime .rg-name { flex:0 1 auto; min-width:0; font-family:var(--mono);
    font-size:8px; color:#4a5a6a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.panel-regime .rg-label { margin-left:auto; flex:0 0 auto; font-family:var(--mono);
    font-size:8px; font-weight:700; letter-spacing:0.03em; white-space:nowrap; }

/* ====================================================================== *
 * HEADER BARS BETWEEN 651px AND 960px — the rows stop overflowing
 * ====================================================================== *
 *
 * THE BUG
 * -------
 * The four header rows are FIXED-HEIGHT single-line bars:
 *
 *     .top-bar   16px    .ticker   16px
 *     .header    20px    .cmd-bar  18px
 *
 * Each is a flex row with `justify-content:space-between` and
 * `flex-wrap:nowrap`. When the viewport got narrow enough that the row's
 * content no longer fit side by side, the flex items shrank, the TEXT
 * inside them wrapped onto a second line, and the row — whose height did
 * NOT change, because it is a fixed `height` — painted that second line
 * over the row beneath it.
 *
 * Measured on the live site (JetBrains Mono loaded):
 *
 *     width    row            content ends   row bottom   spill
 *     940px   .header (3rd)        57             52        +5px
 *     880px   .header                57             52        +5px
 *     700px   .top-bar (1st)        22             16        +6px
 *     651px   .header                71             52       +19px
 *     650px   all                   —              —         0px
 *
 * The band 651px-960px was the broken one. Below 650px the existing
 * phone rule (`height:auto` + `flex-wrap:wrap`) let the rows GROW, so
 * they were fine — which is why the layout looked correct again once
 * the window was narrowed past the phone breakpoint, and why the
 * breakage looked like it came and went.
 *
 * THE FIX
 * -------
 * Two parts, and both are needed:
 *
 *   1. Every bar stays ONE line. `white-space:nowrap` stops the text
 *      wrapping, and `overflow:hidden` on the bar guarantees that
 *      nothing can paint outside its own box, whatever else happens.
 *      The row can no longer spill into its neighbour, at ANY width.
 *
 *   2. As the width shrinks, the LOWEST-PRIORITY content is dropped,
 *      so one line always fits. In order:
 *
 *        <=960px   the brand tagline ("· QUANTITATIVE DATA
 *                  INFRASTRUCTURE") — the least useful text in the bar.
 *        <=900px   the nav gap tightens 24px -> 14px.
 *        <=820px   the tape summary ("N PACKAGES · 4 PRICING TIERS ·
 *                  FREE TIER") — the tape itself already shows this.
 *        <=700px   the "AI AGENTS READY" badge — the brand wordmark
 *                  itself is worth more than the badge.
 *
 * The brand wordmark, the nav, the account links and the LIVE badge are
 * kept at every width; only the decorative parts are sacrificed.
 *
 * These rules must come AFTER the base bar rules (same specificity,
 * later wins) and they are scoped to `min-width:651px` so the phone
 * band below 650px keeps its own, already-working rules.
 * ====================================================================== */
@media (min-width:651px) {
  /* One line, always. */
  .top-bar .left, .top-bar .right,
  .header .brand, .header .nav,
  .cmd-bar { white-space:nowrap; }

  /* A bar can never paint over the bar below it. */
  .top-bar, .header { overflow:hidden; }

  /* The brand and the left cluster may give up space; the nav and the
     account links never do — they are the parts a reader navigates by. */
  .header .brand { flex:0 1 auto; min-width:0; overflow:hidden; }
  .header .nav { flex:0 0 auto; }
  .top-bar .left { flex:0 1 auto; min-width:0; overflow:hidden; }
  .top-bar .right { flex:0 0 auto; }
}

@media (min-width:651px) and (max-width:960px) {
  .header .brand .brand-sub { display:none; }
}

@media (min-width:651px) and (max-width:900px) {
  .header .nav { gap:14px; }
}

@media (min-width:651px) and (max-width:820px) {
  .top-bar .left .tf-summary { display:none; }
}

@media (min-width:651px) and (max-width:700px) {
  .header .brand .brand-ready { display:none; }
}
