/* Earnings — light, airy cards like the tlink creator dashboard. Every color is a token below. */

:root {
  color-scheme: light;
  /* Outfit is loaded with digits only (tabular figures); every other character comes from Lexend. */
  --font: "Outfit", "Lexend", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --sidebar-w: 248px;
  --radius: 16px;
  --radius-sm: 10px;

  --page: #f2f5f9;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --tint: #eef5fd;
  --tint-2: #d8eaf9;
  --text: #0a1c2e;
  --heading: #0b3a5f;
  --text-2: #4d5b6b;
  --muted: #677384;
  --border: #e6ebf1;
  --border-strong: #d6dde6;
  --grid: #edf1f5;

  --primary: #1672ba;
  --primary-hover: #135f9a;
  --primary-ink: #ffffff;
  --link: #1672ba;

  --stream: #092f4d;      /* streaming = tlink "Other" */
  --chat: #97c9f1;        /* chat = photos / videos / bundles / subscriptions */
  --stream-ink: #0b3a5f;
  --chat-ink: #2272b5;

  --good: #12b76a;
  --good-ink: #067647;
  --good-bg: #e8f8ef;
  --warn: #f79009;
  --warn-ink: #b54708;
  --warn-bg: #fff6e5;
  --bad: #d92d20;
  --bad-ink: #b42318;
  --bad-bg: #fdefee;

  --heat-base: #ffffff;
  --heat-0: #edf1f6;
  --heat-chat: #b3d7f5;
  --heat-chat-ring: transparent;
  --heat-stream: #092f4d;
  --heat-ink: #ffffff;

  --hero-a: #0f4a78;
  --hero-b: #092f4d;
  /* on the hero card: text, the chat/stream swatches (stream solid, lighter than the card) and deltas */
  --on-hero: #ffffff;
  --on-hero-dim: rgba(255, 255, 255, 0.78);
  --hero-chat: #97c9f1;
  --hero-stream: #3a86d1;
  --hero-up: #7ee2b0;
  --hero-down: #ffb4ab;
  --on-primary-strong: #ffffff; /* marks drawn on the primary color (logo) */
  --badge-ink: #ffffff;         /* text on the red count badge */

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.06), 0 10px 28px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 48px rgba(16, 24, 40, 0.18);
  --scrim: rgba(9, 22, 38, 0.42);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0a111c;
    --surface: #111a28;
    --surface-2: #162132;
    --tint: #16283e;
    --tint-2: #1c3552;
    --text: #e6edf5;
    --heading: #f0f5fa;
    --text-2: #a8b5c5;
    --muted: #8190a8;
    --border: #1f2c3f;
    --border-strong: #2a3a51;
    --grid: #1a2638;
    --primary: #3e9be4;
    --primary-hover: #61ade9;
    --primary-ink: #04121f;
    --link: #7dbdf0;
    --stream: #3a86d1;
    --chat: #a9d3f5;
    --stream-ink: #7db8ec;
    --chat-ink: #a9d3f5;
    --good: #32d583;
    --good-ink: #6ce9a6;
    --good-bg: rgba(50, 213, 131, 0.12);
    --warn: #fdb022;
    --warn-ink: #fec84b;
    --warn-bg: rgba(253, 176, 34, 0.12);
    --bad: #f97066;
    --bad-ink: #fda29b;
    --bad-bg: rgba(249, 112, 102, 0.13);
    --heat-base: #111a28;
    --heat-0: #1a2536;
    --heat-chat: rgba(169, 211, 245, 0.12);
    --heat-chat-ring: rgba(169, 211, 245, 0.6);
    --heat-stream: #6fb4f2;
    --heat-ink: #0a111c;
    --hero-a: #16446c;
    --hero-b: #0e2a45;
    --badge-ink: #2a0906;
    --shadow-sm: none;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --scrim: rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0a111c;
  --surface: #111a28;
  --surface-2: #162132;
  --tint: #16283e;
  --tint-2: #1c3552;
  --text: #e6edf5;
  --heading: #f0f5fa;
  --text-2: #a8b5c5;
  --muted: #8190a8;
  --border: #1f2c3f;
  --border-strong: #2a3a51;
  --grid: #1a2638;
  --primary: #3e9be4;
  --primary-hover: #61ade9;
  --primary-ink: #04121f;
  --link: #7dbdf0;
  --stream: #3a86d1;
  --chat: #a9d3f5;
  --stream-ink: #7db8ec;
  --chat-ink: #a9d3f5;
  --good: #32d583;
  --good-ink: #6ce9a6;
  --good-bg: rgba(50, 213, 131, 0.12);
  --warn: #fdb022;
  --warn-ink: #fec84b;
  --warn-bg: rgba(253, 176, 34, 0.12);
  --bad: #f97066;
  --bad-ink: #fda29b;
  --bad-bg: rgba(249, 112, 102, 0.13);
  --heat-base: #111a28;
  --heat-0: #1a2536;
  --heat-chat: rgba(169, 211, 245, 0.12);
  --heat-chat-ring: rgba(169, 211, 245, 0.6);
  --heat-stream: #6fb4f2;
  --heat-ink: #0a111c;
  --hero-a: #16446c;
  --hero-b: #0e2a45;
  --badge-ink: #2a0906;
  --shadow-sm: none;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --scrim: rgba(0, 0, 0, 0.55);
}

/* ---- base ---- */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--heading); }
a { color: var(--link); }
button { font: inherit; }
.num, .kpi-value, td.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.dim { color: var(--muted); }
.spacer { flex: 1 1 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---- sidebar ---- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 14px 14px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 10px 26px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading);
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark rect { fill: var(--primary); }
.brand-mark path { fill: none; stroke: var(--on-primary-strong); stroke-width: 2.6; stroke-linecap: round; }
.brand .icon-btn { margin-left: auto; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--tint); color: var(--link); }
.nav .badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bad);
  color: var(--badge-ink);
  font-size: 11px;
  font-weight: 600;
}
.scrim { display: none; }
.brand .only-drawer { display: none; }

