/* ==========================================================================
   GettingTrack design system
   Abyss-teal canvas, electric cyan signal, HUD corners. Taken from the G-arrow mark.
   ========================================================================== */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
/* Windows has no colour flag glyphs; this font fills in regional-indicator pairs only. */
@font-face {
  font-family: "Twemoji Flags";
  src: url("../fonts/twemoji-flags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #02090c;
  --panel: #051419;
  --panel-2: #08202a;
  --line: rgba(34, 229, 255, .1);
  --line-2: rgba(34, 229, 255, .18);
  --line-3: rgba(34, 229, 255, .34);
  --text: #e4fbff;
  --text-2: #a6c6ce;
  --muted: #6c8f98;
  --faint: #47646c;
  --accent: #22e5ff;
  --accent-2: #00b4d8;
  --accent-3: #9ff6ff;
  --ink: #00222b;
  --grad: linear-gradient(135deg, #8ff9ff 0%, #22e5ff 42%, #00a9d4 100%);
  --grad-text: linear-gradient(90deg, #b8fbff 0%, #22e5ff 50%, #00b4d8 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 229, 255, .16), rgba(0, 180, 216, .06));
  --glow: 0 0 0 1px rgba(34, 229, 255, .08), 0 24px 60px -30px rgba(34, 229, 255, .45);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Manrope", "Twemoji Flags", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --bar-h: 68px;
  --wrap: 1440px;

  --tone-blue: #38bdf8;
  --tone-cyan: #22e5ff;
  --tone-teal: #2dd4bf;
  --tone-green: #34d399;
  --tone-amber: #fbbf24;
  --tone-red: #fb7185;
  --tone-violet: #8b9cff;
  --tone-pink: #c4b5fd;
  --tone-gray: #7f9aa3;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 520px at 50% -10%, rgba(34, 229, 255, .13), transparent 65%),
    radial-gradient(700px 700px at 0% 100%, rgba(0, 180, 216, .07), transparent 60%),
    radial-gradient(700px 600px at 100% 60%, rgba(34, 229, 255, .05), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(34, 229, 255, .16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 80%);
}
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-3); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: -.025em; color: #fff; }
p { margin: 0; }
code, kbd, pre { font-family: var(--font-mono); }
img { max-width: 100%; }
button { font-family: inherit; }
::selection { background: rgba(34, 229, 255, .35); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(34, 229, 255, .22) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(34, 229, 255, .2); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.icon { flex: none; display: inline-block; vertical-align: middle; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.stack-sm { display: grid; gap: 12px; }
.t-red-text { color: var(--tone-red); }

/* ---------- brand ---------- */
.wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.045em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .w1 { background: linear-gradient(180deg, #ffffff 40%, #cfe9ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .w2 { background: linear-gradient(180deg, #7ff6ff, #18d4f2); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; filter: drop-shadow(0 0 10px rgba(34, 229, 255, .45)); }
.wordmark.lg { font-size: 32px; }
.wordmark.xl { font-size: 52px; }
.tagline { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tagline b { font-weight: 700; color: var(--accent); }

/* ---------- app bar (top navigation) ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 10, 13, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
}
.appbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 229, 255, .55) 50%, transparent); pointer-events: none; }
.appbar-inner { display: flex; align-items: center; gap: 26px; max-width: var(--wrap); height: var(--bar-h); margin: 0 auto; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; flex: none; }
.brand:hover { color: inherit; }
.brand-mark { height: 30px; width: auto; filter: drop-shadow(0 0 10px rgba(34, 229, 255, .5)); transition: filter .3s, transform .3s; }
.brand:hover .brand-mark { filter: drop-shadow(0 0 16px rgba(34, 229, 255, .85)); transform: rotate(-4deg) scale(1.04); }
.nav { flex: 1; display: flex; align-items: stretch; gap: 2px; height: 100%; min-width: 0; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s;
}
.nav-link .icon { color: var(--muted); transition: color .15s, filter .15s; }
.nav-link:hover { color: #fff; }
.nav-link:hover .icon { color: var(--accent-3); }
.nav-link.active { color: #fff; }
.nav-link.active .icon { color: var(--accent); filter: drop-shadow(0 0 6px rgba(34, 229, 255, .9)); }
.nav-link.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 14px var(--accent), 0 0 3px var(--accent); }
.nav-link .ext { opacity: .45; }
.appbar-right { display: flex; align-items: center; gap: 14px; flex: none; }
.api-status { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 13px; border-radius: 999px; font-size: 12px; background: rgba(52, 211, 153, .06); border: 1px solid rgba(52, 211, 153, .22); }
.api-status b { font-weight: 700; color: #c5f7e3; }
.api-status .mono { display: none; color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line-2); }
.me-text { display: none; min-width: 0; max-width: 170px; }
.me-text b { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text span { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none !important; }

.pulse { position: relative; flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone-green); box-shadow: 0 0 10px var(--tone-green); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--tone-green); opacity: 0; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- page layout ---------- */
.main { min-height: calc(100vh - var(--bar-h)); display: flex; flex-direction: column; }
.pagehead { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 18px 24px; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 34px 28px 24px; }
.pagehead-title { flex: 1 1 420px; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.pagehead h1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 30px; line-height: 1.15; }
.pagehead h1 small { display: block; margin-top: 4px; font: 500 13px var(--font); color: var(--muted); letter-spacing: 0; }
.pagehead p { margin-top: 8px; max-width: 760px; color: var(--muted); font-size: 14px; }
.pagehead-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.content { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px 72px; display: grid; gap: 22px; align-content: start; }

.grid { display: grid; gap: 20px; min-width: 0; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.align-start { align-items: start; }
.clip { max-width: 250px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }

/* ---------- cards ---------- */
.card {
  position: relative;
  min-width: 0;
  background: linear-gradient(180deg, rgba(8, 30, 39, .7), rgba(4, 17, 23, .78));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(160, 245, 255, .05), 0 22px 50px -32px rgba(0, 0, 0, .95);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 26px;
  height: 26px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-top-left-radius: var(--radius);
  opacity: .55;
  filter: drop-shadow(0 0 4px rgba(34, 229, 255, .8));
  pointer-events: none;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 0; }
.card-head h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.card-head h3 .icon { width: 28px; height: 28px; padding: 6px; border-radius: 9px; color: var(--accent); background: rgba(34, 229, 255, .09); border: 1px solid rgba(34, 229, 255, .2); }
.card-head p { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.card-body { padding: 18px 20px 20px; }
.card-foot { display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--line); font-size: 12.5px; }
.card.flush { overflow: hidden; }
.card.flush > .card-head { padding-bottom: 14px; }
.card.glow {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(6, 26, 34, .97), rgba(3, 14, 19, .97)) padding-box,
    linear-gradient(140deg, rgba(34, 229, 255, .85), rgba(34, 229, 255, .12) 45%, rgba(0, 180, 216, .7)) border-box;
  box-shadow: var(--glow);
}
.card.glow::before { opacity: 1; }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eyebrow.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- KPIs ---------- */
.kpi { --c: var(--tone-cyan); display: grid; padding: 18px 20px 0; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .7; }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-label { flex: 1; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.kpi-value { margin-top: 16px; font-family: var(--font-display); font-weight: 650; font-size: 36px; line-height: 1; letter-spacing: -.035em; color: #fff; font-variant-numeric: tabular-nums; }
.kpi-vs { display: block; margin-top: 8px; font-size: 11.5px; color: var(--faint); }
.kpi-spark { height: 56px; margin: 10px -20px 0; }
.spark { display: block; width: 100%; height: 100%; overflow: visible; }
.kpi .spark { color: var(--c); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }
.delta { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--tone-green); background: rgba(52, 211, 153, .1); }
.delta.down { color: var(--tone-red); background: rgba(251, 113, 133, .1); }
.delta.flat { color: var(--muted); background: rgba(127, 154, 163, .1); }

.stat-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4, 17, 23, .6); overflow: hidden; }
.chip-stat { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border-left: 1px solid var(--line); }
.chip-stat:first-child { border-left: 0; }
.chip-stat > .icon { color: var(--accent); }
.chip-stat b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 650; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.chip-stat b small { font-size: 13px; font-weight: 600; }
.chip-stat span:not(.pulse) { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mini-kpis { gap: 14px; }
.mini-kpi { padding: 16px 18px; display: grid; gap: 4px; overflow: hidden; }
.mini-kpi > span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mini-kpi b { font: 650 28px/1.1 var(--font-display); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.mini-kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.mini-kpi .spark { height: 30px; color: var(--accent); margin-top: 4px; filter: drop-shadow(0 0 6px rgba(34, 229, 255, .55)); }

/* ---------- buttons ---------- */
.btn {
  --h: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(34, 229, 255, .03);
  color: var(--text);
  font: 700 13px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s, filter .15s, color .15s;
}
.btn:hover { color: #fff; border-color: rgba(34, 229, 255, .5); background: rgba(34, 229, 255, .09); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34, 229, 255, .35); }
.btn-primary {
  border: 0;
  color: var(--ink);
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 26px -10px rgba(34, 229, 255, .85);
}
.btn-primary:hover { color: var(--ink); background: var(--grad); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 32px -8px rgba(34, 229, 255, 1); }
.btn-danger { color: #ffb1bf; border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .08); }
.btn-danger:hover { color: #fff; background: rgba(251, 113, 133, .22); border-color: rgba(251, 113, 133, .65); }
.btn-warning { color: #ffdc85; border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.btn-warning:hover { color: #fff; background: rgba(251, 191, 36, .2); border-color: rgba(251, 191, 36, .6); }
.btn-success { color: #8af0c8; border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.btn-success:hover { color: #fff; background: rgba(52, 211, 153, .2); border-color: rgba(52, 211, 153, .6); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(34, 229, 255, .08); border-color: transparent; }
.btn-sm { --h: 31px; padding: 0 13px; gap: 6px; font-size: 12px; }
.btn-lg { --h: 48px; padding: 0 26px; font-size: 14.5px; }
.btn-icon { width: var(--h); padding: 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.copied { color: var(--tone-green) !important; border-color: rgba(52, 211, 153, .5) !important; }
.reveal-btn .when-on { display: none; }
.reveal-btn.is-on .when-on { display: inline-block; }
.reveal-btn.is-on .when-off { display: none; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field > span { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--text-2); }
.field .req-mark { font-style: normal; color: var(--tone-red); }
.hint { font-size: 12px; color: var(--muted); }
.error-text { font-size: 12px; color: var(--tone-red); }
.input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgba(1, 8, 11, .72);
  color: var(--text);
  font: 500 14px/1.2 var(--font);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--accent); background: rgba(1, 10, 14, .95); box-shadow: 0 0 0 3px rgba(34, 229, 255, .14), 0 0 22px -6px rgba(34, 229, 255, .6); }
.input.invalid { border-color: rgba(251, 113, 133, .7); }
textarea.input { height: auto; min-height: 96px; padding: 11px 14px; line-height: 1.55; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
select.input option { background: var(--panel); color: var(--text); }
.input.mono { font-family: var(--font-mono); font-size: 13px; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { padding: 20px 20px 22px; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; }
.form-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; font: 600 14px var(--font-display); color: #fff; }
.form-section-title .icon { color: var(--accent); }

.switch { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { flex: none; position: relative; width: 42px; height: 24px; margin-top: 1px; border-radius: 999px; background: rgba(34, 229, 255, .08); border: 1px solid var(--line-2); transition: .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + .track { background: rgba(34, 229, 255, .2); border-color: var(--accent); box-shadow: 0 0 16px -3px rgba(34, 229, 255, .8); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(34, 229, 255, .35); }
.switch-text b { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); }
.switch-text span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

details.advanced { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
details.advanced summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: var(--text-2); }
details.advanced summary::-webkit-details-marker { display: none; }
details.advanced summary .icon:last-child { margin-left: auto; transition: transform .2s; }
details.advanced[open] summary .icon:last-child { transform: rotate(180deg); }
details.advanced .details-body { padding: 0 14px 14px; }

/* ---------- pills & badges ---------- */
.pill {
  --c: var(--tone-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  font: 700 11.5px/1 var(--font);
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  vertical-align: middle;
}
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill.live::before { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--c, var(--tone-teal)); }
.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .04em;
  flex: none;
}
.method.get { color: #4ae3b0; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); }
.method.post { color: var(--accent); background: rgba(34, 229, 255, .1); border: 1px solid rgba(34, 229, 255, .32); }
.method.put, .method.patch { color: #fbbf24; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); }
.method.delete { color: #fb8fa2; background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .3); }
.status-code { --c: var(--tone-green); display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--font-mono); color: var(--c); }
.status-code::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.token-hint { font-size: 12.5px; color: var(--accent-3); padding: 3px 8px; border-radius: 6px; background: rgba(1, 8, 11, .8); border: 1px solid var(--line-2); letter-spacing: .03em; }
.ftd-badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--tone-green); }
.src { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.flag { font-family: "Twemoji Flags", "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 17px; line-height: 1; vertical-align: -2px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 14px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(3, 15, 20, .97);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(34, 229, 255, .06); color: var(--text-2); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table tbody tr { transition: background .12s, box-shadow .12s; }
.table tbody tr:hover { background: rgba(34, 229, 255, .05); box-shadow: inset 2px 0 0 var(--accent); }
.table tbody tr:last-child > td { border-bottom: 0; }
.table tr[data-href], .table tr[data-expand] { cursor: pointer; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .strong { color: #fff; font-weight: 700; }
.table.compact td { padding-top: 10px; padding-bottom: 10px; }
.table .sub { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.entity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.entity > div { min-width: 0; }
.entity b { display: block; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entity span:not(.avatar):not(.pill) { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  --h: 188;
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font: 700 12.5px/1 var(--font-display);
  letter-spacing: -.02em;
  color: hsl(var(--h) 95% 74%);
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 80% 50% / .32), hsl(var(--h) 80% 30% / .12));
  border: 1px solid hsl(var(--h) 85% 60% / .45);
  box-shadow: 0 0 14px -4px hsl(var(--h) 90% 55% / .7);
}
.avatar.sm { width: 30px; height: 30px; font-size: 10.5px; }
.avatar.lg { width: 54px; height: 54px; font-size: 18px; }

/* ---------- filters / toolbars ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 18px; }
.toolbar .field { gap: 6px; }
.toolbar .field > span { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toolbar .input { height: 38px; font-size: 13px; }
.toolbar select.input { min-width: 150px; }
.toolbar input[type="date"].input { width: 150px; }
.toolbar .grow { flex: 1 1 260px; }
.toolbar-actions { display: flex; gap: 8px; }
.toolbar-actions .btn { --h: 38px; }
.filter-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(4, 17, 23, .7); color: var(--text-2); font-size: 13px; font-weight: 600; }
.chip:hover { color: #fff; border-color: var(--line-3); }
.chip b { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.chip i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.chip.active { color: #fff; border-color: var(--accent); background: rgba(34, 229, 255, .12); box-shadow: 0 0 20px -8px rgba(34, 229, 255, .9); }
.chip-search { margin-left: auto; width: 300px; }
.chip-search .input { height: 36px; border-radius: 10px; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(1, 8, 11, .8); border: 1px solid var(--line-2); }
.segmented a { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.segmented a:hover { color: #fff; }
.segmented a.active { color: var(--ink); background: var(--grad); box-shadow: 0 0 16px -4px rgba(34, 229, 255, .8); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pager b { color: var(--text); }
.pager .pages { display: flex; align-items: center; gap: 8px; }

/* ---------- charts & lists ---------- */
.chart-wrap { position: relative; height: 300px; padding: 12px 16px 16px; }
.legend { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; background: var(--c); box-shadow: 0 0 8px var(--c); }
.donut-wrap { position: relative; height: 200px; margin: 16px 20px 4px; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-center b { font: 650 28px/1 var(--font-display); letter-spacing: -.03em; color: #fff; }
.donut-center span { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.legend-list { list-style: none; margin: 0; padding: 10px 20px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.legend-list li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--text-2); }
.legend-list li b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }
.legend-list i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.geo-list { list-style: none; margin: 0; padding: 16px 20px 20px; display: grid; gap: 13px; }
.geo-list li { display: grid; grid-template-columns: 24px minmax(90px, 140px) 1fr 52px; align-items: center; gap: 12px; font-size: 13px; }
.geo-list .geo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.geo-list li b { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 6px; border-radius: 2px; background: rgba(34, 229, 255, .08); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 12px rgba(34, 229, 255, .7); }
.share-cell { display: flex; align-items: center; gap: 10px; }
.share-cell .bar { flex: 1; min-width: 60px; height: 5px; }

.feed { list-style: none; margin: 0; padding: 8px 12px 14px; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid rgba(34, 229, 255, .07); }
.feed li:last-child { border-bottom: 0; }
.feed li.fresh { animation: slideIn .6s ease; background: linear-gradient(90deg, rgba(34, 229, 255, .12), transparent 70%); border-radius: 10px; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.feed .what b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; color: #fff; }
.feed .what span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.feed .when { display: grid; justify-items: end; gap: 2px; font-size: 12px; color: var(--muted); }
.feed .empty-row { display: block; padding: 28px 8px; text-align: center; color: var(--muted); border: 0; }

.timeline { list-style: none; margin: 0; padding: 12px 20px 18px; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.timeline li::before { content: ""; position: absolute; left: 13.5px; top: 40px; bottom: -6px; width: 1px; background: linear-gradient(var(--line-3), transparent); }
.timeline li:last-child::before { display: none; }
.timeline .t-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.timeline b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.timeline li > div > span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

/* ---------- credential / affiliate detail ---------- */
.detail-top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.credential { padding: 22px 24px; display: grid; gap: 16px; overflow: hidden; }
.credential::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -190px;
  top: -230px;
  border-radius: 50%;
  border: 1px solid rgba(34, 229, 255, .14);
  box-shadow: 0 0 0 40px rgba(34, 229, 255, .025), 0 0 0 41px rgba(34, 229, 255, .08), 0 0 80px rgba(34, 229, 255, .15) inset;
  pointer-events: none;
}
.cred-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cred-head h3 { margin-top: 6px; font-size: 19px; }
.token-box { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 14px; background: rgba(0, 6, 9, .85); border: 1px solid rgba(34, 229, 255, .35); box-shadow: inset 0 0 30px rgba(34, 229, 255, .08); }
.token-box .token-icon { color: var(--accent); filter: drop-shadow(0 0 6px rgba(34, 229, 255, .85)); }
.token-value { flex: 1; min-width: 0; font: 600 18px/1.35 var(--font-mono); letter-spacing: .03em; color: #e9fdff; word-break: break-all; text-shadow: 0 0 18px rgba(34, 229, 255, .5); }
.token-value.masked { color: var(--text-2); letter-spacing: .1em; text-shadow: none; }
.endpoints { position: relative; z-index: 1; display: grid; gap: 8px; }
.endpoint-line { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: rgba(1, 8, 11, .7); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); }
.endpoint-line > .icon { color: var(--accent); }
.endpoint-line .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cred-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.cred-actions .push-right { margin-left: auto; }
.cred-meta { position: relative; z-index: 1; font-size: 12px; color: var(--muted); }
.reveal-banner { margin-bottom: -4px; }
.ip-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ip-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-radius: 10px; background: rgba(1, 8, 11, .65); border: 1px solid var(--line); font-size: 13px; }
.ip-list code { color: var(--accent-3); font-size: 13px; }
.ip-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--tone-teal); box-shadow: 0 0 8px var(--tone-teal); flex: none; }
.ip-list .ip-empty { color: var(--muted); border-style: dashed; }
.ip-list .ip-empty .icon { color: var(--tone-amber); }
.ip-add { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; }
.pill-toggle { --c: var(--tone-gray); display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: 800 12px var(--font); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.pill-toggle::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill-toggle.on { --c: var(--tone-cyan); }
.pill-toggle:hover { filter: brightness(1.2); }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(1, 8, 11, .5); }
.control-row b { display: block; font-size: 13.5px; color: #fff; }
.control-row span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 0; }
.kv dt, .kv dd { margin: 0; padding: 11px 0; border-bottom: 1px solid rgba(34, 229, 255, .07); }
.kv dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.kv dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; color: var(--text); font-size: 13.5px; word-break: break-word; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.ftd-value { display: grid; gap: 2px; margin-bottom: 14px; padding: 16px; border-radius: 12px; background: rgba(52, 211, 153, .07); border: 1px solid rgba(52, 211, 153, .25); }
.ftd-value b { font: 650 30px/1.1 var(--font-display); letter-spacing: -.03em; color: var(--tone-green); text-shadow: 0 0 22px rgba(52, 211, 153, .45); }
.ftd-value span { font-size: 12.5px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font: 700 11.5px var(--font-mono); color: var(--accent); background: rgba(34, 229, 255, .08); border: 1px solid rgba(34, 229, 255, .45); box-shadow: 0 0 14px -4px rgba(34, 229, 255, .9); }
.steps b { display: block; font-size: 13.5px; color: #fff; }
.steps span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* ---------- brands ---------- */
.brand-card .card-head { padding-bottom: 2px; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--grad-soft); border: 1px solid var(--line-2); flex: none; }
.brand-card.inactive { opacity: .6; }
.brand-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.brand-stats span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand-stats b { font: 650 20px/1.3 var(--font-display); color: #fff; }
.brand-edit { display: grid; gap: 12px; padding: 16px 20px 18px; border-top: 1px solid var(--line); }
.brand-new { border-style: dashed; border-color: var(--line-3); background: rgba(4, 17, 23, .45); }

/* ---------- logs ---------- */
.logs-table td { padding-top: 10px; padding-bottom: 10px; }
.log-row .chev { color: var(--faint); transition: transform .2s; }
.log-row.open { background: rgba(34, 229, 255, .06); }
.log-row.open .chev { transform: rotate(180deg); color: var(--accent); }
.log-detail > td { padding: 0 16px 18px; background: rgba(34, 229, 255, .03); }
.log-detail-inner { display: grid; gap: 14px; padding-top: 6px; }
.log-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.log-meta span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.log-meta b { font-size: 12.5px; font-weight: 500; color: var(--text); }
.log-meta form { margin-left: auto; }
.live-indicator { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #c5f7e3; background: rgba(52, 211, 153, .07); border: 1px solid rgba(52, 211, 153, .24); }
.new-logs { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--grad); animation: slideIn .4s ease; }
.new-logs:hover { color: var(--ink); filter: brightness(1.08); }

/* ---------- code blocks ---------- */
.code { position: relative; min-width: 0; border-radius: 14px; background: #01070a; border: 1px solid var(--line-2); overflow: hidden; }
.code-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 14px; background: rgba(6, 26, 34, .85); border-bottom: 1px solid var(--line); }
.code-title { display: flex; align-items: center; gap: 8px; font: 600 11.5px var(--font-mono); color: var(--muted); white-space: nowrap; }
.code-title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.code-tabs { display: flex; gap: 2px; height: 100%; }
.code-tabs button { position: relative; height: 100%; padding: 0 11px; border: 0; background: none; color: var(--muted); font: 700 12px var(--font); cursor: pointer; }
.code-tabs button:hover { color: #fff; }
.code-tabs button.active { color: var(--accent); }
.code-tabs button.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.code-head .copy { margin-left: auto; }
.code pre { margin: 0; padding: 16px 18px; overflow: auto; max-height: 560px; font: 400 12.6px/1.7 var(--font-mono); color: #cfe6ec; tab-size: 2; }
.tok-key { color: #7dd3fc; }
.tok-str { color: #5eead4; }
.tok-num { color: #fcd34d; }
.tok-bool { color: #f9a8d4; }
.tok-com { color: #4f6f78; font-style: italic; }
.tok-kw { color: #22e5ff; }
.tok-flag { color: #93c5fd; }
.tok-var { color: #fdba74; }
.tok-url { color: #a5f3fc; }

/* ---------- feedback ---------- */
.alert { --c: var(--tone-cyan); display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-left-width: 3px; background: color-mix(in srgb, var(--c) 8%, transparent); color: var(--text); font-size: 13.5px; }
.alert > .icon { color: var(--c); margin-top: 1px; }
.alert b { color: #fff; }
.alert-success { --c: var(--tone-green); }
.alert-error { --c: var(--tone-red); }
.alert-warning { --c: var(--tone-amber); }
.alert-info { --c: var(--tone-cyan); }
.toasts { position: fixed; z-index: 200; right: 18px; top: calc(var(--bar-h) + 14px); display: grid; gap: 10px; width: min(420px, calc(100vw - 36px)); }
.toast {
  --c: var(--tone-green);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  background: rgba(4, 18, 24, .97);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  border-left-width: 3px;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .85), 0 0 34px -12px color-mix(in srgb, var(--c) 70%, transparent);
  backdrop-filter: blur(10px);
  animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast > .icon { color: var(--c); margin-top: 1px; }
.toast span { flex: 1; }
.toast button { padding: 2px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.toast button:hover { color: #fff; }
.toast.hide { animation: toastOut .3s forwards; }
.toast-error { --c: var(--tone-red); }
.toast-warning { --c: var(--tone-amber); }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }
.modal { width: min(470px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--text); overflow: visible; }
.modal::backdrop { background: rgba(0, 6, 9, .78); backdrop-filter: blur(5px); }
.modal[open] { animation: modalIn .22s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-card { padding: 26px; display: grid; gap: 12px; }
.modal-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--tone-amber); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); }
.modal h3 { font-size: 19px; }
.modal p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 24px; text-align: center; color: var(--muted); }
.empty-icon { position: relative; width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 50%; color: var(--accent); background: var(--grad-soft); border: 1px solid var(--line-3); box-shadow: 0 0 0 8px rgba(34, 229, 255, .04), 0 0 34px -8px rgba(34, 229, 255, .7); }
.empty h4 { font-size: 16px; }
.empty p { max-width: 420px; }
.empty .btn { margin-top: 8px; }

/* ---------- logo lockup (mark + wordmark) ---------- */
.lockup { display: inline-flex; align-items: center; gap: 14px; color: inherit; }
.lockup img { height: 52px; width: auto; filter: drop-shadow(0 0 16px rgba(34, 229, 255, .55)); }
.lockup .wordmark { font-size: 34px; }
.lockup.sm { gap: 10px; }
.lockup.sm img { height: 34px; }
.lockup.sm .wordmark { font-size: 22px; }
.lockup.stack { flex-direction: column; gap: 22px; }
.lockup.stack img { height: auto; width: 100%; filter: drop-shadow(0 0 40px rgba(34, 229, 255, .45)); animation: float 8s ease-in-out infinite; }
.lockup.stack .wordmark { font-size: clamp(36px, 5vw, 58px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* growth bars (decorative, echoes the bar-and-arrow mark) */
.signal { display: block; overflow: visible; }
.signal rect { fill: rgba(34, 229, 255, .3); transform-box: fill-box; transform-origin: bottom; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 30ms); }
.signal rect:nth-of-type(3n) { fill: rgba(34, 229, 255, .5); }
.signal .trend { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(34, 229, 255, .9)); }
.signal .head { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(34, 229, 255, .9)); }
@keyframes rise { from { opacity: 0; transform: scaleY(.1); } }

/* ---------- auth ---------- */
.auth { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; overflow: hidden; }
.auth .signal { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38%; opacity: .2; mask-image: linear-gradient(to top, #000, transparent); }
.auth-wrap { position: relative; z-index: 1; width: 100%; max-width: 640px; display: grid; justify-items: center; gap: 26px; }
.auth-card { width: 100%; max-width: 440px; padding: 30px 30px 24px; display: grid; gap: 18px; background: rgba(3, 14, 19, .9) !important; backdrop-filter: blur(14px); }
.auth-head { display: grid; gap: 6px; text-align: center; margin-bottom: 2px; }
.auth-head h1 { font-size: 24px; }
.auth-head p { color: var(--muted); font-size: 13.5px; }
.auth-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; font-size: 12.5px; }
.auth-foot a { display: inline-flex; align-items: center; gap: 6px; }
.auth-points { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-2); background: rgba(4, 17, 23, .7); border: 1px solid var(--line); }
.auth-points .icon { color: var(--accent); }

/* ---------- public home ---------- */
.home { position: relative; min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 56px; overflow: hidden; padding: 56px 24px; }
.home-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; width: 100%; max-width: 1180px; }
.home-copy { display: grid; justify-items: start; gap: 18px; }
.home-copy .wordmark { margin-bottom: 4px; }
.home h1 { font-size: 50px; line-height: 1.05; letter-spacing: -.04em; }
.home p.lead { color: var(--text-2); font-size: 16.5px; line-height: 1.7; max-width: 540px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.home-visual { position: relative; width: min(460px, 100%); justify-self: center; }
.home-visual::before { content: ""; position: absolute; inset: 10% 5% 25%; background: radial-gradient(closest-side, rgba(34, 229, 255, .22), transparent); filter: blur(30px); pointer-events: none; }
.home-features { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1180px; }
.feature { padding: 20px 22px; display: grid; gap: 8px; }
.feature .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; color: var(--accent); background: rgba(34, 229, 255, .08); border: 1px solid var(--line-3); }
.feature b { font: 600 15px var(--font-display); color: #fff; }
.feature span { color: var(--muted); font-size: 13px; }
.home .signal { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; opacity: .25; mask-image: linear-gradient(to top, #000, transparent); }
.status-chip { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c5f7e3; background: rgba(52, 211, 153, .07); border: 1px solid rgba(52, 211, 153, .25); }
.base-url { font: 500 13px var(--font-mono); color: var(--accent-3); padding: 9px 14px; border-radius: 10px; background: rgba(1, 8, 11, .8); border: 1px solid var(--line-2); }

/* ---------- docs ---------- */
.docs-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 66px; padding: 0 28px; background: rgba(2, 10, 13, .86); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.docs-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 229, 255, .5), transparent); }
.docs-brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.docs-brand:hover { color: inherit; }
.docs-brand img { height: 28px; width: auto; filter: drop-shadow(0 0 10px rgba(34, 229, 255, .5)); }
.docs-divider { width: 1px; height: 26px; background: var(--line-2); }
.docs-title { font-weight: 700; color: var(--text-2); }
.version { padding: 3px 8px; border-radius: 6px; font: 700 11px var(--font-mono); color: var(--ink); background: var(--accent); }
.docs-top .base-url { display: inline-flex; align-items: center; gap: 8px; padding: 5px 5px 5px 12px; font-size: 12.5px; }
.docs-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); max-width: 1520px; margin: 0 auto; }
.docs-nav { position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; padding: 26px 18px 40px 28px; border-right: 1px solid var(--line); }
.docs-nav h6 { margin: 22px 0 8px 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.docs-nav h6:first-child { margin-top: 0; }
.docs-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 0 8px 8px 0; border-left: 2px solid transparent; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.docs-nav a:hover { color: #fff; background: rgba(34, 229, 255, .05); }
.docs-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(34, 229, 255, .14), transparent); border-left-color: var(--accent); }
.docs-nav .method { min-width: 40px; height: 19px; font-size: 10px; }
.docs-main { min-width: 0; padding: 36px 48px 140px; }
.docs-hero { position: relative; overflow: hidden; padding: 40px 40px 36px; border-radius: 24px; }
.docs-hero .signal { position: absolute; right: 0; bottom: 0; width: 55%; height: 80%; opacity: .3; mask-image: linear-gradient(to left, #000 30%, transparent); }
.docs-hero > * { position: relative; z-index: 1; }
.docs-hero .kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px var(--font-mono); letter-spacing: .16em; color: var(--accent); }
.docs-hero .kicker::before { content: ""; width: 18px; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.docs-hero h1 { margin: 14px 0 14px; font-size: 46px; line-height: 1.05; letter-spacing: -.04em; }
.docs-hero .lead { max-width: 720px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.quick-card { min-width: 0; padding: 14px 16px; border-radius: 14px; background: rgba(1, 8, 11, .72); border: 1px solid var(--line-2); }
.quick-card > span { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quick-card > span .icon { color: var(--accent); }
.quick-card code, .quick-card b { display: block; margin-top: 7px; font-size: 13.5px; font-weight: 500; color: var(--accent-3); word-break: break-all; }
.doc-section { margin-top: 44px; padding-top: 52px; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.doc-section h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 28px; }
.doc-section h2 > .icon { color: var(--accent); }
.doc-section h3 { margin: 30px 0 12px; font: 800 11px var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.doc-section > p, .doc-col > p, .doc-section .prose p { max-width: 760px; margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.75; }
.doc-section p code, .doc-col p code, .prose code, .params td code, .checklist code { padding: 2px 6px; border-radius: 6px; font-size: 12.5px; color: var(--accent-3); background: rgba(34, 229, 255, .09); border: 1px solid rgba(34, 229, 255, .16); }
.doc-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 8px; }
.doc-columns .sticky { position: sticky; top: 90px; display: grid; gap: 16px; min-width: 0; }
.doc-col { min-width: 0; }
.endpoint { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-top: 16px; padding: 10px 12px 10px 10px; border-radius: 12px; background: rgba(1, 8, 11, .8); border: 1px solid var(--line-2); font: 500 14px var(--font-mono); color: #e9fdff; }
.endpoint .url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url.split { display: flex; }
.url.split .host { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .6; }
.url.split b { flex: none; font-weight: 600; color: #e9fdff; }
.auth-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font: 800 10.5px var(--font); letter-spacing: .1em; color: var(--tone-amber); background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .28); white-space: nowrap; }
.params-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(3, 14, 19, .6); }
.params { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.params th { padding: 10px 14px; text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: rgba(6, 26, 34, .75); white-space: nowrap; }
.params td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text-2); line-height: 1.55; }
.params td:first-child { white-space: nowrap; }
.params td:first-child code { color: var(--accent); font-weight: 600; background: none; border: 0; padding: 0; font-size: 13px; }
.type { font: 500 12px var(--font-mono); color: #7dd3fc; white-space: nowrap; }
.default { font: 500 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.req { margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tone-red); }
.callout { --c: var(--tone-cyan); display: flex; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--c) 7%, transparent); border: 1px solid color-mix(in srgb, var(--c) 26%, transparent); border-left-width: 3px; max-width: 780px; }
.callout > .icon { color: var(--c); margin-top: 2px; }
.callout b { display: block; color: #fff; margin-bottom: 2px; }
.callout p { margin: 0 !important; color: var(--text-2); font-size: 14px !important; line-height: 1.65 !important; }
.country-tools { display: flex; align-items: center; gap: 12px; margin-top: 16px; max-width: 420px; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; max-height: 430px; margin-top: 14px; padding: 2px; overflow-y: auto; }
.country-grid > div { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 10px; border-radius: 9px; background: rgba(1, 8, 11, .6); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.country-grid code { width: 24px; font-weight: 700; color: var(--accent); }
.country-grid .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; max-width: 780px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.checklist .icon { color: var(--accent); margin-top: 3px; filter: drop-shadow(0 0 6px rgba(34, 229, 255, .6)); }
.docs-footer { margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }

/* ---------- integration kit (printable) ---------- */
.kit-page { background: #010608; }
.kit-page::before, .kit-page::after { display: none; }
.kit-toolbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: rgba(2, 10, 13, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.kit-toolbar-title { flex: 1; min-width: 0; }
.kit-toolbar-title b { display: block; font-size: 14px; }
.kit-toolbar-title span { display: block; font-size: 12px; color: var(--muted); }
.kit-paper {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 210mm;
  min-height: 297mm;
  margin: 28px auto;
  padding: 14mm 14mm 10mm;
  color: var(--text);
  background:
    radial-gradient(520px 380px at 100% 0%, rgba(34, 229, 255, .13), transparent 65%),
    radial-gradient(600px 420px at 0% 100%, rgba(0, 180, 216, .08), transparent 60%),
    #03111a;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .95), 0 0 70px -20px rgba(34, 229, 255, .35);
}
.kit-paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.kit-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.kit-eyebrow { font: 700 9.5px var(--font-mono); letter-spacing: .18em; color: var(--accent); }
.kit-title { margin-top: 10px; font-size: 28px; line-height: 1.1; }
.kit-sub { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.kit-cred { margin: 16px 0 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; background: linear-gradient(#041820, #041820) padding-box, linear-gradient(120deg, rgba(34, 229, 255, .9), rgba(34, 229, 255, .15) 50%, rgba(0, 180, 216, .8)) border-box; box-shadow: 0 0 40px -14px rgba(34, 229, 255, .55); }
.kit-cred table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.kit-cred th { width: 130px; padding: 5px 0; text-align: left; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kit-cred td { padding: 5px 0; font-size: 11.5px; color: var(--text-2); }
.kit-cred code { font-size: 11.5px; color: #e9fdff; word-break: break-all; }
.kit-cred .kit-token { font-size: 15px; font-weight: 700; letter-spacing: .03em; color: #fff; text-shadow: 0 0 16px rgba(34, 229, 255, .6); }
.kit-intro { font-size: 11.5px; line-height: 1.65; color: var(--text-2); }
.kit-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.kit-section.first { margin-top: 0; padding-top: 0; border-top: 0; }
.kit-section > p code, .kit-step code, .kit-note code, .kit-checklist code { font-size: 9.8px; color: var(--accent-3); }
.kit-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.kit-step { padding: 12px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(6, 26, 34, .6); }
.kit-step b { display: block; margin-top: 9px; font-size: 12px; color: #fff; }
.kit-step p { margin-top: 4px; font-size: 10.5px; line-height: 1.55; color: var(--text-2); }
.kit-note { margin-top: 14px; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(34, 229, 255, .26); border-left-width: 3px; background: rgba(34, 229, 255, .05); font-size: 10.5px; color: var(--text-2); }
.kit-note b { font-size: 11px; color: #fff; }
.kit-note ul { margin: 7px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.kit-note li { position: relative; padding-left: 12px; line-height: 1.55; }
.kit-note li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 1px; background: var(--accent); }
.kit-statuses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kit-statuses .pill { font-size: 10px; padding: 3px 9px; }
.kit-checklist { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.kit-checklist li { display: flex; gap: 8px; font-size: 11px; line-height: 1.55; color: var(--text-2); }
.kit-checklist .icon { flex: none; margin-top: 2px; color: var(--accent); }
.kit-endpoint { display: flex; align-items: center; gap: 10px; font: 500 11.5px var(--font-mono); color: #e9fdff; }
.kit-endpoint .method { min-width: 40px; height: 19px; font-size: 9.5px; }
.kit-auth { margin-left: auto; font: 800 8.5px var(--font); letter-spacing: .12em; color: var(--tone-amber); padding: 3px 7px; border-radius: 5px; border: 1px solid rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07); }
.kit-section h2 { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 18px; }
.kit-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; font: 700 10.5px var(--font-mono); color: var(--accent); border-radius: 50%; background: rgba(34, 229, 255, .08); border: 1px solid rgba(34, 229, 255, .45); }
.kit-section > p { margin-top: 6px; font-size: 11.5px; color: var(--text-2); }
.kit-label { margin: 12px 0 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kit-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.kit-table th { padding: 5px 7px; text-align: left; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); background: rgba(6, 26, 34, .6); }
.kit-table td { padding: 5px 7px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; line-height: 1.45; }
.kit-table td code { color: var(--accent); font-weight: 600; font-size: 10px; }
.kit-table .type, .kit-table .default { font-size: 9.5px; }
.kit-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.kit-code { margin: 0; padding: 9px 11px; border-radius: 8px; font: 400 9.2px/1.55 var(--font-mono); white-space: pre-wrap; word-break: break-all; color: #cfe6ec; background: #01070a; border: 1px solid var(--line-2); }
.kit-section, .kit-code, .kit-table, .kit-cred { break-inside: avoid; }
.kit-paper:last-of-type { margin-bottom: 64px; }
.kit-intro code { font-size: 10.5px; color: var(--accent-3); }
.kit-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 8.5px; color: var(--faint); }
.kit-paper > .kit-section:last-of-type { margin-bottom: 16px; }

@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #03111a !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .kit-toolbar, .toasts { display: none !important; }
  .kit-paper { width: 210mm; height: 297mm; min-height: 0; margin: 0 !important; border: 0; border-radius: 0; box-shadow: none; break-after: page; }
  .kit-paper:last-of-type { break-after: auto; }
}

/* ---------- error page ---------- */
.error-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; overflow: hidden; }
.error-page .lockup { margin-bottom: 18px; }
.error-page .code-big { font: 700 120px/1 var(--font-display); letter-spacing: -.06em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(34, 229, 255, .35)); }
.error-page p { margin: 10px 0 24px; color: var(--text-2); font-size: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1440px) { .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .chip-stat:nth-child(3n + 1) { border-left: 0; } .chip-stat:nth-child(n + 4) { border-top: 1px solid var(--line); } }
@media (min-width: 1680px) { .me-text { display: block; } .api-status .mono { display: inline; } }
@media (max-width: 1280px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 > .span-2 { grid-column: 1 / -1; }
  .split, .detail-top { grid-template-columns: minmax(0, 1fr); }
  .doc-columns { grid-template-columns: minmax(0, 1fr); }
  .doc-columns .sticky { position: static; }
}
@media (max-width: 1280px) {
  .menu-btn { display: inline-flex !important; }
  .appbar-inner { gap: 14px; }
  .nav { display: none; position: absolute; top: var(--bar-h); left: 0; right: 0; height: auto; flex-direction: column; gap: 2px; padding: 10px 16px 16px; background: #020a0d; border-bottom: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .7); }
  body.nav-open .nav { display: flex; }
  .nav-link { height: 44px; border-radius: 10px; }
  .nav-link.active { background: rgba(34, 229, 255, .08); }
  .nav-link.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .appbar-right { margin-left: auto; }
}
@media (max-width: 1024px) {
  .pagehead { padding: 24px 20px 18px; }
  .content { padding: 0 20px 48px; }
  .appbar-inner { padding: 0 16px; }
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .home-hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .home-copy { justify-items: center; }
  .home-actions { justify-content: center; }
  .home-visual { width: min(320px, 80%); order: -1; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { display: none; }
  .docs-main { padding: 28px 22px 100px; }
  .docs-top .base-url { display: none; }
  .chip-search { width: 100%; margin-left: 0; }
}
@media (max-width: 720px) {
  .cols-4, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip-stat { border-left: 0; border-top: 1px solid var(--line); }
  .chip-stat:nth-child(2n) { border-left: 1px solid var(--line); }
  .chip-stat:nth-child(-n + 2) { border-top: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .api-status { display: none; }
  .pagehead h1 { font-size: 23px; }
  .pagehead-actions { width: 100%; }
  .hide-sm, .docs-divider, .docs-title { display: none; }
  .docs-top { gap: 12px; padding: 0 16px; }
  .quick, .home-features { grid-template-columns: minmax(0, 1fr); }
  .home h1 { font-size: 36px; }
  .docs-hero h1 { font-size: 34px; }
  .ip-add { grid-template-columns: minmax(0, 1fr); }
  .kit-paper { width: auto; margin: 12px; padding: 20px; }
  .kit-cols, .kit-steps { grid-template-columns: minmax(0, 1fr); }
  .kit-toolbar { flex-wrap: wrap; padding: 10px 12px; }
  .kit-toolbar-title { order: -1; flex-basis: 100%; }
  .kit-head { flex-direction: column-reverse; align-items: flex-start; }
  .kit-cred th { width: 92px; }
}

/* ---------- tone utilities (last, so they override component defaults) ---------- */
.t-blue { --c: var(--tone-blue); }
.t-cyan { --c: var(--tone-cyan); }
.t-teal { --c: var(--tone-teal); }
.t-green { --c: var(--tone-green); }
.t-amber { --c: var(--tone-amber); }
.t-red { --c: var(--tone-red); }
.t-violet { --c: var(--tone-violet); }
.t-pink { --c: var(--tone-pink); }
.t-gray { --c: var(--tone-gray); }
