/* cryptonews.org design system.
   Tokens first, then base, layout, components, pages, responsive rules.
   Numbers use the mono font with tabular figures so columns line up. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
}

/* tokens */
:root {
  color-scheme: dark;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-pill: 999px;
  --fs-1: 11px; --fs-2: 12px; --fs-3: 13px; --fs-4: 14px; --fs-5: 16px; --fs-6: 20px; --fs-7: 28px; --fs-8: 36px;
  --topbar-h: 56px;
  --ticker-h: 38px;
  --gutter: 24px;
  --maxw: 1560px;

  --bg: #0a0d14;
  --glow: rgba(88, 104, 255, .16);
  --bar-bg: rgba(10, 13, 20, .86);
  --surface: #111623;
  --surface-2: #161d2d;
  --surface-3: #1c2538;
  --line: #1f2a3d;
  --line-2: #2b3852;
  --text: #e8ecf5;
  --text-2: #a9b4c9;
  --text-3: #8290aa;
  --accent: #6f7cff;
  --accent-text: #98a2ff;
  --accent-fill: #4a5cf0;
  --accent-soft: rgba(111, 124, 255, .14);
  --accent-line: rgba(111, 124, 255, .5);
  --accent-glow: rgba(111, 124, 255, .55);
  --up: #33d17a;
  --up-soft: rgba(51, 209, 122, .14);
  --down: #ff6470;
  --down-soft: rgba(255, 100, 112, .14);
  --warn: #f2b544;
  --warn-soft: rgba(242, 181, 68, .14);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, .55), 0 0 0 1px var(--line-2);
  --mark-bg: #4a5cf0;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5fa;
  --glow: rgba(74, 92, 240, .08);
  --bar-bg: rgba(243, 245, 250, .88);
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #edf0f7;
  --line: #e1e6f0;
  --line-2: #cdd5e4;
  --text: #0c1222;
  --text-2: #424d64;
  --text-3: #5b6884;
  --accent: #3b4dd8;
  --accent-text: #3140c4;
  --accent-fill: #3b4dd8;
  --accent-soft: rgba(59, 77, 216, .09);
  --accent-line: rgba(59, 77, 216, .45);
  --accent-glow: rgba(59, 77, 216, .35);
  --up: #087a42;
  --up-soft: rgba(8, 122, 66, .11);
  --down: #c9243a;
  --down-soft: rgba(201, 36, 58, .10);
  --warn: #8f5507;
  --warn-soft: rgba(143, 85, 7, .12);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-2: 0 12px 32px rgba(16, 24, 40, .16), 0 0 0 1px var(--line-2);
}
/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0;
  background: radial-gradient(1100px 380px at 50% -220px, var(--glow), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 400 var(--fs-4)/1.5 var(--sans);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
img { max-width: 100%; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: var(--r-1); }
main:focus { outline: none; }
::selection { background: var(--accent-soft); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent-fill); color: #fff; padding: 8px 14px; border-radius: var(--r-2); font-weight: 600; }
.skip:focus { top: 8px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0; letter-spacing: -.01em; }
.muted { color: var(--text-3); }
.na { color: var(--text-3); font-family: var(--mono); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--text-3); }
.ic { width: 1em; height: 1em; flex: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }
.wrap-mid { max-width: 1120px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bar-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: var(--topbar-h); display: flex; align-items: center; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 8px; box-shadow: 0 0 18px -4px var(--accent-glow); }
.brand-word { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 15px; letter-spacing: .09em; line-height: 1; }
.brand-tld { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; color: var(--accent-text); font-size: 13px; margin-left: 1px; }
.nav { display: none; align-items: center; gap: 2px; margin-left: var(--s-2); min-width: 0; }
.nav a { padding: 7px 9px; border-radius: var(--r-2); color: var(--text-2); font-size: var(--fs-3); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--r-2) var(--r-2) 0 0; }
.tools { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 10px; color: var(--text-3); pointer-events: none; }
.search input { width: 172px; height: 34px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface); padding: 0 34px 0 30px; font-size: var(--fs-3); transition: width .18s ease, border-color .18s; }
.search input::placeholder { color: var(--text-3); }
.search input:focus { width: 230px; border-color: var(--accent-line); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.search-key { position: absolute; right: 8px; font-size: 10px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--text-3); background: var(--surface-2); }
.search input:focus + .search-key { display: none; }
.live { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font: 600 10.5px/1 var(--mono); letter-spacing: .08em; border: 1px solid var(--line-2); color: var(--text-2); }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.live[data-state="live"] { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.live[data-state="live"] .dot { background: var(--up); animation: beat 2s infinite; }
.live[data-state="stale"], .live[data-state="offline"] { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.live[data-state="stale"] .dot, .live[data-state="offline"] .dot { background: var(--warn); }
.iconbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); padding: 0; list-style: none; }
.iconbtn:hover { color: var(--text); background: var(--surface-2); }
.iconbtn .ic { width: 17px; height: 17px; }
.iconbtn .ic-sun { display: none; }
:root[data-theme="light"] .iconbtn .ic-sun { display: block; }
:root[data-theme="light"] .iconbtn .ic-moon { display: none; }
.menu { position: relative; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 42px; width: 230px; display: grid; gap: 1px; padding: 6px; background: var(--surface); border-radius: var(--r-3); box-shadow: var(--shadow-2); z-index: 60; }
.menu-panel a { padding: 9px 12px; border-radius: var(--r-2); font-size: var(--fs-4); font-weight: 500; color: var(--text-2); }
.menu-panel a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.menu-panel a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); } 60% { box-shadow: 0 0 0 5px transparent; } }

