/* GemsRadar — copy trade bot review. Started from the OpsPilot dashboard look;
   sizes now follow one type / spacing / radius scale (the tokens below) instead of the reference shot's pixels. */

/* Comfortaa (SIL OFL, assets/fonts/OFL.txt), self-hosted: the same per-script subsets Google Fonts serves, so a page
   downloads only the scripts it uses and no longer waits on a render-blocking stylesheet from fonts.googleapis.com.
   The page preloads the latin and Vietnamese files (tools/build.mjs). */
@font-face { font-family: Comfortaa; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/comfortaa-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Comfortaa; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/comfortaa-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Comfortaa; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/comfortaa-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
/* Russian pages: Nunito (SIL OFL, assets/fonts/OFL-Nunito.txt), round like Comfortaa but with upright Cyrillic letters
   (Comfortaa's т and д look hand-written); the wordmark stays Comfortaa */
@font-face { font-family: Nunito; font-style: normal; font-weight: 300 700; font-display: swap; size-adjust: 104%; src: url(/assets/fonts/nunito-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Nunito; font-style: normal; font-weight: 300 700; font-display: swap; size-adjust: 104%; src: url(/assets/fonts/nunito-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  /* colour */
  --page: #181818;
  --frame: #181818;
  --card: #0c0c0c;
  --raise: #191919;
  --item: #131313;
  --item-line: #1e1e1e;
  --line: #2a2a2a;
  --text: #fff;
  --muted: #a2a1a1;
  --dim: #8b8b8b;
  --faint: #7e7e7e;

  --red: #d42f2f;
  --red-hover: #e23b3b;
  --red-text: #ef4b55;  /* red words on the dark cards: 5:1 and more (--red itself is 4:1 there) */
  --cell-on: #d22e30;
  --cell-off: #171717;

  /* Security marks: status colours, never shown without their icon and label */
  --ok: #fff;
  --ok-bg: #262626;
  --warn: #e9a21a;
  --warn-bg: #261d0b;
  --bad: #ef4b55;
  --bad-bg: #2a1015;

  /* type scale (Comfortaa runs large: these sit one step below the usual 14/16) */
  --fs-2xs: 11px;   /* axis labels, counters, the language code: labels, never a line to read */
  --fs-xs: 12px;    /* captions, secondary lines, dates, sources, table headers: the smallest reading size */
  --fs-sm: 13px;    /* controls, table cells, body */
  --fs-md: 14px;    /* emphasised body */
  --fs-lg: 16px;    /* card titles, KPI values */
  --fs-xl: 24px;    /* page title */

  /* spacing (4 px grid), radius, control sizes */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 28px; --s8: 32px;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-pill: 999px;
  --h-ctl: 32px;    /* tabs, icon buttons */
  --h-ctl-sm: 28px; /* in-card controls */
  --h-row: 48px;    /* table rows */

  --pad-x: 28px;    /* page gutters */
  --pad-y: 20px;
  --app-w: 1760px;  /* widest the content grows; the page background runs full width beyond it */
  --font: Comfortaa, Quicksand, Arial, "Helvetica Neue", Helvetica, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Comfortaa has no Chinese: the Latin letters and digits stay Comfortaa, the characters come from the system's Simplified Chinese font */
html:lang(zh) { --font: Comfortaa, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
html:lang(ru) { --font: Nunito, Comfortaa, Arial, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--page); scrollbar-color: #343434 var(--page); }
body {
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-sm);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* left: 0 — without it the box sits where its text would have gone, past the right edge in a long label (ru, es), and the page scrolled sideways */
/* !important: a component rule on the same element (.hello-line p) must never make the hidden text visible or wide again */
.sr { position: absolute !important; left: 0; width: 1px !important; height: 1px !important; margin: -1px; padding: 0 !important; border: 0; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ===== App: full page, edge to edge; content stops growing at --app-w on very wide screens ===== */
.app {
  width: 100%;
  max-width: var(--app-w);
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x) var(--s8);
  background: var(--frame);
}

/* ===== Top bar ===== */
/* the bar stays on screen (desktop) so the section tabs are always at hand; it gains a hairline once the page scrolls */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  margin: calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) 0; padding: var(--s3) var(--pad-x);
  background: var(--frame); transition: box-shadow .2s;
}
.topbar.stuck { box-shadow: 0 1px 0 #262626, 0 10px 24px rgba(0, 0, 0, .35); }
/* the logo is the G of the name: the wordmark sits right against it, on the G's baseline */
.brand { display: flex; align-items: center; gap: 1px; flex: none; will-change: transform; } /* own layer: its endless motion repaints only itself */
.logo { width: 32px; height: 32px; flex: none; overflow: visible; }
.brand-text { display: block; margin-left: -4px; transform: translateY(3.5px); font-family: Comfortaa, Quicksand, Arial, sans-serif; }   /* the wordmark, in every language */
.brand-text b { display: block; font-size: 26px; line-height: 1; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }

/* Wordmark carries the logo's light: each cycle, once the pulse lands in the eye and it flares, a glint runs on
   through "Gems" (ember red over white) and then "Radar" (white-hot over the ember gradient). Same 3.6 s rhythm
   and 1.4 s start as .lg-pulse. On entrance the name is written out of the logo, left to right, after the brush. */
.wm span {
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-repeat: no-repeat; background-size: 300% 100%, 100% 100%; background-position: 100% 0, 0 0;
  animation: lgShine 15s 1.4s infinite;
}
.wm .wm-a { background-image: linear-gradient(100deg, transparent 42%, #ff5d5f 50%, transparent 58%), linear-gradient(#fff, #fff); }
.wm .wm-b {
  background-image: linear-gradient(100deg, transparent 42%, #fff 50%, transparent 58%), linear-gradient(90deg, #e8353e, #ff5d5f);
  animation-delay: 1.71s; /* half a glint travel later, so the glint leaving "Gems" is the one entering "Radar" */
}
@keyframes lgShine {
  0%, 15.2% { background-position: 100% 0, 0 0; animation-timing-function: linear; }
  19.2%, 100% { background-position: 0 0, 0 0; }
}
.anim .wm, .ready .wm {
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 0 0 / 250% 100% no-repeat;
  mask: linear-gradient(90deg, #000 40%, transparent 60%) 0 0 / 250% 100% no-repeat;
}
.anim .wm { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.ready .wm { -webkit-mask-position: 0 0; mask-position: 0 0; transition: -webkit-mask-position .9s var(--ease) 1.05s, mask-position .9s var(--ease) 1.05s; }

/* ===== Logo motion (spiral G) =====
   One 15 s rhythm (the motion itself as quick as before, then a rest): the wind trails outside the bowl flow, a light pulse is sucked down the stroke (accelerating, like
   anything caught in a whirlpool) and lands in the eye, which flares.
   Hover twists the whirl around its eye. transform-origin for .lg-whirl/.lg-eye is the eye, set inline by the generator. */
.lg-whirl, .lg-eye { transform-box: view-box; }
.lg-glow { transform-box: fill-box; transform-origin: center; }

.lg-trails .t1 { opacity: .6; stroke-dasharray: 34 10 8 48; animation: lgFlow 15s linear infinite; }
.lg-trails .t2 { opacity: .35; stroke-dasharray: 20 18 6 56; animation: lgFlow 10s linear infinite; }
@keyframes lgFlow { to { stroke-dashoffset: -100; } }

.lg-pulse { stroke-dasharray: 9 200; stroke-dashoffset: 9; animation: lgPulse 15s 1.4s infinite; }
@keyframes lgPulse {
  0% { stroke-dashoffset: 9; animation-timing-function: cubic-bezier(.55, 0, .9, .55); }
  14.9%, 100% { stroke-dashoffset: -100; }
}
.lg-glow { opacity: .45; animation: lgFlare 15s 1.4s infinite; }
@keyframes lgFlare {
  0%, 14% { opacity: .45; transform: scale(1); }
  15.6% { opacity: 1; transform: scale(1.5); }
  24%, 100% { opacity: .45; transform: scale(1); }
}

/* off screen (app.js marks .brand.paused once the top bar scrolls away on phones) the endless motion stops,
   so a visitor reading further down costs the phone no animation work; it carries on when the logo is back */
.brand.paused .lg-trails path, .brand.paused .lg-pulse, .brand.paused .lg-glow, .brand.paused .wm span { animation-play-state: paused; }

.lg-whirl { transition: transform .8s cubic-bezier(.3, 1.5, .45, 1); }
.lg-eye { transition: filter .3s; }
.brand:hover .lg-whirl { transform: rotate(-18deg); }
.brand:hover .lg-eye { filter: drop-shadow(0 0 3px #fff); }

/* entrance, on the page's .anim -> .ready sequence: the brush paints the G from its terminal into the eye,
   then the eye ignites and the wind picks up */
.anim .lg-reveal, .ready .lg-reveal { stroke-dasharray: 101 101; }
.anim .lg-reveal { stroke-dashoffset: 101; }
.ready .lg-reveal { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.45, 0, .25, 1) .2s; }
.anim .lg-eye { transform: scale(0); }
.ready .lg-eye { transform: none; transition: transform .55s cubic-bezier(.3, 1.8, .5, 1) 1.15s, filter .3s; }
.anim .lg-trails { opacity: 0; }
.ready .lg-trails { opacity: 1; transition: opacity .8s 1.05s; }

/* Section tabs written like the wordmark: plain grey words; the page you are on is in "Radar"'s ember with the same glint
   running through it (lgShine, on a 5 s cycle) and an ember hairline under it; hovering runs one white glint through a word */
.tabs { display: flex; gap: var(--s7); }
.tabs a {
  position: relative; display: flex; align-items: center; height: var(--h-ctl);
  font-size: var(--fs-md); font-weight: 700; white-space: nowrap;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-image: linear-gradient(100deg, transparent 42%, #fff 50%, transparent 58%), linear-gradient(#8e8e8e, #8e8e8e);
  background-size: 300% 100%, 100% 100%; background-repeat: no-repeat; background-position: 100% 0, 0 0;
}
.tabs a:hover { background-position: 0 0, 0 0; transition: background-position .8s linear; }
.tabs a.active {
  background-image: linear-gradient(100deg, transparent 42%, #fff 50%, transparent 58%), linear-gradient(90deg, #e8353e, #ff5d5f);
  animation: lgShine 5s .3s infinite; will-change: transform;
}
.tabs a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: linear-gradient(90deg, rgba(232, 53, 62, 0), #e8353e, rgba(255, 93, 95, 0)); }

.actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: var(--h-ctl); height: var(--h-ctl); border-radius: var(--r-sm); background: var(--card);
  transition: background .2s;
}
/* the language menu of the top bar (render.js langMenu): the current code on the button, the languages below */
.lang { position: relative; }
.lang-code { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .4px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; min-width: 150px; padding: 6px;
  background: #121212; border: 1px solid #262626; border-radius: var(--r-md); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; height: 30px; padding: 0 10px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 600; color: #d6d6d6; white-space: nowrap; }
.lang-menu a:hover { background: #1c1c1c; color: #fff; }
.lang-menu a[aria-current="true"] { color: #fff; background: #1f1f1f; }
.lang-menu a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--red); }
.lang.open .icon-btn { background: #fff; color: #000; }

.icon-btn:hover { background: #141414; }
.icon-btn svg { width: 16px; height: 16px; }

/* ===== Title ===== */
.hello { margin-top: var(--s4); }
.hello h1 { font-size: var(--fs-xl); line-height: 1.2; font-weight: 700; letter-spacing: -.2px; }
.hello p { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
/* the scoring formula in one line, so "6 criteria" is never a mystery */
.hello .method { margin-top: 4px; font-size: var(--fs-xs); line-height: 1.5; color: var(--dim); }
/* the home page's title: one thin line over the Top 3 (what the site is, how it scores, a link to how), so the first
   screen still opens on the Top 3; a line too long for the window ends in "…" */
.hello.hello-line { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-top: 2px; white-space: nowrap; }
.hello.hello-line h1 { flex: none; font-size: var(--fs-sm); line-height: 1.3; font-weight: 700; letter-spacing: 0; color: #e6e6e6; }
.hello.hello-line p { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-xs); line-height: 1.3; color: var(--dim); }
.hello-line a { color: #cfcfcf; text-decoration: underline; text-decoration-color: #4a4a4a; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.hello-line a:hover { color: #fff; text-decoration-color: #fff; }
.hello-line + .row { margin-top: 10px; }
@media (max-width: 640px) { .hello.hello-line { flex-wrap: wrap; row-gap: 2px; margin-top: var(--s3); white-space: normal; } .hello.hello-line p:not(.sr) { overflow: visible; } }
/* one muted line under a ranking: the Open buttons are referral links */
.ref-note { margin-top: var(--s3); font-size: var(--fs-2xs); line-height: 1.5; color: var(--dim); }
.ref-note a { color: #bdbdbd; text-decoration: underline; text-decoration-color: #444; text-underline-offset: 2px; }
.ref-note a:hover { color: #fff; }
.lcards + .ref-note { padding: 0 2px; }

/* ===== About (tools/build.mjs aboutBody): the score as six tiles across the page, each with its weight, the question it
   answers and its parts with their share (a bar each); then four short cards side by side: data, news, referral links, risk ===== */
.ab-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.ab-head h2 { font-size: var(--fs-lg); scroll-margin-top: 80px; }
.ab-total { font-size: var(--fs-xs); color: var(--dim); }
.ab-lead { max-width: 980px; margin-top: var(--s2); font-size: var(--fs-sm); line-height: 1.65; color: #cfcfcf; }
.ab-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: var(--s4); }
.ab-g { padding: 14px 16px 16px; border-radius: var(--r-md); background: #111; box-shadow: inset 0 0 0 1px #1c1c1c; }
.ab-gh { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); color: #fff; }
.ab-gh .ci { flex: none; width: 15px; height: 15px; color: var(--muted); }
.ab-gh em { margin-left: auto; font-style: normal; font-size: var(--fs-lg); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--red-text); }
.ab-gq { margin-top: 6px; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.ab-parts { display: grid; gap: 7px; margin-top: 12px; }
.ab-parts li { display: grid; grid-template-columns: minmax(0, 1fr) 72px 30px; align-items: center; gap: 10px; font-size: var(--fs-xs); line-height: 1.3; color: #cfcfcf; }
.ab-parts span { min-width: 0; }   /* a long part name (ru) wraps: these are the words of the method, nothing to cut */
.ab-parts i { height: 4px; border-radius: 2px; background: #262626; overflow: hidden; }
.ab-parts i b { display: block; height: 100%; border-radius: 2px; background: var(--red); }
.ab-parts small { font-size: var(--fs-2xs); text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
/* short cards side by side (About under the score, and the whole Privacy page) */
.ab-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.ab-i h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); scroll-margin-top: 80px; }
.ab-i h2 .ci { flex: none; width: 15px; height: 15px; color: var(--muted); }
.ab-i p { margin-top: var(--s2); font-size: var(--fs-xs); line-height: 1.65; color: #bdbdbd; }
@media (max-width: 1400px) { .ab-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .ab-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ab-groups, .ab-info { grid-template-columns: minmax(0, 1fr); } }

/* ===== Cards ===== */
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: var(--s4); }
.row-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.card { position: relative; padding: var(--s4); background: var(--card); border-radius: var(--r-lg); scroll-margin-top: 68px; }
.card h2 { font-size: var(--fs-lg); line-height: 1.2; font-weight: 700; }
.card .sub { margin-top: var(--s1); font-size: var(--fs-xs); line-height: 1.4; color: var(--dim); }

.view-all {
  position: absolute; top: 12px; right: 10px;
  display: flex; align-items: center; gap: 6px;
  height: var(--h-ctl-sm); padding: 0 var(--s2); border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 600; color: #d6d6d6;
  transition: background .2s, color .2s;
}
.view-all svg { width: 12px; height: 12px; transition: transform .2s; }
.view-all:hover { background: #151515; color: #fff; }
.view-all:hover svg { transform: translateX(2px); }

.flash { animation: flash 1.4s var(--ease); }
/* the one error state a static page can have: its scripts did not load (app.js) */
.err { margin-top: var(--s4); padding: 10px 14px; border-radius: var(--r-md); background: var(--bad-bg); border: 1px solid #3a141a; font-size: var(--fs-sm); line-height: 1.45; color: #ff8a92; }
@keyframes flash { 0%, 35% { box-shadow: 0 0 0 2px rgba(212, 47, 47, .75); } 100% { box-shadow: 0 0 0 2px rgba(212, 47, 47, 0); } }

/* ===== Bot logo ===== */
.av {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: #1c1c1c;
}
.av img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.av.light { background: #fff; }
.av.light img, .av.fit img { width: 74%; height: 74%; object-fit: contain; transform: none; }
.av.letter { background: linear-gradient(135deg, #e8353e, #cf2833); font-size: var(--fs-sm); font-weight: 700; color: #fff; }
.av.lg { width: 40px; height: 40px; }
.av.lg.letter { font-size: var(--fs-lg); }

/* ===== Top 3 (home): three bots, each a six-sided stone (render.js top3) ===== */
.top3-card { display: flex; flex-direction: column; container: top3 / inline-size; }
/* the head stays one line in every language: a sub too long for it ends in "…" (its title holds all of it) */
.top3-card > .card-head { flex-wrap: nowrap; }
.top3-card > .card-head > div { min-width: 0; }
.top3-card #top3Sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top3-card > .card-head > .view-all { flex: none; white-space: nowrap; }
.sort-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s3); }
.sort-chips button {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: var(--h-ctl-sm); padding: 0 12px; border-radius: var(--r-pill);
  background: var(--raise); border: 1px solid #232323;
  font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.sort-chips button:hover { color: #fff; border-color: #343434; }
.sort-chips button[aria-checked="true"] { background: #fff; border-color: #fff; color: #000; }
.sort-chips small { font-size: var(--fs-2xs); font-weight: 700; opacity: .85; }
.sort-chips .ci { flex: none; width: 11px; height: 11px; margin-left: -1px; color: #7a7a7a; transition: color .2s; }
.sort-chips .ck-s { display: none; }
/* seven chips with icons in one row: a narrow card takes the short labels (Tổng, Copy) and tighter chips */
/* (a 1240 px window: the card is about 590 px, and the seven chips must still fit one row in every language) */
@container top3 (max-width: 760px) {
  .sort-chips { gap: 3px; }
  .sort-chips button { gap: 3px; padding: 0 6px; font-size: 11.5px; }
  .sort-chips .ck-l { display: none; }
  .sort-chips .ck-s { display: inline; }
}
.sort-chips button:hover .ci { color: #cfcfcf; }
.sort-chips button[aria-checked="true"] .ci { color: var(--red); }
/* not enough room for all seven chips with their weights: drop the weights */
@container top3 (max-width: 860px) { .sort-chips small { display: none; } }
/* phones: tighter chips so the seven fit on two rows */
@container top3 (max-width: 440px) {
  .sort-chips { gap: 5px; }
  .sort-chips button { padding: 0 9px; }
}
@container top3 (max-width: 330px) {
  .sort-chips button { padding: 0 7px; }
}
/* three tiles that share the card's height with the news beside it: rank, logo, name, score and Open on the first line,
   the six criteria as one ruled strip under it, the stone at the end of the tile */
.t3s { flex: 1; display: flex; flex-direction: column; gap: 8px; margin-top: var(--s4); }
.t3 { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; min-width: 0; padding: 12px 12px 12px 14px; position: relative; border-radius: 14px;
  background: linear-gradient(180deg, #131313, #0d0d0d); box-shadow: inset 0 0 0 1px #1d1d1d; cursor: pointer; transition: box-shadow .2s; }
/* the whole tile opens the bot dialog (app.js [data-bot]) */
.t3s .t3:hover { box-shadow: inset 0 0 0 1px #303030; }
/* #1 stands out a little: a faint ember behind its stone, a dim red edge with a soft light running round it */
.t3s .t3.r1 { background: radial-gradient(38% 120% at 94% 50%, rgba(232, 53, 62, .13), rgba(232, 53, 62, 0) 70%), linear-gradient(180deg, #141213, #0d0c0c);
  box-shadow: inset 0 0 0 1px rgba(232, 53, 62, .2); }
.t3s .t3.r1:hover { box-shadow: inset 0 0 0 1px rgba(232, 53, 62, .38); }
@property --t3a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.t3.r1::before { content: ""; position: absolute; inset: 0; z-index: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--t3a), rgba(255, 140, 128, 0) 0 68%, rgba(255, 140, 128, .4) 82%, rgba(255, 140, 128, 0) 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: t3Ring 7s linear infinite; will-change: transform; }
@keyframes t3Ring { to { --t3a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .t3.r1::before { animation: none; } }
/* Open sits right after the score, not at the far end */
.t3-info { display: grid; grid-template-columns: fit-content(78%) minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 10px; min-width: 0; }
.t3-dots { display: none; }
.t3-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.t3-rank { flex: none; width: 24px; font-size: 30px; line-height: 1; font-weight: 700; text-align: center; color: #bdbdbd; }
.t3.r1 .t3-rank { background: radial-gradient(circle at 40% 35%, #fff 0, #ffd9d0 12%, #ff5d5f 32%, #e8353e 65%, #8a1219 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t3-n { flex: 0 1 auto; display: flex; flex-direction: column; min-width: 0; }
.t3-n .bn { font-size: var(--fs-lg); font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.t3-n small { font-size: var(--fs-xs); color: var(--dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.t3-s { flex: none; margin-left: 4px; line-height: 1; white-space: nowrap; }
.t3-s b { font-size: 24px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.t3-s b small { margin-left: 2px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0; color: var(--dim); }
.t3-body { min-width: 0; width: 84px; }
.t3-stone { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto; overflow: visible; }
.t3-grid polygon, .t3-grid line { fill: none; stroke: #1c1c1c; }
.t3-grid .out { stroke: #2a2a2a; }
.t3-shape { transform-origin: 160px 130px; }
.t3-shape .bloom { fill: var(--red); opacity: .35; }
.t3.r1 .t3-shape .bloom { opacity: .55; }
.t3-shape .face { stroke: #ffb3a7; stroke-opacity: .75; stroke-width: 1.2; stroke-linejoin: round; }
.t3-shape .facet { stroke: #fff; stroke-opacity: .18; stroke-width: .8; }
.t3-shape .table { fill: #fff; fill-opacity: .09; stroke: #fff; stroke-opacity: .24; stroke-width: .8; }
.t3-shape .sheen { fill: #fff; opacity: .22; }
.t3-shape .dot { fill: #fff; opacity: .85; }
.t3-shape .pick { fill: #fff; }
.t3-lab .ln { fill: var(--dim); font-size: 15px; }
.t3-lab .ln.long { font-size: 12.5px; }
.t3-lab .ln.xlong { font-size: 11px; }
.t3-lab .lv { fill: #fff; font-size: 17px; font-weight: 700; }
.t3-lab .hl .ln { fill: #fff; }
.t3-lab .hl .lv { fill: var(--red-text); }
.t3-cta { display: flex; gap: 6px; }
/* the strip: six fixed columns on hairlines, one grey for every icon, the score the only strong mark, the real figure under it */
/* the three wordy columns (security, the weakest thing users report, features) take the width the tile has to spare, up to
   a strip of 66em, so their figures are not cut short beside an empty stretch */
.t3-strip { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(6.2em, 1.6fr) minmax(9.4em, 1.75fr) minmax(7.6em, 1fr) 5.2em 4.8em 4.6em;
  justify-content: start; max-width: 66em; margin: 0; font-size: 10px; }
.t3-strip > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .4em; min-width: 0; padding: 0 .5em 0 .65em; box-shadow: inset 1px 0 0 #222; cursor: default; }
.t3-strip > div:first-child { padding-left: 0; box-shadow: none; }
.t3-strip dt { grid-column: 1; grid-row: 1; line-height: 0; }
.t3-strip .ci { display: block; width: 1em; height: 1em; color: #6a6a6a; transition: color .15s; }
.t3-strip dd { display: contents; }
.t3-strip dd b { grid-column: 2; grid-row: 1; font-size: 1.2em; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; transition: color .15s; }
.t3-strip dd span { grid-column: 1 / -1; grid-row: 2; margin-top: 1px; line-height: 1.25; color: #808080; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color .15s; }
.t3-strip dd i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; vertical-align: 1px; }
.t3-strip .on .ci, .t3-strip .on b { color: var(--red-text); }
/* pointing at a criterion lights its corner of the stone: the axis, the corner's dot grows into a glowing bead (the chosen
   one's bead swells); pointing at the row warms the stone's bloom */
.t3-strip > div.hot .ci, .t3-strip > div.hot b { color: #fff; }
.t3-strip > div.hot.on .ci, .t3-strip > div.hot.on b { color: #ff6b6b; }
.t3-strip > div.hot span { color: #c9c9c9; }
.t3 .t3-grid line { transition: stroke .15s; }
.t3 .t3-grid line.hot { stroke: #6a6a6a; }
.t3 .t3-shape .dot { transform-box: fill-box; transform-origin: center; transition: transform .2s var(--ease), filter .2s; }
.t3 .t3-shape .dot.hot { transform: scale(3.2); opacity: 1; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 4px #ff5d5f); }
.t3 .t3-shape .pick { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
.t3 .t3-shape .pick.hot { transform: scale(1.6); }
.t3 .t3-shape .bloom { transition: opacity .3s; }
.t3:hover .t3-shape .bloom { opacity: .5; }
.t3.r1:hover .t3-shape .bloom { opacity: .75; }
/* a narrow card (phones): the three bots side by side, swiped one at a time, the next one peeking in; each card shows the
   name and score, the stone, the strip in two lines of three, the buttons last; dots under them say which one is shown */
@container top3 (max-width: 560px) {
  /* the head in one line (the sub goes: the pressed chip already says the criterion), the chips in one swipeable row */
  .top3-card > .card-head { flex-wrap: nowrap; align-items: center; }
  .top3-card #top3Sub { display: none; }
  .top3-card .card-head a.view-all { white-space: nowrap; }
  .sort-chips { flex-wrap: nowrap; margin: 10px calc(-1 * var(--s4)) 0; padding: 0 var(--s4); overflow-x: auto; scrollbar-width: none; }
  .sort-chips::-webkit-scrollbar { display: none; }
  .t3s { flex-direction: row; gap: 10px; margin: var(--s3) calc(-1 * var(--s4)) 0; padding: 0 var(--s4) 2px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--s4); scrollbar-width: none; }
  .t3s::-webkit-scrollbar { display: none; }
  .t3 { flex: 0 0 86%; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; border: 0; border-radius: 14px; scroll-snap-align: start;
    background: linear-gradient(180deg, #141414, #0f0f0f); box-shadow: inset 0 0 0 1px #1e1e1e; }
  .t3s .t3.r1 { background: radial-gradient(60% 40% at 50% 34%, rgba(232, 53, 62, .14), rgba(232, 53, 62, 0) 70%), linear-gradient(180deg, #141213, #0d0c0c); }
  .t3-info { display: contents; }
  .t3-n { flex: 1 1 auto; }
  .t3-body { order: 1; align-self: center; width: min(52%, 140px); }
  .t3-strip { order: 2; grid-template-columns: 1fr 1.45fr 1.1fr; row-gap: 10px; }
  .t3-strip dd span { white-space: normal; }
  .t3-strip > div:nth-child(3n + 1) { padding-left: 0; box-shadow: none; }
  .t3-cta { order: 3; margin-top: auto; }
  .t3-cta .t3-btn { flex: 1 1 auto; }
  .t3-dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--s3); }
  .t3-dots i { width: 6px; height: 6px; border-radius: 3px; background: #333; transition: width .25s var(--ease), background .25s; }
  .t3-dots i.on { width: 18px; background: var(--red); }
}
.t3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; transition: background .2s, box-shadow .2s; }
.t3-btn svg { width: 11px; height: 11px; }
.t3-btn.solid { background: #fff; color: #000; }
.t3-btn.solid:hover { background: #e6e6e6; }
.t3.r1 .t3-btn.solid { background: var(--red); color: #fff; }
.t3.r1 .t3-btn.solid:hover { background: var(--red-hover); }
.t3-btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px #2c2c2c; }
.t3-btn.ghost:hover { box-shadow: inset 0 0 0 1px #4a4a4a; }

/* ===== Side card (home, beside the Top 3): volume by chain, the latest bot news, security in one line ===== */
/* one column; the news list takes any height the Top 3 adds */
.live { display: flex; flex-direction: column; gap: 14px; }
.lblk-news { flex: 1; }
.live .lives { margin-top: 0; }
.lblk { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 80px; border-radius: var(--r-md); }
.lblk + .lblk { padding-top: 14px; border-top: 1px solid #1d1d1d; }
.lblk-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lblk-h > div { min-width: 0; }
.lblk-h h2 { font-size: var(--fs-lg); line-height: 1.25; font-weight: 700; }
.lblk-h h3 { font-size: var(--fs-md); line-height: 1.3; font-weight: 700; }
.lblk-h .sub { margin: 0; font-size: var(--fs-xs); color: var(--dim); white-space: nowrap; }
.lblk-h > div .sub { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.lblk-h > .lnk, .lblk-h > .sub { flex: none; }
.lnk { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: var(--fs-xs); font-weight: 600; color: #d6d6d6; white-space: nowrap; transition: color .2s; }
.lnk svg { width: 12px; height: 12px; }
.lnk:hover { color: #fff; }
/* the range buttons (1 day, 7 days) in the head of the chain block; the rows sit in a wrapper that leaves the layout alone */
.seg.seg-xs { flex: none; align-self: center; padding: 2px; }
.seg.seg-xs button { height: 22px; padding: 0 9px; font-size: var(--fs-2xs); font-weight: 700; }
.live-chains { display: contents; }
/* a chain's last 7 days (render.js chainWeek, app.js): a small chip by the pointer while a row is pointed at */
.live-row { cursor: default; outline-offset: -2px; }
.cw-pop {
  position: fixed; z-index: 45; display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 9px; border-radius: 7px; pointer-events: none;
  background: #191919; box-shadow: 0 0 0 1px #2e2e2e, 0 6px 16px rgba(0, 0, 0, .5); white-space: nowrap;
  opacity: 0; transition: opacity .12s;
}
.cw-pop.on { opacity: 1; }
.cw { display: block; flex: none; }
.cw path { fill: #b8343c; }
.cw path.last { fill: #ff4d55; }
.cw-t { font-size: var(--fs-2xs); color: #8a8a8a; }
.cw-t b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .cw-pop { transition: none; } }
.share { display: flex; gap: 2px; height: 6px; overflow: hidden; border-radius: 3px; }
.ch-ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1c1c1c; }
.ch-ic img, .ch-ic svg { width: 15px; height: 15px; }

/* ===== Tables (shared) ===== */
.tbl { margin-top: var(--s6); }
.tr { display: grid; align-items: center; }
.th { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); line-height: 1.2; font-weight: 600; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 22px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; line-height: 1;
}
.none { color: var(--faint); }
.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.num small { margin-left: 5px; font-size: var(--fs-2xs); color: var(--faint); }

/* ===== Ranking ===== */
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); min-width: 0; max-width: 100%; }   /* min-width: a long sort bar (es) scrolls inside instead of widening the card */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-md); background: var(--raise); }
.seg button { display: flex; align-items: center; height: var(--h-ctl-sm); padding: 0 10px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: #fff; color: #000; }
.seg small { margin-left: 5px; font-size: var(--fs-2xs); opacity: .8; }
.seg svg { width: 11px; height: 11px; margin-left: 4px; color: var(--red); }
.seg svg.asc { transform: rotate(180deg); }

/* sort buttons for phones (the header row with its sort buttons is hidden below 700 px) */
.sort-wrap { display: none; align-items: center; gap: var(--s2); }
.flt-lbl { font-size: var(--fs-xs); font-weight: 600; color: var(--dim); }
@container (max-width: 700px) { .sort-wrap { display: inline-flex; max-width: 100%; } }
/* a phone in a long language (ru, uk): the label goes, the buttons scroll inside their bar instead of widening the page */
@container (max-width: 440px) {
  .sort-wrap .flt-lbl { display: none; }
  .sort-seg { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .sort-seg::-webkit-scrollbar { display: none; }
  .sort-seg button { flex: none; }
}

.toggle { position: relative; display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-xs); font-weight: 600; color: #d6d6d6; cursor: pointer; user-select: none; }
.toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch { position: relative; flex: none; width: 30px; height: 18px; border-radius: 9px; background: #2a2a2a; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle input:checked + .switch { background: var(--red); }
.toggle input:checked + .switch::after { transform: translateX(12px); }
.toggle input:focus-visible + .switch { outline: 2px solid #fff; outline-offset: 2px; }

.ranking { container-type: inline-size; }
.bt { margin-top: var(--s5); }
/* every column takes a share of the spare width (fr), so a wide screen spreads them evenly instead of widening Bot alone */
.bt .tr { grid-template-columns: 40px minmax(170px, 1.5fr) minmax(116px, 1fr) minmax(96px, .8fr) minmax(170px, 1.4fr) minmax(72px, .6fr) minmax(64px, .6fr) minmax(150px, 1.2fr) minmax(48px, .5fr) 82px; column-gap: var(--s3); }
.bt .th { padding-left: var(--s2); padding-right: var(--s2); }
@media (min-width: 1101px) {
  .bt .th { position: sticky; top: 56px; z-index: 5; padding-top: 10px; margin-top: -10px; background: var(--card); }
}
.bt .th .c-copy { text-align: center; }
.sort { display: inline-flex; align-items: center; gap: 4px; line-height: 1.2; font-weight: inherit; }
.sort svg { width: 11px; height: 11px; opacity: 0; transition: opacity .2s, transform .2s; }
.sort:hover { color: #fff; }
.sort:hover svg { opacity: .5; }
.sort.on { color: #fff; }
.sort.on svg { opacity: 1; color: var(--red); }
.sort.asc svg { transform: rotate(180deg); }
#botRows { margin-top: 6px; }
/* a list page's table opens the card (no filters above it): no gap over it, above all on a phone, where its header row is hidden */
.card > .bt:first-child { margin-top: 0; }
.bot-row {
  --ring: var(--card);
  height: var(--h-row); padding: 0 var(--s2); border-radius: var(--r-md);
  font-size: var(--fs-sm); line-height: 1.2; cursor: pointer;
  transition: background .2s;
}
.bot-row:hover { --ring: #121212; background: #121212; }
/* stopped bots: muted text and faded marks, no opacity on the row itself, so the status badges keep their contrast */
.bot-row.stopped { color: #a9a9a9; }
.bot-row.stopped .bn, .bot-row.stopped .c-score b { color: #bdbdbd; }
.bot-row.stopped .bd, .bot-row.stopped .meta { color: var(--muted); }
.bot-row.stopped .av, .bot-row.stopped .sbar, .bot-row.stopped .yes, .bot-row.stopped .no, .bot-row.stopped .rk { opacity: .55; }
.bot-row.stopped .chains { opacity: .7; } /* keeps the +N counter at 4.5:1 */
.bot-row.stopped .av { filter: grayscale(1); }
.bot-row.recovering { box-shadow: inset 3px 0 0 var(--warn); }
.fade .bot-row { animation: rowIn .35s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } }

.rk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: var(--fs-2xs); font-weight: 700; color: var(--muted); background: var(--raise); }
.rk.top { color: #fff; background: var(--red); }
.c-bot { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bw { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bn, .bd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn { font-weight: 600; }
.bd { font-size: var(--fs-xs); line-height: 1.2; color: var(--faint); }
.bd.recovering { color: var(--warn); }
.st-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--s2); border-radius: var(--r-pill); font-size: var(--fs-xs); color: #8f8f8f; background: #1a1a1a; }
.st-badge.recovering { color: var(--warn); background: var(--warn-bg); }
.meta { display: none; }

.chains { display: inline-flex; align-items: center; }
.chains svg { width: 18px; height: 18px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ring, var(--card)); }
.chains svg:first-child { margin-left: 0; }
.many { flex: none; padding: 3px 7px; border-radius: var(--r-pill); font-size: var(--fs-2xs); font-weight: 700; color: #dcdcdc; background: #1f1f1f; white-space: nowrap; overflow-wrap: normal; } /* "+10" never breaks in two */

.c-copy { display: flex; justify-content: center; }
/* volume: DefiLlama's 30-day stroke, then the daily volume both sites show (render.js volCell) */
.vc { display: grid; grid-template-columns: minmax(56px, 110px) minmax(0, 1fr); align-items: center; gap: 12px; }
.vc-sp { display: block; min-width: 0; }
.vc .spark { display: block; width: 100%; }
.vc .num, .vc .none { justify-self: end; }
/* a volume series that stopped (render.js volStale): "no data since …" in the whole cell */
.vc.vc-stale { grid-template-columns: minmax(0, 1fr); }
.vc-stale .none { font-size: var(--fs-xs); text-align: right; }
.vc .num { font-weight: 600; }
.bot-row.stopped .vc .num { font-weight: 400; }
.c-year { font-variant-numeric: tabular-nums; color: #d6d6d6; }
/* community: the official channels, each its mark and size and a link to it (render.js chanLinks); else a count, its unit below */
.chs { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.ch { display: inline-flex; align-items: center; gap: 4px; color: #dcdcdc; font-size: var(--fs-xs); white-space: nowrap; text-decoration: none; }
.ch svg { flex: none; width: 12px; height: 12px; color: #8a8a8a; }
a.ch:hover, a.ch:hover svg { color: #fff; }
/* in the table one line, small: three channels side by side */
.bt .chs { flex-wrap: nowrap; gap: 7px; }
.bt .ch { gap: 3px; font-size: 11px; }
.bt .ch svg { width: 10px; height: 10px; }
.bm2-chs { margin-top: 6px; gap: 8px 14px; }
.bm2-chs .ch { font-size: 15px; font-weight: 700; }
.bm2-chs .ch svg { width: 14px; height: 14px; }
.bp-f dd.chs { justify-content: flex-end; gap: 4px 12px; }
.c-users { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.c-users .num { font-weight: 600; }
.c-users small { font-size: var(--fs-2xs); line-height: 1.2; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-row.stopped .c-users .num { font-weight: 400; }
.yes, .no { width: 16px; height: 16px; }
.yes { color: #fff; }
.no { color: var(--faint); }

.sec { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; line-height: 1; white-space: nowrap; }
.sec svg { width: 13px; height: 13px; flex: none; }
.sec.ok { color: var(--ok); background: var(--ok-bg); }
.sec.warn { color: var(--warn); background: var(--warn-bg); }
.sec.bad { color: var(--bad); background: var(--bad-bg); }

.c-score { display: flex; align-items: center; gap: 10px; }
.c-score b { min-width: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sbar { width: 56px; height: 4px; border-radius: 2px; background: #262626; overflow: hidden; }
.sbar i { display: block; height: 100%; border-radius: 2px; background: var(--red); }

.c-open { display: flex; align-items: center; justify-content: flex-end; }
.open {
  display: inline-flex; align-items: center; gap: 5px;
  height: var(--h-ctl-sm); padding: 0 10px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
  background: var(--raise); border: 1px solid #2a2a2a;
  transition: background .2s, border-color .2s;
}
.open svg { width: 11px; height: 11px; }
.open:hover { background: #232323; }
.open:hover { border-color: #3a3a3a; }

.fine { margin-top: var(--s4); padding: 0 2px; font-size: var(--fs-xs); line-height: 1.6; color: var(--dim); }

/* ===== Modal ===== */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: var(--s4);
  background: rgba(0, 0, 0, .52);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s;
}
.overlay[hidden] { display: none; }
.overlay.show { opacity: 1; }
.overlay:not(.show) { pointer-events: none; }
.modal {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: var(--s4);
  background: var(--card); border: 1px solid #202020; border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(10px) scale(.98); transition: transform .3s var(--ease);
  scrollbar-width: thin; scrollbar-color: #2f2f2f transparent;
}
.modal.wide { width: min(540px, 100%); }
.overlay.show .modal { transform: none; }
.modal:focus { outline: none; }
.m-close {
  position: absolute; top: var(--s4); right: var(--s4); z-index: 1;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--item); border: 1px solid #222; color: #8a8a8a;
  transition: color .2s, background .2s;
}
.m-close:hover { color: #fff; background: #1b1b1b; }
.m-close svg { width: 10px; height: 10px; }
.m-head { display: flex; align-items: center; gap: var(--s3); padding-right: 34px; }
.m-ic:empty { display: none; }
.modal h3 { font-size: var(--fs-lg); line-height: 1.25; font-weight: 700; }
.m-sub { margin-top: var(--s1); font-size: var(--fs-xs); line-height: 1.3; color: #848484; }
.m-body { margin-top: var(--s3); }

.m-list { display: grid; gap: var(--s2); }
.m-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: var(--s2) var(--s3);
  background: var(--item); border: 1px solid var(--item-line); border-radius: var(--r-md); text-align: left;
}
button.m-item { transition: border-color .2s, background .2s; }
button.m-item:hover { border-color: #2c2c2c; background: #161616; }
.m-item > div { min-width: 0; flex: 1; }
.m-item b { display: block; font-size: var(--fs-sm); line-height: 1.2; font-weight: 700; }
.m-item small { display: block; margin-top: 3px; font-size: var(--fs-xs); line-height: 1.4; color: #868686; }
.m-item .st-badge { flex: none; }
.m-score { flex: none; font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.m-empty { padding: 18px 4px; font-size: var(--fs-sm); color: #868686; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 3px; border-radius: var(--r-pill); background: #1b1b1b; font-size: var(--fs-xs); transition: background .2s; }
.chip:hover { background: #262626; }
.chip .av { width: 22px; height: 22px; }

/* ===== Search palette (render.js searchModal, app.js "Search palette") =====
   Hangs from the top of the window: the query line (a radar sweeps beside it), the scope tabs with live counts,
   the results grouped by kind on the left, the chosen line in full on the right, the keys along the bottom.
   One column and the full screen on a phone. */
.overlay.top { place-items: start center; padding-top: clamp(12px, 7vh, 80px); }
.modal.sp-modal {
  --sp-top: clamp(12px, 7vh, 80px);
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  display: flex; flex-direction: column; width: min(900px, 100%); height: min(620px, calc(100vh - var(--sp-top) - 16px)); max-height: none;
  padding: 0; overflow: hidden; border-radius: 20px; border-color: #2a2a2a; background: #0b0b0b;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .78), 0 0 0 1px rgba(255, 255, 255, .02), 0 -1px 0 rgba(255, 120, 110, .08);
  transform: translateY(-8px) scale(.985); transform-origin: 50% 0;
}
.overlay.top .modal.sp-modal { transition: transform .32s var(--ease); }
.overlay.show .modal.sp-modal { transform: none; }
.modal.sp-modal .m-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.modal.sp-modal .m-close { display: none; }
.modal.sp-modal .m-body { flex: 1; min-height: 0; margin: 0; }
.sp { display: flex; flex-direction: column; height: 100%; }
.sp kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px;
  background: #171717; box-shadow: inset 0 0 0 1px #2c2c2c, inset 0 -2px 0 #050505;
  font: 600 10.5px/1 var(--mono); color: #d0d0d0;
}

/* the query line: a clear field (lit red while typing in it) on the logo's ember glow; a red scan line runs along
   the bar's foot as the results change */
.sp-bar {
  position: relative; flex: none; display: flex; align-items: center; gap: 10px; height: 74px; padding: 0 14px;
  background: radial-gradient(70% 160% at 0% 0%, rgba(232, 53, 62, .11), transparent 62%), linear-gradient(#111, #0d0d0d);
  border-bottom: 1px solid #1f1f1f;
}
.sp-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, #ff5d5f 45%, #ffd9d0 50%, #ff5d5f 55%, transparent);
}
.sp-bar.scan::after { animation: spScan .7s var(--ease); }
@keyframes spScan { 0% { opacity: 1; transform: translateX(-70%); } 100% { opacity: 0; transform: translateX(70%); } }
.sp-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px 0 16px; border-radius: 12px; cursor: text;
  background: #161616; box-shadow: inset 0 0 0 1px #333, inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: background .2s, box-shadow .2s;
}
.sp-field:hover { box-shadow: inset 0 0 0 1px #444; }
.sp-field:focus-within { background: #181314; box-shadow: inset 0 0 0 1.5px #e8353e, 0 0 0 4px rgba(232, 53, 62, .16); }
.sp-field svg { flex: none; width: 18px; height: 18px; color: #8f8f8f; transition: color .2s; }
.sp-field:focus-within svg { color: #ff6b6b; }
.sp-field input {
  flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0;
  font: 600 17px/1.2 var(--font); letter-spacing: -.1px; color: #fff; caret-color: #ff5d5f;
}
.sp-field input::placeholder { color: #8c8c8c; font-weight: 500; }
.sp-field input::-webkit-search-cancel-button { display: none; }
.sp-count { flex: none; font: 500 11px/1 var(--mono); letter-spacing: .3px; color: #8b8b8b; white-space: nowrap; }
.sp-esc { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px 0 5px; border-radius: 9px; font-size: var(--fs-xs); color: #9a9a9a; transition: background .2s, color .2s; }
.sp-esc:hover { background: #1a1a1a; color: #fff; }

/* the scope tabs: counts follow the query; a tab with nothing in it fades */
.sp-tabs { flex: none; display: flex; gap: 4px; padding: 9px 14px; border-bottom: 1px solid #191919; overflow-x: auto; scrollbar-width: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; color: #a5a5a5; transition: background .2s, color .2s, box-shadow .2s;
}
.sp-tabs button:hover { background: #151515; color: #fff; }
.sp-tabs small { font: 600 10.5px/1 var(--mono); color: #6c6c6c; }
.sp-tabs [aria-selected="true"] { background: #231113; color: #fff; box-shadow: inset 0 0 0 1px #4d1c22; }
.sp-tabs [aria-selected="true"] small { color: #ff8a80; }
.sp-tabs .zero { opacity: .42; }
.sp-tabs small { color: #8a8a8a; }
/* the news and articles did not download (app.js spLoad): one line under the groups, and a retry */
.sp-fail { flex: none; padding: 7px 14px; border-bottom: 1px solid #191919; font-size: var(--fs-xs); color: #ff8a92; }
.sp-fail[hidden] { display: none; }
.sp-fail button { margin-left: 6px; padding: 2px 8px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; color: #fff; box-shadow: inset 0 0 0 1px #3a2a2b; }
.sp-fail button:hover { background: #231113; }

.sp-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 316px; }
.sp-list { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 12px; scrollbar-width: thin; scrollbar-color: #2f2f2f transparent; }
.sp-g + .sp-g { margin-top: 2px; }
.sp-gh {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 10px 6px; background: linear-gradient(#0b0b0b 75%, rgba(11, 11, 11, 0));
  font: 700 10.5px/1 var(--mono); letter-spacing: .8px; text-transform: uppercase; color: #8b8b8b;
}
.sp-gh i { font-style: normal; color: #8a8a8a; }
.sp-clear { font: 600 10.5px/1 var(--mono); letter-spacing: .5px; text-transform: uppercase; color: #8b8b8b; }
.sp-clear:hover { color: #ff8a80; }

/* a line: icon, title over one line of detail, its figure on the right; the chosen one wears the red edge and ↵ */
.sp-row {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 22px; align-items: center; gap: 12px;
  width: 100%; min-height: 54px; padding: 8px 10px 8px 12px; border-radius: 12px; text-align: left; color: inherit;
}
.sp-row.on { background: linear-gradient(90deg, #1f1012, #151313 55%, #121212); box-shadow: inset 0 0 0 1px #2c1a1c; }
.sp-row.on::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: #ff4d55; box-shadow: 0 0 10px rgba(255, 77, 85, .9); }
.sp-ic { position: relative; display: grid; place-items: center; width: 34px; height: 34px; }
.sp-ic > .av { width: 32px; height: 32px; }
.sp-tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #141414; box-shadow: inset 0 0 0 1px #242424; color: #c9c9c9; }
.sp-tile svg { width: 17px; height: 17px; }
.sp-tile.red { color: #ff6b6b; background: #1a0f10; box-shadow: inset 0 0 0 1px #3a1a1d; }
.sp-tile.chain img, .sp-tile.chain svg { width: 20px; height: 20px; border-radius: 50%; }
.sp-badge { position: absolute; right: -3px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2.5px #0b0b0b; }
.sp-row.on .sp-badge { box-shadow: 0 0 0 2.5px #1a1112; }
.sp-badge.art { display: grid; place-items: center; width: 17px; height: 17px; right: -5px; bottom: -4px; background: #2a1316; color: #ff8a80; }
.sp-badge.art svg { width: 10px; height: 10px; }
.sp-tx { min-width: 0; }
.sp-tx b { display: block; overflow: hidden; font-size: var(--fs-sm); line-height: 1.3; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.sp-tx small { display: block; margin-top: 3px; overflow: hidden; font-size: var(--fs-xs); line-height: 1.35; color: #8a8a8a; white-space: nowrap; text-overflow: ellipsis; }
.sp mark { padding: 0 1px; margin: 0 -1px; border-radius: 3px; background: rgba(232, 53, 62, .2); color: #ff8b85; }
.sp-tx small mark { color: #ff9d97; background: rgba(232, 53, 62, .14); }
.sp-meta { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-meta b { font-size: var(--fs-md); font-weight: 700; }
.sp-meta em { font: 500 11px/1 var(--mono); font-style: normal; color: #7a7a7a; }
.sp-meta em.n { font-weight: 700; color: #ff6b6b; }
.sp-ent { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #ff8a80; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.sp-ent svg { width: 13px; height: 13px; }
.sp-row.on .sp-ent { opacity: 1; transform: none; background: #2a1316; }
.sp-more { min-height: 40px; color: #b5b5b5; }
.sp-more .sp-tile { width: 34px; height: 26px; background: none; box-shadow: none; color: #8a8a8a; }
.sp-more .sp-tx b { font-size: var(--fs-xs); font-weight: 600; color: #a5a5a5; }
.sp-more.on .sp-tx b, .sp-more.on .sp-tile { color: #fff; }

/* nothing found */
.sp-none { display: flex; flex-direction: column; align-items: center; padding: 34px 20px 24px; text-align: center; }
.sp-none-r { width: 92px; height: 92px; margin-bottom: 16px; overflow: visible; }
.sp-none-r circle, .sp-none-r path:not(.sw) { fill: none; stroke: #2e2021; stroke-width: 1.2; }
.sp-none-r .sw { fill: rgba(232, 53, 62, .16); stroke: none; }
.sp-none-t { font-size: var(--fs-lg); font-weight: 700; }
.sp-none-s { margin-top: 6px; font-size: var(--fs-xs); color: #8a8a8a; }
.sp-tries { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.sp-tries button { height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: #151515; box-shadow: inset 0 0 0 1px #262626; font-size: var(--fs-xs); color: #d6d6d6; transition: background .2s; }
.sp-tries button:hover { background: #231113; box-shadow: inset 0 0 0 1px #4d1c22; color: #fff; }

/* the preview */
.sp-pv { min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-left: 1px solid #191919; background: linear-gradient(#0f0f0f, #0b0b0b 60%); scrollbar-width: thin; scrollbar-color: #2f2f2f transparent; }
.sp-pv-in { display: flex; flex-direction: column; gap: 14px; min-height: 100%; padding: 18px 18px 16px; animation: spIn .22s var(--ease); }
@keyframes spIn { from { opacity: 0; transform: translateY(4px); } }
.sp-pv-id { display: flex; align-items: center; gap: 12px; }
.sp-pv-id .av.lg { width: 44px; height: 44px; border-radius: 12px; }
.sp-pv-id .sp-tile { width: 44px; height: 44px; border-radius: 12px; }
.sp-pv-id .sp-tile svg { width: 20px; height: 20px; }
.sp-pv-t { font-size: var(--fs-lg); line-height: 1.35; font-weight: 700; letter-spacing: -.1px; }
.sp-pv-s { margin-top: 3px; font-size: var(--fs-xs); line-height: 1.45; color: #8a8a8a; }
.sp-pv-d { font-size: var(--fs-xs); line-height: 1.65; color: #b9b9b9; }
.sp-kick { display: flex; align-items: center; gap: 8px; font: 600 10.5px/1.3 var(--mono); letter-spacing: .5px; text-transform: uppercase; color: #8b8b8b; }
.sp-kick .av { width: 20px; height: 20px; }
/* bot: the score on the right of its name, the stone beside the six criteria as bars, three facts */
.sp-pv-id > div { flex: 1; min-width: 0; }
.sp-pv-id .sp-pv-s { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sp-pv-num { flex: none; text-align: right; }
.sp-pv-num b { display: block; font-size: 26px; line-height: 1; font-weight: 700; letter-spacing: -.5px; }
.sp-pv-num b small { margin-left: 2px; font-size: var(--fs-xs); font-weight: 600; color: #7a7a7a; letter-spacing: 0; }
.sp-pv-num span { display: block; margin-top: 5px; font: 600 11px/1 var(--mono); color: #ff8a80; }
.sp-pv-score { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 14px 10px 8px; border-radius: 14px; background: #111; box-shadow: inset 0 0 0 1px #1d1d1d; }
.sp-gem { width: 84px; height: 84px; }
.sp-gem .t3-stone { width: 84px; max-width: none; height: 84px; }
.sp-gem .t3-lab { display: none; }
.sp-gem .t3-shape { opacity: 1 !important; transform: none !important; }
.sp-gem .t3-grid polygon, .sp-gem .t3-grid line { stroke: #262626; }
.sp-crit { display: grid; gap: 5px; }
.sp-crit li { display: grid; grid-template-columns: 68px minmax(0, 1fr) 16px; align-items: center; gap: 8px; height: 12px; }
.sp-crit span { overflow: hidden; font-size: 11px; color: #9a9a9a; white-space: nowrap; text-overflow: ellipsis; }
.sp-crit em { font: 700 11px/1 var(--mono); font-style: normal; text-align: right; }
.sp-crit i { height: 3px; border-radius: 3px; background: #222; overflow: hidden; }
.sp-crit i b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8a1219, #e8353e 70%, #ff6b6b); }
.sp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sp-facts div { padding: 8px 10px; border-radius: 10px; background: #121212; box-shadow: inset 0 0 0 1px #1d1d1d; }
.sp-facts dt { font-size: var(--fs-2xs); color: #7e7e7e; }
.sp-facts dd { display: flex; align-items: center; min-height: 18px; margin-top: 4px; font-size: var(--fs-sm); font-weight: 700; }
.sp-facts .chains { --ring: #121212; }
.sp-facts .chains img, .sp-facts .chains svg { width: 16px; height: 16px; margin-left: -4px; border-radius: 50%; box-shadow: 0 0 0 2px #121212; }
.sp-facts .chains > :first-child { margin-left: 0; }
.sp-facts .many { padding: 2px 5px; margin-left: 2px; }
/* list: its first five */
.sp-top { display: grid; gap: 2px; }
.sp-top li { display: grid; grid-template-columns: 16px 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 9px; background: #111; font-size: var(--fs-xs); }
.sp-top li:first-child { background: #1a1011; }
.sp-top .n { font: 700 11px/1 var(--mono); color: #7a7a7a; }
.sp-top li:first-child .n { color: #ff6b6b; }
.sp-top .av { width: 24px; height: 24px; }
.sp-top .nm { overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.sp-top .num small { display: none; }
/* page */
.sp-pv-page { display: flex; flex-direction: column; gap: 10px; }
.sp-tile.big { width: 52px; height: 52px; border-radius: 15px; color: #ff6b6b; background: #1a0f10; box-shadow: inset 0 0 0 1px #3a1a1d, 0 0 30px rgba(232, 53, 62, .12); }
.sp-tile.big svg { width: 24px; height: 24px; }
.sp-pv-more { display: flex; flex-direction: column; gap: 10px; }
/* article: the hero picture, the chapters as chips; a chapter: its number, then the passage the query hit */
.sp-hero { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; object-fit: cover; background: #151515; box-shadow: 0 0 0 1px #222; }
.sp-chaps { display: flex; flex-wrap: wrap; gap: 5px; }
.sp-chaps a { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: var(--r-pill); background: #141414; box-shadow: inset 0 0 0 1px #222; font-size: 11.5px; color: #cfcfcf; transition: background .2s, color .2s; }
.sp-chaps a:hover { background: #1f1012; color: #fff; box-shadow: inset 0 0 0 1px #4a1a20; }
.sp-chaps b { font: 700 10px/1 var(--mono); color: #ff6b6b; }
.sp-chap { display: flex; align-items: baseline; gap: 10px; }
.sp-chap em { flex: none; font: 700 22px/1 var(--mono); font-style: normal; color: #ff4d55; text-shadow: 0 0 18px rgba(255, 77, 85, .45); }
.sp-quote { padding-left: 12px; border-left: 2px solid #2c1a1c; }
/* news: the kind as a coloured pill, the bot as a chip */
.sp-kind { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: var(--r-pill); background: #151515; box-shadow: inset 0 0 0 1px #262626; color: #e6e6e6; }
.sp-kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--k); box-shadow: 0 0 8px var(--k); }
.sp-botchip { display: flex; align-items: center; gap: 9px; align-self: flex-start; height: 36px; padding: 0 12px 0 6px; border-radius: var(--r-pill); background: #141414; box-shadow: inset 0 0 0 1px #232323; font-size: var(--fs-xs); font-weight: 700; transition: background .2s; }
.sp-botchip:hover { background: #1b1b1b; }
.sp-botchip .av { width: 24px; height: 24px; }
.sp-botchip b { font: 700 11px/1 var(--mono); color: #ff8a80; }
/* the buttons at the foot of the preview: the first one is what ↵ does */
/* they stay in sight at the foot of a preview taller than the window */
.sp-acts { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: auto -18px -16px; padding: 12px 18px 16px; background: linear-gradient(rgba(11, 11, 11, 0), #0b0b0b 38%); }
.sp-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 10px; background: #161616; box-shadow: inset 0 0 0 1px #262626; font-size: var(--fs-xs); font-weight: 700; color: #e6e6e6; transition: background .2s, box-shadow .2s; }
.sp-btn:hover { background: #1d1d1d; }
.sp-btn svg { width: 12px; height: 12px; }
.sp-btn.solid { background: linear-gradient(#e23b3b, #c72a2f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 18px rgba(212, 47, 47, .28); color: #fff; }
.sp-btn.solid:hover { background: linear-gradient(#ec4545, #d22e33); }
.sp-btn.solid kbd { background: rgba(0, 0, 0, .22); box-shadow: none; color: #fff; }

/* the keys */
.sp-foot { flex: none; display: flex; align-items: center; gap: 16px; height: 38px; padding: 0 16px; border-top: 1px solid #191919; background: #0d0d0d; font-size: 11.5px; color: #7e7e7e; }
.sp-foot > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sp-foot .sp-quick { margin-left: auto; gap: 4px; }
.sp-quick kbd + kbd { margin-right: 4px; }

/* the top bar's button: a field-like pill with the shortcut on wide screens, the icon elsewhere */
.sp-open-t, .sp-open kbd { display: none; }
@media (min-width: 1180px) {
  .icon-btn.sp-open {
    display: flex; gap: 9px; width: 268px; padding: 0 6px 0 11px; justify-content: flex-start;
    background: #0e0e0e; box-shadow: inset 0 0 0 1px #242424; color: #8a8a8a; transition: background .2s, box-shadow .2s, color .2s;
  }
  .icon-btn.sp-open:hover { background: #141414; box-shadow: inset 0 0 0 1px #3a2a2b; color: #cfcfcf; }
  .icon-btn.sp-open svg { flex: none; width: 15px; height: 15px; }
  .sp-open-t { display: block; flex: 1; min-width: 0; overflow: hidden; font-size: var(--fs-xs); text-align: left; white-space: nowrap; text-overflow: ellipsis; }
  .sp-open kbd {
    display: inline-grid; place-items: center; height: 20px; padding: 0 6px; border-radius: 5px; background: #191919; box-shadow: inset 0 0 0 1px #2c2c2c;
    font: 600 10.5px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #a9a9a9;
  }
}

/* a short window (a laptop at 150 %): tighter lines so the preview fits */
@media (max-height: 600px) {
  .sp-bar { height: 62px; }
  .sp-field { height: 42px; }
  .sp-tabs { padding: 7px 14px; }
  .sp-row { min-height: 50px; padding-top: 6px; padding-bottom: 6px; }
  .sp-pv-in { gap: 11px; padding: 14px 16px 14px; }
  .sp-acts { margin: auto -16px -14px; padding: 10px 16px 14px; }
  .sp-pv-score { padding-top: 6px; padding-bottom: 6px; }
  .sp-facts div { padding: 6px 10px; }
  .sp-hero { aspect-ratio: 2 / 1; }
  .sp-foot { height: 34px; }
}
.sp-main.empty { grid-template-columns: minmax(0, 1fr); }
.sp-main.empty .sp-pv { display: none; }
@media (max-width: 860px) {
  .sp-main { grid-template-columns: minmax(0, 1fr); }
  .sp-pv { display: none; }
}
@media (max-width: 640px) {
  .overlay.top { padding: 0; }
  .modal.sp-modal { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; border: 0; transform: translateY(12px); }
  .sp-bar { height: 64px; gap: 6px; padding: 0 6px 0 10px; }
  .sp-field { height: 44px; padding: 0 12px; gap: 10px; }
  .sp-field input { font-size: 16px; }
  .sp-count { display: none; }
  .sp-esc kbd { display: none; }
  .sp-esc { padding: 0 10px; height: 36px; font-size: var(--fs-sm); color: #d6d6d6; }
  .sp-tabs { padding: 8px 10px; }
  .sp-list { padding: 0 6px 16px; }
  .sp-row { min-height: 58px; grid-template-columns: 34px minmax(0, 1fr) auto; }
  .sp-ent { display: none; }
  .sp-foot { display: none; }
}
@media (hover: none) { .sp-foot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .sp-pv-in { animation: none; }
  .overlay.top .modal.sp-modal { transition: none; }
}
/* where the search's links land: a headline on the news page, a chapter of a bot article, clear of the sticky top bar */
.fi, .bp-main .isec { scroll-margin-top: 84px; }
@media (max-width: 1100px) { .fi, .bp-main .isec { scroll-margin-top: 16px; } }

/* Bot dialog (render.js botModal): two columns, the stone and the score on the left, the key figures, features and
   actions on the right; one column under 1040 px. The dialog's title row stays for screen readers only. */
.modal.bm2-modal { width: min(1000px, 100%); padding: 0; border-radius: 22px; border-color: #262626; }
.modal.bm2-modal .m-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.modal.bm2-modal .m-body { margin: 0; }
.modal.bm2-modal .m-close { z-index: 6; top: 22px; right: 22px; width: 34px; height: 34px; background: #161616; border-color: #2a2a2a; color: #cfcfcf; }
.modal.bm2-modal .m-close svg { width: 12px; height: 12px; }
.bm2 { --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.bm2-lbl { font: 700 11px/1.2 var(--mono); letter-spacing: .6px; text-transform: uppercase; color: #8b8b8b; }
.bm2-l { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-right: 1px solid #1c1c1c;
  background: radial-gradient(120% 70% at 50% 42%, #2a0b0f 0%, #120708 55%, var(--card) 100%); }
.bm2-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bm2-id .av.lg { width: 44px; height: 44px; border-radius: 12px; }
.bm2-id > div { min-width: 0; }
.bm2-name { font-size: 22px; line-height: 1.15; font-weight: 700; }
.bm2-sub { margin-top: 3px; font-size: var(--fs-xs); color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bm2-stone { padding: 4px 0 0; }
.bm2 .t3-stone { width: 100%; max-width: 300px; height: auto; }
.bm2 .t3-shape .bloom { opacity: .5; }
.bm2-score { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.bm2-big { font-size: 46px; line-height: .9; font-weight: 700; letter-spacing: -1px; }
.bm2-big small { margin-left: 5px; font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; color: var(--dim); }
.bm2-rank { text-align: right; }
.bm2-rank .bm2-big { font-size: 30px; color: #ff6b6b; letter-spacing: 0; }
.bm2-note { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
/* Why: one group's parts on hover (render.js whyPanel, app.js "Why") */
.why-p { display: none; z-index: 4; padding: 10px 12px; border-radius: 12px; background: rgba(13, 13, 13, .97); box-shadow: inset 0 0 0 1px #2b2b2b, 0 12px 32px rgba(0, 0, 0, .55);
  overflow: hidden; text-align: left; cursor: default; }
.why-p.on { display: block; }
.why-h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: #e6e6e6; }
.why-h .ci { flex: none; width: 13px; height: 13px; color: var(--red-hover); }
.why-h b { margin-left: auto; font-size: 14px; font-variant-numeric: tabular-nums; }
.why-h b small { margin-left: 1px; font-size: 10px; font-weight: 500; color: var(--dim); }
.why-p .bp-parts { margin: 0; padding: 0; border: 0; }
.why-p .bp-parts li { padding: 3px 0; }
/* the dialog: over its right side while a corner of the stone is pointed at, so the stone stays in view, a frosted glass
   the facts under it still show blurred through; in one column (narrow screens) in the flow under the stone */
.bm2 { position: relative; }
.bm2-why, .bm2-why.on { display: block; visibility: hidden; opacity: 0; transition: opacity .2s var(--ease), visibility 0s linear .2s; }
.bm2-why.on { visibility: visible; opacity: 1; transition: opacity .2s var(--ease), visibility 0s; }
.bm2-why { position: absolute; top: 0; right: 0; bottom: 0; left: 360px; padding: 26px 70px 26px 30px; border-radius: 0; overflow-y: auto;
  background: rgba(14, 12, 12, .5); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .07); }
.bm2-why .why-h { margin-bottom: 10px; font-size: 15px; }
.bm2-why .why-h .ci { width: 15px; height: 15px; }
.bm2-why .why-h b { font-size: 18px; }
.bm2-why .bp-parts li { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.bm2-why .bp-parts li:last-child { border-bottom: 0; }
.bm2-why .bp-parts .pn { font-size: 13px; }
.bm2-why .bp-parts .pw { font-size: 12.5px; }
.bm2-hint { margin-top: -6px; font-size: 11px; color: #8a8a8a; }
/* no pointer that hovers (a phone): a tap on a corner shows why, so no line about hovering */
@media (hover: none) { .bm2-hint { display: none; } }
.bm2 .t3-lab text[data-g] { pointer-events: bounding-box; cursor: help; }
/* the Top 3 card: in the room between its strip and its stone, no frame, fading in (app.js whyPlace); one line a part,
   the full line on hover, small and faint, the wheel scrolls the parts that do not fit; it fades out slowly once the pointer leaves the
   card. A narrower card lays it over the stone (.over), a narrow one under the criterion (.pop, above it for the last
   card). Only where the cards are rows: on phones a tap opens the dialog, which shows the same */
.t3-why.on { display: none; }
@media (min-width: 1101px) and (min-height: 488px), (min-width: 700px) and (max-width: 1100px) and (min-height: 600px) {
  .t3.why-on { z-index: 5; }
  .t3-why, .t3-why.on { display: flex; }
  .t3-why { position: absolute; flex-direction: column; justify-content: safe center; overflow: hidden auto;
    padding: 4px 12px; border-radius: 12px; scrollbar-width: thin; scrollbar-color: #3a2a2b transparent;
    background: linear-gradient(90deg, rgba(20, 14, 15, .72), rgba(20, 14, 15, .3)); box-shadow: none;
    visibility: hidden; opacity: 0; transform: translateX(-6px); pointer-events: none;
    transition: opacity .9s ease-in-out, transform .9s ease-in-out, visibility 0s linear .9s; }
  .t3-why.on { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .22s var(--ease) .06s, transform .3s var(--ease) .06s, visibility 0s; }
  /* small and faint: a glance at the parts, not a second card */
  .t3-why .why-h { gap: 5px; margin-bottom: 1px; font-size: 10.5px; color: #b0b0b0; }
  .t3-why .why-h .ci { width: 11px; height: 11px; opacity: .75; }
  .t3-why .why-h b { font-size: 11px; }
  .t3-why .why-h b small { font-size: 8.5px; }
  .t3-why .bp-parts li { column-gap: 6px; padding: 1px 0; }
  .t3-why .bp-parts .pn { font-size: 10px; color: #9a9a9a; }
  .t3-why .bp-parts .pn small { margin-left: 4px; font-size: 8.5px; color: #858585; }
  .t3-why .bp-parts b { font-size: 10px; opacity: .8; }
  .t3-why .bp-parts .pw { margin-top: 0; font-size: 9px; line-height: 1.3; color: #858585; }
  .t3-why:not(.pop) .bp-parts .pw { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .t3-why.over, .t3-why.pop { background: rgba(14, 12, 12, .55); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .05); }
  .t3-why.pop { width: 290px; max-height: 70vh; padding: 7px 10px; }
}
.bm2-sw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 12px; background: #222; }
.bm2-sw div { padding: 10px 12px; background: #0f0f0f; }
.bm2-sw dt { font: 700 11px/1.2 var(--mono); letter-spacing: .6px; text-transform: uppercase; color: #8b8b8b; }
.bm2-sw dd { margin-top: 5px; font-size: var(--fs-sm); font-weight: 700; }
.bm2-none { padding: 18px 14px; border-radius: 12px; background: #111; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.bm2-r { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 26px 28px 24px; }
.bm2-h { min-height: 34px; display: flex; align-items: center; margin-bottom: -4px; }
.bm2-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bm2-t { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; border-radius: 14px; background: #111; box-shadow: inset 0 0 0 1px #1f1f1f; }
.bm2-t > b { font-size: 22px; line-height: 1.1; font-weight: 700; overflow-wrap: anywhere; }
.bm2-t small { font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }
.bm2-vol { grid-column: span 2; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "l tr" "v sp" "s s"; align-items: end; column-gap: 16px; }
.bm2-vol .bm2-lbl { grid-area: l; align-self: center; }
.bm2-vol .trend { grid-area: tr; justify-self: end; align-self: center; }
.bm2-vol > b { grid-area: v; font-size: 26px; }
.bm2-vol .spark { grid-area: sp; width: 100%; max-height: 46px; }
.bm2-vol small { grid-area: s; }
.bm2-wide { grid-column: span 2; }
.bm2-fh { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.bm2-fh span { font-size: var(--fs-xs); color: var(--muted); }
.bm2-feats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: -4px; }
.bm2-feats li { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px; border-radius: 12px; background: #111; box-shadow: inset 0 0 0 1px #1c1c1c;
  font-size: var(--fs-2xs); line-height: 1.25; text-align: center; color: #d6d6d6; }
.bm2-feats svg { width: 20px; height: 20px; color: #ff6b6b; }
.bm2-feats li.off { background: transparent; box-shadow: inset 0 0 0 1px #1a1a1a; color: #6a6a6a; }
.bm2-feats li.off svg { color: #444; }
.bm2-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.bm2-sec { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; font-size: var(--fs-xs); color: var(--dim); }
.bm2-foot .m-cta { margin: 0; height: 46px; padding: 0 22px; border-radius: 12px; font-size: var(--fs-md); white-space: nowrap; }
.bm2-foot .m-cta.alt { background: #161616; border-color: #2a2a2a; }
@media (max-width: 1040px) {
  .bm2 { grid-template-columns: minmax(0, 1fr); }
  .bm2-why { position: static; padding: 12px 14px; border-radius: 12px; box-shadow: none; background: rgba(255, 255, 255, .03); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bm2-why:not(.on) { display: none; }
  .bm2-l { border-right: 0; border-bottom: 1px solid #1c1c1c; }
  .bm2-id { padding-right: 44px; }
  .bm2 .t3-stone { max-width: 280px; margin: 0 auto; }
  .bm2-h { min-height: 0; }
}
@media (max-width: 640px) {
  .modal.bm2-modal { border-radius: 18px; }
  .modal.bm2-modal .m-close { top: 16px; right: 16px; }
  .bm2-l, .bm2-r { padding: 18px 16px; }
  .bm2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm2-vol, .bm2-wide { grid-column: span 2; }
  .bm2 .t3-stone { max-width: 250px; }
  .bm2-feats { display: flex; flex-wrap: wrap; gap: 6px; }
  .bm2-feats li { flex-direction: row; gap: 6px; padding: 7px 10px; font-size: var(--fs-xs); }
  .bm2-feats svg { width: 15px; height: 15px; }
  .bm2-foot { position: sticky; bottom: 0; z-index: 1; flex-wrap: wrap; margin: 0 -16px -18px; padding: 12px 16px 16px; background: var(--card); border-top: 1px solid #1c1c1c; }
  .bm2-sec { flex-basis: 100%; }
  .bm2-foot .m-cta { flex: 1; padding: 0 12px; }
}

@media (min-width: 1041px) and (max-height: 660px) {
  .bm2-l { gap: 10px; padding: 18px 22px; }
  .bm2 .t3-stone { max-width: 236px; margin: 0 auto; }
  .bm2-big { font-size: 38px; }
  .bm2-rank .bm2-big { font-size: 26px; }
  .bm2-sw div { padding: 8px 12px; }
  .bm2-r { gap: 10px; padding: 18px 24px 18px; }
  .modal.bm2-modal .m-close { top: 14px; right: 16px; }
  .bm2-tiles { gap: 8px; }
  .bm2-t { gap: 4px; padding: 10px 12px; }
  .bm2-t > b { font-size: 19px; }
  .bm2-vol > b { font-size: 22px; }
  .bm2-vol .spark { max-height: 36px; }
  .bm2-fh { margin-top: 0; }
  .bm2-feats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: -2px; }
  .bm2-feats li { flex-direction: row; gap: 6px; padding: 5px 9px; font-size: var(--fs-xs); }
  .bm2-feats svg { width: 14px; height: 14px; }
  .bm2-foot { padding-top: 2px; }
  .bm2-foot .m-cta { height: 40px; }
}

/* Bot details (bot pages) */
.bm-notes { display: grid; gap: var(--s2); margin-top: var(--s3); }
.bm-notes li { display: flex; gap: var(--s2); font-size: var(--fs-xs); line-height: 1.5; color: #dcdcdc; }
.bm-notes svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: #8f8f8f; }
.bm-notes .ok svg { color: var(--ok); }
.bm-notes .warn svg { color: var(--warn); }
.bm-notes .bad svg { color: var(--bad); }
.src { display: inline-flex; margin-left: 6px; vertical-align: -2px; color: #8a8a8a; }
.src:hover { color: #fff; }
.src svg { width: 12px; height: 12px; }
.m-cta {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 40px; margin-top: var(--s3); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 700;
  background: var(--red); border: 1px solid var(--red);
  transition: background .2s;
}
.m-cta svg { width: 12px; height: 12px; }
.m-cta:hover { background: var(--red-hover); }

/* ===== Entrance animation ===== */
.anim .topbar > *, .anim .hello, .anim .card { opacity: 0; transform: translateY(10px); }
.anim .bot-row, .anim .member { opacity: 0; }
.anim .bar i { width: 0; }
.anim .t3-shape { opacity: 0; transform: scale(.2); }

.ready .topbar > *, .ready .hello, .ready .card,
.ready .bot-row, .ready .member {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease), background .2s;
  transition-delay: var(--d, 0s);
}
.ready .bar i { width: var(--v); transition: width 1s var(--ease); transition-delay: var(--d, 0s); }

.ready .t3-shape { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0s) + .3s + var(--i) * .11s); }
.replay .t3-shape { animation: stoneIn .7s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes stoneIn { from { opacity: 0; transform: scale(.2); } }

@media (prefers-reduced-motion: reduce) {
  .anim *, .replay .t3-shape, .fade .bot-row, .flash { transition: none !important; animation: none !important; }
  /* logo stands still: no flow, no pulse, no twist */
  .lg-trails path, .lg-pulse, .lg-glow, .wm span, .tabs a { animation: none !important; }
  .lg-whirl { transition: none; }
  .brand:hover .lg-whirl { transform: none; }
}

/* ===== Horizontal scrollers (section tabs, the compare table) =====
   app.js marks a scroller that has more content past its right (left) edge with .more-r (.more-l): that edge fades,
   so the hidden items announce themselves; the fade goes once the user reaches the end. */
.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }

/* ===== Responsive ===== */
@media (max-width: 1240px) {
  .tabs { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 var(--s4); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { scroll-snap-align: start; }
}
@media (max-width: 1100px) {
  .topbar { position: relative; flex-wrap: wrap; gap: var(--s3); box-shadow: none !important; }
  .card { scroll-margin-top: var(--s4); }
  .tabs { order: 3; width: 100%; }
}
/* the Top 3 and the side card stack below 1100 px: the side card then runs the full width in two columns
   (by chain | news), and back to one column on a phone */
@media (max-width: 1100px) {
  .row-top { grid-template-columns: minmax(0, 1fr); }
  .live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "chain news"; grid-template-rows: auto; gap: 14px 32px; align-content: start; }
  .lblk-chain { grid-area: chain; }
  .lblk-news { grid-area: news; border-top: 0 !important; padding-top: 0 !important; }
}
@media (max-width: 760px) {
  .live { display: flex; flex-direction: column; }
  .lblk-news { padding-top: 14px !important; border-top: 1px solid #1d1d1d !important; }
}
/* Ranking: columns drop out as the card narrows (they stay in the bot dialog), then rows go two-line.
   Each step is the width where the full column set (fixed + minimum widths + gaps + row padding) stops fitting. */
@container (max-width: 1131px) {
  .bt .c-chain { display: none; }
  .bt .tr { grid-template-columns: 40px minmax(170px, 1.5fr) minmax(116px, 1fr) minmax(170px, 1.4fr) minmax(72px, .6fr) minmax(64px, .6fr) minmax(150px, 1.2fr) minmax(48px, .5fr) 82px; }
}
@container (max-width: 1023px) {
  .bt .c-year { display: none; }
  .bt .tr { grid-template-columns: 40px minmax(170px, 1.5fr) minmax(116px, 1fr) minmax(170px, 1.4fr) minmax(72px, .6fr) minmax(64px, .6fr) minmax(150px, 1.2fr) 82px; }
}
@container (max-width: 963px) {
  .vc { grid-template-columns: minmax(0, 1fr); }
  .vc .vc-sp, .vc .vc-nil { display: none; }
  .bt .tr { grid-template-columns: 40px minmax(170px, 1.5fr) minmax(116px, 1fr) minmax(90px, 1fr) minmax(72px, .6fr) minmax(64px, .6fr) minmax(150px, 1.2fr) 82px; }
}
@container (max-width: 883px) {
  .bt .c-copy { display: none; }
  .bt .tr { grid-template-columns: 40px minmax(170px, 1.5fr) minmax(116px, 1fr) minmax(90px, 1fr) minmax(64px, .6fr) minmax(150px, 1.2fr) 82px; }
}
@container (max-width: 799px) {
  .bt .c-users { display: none; }
  .bt .tr { grid-template-columns: 40px minmax(170px, 1.5fr) minmax(116px, 1fr) minmax(90px, 1fr) minmax(64px, .6fr) 82px; }
}
/* a phone row: rank, the bot (logo, name, site), score and Open on top; chains, fee and daily volume on one line under
   the name (render.js botRow .meta). Same items in the same order in every row, nothing wraps, so the list reads down
   like a table; copy trading, community and launch year are on the bot page (the copy filter sits above the list) */
@container (max-width: 700px) {
  .bt .th { display: none; }
  .bt .tr { grid-template-columns: 22px minmax(0, 1fr) auto auto; grid-template-areas: "rk bot score open" ". meta meta meta"; column-gap: 10px; row-gap: 5px; }
  .bot-row { height: auto; padding: 10px 6px; }
  .bot-row .c-rank { grid-area: rk; }
  .bot-row .c-bot { grid-area: bot; }
  .bot-row .c-score { grid-area: score; }
  .bot-row .c-open { grid-area: open; }
  .bt .c-fee, .bt .c-vol { display: none; }
  .bot-row .av { width: 36px; height: 36px; }
  .meta { grid-area: meta; position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; overflow: hidden; font-size: var(--fs-xs); line-height: 18px; color: var(--muted); white-space: nowrap; }
  .meta > * { flex: none; }
  /* fixed widths for the chain marks and the fee, so fee and volume sit in the same place in every row */
  .meta .chains { min-width: 62px; }
  .meta .many { padding: 0 0 0 3px; background: none; color: #a9a9a9; }
  .meta .m-fee, .meta .m-vol { display: inline-flex; align-items: center; gap: 4px; }
  .meta .m-fee > :last-child { min-width: 2.5em; }
  .meta .m-vol { flex: 0 1 auto; min-width: 0; }
  .meta .m-vol > :last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .meta .ci { flex: none; width: 13px; height: 13px; color: #7c7c7c; }
  .meta .num { color: #dcdcdc; font-weight: 600; }
  .meta .chains svg { width: 16px; height: 16px; }
  .c-score { flex-direction: column; align-items: flex-end; gap: 5px; }
  .c-score b { min-width: 0; }
  .sbar { width: 40px; }
  /* the green "site is up" dot needs a hover to explain itself; a site that is down keeps its red dot */
  .bot-row .hd.ok { display: none; }
  .bt .open { padding: 0 8px; }
  .bt .open-t { display: none; }
}
/* most phones (375 px and up): the line sits under the name; a narrower one starts it under the logo, where it fits */
@container (min-width: 310px) and (max-width: 700px) {
  .meta { padding-left: 46px; }
}
/* a small phone (320 px): a smaller logo and tighter gaps, so the names keep their room */
@container (max-width: 280px) {
  .bt .tr { grid-template-columns: 20px minmax(0, 1fr) auto auto; column-gap: 8px; }
  .bot-row .c-bot { gap: 8px; }
  .bot-row .av { width: 30px; height: 30px; }
  .bt .sbar { width: 32px; }
  .bt .open { padding: 0 6px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 14px; --pad-y: 16px; }
  /* a safety net: anything that ever runs past the screen's edge is cut there instead of letting the whole page
     slide sideways under the finger (clip, not hidden: no scroll box, so sticky bars keep working) */
  .app { padding-bottom: var(--s5); overflow-x: clip; }
  /* the four page tabs fit a 360 px screen without scrolling; the six home tabs scroll with the edge fade */
  .tabs { gap: var(--s5); }
  .tabs a { font-size: var(--fs-sm); }
  .hello { margin-top: var(--s5); }
  .hello h1 { font-size: 21px; }
  .card-head { align-items: flex-start; }
  .t3 { padding: 14px; }
}
@media (max-width: 400px) {
  .seg button { padding: 0 8px; }
}

/* ===== Added for the multi-page site (tools/build.mjs): bot links in rows, health dots, language menu, dialog links ===== */
.bn { font-weight: 600; color: inherit; }
.bn:hover { text-decoration: underline; text-decoration-color: #555; text-underline-offset: 2px; }
.hd { display: inline-block; flex: none; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14); }
.hd.down { background: var(--bad); box-shadow: 0 0 0 2px rgba(239, 75, 85, .2); }

.m-links { display: grid; gap: var(--s2); margin-top: var(--s3); }
.m-cta.alt { background: var(--item); border-color: #262626; color: #fff; }
.m-cta.alt:hover { background: #1b1b1b; }
.m-cta.alt svg { width: 13px; height: 13px; }
.bm-notes time { margin-right: 6px; font-size: var(--fs-xs); font-weight: 700; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.bm-notes .important time { color: #6d9bff; }
.bm-notes .special time { color: #e879f9; }
.bm-notes .incident time { color: var(--bad); }
.bm-notes .fixed time { color: var(--ok); }
.bm-notes .important svg { color: #6d9bff; }
.bm-notes .special svg { color: #e879f9; }
.bm-notes .incident svg { color: var(--bad); }
.bm-notes .fixed svg { color: var(--ok); }
.feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.feats li { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px 0 7px; border-radius: var(--r-pill); background: #1b1b1b; font-size: var(--fs-xs); font-weight: 600; color: #d6d6d6; }
.feats li.off { opacity: .6; text-decoration: line-through; text-decoration-color: #8a8a8a; } /* missing features: struck through, not only dimmed */
.feats svg { width: 12px; height: 12px; }
.chains img { width: 18px; height: 18px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ring, var(--card)); background: #111; }
.chains img:first-child { margin-left: 0; }
.chains .many { margin-left: 4px; }
.meta .chains img { width: 16px; height: 16px; }

/* ===== Bot page (tools/build.mjs botBody): "rail" style =====
   An open title block with the six-criteria stone; then the contents as a rail (left), the article, and one spec sheet
   (right). app.js moves the rail's red line and spark with the reading and lets the spec sheet scroll along, then hold.
   One column under 1100 px: title block, the rail as a sticky row of chips, the article, then the spec sheet. */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--s3); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); transition: color .2s; }
.back svg { width: 12px; height: 12px; transform: rotate(180deg); }
.back:hover { color: #fff; }
.bp-crumb { display: flex; align-items: center; gap: 8px; margin-top: var(--s2); font-size: var(--fs-sm); color: var(--dim); }
.bp-crumb a { color: var(--dim); transition: color .2s; }
.bp-crumb a:hover { color: #fff; }
.bp-crumb [aria-current] { color: #d6d6d6; }
.p-bot { --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace; }
html:has(.p-bot) { scroll-padding-top: 84px; }
.bp-cover { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: center; padding: 14px 0 30px; border-bottom: 1px solid #232323; }
.bp-cover.no-gem { grid-template-columns: minmax(0, 1fr); }
.bp-cov-t { min-width: 0; }
.bp-kick { display: flex; align-items: center; gap: 10px; font: 700 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #ff8a80; }
.bp-kick .av { width: 30px; height: 30px; border-radius: 9px; }
.bp-cover h1 { max-width: 900px; margin: 16px 0 14px; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.bp-lead { max-width: 70ch; font-size: 16.5px; line-height: 1.65; color: #b5b5b5; }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 16px; font-size: var(--fs-xs); color: var(--dim); }
.bp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bp-meta svg { width: 13px; height: 13px; color: #6f6f6f; }
.bp-meta i { width: 3px; height: 3px; border-radius: 50%; background: #555; }
.bp-gem .t3-stone { width: 100%; max-width: 330px; }
.bp-cta-m { display: none; }
/* "đến 2/11": a 7-day figure whose DefiLlama feed stopped */
.upto { margin-left: 5px; font-size: .74em; font-weight: 400; color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.bp-total { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 2px; }
.bp-total b { font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.bp-total span { font-size: var(--fs-xs); color: var(--dim); }
/* the article is one column of one width (--read): text and screenshots line up on both edges; on a wide screen the
   spare room goes either side of it, not into screenshots wider than the text */
.bp-grid { --read: 760px; display: grid; grid-template-columns: 196px minmax(0, var(--read)) 280px; justify-content: space-between; gap: 44px; align-items: start; margin-top: 34px; }
.bp-grid.no-rail { grid-template-columns: minmax(0, 1fr) 280px; }

/* the rail: a dot per chapter on a grey line; the red line (--y0, --fill set by app.js) rises to where the reader is */
.bp-rail { position: sticky; top: 84px; display: flex; flex-direction: column; max-height: calc(100vh - 104px); }
.bp-rh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 12px; font: 700 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.bp-rh em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: #ff8a80; }
.bp-track { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2c2c2c transparent; }
.bp-run { position: relative; padding: 2px 0 6px; }
.bp-run::before { content: ""; position: absolute; left: 5px; top: var(--y0, 16px); height: var(--yl, calc(100% - 30px)); width: 2px; border-radius: 2px; background: #232323; }
.bp-fill { position: absolute; left: 5px; top: var(--y0, 16px); width: 2px; height: var(--fill, 0px); border-radius: 2px; background: linear-gradient(#5e0b10, #e8353e); box-shadow: 0 0 8px rgba(232, 53, 62, .55); }
/* the head of the red line: a round glowing bead, breathing softly */
.bp-spark { position: absolute; left: 6px; top: calc(var(--y0, 16px) + var(--fill, 0px)); width: 9px; height: 9px; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 30%, #ffb3a7 52%, #e8353e 100%); box-shadow: 0 0 0 3px rgba(232, 53, 62, .22), 0 0 12px 3px rgba(232, 53, 62, .75); animation: bpGlow 2.4s ease-in-out infinite; }
@keyframes bpGlow { 50% { box-shadow: 0 0 0 5px rgba(232, 53, 62, .14), 0 0 18px 5px rgba(232, 53, 62, .9); } }
.bp-rail ol { position: relative; display: grid; list-style: none; padding-left: 22px; }
.bp-rail a { position: relative; display: block; padding: 3px 0; font-size: var(--fs-sm); line-height: 1.35; color: var(--dim); transition: color .2s; }
.bp-rail a b { display: none; }
.bp-rail a::before { content: ""; position: absolute; left: -20px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #2b2b2b; box-shadow: 0 0 0 3px var(--page); transition: background .2s; }
.bp-rail a:hover { color: #fff; }
.bp-rail .done a { color: #bdbdbd; }
.bp-rail .done a::before { background: #b81f29; }
.bp-rail .on a { color: #fff; font-weight: 700; }
.bp-rail .on a::before { background: transparent; box-shadow: none; }

/* the article: chapters labelled "PHẦN 01" over their titles (--part, set on .ibody) */
.bp-main { min-width: 0; }
.bp-main .ibody { font-size: 15px; line-height: 1.75; color: #d0d0d0; }
.bp-main .ibody > p, .bp-main .isec > :not(figure), .bp-main .iend, .bp-main .ifine { max-width: none; }
.bp-main .isec { padding-top: 52px; margin-top: 0; border: 0; scroll-margin-top: 84px; }
.bp-main .isec:first-child { padding-top: 0; }
.bp-main .ih { display: block; margin-bottom: 14px; font-size: 24px; line-height: 1.3; text-wrap: balance; }
.bp-main .inum { display: block; width: auto; height: auto; margin-bottom: 8px; background: none; border-radius: 0; font: 700 11px/1 var(--mono); letter-spacing: .08em; color: #ff8a80; }
.bp-main .inum::before { content: var(--part, ""); text-transform: uppercase; }
.bp-main .isplit { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 14px 32px; align-items: start; }
/* the picture beside a list stays in view while the list runs on */
.bp-main .isplit .ipic { position: sticky; top: 96px; margin-top: 4px; }
.bp-main .ipic:not([data-wide]) img { border-radius: 20px; box-shadow: 0 0 0 1px #2a2a2a, 0 22px 48px rgba(0, 0, 0, .5); }
.bp-main .ifig { border-radius: var(--r-md); box-shadow: 0 0 0 1px #242424; }
.bp-noart { display: flex; flex-direction: column; gap: 16px; }
.bp-noart .bp-none { margin: 0; font-size: 16px; line-height: 1.6; }
.bp-box { padding: 4px 22px 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px #222; }

/* the spec sheet: no boxes, sections under mono heads with a hairline */
.bp-spec { position: sticky; top: 84px; display: flex; flex-direction: column; min-width: 0; }
.bp-id { display: flex; align-items: center; gap: 12px; }
.bp-id .av.lg { width: 44px; height: 44px; border-radius: 12px; }
.bp-nm { flex: 1; min-width: 0; }
.bp-nm b { display: block; font-size: 19px; line-height: 1.2; }
.bp-nm span { display: block; margin-top: 3px; overflow: hidden; font-size: var(--fs-xs); color: var(--dim); white-space: nowrap; text-overflow: ellipsis; }
.bp-sum { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.bp-sum b { font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.bp-sum span { font-size: var(--fs-md); color: var(--dim); }
.bp-sum em { margin-left: auto; font: 700 12px/1 var(--mono); font-style: normal; color: #ff6b6b; }
/* the six groups; a click on one opens its parts with their score and why (one open at a time: details name) */
.bp-cells { display: grid; gap: 7px; margin-top: 14px; }
.bp-cells summary { display: grid; grid-template-columns: 96px minmax(0, 1fr) 12px; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.bp-cells summary::-webkit-details-marker { display: none; }
.bp-cells summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.bp-cn { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-xs); color: #bdbdbd; white-space: nowrap; }
.bp-cn .ci { flex: none; width: 12px; height: 12px; color: #6f6f6f; }
.bp-cells summary:hover .bp-cn, .bp-cells details[open] .bp-cn { color: #fff; }
.bp-cv { display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; gap: 8px; }
.bp-cells i { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.bp-cells s { height: 7px; border-radius: 1.5px; background: #1e1e1e; }
.bp-cells s.on { background: linear-gradient(#ef3f48, #b81f29); }
.bp-cv b { font-size: 12.5px; text-align: right; }
.bp-ca { width: 12px; height: 12px; color: #555; transition: transform .2s, color .2s; }
.bp-cells summary:hover .bp-ca { color: #aaa; }
.bp-cells details[open] .bp-ca { transform: rotate(180deg); color: var(--red); }
.bp-parts { margin: 6px 0 4px 5px; padding-left: 12px; border-left: 1px solid #3a1d1f; }
.bp-parts li { display: grid; grid-template-columns: minmax(0, 1fr) 22px; column-gap: 8px; padding: 4px 22px 4px 0; }
.bp-parts .pn { min-width: 0; font-size: var(--fs-xs); color: #d6d6d6; }
.bp-parts .pn small { margin-left: 5px; font: 500 10.5px/1 var(--mono); color: #8a8a8a; }
.bp-parts b { font-size: 12.5px; text-align: right; }
.bp-parts b.mid { color: #f5b942; }
.bp-parts b.lo { color: #ff6b6b; }
.bp-parts b.na { color: #555; }
.bp-parts .pw { grid-column: 1 / -1; display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.45; color: var(--dim); }
.bp-parts .pw::first-letter { text-transform: uppercase; }
.bp-parts .keep { white-space: nowrap; }
.bp-parts .pw a { display: inline-flex; margin-left: 4px; vertical-align: -1px; color: #8a8a8a; }
.bp-parts .pw a:hover { color: #fff; }
.bp-parts .pw a svg { width: 11px; height: 11px; }
.bp-hint { margin-top: 2px; font-size: 11px; color: #8a8a8a; }
.bp-none { margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); }
.bp-acts { display: grid; gap: 8px; margin-top: 18px; }
.bp-acts .m-cta { margin: 0; height: 42px; border-radius: 11px; font-size: 13.5px; }
.bp-acts .m-cta.alt { height: 36px; font-size: 12.5px; background: transparent; border-color: #2a2a2a; }
.bp-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font: 700 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.bp-h::after { content: ""; flex: 1; order: 1; height: 1px; background: #232323; }
.bp-h span, .bp-h a { order: 2; font: 500 11.5px/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--dim); }
.bp-h a:hover { color: #fff; }
.bp-facts { margin: 0; }
.bp-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid #1c1c1c; font-size: 12.5px; }
.bp-f:last-child { border-bottom: 0; }
.bp-f dt { color: var(--dim); }
.bp-f dd { display: flex; align-items: center; gap: 6px; font-weight: 700; text-align: right; }
.bp-f dd small { font-weight: 400; color: var(--faint); }
.bp-f .sec { height: 22px; }
.bp-vol .bp-sp { flex-basis: 100%; }
.bp-vol .spark { display: block; width: 100%; height: auto; margin-top: 2px; }
.bp-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.bp-feats li { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: var(--fs-xs); color: #cfcfcf; }
.bp-feats li span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bp-feats svg { flex: none; width: 13px; height: 13px; color: #ff6b6b; }
.bp-feats .off { color: var(--dim); text-decoration: line-through; }
.bp-feats .off svg { color: #555; }
.bp-news { display: grid; gap: 10px; }
.bp-news li { display: grid; gap: 3px; padding-left: 12px; border-left: 1px solid #2a2a2a; font-size: var(--fs-sm); line-height: 1.45; }
.bp-news .k-important { border-left-color: #6d9bff; }
.bp-news .k-incident, .bp-news .k-security { border-left-color: var(--bad); }
.bp-news span { font: 500 11px/1.3 var(--mono); color: var(--dim); }
.bp-news .k-important span { color: #6d9bff; }
.bp-news .k-incident span, .bp-news .k-security span { color: var(--bad); }
.bp-news b { font-weight: 600; color: #ececec; }
.bp-news a { justify-self: start; font-size: var(--fs-xs); color: var(--muted); text-decoration: underline; text-decoration-color: #444; text-underline-offset: 2px; }
.bp-news + .bm-notes { margin-top: 12px; }
.bp-sim { display: grid; gap: 2px; }
.bp-sim a { display: flex; align-items: center; gap: 10px; padding: 7px 6px; margin: 0 -6px; border-radius: 8px; font-size: var(--fs-sm); transition: background .2s; }
.bp-sim a:hover { background: #151515; }
.bp-sim .av { width: 28px; height: 28px; border-radius: 8px; }
.bp-sim .nm { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bp-sim b { font: 700 13px/1 var(--mono); }
@media (prefers-reduced-motion: reduce) { .bp-spark { animation: none; } }
@media (max-width: 1240px) and (min-width: 1101px) {
  .bp-grid { grid-template-columns: 170px minmax(0, 1fr) 256px; gap: 30px; }
  .bp-main .isplit { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); }
}
/* one column: the rail becomes a row of chips that sticks to the top while reading */
@media (max-width: 1100px) {
  .bp-cover { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bp-cover h1 { font-size: 32px; }
  .bp-gem { width: 100%; max-width: 300px; margin: 0 auto; }
  .bp-grid, .bp-grid.no-rail { display: flex; flex-direction: column; align-items: stretch; gap: 26px; margin-top: 0; }
  .bp-rail { position: sticky; top: 0; z-index: 30; max-height: none; margin: 0 calc(-1 * var(--pad-x)); padding: 10px var(--pad-x); background: rgba(24, 24, 24, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid #222; }
  .bp-rh, .bp-fill, .bp-spark, .bp-run::before { display: none; }
  .bp-track { overflow-x: auto; overflow-y: hidden; }
  .bp-run { padding: 0; }
  .bp-rail ol { display: flex; gap: 6px; padding: 0; }
  .bp-rail li { flex: none; }
  .bp-rail a, .bp-rail .done a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: #121212; box-shadow: inset 0 0 0 1px #242424; font-size: 12.5px; color: #a2a1a1; white-space: nowrap; }
  .bp-rail a::before { display: none; }
  .bp-rail a b { display: inline; font: 700 10.5px/1 var(--mono); color: #ff6b6b; }
  .bp-rail .on a { color: #fff; background: #2a0f12; box-shadow: inset 0 0 0 1px #4a1a20; }
  .bp-main .isec { scroll-margin-top: 64px; }
  .bp-spec { position: static; }
  .bp-cta-m { display: block; margin-top: 18px; }
  .bp-cta-m .m-cta { width: auto; margin: 0; padding: 0 22px; height: 44px; border-radius: 12px; font-size: var(--fs-md); }
  .meta .m-vol { color: var(--muted); white-space: nowrap; }
  .meta .m-vol .num { color: #cfcfcf; }
}
@media (max-width: 640px) {
  .bp-cover h1 { font-size: 27px; }
  .bp-lead { font-size: 15.5px; }
  .bp-main .ih { font-size: 21px; }
  .bp-main .isplit { grid-template-columns: minmax(0, 1fr); }
  .bp-main .isplit .ipic { position: static; }
  .bp-main .isplit .ipic:not([data-wide]) { max-width: 240px; margin: 0 auto; }
}

/* ===== Intro article (from the TradeWiz MDX, tools/mdx.mjs) ===== */
.ibody { min-width: 0; font-size: var(--fs-md); line-height: 1.65; color: #d8d8d8; }
/* text blocks stop at ~95 characters a line (they ran to 160 at 1440 px); screenshots keep the full width */
.ibody > p, .ibody > ul, .ibody > ol, .isec > :not(figure), .iend, .ifine { max-width: 680px; }
.ibody p { margin: 0 0 var(--s3); }
.ibody strong, .ibody b { color: #fff; font-weight: 700; }
.ibody a { color: #fff; text-decoration: underline; text-decoration-color: #555; text-underline-offset: 2px; }
.ibody a:hover { text-decoration-color: #fff; }
.ibody ul, .ibody ol { margin: 0 0 var(--s3); padding-left: 20px; }
.ibody ul { list-style: disc; }
.ibody li { margin: 4px 0; }
.ibody code { padding: 1px 5px; border-radius: 4px; background: #1b1b1b; font-size: .92em; }
.isec { padding-top: var(--s5); margin-top: var(--s4); border-top: 1px solid #1c1c1c; scroll-margin-top: 72px; }
.isec:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.ih { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); font-size: var(--fs-lg); line-height: 1.3; font-weight: 700; color: #fff; }
.inum { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: var(--fs-2xs); font-weight: 700; }
/* text and screenshot side by side: the picture column is a set 40% (an auto column sized itself from the image's full
   width, then showed the image at 40% of that, which squeezed the text into a 150 px strip) */
.isplit { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s4) var(--s5); align-items: start; margin-bottom: var(--s3); }
.isplit .icol { min-width: 0; }
.isplit .ipic { max-width: var(--w); margin: 0; }
.ilist { list-style: none; display: grid; gap: 10px; margin: 0 0 var(--s3); padding: 0; }
.ilist li { display: flex; gap: 10px; margin: 0; }
.lic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--r-md); background: var(--raise); color: #fff; }
.lic .ic { width: 15px; height: 15px; }
.ilist.warn .lic { color: var(--warn); background: var(--warn-bg); }
.ilist li > div { min-width: 0; }
.ilist li b { display: block; margin-bottom: 2px; color: #fff; }
.itext { color: #cfcfcf; }
.itext p { margin: 0 0 6px; }
.itext p:last-child { margin-bottom: 0; }
.inote { display: flex; gap: 10px; margin: 0 0 var(--s3); padding: var(--s3); border-radius: var(--r-md); background: #15171c; border: 1px solid #22262e; }
.inote > .ic { flex: none; width: 16px; height: 16px; margin-top: 3px; color: #8ea6ff; }
.inote.warn { background: var(--warn-bg); border-color: #3a2b0e; }
.inote.warn > .ic { color: var(--warn); }
.isteps { list-style: none; counter-reset: step; display: grid; gap: var(--s3); margin: 0 0 var(--s3); padding: 0; }
.istep { counter-increment: step; position: relative; padding: var(--s3) var(--s3) var(--s3) 50px; background: var(--item); border: 1px solid var(--item-line); border-radius: var(--r-md); margin: 0; }
.istep::before { content: counter(step); position: absolute; left: var(--s3); top: var(--s3); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.istep b { display: block; margin-bottom: 4px; color: #fff; }
.icta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 30px; padding: 0 12px; border-radius: var(--r-sm); background: var(--raise); border: 1px solid #2a2a2a; font-size: var(--fs-xs); font-weight: 700; color: #fff; }
.icta:hover { background: #232323; }
.icta .ic { width: 12px; height: 12px; }
.ifig, .ipic { margin: var(--s3) 0 var(--s4); }
.ifig img, .ipic img { display: block; width: 100%; height: auto; border-radius: 0 0 var(--r-md) var(--r-md); background: #111; }
.ipic img { border-radius: var(--r-md); }
.ipic { width: 100%; max-width: var(--w); }
.ipic[data-wide] { max-width: none; }
.iframe { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border-radius: var(--r-md) var(--r-md) 0 0; background: #1d1d1d; border-bottom: 1px solid #262626; }
.idots { display: inline-flex; gap: 5px; }
.idots i { width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; }
.iurl { flex: 1; height: 18px; padding: 0 8px; border-radius: 9px; background: #121212; font-size: var(--fs-2xs); line-height: 18px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
figcaption { margin-top: 6px; font-size: var(--fs-xs); line-height: 1.5; color: var(--faint); }
.itodo { display: grid; place-items: center; width: 100%; border-radius: var(--r-md); background: #141414; border: 1px dashed #2a2a2a; }
.iend { margin-top: var(--s5); padding: var(--s4); border-radius: var(--r-md); background: var(--item); border: 1px solid var(--item-line); text-align: center; }
.iend b { display: block; font-size: var(--fs-lg); color: #fff; }
.iend p { margin: 6px 0 0; color: var(--muted); }
.iend .m-cta { max-width: 360px; margin: var(--s3) auto 0; }
.ifine { margin-top: var(--s4); font-size: var(--fs-xs); line-height: 1.6; color: var(--faint); }
/* ===== Lists (best) ===== */
/* The hub: one card per list with its top three; column counts that divide the twelve lists evenly (no half-empty row) */
.lcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 640px) { .lcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .lcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lcard { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); background: var(--card); border-radius: var(--r-lg); transition: background .2s; }
.lcard:hover { background: #121212; }
.lc-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.lc-head b { font-size: var(--fs-md); line-height: 1.3; font-weight: 700; }
.lc-lbl { flex: none; font-size: var(--fs-xs); color: var(--dim); }
.lc-top { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lc-top li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-sm); }
.lc-top .rk { flex: none; }
.lc-top .av { flex: none; width: 24px; height: 24px; }
.lc-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lc-top .num { flex: none; font-weight: 700; }
.lc-top .num small { font-weight: 400; }
.lc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s2); border-top: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); transition: color .2s; }
.lc-more svg { width: 12px; height: 12px; }
.lcard:hover .lc-more { color: #fff; }
/* Footer: every list, on every page (the lists have no tab of their own) */
/* Footer (every page): the brand and its line, then the lists in three columns (they have no tab of their own),
   the fine print under a hairline. Four columns on a wide screen, the brand above three on a tablet, two on a phone. */
/* footer: three quiet lines: the logo, the menu and "back to top"; the top lists as one run of links; the fine print */
.foot { margin-top: var(--s8); padding: 22px 0 28px; border-top: 1px solid #1f1f1f; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.foot-logo { display: inline-flex; align-items: center; color: #fff; }
.foot-logo svg { width: 24px; height: 24px; }
.foot-logo b { margin-left: -2px; font-size: 19px; line-height: 1; font-weight: 700; letter-spacing: -.3px; transform: translateY(2px); }
.foot-logo b span { color: var(--red); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-nav a { padding: 6px 0; font-size: var(--fs-sm); color: #9a9a9a; transition: color .2s; }
.foot-nav a:hover, .foot-nav a.active { color: #fff; }
.foot-up { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 50%; background: #141414; box-shadow: inset 0 0 0 1px #262626; color: #bdbdbd; transition: color .2s, box-shadow .2s; }
.foot-up:hover { color: #fff; box-shadow: inset 0 0 0 1px #3a3a3a; }
.foot-up svg { width: 12px; height: 12px; transform: rotate(-90deg); }
/* the lists and the fine print: two short lines on a desktop (short words from i18n fl_*, 11 px) */
.foot-lists { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin-top: 16px; font-size: var(--fs-2xs); line-height: 1.5; }
.foot-all { margin-right: 14px; font-weight: 700; color: #d6d6d6; transition: color .2s; }
.foot-all:hover, .foot-all[aria-current] { color: #fff; }
.foot-g { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-right: 14px; }
.foot-g + .foot-g::before { content: ""; align-self: center; width: 1px; height: 10px; background: #2e2e2e; }
@media (max-width: 640px) { .foot-g + .foot-g::before { display: none; } .foot-g a { display: inline-block; padding: 6px 0; } }
.foot-g a { color: #8b8b8b; transition: color .2s; }
.foot-g a:hover, .foot-g a[aria-current] { color: #fff; }
.foot .fine { margin-top: 6px; padding: 0; border: 0; font-size: var(--fs-2xs); line-height: 1.6; color: var(--dim); }
/* About and Privacy: the end of the lists row */
.foot-g.foot-site { margin-left: auto; margin-right: 0; }
.foot-g.foot-site::before { display: none; }
.foot-site a { color: #bdbdbd; }
/* the first Tab on every page: straight to the content */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #0c0c0c; font-weight: 700; transition: top .15s; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
@media (max-width: 640px) {
  .foot-nav { order: 3; flex-basis: 100%; }
}

/* ===== Compare: the logo rail picks 2–3 bots (series 1 red, 2 white, 3 grey dashed); the radar lays them over each other,
   then the totals, the key facts side by side (a red dot on the best of a line) and the features as dots ===== */
:root { --cmp-1: #e8353e; --cmp-2: #f2f2f2; --cmp-3: #8c8c8c; }
.cmp-pick { margin-top: var(--s4); padding: 8px 10px; }
.cmp-rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cmp-rail::-webkit-scrollbar { display: none; }
.cmp-p { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 66px; padding: 6px 4px 5px; border-radius: 10px; font-size: var(--fs-2xs); color: var(--dim); transition: background .2s, color .2s; }
.cmp-p:hover { background: #161616; color: #fff; }
.cmp-p .av { width: 34px; height: 34px; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px transparent; transition: box-shadow .2s; }
.cmp-p > span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cmp-p.on { background: #151515; color: #fff; }
.cmp-p.s1 .av { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--cmp-1); }
.cmp-p.s2 .av { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--cmp-2); }
/* the third bot is dashed everywhere (radar, legend, bar, column head), its ring too: 15 dashes drawn by a conic gradient */
.cmp-p.s3::before { content: ""; position: absolute; top: 2px; left: 50%; width: 42px; height: 42px; margin-left: -21px; border-radius: 50%; background: repeating-conic-gradient(var(--cmp-3) 0 14deg, transparent 14deg 24deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); pointer-events: none; }
.cmp-p em { position: absolute; top: 2px; right: 9px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 9.5px; font-weight: 700; color: #000; }
.cmp-p.s1 em { background: var(--cmp-1); color: #fff; }
.cmp-p.s2 em { background: var(--cmp-2); }
.cmp-p.s3 em { background: var(--cmp-3); }
.cmp-note { margin: var(--s2) 6px 2px; color: var(--warn); }
.cmp-note:empty { display: none; }
.cmp-none { margin-top: var(--s3); }
.cmp-main { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--s3); align-items: start; margin-top: var(--s3); }
.cmp-col, .cmp-right { display: grid; gap: var(--s3); min-width: 0; }
.cmp-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.cmp-hd span { font-size: var(--fs-xs); color: var(--dim); }
.cmp-radar { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; overflow: visible; }
.cmp-radar .ring { fill: none; stroke: #222; }
.cmp-radar .ring.out { stroke: #333; }
.cmp-radar .axis { stroke: #1f1f1f; }
.cmp-radar .tick { fill: #4a4a4a; font: 600 10px var(--font); }
.cmp-radar .lab { fill: #cfcfcf; font: 700 13.5px var(--font); }
.cmp-radar .lab .w { fill: #8a8a8a; font-weight: 400; }
.cmp-radar .val { font: 700 13px var(--font); }
.cmp-radar .val .s1 { fill: var(--cmp-1); }
.cmp-radar .val .s2 { fill: var(--cmp-2); }
.cmp-radar .val .s3 { fill: var(--cmp-3); }
.cmp-radar .val .sep { fill: #444; }
.cmp-poly { transform-origin: 240px 196px; transition: opacity .25s; animation: cmpGrow .55s var(--ease) both; }
.cmp-poly polygon { stroke-linejoin: round; }
.cmp-poly.s1 polygon { fill: rgba(232, 53, 62, .22); stroke: var(--cmp-1); stroke-width: 2.2; }
.cmp-poly.s2 polygon { fill: rgba(255, 255, 255, .06); stroke: var(--cmp-2); stroke-width: 1.6; }
.cmp-poly.s3 polygon { fill: rgba(140, 140, 140, .07); stroke: var(--cmp-3); stroke-width: 1.6; stroke-dasharray: 5 4; }
.cmp-poly circle { stroke: var(--card); stroke-width: 2; }
.cmp-poly.s1 circle { fill: var(--cmp-1); }
.cmp-poly.s2 circle { fill: var(--cmp-2); }
.cmp-poly.s3 circle { fill: var(--cmp-3); }
@keyframes cmpGrow { from { transform: scale(.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cmp-poly { animation: none; } }
/* a legend row lights its own polygon */
.cmp-rd:has(.cmp-lr:hover) .cmp-poly { opacity: .18; }
.cmp-rd:has(.cmp-lr.s1:hover) .cmp-poly.s1, .cmp-rd:has(.cmp-lr.s2:hover) .cmp-poly.s2, .cmp-rd:has(.cmp-lr.s3:hover) .cmp-poly.s3 { opacity: 1; }
.cmp-leg { display: grid; gap: 1px; margin-top: var(--s2); }
.cmp-lcap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 0 8px 4px; font-size: var(--fs-2xs); color: var(--dim); }
.cmp-lcap b { font-size: var(--fs-xs); color: #cfcfcf; }
.cmp-lr { display: grid; grid-template-columns: 16px 22px 84px minmax(0, 1fr) 38px 46px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; transition: background .2s; }
.cmp-lr .av { width: 22px; height: 22px; }
.cmp-lr .bn { overflow: hidden; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.cmp-lr > b { text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.cmp-lr > small { text-align: right; font-size: var(--fs-2xs); color: var(--dim); white-space: nowrap; }
.cmp-lr:hover { background: #141414; }
.cmp-lr > i { height: 3px; border-radius: 2px; }
.cmp-lr.s1 > i { background: var(--cmp-1); }
.cmp-lr.s2 > i { background: var(--cmp-2); }
.cmp-lr.s3 > i { background: repeating-linear-gradient(90deg, var(--cmp-3) 0 5px, transparent 5px 8px); }
.cmp-tk { height: 6px; border-radius: 3px; background: #1a1a1a; overflow: hidden; }
.cmp-tk i { display: block; height: 100%; border-radius: 3px; }
.cmp-lr.s1 .cmp-tk i { background: var(--cmp-1); }
.cmp-lr.s2 .cmp-tk i { background: var(--cmp-2); }
.cmp-lr.s3 .cmp-tk i { background: repeating-linear-gradient(90deg, var(--cmp-3) 0 6px, #5a5a5a 6px 8px); }
.cmp-tr { display: grid; grid-template-columns: 120px repeat(var(--n), minmax(0, 1fr)); gap: 18px; align-items: start; padding: 12px 0; border-top: 1px solid #1b1b1b; }
.cmp-tr.th { padding-top: 0; border-top: 0; }
.cmp-l { padding-top: 2px; font-size: var(--fs-xs); color: var(--dim); }
.cmp-bh { display: flex; align-items: center; gap: 8px; min-width: 0; padding-top: 8px; border-top: 3px solid; font-size: var(--fs-sm); font-weight: 700; }
.cmp-bh .av { width: 20px; height: 20px; }
.cmp-bh > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cmp-bh.s1 { border-color: var(--cmp-1); }
.cmp-bh.s2 { border-color: var(--cmp-2); }
.cmp-bh.s3 { border-color: var(--cmp-3); border-top-style: dashed; }
.cmp-v { min-width: 0; font-size: var(--fs-sm); line-height: 1.45; color: #b5b5b5; overflow-wrap: anywhere; }
.cmp-v.win { color: #fff; font-weight: 600; }
.cmp-v.win::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.cmp-v > .yes, .cmp-v > .no { display: inline-block; vertical-align: -3px; }
/* security badges carry a few words here: they wrap instead of running into the next column */
.cmp-v .sec { height: auto; min-height: 24px; padding: 4px 10px 4px 8px; line-height: 1.25; white-space: normal; align-items: flex-start; }
.cmp-v .sec svg { margin-top: 1px; }
.cmp-v .chains { vertical-align: middle; }
.cmp-s { display: block; margin-top: 4px; font-size: var(--fs-xs); line-height: 1.4; font-weight: 400; color: var(--faint); }
.cmp-feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.cmp-fr { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 28px; border-bottom: 1px solid #181818; font-size: var(--fs-sm); color: #cfcfcf; }
.cmp-fr > svg { width: 14px; height: 14px; color: #5f5f5f; }
.cmp-fr > span:nth-of-type(1) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cmp-dots { display: flex; gap: 6px; }
.cmp-dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #333; }
.cmp-dots i.on { box-shadow: none; }
.cmp-dots i.on.s1 { background: var(--cmp-1); }
.cmp-dots i.on.s2 { background: var(--cmp-2); }
.cmp-dots i.on.s3 { background: var(--cmp-3); }
.cmp-cta { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--s3); }
.cmp-go-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.cmp-go-row .av { width: 22px; height: 22px; }
.cmp-go-row > b { flex: 1; min-width: 0; overflow: hidden; font-size: var(--fs-sm); white-space: nowrap; text-overflow: ellipsis; }
.cmp-go-b { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 6px; }   /* wrap: a narrow column in a long language (ru at 1024 px) */
.cmp-go { display: inline-flex; align-items: center; height: var(--h-ctl-sm); padding: 0 12px; border-radius: var(--r-sm); background: #fff; color: #000; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; transition: background .2s; }
.cmp-go:hover { background: #e2e2e2; }
/* One column under 1000 px: radar, totals, facts, then the features and the links */
@media (max-width: 1000px) {
  .cmp-main { display: flex; flex-direction: column; }
  .cmp-col, .cmp-right { display: contents; }
  .cmp-main .card { width: 100%; min-width: 0; }
  .cmp-fbox { order: 3; }
  .cmp-cta { order: 4; }
  .cmp-radar { max-width: 520px; }
}
@media (max-width: 640px) {
  .cmp-radar .lab { font-size: 17px; }
  .cmp-radar .lab .w { display: none; }
  .cmp-radar .val { font-size: 16px; }
  .cmp-lr { grid-template-columns: 14px 22px minmax(0, 1fr) 60px 36px; gap: 8px; }
  .cmp-lr > small { display: none; }
  .cmp-tr { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
  .cmp-tr > .cmp-l { grid-column: 1 / -1; padding: 0; }
  .cmp-tr.th > .cmp-l { display: none; }
  .cmp-feat, .cmp-cta { grid-template-columns: minmax(0, 1fr); }
}

/* ===== News, promotions, alerts, live volume ===== */
/* ----- Home: the bot news beside the Top 3 (render.js newsShort). One row per headline: the date in mono, the
   headline over its bot and kind, the impact bars; the row opens the headline in the dialog (.nd). ----- */
.nrs { --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; display: grid; gap: 2px; }
.nk { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 21px; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 10px 0 10px;
  border-radius: var(--r-md); text-align: left; transition: background .15s; }
.nk:hover { background: #131313; }
.nk:focus-visible { outline-offset: -2px; }
.k-important .nk::before, .k-incident .nk::before, .k-security .nk::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 1px; background: var(--kc); }
.nk-tm { font: 500 12px/1.25 var(--mono); color: #bdbdbd; white-space: nowrap; }
.nk-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nk-h { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-sm); font-weight: 700; line-height: 1.25; color: #fff; }
.nk-sub { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-xs); line-height: 1.2; color: #a9a9a9; white-space: nowrap; }
.nk-sub .av { width: 14px; height: 14px; flex: none; }
.nk-bot { overflow: hidden; text-overflow: ellipsis; }
.nk-k { flex: none; font: 700 10px/1.2 var(--mono); letter-spacing: .4px; text-transform: uppercase; color: #8b8b8b; }
.nk-k::before, .nk-ago::before { content: "·"; margin-right: 6px; font-family: var(--font); color: #555; }
.nk-ago { flex: none; color: #7a7a7a; }
.k-important { --kc: #6d9bff; }
.k-incident, .k-security { --kc: var(--bad); }
.k-fixed { --kc: var(--ok); }
.k-special { --kc: #e879f9; }
.nr:not(.k-info) .nk-k { color: var(--kc); }
.imp { display: flex; gap: 3px; }
.imp i { width: 5px; height: 13px; border-radius: 2px; background: #262626; }
.imp i.on { background: var(--red); }
.lblk-news .nr:nth-child(n+7) { display: none; } /* six headlines wherever the list keeps its natural height */
/* the last row of the home's list: how many older headlines the news page has */
.nr-more .nk { color: var(--dim); text-decoration: none; }
.nr-more .nk-h { font-weight: 600; color: inherit; }
.nr-more .nk > svg { width: 14px; height: 14px; justify-self: center; }
.nr-more .nk:hover { color: #fff; }
.live .lblk-news .nr.cut { display: none; }
/* phones: the headline takes two lines, the kind's colour stands in for the impact bars */
@media (max-width: 640px) {
  .nk { grid-template-columns: 40px minmax(0, 1fr); align-items: start; height: auto; padding: 10px 4px 10px 10px; }
  .nk .imp { display: none; }
  .nk-tm { padding-top: 1px; }
  .nk-h { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; line-height: 1.4; }
  .lblk-h > div .sub { white-space: normal; }
}
/* the headline in the dialog: its summary, the bot's rank, score and 7-day volume, the review and the source */
.nd { --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; display: flex; flex-direction: column; gap: 14px; }
.nd h3 { font-size: 18px; line-height: 1.35; font-weight: 700; text-wrap: pretty; }
.nd p { font-size: var(--fs-md); line-height: 1.65; color: #cfcfcf; overflow-wrap: anywhere; }
.snap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 10px; background: #1f1f1f; }
.snap div { min-width: 0; padding: 8px 10px; background: #0d0d0d; }
.snap dt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 10px/1.2 var(--mono); letter-spacing: .5px; text-transform: uppercase; color: #8a8a8a; }
.snap dd { margin-top: 4px; font: 700 14px/1.2 var(--mono); }
.snap dd.up { color: var(--ok); }
.snap dd.down { color: var(--bad); }
.dp-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ----- News page (render.js newsFeed): a timeline by day, the day sticky on the left, a dot per headline coloured by
   its kind (the newest one glows); the kind chips pick one kind, the bot chips any bots. A summary and the offers on
   the right (under it below 1100 px); on a phone the day becomes a line above its headlines. ----- */
.row-newspage { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: start; }
.row-newspage .side { display: grid; gap: var(--s4); min-width: 0; }
.feed-col { min-width: 0; }
.feed-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
/* the head: the filters in a glass dock that stays under the top bar while the feed scrolls (feedKinds / feedBots; the
   logos grow under the pointer, app.js), then the newest headline as the lead with three more beside it (render.js
   newsLead); the h1 is there for search engines and screen readers only */
.nlead { display: grid; grid-template-columns: minmax(0, 1fr) 340px; margin-top: 14px; border-radius: 16px; overflow: hidden; background: #0e0e0e; box-shadow: inset 0 0 0 1px #1d1d1d; scroll-margin-top: 80px; }
.nl-main { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 18px; padding: 24px 26px; background: radial-gradient(50% 120% at 0 0, rgba(232, 53, 62, .18), rgba(232, 53, 62, 0) 70%); }
.av.xl { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 30px -10px rgba(232, 53, 62, .5); }
.nl-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: var(--fs-xs); color: var(--dim); }
.nl-k b { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--c); }
.nl-main h2 { margin-top: 8px; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.3px; text-wrap: balance; }
.nl-t { margin-top: 8px; max-width: 62ch; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.nl-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nl-act a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 10px; font-size: var(--fs-xs); font-weight: 700; transition: background .2s, box-shadow .2s, color .2s; }
.nl-act svg { width: 11px; height: 11px; }
.nl-src { background: #fff; color: #000; }
.nl-src:hover { background: #e6e6e6; }
.nl-rev { box-shadow: inset 0 0 0 1px #2c2c2c; color: #e6e6e6; }
.nl-rev:hover { box-shadow: inset 0 0 0 1px #4a4a4a; color: #fff; }
.nl-none { color: var(--dim); }
.nl-next { display: flex; flex-direction: column; padding: 14px 18px; border-left: 1px solid #1c1c1c; }
.nl-next h3 { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #8a8a8a; }
.nl-next button { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; padding: 11px 0; text-align: left; border-bottom: 1px solid #191919; }
.nl-next button:last-child { border-bottom: 0; }
.nl-next button i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--c); }
.nl-next button b { display: block; font-size: var(--fs-sm); line-height: 1.35; font-weight: 700; color: #e6e6e6; transition: color .2s; }
.nl-next button small { display: block; margin-top: 3px; font-size: var(--fs-2xs); color: #8a8a8a; }
.nl-next button:hover b { color: #fff; }
.ndock { position: sticky; top: 64px; z-index: 30; display: flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; margin: var(--s4) auto 0; padding: 6px; border-radius: 18px;
  background: rgba(28, 28, 28, .78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 18px 44px rgba(0, 0, 0, .55); }
.nd-kinds, .nd-bots { display: flex; align-items: center; gap: 4px; }
.nd-kinds { flex: none; }
/* more bots than the dock has room for: the logos scroll sideways inside it (the wheel too, app.js), the hidden edge
   fades (.more-r/.more-l). The room below is for a logo that grows under the pointer; it takes no clicks */
.nd-bots { flex: 0 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 0 4px 18px; margin: 0 -4px -18px; pointer-events: none; }
.nd-bots::-webkit-scrollbar { display: none; }
.nd-bots > * { pointer-events: auto; }
.dk { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 13px; font-size: var(--fs-xs); font-weight: 700; color: #bdbdbd; white-space: nowrap; transition: background .2s, color .2s; }
.dk i { width: 7px; height: 7px; border-radius: 50%; }
.dk small { font-size: var(--fs-2xs); color: #777; font-variant-numeric: tabular-nums; }
.dk:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.dk[aria-pressed="true"] { background: #fff; color: #000; }
.nd-sep { flex: none; width: 1px; height: 26px; margin: 0 6px; background: rgba(255, 255, 255, .12); }
.db { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; transform-origin: 50% 0; transition: transform .18s var(--ease), margin .18s var(--ease); }
.db .av { width: 32px; height: 32px; }
.db.all { width: auto; min-width: 38px; padding: 0 7px; font-size: 10.5px; line-height: 1.1; font-weight: 700; color: #bdbdbd; text-align: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.db:hover { z-index: 1; }
.db[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ff5d5f; box-shadow: 0 0 8px #ff5d5f; }
.db[aria-pressed="true"] .av { box-shadow: 0 0 0 2px #fff; }
.db.all[aria-pressed="true"] { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.nd-tip { position: absolute; top: calc(100% + 16px); padding: 4px 8px; border-radius: 7px; background: #fff; color: #000; font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.feed { margin-top: var(--s3); }
/* the news page: the first card of the feed starts level with the summary card beside it (the day group's 10 px top
   padding lifted; the timeline then runs up from the lead) */
@media (min-width: 561px) { .row-newspage .feed { margin-top: -10px; } }
.fd { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
.fd[hidden], .fi[hidden] { display: none; }
/* the feed's pages (render.js feedPager, app.js feedFilter): under the cards, lined up with them */
.fpg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: var(--s2) 0 0 138px; }
.fpg[hidden] { display: none; }
.fpg button { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 700; color: #bdbdbd; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.fpg button:hover:not(:disabled) { background: #1b1b1b; color: #fff; }
.fpg button[aria-current="page"] { background: #fff; color: #000; }
.fpg button:disabled { opacity: .3; cursor: default; }
.fpg svg { width: 13px; height: 13px; }
.fpg-gap { width: 22px; text-align: center; color: #555; }
.fpg-info { margin-left: auto; padding-left: var(--s3); font-size: var(--fs-xs); color: var(--dim); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .fpg { margin-left: 24px; } .fpg-info { flex-basis: 100%; margin: 6px 0 0; padding: 0; } }
.fd-date { position: sticky; top: 128px; align-self: start; padding-top: 12px; text-align: right; font-size: var(--fs-md); line-height: 1.3; font-weight: 700; }
.fd-date b { display: block; }
.fd-when { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 400; color: var(--dim); }
.fd-when > * { display: block; }
.fd-items { position: relative; display: grid; gap: 10px; padding: 10px 0 10px 24px; list-style: none; }
.fd-items::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: #262626; }
.fi { position: relative; padding: 12px var(--s4); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px #1d1d1d; }
.fi::before { content: ""; position: absolute; left: -23px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; box-shadow: 0 0 0 4px var(--page); }
.fi.k-important::before { background: #6d9bff; }
.fi.k-fixed::before { background: var(--ok); }
.fi.k-special::before { background: #e879f9; }
.fi.k-incident::before, .fi.k-security::before { background: var(--bad); box-shadow: 0 0 0 4px var(--page), 0 0 12px var(--bad); }
.fi.first::before { background: #ff5d5f; box-shadow: 0 0 0 4px var(--page), 0 0 14px #ff5d5f; }
.fi.k-incident, .fi.k-security { background: linear-gradient(90deg, #1d0c0f, var(--card) 60%); box-shadow: inset 0 0 0 1px rgba(239, 75, 85, .45); }
.fi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--fs-xs); }
.fi h3 { margin-top: 7px; font-size: 15px; line-height: 1.35; font-weight: 700; text-wrap: pretty; }
.fi p { margin-top: 4px; font-size: var(--fs-sm); line-height: 1.55; color: #bdbdbd; overflow-wrap: anywhere; }
.fi-links { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.fi-links .nw-src { margin: -6px -4px; }
.fi-rev { display: inline-flex; align-items: center; gap: 6px; margin: -6px 0; padding: 6px 0; font-size: var(--fs-xs); font-weight: 700; color: #d6d6d6; transition: color .2s; }
.fi-rev:hover { color: #fff; }
.fi-rev svg { width: 11px; height: 11px; transition: transform .2s; }
.fi-rev:hover svg { transform: translateX(2px); }
/* summary: "19 tin · 10 bot", the headlines per day as stacked columns, the kinds as a two-column key */
/* the summary card: a two-week calendar (heat in the logo's reds, a dot per incident or fix, the newest day ringed), the
   totals, the kind mix as one bar, a key */
.ns-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ns-head h2 { font-size: var(--fs-md); line-height: 1.3; font-weight: 700; }
.ns-head .sub { margin: 0; font-size: var(--fs-2xs); color: var(--dim); white-space: nowrap; }
.ns-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.nc-wd { font-size: 10px; font-weight: 700; letter-spacing: .4px; text-align: center; color: #8a8a8a; }
.nc { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 5px 6px; border-radius: 7px; background: #151515; font-size: 10px; color: #8c8c8c; white-space: nowrap; }
/* three steps: a day with headlines (lighter, white date), a quiet day in the range, a day outside it (no box at all) */
.nc.out { background: none; color: #383838; }
.nc.has { background: #262626; color: #fff; }
.nc.last { box-shadow: inset 0 0 0 1.5px #fff; }
/* one square per headline in its kind's colour, two rows of four at most */
.nc-sq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.nc-sq i { aspect-ratio: 1; border-radius: 2px; }
.nc-sq em { grid-column: span 1; font-style: normal; font-size: 8.5px; font-weight: 700; line-height: 1; color: #fff; align-self: center; }
.ns-tot { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; font-size: var(--fs-xs); color: var(--dim); }
.ns-tot b { margin-right: 4px; font-size: 22px; line-height: 1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ns-mix { display: flex; gap: 2px; height: 8px; margin-top: 10px; border-radius: 4px; overflow: hidden; }
/* the key in two rows, in the order of the bar above it (render.js sets --c = half the kinds, rounded up) */
.ns-key { display: grid; grid-template-columns: repeat(var(--c, 2), max-content); justify-content: start; gap: 6px 22px; margin-top: 10px; }
.ns-key li { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: #a8a8a8; }
.ns-key i { flex: none; width: 7px; height: 7px; border-radius: 2px; }
.ns-key b { color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .fd-date { top: 68px; }
}
@media (max-width: 1100px) {
  .ndock { top: 8px; }
}
/* a narrow window: the type buttons alone fill it (ru, es), so the whole dock scrolls sideways, logos too; no logo grows
   under the pointer there (it would be cut off by the scroll) */
@media (max-width: 960px) {
  .ndock { width: auto; overflow-x: auto; scrollbar-width: none; }
  .ndock::-webkit-scrollbar { display: none; }
  .ndock .nd-bots { flex: none; overflow: visible; padding: 0; margin: 0; pointer-events: auto; }
  .ndock .db { transform: none !important; margin: 0 !important; }
}
@media (max-width: 900px) {
  .nlead { grid-template-columns: minmax(0, 1fr); }
  .nl-next { border-left: 0; border-top: 1px solid #1c1c1c; }
}
@media (max-width: 640px) {
  .nl-main { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .nl-main h2 { font-size: 19px; }
}
@media (max-width: 560px) {
  .fd { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fd-date { position: static; padding-top: 10px; text-align: left; }
  .fd-date b, .fd-when, .fd-when > * { display: inline; }
  .fd-when { margin-left: 8px; }
  .fd-when [data-ago]::before { content: " · "; }
  .fd-items { padding-top: 8px; }
  /* the source and the review link go under the summary */
  .fi { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "k b" "h h" "p p" "l l"; column-gap: 12px; align-items: center; }
  .fi-meta { display: contents; }
  .fi-meta .nw-kind { grid-area: k; }
  .fi-meta .nw-bot { grid-area: b; justify-self: start; }
  .fi h3 { grid-area: h; }
  .fi p { grid-area: p; }
  .fi-links { grid-area: l; justify-content: space-between; margin: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .db { transition: none; } }
.card-head .sub { margin-top: 2px; }
a.view-all { position: static; }
.card-head a.view-all { margin-left: auto; }
.empty { margin-top: var(--s3); color: var(--faint); }
.nws { display: grid; gap: var(--s2); margin-top: var(--s3); }
.nw { position: relative; padding: 10px var(--s3) 10px 14px; background: var(--item); border: 1px solid var(--item-line); border-radius: var(--r-md); }
.nw::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: #3a3a3a; }
.nw.k-important::before { background: #6d9bff; }
.nw.k-special::before { background: #e879f9; }
.nw.k-incident::before, .nw.k-security::before { background: var(--bad); }
.nw.k-fixed::before { background: var(--ok); }
.nw-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-xs); color: var(--faint); }
.nw-top time { font-weight: 700; color: #a9a9a9; font-variant-numeric: tabular-nums; }
.nw-kind { padding: 2px 7px; border-radius: var(--r-pill); background: #1f1f1f; color: #bdbdbd; font-weight: 600; }
.k-important .nw-kind { color: #6d9bff; background: #121a2e; }
.k-special .nw-kind { color: #e879f9; background: #26122a; }
.k-incident .nw-kind, .k-security .nw-kind { color: var(--bad); background: var(--bad-bg); }
.k-fixed .nw-kind { color: var(--ok); background: var(--ok-bg); }
.nw-bot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #d6d6d6; }
.nw-bot .av { width: 18px; height: 18px; }
.nw-bot:hover { color: #fff; }
.nw-title { display: block; margin-top: 6px; font-size: var(--fs-sm); line-height: 1.35; font-weight: 700; color: #fff; }
.nw p { margin-top: 4px; font-size: var(--fs-xs); line-height: 1.5; color: #bdbdbd; }
.nw-src { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: var(--fs-xs); color: var(--faint); }
.nw-src svg { width: 10px; height: 10px; }
.nw-src:hover { color: #fff; }
.nw[hidden] { display: none; }
.alerts { margin-top: var(--s4); border: 1px solid #3a141a; background: #140a0c; }
.al-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.al-head svg { width: 16px; height: 16px; color: var(--bad); align-self: center; }
.al-head .sub { margin: 0; }
/* the running offers as tickets: a red stub (value + kind) and a body, notched where they meet */
.tks { display: grid; gap: 10px; margin-top: 12px; }
.tk { display: grid; grid-template-columns: 78px minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden;
  -webkit-mask: radial-gradient(circle 9px at 78px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at 78px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 9px at 78px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at 78px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.tk-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px; background: linear-gradient(160deg, #e8353e, #8a1219); border-right: 2px dashed rgba(0, 0, 0, .45); text-align: center; }
.tk-stub b { font-size: 22px; line-height: 1; font-weight: 700; letter-spacing: -.5px; color: #fff; }
.tk-stub span { font-size: 9.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #ffd9d0; }
.tk-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; background: #141414; }
.tk-b h3 { font-size: var(--fs-sm); line-height: 1.35; font-weight: 700; text-wrap: pretty; }
.tk-b p { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-2xs); color: var(--dim); }
.tk-b p .av { width: 18px; height: 18px; }
.tk-b p > a:not(.tk-go) { color: #bdbdbd; font-weight: 600; transition: color .2s; }
.tk-b p > a:not(.tk-go):hover { color: #fff; }
.tk-b p > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk-go { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: var(--fs-xs); font-weight: 700; color: #fff; transition: color .2s; }
.tk-go:hover { color: #ff8a92; }
.tk-go svg { width: 10px; height: 10px; }

/* volume by chain: two columns of compact rows (one when the block is narrow) */
.lives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; margin-top: var(--s3); }
.live-row { display: grid; grid-template-columns: 3px 20px minmax(0, 1fr) auto 42px; align-items: center; gap: 7px; height: 28px; padding: 0 4px 0 2px; border-radius: var(--r-sm); }
.live-row:hover { background: #121212; }
.lr-mark { width: 3px; height: 14px; border-radius: 2px; }
.live-row .ch-ic { width: 20px; height: 20px; }
.live-row .ch-ic img, .live-row .ch-ic svg { width: 13px; height: 13px; }
.lr-n { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-sm); }
.lr-v { font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.live-row .trend { justify-self: end; }
.spark { display: block; width: 100%; height: auto; overflow: visible; }
.trend { display: inline-block; padding: 2px 6px; border-radius: var(--r-pill); font-size: var(--fs-2xs); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.trend.up { color: var(--ok); background: var(--ok-bg); }
.trend.down { color: var(--bad); background: var(--bad-bg); }
.trend.flat, .trend.none { color: #8a8a8a; background: #1a1a1a; }
@media (max-width: 1100px) {
  .row-newspage { grid-template-columns: minmax(0, 1fr); }
}
/* a narrow chain block (1101–1200 px windows, tablets) drops the trend and the colour mark; under 400 px it is one column */
.lblk-chain { container: chain / inline-size; }
@container chain (min-width: 400px) and (max-width: 479px) {
  .live-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .live-row .lr-mark, .live-row .trend { display: none; }
}
@container chain (max-width: 399px) { .lives { grid-template-columns: minmax(0, 1fr); } }

.ibody a, .facts a, .nw p, .promo p { overflow-wrap: anywhere; }

/* ===== Tap targets: small links and icon buttons keep their look but take a 24–32 px hit area
   (padding, taken back with negative margins so nothing moves) ===== */
.nw-src { padding: 6px 4px; margin: 0 -4px -6px; border-radius: var(--r-sm); }
.nw-bot { padding: 5px 4px; margin: -5px -4px; border-radius: var(--r-sm); }
.bw .bn { padding: 4px 0; margin: -4px 0; }
.src { padding: 6px; margin: -6px -2px -6px 0; }
.m-close { width: 28px; height: 28px; }
.sort { padding: 6px 0; margin: -6px 0; }
.back { padding: 6px 0; margin: -6px 0 calc(var(--s3) - 6px); }
/* a finger (phones, tablets): the smallest ones get a 32 px hit area drawn around them by an empty ::after (the source
   icons of a score's parts, a promotion's Open, 1D / 7D) */
@media (pointer: coarse), (max-width: 700px) {
  .bp-parts .pw a, .tk-go, .seg.seg-xs button { position: relative; }
  .bp-parts .pw a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; transform: translate(-50%, -50%); }
  .tk-go::after { content: ""; position: absolute; inset: -8px -6px; }
  .seg.seg-xs button::after { content: ""; position: absolute; inset: -5px -1px; }
}

/* ===== Home, first screen: the Top 3 and the live volume end at the bottom of the window =====
   Every screen but a phone opens on the whole first row, nothing cut at the bottom edge: the row is as tall as the window
   under the top bar and the title line, with one --s4 gap below it. --fit-top is where the row starts (top bar, title line, gap; app.js
   measures it again when something above, a security alert, moves the row down). Between 400 and 960 px: a window too
   short for that (a phone on its side) keeps the natural layout and scrolls, a very tall one shows the ranking under it.
   The cards fill the height. The three Top 3 rows share it, each stone as tall as its row; a short row tightens, then
   drops the strongest/weakest line, folds the facts into one line, shrinks its head, and drops the facts. The live
   lists (chains, news) show as many whole rows as fit, the spare height shared out between them: a row that does not
   fit wraps into a second column beside the list, which is clipped (app.js makes those rows inert). Stacked
   (700–1100 px) the Top 3 alone fills the first screen and the side card follows. */
.row-top { --fit-top: 86px; --fit-h: clamp(400px, calc(100vh - var(--fit-top) - var(--s4)), 960px); }
@supports (height: 100svh) { .row-top { --fit-h: clamp(400px, calc(100svh - var(--fit-top) - var(--s4)), 960px); } }
@media (max-width: 1100px) { .row-top { --fit-top: 130px; } }
/* 1101–1180 px: a wider Top 3 column, so its rows keep the stone beside the details instead of turning into the
   phone carousel (that starts when the card is under 560 px) */
@media (min-width: 1101px) and (max-width: 1180px) { .row-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

@media (min-width: 1101px) and (min-height: 488px) {
  .row-top { height: var(--fit-h); grid-template-rows: minmax(0, 1fr); }
  .row-top > .card { min-height: 0; }
  /* side card: by chain (every chain), news (the rest of the height, never under three headlines, two in a very
     short window) */
  .live { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: max-content minmax(min-content, 1fr); gap: 12px; }
  .live .lblk + .lblk { padding-top: 12px; }
  .live .nrs { flex: 1 1 0; min-height: 0; display: flex; flex-flow: column wrap; align-content: flex-start;
    gap: 2px 24px; overflow: clip; overflow-clip-margin: 12px; }
  /* the news list asks for three rows, whatever it holds: its block then never gets less than its head and those rows */
  .lblk-news .nrs { contain: size; min-height: 142px; }
  .live .nr { flex: 1 0 44px; width: 100%; max-height: 52px; display: flex; }
  .live .nk { height: auto; }
  .lblk-news .nr:nth-child(n+7) { display: flex; }
  .live .nr { transform: translateX(calc(var(--pg, 0) * (-100% - 24px))); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
}
@media (prefers-reduced-motion: reduce) { .live .nr { transition: none; } }
.lblk-act { display: flex; flex: none; align-items: center; gap: 14px; }   /* the title's sub gives way first */
/* news pager: two quiet arrow buttons, nothing between them (the page is read out to screen readers, #newsPg) */
.pager { display: inline-flex; align-items: center; gap: 6px; }
.pager[hidden] { display: none; }
.pager > button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #161616; color: #d6d6d6; transition: background .2s, color .2s; }
.pager > button:hover:not(:disabled) { background: #232323; color: #fff; }
.pager > button:disabled { background: #111; color: #3a3a3a; cursor: default; }
.pager svg { width: 12px; height: 12px; }
@media (min-width: 700px) and (max-width: 1100px) and (min-height: 600px) {
  .top3-card { height: var(--fit-h); }
}
@media (min-width: 1101px) and (min-height: 488px), (min-width: 700px) and (max-width: 1100px) and (min-height: 600px) {
  .t3s { min-height: 0; margin-top: var(--s3); }
  .t3 { flex: 1 1 0; min-height: 0; container: t3 / size; grid-template-rows: minmax(0, 1fr); padding: 10px 12px 10px 14px; }
  /* the stone column is as wide as the stone at the row's height (its 176:200 box) */
  .t3-body { align-self: stretch; width: min(30cqw, 88cqh, 132px); min-height: 0; }
  .t3-stone { height: 100%; max-width: none; }
}
/* short windows: the Top 3 sub line goes (the pressed chip says the criterion), so does the risers line of the live card */
@media (min-width: 1101px) and (min-height: 488px) and (max-height: 640px) {
  .top3-card #top3Sub { display: none; }
  .t3 { padding-top: 8px; padding-bottom: 8px; }
  .lblk-h > div .sub { display: none; }
  .live-row { height: 25px; }
}
@media (min-width: 1101px) and (min-height: 488px) and (max-height: 540px) {
  .live { gap: 10px; }
  .lblk-news .nrs { min-height: 94px; }
  .live .lblk + .lblk { padding-top: 10px; }
}
/* a Top 3 row (the heights are the row's inside, padding off): tall rows get a bigger strip and the domain; short ones
   a smaller logo and score, then the strip loses its grey line, then the strip goes */
@container t3 (min-height: 140px) {
  .t3-info { row-gap: 12px; }
  .t3-strip { font-size: 10.5px; }
}
@container t3 (max-height: 114px) {
  .t3-rank { font-size: 24px; }
  .t3 .av.lg { width: 32px; height: 32px; }
  .t3-n small { display: none; }
  .t3-s b { font-size: 22px; }
}
@container t3 (max-height: 104px) {
  .t3-info { row-gap: 8px; }
  .t3-btn { height: 28px; }
}
@container t3 (max-height: 76px) { .t3-strip dd span { display: none; } }
@container t3 (max-height: 58px) { .t3-strip { display: none; } }

/* ---------- /best/chain-*: the chain's intro and who trades the most there ---------- */
.ch-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s6); margin-top: var(--s4); }
.ch-text { position: relative; padding-left: 44px; }
.ch-mark { position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--item); }
.ch-mark img, .ch-mark svg { width: 18px; height: 18px; }
.ch-text p { font-size: var(--fs-sm); line-height: 1.6; color: #cfcfcf; }
.ch-text .ch-total { margin-top: var(--s3); color: var(--muted); }
.ch-total .trend { margin-left: 4px; }
.ch-vol h2 { font-size: var(--fs-sm); font-weight: 700; color: #fff; margin-bottom: var(--s2); }
.ch-vol ol { display: grid; gap: 6px; }
.ch-vol li { display: grid; grid-template-columns: 22px minmax(0, 9.5em) minmax(0, 1fr) auto; align-items: center; gap: var(--s2); font-size: var(--fs-sm); }
.ch-vol li a { display: flex; align-items: center; gap: 7px; min-width: 0; color: #e6e6e6; }
.ch-vol li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-vol li a:hover span { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ch-vol .ch-bar { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--w), #1d1d1d var(--w)); }
.ch-vol .num { text-align: right; color: #e6e6e6; white-space: nowrap; }
.ch-note { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--dim); }
@media (max-width: 860px) { .ch-intro { grid-template-columns: 1fr; gap: var(--s4); } }
@media (max-width: 480px) { .ch-vol li { grid-template-columns: 22px minmax(0, 7.5em) minmax(0, 1fr) auto; } .ch-text { padding-left: 0; } .ch-mark { position: static; margin-bottom: var(--s2); } }

/* ---------- 404: a radar that caught nothing, the ways out, the leading bots ---------- */
.nf { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: var(--s8); margin-top: var(--s6); padding: var(--s6) var(--s8); background: var(--card); border-radius: var(--r-lg); }
.nf-radar { position: relative; width: 220px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #141414 0, #0c0c0c 70%); }
.nf-ring { position: absolute; border: 1px solid #262626; border-radius: 50%; }
.nf-ring:nth-child(1) { inset: 0; }
.nf-ring:nth-child(2) { inset: 18%; }
.nf-ring:nth-child(3) { inset: 36%; }
.nf-radar::before, .nf-radar::after { content: ""; position: absolute; background: #1f1f1f; }
.nf-radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.nf-radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.nf-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(212, 47, 47, .34), rgba(212, 47, 47, 0) 70deg, rgba(212, 47, 47, 0)); animation: nfSweep 4s linear infinite; will-change: transform; }
.nf-blip { position: absolute; left: 70%; top: 30%; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px 2px rgba(212, 47, 47, .55); opacity: 0; animation: nfBlip 4s linear infinite; }
.nf-radar b { position: relative; font-size: 46px; font-weight: 700; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
@keyframes nfSweep { to { transform: rotate(360deg); } }
@keyframes nfBlip { 0%, 8% { opacity: 0; } 12% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nf-sweep { animation: none; } .nf-blip { animation: none; opacity: .8; } }
.nf-k { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--red-text); }
.nf-body h1 { margin-top: 6px; font-size: var(--fs-xl); line-height: 1.2; font-weight: 700; }
.nf-t { margin-top: var(--s2); max-width: 560px; font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
.nf-t code { padding: 1px 6px; border-radius: 6px; background: var(--item); color: #e6e6e6; font-family: inherit; word-break: break-all; }
.nf-guess { margin-top: var(--s2); font-size: var(--fs-sm); color: #cfcfcf; }
.nf-guess a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.nf-acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.nf-btn { display: inline-flex; align-items: center; gap: var(--s2); height: 40px; padding: 0 var(--s4); border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 700; color: #fff; background: var(--item); border: 1px solid #262626; transition: background .2s; }
.nf-btn:hover { background: #1b1b1b; }
.nf-btn.red { background: var(--red); border-color: var(--red); }
.nf-btn.red:hover { background: var(--red-hover); }
.nf-btn svg { width: 13px; height: 13px; }
.nf-btn kbd { margin-left: 2px; padding: 1px 5px; border-radius: 4px; border: 1px solid #333; font-size: 11px; font-family: inherit; color: var(--muted); }
.nf-more { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s4); margin-top: var(--s4); }
.nf-col { padding: var(--s4); background: var(--card); border-radius: var(--r-lg); }
.nf-col h2 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--s3); }
.nf-bots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--s4); }
.nf-bots a { display: flex; align-items: center; gap: var(--s2); padding: 6px 8px; border-radius: var(--r-md); font-size: var(--fs-sm); color: #e6e6e6; transition: background .2s; }
.nf-bots a:hover { background: var(--item); color: #fff; }
.nf-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-links { display: grid; gap: 2px; }
.nf-links a { display: flex; align-items: center; justify-content: space-between; padding: 8px; border-radius: var(--r-md); font-size: var(--fs-sm); color: #e6e6e6; transition: background .2s; }
.nf-links a:hover { background: var(--item); color: #fff; }
.nf-links svg { width: 12px; height: 12px; color: var(--dim); }
@media (max-width: 760px) {
  .nf { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--s4); padding: var(--s5) var(--s4); }
  .nf-radar { width: 150px; }
  .nf-radar b { font-size: 34px; }
  .nf-t { margin-inline: auto; }
  .nf-acts { justify-content: center; }
  .nf-more { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .nf-bots { grid-template-columns: 1fr; } .nf-acts .nf-btn { flex: 1; justify-content: center; } .nf-btn kbd { display: none; } }
.nf-bots, .nf-links, .ch-vol ol { list-style: none; margin: 0; padding: 0; }

/* bot article: lists line up with the text's edge; screenshots open at full size */
.ibody .ilist { padding-left: 0; }
.bp-main .ifig img, .bp-main .ipic img { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .9); cursor: zoom-out; animation: zoomIn .15s ease-out; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.zoom:focus { outline: none; }
/* a phone: the screenshot at its own size in an overlay that scrolls both ways (the fitted one is no bigger than in the article) */
@media (max-width: 700px) {
  .zoom { display: block; overflow: auto; overscroll-behavior: contain; padding: 12px; }
  .zoom img { display: block; max-width: none; max-height: none; border-radius: 8px; }
}
@keyframes zoomIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .zoom { animation: none; } }