/* ---- top bar & page head ---- */

.main { margin-left: var(--sidebar-w); min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 32px;
  background: color-mix(in srgb, var(--page) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.topbar .menu-btn { display: none; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--muted);
}
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs span[aria-current] { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { width: 14px; height: 14px; opacity: 0.55; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.page { padding: 4px 32px 64px; max-width: 1480px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 6px 0 22px;
}
.page-title { min-width: 0; }
h1 { font-size: 28px; letter-spacing: -0.015em; line-height: 1.2; }
.page-sub { margin-top: 4px; color: var(--text-2); font-size: 14px; }
.status-line { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
/* "tlink day: 03:00 → 03:00 · last update 15:05 · next 03:05" */
.status-line .tlink-line { margin-top: 2px; }
.live { color: var(--good-ink); }
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--good);
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

/* ---- buttons & inputs ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--surface-2); }
.btn .ico { width: 17px; height: 17px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--tint); }
.btn.small { height: 32px; padding: 0 11px; gap: 6px; font-size: 13px; border-radius: 9px; }
.btn.small .ico { width: 15px; height: 15px; }
.btn.danger:hover { background: var(--bad-bg); color: var(--bad-ink); }
.btn:focus-visible, .icon-btn:focus-visible, .seg button:focus-visible, .nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--tint); color: var(--text); }

input[type="text"], input[type="number"], input[type="date"], input[type="search"], input[type="email"], input[type="password"], input[type="url"], input:not([type]), select, textarea {
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
textarea { height: auto; min-height: 140px; padding: 10px 12px; width: 100%; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 0;
  border-color: var(--primary);
}
input[type="number"] { width: 110px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prefix { color: var(--muted); font-weight: 500; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 11px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input { width: 240px; padding-left: 36px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.row-actions.center { justify-content: center; }

/* segmented control (period, chart size) */
.seg {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.seg button:hover { background: var(--surface-2); color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.seg.small { padding: 3px; border-radius: 10px; box-shadow: none; }
.seg.small button { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }

/* ---- banner, cards, grids ---- */

.banner {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--border));
  border-radius: 14px;
  background: var(--warn-bg);
  color: var(--text);
  font-size: 14px;
}
.banner.show { display: flex; }
.banner > .ico { color: var(--warn-ink); }
.banners .banner { margin-bottom: 12px; }
.banners:not(:empty) { margin-bottom: 8px; }
.banner.bad { border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); background: var(--bad-bg); }
.banner.bad > .ico { color: var(--bad-ink); }

.card {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 18px 20px 14px;
}
.card-head h2 { font-size: 16px; }
.card-sub { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.card-body { padding: 4px 20px 20px; }
.block { margin-bottom: 20px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.block-head h2 { font-size: 18px; }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--link); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.link .ico { width: 16px; height: 16px; }
.link:hover { text-decoration: underline; }

.grid { display: grid; gap: 16px; margin-bottom: 20px; }
.grid > .card { margin-bottom: 0; }
.grid.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.studios { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid.two.wide-first { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.col-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col-stack > .card { margin-bottom: 0; }

.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty.small { padding: 22px 20px; font-size: 13.5px; }
.empty-card { padding: 48px 24px; text-align: center; }
.empty-card h2 { font-size: 20px; margin-bottom: 8px; }
.empty-card p { max-width: 520px; margin: 0 auto 18px; color: var(--text-2); }
.empty-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 16px; background: var(--tint); color: var(--primary); }
.empty-ico .ico { width: 28px; height: 28px; }

/* ---- KPI tiles ---- */

.kpi {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.kpi-label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.kpi-label[title] { cursor: help; }
.kpi-value {
  margin-top: 6px;
  color: var(--heading);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.kpi-of { color: var(--muted); font-size: 0.62em; font-weight: 500; }
.kpi-note { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.kpi .inline-form { margin-top: 10px; }
.kpi .inline-form input { width: 96px; height: 32px; }
.kpi.k-lost .kpi-value { color: var(--warn-ink); }
.grid.kpi-grid .kpi.span2 { grid-column: span 2; }
.kpi.k-chat, .kpi.k-sexting { box-shadow: inset 4px 0 0 var(--chat), var(--shadow); }
.kpi.k-stream, .kpi.k-live { box-shadow: inset 4px 0 0 var(--stream), var(--shadow); }
.kpi.hero {
  border-color: transparent;
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
  color: var(--on-hero);
}
.kpi.hero .kpi-label, .kpi.hero .split, .kpi.hero .dim, .kpi.hero .kpi-note { color: var(--on-hero-dim); }
.kpi.hero .kpi-value { color: var(--on-hero); }
.kpi.hero .sw.stream, .kpi.hero .sw.live { background: var(--hero-stream); box-shadow: 0 0 0 1px var(--on-hero-dim); }
.kpi.hero .sw.chat, .kpi.hero .sw.sexting { background: var(--hero-chat); }
.kpi.hero .delta.up { color: var(--hero-up); }
.kpi.hero .delta.down { color: var(--hero-down); }

.split { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; color: var(--text-2); font-size: 12.5px; }
/* A day tlink hasn't published yet, in place of its number. */
.kpi-wait { color: var(--muted); font-size: 0.72em; font-weight: 500; letter-spacing: 0; }
.kpi.hero .kpi-wait { color: var(--on-hero-dim); }
/* A day's two halves, one under the other: "03:00–15:00: $X", "15:00–03:00: $Y". */
.halves { display: grid; gap: 1px; margin-top: 6px; color: var(--text-2); font-size: 12.5px; }
.halves b { color: var(--heading); font-weight: 600; }
.kpi.hero .halves, .kpi.hero .halves b { color: var(--on-hero-dim); }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
/* a studio's split: sexting / live (the colors of chat / stream) */
.sw.chat, .sw.sexting { background: var(--chat); }
.sw.stream, .sw.live { background: var(--stream); }
.delta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-top: 8px; font-size: 12.5px; }
.delta .ico { width: 14px; height: 14px; }
.delta.up { color: var(--good-ink); }
.delta.down { color: var(--bad-ink); }
.delta.flat { color: var(--muted); }

.rate { display: inline-flex; align-items: center; gap: 8px; }
.rate-bar { display: inline-block; width: 56px; height: 6px; overflow: hidden; border-radius: 99px; background: var(--grid); }
.rate-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.rate-bar.wide { display: block; width: 100%; margin-top: 8px; }

/* ---- charts ---- */

.chart {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: var(--h, 220px) auto;
  column-gap: 10px;
}
.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.chart-y span { height: 0; line-height: 0; }
.chart-plot { position: relative; }
.chart-grid i { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--grid); }
.chart-grid i:nth-child(1) { top: 0; }
.chart-grid i:nth-child(2) { top: 25%; }
.chart-grid i:nth-child(3) { top: 50%; }
.chart-grid i:nth-child(4) { top: 75%; }
.chart-grid i:nth-child(5) { top: 100%; border-top-style: solid; border-color: var(--border-strong); }
.chart-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 6px; }
.col {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 6px 6px 0 0;
}
.col:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.stack {
  display: flex;
  flex-direction: column;
  width: min(100%, 30px);
  overflow: hidden;
  border-radius: 5px 5px 2px 2px;
}
.bs { display: block; flex: none; }
.bs.chat, .bs.sexting { background: var(--chat); }
.bs.stream, .bs.live { background: var(--stream); }
.bs.gross { background: var(--primary); } /* a studio's chart without the split: gross only */
.chart-x {
  grid-column: 2;
  display: flex;
  gap: 6px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.chart-x span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; }
.chart.dense .chart-cols, .chart.dense .chart-x { gap: 1px; }
.chart.dense .stack { border-radius: 2px 2px 0 0; }
.chart-x .xw { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: 12.5px; }

.overview { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; padding: 6px 20px 20px; }
.breakdown { display: flex; flex-direction: column; gap: 4px; padding-left: 24px; border-left: 1px solid var(--border); }
.bd-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.bd-row .sw { width: 12px; height: 12px; margin: 0; }
.bd-text { flex: 1; min-width: 0; font-weight: 500; }
.bd-text .dim { font-size: 12px; font-weight: 400; }
.bd-row b { font-weight: 600; color: var(--heading); }
.bd-total { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); font-weight: 600; }
.bd-total b { font-size: 18px; color: var(--heading); }
.bd-net { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; }

.spark { display: block; width: 100%; height: 34px; }
.spark-line { fill: none; stroke: var(--primary); stroke-width: 1.75; stroke-linejoin: round; }
.spark-area { fill: color-mix(in srgb, var(--primary) 12%, transparent); }

/* ---- studio cards ---- */

.studio-card {
  display: block;
  margin: 0;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.studio-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--tint-2); }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-name { overflow: hidden; color: var(--heading); font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pill { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--tint); color: var(--link); font-size: 12px; font-weight: 500; }
.sc-value { margin-top: 12px; color: var(--heading); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.sc-rate { display: flex; justify-content: space-between; margin-top: 14px; color: var(--text-2); font-size: 12.5px; }
.sc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 12.5px; }
.sc-foot .lost { font-size: 14px; font-weight: 600; }
.sc-spark { width: 120px; flex: none; }
.lost { color: var(--warn-ink); }

/* ---- lists ---- */

.list { padding-bottom: 6px; }
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-top: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}
a.list-row:hover { background: var(--tint); }
.lr-main { flex: 1; min-width: 0; }
.lr-main .dim { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-title { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.list-row > b { flex: none; font-weight: 600; }
.lr-nums { display: flex; gap: 22px; text-align: right; }
.lr-nums > div { display: flex; flex-direction: column; font-size: 12px; }
.lr-nums b { color: var(--heading); font-size: 14px; font-weight: 600; }
.rank {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}
.mini-split { max-width: 220px; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: var(--chat); }
.mini-split i { display: block; height: 100%; background: var(--stream); }

/* ---- tables ---- */

.table-wrap {
  max-height: min(78vh, 980px);
  overflow: auto;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overscroll-behavior-x: contain;
}
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; white-space: nowrap; }
table.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
table.data .num { text-align: right; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--link); }
.sort-ind { display: inline-block; width: 12px; margin-left: 3px; font-size: 9px; }
table.data tbody td { border-bottom: 1px solid var(--grid); background: var(--surface); }
table.data tbody tr[data-href] { cursor: pointer; }
table.data tbody tr:hover td { background: var(--tint); }
table.data tbody tr:focus-visible td { background: var(--tint); outline: none; }
table.data .sticky { position: sticky; left: 0; z-index: 1; }
table.data thead .sticky { z-index: 3; }
table.data tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 1;
  border-top: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--heading);
  font-weight: 600;
}
table.data tfoot td.sticky { z-index: 2; }
table.data td.strong { color: var(--heading); font-weight: 600; }
table.data td.c-chat, table.data td.c-sexting { color: var(--chat-ink); }
table.data td.c-stream, table.data td.c-live { color: var(--stream-ink); }
table.data td.actions { padding-top: 6px; padding-bottom: 6px; }
.row-actions.nowrap { flex-wrap: nowrap; justify-content: flex-start; }
.small { font-size: 12px; }
td .clip { display: block; max-width: 220px; margin-top: 3px; }
.empty-row td { padding: 28px 14px !important; color: var(--muted); text-align: center; }
.cell-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
a.cell-name { color: inherit; text-decoration: none; }
a.cell-name:hover, a.cell-name:focus-visible { color: var(--link); text-decoration: underline; }
a.cell-name:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.warn { display: inline-flex; color: var(--warn-ink); cursor: help; }
.warn .ico { width: 15px; height: 15px; }
.err { color: var(--bad-ink); font-size: 12.5px; }
.clip { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.yes { color: var(--good-ink); font-weight: 600; }
.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  vertical-align: 1px;
}