/* ticker */
.ticker { position: relative; height: var(--ticker-h); border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; overflow: hidden; }
.ticker-view { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.ticker-track { display: flex; width: max-content; animation: tkscroll 70s linear infinite; }
.ticker:hover .ticker-track, .ticker.is-paused .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; }
.tk a { display: flex; align-items: center; gap: 8px; height: var(--ticker-h); padding: 0 16px; border-left: 1px solid var(--line); font-size: var(--fs-2); white-space: nowrap; }
.tk a:hover { background: var(--surface-2); text-decoration: none; }
.tk-sym { font-weight: 700; letter-spacing: .02em; }
.tk-px { color: var(--text-2); font-size: var(--fs-2); }
.tk.is-watched .tk-sym::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--warn); clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); }
.ticker-pause { flex: none; width: var(--ticker-h); height: var(--ticker-h); border: 0; border-right: 1px solid var(--line); background: var(--surface); color: var(--text-3); display: grid; place-items: center; padding: 0; }
.ticker-pause:hover { color: var(--text); background: var(--surface-2); }
.ticker-pause .ic { width: 13px; height: 13px; }
.ticker-pause .ic-play { display: none; }
.ticker.is-paused .ic-pause { display: none; }
.ticker.is-paused .ic-play { display: block; }
.ticker-empty { padding: 0 var(--gutter); font-size: var(--fs-2); color: var(--text-3); }
.ticker-flag { flex: none; margin: 0 10px; font: 700 10px/1 var(--mono); letter-spacing: .08em; color: var(--warn); background: var(--warn-soft); padding: 4px 7px; border-radius: 4px; }
.ticker.is-stale .ticker-view { opacity: .55; }
@keyframes tkscroll { to { transform: translateX(-50%); } }

