/* ═══════════════════════════════════════════════════════════════════
   Pancho — dashboard design system.
   Converted 1:1 from references/design-extracted.html (the unpacked
   "Reseller Dashboard" reference). Pixel values come from the reference
   verbatim — when in doubt, the reference wins.
   THEMES: light is the default (and matches the reference exactly).
   html[data-theme="dark"] swaps the token set only — layout never changes.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Font: Instrument Sans (variable, self-hosted) ── */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/InstrumentSans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/InstrumentSans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Serif — the italic accent face from the new design pack
   (welcome hero rotating word and serif pull-quotes). Self-hosted. */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/InstrumentSerif-Regular.woff2") format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/InstrumentSerif-Italic.woff2") format('woff2');
}

/* ── Tokens (light = the reference palette) ── */
:root {
  color-scheme: light;
  --blue:        #2563eb;
  --blue-hover:  #1d4ed8;
  --blue-tint:   #eff6ff;
  --blue-tint-fg:#1d4ed8;

  --ink:         #111827;
  --ink-strong:  #0f172a;
  --ink-2:       #4b5563;
  --ink-3:       #6b7280;
  --ink-sub:     #7c8494;
  --muted:       #9ca3af;
  --muted-2:     #9aa2ad;
  --faint:       #b0b6c1;

  --shell-bg:    #f7f8fa;
  --main-bg:     #ffffff;
  --card-bg:     #ffffff;
  --border-side: #ecedf1;
  --border-top:  #eef0f4;
  --card-border: #e7e9f0;
  --border-btn:  #e4e7ec;
  --hover-bg:    #eceef2;
  --row-hover:   #fafbfc;
  --row-border:  #f4f6f9;
  --tbl-head-bg: #fafbfd;
  --grid-gap-bg: #f0f2f6;
  --gridline:    #eceef3;
  --field-bg:    #f6f7f9;
  --seg-bg:      #f4f5f8;
  --seg-on-bg:   #ffffff;
  --pill-bg:     #f1f5f9;
  --pill-fg:     #475569;
  --vdiv:        #e9ebf0;
  --kbd-fg:      #b6bcc6;

  --tint-panel:  #f8faff;
  --tint-border: #dbe5f9;
  --dash-border: #c9d4ea;

  --ok-bg:   #ecfdf5;  --ok-fg:   #059669;
  --warn-bg: #fffbeb;  --warn-fg: #b45309;  --warn-border: #fde68a;
  --bad-bg:  #fef2f2;  --bad-fg:  #b91c1c;  --bad-border:  #fecaca;

  --spark:       #93b4f7;
  --legend-alt:  #d7ddea;
  --card-shadow: 0 1px 2px rgba(16,24,40,.04);
  --menu-shadow: 0 8px 24px -6px rgba(16,24,40,.14);
  --green:       #22c55e;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --blue:        #3b82f6;
  --blue-hover:  #60a5fa;
  --blue-tint:   rgba(59,130,246,.14);
  --blue-tint-fg:#93c5fd;

  --ink:         #e6e9ee;
  --ink-strong:  #f2f5f9;
  --ink-2:       #b9c0cb;
  --ink-3:       #9aa3af;
  --ink-sub:     #8d95a3;
  --muted:       #6f7681;
  --muted-2:     #7d8591;
  --faint:       #5f6772;

  --shell-bg:    #12151a;
  --main-bg:     #0e1116;
  --card-bg:     #171b21;
  --border-side: #1f242b;
  --border-top:  #1f242b;
  --card-border: #242a32;
  --border-btn:  #2b323c;
  --hover-bg:    #1d2229;
  --row-hover:   #1a1f26;
  --row-border:  #1f242b;
  --tbl-head-bg: #141820;
  --grid-gap-bg: #242a32;
  --gridline:    #222831;
  --field-bg:    #12161c;
  --seg-bg:      #1d2229;
  --seg-on-bg:   #2a313b;
  --pill-bg:     #242a32;
  --pill-fg:     #aeb6c2;
  --vdiv:        #262c35;
  --kbd-fg:      #6f7681;

  --tint-panel:  #16202f;
  --tint-border: #24344f;
  --dash-border: #2e405f;

  --ok-bg:   rgba(16,185,129,.14);  --ok-fg:   #34d399;
  --warn-bg: rgba(245,158,11,.12);  --warn-fg: #fbbf24;  --warn-border: rgba(245,158,11,.35);
  --bad-bg:  rgba(239,68,68,.12);   --bad-fg:  #f87171;  --bad-border:  rgba(239,68,68,.35);

  --spark:       #3f6ab5;
  --legend-alt:  #39414d;
  --card-shadow: 0 1px 2px rgba(0,0,0,.35);
  --menu-shadow: 0 8px 24px -6px rgba(0,0,0,.5);
}

