/* ============================================================
   TOKENLESS — interface system
   Cool neutral canvas · electric indigo accent · dense data UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --canvas: #fafafa;
  --canvas-2: #f4f4f6;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --surface-3: #f4f4f6;
  --line: #e7e7ec;
  --line-2: #d8d8e0;
  --line-3: #c3c3ce;

  --ink: #101014;
  --ink-2: #3a3a45;
  --ink-3: #6c6c7a;
  --ink-4: #9898a6;

  --accent: #5b5bd6;
  --accent-2: #4646c4;
  --accent-ink: #ffffff;
  --accent-tint: #eeeefc;
  --accent-tint-2: #e2e2fa;
  --accent-line: #c9c9f2;

  --ok: #0f9d63;
  --ok-tint: #e8f8f0;
  --warn: #b7791f;
  --warn-tint: #fdf6e6;
  --bad: #dc3b3b;
  --bad-tint: #fdeeee;

  --shadow-sm: 0 1px 2px rgba(16, 16, 20, .05);
  --shadow: 0 4px 14px -4px rgba(16, 16, 20, .1);
  --shadow-lg: 0 24px 48px -20px rgba(16, 16, 20, .24);

  --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --r-xs: 6px;
  --r-sm: 8px;
  --r: 11px;
  --r-lg: 16px;
  --side: 236px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --canvas: #08080a;
  --canvas-2: #0c0c10;
  --surface: #101014;
  --surface-2: #141419;
  --surface-3: #191920;
  --line: #23232b;
  --line-2: #2e2e38;
  --line-3: #3d3d4a;

  --ink: #f2f2f5;
  --ink-2: #c6c6d0;
  --ink-3: #8d8d9c;
  --ink-4: #66667a;

  --accent: #ff2d3f;
  --accent-2: #ff5a67;
  --accent-ink: #14060a;
  --accent-tint: #2b1218;
  --accent-tint-2: #3a1720;
  --accent-line: #5c2029;

  --ok: #34d399;
  --ok-tint: #0d2b21;
  --warn: #f2b950;
  --warn-tint: #2e2410;
  --bad: #f87171;
  --bad-tint: #31161a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 6px 18px -6px rgba(0, 0, 0, .7);
  --shadow-lg: 0 24px 56px -20px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------------- type ---------------- */