/* chips, tags, buttons */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: var(--r-pill); font-size: var(--fs-1); font-weight: 650; letter-spacing: .01em; white-space: nowrap; flex: none; line-height: 1; }
.chip-mm { background: var(--accent-fill); color: #fff; box-shadow: 0 0 0 1px var(--accent-line), 0 0 14px -3px var(--accent-glow); }
.chip-notable { color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.chip-routine { color: var(--text-2); background: var(--surface-3); }
.chip-promo { color: var(--text-3); text-decoration: line-through; box-shadow: inset 0 0 0 1px var(--line-2); opacity: .8; }
.chip-pending { color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2); border-style: dashed; }
.chip-ok { color: var(--up); background: var(--up-soft); }
.chip-watch { color: var(--warn); background: var(--warn-soft); }
.chip-depeg { color: var(--down); background: var(--down-soft); }
.chip-risk-low { color: var(--up); background: var(--up-soft); }
.chip-risk-elevated { color: var(--warn); background: var(--warn-soft); }
.chip-risk-high { color: var(--down); background: var(--down-soft); }
.chip-risk-critical { color: #fff; background: var(--down); }
:root[data-theme="light"] .chip-risk-critical { background: #c9243a; }
.pill-risk-low[aria-current="true"] { color: var(--up); border-color: var(--up); background: var(--up-soft); }
.pill-risk-elevated[aria-current="true"] { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.pill-risk-high[aria-current="true"], .pill-risk-critical[aria-current="true"] { color: var(--down); border-color: var(--down); background: var(--down-soft); }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--r-1); font-size: 10.5px; font-weight: 600; color: var(--text-2); background: var(--surface-3); text-transform: none; white-space: nowrap; line-height: 1; }
.tag-warn { color: var(--warn); background: var(--warn-soft); }
.tag-flag { color: var(--down); background: var(--down-soft); margin: 0 4px 3px 0; }
.paper-badge { color: var(--warn); background: var(--warn-soft); font: 800 10.5px/1 var(--mono); letter-spacing: .1em; padding: 3px 7px; border: 1px solid var(--warn); border-radius: var(--r-1); }
.tag-primary { color: var(--accent-text); background: var(--accent-soft); }
.asset { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--r-1); font: 600 10.5px/1 var(--mono); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
a.asset:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.chg { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; }
.chg::before { content: ""; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; flex: none; }
.chg.up { color: var(--up); }
.chg.up::before { border-bottom: 5px solid currentColor; }
.chg.down { color: var(--down); }
.chg.down::before { border-top: 5px solid currentColor; }
.chg.flat { color: var(--text-3); }
.chg.flat::before { width: 6px; height: 2px; border: 0; background: currentColor; }
.sent { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-2); font-weight: 550; white-space: nowrap; }
.sent .ic { width: 9px; height: 9px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: var(--fs-3); font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent-fill); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--accent-fill); filter: brightness(1.12); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-s { height: 26px; padding: 0 9px; font-size: var(--fs-2); gap: 6px; color: var(--text-2); }
.btn-s .ic { width: 13px; height: 13px; }
.btn.is-done { color: var(--up); border-color: var(--up); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: var(--fs-2); font-weight: 550; white-space: nowrap; }
.pill:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.pill[aria-pressed="true"], .pill[aria-current="true"] { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.pill-n { color: var(--text-3); font-size: 11px; }
.pill-sep { width: 1px; height: 18px; background: var(--line-2); align-self: center; margin: 0 4px; }
.pill .ic { width: 12px; height: 12px; }
.pills-row, .filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s-4); }
.star { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; background: transparent; color: var(--text-3); padding: 0; border-radius: var(--r-1); }
.star:hover { color: var(--warn); }
.star .ic { width: 15px; height: 15px; }
.star .ic-star-on { display: none; }
.star[aria-pressed="true"] { color: var(--warn); }
.star[aria-pressed="true"] .ic-star { display: none; }
.star[aria-pressed="true"] .ic-star-on { display: block; }
.jev-badge { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; border-radius: var(--r-1); font-size: 10.5px; font-weight: 750; letter-spacing: .06em; color: var(--accent-text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.jev-badge .mono { font-weight: 600; letter-spacing: 0; }
.fresh { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: var(--r-pill); font: 600 10.5px/1 var(--mono); letter-spacing: .02em; color: var(--text-3); background: var(--surface-2); white-space: nowrap; }
.fresh .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.fresh-label { color: var(--text-2); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.fresh-label::after { content: ":"; }
.fresh-stale { color: var(--warn); background: var(--warn-soft); }
.fresh-stale .dot { background: var(--warn); }
.fresh-missing, .fresh-invalid { color: var(--down); background: var(--down-soft); }
.fresh-missing .dot, .fresh-invalid .dot { background: var(--down); }
.fresh-stale .fresh-text { text-transform: uppercase; }
kbd { font-size: 11px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); }

/* banners, empty */
.banner { display: flex; gap: 12px; align-items: flex-start; margin: var(--s-4) 0; padding: 12px 14px; border-radius: var(--r-3); border: 1px solid var(--line-2); background: var(--surface); font-size: var(--fs-3); }
.banner .ic { width: 18px; height: 18px; margin-top: 1px; }
.banner-item { margin-right: 6px; }
.banner-warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.banner-warn .ic { color: var(--warn); }
.banner-danger { border-color: color-mix(in srgb, var(--down) 55%, transparent); background: var(--down-soft); }
.banner-danger .ic { color: var(--down); }
.banner-ok { border-color: color-mix(in srgb, var(--up) 40%, transparent); background: var(--up-soft); }
.banner-ok .ic { color: var(--up); }
.empty { padding: 20px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-3); color: var(--text-2); font-size: var(--fs-3); background: var(--surface); text-align: left; }
.empty b { color: var(--text); }
.empty-chart { min-height: 120px; display: grid; place-items: center; text-align: center; }
.panel-flush .empty { border: 0; border-radius: 0; }
.fineprint { color: var(--text-3); font-size: var(--fs-2); line-height: 1.5; margin-top: var(--s-3); }
.fineprint.pad { padding: 0 16px 14px; margin-top: 10px; }
.result-line { color: var(--text-2); font-size: var(--fs-3); margin: 0 0 var(--s-3); }

/* panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-1); min-width: 0; margin-bottom: var(--s-4); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-size: var(--fs-1); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.panel-tools { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-2); color: var(--text-3); flex-wrap: wrap; justify-content: flex-end; }
.panel-more { font-size: var(--fs-2); font-weight: 600; color: var(--accent-text); white-space: nowrap; }
.panel-b { padding: 14px; }
.panel-b.panel-flush { padding: 0; }
.widgets .panel { margin-bottom: 0; }
.widget-note { color: var(--text-3); font-size: var(--fs-2); margin-top: 10px; line-height: 1.45; }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p, .prose p + ol { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 18px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 6px; }
.prose { font-size: var(--fs-4); color: var(--text-2); line-height: 1.6; }
.prose b { color: var(--text); }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose code, .code { font-size: 12.5px; }
.prose-p { color: var(--text-2); margin-bottom: 14px; }
.prose-stack .panel { margin-bottom: 16px; }
.grid-two { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; align-items: start; }
.grid-two > .panel { margin-bottom: var(--s-4); }
.grid-two-wide { grid-template-columns: 1.15fr 1fr; }

/* page head, crumbs */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0 var(--s-4); flex-wrap: wrap; }
.page-head h1 { font-size: var(--fs-7); line-height: 1.15; letter-spacing: -.025em; font-weight: 750; }
.lede { color: var(--text-2); margin-top: 6px; max-width: 74ch; font-size: var(--fs-4); }
.page-head-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 8px; padding: var(--s-4) 0 0; font-size: var(--fs-2); color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }

