/* TTF dApps: shared components. Plain CSS, no inline styles anywhere (CSP style-src 'self'); widths of bars and
   similar come from custom properties set through the CSSOM (el.style.setProperty) and read here. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; padding-bottom: calc(24px + var(--safe-bottom));
  background: var(--bg); color: var(--text);
  font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-s); }
img, svg, canvas { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.up { color: var(--pass); } .down { color: var(--fail); }

/* ---------------------------------------------------------------- layout */
.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: grid; gap: 16px; }
#app > .card { margin-bottom: 16px; }
.stack-lg { display: grid; gap: 24px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.cols-2, .cols-3, .cols-main { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .shell { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--text); font-weight: 760; font-stretch: 110%; letter-spacing: -.01em; }
@media (max-width: 520px) { .brand span { display: none; } }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: 4px; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); padding: 7px 11px; border-radius: 999px; font-weight: 560; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.spacer { flex: 1 1 auto; }
.nav-short { display: none; }
/* phones: the five links must all be visible (the nav scrolls without a scrollbar, so a cut-off 'Wallet' looked missing) */
@media (max-width: 480px) {
  .topbar .brand { display: none; }
  .nav { margin-left: -6px; }
  .nav a { padding: 7px 8px; font-size: 13.5px; }
  .nav-full { display: none; } .nav-short { display: inline; }
}
.in-tg .topbar { position: static; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.in-tg .topbar .brand span, .in-tg .topbar .brand img { display: none; }
.in-tg .topbar .shell { min-height: 40px; }
.in-tg .site-only { display: none !important; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--muted);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------------------------------------------------------------- type */
.page-head { padding: 22px 0 6px; display: grid; gap: 6px; }
.h1 { font-size: clamp(24px, 4.2vw, 36px); font-weight: 760; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.h3 { font-size: 13px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lead { color: var(--muted); max-width: 62ch; }

/* ---------------------------------------------------------------- cards, tiles */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); min-width: 0; }
.card-pad { padding: 16px; }
.card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-h .h2 { margin-right: auto; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .tiles.six { grid-template-columns: repeat(6, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 14px; min-width: 0; }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tile .v { font-size: 24px; font-weight: 740; font-stretch: 105%; letter-spacing: -.02em; margin-top: 2px; }
.tile .s { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* ---------------------------------------------------------------- controls */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 14%); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 580; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip img { width: 16px; height: 16px; border-radius: 50%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: var(--radius-m);
  font-weight: 650; text-decoration: none;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.sm { min-height: 32px; padding: 4px 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.input, .select {
  min-height: 42px; width: 100%; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-m); color: var(--text);
}
.input::placeholder { color: var(--muted); }
.select { width: auto; padding-right: 28px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.check-row { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------------------------------------------------------------- pills, badges */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; border: 1px solid transparent; white-space: nowrap; }
.pill.ok { background: var(--pass-soft); color: var(--pass); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad, .pill.danger { background: var(--fail-soft); color: var(--fail); }
.pill.na { background: var(--bg-alt); color: var(--muted); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.pill::before { font-weight: 800; }
.pill.ok::before { content: "\2713"; } .pill.warn::before { content: "!"; } .pill.bad::before, .pill.danger::before { content: "\2715"; } .pill.na::before { content: "\2013"; }
.pill.plain::before { content: none; }
.pill.nodata { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 550; }
.pill.auth { background: var(--bg-alt); border-color: var(--line-strong); color: var(--text); font-weight: 600; }   /* trending, Solana: "Authorities renounced", a neutral fact (never the green ok) */   /* trending: no security data can come (vs "Not scanned" = queued) */
.chain { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 600; }
.chain img { width: 15px; height: 15px; border-radius: 50%; }
.rank { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; font-weight: 740; font-size: 13px; background: var(--bg-alt); color: var(--muted); }
.rank.r1 { background: #f5c542; color: #3a2c00; } .rank.r2 { background: #cfd6e2; color: #1d2433; } .rank.r3 { background: #e0a879; color: #3a2210; }
.bar { height: 6px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; min-width: 48px; }
.bar > i { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: 99px; }
.bar.pass > i { background: var(--pass); } .bar.fail > i { background: var(--fail); } .bar.warn > i { background: var(--warn); }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--surface-2); }
.tbl tr.you td { background: var(--accent-soft); }
.tbl .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .who .nm { font-weight: 650; min-width: 0; }
.tbl .who div.nm { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
/* compare toggle (group board): its own 44x44 target in its own column; the row itself is not a button */
.tbl .cmp-col { width: 52px; padding: 2px 4px; text-align: center; }
.cmp-tg { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: var(--radius-m); vertical-align: middle; }
.cmp-tg .box { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.cmp-tg:hover .box { border-color: var(--accent); }
.cmp-tg[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.cmp-tg[aria-pressed="true"] .box::after { content: "\2713"; color: var(--on-accent); font-weight: 800; font-size: 14px; line-height: 1; }
/* the caller's name opens their calls: a real button with a chevron */
.tbl .who-col { min-width: 0; max-width: 1px; width: 100%; }
.who-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 4px 0 0; border: 0; background: transparent; color: var(--text); text-align: left; min-width: 0; }
.who-btn .nm { font-weight: 650; min-width: 0; }
.who-btn .chev { margin-left: auto; padding-left: 4px; color: var(--muted); font-size: 20px; line-height: 1; flex: none; }
.who-btn:hover .nm { color: var(--accent); }
.who-btn:hover .chev { color: var(--accent); }
.tbl th .sr, .tbl td .sr { position: absolute; }
@media (max-width: 719px) { .hide-sm { display: none; } .tbl th, .tbl td { padding: 9px 8px; } .tbl .cmp-col { padding: 2px 0 2px 4px; } }
@media (max-width: 479px) {
  .hide-xs { display: none; }
  .tbl .who .tok-ico { display: none; }                 /* the letter tile costs 62 px a row: the security column was cut off at 390 */
  .tbl td .row { flex-direction: column; align-items: flex-end; gap: 4px; }
}

/* ---------------------------------------------------------------- states */
.skel { position: relative; overflow: hidden; background: var(--bg-alt); border-radius: var(--radius-m); min-height: 18px; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; } * { scroll-behavior: auto !important; } }
/* status card (TTF.progress): a spinner, an indeterminate bar, an elapsed counter, honest steps, a "taking longer" hint */
.prog { display: grid; gap: 12px; }
.prog.compact { gap: 10px; padding: 14px; }
.prog-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prog-title { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.prog.compact .prog-title { font-size: 15px; }
.prog-detail { font-size: 12.5px; }
.prog-time { flex: none; font-size: 13px; min-width: 2.5ch; text-align: right; }
.spin { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .85s linear infinite; }
.prog.compact .spin { width: 20px; height: 20px; border-width: 2.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.prog-bar { position: relative; height: 5px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.prog-bar > i { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-radius: 99px; background: var(--accent); animation: slide 1.5s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(270%); } }
.prog-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.prog-steps li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.prog-steps .dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--line-strong); }
.prog-steps li[data-state="active"] { color: var(--text); }
.prog-steps li[data-state="active"] .dot { border-color: var(--accent); background: var(--accent-soft); animation: pulse 1.3s ease-in-out infinite; }
.prog-steps li[data-state="done"] { color: var(--text); }
.prog-steps li[data-state="done"] .dot { border-color: var(--pass); background: var(--pass); }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--accent-soft); } }
.prog-hint { display: grid; gap: 8px; padding: 10px 12px; border-radius: var(--radius-m); background: var(--warn-soft); color: var(--text); font-size: 14px; }
.prog-hint-t { color: var(--warn); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .spin, .prog-bar > i, .prog-steps li[data-state="active"] .dot { animation: none; }
  .prog-bar > i { width: 38%; }                         /* a still segment: the counter and the text say it is working */
  .spin { border-top-color: var(--accent); border-right-color: var(--accent); }
}
.chart-frame .prog { min-height: 140px; align-content: center; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty .h2 { color: var(--text); }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface); }
.banner.error { background: var(--fail-soft); border-color: transparent; color: var(--fail); }
.banner.info { background: var(--accent-soft); border-color: transparent; color: var(--text); }
.banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.toast { position: fixed; left: 50%; bottom: calc(18px + var(--safe-bottom)); transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: var(--shadow); }
.sample-badge { position: fixed; right: 12px; bottom: calc(12px + var(--safe-bottom)); z-index: 50; pointer-events: none; opacity: .92; background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.foot { color: var(--muted); font-size: 12.5px; padding: 18px 0 6px; display: grid; gap: 4px; }

/* ---------------------------------------------------------------- verdict, checks */
.verdict { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-l); border: 1px solid transparent; }
.verdict.ok { background: var(--pass-soft); color: var(--pass); }
.verdict.warn { background: var(--warn-soft); color: var(--warn); }
.verdict.danger { background: var(--fail-soft); color: var(--fail); }
.verdict .ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: currentColor; }
.verdict .ico b { color: var(--surface); font-size: 22px; line-height: 1; }
.verdict .t { font-weight: 740; font-size: 18px; letter-spacing: -.01em; }
.verdict .s { color: var(--text); opacity: .8; font-size: 14px; }
.score { margin-left: auto; text-align: right; flex: none; }
.score b { font-size: 30px; font-weight: 780; line-height: 1; font-stretch: 105%; }
.score span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.checks { display: grid; gap: 8px; grid-template-columns: 1fr; padding: 14px 16px; }
@media (min-width: 560px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-2); min-width: 0; }
.check .lab { font-weight: 600; font-size: 14px; }
.check .val { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; min-width: 0; }
.flags { display: grid; gap: 8px; padding: 14px 16px; }
.flag { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-m); background: var(--surface-2); border-left: 4px solid var(--line-strong); }
.flag.critical { border-left-color: var(--fail); } .flag.warn { border-left-color: var(--warn); } .flag.info { border-left-color: var(--accent); }
.flag .t { font-weight: 650; } .flag .d { font-size: 13px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; padding: 14px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.tok-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.tok-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 780; font-size: 20px; background: var(--accent-soft); color: var(--accent); }
/* a <details> card header is a control: show it (it read as a plain title) */
details > summary.card-h { cursor: pointer; list-style: none; }
details > summary.card-h::-webkit-details-marker { display: none; }
details > summary.card-h::after { content: "\25BE"; margin-left: auto; color: var(--muted); transition: transform .15s; }
details[open] > summary.card-h::after { transform: rotate(180deg); }
details:not([open]) > summary.card-h { border-bottom: 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; padding: 14px 16px; margin: 0; max-height: 420px; overflow: auto; background: var(--surface-2); border-radius: 0 0 var(--radius-l) var(--radius-l); }