.h1 { font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; line-height: 1.3; }
.h2 { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.h3 { font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.sub { font-family: var(--mono); color: var(--ink-3); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; max-width: 62ch; line-height: 1.7; }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.tiny { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; }
.micro {
  font-size: 8.5px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-4);
  font-family: var(--mono);
}
.dim { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.ink-2 { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* ---------------- app shell ---------------- */
.app { display: flex; min-height: 100vh; }

.side {
  width: var(--side);
  flex: 0 0 var(--side);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  z-index: 40;
}

.side-brand {
  display: flex; align-items: center; gap: 9px;
  padding: 17px 16px;
  border-bottom: 1px solid var(--line);
  height: 58px;
}
.side-mark {
  width: 26px; height: 26px; flex: 0 0 26px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--accent), #ff6f5e 130%);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 12px;
  letter-spacing: -.02em;
  box-shadow: var(--shadow-sm);
}
.side-name { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.side-tag {
  font-family: var(--mono);
  font-size: 8.5px; color: var(--ink-4); letter-spacing: .24em; text-transform: uppercase; font-weight: 600;
}
.side-plan-top b { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: 9.5px; }
.side-plan .tiny { font-family: var(--mono); letter-spacing: .1em; font-size: 9px; }

.side-scroll { overflow-y: auto; flex: 1; padding: 12px 10px 8px; }
.side-group + .side-group { margin-top: 18px; }
.side-group-label {
  padding: 0 8px 7px;
  font-family: var(--mono);
  letter-spacing: .22em !important;
}

.side-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 1px;
  transition: background .12s, color .12s;
}
.side-link .out {
  width: 11px; height: 11px; margin-left: auto; opacity: 0;
  color: var(--ink-4); transition: opacity .12s;
}
.side-link:hover .out { opacity: 1; }
.side-link .side-badge + .out { margin-left: 4px; }
.side-link svg { width: 16px; height: 16px; color: var(--ink-4); flex: 0 0 16px; transition: color .12s; }
.side-link:hover { background: var(--surface-3); color: var(--ink); }
.side-link:hover svg { color: var(--ink-2); }
.side-link.on { background: var(--accent-tint); color: var(--accent-2); font-weight: 600; }
.side-link.on svg { color: var(--accent); }
.side-link .side-badge {
  margin-left: auto;
  font-size: 10.5px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.side-link.on .side-badge { background: var(--accent-tint-2); color: var(--accent-2); }

.side-foot { border-top: 1px solid var(--line); padding: 10px; display: grid; gap: 6px; }
.side-foot form { display: grid; }

/* theme + sign out read as dark console keys in either theme */
.side-foot > .side-link,
.side-foot form > .side-link {
  justify-content: flex-start;
  height: 31px; padding: 0 10px; margin: 0;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface-2);
  cursor: pointer;
}
.side-foot > .side-link:hover,
.side-foot form > .side-link:hover {
  color: var(--ink); border-color: var(--accent-line);
  background: var(--accent-tint);
}
.side-foot > .side-link:hover svg,
.side-foot form > .side-link:hover svg { color: var(--accent); }
.side-foot .side-link svg { width: 13px; height: 13px; flex: 0 0 13px; color: var(--ink-4); }
.side-foot .side-link span { line-height: 1; }

html[data-theme="dark"] .side-foot > .side-link,
html[data-theme="dark"] .side-foot form > .side-link {
  background: rgba(255, 45, 63, .05);
  border-color: rgba(255, 45, 63, .22);
  color: var(--ink-2);
}
html[data-theme="dark"] .side-foot > .side-link:hover,
html[data-theme="dark"] .side-foot form > .side-link:hover {
  background: rgba(255, 45, 63, .13);
  border-color: rgba(255, 45, 63, .5);
  color: #fff;
}
html[data-theme="dark"] .side-foot > .side-link:hover svg,
html[data-theme="dark"] .side-foot form > .side-link:hover svg { color: var(--accent); }
.side-plan {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 9px 10px;
}
.side-plan-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.side-plan b { font-size: 10.5px; font-weight: 600; }
.side-plan .tiny { color: var(--ink-3); font-size: 9px; letter-spacing: .08em; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.top {
  height: 58px; flex: 0 0 58px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 clamp(16px, 2.6vw, 28px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  position: sticky; top: 0; z-index: 30;
}
.crumbs {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-4); min-width: 0;
}
.crumbs b { color: var(--ink); font-weight: 600; letter-spacing: .17em; }
.crumbs svg { width: 13px; height: 13px; opacity: .6; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 7px; }

.view { padding: clamp(18px, 2.6vw, 30px) clamp(16px, 2.6vw, 28px) 56px; max-width: 1220px; width: 100%; }

.head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.head-main { min-width: 0; flex: 1; }
.head-main .sub { margin-top: 5px; }
.head-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background .13s, border-color .13s, color .13s, transform .1s;
}
.btn:hover { background: var(--surface-3); border-color: var(--line-3); color: var(--ink); }
.btn:active { transform: translateY(.5px); }
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: var(--accent); border-color: transparent;
  color: var(--accent-ink); box-shadow: 0 1px 2px rgba(91, 91, 214, .35);
}
.btn-primary:hover { background: var(--accent-2); border-color: transparent; color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-3); }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn-icon { width: 30px; height: 30px; padding: 0; }
.btn-sm { height: 27px; padding: 0 8px; font-size: 8.5px; letter-spacing: .12em; border-radius: var(--r-xs); }
.btn-bad { color: var(--bad); }
.btn-bad:hover { background: var(--bad-tint); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; height: 36px; font-size: 10px; letter-spacing: .14em; }