/* hero and receipts */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-5); align-items: center; padding-top: var(--s-5); padding-bottom: var(--s-4); }
.hero h1 { font-size: var(--fs-7); line-height: 1.16; letter-spacing: -.028em; font-weight: 750; max-width: 24ch; }
.hero-ms { color: var(--accent-text); font-weight: 600; letter-spacing: -.03em; }
.hero-sub { color: var(--text-2); font-weight: 600; }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: var(--s-3); font-size: var(--fs-3); font-weight: 600; }
.hero-links a { color: var(--accent-text); }
.receipts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-1); overflow: hidden; }
.rc { display: grid; gap: 3px; padding: 13px 14px 12px; border-left: 1px solid var(--line); min-width: 0; align-content: start; }
.rc:first-child { border-left: 0; }
.rc:hover { background: var(--surface-2); text-decoration: none; }
.rc-l { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.3; }
.rc-v { font-size: var(--fs-6); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
.rc-s { font-size: var(--fs-2); color: var(--text-3); line-height: 1.35; }
.rc-s .chg { font-size: var(--fs-2); }

/* home grid */
.grid-home { display: grid; grid-template-columns: minmax(316px, 372px) minmax(0, 1fr) minmax(300px, 340px); gap: var(--s-4); align-items: start; padding-bottom: var(--s-6); }
.col { min-width: 0; }
.col-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.col-h h2 { font-size: var(--fs-5); font-weight: 750; letter-spacing: -.01em; }
.col-h h2::before { content: ""; display: inline-block; width: 3px; height: 14px; background: var(--accent); border-radius: 2px; margin-right: 9px; vertical-align: -1px; }
.col-sub { flex: 1 1 100%; font-size: var(--fs-2); color: var(--text-3); order: 3; margin-top: -4px; }
.col-h .fresh, .col-h .panel-more { margin-left: auto; }
.col-h .fresh + .panel-more { margin-left: 0; }
.pulse, .stream { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-1); overflow: hidden; }
.pcard { padding: 14px 14px 12px; border-bottom: 1px solid var(--line); position: relative; }
.pcard:last-child { border-bottom: 0; }
.pcard[data-impact="market_moving"] { background: linear-gradient(90deg, var(--accent-soft), transparent 55%); box-shadow: inset 3px 0 0 var(--accent); }
.pcard-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pcard-rank { width: 20px; color: var(--text-3); font-size: var(--fs-2); font-weight: 600; }
.score { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.score-n { font-size: var(--fs-3); font-weight: 700; }
.pbar { display: inline-block; width: 44px; height: 4px; border-radius: 3px; background: var(--surface-3); overflow: hidden; vertical-align: middle; }
.pbar i { display: block; height: 100%; width: calc(var(--w) * 1%); background: var(--text-3); border-radius: 3px; }
.pbar-accent i { background: var(--accent); }
.pcard-title { display: block; font-size: 15px; line-height: 1.38; font-weight: 640; letter-spacing: -.008em; color: var(--text); }
.pcard-title:hover { color: var(--accent-text); text-decoration: none; }
.pcard-meta, .row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; font-size: var(--fs-2); color: var(--text-3); }
.pcard-meta .src, .row-meta .src { color: var(--text-2); font-weight: 550; }
.outlets { color: var(--accent-text); font-weight: 600; }
.pcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.pcard-foot .share { flex: 1 1 100%; margin-top: 4px; }
.pcard-foot .share .btn { flex: 1; }
.share { display: inline-flex; gap: 6px; }
.row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); position: relative; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row.is-focus, .pcard.is-focus { outline: 2px solid var(--accent-text); outline-offset: -2px; background: var(--surface-2); }
.row-time { font: 500 var(--fs-2)/1.7 var(--mono); color: var(--text-3); }
.row-top { display: flex; gap: 8px; align-items: flex-start; }
.row-top .chip { margin-top: 1px; }
.row-title { flex: 1; min-width: 0; font-size: 14px; line-height: 1.42; font-weight: 550; }
.row-title:hover { color: var(--accent-text); text-decoration: none; }
.row[data-impact="promo_or_noise"] .row-title { color: var(--text-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 60%, transparent); }
.row[data-impact="market_moving"] .row-title { font-weight: 650; }
.row .share { opacity: 0; transition: opacity .15s; align-self: start; }
.row .share .btn-s { padding: 0; width: 26px; }
.row:hover .share, .row:focus-within .share { opacity: 1; }
@media (hover: none) { .row .share { opacity: 1; } }
.stream[data-hide-promo="1"] .row[data-impact="promo_or_noise"], .stream[data-hide-spon="1"] .row[data-spon="1"] { display: none; }
.stream[data-impact="market_moving"] .row:not([data-impact="market_moving"]) { display: none; }
.stream[data-impact="notable"] .row:not([data-impact="market_moving"]):not([data-impact="notable"]) { display: none; }
.stream-end { padding: 14px 0 0; text-align: center; }
.stream-page, .stream-tight { border: 0; box-shadow: none; background: transparent; }
.stream-page { border: 1px solid var(--line); background: var(--surface); }
.stream-tight .row { padding-left: 14px; }
.row.is-new, .pcard.is-new { animation: arrive .9s ease-out; }
@keyframes arrive { 0% { background: var(--accent-soft); transform: translateY(-6px); opacity: 0; } 25% { opacity: 1; } 100% { background: transparent; transform: none; } }
.flash-up { animation: flashup 1.3s ease-out; }
.flash-down { animation: flashdown 1.3s ease-out; }
@keyframes flashup { 0% { background: var(--up-soft); box-shadow: 0 0 0 3px var(--up-soft); } 100% { background: transparent; box-shadow: 0 0 0 3px transparent; } }
@keyframes flashdown { 0% { background: var(--down-soft); box-shadow: 0 0 0 3px var(--down-soft); } 100% { background: transparent; box-shadow: 0 0 0 3px transparent; } }
.since { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; margin: 0 0 var(--s-4); padding: 10px 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r-3); font-size: var(--fs-3); }
.since[hidden] { display: none; }
.since b { color: var(--text); }
.since-item { display: inline-flex; gap: 6px; align-items: center; }
.since button { margin-left: auto; }
.widgets { display: grid; gap: var(--s-4); }