/* ── Base ── */
html, body { margin: 0; padding: 0; }
* { box-sizing: border-box; }
/* The hidden attribute must always win — classes that set display
   (e.g. .btn-secondary's inline-flex) would otherwise override it. */
[hidden] { display: none !important; }
body {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background: var(--shell-bg);
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button { font-family: inherit; }

/* ── Shell ── */
.shell { width: 100vw; height: 100vh; display: flex; overflow: hidden; background: var(--shell-bg); }

/* ── Sidebar ── */
.sidebar {
  width: 250px; flex: none; background: var(--shell-bg);
  border-right: 1px solid var(--border-side);
  display: flex; flex-direction: column; padding: 18px 14px 14px;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
/* Brand wordmark — the real Pancho logo. Two files, one per surface:
   dark text on light backgrounds, white text on dark. The theme swap
   shows exactly one of the pair. */
.brand-logo { height: 34px; width: auto; display: block; }
.brand-logo--dark { display: none; }
html[data-theme="dark"] .brand-logo--light { display: none; }
html[data-theme="dark"] .brand-logo--dark { display: block; }

.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.nav-section { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); padding: 16px 10px 5px; }
.nav-section:first-child { padding-top: 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.nav-item:hover { background: var(--hover-bg); color: var(--ink-2); }
.nav-item.active { background: var(--blue-tint); color: var(--blue-tint-fg); font-weight: 600; }
.nav-item.active:hover { background: var(--blue-tint); color: var(--blue-tint-fg); }
.nav-item svg { flex: none; }
.nav-item .grow { display: flex; align-items: center; gap: 12px; flex: 1; }
.nav-pill {
  background: var(--pill-bg); color: var(--pill-fg); font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
}

/* Sidebar bottom promo card */
.side-promo { border: 1px solid var(--tint-border); background: var(--card-bg); border-radius: 14px; padding: 12px; margin-top: 10px; }
.side-promo .t { display: flex; align-items: center; gap: 8px; }
.side-promo .t span { font-size: 14px; font-weight: 600; color: var(--ink); }
.side-promo p { margin: 5px 0 9px; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.side-promo button, .side-promo .cta {
  width: 100%; height: 32px; display: flex; align-items: center; justify-content: center; gap: 7px;
  border: none; border-radius: 9px; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.side-promo .cta:hover { color: #fff; background: var(--blue-hover); }

/* ── Main column ── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--main-bg); }

/* ── Topbar ── */
.topbar {
  display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 28px;
  border-bottom: 1px solid var(--border-top); flex-shrink: 0;
}
.topbar .search {
  display: flex; align-items: center; gap: 10px; width: 340px; height: 38px; padding: 0 12px;
  background: var(--field-bg); border: 1px solid var(--border-top); border-radius: 9px;
  color: var(--muted-2); font-size: 13.5px;
}
.topbar .search .ph { flex: 1; }
.topbar .search kbd {
  font-family: inherit; font-size: 11px; font-weight: 600; color: var(--kbd-fg);
  border: 1px solid var(--border-btn); background: var(--card-bg); border-radius: 5px; padding: 2px 6px;
}
.topbar .spacer { flex: 1; }
.topbar .sysok { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.topbar .sysok .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--green); }
.topbar .vdiv { width: 1px; height: 22px; background: var(--vdiv); }
.topbar .bell, .topbar .tbtn {
  position: relative; width: 36px; height: 36px; border-radius: 9px; border: none; background: none;
  display: flex; align-items: center; justify-content: center; color: var(--ink-3); cursor: pointer;
}
.topbar .bell:hover, .topbar .tbtn:hover { background: var(--hover-bg); }
.topbar .bell .ndot {
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  border-radius: 99px; background: var(--blue); border: 1.5px solid var(--main-bg);
}
.theme-moon, .theme-sun { display: flex; }
.theme-sun { display: none; }
html[data-theme="dark"] .theme-sun { display: flex; }
html[data-theme="dark"] .theme-moon { display: none; }
.topbar .who { display: flex; align-items: center; gap: 9px; padding: 5px 6px 5px 5px; border-radius: 10px; cursor: pointer; position: relative; }
.topbar .who .av {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #3b82f6, #1e40af); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.topbar .who .nm { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.who-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px; z-index: 50;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px;
  box-shadow: var(--menu-shadow); padding: 6px; display: none;
}
.who-menu.open { display: block; }
.who-menu button, .who-menu a {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px;
  border: none; background: none; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; text-align: left;
}
.who-menu button:hover, .who-menu a:hover { background: var(--field-bg); color: var(--ink); }

/* Verify-email banner */
.verify-banner {
  display: flex; align-items: center; gap: 10px; padding: 9px 28px;
  background: var(--warn-bg); border-bottom: 1px solid var(--warn-border); color: var(--warn-fg);
  font-size: 13px; font-weight: 500; flex-shrink: 0;
}
.verify-banner button {
  margin-left: auto; border: 1px solid var(--warn-fg); background: var(--card-bg); color: var(--warn-fg);
  font-size: 12px; font-weight: 600; border-radius: 7px; padding: 4px 10px; cursor: pointer;
}

/* ── Content ── */
.content { flex: 1; overflow-y: auto; padding: 26px 28px 34px; display: flex; flex-direction: column; gap: 20px; }
/* Flush variant: single-surface pages (welcome, full-bleed panels) run edge
   to edge — no gaps against the sidebar, topbar, or bottom (user directive). */
.content--flush { padding: 0; gap: 0; }
.content--flush > .card { border: none; border-radius: 0; box-shadow: none; }
/* Doc variant (design pack content pages): plain document flow — sections
   space themselves with their own margins, exactly like the .dc.html files. */
.content--doc { display: block; padding: 22px 28px 40px; }

/* Page header */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.page-head h2 { margin: 0; font-size: 24px; font-weight: 700; color: var(--ink-strong); letter-spacing: -.02em; }
.page-head .sub { margin: 4px 0 0; font-size: 14px; color: var(--ink-sub); }
.page-head .actions { display: flex; align-items: center; gap: 10px; }

.seg { display: flex; padding: 3px; background: var(--seg-bg); border-radius: 9px; font-size: 13px; font-weight: 600; }
.seg span, .seg a, .seg button { padding: 6px 12px; border-radius: 7px; color: var(--ink-3); cursor: pointer; border: 0; background: none; font: inherit; }
.seg span.on, .seg a.on, .seg button.on { background: var(--seg-on-bg); color: var(--ink-strong); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.btn-icon {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--border-btn); background: var(--card-bg); color: var(--ink-2); cursor: pointer;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 9px; border: none; background: var(--blue); color: #fff;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(37,99,235,.35);
}
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 9px; border: 1px solid var(--border-btn); background: var(--card-bg); color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.btn-dashed {
  width: 100%; height: 36px; border-radius: 9px; border: 1px dashed var(--dash-border);
  background: var(--tint-panel); color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}

/* ── Cards ── */
.card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px;
  box-shadow: var(--card-shadow); flex-shrink: 0;
}
.card.pad { padding: 20px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--grid-gap-bg); }
.card-head .t { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink-strong); }
.card-head .link { font-size: 13px; color: var(--blue); font-weight: 600; cursor: pointer; }
.chip-count { font-size: 12px; font-weight: 600; color: var(--pill-fg); background: var(--pill-bg); border-radius: 999px; padding: 2px 9px; }

/* ── KPI strip ── */
.kpi-wrap { overflow: hidden; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--grid-gap-bg); }
.kpi { background: var(--card-bg); padding: 18px 22px 16px; min-width: 0; }
.kpi .lbl { font-size: 12.5px; font-weight: 600; color: var(--ink-sub); }
.kpi .row { margin-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.kpi .val { font-size: 26px; font-weight: 700; color: var(--ink-strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .spark { width: 72px; height: 24px; flex: none; margin-bottom: 5px; overflow: visible; }
.kpi .spark polyline { stroke: var(--spark); }
.kpi .meta { margin-top: 9px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.kpi .meta .delta { font-weight: 600; color: var(--blue-tint-fg); }
.kpi .meta .sub { color: var(--muted-2); }

/* ── Tables ── */
.tbl-head, .tbl-row { display: grid; align-items: center; padding: 10px 24px; }
.tbl-head {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted-2);
  background: var(--tbl-head-bg); border-bottom: 1px solid var(--grid-gap-bg); text-transform: uppercase;
}
.tbl-row { padding: 12px 24px; border-bottom: 1px solid var(--row-border); font-size: 13.5px; }
.tbl-row:hover { background: var(--row-hover); }
.rowh:hover { background: var(--row-hover); }
.tbl-row .strong { font-weight: 600; color: var(--ink-strong); }
.tbl-row .dim { color: var(--muted-2); }
.tbl-row .num { font-weight: 600; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.cell-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-who .av2 {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.cell-who .lines span { display: block; }
.cell-who .lines .l1 { font-weight: 600; color: var(--ink-strong); }
.cell-who .lines .l2 { font-size: 12px; color: var(--muted-2); }

/* Status badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok    { background: var(--ok-bg); color: var(--ok-fg); }
.badge.warn  { background: var(--warn-bg); color: var(--warn-fg); }
.badge.bad   { background: var(--bad-bg); color: var(--bad-fg); }
.badge.info  { background: var(--blue-tint); color: var(--blue-tint-fg); }
.badge.plain { background: var(--pill-bg); color: var(--pill-fg); }

/* Accent chips (40px squares used in list rows) */
.chip40 {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.chip40.blue   { background: var(--blue-tint); color: var(--blue-tint-fg); }
.chip40.indigo { background: #eef2ff; color: #4f46e5; }
.chip40.orange { background: #fff7ed; color: #ea580c; }
.chip40.violet { background: #f5f3ff; color: #7c3aed; }
html[data-theme="dark"] .chip40.indigo { background: rgba(99,102,241,.16); color: #a5b4fc; }
html[data-theme="dark"] .chip40.orange { background: rgba(234,88,12,.16);  color: #fdba74; }
html[data-theme="dark"] .chip40.violet { background: rgba(124,58,237,.16); color: #c4b5fd; }

/* List rows inside cards (storefront-style) */
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--row-border); }
.list-row:hover { background: var(--row-hover); }
.list-row .grow { flex: 1; min-width: 0; overflow: hidden; }
.list-row .l1 { font-size: 14px; font-weight: 600; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .l2 { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); margin-top: 1px; }
.list-row .l2 .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--green); flex: none; }
.list-row .right { text-align: right; flex: none; }
.list-row .right .n1 { font-size: 13.5px; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.list-row .right .n2 { font-size: 12px; color: var(--muted-2); }

/* ── Checklist (getting started) ── */
.check-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--row-border); }
.check-row:last-child { border-bottom: none; }
.check-row .tick {
  width: 26px; height: 26px; border-radius: 999px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.check-row .tick.done { background: var(--ok-bg); color: var(--ok-fg); }
.check-row .tick.todo { background: var(--pill-bg); color: var(--muted); }
.check-row .t1 { font-size: 14px; font-weight: 600; color: var(--ink-strong); }
.check-row .t1.done { color: var(--muted-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.check-row .t2 { font-size: 12px; color: var(--muted-2); margin-top: 1px; }
.check-row .go { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; }

/* ── Empty states ── */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 24px 48px; }
.empty .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.empty h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-strong); }
.empty p { margin: 5px 0 0; font-size: 13.5px; color: var(--ink-sub); max-width: 420px; line-height: 1.5; }
.empty .cta { margin-top: 16px; }

/* Two-column layout rows */
.grid-2 { display: grid; grid-template-columns: 1.72fr 1fr; gap: 20px; flex-shrink: 0; }

/* Video slot placeholder (How it works) */
.video-slot {
  aspect-ratio: 16 / 9; border-radius: 10px; background: var(--seg-bg);
  border: 1px dashed var(--tint-border); display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); font-size: 13px; font-weight: 500; gap: 8px;
}

/* Soft info panel (earnings example, payout summary) */
.tint-panel { background: var(--tint-panel); border: 1px solid var(--tint-border); border-radius: 10px; }

/* "Opening soon" chip */
.chip-soon {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px;
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-fg);
  font-size: 12px; font-weight: 600;
}

/* Generic form bits */
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld label { font-size: 12.5px; font-weight: 600; color: var(--ink-sub); }
.fld input {
  height: 38px; padding: 0 12px; border: 1px solid var(--border-btn); border-radius: 9px;
  font-family: inherit; font-size: 13.5px; color: var(--ink); background: var(--card-bg);
}
.fld input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.fld input[disabled] { background: var(--field-bg); color: var(--ink-3); }

/* ── Custom domains (Branding & Domains + launch wizard) ── */
.dom-group { border-bottom: 1px solid var(--row-border); padding: 6px 22px 18px; }
.dom-group:last-child { border-bottom: none; }
.dom-sub { margin-left: 52px; }   /* domain rows align under the business name, past the chip40 */
.dom-row { display: flex; align-items: center; gap: 12px; padding: 11px 0 10px; border-top: 1px dashed var(--row-border); }
.dom-row .ico {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.dom-row .grow { flex: 1; min-width: 0; }
.dom-row .d1 { font-size: 13.5px; font-weight: 600; color: var(--ink-strong); overflow-wrap: anywhere; }
.dom-row .d2 { font-size: 12px; color: var(--muted-2); margin-top: 1px; line-height: 1.45; }
.dom-row .acts { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.btn-mini {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border-radius: 8px; border: 1px solid var(--border-btn); background: var(--card-bg);
  color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn-mini:hover { background: var(--hover-bg); }
.btn-mini.blue { border-color: transparent; background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,.35); }
.btn-mini.blue:hover { background: var(--blue-hover); }
.btn-mini.danger { color: var(--bad-fg); }
.btn-mini[disabled] { opacity: .55; cursor: default; }

/* "Free · included" reassurance pill next to the platform subdomain */
.pill-free {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok-fg); font-size: 11px; font-weight: 700; flex: none;
}

/* Connect / DNS instruction panel */
.dns-panel {
  background: var(--tint-panel); border: 1px solid var(--tint-border);
  border-radius: 12px; padding: 16px 18px; margin-top: 10px;
}
.dns-panel h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-strong); }
.dns-panel .p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.dns-rail { display: flex; align-items: center; gap: 6px; margin: 14px 0 2px; flex-wrap: wrap; }
.dns-rail .st { display: flex; align-items: center; gap: 7px; flex: none; }
.dns-rail .st .n {
  width: 22px; height: 22px; border-radius: 999px; flex: none;
  background: var(--pill-bg); color: var(--muted-2);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.dns-rail .st.on .n, .dns-rail .st.done .n { background: var(--blue); color: #fff; }
.dns-rail .st .t { font-size: 11.5px; font-weight: 600; color: var(--muted-2); white-space: nowrap; }
.dns-rail .st.on .t { color: var(--ink-strong); }
.dns-rail .bar { flex: 1; height: 2px; background: var(--grid-gap-bg); border-radius: 99px; min-width: 14px; }
.dns-rail .bar.done { background: var(--blue); }
.dns-rec { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; margin-top: 12px; overflow: hidden; }
.dns-rec .rr {
  display: grid; grid-template-columns: 128px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--row-border); font-size: 13px;
}
.dns-rec .rr:last-child { border-bottom: none; }
.dns-rec .k { font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--muted-2); text-transform: uppercase; }
.dns-rec .v {
  font-weight: 700; color: var(--ink-strong); overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
}
.dns-status { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.dns-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
@keyframes lanspin { to { transform: rotate(360deg); } }
.spin14 {
  width: 14px; height: 14px; border-radius: 999px; flex: none; margin-top: 2px;
  border: 2px solid var(--grid-gap-bg); border-top-color: var(--blue); animation: lanspin .8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   Mobile (≤900px). Desktop is the reference and never changes — these
   rules only exist below the breakpoint. The sidebar becomes a slide-in
   drawer (hamburger in the topbar), the topbar sheds its desktop-only
   furniture, and the wide grids fold to one column.
   ═══════════════════════════════════════════════════════════════════ */
.topbar .menu-btn, .tb-brand, .shell-scrim { display: none; }

@media (max-width: 900px) {
  .shell { height: 100dvh; }

  /* Sidebar → off-canvas drawer */
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 130; width: 274px;
    transform: translateX(-105%); transition: transform .22s ease;
    box-shadow: 0 24px 60px -20px rgba(15,23,42,.45);
  }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .shell-scrim {
    display: block; position: fixed; inset: 0; z-index: 120;
    background: rgba(15,23,42,.44);
  }

  /* Topbar: hamburger + brand; search / status / divider step aside */
  .topbar .menu-btn { display: flex; }
  .tb-brand { display: flex; align-items: center; min-width: 0; }
  .tb-brand .brand-logo { height: 24px; }
  .topbar { padding: 0 10px; gap: 6px; }
  .topbar .search, .topbar .sysok, .topbar .vdiv { display: none; }
  .topbar .who .nm { display: none; }
  .topbar a { white-space: nowrap; }
  .topbar .tb-login { padding: 8px 6px !important; font-size: 13px !important; }
  .topbar .btn-primary { padding: 0 11px; font-size: 12.5px; }

  /* Content breathing room sized for a phone */
  .content { padding: 18px 16px 30px; }
  .content--flush { padding: 0; }
  .content--doc { padding: 16px 16px 36px; }
  .page-head { flex-wrap: wrap; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card-head { padding: 14px 16px; }
  .card.pad { padding: 16px; }
  .tbl-head, .tbl-row { padding-left: 16px; padding-right: 16px; }
  .verify-banner { padding: 9px 14px; flex-wrap: wrap; }
  .verify-banner button { margin-left: 0; }
  .dom-group { padding: 6px 16px 16px; }
  .dom-sub { margin-left: 0; }
}