/* ---------------- surfaces ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 16px; }
.card-flush { overflow: hidden; }
.card-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.card-head .spacer { margin-left: auto; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1080px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

/* hero */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  padding: 22px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .4;
  mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 72%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-metric { display: flex; align-items: flex-end; gap: 12px; margin-top: 28px; }
.hero-num { font-size: clamp(42px, 6vw, 58px); font-weight: 660; letter-spacing: -.045em; line-height: .9; }
.hero-num span { color: var(--accent); }
.hero-meta { display: grid; gap: 3px; padding-bottom: 5px; }

/* metric tiles */
.tile { padding: 13px 14px; display: grid; gap: 2px; }
.tile-top { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.tile-ic {
  width: 25px; height: 25px; flex: 0 0 25px;
  border-radius: 7px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-3);
  border: 1px solid var(--line);
}
.tile-ic svg { width: 13px; height: 13px; }
.tile-num { font-size: 26px; font-weight: 640; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }

/* ---------------- chips ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 8.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip-ok { background: var(--ok-tint); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 22%, transparent); }
.chip-neutral { background: var(--surface-3); color: var(--ink-3); border-color: var(--line); }
.chip-bad { background: var(--bad-tint); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }
.chip-warn { background: var(--warn-tint); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 24%, transparent); }
.chip-accent { background: var(--accent-tint); color: var(--accent-2); border-color: var(--accent-line); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 5px; }

/* ---------------- forms ---------------- */
.field { display: grid; gap: 5px; margin-bottom: 13px; }
.label { font-family: var(--mono); font-size: 8.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .2em; text-transform: uppercase; }
.input, .select, .textarea {
  width: 100%; min-height: 33px;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  outline: none;
  transition: border-color .13s, box-shadow .13s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.textarea { resize: vertical; min-height: 70px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: none; }
.hint { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--ink-4); line-height: 1.6; text-transform: uppercase; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 620px) { .row-2 { grid-template-columns: 1fr; } }