/* widgets */
.fg { display: grid; grid-template-columns: 1fr; gap: 6px; }
.fg-gauge { position: relative; width: min(230px, 100%); margin: 0 auto; }
.gauge { width: 100%; height: auto; }
.gz { fill: none; stroke-width: 14; }
.gz-extreme-fear { stroke: var(--down); }
.gz-fear { stroke: var(--warn); }
.gz-neutral { stroke: var(--text-3); }
.gz-greed { stroke: var(--up); stroke-opacity: .6; }
.gz-extreme-greed { stroke: var(--up); }
.gauge-marker { fill: var(--text); stroke: var(--surface); stroke-width: 3; }
.fg-read { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; line-height: 1; }
.fg-n { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.fg-l { display: block; font-size: var(--fs-2); font-weight: 650; color: var(--text-2); margin-top: 3px; }
.fg-hist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.fg-hist div { padding: 8px 10px; background: var(--surface-2); border-radius: var(--r-2); }
.fg-hist dt, .stat-l, .kv dt { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.fg-hist dd { font-size: var(--fs-4); font-weight: 600; margin-top: 2px; display: flex; gap: 8px; align-items: baseline; }
.kv3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv3 .stat { padding: 8px 10px; background: var(--surface-2); border-radius: var(--r-2); border: 0; }
.kv3 .stat-v { font-size: var(--fs-5); }
.mini-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.mini-list li:first-child { padding-top: 0; }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-main { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: var(--fs-3); }
.mini-sub { color: var(--text-3); font-size: var(--fs-2); margin-top: 3px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-num { display: flex; gap: 8px; align-items: center; font-size: var(--fs-2); white-space: nowrap; }
.fund { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fund h3 { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.fund li { display: flex; justify-content: space-between; padding: 5px 0; font-size: var(--fs-3); font-weight: 600; }
.fund a:hover { color: var(--accent-text); }

/* tables */
.tbl-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-3); }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { position: relative; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); white-space: nowrap; padding-top: 8px; padding-bottom: 8px; }
.tbl tbody th { font-weight: 600; }
.tbl tbody tr:hover > * { background: var(--surface-2); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-mini { font-size: var(--fs-2); }
.tbl-mini th, .tbl-mini td { padding: 7px 8px; }
.tbl-mini thead th { background: transparent; }
.tbl .n { color: var(--text-3); font-size: 10.5px; }
.tbl-coins thead th, .tbl-sort thead th { z-index: 2; }
.th-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-transform: inherit; letter-spacing: inherit; font: inherit; }
.th-btn:hover { color: var(--text); }
.th-btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.sort-ind { width: 8px; height: 8px; opacity: 0; }
th[aria-sort="ascending"] .sort-ind, th[aria-sort="descending"] .sort-ind { opacity: 1; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
th[aria-sort="descending"] .sort-ind { clip-path: polygon(0 0, 100% 0, 50% 100%); }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--accent-text); }
.c-star { width: 34px; padding-right: 0 !important; }
.c-rank { width: 40px; color: var(--text-3); }
.c-spark { width: 110px; }
.coin-link { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.coin-link:hover { text-decoration: none; }
.coin-link:hover .coin-sym { color: var(--accent-text); }
.coin-sym { font-weight: 700; letter-spacing: .01em; }
.coin-name { color: var(--text-3); font-size: var(--fs-2); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-coins .coin-link { flex-wrap: wrap; gap: 0 8px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font: 700 12px/1 var(--mono); flex: none; box-shadow: inset 0 0 0 1px var(--accent-line); }
.avatar-s { width: 26px; height: 26px; font-size: 10px; }
.avatar-lg { width: 48px; height: 48px; font-size: 12px; letter-spacing: -.02em; }
.spark { width: 96px; height: 28px; display: block; margin-left: auto; }
.spark-empty { text-align: right; color: var(--text-3); height: auto; width: auto; }
.spark.up { color: var(--up); }
.spark.down { color: var(--down); }
.spark.flat { color: var(--text-3); }
.spark-line { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark-fill { fill: currentColor; opacity: .1; }
tr.is-hidden { display: none; }
.tools-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 var(--s-3); }
.fld { display: grid; gap: 4px; font-size: var(--fs-2); color: var(--text-3); font-weight: 600; }
.fld-grow { flex: 1 1 240px; }
.fld input, .fld select, .filterbar input[type="search"] { height: 34px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface); padding: 0 10px; font-size: var(--fs-3); color: var(--text); min-width: 0; width: 100%; }
.fld input:focus, .fld select:focus { border-color: var(--accent-line); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.tools-row .fld input { width: 100%; }
.filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 12px 14px; margin: 0 0 var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }
.filterbar .fld { flex: 1 1 150px; }
.filterbar .fld-s { flex: 0 1 96px; }
.check { display: inline-flex; align-items: center; gap: 8px; height: 34px; font-size: var(--fs-3); color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--accent-fill); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: var(--s-4) 0; }

/* stat rows and tiles */
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); margin: 0 0 var(--s-4); }
.statrow-tight { margin-bottom: var(--s-3); grid-template-columns: repeat(3, 1fr); }
.stat { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-1); min-width: 0; }
.stat-v { font-size: var(--fs-6); font-weight: 650; letter-spacing: -.02em; margin-top: 4px; line-height: 1.2; overflow-wrap: anywhere; }
.stat-v a:hover { color: var(--accent-text); }
.stat-s { color: var(--text-3); font-size: var(--fs-2); margin-top: 3px; }
.stat-up .stat-v { color: var(--up); }
.stat-down .stat-v, .stat-danger .stat-v { color: var(--down); }
.stat-warn .stat-v { color: var(--warn); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-3); margin: 0 0 var(--s-4); }
.tile { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-1); display: grid; gap: 6px; }
.tile-watch { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: linear-gradient(180deg, var(--warn-soft), var(--surface) 70%); }
.tile-depeg { border-color: var(--down); background: linear-gradient(180deg, var(--down-soft), var(--surface) 70%); }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-sym { font-size: var(--fs-5); letter-spacing: .01em; }
.tile-px { font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.tile-dev { display: flex; justify-content: space-between; font-size: var(--fs-2); color: var(--text-2); }
.tile-peg { color: var(--text-3); }
.tile-foot { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-2); color: var(--text-3); }
.peg-bar { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--surface-3); }
.peg-bar::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--text-3); }
.peg-fill { position: absolute; top: 0; bottom: 0; width: calc(var(--w) * 1%); border-radius: 3px; }
.peg-pos { left: 50%; background: var(--up); }
.peg-neg { right: 50%; background: var(--down); }
tr.peg-watch > * { background: var(--warn-soft); }
tr.peg-depeg > * { background: var(--down-soft); }
.chains .tag { margin: 0 4px 2px 0; }