/* ---- chips ---- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.chip.st-live, .chip.acc-ok { background: var(--good-bg); color: var(--good-ink); }
.chip.st-live .dot { animation: pulse 1.2s infinite; }
.chip.st-ok { background: var(--tint); color: var(--link); }
.chip.st-new { background: var(--tint-2); color: var(--link); }
.chip.st-p1 { background: var(--warn-bg); color: var(--warn-ink); }
.chip.st-p2 { background: color-mix(in srgb, var(--warn) 22%, var(--surface)); color: var(--warn-ink); }
.chip.st-off, .chip.acc-error { background: var(--bad-bg); color: var(--bad-ink); }
.chip.acc-needs_login { background: var(--warn-bg); color: var(--warn-ink); }
.chip.acc-logging_in, .chip.acc-reading, .chip.acc-queued { background: var(--tint); color: var(--link); }
.chip.acc-logging_in .dot, .chip.acc-reading .dot, .chip.acc-queued .dot { animation: pulse 1s infinite; }
.chip.role-owner { background: var(--tint-2); color: var(--link); }
.chip.role-admin { background: var(--tint); color: var(--link); }
.chip.role-studio { background: var(--good-bg); color: var(--good-ink); }
.chip.role-none { color: var(--muted); }
.chip.st-none, .chip.acc-new { color: var(--muted); }
.chip.acc-delayed { background: var(--surface-2); color: var(--text-2); } /* a studio's "Numbers delayed": neutral */