/* ---------------------------------------------------------------- charts */
.chart-box { padding: 10px 12px 14px; }
.chart-box canvas { display: block; width: 100%; height: 320px; }
/* token chart: the server-rendered picture (the bot's own chart), interval chips + style picker + share */
.chart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px 0; }
.chart-style { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.chart-style .select { min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 13.5px; }
.chart-tools .btn { margin-left: auto; }
.chart-frame { max-width: 960px; margin: 0 auto; }
.chart-frame .skel { aspect-ratio: 4 / 3; height: auto !important; border-radius: var(--radius-m); }
.chart-img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 520px) { .chart-tools .btn { margin-left: 0; } .chart-box { padding: 10px 8px 12px; } }
@media (min-width: 900px) { .chart-box canvas { height: 380px; } .bubble-box canvas { height: 520px; } }
.spark { display: block; width: 96px; height: 28px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 16px 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; background: var(--c, var(--accent)); }

/* ---------------------------------------------------------------- feed, drawer, modal */
.feed { display: grid; }
.call { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.call:last-child { border-bottom: 0; }
.call .a { font-weight: 650; display: flex; gap: 8px; align-items: center; min-width: 0; }
.call .b { font-size: 12.5px; color: var(--muted); }
.call .x { text-align: right; font-weight: 740; font-size: 16px; }
.call .p { text-align: right; font-size: 12.5px; color: var(--muted); }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(8 12 22 / 55%); }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; background: var(--surface); border-radius: var(--radius-l) var(--radius-l) 0 0; box-shadow: var(--shadow); padding-bottom: var(--safe-bottom); }
@media (min-width: 900px) { .sheet { left: auto; top: 0; width: 460px; max-height: none; border-radius: var(--radius-l) 0 0 var(--radius-l); } }
.sheet-h { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); z-index: 1; }
.modal { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(94vw, 460px); max-height: 92vh; overflow: auto; background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; }
.modal canvas { width: 100%; height: auto; border-radius: var(--radius-m); border: 1px solid var(--line); }
.share-actions { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.share-actions .btn { min-height: 44px; }
.share-actions .btn.primary { grid-column: 1 / -1; }
.share-status { font-size: 13px; min-height: 1em; }
.share-status:empty { display: none; }

/* ---------------------------------------------------------------- hub */
/* 390 wide first (it is what the bot's menu button opens): two compact tiles per row, the long text only where there is room */
.apps { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .apps { gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app { display: grid; gap: 6px; padding: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); align-content: start; min-height: 118px; min-width: 0; }
.app:hover { border-color: var(--accent); text-decoration: none; }
.app .ai { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.app .ai svg { width: 21px; height: 21px; }
.app .t { font-weight: 720; font-size: 16px; }
.app .d { color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .app { padding: 18px; gap: 8px; min-height: 150px; } .app .d { font-size: 14px; -webkit-line-clamp: 5; line-clamp: 5; } .app .t { font-size: 17px; } }
.hero { padding: 18px 0 4px; display: grid; gap: 12px; }
@media (min-width: 640px) { .hero { padding: 28px 0 8px; gap: 14px; } }
.hub-tabbar { display: flex; margin: 12px 0 8px; }
.hub-tabbar .seg { width: 100%; }
.hub-tabbar .seg button { flex: 1 1 0; padding: 8px 13px; }
@media (min-width: 640px) { .hub-tabbar .seg { width: auto; } .hub-tabbar .seg button { flex: 0 0 auto; padding: 6px 18px; } }
#tab-commands { max-width: 860px; }
.cmd-search { display: grid; gap: 8px; position: sticky; top: 53px; z-index: 3; background: var(--bg); padding: 4px 0 8px; }
.in-tg .cmd-search { top: 0; }
.cmd-count { font-size: 12.5px; }
.cmd-rows { display: grid; }
.cmd { display: grid; gap: 4px; text-align: left; width: 100%; padding: 12px 16px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text); min-height: 52px; }
.cmd:last-child { border-bottom: 0; }
.cmd:hover, .cmd:active { background: var(--surface-2); }
.cmd-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.cmd-name { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
.cmd-pills { display: inline-flex; gap: 6px; margin-left: auto; }
.cmd-text { font-size: 14px; }
.cmd-alias { font-size: 12.5px; overflow-wrap: anywhere; font-family: var(--mono); }
.tips { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.sr-copy { position: fixed; left: -9999px; top: 0; opacity: 0; width: 1px; height: 1px; }
.scanbox { display: grid; gap: 8px; grid-template-columns: 1fr; max-width: 720px; }
@media (min-width: 560px) { .scanbox { grid-template-columns: minmax(0, 1fr) auto auto; } }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.mini-row:last-child { border-bottom: 0; }
a.mini-row:hover { background: var(--surface-2); text-decoration: none; }   /* only rows that are links look tappable */
.mini-row .ell { font-weight: 650; }

/* ---------------------------------------------------------------- skins (shared/skin.js; the terminal look is shared/terminal.css) */
/* markup that only one skin shows; everything else is the same DOM styled two ways */
:root:not([data-skin="terminal"]) .only-terminal { display: none !important; }
:root[data-skin="terminal"] .only-classic { display: none !important; }
/* the skin switch in the top bar (classic look; terminal.css restyles it) */
.skin-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 34px; flex: none; padding: 0 12px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.skin-btn:hover { color: var(--text); border-color: var(--line-strong); }
.skin-btn b { color: var(--text); font-weight: 650; }
/* the classic skin uses its own labelled 'Terminal' button instead (.skin-go below): no second switch */
:root:not([data-skin="terminal"]) .skin-btn { display: none; }
/* classic only (only-classic markup): one tap to the terminal skin, next to the theme button */
.skin-go {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; flex: none; padding: 0 12px 0 10px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.skin-go:hover { border-color: var(--line-strong); }
.skin-go svg { display: block; flex: none; color: var(--accent); }
/* the developer API entry (core.js TTF.devEntry): 'API' -> /developers/, 'Dashboard' -> /developers/app/ with a developer
   session; invisible (its space kept) until the session answer, at most 1.5 s */
.dev-btn {
  display: inline-flex; align-items: center; height: 34px; flex: none; padding: 0 12px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 650; white-space: nowrap;
}
.dev-btn:hover { border-color: var(--accent); text-decoration: none; }
.dev-btn.in { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dev-btn[data-auth] { visibility: hidden; }
/* the page Size switch (shared/skin.js scaleFor, docs/dapps.md "Large screens"): only where the viewport is wider than 1600 px,
   the only place a size changes anything (both skins; below 1601 px no page gains a pixel) */
.size-btn { display: none; }
@media (min-width: 1601px) {
  .size-btn {
    display: inline-flex; align-items: center; gap: 5px; height: 34px; flex: none; padding: 0 12px;
    border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap;
  }
  .size-btn:hover { color: var(--text); border-color: var(--line-strong); }
  .size-btn b { color: var(--text); font-weight: 650; }
  /* the dropdown inside the pill: a native <select> (keyboard and touch work as everywhere), drawn as the pill's value */
  .size-btn:focus-within { box-shadow: var(--ring); }
  .size-sel { -webkit-appearance: none; appearance: none; border: 0; margin: 0; padding: 0 2px; background: transparent; color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
  .size-sel:focus { outline: 0; }
  .size-sel option { background: var(--surface); color: var(--text); }
}
/* paper is never enlarged (the zoom is an inline style on <html>: only !important beats it) */
@media print { html { zoom: 1 !important; } .size-btn { display: none !important; } }
/* classic phones: the five links fill the row, so the switches sit in their own row above the nav (right-aligned) */
@media (max-width: 480px) {
  :root:not([data-skin="terminal"]) .topbar .shell { flex-wrap: wrap; row-gap: 0; padding-top: 6px; }
  :root:not([data-skin="terminal"]) .topbar .nav { order: 1; flex: 1 0 100%; height: 34px; }   /* whole px: the page below moves by a whole number */
}
.pxv { position: relative; }                  /* TTF.priceEl: its screen-reader copy (.sr, absolute) stays inside scrolling strips */
.look-sheet .seg { width: 100%; }
.look-sheet .seg button { flex: 1 1 0; }

/* ---------------------------------------------------------------- site footer + document pages (About, Privacy, Terms, 404)
   terminal.css restyles every class below under [data-skin="terminal"]; new components need both skins (docs/dapps.md). */
:root { --bar-h: 53px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 480px) { .nav .nav-ab { display: none; } }          /* five links fit; About is in the footer on phones */
.sitefoot { border-top: 1px solid var(--line); margin-top: 8px; padding: 18px 0 8px; color: var(--muted); font-size: 13px; }
.sitefoot .sf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.sitefoot .sf-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sitefoot a { color: var(--muted); }
.sitefoot a:hover { color: var(--text); }

.doc-page { padding-top: 22px; padding-bottom: 28px; }
.doc-head { display: grid; gap: 8px; padding: 6px 0 20px; }
.doc-kicker { color: var(--accent); font-size: 13px; font-weight: 650; }
.doc-title { font-size: clamp(28px, 5vw, 40px); font-weight: 760; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.1; }
.doc-lead { color: var(--muted); max-width: 60ch; font-size: 16px; }
.doc-draft { max-width: 60ch; font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: var(--radius-s); padding: 8px 12px; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.doc-index {
  position: sticky; top: var(--bar-h); z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line);
}
.doc-index::-webkit-scrollbar { display: none; }
.doc-index a { flex: none; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 580; font-size: 13.5px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); }
.doc-index a:hover { color: var(--text); text-decoration: none; }
.doc-index a[aria-current="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.doc-body { min-width: 0; }
.doc-sec { display: grid; gap: 12px; padding: 24px 0 4px; scroll-margin-top: calc(var(--bar-h) + 56px); }
.doc-sec h2 { font-size: 20px; font-weight: 720; letter-spacing: -.015em; }
.doc-sec p, .doc-sec li { max-width: 68ch; overflow-wrap: anywhere; }
.doc-sub { margin-top: 6px; font-size: 13px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.doc-note { color: var(--muted); font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; }
@media (min-width: 900px) {
  .doc-grid { grid-template-columns: 200px minmax(0, 70ch); gap: 56px; }
  .doc-index { top: calc(var(--bar-h) + 16px); z-index: 1; flex-direction: column; align-self: start; gap: 2px; padding: 0; border: 0; background: transparent; overflow: visible; }
  .doc-index a { border: 0; background: transparent; border-radius: var(--radius-s); padding: 6px 10px; }
  .doc-sec { scroll-margin-top: calc(var(--bar-h) + 16px); }
  .doc-sec:first-child { padding-top: 0; }
}
.doc-list { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-list li { counter-increment: n; position: relative; padding-left: 36px; }
.doc-list li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; font: 600 12px/1 var(--mono); border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.brand-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.brand-tile { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 22px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius-m); }
.brand-tile img { width: 104px; height: 104px; }
.brand-tile figcaption { font-size: 12px; }
.tile-light { background: #f3f3f1; color: #3d444d; }
.tile-dark { background: #0a0c0f; color: #a3acb8; }
.dl-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
.dl-list li + li { border-top: 1px solid var(--line); }
.dl-list a { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; padding: 11px 14px; color: var(--text); }
.dl-list a:hover { background: var(--surface-2); text-decoration: none; }
.dl-list .mono { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.swatch { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: center; text-align: left; padding: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-s); }
.swatch:hover { border-color: var(--line-strong); }
.sw-chip { grid-row: 1 / 3; width: 28px; height: 28px; background: var(--sw, transparent); border: 1px solid var(--line-strong); border-radius: 6px; }
.sw-name { font-size: 13px; font-weight: 600; }
.sw-hex { font-size: 11.5px; color: var(--muted); }
.dd { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.dd li { display: flex; gap: 10px; align-items: baseline; }
.dd-tag { flex: none; min-width: 48px; text-align: center; padding: 3px 7px; border-radius: 6px; font: 700 11px/1.2 var(--font); text-transform: uppercase; letter-spacing: .06em; }
.dd-tag.ok { background: var(--pass-soft); color: var(--pass); }
.dd-tag.no { background: var(--fail-soft); color: var(--fail); }
.doc-kv { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
.doc-kv > div { display: grid; gap: 2px; padding: 12px 14px; }
.doc-kv > div + div { border-top: 1px solid var(--line); }
.doc-kv dt { color: var(--muted); font-size: 13px; }
.doc-kv dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.doc-kv dd span { color: var(--muted); font-size: 13px; }
@media (min-width: 560px) { .doc-kv > div { grid-template-columns: 170px minmax(0, 1fr); gap: 16px; } }
.status-strip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.sq { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--muted); }
.sq.ok { background: var(--pass); }
.sq.bad { background: var(--fail); }
/* status page (/status/, status/status.js): overall strip, one row per part with 90 day bars, incidents with their updates */
.sq.warn { background: var(--warn); }
.st-overall { font-size: 15px; }
.st-overall[data-state="operational"] { border-color: var(--pass); background: var(--pass-soft); }
.st-overall[data-state="degraded"] { border-color: var(--warn); background: var(--warn-soft); }
.st-overall[data-state="outage"] { border-color: var(--fail); background: var(--fail-soft); }
.st-list, .st-incidents { display: grid; gap: 10px; }
.st-row, .st-inc { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); min-width: 0; }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.st-name { font-weight: 680; overflow-wrap: anywhere; }
.st-tag { font-size: 12px; font-weight: 650; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.st-tag.st-ok { color: var(--pass); border-color: var(--pass); background: var(--pass-soft); }
.st-tag.st-warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.st-tag.st-bad { color: var(--fail); border-color: var(--fail); background: var(--fail-soft); }
.st-bars { display: flex; gap: 1px; height: 26px; align-items: stretch; min-width: 0; }
.st-bar { flex: 1 1 0; min-width: 1px; border-radius: 2px; background: var(--line); }
.st-bar.ok { background: var(--pass); }
.st-bar.warn { background: var(--warn); }
.st-bar.bad { background: var(--fail); }
.st-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 13px; }
.st-meta b { color: var(--text); font-weight: 650; }
.st-timeline { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.st-up { display: grid; gap: 2px; font-size: 14px; }
.st-when { color: var(--muted); font-size: 12px; }
.st-msg { white-space: pre-line; overflow-wrap: anywhere; }
.st-calm { color: var(--muted); }
.team { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.person-photo { width: 96px; height: 96px; flex: none; object-fit: cover; border-radius: var(--radius-m); background: var(--bg-alt); }
.person-meta { display: grid; gap: 2px; min-width: 0; }
.person-name { font-size: 17px; }
.person-role { color: var(--muted); font-size: 14px; }
.person-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }

/* ---------------------------------------------------------------- info pages: Docs, Compare, FAQ, Plans, Changelog, Trust, Call game, Chains, Languages
   Same document frame as About (doc-*), plus the few components those pages need. Terminal look: terminal.css, "info pages". */
@media (min-width: 900px) { .doc-wide .doc-grid { grid-template-columns: 200px minmax(0, 1fr); } }
.doc-wide .doc-sec p, .doc-wide .doc-sec li { max-width: 78ch; }
.ix-note { padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-s); background: var(--surface); color: var(--muted); font-size: 13.5px; }
.ix-note b { color: var(--text); }
.ix-code { margin: 0; padding: 12px 14px; overflow-x: auto; max-width: 100%; font: 12.5px/1.55 var(--mono); white-space: pre; tab-size: 2; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m); }
.ix-code code { font: inherit; }
.ix-ep { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 6px; }
.ix-method { flex: none; padding: 2px 7px; border-radius: 6px; background: var(--pass-soft); color: var(--pass); font: 700 11px/1.3 var(--mono); letter-spacing: .06em; }
.ix-path { min-width: 0; font: 600 14px/1.4 var(--mono); overflow-wrap: anywhere; }
.ix-meta { color: var(--muted); font-size: 12.5px; }
.ix-tbl-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.ix-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ix-tbl th, .ix-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ix-tbl th { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.ix-tbl tbody tr:last-child td, .ix-tbl tbody tr:last-child th { border-bottom: 0; }
.ix-tbl tbody th { background: transparent; color: var(--text); font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: normal; }
.ix-tbl .ix-grp th { background: var(--bg-alt); color: var(--muted); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }
.ix-tbl code, .ix-tbl .mono { font-size: 12.5px; overflow-wrap: anywhere; }
.ix-ttf { background: var(--accent-soft); }
.ix-y { color: var(--pass); font-weight: 650; }
.ix-n { color: var(--muted); font-weight: 650; }
.ix-u { color: var(--muted); }
.ix-faq { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
.ix-faq details + details { border-top: 1px solid var(--line); }
.ix-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 620; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ix-faq summary::-webkit-details-marker { display: none; }
.ix-faq summary::after { content: "+"; flex: none; color: var(--muted); font: 600 16px/1 var(--mono); }
.ix-faq details[open] > summary::after { content: "-"; }
.ix-faq summary:hover { background: var(--surface-2); }
.ix-faq .ix-ans { display: grid; gap: 8px; padding: 0 14px 14px; }
.ix-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ix-stat { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.ix-stat b { font: 700 26px/1.1 var(--font); font-variant-numeric: tabular-nums; }
.ix-stat span { color: var(--muted); font-size: 12.5px; }
.ix-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ix-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 560; }
.ix-chips img { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.ix-chips small { color: var(--muted); font-size: 12px; font-weight: 500; }
.ix-plans { display: grid; gap: 12px; }
@media (min-width: 640px) { .ix-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ix-plan { display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.ix-plan.ix-hot { border-color: var(--accent); }
.ix-plan h3 { font-size: 17px; font-weight: 700; }
.ix-plan .ix-lead { color: var(--muted); font-size: 13.5px; }
.ix-plan ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.ix-cta .btn.primary { min-height: 44px; }   /* the one action of a section: a full touch target in both skins */
.ix-log { display: grid; gap: 22px; }
.ix-entry { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar-h) + 56px); }
.ix-entry:first-child { padding-top: 0; border-top: 0; }
.ix-entry h3 { font-size: 17px; font-weight: 700; }
.ix-date { color: var(--muted); font: 600 12px/1.4 var(--mono); }
.ix-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ix-items li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ix-kind { text-align: center; padding: 2px 6px; border-radius: 6px; font: 700 10.5px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; background: var(--bg-alt); color: var(--muted); }
@media (max-width: 559px) { .ix-items li { grid-template-columns: minmax(0, 1fr); gap: 4px; } .ix-kind { justify-self: start; padding: 2px 8px; } }
.ix-tbl.ix-min { min-width: 640px; }
.ix-kind.new { background: var(--pass-soft); color: var(--pass); }
.ix-kind.imp { background: var(--accent-soft); color: var(--accent); }
.ix-kind.fix { background: var(--warn-soft); color: var(--warn); }
/* What's new (top of the Changelog): feature cards = screenshot, one-line benefit, how to use. Terminal look: terminal.css. */
.wn-intro { max-width: 72ch; color: var(--muted); }
.wn-video { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
.wn-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--surface-2); }
.wn-video figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 10px 14px; color: var(--muted); font-size: 14px; }
.wn-video figcaption a { color: var(--accent); font-weight: 600; }
.wn-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 720px) { .wn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wn-wide { grid-column: 1 / -1; } }
.wn-card { display: grid; align-content: start; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; scroll-margin-top: calc(var(--bar-h) + 56px); }
.wn-shot { margin: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.wn-shot img { display: block; width: 100%; height: auto; }
.wn-phones { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; max-width: 560px; }
.wn-phones img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
.wn-body { display: grid; gap: 8px; padding: 14px 16px 16px; min-width: 0; }
.wn-body h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.wn-where { color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.wn-why { color: var(--text); }
.wn-how-h { margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.wn-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.wn-how li { position: relative; padding-left: 16px; color: var(--text-2); }
.wn-how li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.wn-body code, .wn-stats .ix-stat code { font: 600 .9em/1.3 var(--mono); text-transform: none; letter-spacing: 0; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.wn-body .ix-tbl code { white-space: nowrap; }
@media (max-width: 559px) {
  .wn-cmds thead { display: none; }
  .wn-cmds tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cmd ex" "desc desc"; border-bottom: 1px solid var(--line); }
  .wn-cmds tbody tr:last-child { border-bottom: 0; }
  .wn-cmds tbody th { grid-area: cmd; border-bottom: 0; padding-bottom: 2px; }
  .wn-cmds tbody td:nth-child(2) { grid-area: desc; border-bottom: 0; padding-top: 2px; }
  .wn-cmds tbody td:nth-child(3) { grid-area: ex; border-bottom: 0; padding-bottom: 2px; text-align: right; }
}
.wn-try { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-alt); }
.wn-try dt { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.wn-try dd { margin: 0 0 6px; min-width: 0; overflow-wrap: anywhere; }
.wn-try dd:last-child { margin-bottom: 0; }
@media (min-width: 480px) { .wn-try { grid-template-columns: 86px minmax(0, 1fr); } .wn-try dt { padding-top: 2px; } }
.wn-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .wn-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-more { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; padding-top: 6px; border-top: 1px solid var(--line); }

/* ---- server-rendered SEO text (docs/seo.md): the Hub's app pages carry real HTML below the app, the doc pages carry a
   breadcrumb, figures and link cards. All of it reads without JavaScript. */
body[data-seo] #app { min-height: 72vh; }                   /* the app fills this; the text below does not jump when it renders */
.seo-lead { max-width: 62ch; color: var(--muted); font-size: 16px; padding-top: 6px; }
.seo-content { padding-top: 8px; }
.seo-content .doc-sec:first-child { padding-top: 12px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; padding: 0 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fig { margin: 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-2); }
.fig figcaption { color: var(--muted); font-size: 13px; max-width: 60ch; }
.fig-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 720px) { .fig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fig-grid.fig-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fig.fig-tall img { max-width: 420px; }
.lk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 560px) { .lk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .lk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lk { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); color: var(--text); }
.lk:hover { border-color: var(--accent); text-decoration: none; }
.lk b { font-size: 15px; font-weight: 680; }
.lk span { color: var(--muted); font-size: 13.5px; }
.lk img { width: 20px; height: 20px; border-radius: 50%; vertical-align: -4px; margin-right: 6px; }
.seo-steps { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.seo-steps li { counter-increment: n; position: relative; padding-left: 36px; }
.seo-steps li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; font: 600 12px/1 var(--mono); border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); }
.seo-steps li b { display: block; }
.guide-meta { color: var(--muted); font-size: 13px; }
.sitefoot .sf-note { white-space: nowrap; }

/* interactive candles */
.chart-live-box { padding: 0; }
.chart-live { display: block; width: 100%; height: 400px; border-radius: var(--radius-m); outline-offset: 2px; }
.chart-zoom { display: inline-flex; gap: 6px; }
.chart-hint { font-size: 12.5px; padding: 8px 16px 6px; }
@media (max-width: 700px) { .chart-live { height: 320px; } .chart-hint { padding: 8px 8px 4px; } }
/* interactive bubble map */
.bm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 8px; padding: 0 16px 12px; }
.bm-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 8px 10px; min-width: 0; }
.bm-stat .k { display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.bm-stat b { display: block; font-size: 17px; font-weight: 720; margin-top: 2px; }
.bm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 10px; }
.bm-find { flex: 1 1 180px; min-width: 0; min-height: 34px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; }
.bm-find:focus { outline: none; border-color: var(--accent); }
.bm-zoom { display: inline-flex; gap: 6px; }
.bm-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.bm-stage { position: relative; padding: 0 12px; }
.bm-stage canvas { display: block; width: 100%; height: 460px; border-radius: var(--radius-m); background: var(--surface-2); outline-offset: 2px; }
.bm-tip { position: absolute; z-index: 3; pointer-events: none; max-width: 260px; padding: 5px 9px; border-radius: var(--radius-m); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600; font-family: var(--mono); }
.bm-tip[hidden] { display: none; }
.bm-detail { display: grid; gap: 8px; margin: 10px 16px 0; padding: 12px; min-height: 52px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-2); align-content: center; }
.bm-detail .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bm-detail .addr { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.bm-pct { font-size: 18px; }
.bm-tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--bg-alt); color: var(--muted); font-size: 11.5px; font-weight: 640; }
.bm-tag.warn { background: var(--warn-soft); color: var(--warn); }
.bm-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.bm-legend:empty { display: none; }
.bm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--line-strong)); flex: none; }
.bm-legend [aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.bm-foot { display: grid; gap: 8px; padding: 12px 16px 14px; font-size: 13px; }
@media (max-width: 700px) { .bm-stage canvas { height: 380px; } .bm-stats, .bm-tools, .bm-chips, .bm-legend, .bm-foot { padding-left: 8px; padding-right: 8px; } .bm-stage { padding: 0 8px; } .bm-detail { margin: 10px 8px 0; } }