/* charts */
.lc { --plot-h: 240px; }
.lc-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: var(--plot-h); }
.lc-y { position: relative; }
.lc-y span { position: absolute; right: 8px; top: calc(var(--y) * 1%); transform: translateY(-50%); font: 500 10.5px/1 var(--mono); color: var(--text-3); white-space: nowrap; }
.lc-plot { position: relative; min-height: 0; border-left: 1px solid var(--line); }
.lc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.lc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc-base { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.lc-line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.lc-area { fill: currentColor; opacity: .1; }
.lc-dot { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px currentColor; }
.lc-base-label { position: absolute; left: 6px; top: calc(var(--y) * 1%); transform: translateY(-120%); font: 600 10px/1 var(--mono); color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
.lc-x { display: flex; justify-content: space-between; padding: 6px 0 0 52px; font: 500 10.5px/1 var(--mono); color: var(--text-3); }
.lc.up { color: var(--up); }
.lc.down { color: var(--down); }
.lc.flat { color: var(--text-2); }
.lb .lc-body { --plot-h: 220px; }
.lb-market { fill: var(--text-3); opacity: .65; }
.lb-model { fill: var(--accent); }
.lb-spot { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.lb-spot-label { position: absolute; top: 4px; left: calc(var(--x) * 1%); transform: translateX(6px); font: 600 10.5px/1 var(--mono); color: var(--warn); background: var(--surface); padding: 2px 4px; border-radius: 3px; }
.lb-x { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 0 0 52px; font: 500 10.5px/1 var(--mono); color: var(--text-3); text-align: center; }
.lb-legend { display: flex; gap: 16px; padding: 10px 0 0 52px; font-size: var(--fs-2); color: var(--text-2); }
.lb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw-market { background: var(--text-3); opacity: .65; }
.sw-model { background: var(--accent); }
.lc-price { --plot-h: 200px; }

/* story, coin, misc pages */
.story { padding-bottom: var(--s-6); }
.story-head { padding: var(--s-4) 0 var(--s-5); }
.story-head h1 { font-size: 30px; line-height: 1.22; letter-spacing: -.025em; font-weight: 760; margin: 14px 0 12px; }
.story-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.story-meta { color: var(--text-2); font-size: var(--fs-3); line-height: 1.9; }
.story-meta .fresh { margin-left: 8px; vertical-align: 1px; }
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-4); }
.verdict-line { font-size: var(--fs-5); font-weight: 600; margin-bottom: 14px; }
.vbars { display: grid; gap: 12px; }
.vbar { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 4px 12px; align-items: center; }
.vbar-l { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-3); color: var(--text-2); }
.vbar-l b { color: var(--text); font-weight: 650; }
.vbar-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.vbar-track i { display: block; height: 100%; width: calc(var(--w) * 1%); border-radius: 4px; background: var(--accent); }
.vbar-sponsored .vbar-track i { background: var(--warn); }
.vbar-score .vbar-track i { background: var(--text-2); }
.vbar-p { text-align: right; font-size: var(--fs-3); font-weight: 600; }
.outlets-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-3); }
.outlets-list li:last-child { border-bottom: 0; }
.outlet-name { font-weight: 650; }
.ext { color: var(--text); }
.ext:hover { color: var(--accent-text); }
.ext .ic-ext { display: inline-block; width: 11px; height: 11px; margin-left: 5px; color: var(--text-3); vertical-align: -1px; }
.btn.ext { color: #fff; }
.btn.ext .ic-ext { color: currentColor; }
.related li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-3); flex-wrap: wrap; }
.related li:last-child { border-bottom: 0; }
.related a { flex: 1 1 260px; font-weight: 550; }
.related a:hover { color: var(--accent-text); text-decoration: none; }
.coin-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap; padding: var(--s-4) 0 var(--s-5); }
.coin-id { display: flex; align-items: center; gap: 14px; }
.coin-id h1 { font-size: var(--fs-7); letter-spacing: -.025em; font-weight: 750; line-height: 1.1; }
.coin-sym-lg { color: var(--text-3); font-size: var(--fs-5); font-weight: 600; margin-left: 6px; letter-spacing: .02em; }
.coin-price { display: grid; gap: 8px; justify-items: end; }
.price-xl { font-size: var(--fs-8); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.chg-row { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: var(--fs-3); }
.chg-l { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.coin-main, .coin-side { min-width: 0; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-4); align-items: start; padding-bottom: var(--s-6); }
.kv dl div { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-3); }
.kv dl div:first-child { padding-top: 0; }
.kv dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { letter-spacing: .06em; }
.kv dd { font-weight: 600; }
.notfound { padding: var(--s-7) 0; }
.nf-code { font-size: 88px; font-weight: 800; letter-spacing: -.06em; color: var(--accent-text); line-height: 1; }
.notfound h1 { font-size: var(--fs-7); margin: 10px 0 8px; letter-spacing: -.025em; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-5); }
.how { display: grid; gap: 8px; }
.tok { display: flex; align-items: center; gap: 8px; }
.tok-name { color: var(--text-3); font-size: var(--fs-2); font-weight: 400; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flags { min-width: 180px; }
.note summary { cursor: pointer; color: var(--accent-text); font-size: var(--fs-2); font-weight: 600; }
.note p { margin-top: 6px; color: var(--text-2); font-size: var(--fs-2); max-width: 52ch; white-space: normal; }
.accuracy { padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-2); }
.out { white-space: nowrap; }
.out .ic { display: inline-block; width: 11px; height: 11px; margin-right: 5px; vertical-align: -1px; }
.out-hit { color: var(--up); }
.out-miss { color: var(--down); }
.sig-title { min-width: 240px; max-width: 460px; white-space: normal; }
.sig-title a:hover { color: var(--accent-text); }
.sig-detail { color: var(--text-3); font-size: var(--fs-2); margin-top: 2px; }
.row-bad > * { background: var(--down-soft); }
.row-err td { padding-top: 0; }
.err-text { display: block; color: var(--down); font-size: var(--fs-2); white-space: normal; }
.steps { display: grid; gap: 10px; }
.code { margin: 0 0 10px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-2); color: var(--text-2); font-size: 12.5px; line-height: 1.55; overflow-x: auto; }
.code-scroll { max-height: 340px; overflow: auto; }
.code[hidden] { display: none; }