/* ---- heatmap & calendar ---- */

.heat-scroll { overflow-x: auto; padding-bottom: 6px; overscroll-behavior-x: contain; }
/* Cells grow with the card (up to --cell-max) and scroll sideways only when they'd get smaller than --cell. */
.heat { --cell: 18px; --cell-max: 30px; --name: 170px; display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: max-content; }
.heat-row { display: grid; grid-template-columns: var(--name) repeat(var(--cols), minmax(var(--cell), var(--cell-max))); gap: 3px; align-items: center; }
.heat-row > i { display: block; width: 100%; aspect-ratio: 1; border-radius: 4px; }
.heat-row > i:hover { outline: 2px solid var(--primary); outline-offset: 1px; }
.heat-head span:not(.heat-name) { color: var(--muted); font-size: 10px; text-align: center; white-space: nowrap; overflow: visible; }
.heat-head .m1 { color: var(--text); font-weight: 600; }
.heat-name {
  position: sticky;
  left: 0;
  z-index: 1;
  overflow: hidden;
  padding-right: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.heat-name:hover { color: var(--link); }
.heat-group {
  position: sticky;
  left: 0;
  width: max-content;
  padding: 12px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.heat-group a { color: inherit; text-decoration: none; }
.heat-group a:hover { color: var(--link); }
.h0 { background: var(--heat-0); }
.hc { background: var(--heat-chat); box-shadow: inset 0 0 0 1.5px var(--heat-chat-ring); }
.h1 { background: color-mix(in srgb, var(--heat-stream) 32%, var(--heat-base)); }
.h2 { background: color-mix(in srgb, var(--heat-stream) 52%, var(--heat-base)); }
.h3 { background: color-mix(in srgb, var(--heat-stream) 70%, var(--heat-base)); }
.h4 { background: color-mix(in srgb, var(--heat-stream) 85%, var(--heat-base)); }
.h5 { background: var(--heat-stream); }
.hp { background: transparent; box-shadow: inset 0 0 0 1px var(--grid); }
.heat-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; color: var(--text-2); font-size: 12px; }
.heat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.heat-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }

.cals { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.cal-head b { color: var(--heading); font-weight: 600; text-transform: capitalize; }
.cal-head .dim { font-size: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { color: var(--muted); font-size: 11px; text-align: center; }
.cal-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.cal-day.h3, .cal-day.h4, .cal-day.h5 { color: var(--heat-ink); font-weight: 600; }
.cal-day.hp { color: var(--muted); opacity: 0.6; }
.cal-day:hover { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ---- model page ---- */

.profile-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px; }
.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--hero-b));
  color: var(--on-hero);
  font-size: 19px;
  font-weight: 600;
}
.profile-id { min-width: 0; }
.profile-id h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; letter-spacing: -0.01em; }
.profile-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 24px; padding: 0 20px 18px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.field input { width: 200px; }
.profile-accounts { padding: 10px 20px; border-top: 1px solid var(--border); }
.acc-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 6px 0; }
.acc-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; font-size: 13px; }
.profile-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--border); }
.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mini { padding: 16px 20px; border-left: 1px solid var(--border); min-width: 0; }
.mini:first-child { border-left: 0; }
.mini-label { color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.mini-value { margin: 4px 0 2px; color: var(--heading); font-size: 19px; font-weight: 600; }
.mini .dim { font-size: 12px; }
.minis.days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.minis.days .mini-value .kpi-wait { font-size: 15px; }
.minis.days .halves { margin: 2px 0 4px; }

/* ---- settings ---- */

.setting-form label { display: block; margin-bottom: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.setting-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--border); }
.setting-row:first-child { border-top: 0; }
.setting-row label { font-weight: 500; }
.defs dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 20px; margin: 0 0 12px; }
.defs dt { color: var(--heading); font-weight: 600; }
.defs dd { margin: 0; color: var(--text-2); }