.switch { position: relative; display: inline-flex; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch-t {
  width: 34px; height: 19px; border-radius: 999px;
  background: var(--line-2); position: relative; transition: background .16s;
}
.switch-t::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .16s;
}
.switch input:checked + .switch-t { background: var(--accent); }
.switch input:checked + .switch-t::after { transform: translateX(15px); }
.switch input:focus-visible + .switch-t { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 8.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-4);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  white-space: nowrap;
}
.tbl thead th:first-child { padding-left: 14px; }
.tbl tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody td:first-child { padding-left: 14px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.id-cell { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--ink-4); white-space: nowrap; }
.email-cell { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .05em; word-break: break-all; }
.sub-cell { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.flag { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 14px; flex: 0 0 auto; }
img.flag { object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(16,16,20,.16); background: var(--line); }
.flag.lg { width: 26px; height: 18px; }
.table .flag, .tbl .flag { vertical-align: -1px; }

/* country flag tag, used in feeds and telemetry rows (flag only) */
.cc-tag { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.cc-tag .flag { width: 19px; height: 13px; }
.cc-pill .flag, .ip-card .flag { width: 21px; height: 15px; border-radius: 3px; }

/* ---------- client badges (browser + OS brand marks) ---------- */
.client-badge {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  vertical-align: -2px;
}
.client-badge i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 5px;
  font-size: 12px; line-height: 1;
  color: var(--ink-3); background: color-mix(in srgb, currentColor 13%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
}
/* every mark keeps its own brand hue so a row reads like a real client list */
i.fa-chrome { color: #4285f4; }
i.fa-safari { color: #12b5e5; }
i.fa-firefox { color: #ff7139; }
i.fa-edge { color: #0aa1dd; }
i.fa-opera { color: #ff1b2d; }
i.fa-windows { color: #0f83d6; }
i.fa-apple { color: var(--ink-2); }
i.fa-android { color: #2fc06f; }
i.fa-linux { color: #e0a800; }
i.fa-globe { color: var(--ink-3); }
html[data-theme="dark"] i.fa-apple { color: #f2f4fa; }
.client-agent {
  display: inline-flex; align-items: center; gap: 7px;
  min-width: 0; max-width: 100%;
}
.client-agent-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); font-size: 9px; letter-spacing: .09em; color: var(--ink-3);
}
.client-badge.sess-badges { gap: 4px; }
.client-badge.sess-badges i { width: 19px; height: 19px; font-size: 13px; border-radius: 5px; }
.simple-token-updated .client-badge { margin-right: 4px; }
.simple-token-updated .client-badge i { width: 14px; height: 14px; font-size: 10px; border-radius: 4px; }

/* country filter pills */
.cc-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 10px 0 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  font-family: var(--mono); font-size: 8.5px; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.cc-pill b { font-size: 9px; color: var(--ink-4); font-weight: 600; }
.cc-pill:hover { border-color: var(--line-3); background: var(--surface-3); }
.cc-pill.on { background: var(--accent-tint); border-color: var(--accent-line); color: var(--accent-2); }
.cc-pill.on b { color: var(--accent); }
.cc-pill.clear { border-style: dashed; color: var(--ink-4); padding: 0 10px; }
.cc-pill svg { width: 12px; height: 12px; }

/* template gallery */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 12px; }
.tpl { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.tpl-shot { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e9ee; border-bottom: 1px solid var(--line); }
html[data-theme="dark"] .tpl-shot { background: #17171d; }
.tpl-shot iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 960px; border: 0;
  transform: scale(.166); transform-origin: top left; pointer-events: none; }
.tpl-shot:hover iframe { pointer-events: auto; }

/* endpoint card with live preview */
.ep-row { display: flex; align-items: stretch; }
.ep-shot { position: relative; flex: 0 0 132px; overflow: hidden; background: #e9e9ee;
  border-right: 1px solid var(--line); aspect-ratio: 4 / 3; }
html[data-theme="dark"] .ep-shot { background: #17171d; }
.ep-shot iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 960px; border: 0;
  transform: scale(.1031); transform-origin: top left; pointer-events: none; }
@media (max-width: 620px) {
  .ep-row { flex-direction: column; }
  .ep-shot { flex: 0 0 auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .ep-shot iframe { transform: scale(.29); }
}
.tpl-foot { display: flex; align-items: center; gap: 6px; padding: 8px 9px; }
.tpl-name { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.cred-row { display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.cred-row .mono { color: var(--pine); background: var(--tint); border-radius: 4px; padding: 1px 5px; }
.cred-row .btn { width: 20px; height: 20px; }
.row-actions { display: flex; gap: 3px; justify-content: flex-end; }
.row-actions .btn { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-4); }
.row-actions .btn:hover { background: var(--surface-3); color: var(--ink); border-color: var(--line); }

.rowpin {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent-tint); color: var(--accent);
}

/* ---------------- lists ---------------- */
.list { display: grid; }
.list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .06em;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface-2); }

.avatar {
  width: 27px; height: 27px; flex: 0 0 27px;
  border-radius: 7px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-3);
  border: 1px solid var(--line);
  font-size: 10.5px; font-weight: 650; letter-spacing: .01em;
}

/* ---------------- chart ---------------- */
.chart { display: flex; align-items: flex-end; gap: 5px; height: 148px; padding: 0 2px; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.chart-bar {
  width: 100%; max-width: 30px;
  background: var(--accent-tint-2);
  border-radius: 4px 4px 2px 2px;
  min-height: 3px;
  transition: background .14s;
}
.chart-col:hover .chart-bar { background: var(--accent); }
.chart-cap { font-size: 9.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

/* ---------------- misc ---------------- */
.empty { padding: 40px 20px; text-align: center; }
.empty .h2 { margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: 118px 1fr; gap: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.kv dt { color: var(--ink-4); font-family: var(--mono); font-size: 8.5px; letter-spacing: .17em; text-transform: uppercase; padding: 7px 0; }
.kv dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.kv dd:last-of-type { border-bottom: 0; }

.note {
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent-2);
  border-radius: var(--r-sm);
  padding: 10px 11px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
  line-height: 1.7;
}
.note-warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-tint); color: var(--warn); }
.note-bad { border-color: color-mix(in srgb, var(--bad) 30%, transparent); background: var(--bad-tint); color: var(--bad); }

/* ---------------- steps / DNS records ---------------- */
.steps { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { position: relative; }
.step-n {
  display: grid; place-items: center;
  width: 21px; height: 21px; flex: 0 0 21px;
  border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-2);
  border: 1px solid var(--accent-line);
  font-family: var(--mono); font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.rec { display: grid; gap: 2px; }
.rec-row {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.rec-row .chip { flex: 0 0 auto; font-family: var(--mono); }
.rec-val {
  padding: 6px 9px; margin: 5px 0 0;
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-family: var(--mono); font-size: 9px; letter-spacing: .05em;
  color: var(--ink-2); word-break: break-all;
}
.tag {
  font-family: var(--mono);
  font-size: 8px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-tint);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 3px 7px;
}

.bar { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.rule { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* endpoint builder template picker */
.tpl-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.tpl-row { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-bottom: 1px solid var(--line); }
.tpl-row:last-child { border-bottom: 0; }
.tpl-row.on { background: var(--accent-soft, rgba(99, 102, 241, .08)); }
.tpl-row[hidden] { display: none; }
.btn-ghost { background: transparent; border-color: transparent; }
.f-chip[aria-pressed="true"], .g-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.stack { display: grid; gap: 11px; }
.hstack { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.right { margin-left: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

code.code {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; line-height: 1.7;
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px; overflow: auto; max-height: 190px;
  white-space: pre-wrap; word-break: break-all;
}

.theme-btn {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-3);
  box-shadow: var(--shadow-sm);
}
.theme-btn:hover { background: var(--surface-3); color: var(--ink); }
.theme-btn svg { width: 14px; height: 14px; }
html[data-theme="light"] .i-moon { display: block; }
html[data-theme="light"] .i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: none; }
html[data-theme="dark"] .i-sun { display: block; }

/* toast */
#toast-host { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 7px; z-index: 200; }
.toast {
  background: var(--ink); color: var(--canvas);
  border-radius: var(--r-sm); padding: 10px 12px;
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  box-shadow: var(--shadow-lg);
  animation: tin .16s ease-out;
  max-width: 300px;
}
.toast.err { background: var(--bad); color: #fff; }
@keyframes tin { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* dialog */
dialog.modal {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink);
  padding: 0; width: min(620px, calc(100vw - 28px));
  max-height: min(86vh, 760px); overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
dialog.modal .modal-head { position: sticky; top: 0; background: var(--surface); z-index: 1; }
dialog.modal .modal-foot { position: sticky; bottom: 0; background: var(--surface); z-index: 1; }
dialog.modal::backdrop { background: rgba(10, 10, 16, .45); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; gap: 9px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.modal-head .spacer { flex: 1; }
.modal-head .btn-icon svg { width: 15px; height: 15px; }
.modal-body { padding: 15px; }
.modal-foot { display: flex; gap: 7px; justify-content: flex-end; padding: 12px 15px; border-top: 1px solid var(--line); background: var(--surface-2); }
.modal-foot .btn i { font-size: 11px; margin-right: 5px; }
.modal-foot .btn.done { border-color: var(--ok); color: var(--ok); }

/* ---- cookie-script snippet dialog ---- */
.snip { display: grid; gap: 13px; }
.snip-head { display: flex; gap: 10px; align-items: flex-start; }
.snip-ic {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px;
  border-radius: var(--r-sm); background: var(--accent-tint); color: var(--accent);
  border: 1px solid var(--accent-line); font-size: 12px;
}
.snip-head-copy { min-width: 0; }
.snip-title { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.snip-sub { font-family: var(--mono); font-size: 9px; letter-spacing: .11em; color: var(--ink-3); line-height: 1.7; max-width: 52ch; }
.snip-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.snip-chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 4px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; color: var(--ink-2);
  background: var(--surface-3); border: 1px solid var(--line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.snip-chip i { font-size: 9px; color: var(--ink-4); }
.snip-chip.ok { color: var(--ok); background: var(--ok-tint); border-color: transparent; }
.snip-chip.ok i { color: var(--ok); }

.snip-code { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.snip-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-bottom: 1px solid var(--line);
  background: var(--surface-3);
}
.snip-bar .spacer { flex: 1; }
.snip-dots { display: inline-flex; gap: 4px; }
.snip-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); display: block; }
.snip-dots i:first-child { background: #f2777a; }
.snip-dots i:nth-child(2) { background: #f2c14e; }
.snip-dots i:last-child { background: #ff8a9a; }
.snip-file { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--ink-3); }
.snip-copy {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-2); border-radius: 999px;
  font-size: 10.5px; font-weight: 600; padding: 3px 9px; cursor: pointer;
}
.snip-copy:hover { border-color: var(--accent-line); color: var(--accent); }
.snip-copy.done { border-color: var(--ok); color: var(--ok); }
.snip-copy i { font-size: 9px; }

.snip-scroll { display: flex; max-height: 300px; overflow: auto; background: var(--surface); }
.snip-pre {
  margin: 0; padding: 11px 13px; flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 11px; line-height: 1.75;
  color: var(--ink-2); white-space: pre-wrap; word-break: break-word; tab-size: 2;
  counter-reset: snip-line;
}
.snip-pre code { font: inherit; }
.snip-line { display: block; padding-left: 26px; position: relative; }
.snip-line::before {
  counter-increment: snip-line; content: counter(snip-line);
  position: absolute; left: 0; width: 18px; text-align: right;
  color: var(--ink-4); font-size: 10px; user-select: none;
}
.snip-steps {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 6px;
  counter-reset: snip;
}
.snip-steps li {
  counter-increment: snip; display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--ink-3);
}
.snip-steps li::before {
  content: counter(snip); flex: 0 0 17px; width: 17px; height: 17px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-3); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 9.5px; color: var(--ink-4);
}
.snip-steps b { color: var(--ink-2); font-weight: 600; }
.snip-steps kbd {
  font-family: var(--mono); font-size: 9.5px; padding: 1px 4px;
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 4px; background: var(--surface-3); color: var(--ink-2);
}
@media (max-width: 520px) {
  .snip-sub { max-width: none; }
  .snip-scroll { max-height: 44vh; }
  .snip-pre { font-size: 10.5px; padding: 10px 11px; }
  .snip-steps { gap: 8px; }
  .snip-steps li { align-items: flex-start; }
  .snip-steps li::before { margin-top: 1px; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------------- auth ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 940px) { .auth { grid-template-columns: 1fr; } .auth-brandpane { display: none; } }

.auth-brandpane {
  position: relative; overflow: hidden;
  background: #0b0b12;
  color: #f4f4f7;
  padding: 34px;
  display: flex; flex-direction: column;
}
.auth-brandpane::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 12% 0%, rgba(124, 124, 245, .5), transparent 62%),
    radial-gradient(70% 60% at 100% 100%, rgba(154, 91, 245, .38), transparent 58%);
}
.auth-brandpane::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(90% 80% at 30% 20%, #000, transparent 78%);
}
.bp-inner { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.bp-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13.5px; letter-spacing: -.02em; }
.bp-brand .side-mark { width: 24px; height: 24px; flex: 0 0 24px; font-size: 11px; }
.bp-mid { margin-top: auto; padding-bottom: 30px; }
.bp-title {
  font-size: clamp(30px, 3.8vw, 44px); font-weight: 640;
  letter-spacing: -.042em; line-height: 1.03;
  max-width: 13ch;
}
.bp-title em { font-style: normal; color: #a6a6ff; }
.bp-sub { margin-top: 14px; color: #a5a5b8; font-size: 13px; max-width: 34ch; }
.bp-stats { margin-top: 30px; display: flex; gap: 24px; border-top: 1px solid rgba(255,255,255,.11); padding-top: 18px; }
.bp-stat b { display: block; font-size: 21px; font-weight: 640; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bp-stat span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8d8da3; font-weight: 600; }

.auth-pane { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 6vw, 72px); background: var(--canvas); }
.auth-form { width: 100%; max-width: 356px; margin: 0 auto; }
.auth-form .h1 { margin: 12px 0 6px; }
.auth-form .sub { margin-bottom: 20px; }
.auth-brandmark { display: none; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin-bottom: 26px; }
@media (max-width: 940px) { .auth-brandmark { display: inline-flex; } }
.auth-theme { position: fixed; top: 14px; right: 14px; z-index: 50; }

.otp-row { display: flex; gap: 7px; margin: 18px 0; }
.otp-row input {
  flex: 1; min-width: 0; height: 50px;
  text-align: center; font-family: var(--mono); font-size: 18px; font-weight: 600;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); outline: none;
  transition: border-color .13s, box-shadow .13s, background .13s;
}
.otp-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.otp-row input.filled { background: var(--accent-tint); border-color: var(--accent-line); }

/* ---------------- mobile ---------------- */
.side-toggle { display: none; }

@media (max-width: 860px) {
  .side {
    position: fixed; inset: 0 auto 0 0;
    width: 258px; transform: translateX(-100%);
    transition: transform .19s ease;
    box-shadow: var(--shadow-lg);
  }
  .side.open { transform: translateX(0); }
  .side-scrim {
    position: fixed; inset: 0; z-index: 39;
    background: rgba(10, 10, 16, .42);
    opacity: 0; pointer-events: none; transition: opacity .19s;
  }
  .side-scrim.on { opacity: 1; pointer-events: auto; }
  .side-toggle { display: grid; }
  .view { padding: 16px 15px 40px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tbody tr { padding: 11px 13px; border-bottom: 1px solid var(--line); position: relative; display: grid; gap: 2px; }
  .tbl tbody td, .tbl tbody td:first-child { border: 0; padding: 0; }
  .tbl tbody tr:hover { background: var(--surface-2); }
  .row-actions { justify-content: flex-start; margin-top: 5px; gap: 2px; }
  .row-actions .btn { border-color: var(--line); background: var(--surface); }
  .id-cell { position: absolute; top: 11px; right: 12px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 0; }
  .kv dd { border-bottom: 1px solid var(--line); }
  .hero-metric { margin-top: 18px; }
  .otp-row { gap: 5px; }
  .otp-row input { height: 44px; font-size: 16px; }
  .hero { padding: 18px; }
  .hero-metric { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 20px; }
  .hero-num { font-size: 50px; }
  .hero-meta { padding-bottom: 0; }
  .view > .grid + .grid { margin-top: 12px; }
  .head-actions .btn { min-width: 0; }
  .card-head { flex-wrap: wrap; row-gap: 5px; }
  .top { padding: 0 14px; }
  .crumbs { font-size: 9px; overflow: hidden; }
  .chart { gap: 3px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .side, .top, .no-print { display: none; } }

/* ---------- template preview modal ---------- */
body.modal-open{overflow:hidden}
.modal:not(dialog){position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:28px}
.modal[hidden]{display:none}
.viewer-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:28px}
.viewer-modal[hidden]{display:none}
.modal-scrim{position:absolute;inset:0;background:rgba(12,12,18,.55);backdrop-filter:blur(2px)}
.modal-box{position:relative;display:flex;flex-direction:column;width:min(1040px,100%);max-height:calc(100vh - 56px);background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 32px 80px -24px rgba(0,0,0,.5);overflow:hidden}
.modal-head{display:flex;align-items:center;gap:8px;padding:10px 12px 10px 16px;border-bottom:1px solid var(--line);background:var(--card)}
.modal-devices{display:flex;gap:4px;padding:3px;background:var(--bg);border:1px solid var(--line);border-radius:8px}
.modal-devices .btn{border:0;background:transparent}
.modal-devices .btn[aria-pressed=true]{background:var(--card);border:1px solid var(--line2);font-weight:600}
.modal-body{flex:1;min-height:0;overflow:auto;background:#eef0f4;padding:18px;display:flex;justify-content:center}
.modal-body iframe{width:100%;max-width:760px;height:min(74vh,780px);border:0;border-radius:8px;background:#fff;box-shadow:0 8px 30px -12px rgba(0,0,0,.3);transition:max-width .2s}
.modal-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--bg)}
.modal-fields .field{gap:3px}
.modal-fields .label{font-family:var(--mono);font-size:8px;letter-spacing:.18em;text-transform:uppercase;color:var(--ink3)}
.modal-fields .input{font-family:var(--mono);font-size:9px;letter-spacing:.08em;padding:6px 8px}
.modal-foot{display:flex;align-items:center;gap:9px;padding:9px 12px;border-top:1px solid var(--line);background:var(--bg)}
.modal-foot #tplLink{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;text-align:left}
.modal-foot .btn{flex:0 0 auto}
@media (max-width:760px){ .modal-fields{grid-template-columns:repeat(2,minmax(0,1fr))} }
.modal-body[data-device=desktop] iframe{max-width:760px}
.modal-body[data-device=mobile] iframe{max-width:390px}
.tpl-shot{cursor:zoom-in}
@media(max-width:640px){.modal{padding:0}.modal-box{width:100%;max-height:100vh;height:100vh;border-radius:0}.modal-body iframe{height:100%}}


/* ---------- traffic cards ---------- */
.ip-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:10px}
.ip-card{border:1px solid var(--line);border-radius:11px;background:var(--card);padding:12px;display:grid;gap:8px}
.ip-card.is-bot{background:color-mix(in srgb,var(--warn) 4%,var(--card))}
.ip-top{display:flex;align-items:center;gap:8px;min-width:0}
.ip-top .flag{width:24px;height:18px;border-radius:3px}
.ip-addr{font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.05em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ip-agent{font-family:var(--mono);font-size:9px;letter-spacing:.1em;color:var(--ink-2);line-height:1.5;overflow-wrap:anywhere}.ip-meta{display:flex;gap:6px;min-width:0;font-family:var(--mono);font-size:9px;letter-spacing:.08em;color:var(--ink-3)}
.ip-k{font-family:var(--mono);font-size:8px;text-transform:uppercase;letter-spacing:.16em;flex:0 0 26px;padding-top:1px}
.ip-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:7px}
.cc-bar{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit}
.cc-bar .flag{width:20px;height:15px;border-radius:2px}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.tk-card{border:1px solid var(--line);border-radius:11px;background:var(--card);padding:12px;display:grid;gap:7px;min-width:0}
.tk-top{display:flex;align-items:flex-start;gap:8px;min-width:0}
.tk-mail{font-family:var(--mono);font-weight:600;font-size:10px;letter-spacing:.04em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-kv{display:grid;grid-template-columns:56px 1fr;gap:2px 8px;font-size:9.5px;align-items:center;min-width:0}
.tk-kv .k{font-family:var(--mono);font-size:8px;text-transform:uppercase;letter-spacing:.16em;color:var(--ink-3)}
.tk-kv .v{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:9px;letter-spacing:.04em}
.tk-tok{font-family:var(--mono);font-size:8.5px;letter-spacing:.03em;color:var(--ink-3);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:5px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-foot{display:flex;align-items:center;gap:3px;border-top:1px solid var(--line);padding-top:7px}


.sess{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;padding:7px 9px;min-width:0}
.sess.now{border-color:color-mix(in srgb,var(--ok) 40%,var(--line));background:color-mix(in srgb,var(--ok) 5%,var(--card))}