/* newsletter, legal pages, risk notes */
.nl { display: grid; gap: 8px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1 1 auto; min-width: 0; height: 38px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface); padding: 0 12px; font-size: var(--fs-3); }
.nl-row input:focus { border-color: var(--accent-line); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.nl-row .btn { height: 38px; }
.nl-msg { min-height: 18px; font-size: var(--fs-2); color: var(--text-2); }
.nl-msg:empty { min-height: 0; }
.nl-ok { color: var(--up); }
.nl-bad { color: var(--down); }
.nl-fine { color: var(--text-3); font-size: var(--fs-2); line-height: 1.5; }
.nl-fine a { text-decoration: underline; text-underline-offset: 2px; }
.nl-compact .nl-row { flex-wrap: wrap; }
.footer-nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-5); align-items: center; padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.footer-nl h2 { font-size: var(--fs-5); color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.footer-nl p { color: var(--text-3); font-size: var(--fs-3); margin-top: 4px; }
.footer-credits { margin-top: 10px; color: var(--text-3); font-size: var(--fs-2); line-height: 1.6; max-width: 110ch; }
.legal { margin-bottom: var(--s-4); }
.legal .prose h2 { font-size: var(--fs-5); color: var(--text); margin: 26px 0 8px; letter-spacing: -.01em; }
.legal .prose h2:first-of-type { margin-top: 8px; }
.legal .prose h3 { font-size: var(--fs-4); color: var(--text); margin: 18px 0 6px; }
.legal .prose p, .legal .prose li { max-width: 78ch; }
.legal-meta { color: var(--text-3); font-size: var(--fs-2); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: var(--s-2) 0 var(--s-6); font-size: var(--fs-3); color: var(--text-3); }
.legal-nav a { color: var(--text-2); }
.legal-nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.risk-note { margin-top: var(--s-3); color: var(--text-3); font-size: var(--fs-2); line-height: 1.5; }
.risk-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.risk-mini { margin-top: 4px; font-size: 10.5px; line-height: 1.3; color: var(--text-3); max-width: 15ch; white-space: normal; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: var(--fs-2); color: var(--text-2); }
.note .fineprint { margin-top: 8px; white-space: normal; }
.acc-lead { color: var(--text-2); font-size: var(--fs-3); margin: 0 0 10px; }
.acc-lead b { color: var(--text); }
.acc-base > * { background: var(--surface-2); font-weight: 600; }
.accuracy .tbl { font-size: var(--fs-2); }
.src-note { margin-top: 0; }
.adm-h { display: flex; align-items: center; gap: 10px; margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-5); letter-spacing: -.01em; }
.sub-h { margin: 0; padding: 8px 14px; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-search { padding: 4px 4px 8px; }
.menu-search input { width: 100%; height: 36px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 12px; font-size: var(--fs-4); }

/* footer, dialog, embed */
.footer { margin-top: var(--s-6); padding: var(--s-6) 0 var(--s-7); border-top: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: var(--fs-3); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-5); }
.footer-tag { margin-top: 12px; max-width: 34ch; color: var(--text-3); font-size: var(--fs-3); }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h2 { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.footer-col a:hover { color: var(--text); }
.footer-note { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); max-width: 110ch; line-height: 1.6; }
.footer-note b { color: var(--text); }
.credits { margin-top: 12px; }
.credits summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.credits ul { margin-top: 8px; display: grid; gap: 4px; color: var(--text-3); font-size: var(--fs-2); }
.footer-fine { margin-top: 12px; color: var(--text-3); font-size: var(--fs-2); }
.dialog { border: 0; padding: 0; border-radius: var(--r-3); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); width: min(420px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(4, 6, 12, .66); }
.dialog-body { padding: 20px; }
.dialog h2 { font-size: var(--fs-5); margin-bottom: 14px; }
.keys { display: grid; gap: 8px; margin-bottom: 16px; }
.keys div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-3); align-items: center; }
.keys dd { color: var(--text-2); text-align: right; }
body.embed { background: transparent; }
.embed-box { padding: 8px 10px; }
.embed-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.embed-list a { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-3); padding: 4px 0; }
.embed-foot, .embed-empty { margin-top: 6px; font-size: var(--fs-1); color: var(--text-3); }
.embed-foot a { color: var(--accent-text); }