/* ---- dialogs, tooltip, toast ---- */

dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: var(--scrim); }
.dialog-body { padding: 22px 24px; }
.dialog-body h2 { margin-bottom: 4px; font-size: 18px; }
.dialog-body p { margin: 6px 0 14px; color: var(--text-2); font-size: 14px; }
label.field { display: block; margin-bottom: 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.login-steps { display: none; }
.login-steps.show { display: block; }
.login-state {
  min-height: 22px;
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 13.5px;
}
.login-state:empty { display: none; }
.login-state[data-tone] { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.login-state[data-tone="ok"] { background: var(--good-bg); color: var(--good-ink); }
.login-state[data-tone="warn"] { background: var(--warn-bg); color: var(--warn-ink); }
.login-state[data-tone="bad"] { background: var(--bad-bg); color: var(--bad-ink); }
.dialog-actions .spacer { flex: 1 1 auto; }
.dialog-error { margin: 4px 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad-ink); font-size: 13.5px; }
.dialog-body .field > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.dialog-body .field input, .dialog-body .field select { width: 100%; }
.dialog-body .hint { margin: -4px 0 12px; color: var(--muted); font-size: 12.5px; }

/* ---- "Log in new model": placeholders, the result step ---- */

.chip.acc-pending { background: var(--warn-bg); color: var(--warn-ink); }
.cell-chip { margin-top: 3px; }
.cell-chip .chip { padding: 1px 8px 1px 6px; font-size: 11px; }
.heat-name.pending { color: var(--muted); font-style: italic; }
.nl-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
}
.nl-box[data-tone="ok"] { background: var(--good-bg); }
.nl-box[data-tone="warn"] { background: var(--warn-bg); }
.nl-box[data-tone="bad"] { background: var(--bad-bg); }
.nl-ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface); color: var(--link); }
.nl-box[data-tone="ok"] .nl-ico { color: var(--good-ink); }
.nl-box[data-tone="warn"] .nl-ico { color: var(--warn-ink); }
.nl-box[data-tone="bad"] .nl-ico { color: var(--bad-ink); }
.nl-ico .ico { width: 17px; height: 17px; }
.nl-text { min-width: 0; }
.nl-text b { display: block; color: var(--heading); font-size: 15px; overflow-wrap: anywhere; }
.dialog-body .nl-text p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }
.nl-link { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; color: var(--link); font-size: 13.5px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.nl-link:hover, .nl-link:focus-visible { text-decoration: underline; }
.nl-link .ico { width: 14px; height: 14px; flex: none; }
.spinner {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--tint-2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.nl-chain-head { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.nl-chain { max-height: 216px; margin: 0 0 12px; padding: 0; overflow: auto; border: 1px solid var(--border); border-radius: 10px; list-style: none; }
.nl-chain li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; font-size: 13.5px; }
.nl-chain li + li { border-top: 1px solid var(--border); }
.nl-chain li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-chain a { color: var(--link); text-decoration: none; }
.nl-chain a:hover, .nl-chain a:focus-visible { text-decoration: underline; }
.chip.nl-ok { background: var(--good-bg); color: var(--good-ink); }
.chip.nl-warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.nl-bad { background: var(--bad-bg); color: var(--bad-ink); }
.chip.nl-busy { background: var(--tint); color: var(--link); }
.chip.nl-busy .dot { animation: pulse 1s infinite; }
.nl-fix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nl-fix .btn.ghost.danger:hover { background: var(--surface); }
/* A long studio name wraps inside its button instead of widening the dialog. */
#nl-actions .btn { height: auto; min-height: 38px; white-space: normal; text-align: left; }
@media (max-width: 640px) {
  #nl-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
  #nl-actions .btn.primary { flex-basis: 100%; order: -1; }
}

.tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  min-width: 190px;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
}
.tooltip.show { opacity: 1; }
.tt-title { margin-bottom: 6px; color: var(--heading); font-weight: 600; }
.tt-row { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.tt-total { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--border); }
.tt-foot { margin-top: 6px; color: var(--muted); font-size: 12px; }
.tt-foot.on { color: var(--good-ink); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 70;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--heading);
  color: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- responsive ---- */

@media (max-width: 1200px) {
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .grid.kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  /* Closed, the drawer is also hidden from the keyboard (visibility flips after the slide-out). */
  .sidebar {
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.22s ease, visibility 0s 0.22s;
    box-shadow: var(--shadow-lg);
  }
  .nav-open .sidebar { visibility: visible; transform: none; transition: transform 0.22s ease; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: var(--scrim); }
  .brand .only-drawer { display: inline-grid; }
  .main { margin-left: 0; }
  .topbar .menu-btn { display: inline-grid; margin-left: -8px; }
  .topbar { padding: 0 20px; }
  .page { padding: 4px 20px 48px; }
}

@media (max-width: 900px) {
  .grid.two, .grid.two.wide-first { grid-template-columns: minmax(0, 1fr); }
  .overview { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .breakdown { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini:nth-child(3) { border-left: 0; }
  .mini:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar { height: 56px; gap: 8px; padding: 0 16px; }
  .top-actions { gap: 4px; }
  .top-actions .btn { width: 38px; padding: 0; }
  .top-actions .lbl { display: none; }
  .crumbs { font-size: 13px; }
  .page { padding: 2px 16px 40px; }
  .page-head { margin-bottom: 16px; }
  h1 { font-size: 23px; }
  .page-head .seg.period { width: 100%; flex-wrap: wrap; }
  .grid { gap: 12px; }
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px 14px; }
  .kpi-value { font-size: 20px; }
  .card-head { padding: 16px 16px 12px; }
  .card-body { padding: 4px 16px 16px; }
  .overview { padding: 4px 16px 16px; }
  .list-row { padding: 11px 16px; }
  .lr-nums { gap: 12px; }
  .search, .search input { width: 100%; }
  .toolbar { width: 100%; }
  .toolbar .search { flex: 1 1 100%; }
  .chart-cols, .chart-x { gap: 3px; }
  .chart-x .xw { visibility: visible; }
  .chart-x .xn { visibility: hidden; }
  .heat { --cell: 15px; --name: 112px; gap: 2px; }
  .heat-row { gap: 2px; }
  .profile-top { padding: 16px; }
  .profile-fields { padding: 0 16px 16px; grid-template-columns: minmax(0, 1fr); }
  .field input { width: 100%; flex: 1 1 160px; }
  .profile-accounts, .profile-foot { padding-left: 16px; padding-right: 16px; }
  .defs dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .defs dd { margin-bottom: 10px; }
  .banner .spacer { display: none; }
  .sc-spark { width: 96px; }
}
.page-actions { margin: -4px 0 12px; }

/* ---- signed-in user (bottom of the menu) ---- */

.side-foot { margin-top: auto; padding-top: 16px; }
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px 4px 10px;
  border-top: 1px solid var(--border);
}
.side-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: var(--tint);
  color: var(--link);
  font-weight: 600;
}
.side-user-text { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.35; }
.side-email { overflow: hidden; color: var(--text); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.side-user .icon-btn { width: 34px; height: 34px; }
.mock-note {
  margin: 0 6px 10px;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
.queue-note { color: var(--link); }
.queue-note .live-dot { background: var(--primary); }

/* ---- tabs (Settings: General / Users) ---- */

.tabs {
  display: flex;
  gap: 4px;
  margin: -6px 0 18px;
  border-bottom: 1px solid var(--border);
}
.tabs a {
  margin-bottom: -1px;
  padding: 9px 14px;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-selected="true"] { border-bottom-color: var(--primary); color: var(--link); }
.tabs a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ---- read-only fields (a studio user's model page) ---- */

.field-label { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.field-value { min-height: 36px; display: flex; align-items: center; color: var(--heading); font-weight: 500; }

/* ---- sign-in and the other screens before the app ---- */

.auth { display: none; }
body.auth-on .auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  background: radial-gradient(900px 520px at 50% -12%, var(--tint-2), transparent 70%), var(--page);
}
body.auth-on .sidebar, body.auth-on .scrim, body.auth-on .main { display: none; }
.auth-card {
  width: min(420px, 100%);
  padding: 26px 28px 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.auth-brand { padding: 0; font-size: 19px; }
.auth-card h1 { font-size: 24px; outline: none; }
.auth-card .empty-ico { margin-bottom: 12px; }
.auth-sub { margin: 6px 0 18px; color: var(--text-2); font-size: 14px; }
.auth-form .field { display: block; margin-bottom: 14px; }
.auth-form .field > span { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.auth-form input { width: 100%; height: 42px; font-size: 15px; }
.btn.wide { width: 100%; height: 44px; margin-top: 4px; font-size: 15px; }
.btn:disabled { opacity: 0.65; cursor: default; }
.auth-links { display: flex; justify-content: center; margin-top: 16px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.link-btn {
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--link);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.auth-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
}
.auth-msg .ico { width: 18px; height: 18px; margin-top: 1px; }
.auth-msg.err { background: var(--bad-bg); color: var(--bad-ink); }
.auth-msg.ok { background: var(--good-bg); color: var(--good-ink); }

@media (max-width: 640px) {
  .auth-card { padding: 22px 18px 22px; border-radius: 16px; }
  .tabs { margin-top: -2px; }
}

/* A model's today / yesterday on a phone: one under the other. */
@media (max-width: 480px) {
  .minis.days { grid-template-columns: minmax(0, 1fr); }
  .minis.days .mini + .mini { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---- studio earnings: Settings › Studio access, the warning in "Log in new model" ---- */

.access-row { flex-wrap: nowrap; }
.access-text { min-width: 0; }
.access-text .small { margin-top: 2px; font-size: 12.5px; overflow-wrap: anywhere; }
.studio-access .hint { margin-top: 12px; }
.nl-studio-warn { margin: -4px 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; }

/* ---- "Log in new model": is this login for one of the studio's applications? (an answer is required) ---- */
.nl-apps { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.nl-apps legend { margin-bottom: 6px; padding: 0; color: var(--heading); font-size: 14px; font-weight: 600; }
.nl-picks { display: flex; flex-direction: column; gap: 2px; max-height: 244px; padding: 4px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.nl-pick { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.nl-pick:hover { background: var(--surface-2); }
.nl-pick input { flex: none; margin: 3px 0 0; accent-color: var(--primary); }
.nl-pick-text { display: flex; flex-direction: column; min-width: 0; }
.nl-pick-name { color: var(--heading); overflow-wrap: anywhere; }
.nl-pick-note { color: var(--muted); font-size: 12px; }
.nl-pick-note.warn { color: var(--warn-ink); }
.nl-pick.disabled { cursor: not-allowed; }
.nl-pick.disabled:hover { background: none; }
.nl-pick.disabled .nl-pick-name { color: var(--muted); }
.nl-pick.none { margin-top: 2px; padding-top: 9px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; }
.dialog-body .nl-apps .hint { margin: 6px 0 0; }
#nl-apps-wait { margin: 0 0 12px; }

/* ---- periods (Custom…), the amounts line ---- */

.page-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; max-width: 100%; }
/* "All amounts are gross: …" (a studio's: net) under the status line: visible text, never a tooltip (phones don't show those). */
.gross-note { max-width: 72ch; margin-top: 6px; color: var(--text-2); font-size: 12.5px; }

/* The Custom dialog: the four pay periods (2 × 2), From and To side by side; one column on phones. */
.pd-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.pd-half {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.pd-half:hover:not([disabled]) { background: var(--tint); }
.pd-half:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pd-half[aria-pressed="true"] { border-color: var(--primary); background: var(--tint); }
.pd-half[disabled] { color: var(--muted); cursor: not-allowed; opacity: 0.75; }
.pd-note { color: var(--muted); font-size: 12px; font-weight: 400; }
.pd-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.pd-dates .field input { min-height: 40px; }
.dialog-body .pd-range { margin: -2px 0 6px; color: var(--heading); font-size: 14px; font-weight: 600; }

/* Home: the period's Income streams, Live and Sexting (staff; a studio with its split). */
.streams-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 2px 20px 18px; }
.share-bar { height: 10px; overflow: hidden; border-radius: 99px; background: var(--chat); }
.share-bar i { display: block; height: 100%; background: var(--stream); }
.streams-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 0 28px; align-items: center; }
.streams-list .bd-row { min-width: 0; }
.streams-list .bd-total { margin-top: 0; padding-top: 0; border-top: 0; gap: 14px; }

@media (max-width: 900px) {
  .streams-list { grid-template-columns: minmax(0, 1fr); }
  .streams-list .bd-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .page-tools { width: 100%; }
  .page-tools .seg { width: 100%; }
  .pd-halves { grid-template-columns: minmax(0, 1fr); }
  .pd-dates { grid-template-columns: minmax(0, 1fr); }
  .streams-body { padding: 2px 16px 16px; }
}

/* ---- Home: "Today on Telescope", Telescope's live board (owners and admins, build J: views/telescope.js) ---- */
.tb-card { padding: 16px 20px 14px; }
.tb-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 13.5px; }
.tb-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.tb-title { min-width: 0; }
.tb-title h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 16px; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-actions .btn[aria-disabled="true"] { cursor: progress; opacity: 0.8; }
.chip.tb-live { background: var(--good-bg); color: var(--good-ink); }
.chip.tb-live .dot { animation: pulse 1.2s infinite; }
.chip.tb-stale { background: var(--warn-bg); color: var(--warn-ink); }
.chip.tb-stale .ico { width: 13px; height: 13px; }
.chip.tb-day { background: var(--tint); color: var(--link); }
.tb-figs { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 14px; }
.tb-fig { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; }
.tb-fig b { color: var(--heading); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.tb-fig b .dim { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.tb-gross b { font-size: 26px; }
.tb-note { margin: 10px 0 0; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.tb-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.tb-foot .tb-note { flex: 1 1 320px; }
.tb-toggle .ico { width: 15px; height: 15px; transition: transform 0.15s; }
.tb-toggle[aria-expanded="true"] .ico { transform: rotate(90deg); }
.tb-studios { margin-top: 10px; border-top: 1px solid var(--border); }
.tb-studios[hidden] { display: none; }
.tb-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.tb-name { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--text); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tb-row b { flex: none; color: var(--heading); font-weight: 600; }
.tb-row .dim { flex: none; font-size: 12.5px; }
/* "Possibly ours" (build J2): one of our names under another Telescope username, for the team's "Yes, ours" / "Not ours" */
.tb-possible { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
.tb-ptoggle { color: var(--warn-ink); }
.tb-plist[hidden] { display: none; }
.tb-plist .tb-note { margin: 6px 0 4px; }
.tb-prow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.tb-pwho { display: flex; flex: 1 1 260px; flex-direction: column; gap: 2px; min-width: 0; }
.tb-pwho .dim { font-size: 12.5px; overflow-wrap: anywhere; }
.tb-pacts { display: flex; flex: none; gap: 6px; }
.tb-pacts .btn[aria-disabled="true"] { cursor: progress; opacity: 0.7; }
@media (max-width: 640px) {
  .tb-card { padding: 14px 16px 12px; }
  .tb-pacts { width: 100%; }
  .tb-pacts .btn { flex: 1 1 auto; }
  .tb-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .tb-gross { grid-column: 1 / -1; }
  .tb-fig b { font-size: 18px; }
  .tb-gross b { font-size: 24px; }
  .tb-actions { width: 100%; }
  .tb-actions .btn { flex: 1 1 auto; }
  .tb-foot .tb-note { flex-basis: 100%; }
}

/* ---- What's new (build S: views/updates.js): the numbered posts, one post, the team's editor ---- */
/* The menu's dot while a post is unread (no number: opening the page reads them all). */
.nav .nav-dot { width: 8px; height: 8px; margin-left: auto; flex: none; border-radius: 50%; background: var(--primary); }
.upd-toolbar { justify-content: flex-end; max-width: 860px; }
.upd-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.upd-row { margin: 0; padding: 18px 20px 16px; }
.upd-row.upd-is-draft { border-style: dashed; }
.upd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.upd-ver { display: inline-grid; place-items: center; min-width: 40px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--tint); color: var(--link); font-weight: 600; font-size: 12.5px; }
.chip.upd-chip-draft { background: var(--warn-bg); color: var(--warn-ink); }
.chip.upd-chip-team { background: var(--tint-2); color: var(--link); }
.chip.upd-chip-new { background: var(--good-bg); color: var(--good-ink); }
.upd-title { margin: 10px 0 4px; font-size: 17px; line-height: 1.35; }
.upd-title a { color: var(--heading); text-decoration: none; }
.upd-title a:hover { text-decoration: underline; }
.upd-summary { margin: 0 0 12px; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.upd-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* One post: its number and day, the language switch and Edit, the text, the posts next to it. */
.upd-post-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; max-width: 860px; margin-bottom: 14px; }
.upd-post-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.upd-post { max-width: 860px; }
.upd-body { padding: 22px 24px 10px; overflow-wrap: anywhere; }
.upd-heading { margin: 0 0 12px; font-size: 21px; line-height: 1.3; }
.upd-intro { margin: 0 0 14px; color: var(--text); font-size: 15px; line-height: 1.6; }
.upd-section { margin: 18px 0 14px; }
.upd-section h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--heading); font-size: 16px; }
.upd-section.upd-team { padding: 12px 14px 4px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: var(--radius-sm); background: var(--surface-2); }
.upd-items { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 14.5px; line-height: 1.6; }
.upd-items b { color: var(--heading); font-weight: 600; }
.upd-nav { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; max-width: 860px; margin-top: 4px; }
.upd-near { display: flex; flex: 1 1 220px; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 13.5px; text-decoration: none; }
.upd-near:hover { background: var(--tint); }
.upd-near b { color: var(--link); }
/* The editor and its live preview side by side (one column on a narrower screen). */
.upd-editor-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.upd-editor { margin: 0; padding: 18px 20px; }
.upd-preview-card { position: sticky; top: 12px; margin: 0; }
.upd-preview { padding: 0 16px 16px; }
.upd-preview .upd-post { box-shadow: none; }
.upd-preview-lang { margin: 6px 0 8px; }
.upd-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 14px; }
.upd-editor select { width: 100%; height: 44px; font-size: 15px; }
.upd-editor textarea { font-size: 14px; }
.upd-lang-block { margin: 6px 0 12px; padding: 12px 14px 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 0; }
.upd-lang-block legend { padding: 0 6px; color: var(--heading); font-weight: 600; font-size: 14px; }
.upd-help { margin: 4px 0 12px; font-size: 13px; }
.upd-help summary { cursor: pointer; color: var(--link); font-weight: 500; }
.upd-help-table { margin: 8px 0 4px; border-collapse: collapse; }
.upd-help-table td { padding: 4px 12px 4px 0; vertical-align: top; color: var(--text-2); }
.upd-help-table code { font-family: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--heading); white-space: nowrap; }
.upd-problems { margin: 4px 0 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; }
.upd-problems ul { margin: 4px 0 0; padding-left: 18px; color: var(--bad-ink); }
.upd-problems-head { margin: 0; color: var(--bad-ink); font-weight: 600; }
.upd-ok { margin: 0; color: var(--good-ink); }
.upd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.upd-publish { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.upd-check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
/* The bell: where an announcement's click goes. */
.bp-more { color: var(--link); font-weight: 500; }
@media (max-width: 1100px) {
  .upd-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .upd-preview-card { position: static; }
}
@media (max-width: 640px) {
  .upd-row { padding: 14px 16px; }
  .upd-body { padding: 16px 16px 6px; }
  .upd-heading { font-size: 19px; }
  .upd-fields { grid-template-columns: minmax(0, 1fr); }
  .upd-editor { padding: 14px 14px; }
  .upd-lang-block { padding: 10px 10px 2px; }
  .upd-actions .btn { flex: 1 1 auto; }
  .upd-publish { width: 100%; }
  .upd-publish .btn { flex: 1 1 auto; }
}

/* ---- Team activity (owners, build T): the admins' time on Livescope and what they did ---- */

.side-note { margin-top: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: 12px; line-height: 1.4; }
.team-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.team-how { max-width: 90ch; margin: 0 0 14px; }
.team-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.team-who h2 { overflow-wrap: anywhere; }
.team-online { background: var(--good-bg); color: var(--good-ink); }
.team-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.team-kpi { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.team-kpi-label { color: var(--text-2); font-size: 12px; }
.team-kpi-value { margin-top: 2px; font-size: 18px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.team-strips { display: grid; gap: 4px; margin-bottom: 16px; max-height: 420px; overflow-y: auto; }
.team-strip-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 82px; align-items: center; gap: 8px; }
.team-strip-day { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.team-strip-total { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.team-strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
.team-cell { height: 16px; border-radius: 3px; background: var(--grid); }
.team-cell.s1 { background: var(--tint-2); }
.team-cell.s2 { background: var(--chat); }
.team-cell.s3 { background: var(--primary); }
.team-cell.s4 { background: var(--stream); }
.team-axis .team-tick { font-size: 10px; color: var(--muted); }
.team-sub { margin: 4px 0 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.team-where { margin-bottom: 12px; }
.team-areas, .team-kinds { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; font-size: 13px; }
.team-kinds { gap: 6px; }
.team-list { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.team-list > summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.team-sessions, .team-actions { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.team-session { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.team-session-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.team-session-acts { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.team-action { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
.team-action-at { color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 92px; }
.team-overview .team-ov-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1.4fr); gap: 10px; align-items: center; padding: 4px 0; }
.team-ov-name { overflow-wrap: anywhere; font-size: 13px; }
.team-ov-bar { height: 10px; border-radius: 5px; background: var(--grid); overflow: hidden; }
.team-ov-bar span { display: block; height: 100%; background: var(--primary); }
.team-ov-nums { font-size: 13px; text-align: right; }
@media (max-width: 640px) {
  .team-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-strip-row { grid-template-columns: 70px minmax(0, 1fr) 60px; gap: 6px; }
  .team-strip-day, .team-strip-total { font-size: 11px; }
  .team-cell { height: 14px; }
  .team-overview .team-ov-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .team-ov-nums { text-align: left; }
}