/* admin */
.adm-wide { grid-column: 1 / -1; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: var(--s-4); align-items: start; }
.md h1, .md h2, .md h3, .md h4 { margin: 18px 0 8px; letter-spacing: -.01em; line-height: 1.25; }
.md h1 { font-size: var(--fs-6); }
.md h2 { font-size: var(--fs-5); }
.md h3, .md h4 { font-size: var(--fs-4); }
.md > :first-child { margin-top: 0; }
.md p, .md ul, .md ol, .md table, .md pre, .md blockquote { margin: 8px 0; }
.md ul, .md ol { padding-left: 20px; list-style: disc; }
.md ol { list-style: decimal; }
.md li { margin: 3px 0; }
.md code { background: var(--surface-3); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.md pre { background: var(--surface-2); padding: 10px 12px; border-radius: var(--r-2); overflow-x: auto; font-size: 12px; }
.md pre code { background: transparent; padding: 0; }
.md table { border-collapse: collapse; font-size: var(--fs-2); display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; }
.md th { background: var(--surface-2); }
.md blockquote { border-left: 3px solid var(--accent-line); padding-left: 12px; color: var(--text-2); }
.md a { color: var(--accent-text); text-decoration: underline; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.md input[type="checkbox"] { margin-right: 6px; }
.md-panel .panel-b { max-height: 560px; overflow: auto; }

/* responsive */
@media (min-width: 1280px) {
  .nav { display: flex; }
  .menu { display: none; }
}
@media (max-width: 1180px) {
  .grid-home { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
  .col-widgets { grid-column: 1 / -1; }
  .widgets { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .coin-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 34ch; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .footer-nl { grid-template-columns: 1fr; }
  .grid-two, .grid-two-wide { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .search input { width: 118px; }
  .search input:focus { width: 160px; }
  .adm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .grid-home { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .col-pulse { order: 1; }
  .col-widgets { order: 2; grid-column: auto; margin: 0 calc(var(--gutter) * -1); }
  .col-stream { order: 3; }
  .widgets { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 2px var(--gutter) 10px; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
  .widgets .panel { flex: 0 0 min(84vw, 330px); scroll-snap-align: start; }
  .receipts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc:nth-child(3) { border-left: 0; }
  .rc:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .row-time { order: 2; line-height: 1; }
  .row .share { display: none; }
  .hero h1 { font-size: 22px; }
  .page-head h1, .coin-id h1 { font-size: 24px; }
  .story-head h1 { font-size: 24px; }
  .lc-body { --plot-h: 190px; }
}
@media (max-width: 720px) {
  .search { display: none; }
  .live-text { display: none; }
  .live { padding: 0 8px; }
  .hide-m { display: none !important; }
  .tbl th, .tbl td { padding: 9px 8px; }
  .c-spark { width: 70px; }
  .spark { width: 64px; }
  .coin-name { display: none; }
  .outlets-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .price-xl { font-size: 30px; }
  .coin-price { justify-items: start; }
  .chg-row { justify-content: flex-start; }
  .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv3 { grid-template-columns: 1fr; }
    .filterbar .fld, .filterbar .fld-s { flex: 1 1 120px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pcard-foot .share { flex: 0 0 auto; margin: 0 0 0 auto; }
  .pcard-foot .share .btn { flex: 0 0 auto; width: 34px; height: 30px; padding: 0; }
  .pcard-foot .share .btn span { display: none; }
  .pulse[data-collapsed] .pcard:nth-child(n + 5) { display: none; }
  .pulse-more { display: flex; width: 100%; margin-top: 10px; }
  .tbl-dex thead, .tbl-signals thead { display: none; }
  .tbl-dex, .tbl-dex tbody, .tbl-signals, .tbl-signals tbody { display: block; }
  .tbl-dex tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl-dex tr > *, .tbl-signals tr > * { border: 0; padding: 0; background: none !important; }
  .tbl-dex td.num { display: none; }
  .tbl-dex td:nth-child(2) { text-align: right; }
  .tbl-dex td.flags { grid-column: 1 / -1; min-width: 0; }
  .tbl-signals tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl-signals td.sig-title { flex: 1 1 100%; order: 5; min-width: 0; max-width: none; }
  .tbl-signals td.out { order: 6; flex: 1 1 28%; padding: 6px 8px; border-radius: var(--r-2); background: var(--surface-2) !important; text-align: left; }
  .tbl-signals td.out::before { content: attr(data-h); display: block; font: 700 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 13px; letter-spacing: .06em; }
  .fund { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-view { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .ticker-track { animation: none; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-pause { display: none; }
}
@media print {
  .topbar, .ticker, .footer, .share, .filters { display: none; }
}
