/*
 * panel.css — the admin console. One identity for every tab: the mail tab's
 * ink-and-steel palette, Urbanist for interface text, Space Grotesk for
 * figures and identifiers.
 *
 * Recolour by editing the channel knobs: every tint is derived from them.
 */

@font-face {
  font-family: 'Urbanist';
  src: url('fonts/urbanist-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/urbanist-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  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;
}

@font-face {
  font-family: 'Urbanist';
  src: url('fonts/urbanist-latin-ext-wght-normal.woff2') format('woff2-variations'), url('fonts/urbanist-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  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: 'Numbers Display';
  src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* ---------- channel knobs ---------- */
  --accent-rgb: 91, 127, 166;
  --success-rgb: 46, 213, 122;
  --danger-rgb: 235, 67, 53;
  --warn-rgb: 255, 178, 36;
  --shadow-rgb: 0, 0, 0;
  --white-rgb: 242, 244, 242;
  --white-soft-rgb: 252, 252, 252; /* near-white tints on hairlines */

  --bg-0-rgb: 10, 13, 11;
  --bg-1-rgb: 15, 18, 16;
  --bg-2-rgb: 23, 27, 24;
  --bg-3-rgb: 35, 40, 35;
  --btn-rgb: 26, 30, 27;
  --muted-rgb: 138, 150, 140;

  /* ---------- derived ---------- */
  --accent: rgb(var(--accent-rgb));
  --accent-glow: #93B4D2;
  --accent-deep: #37536F;
  --success: rgb(var(--success-rgb));
  --warn: rgb(var(--warn-rgb));
  --danger: rgb(var(--danger-rgb));

  --color-bg-0: rgb(var(--bg-0-rgb));
  --color-bg-1: rgb(var(--bg-1-rgb));
  --color-bg-2: rgb(var(--bg-2-rgb));
  --color-bg-3: rgb(var(--bg-3-rgb));
  --color-bg-btn: rgb(var(--btn-rgb));
  --color-white: #F2F4F2;
  --color-muted: rgb(var(--muted-rgb));
  --color-faint: #5E6A62;
  --color-line: #262B27;

  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* legacy aliases: admin.js still writes some of these names inline */
  --bg: var(--color-bg-0);
  --card: var(--color-bg-1);
  --fg: var(--color-white);
  --mut: var(--color-muted);
  --line: var(--color-line);
  --acc: var(--accent-glow);
  --ok: var(--success);
  --bad: var(--danger);
  --chip: var(--color-bg-2);
  --figures: 'Numbers Display', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --surface: linear-gradient(41deg, rgba(var(--bg-2-rgb), 0.5) 0.59%, rgba(var(--bg-1-rgb), 0.5) 25.77%, rgba(var(--bg-2-rgb), 0.5) 49.53%, rgba(var(--bg-1-rgb), 0.5) 74.23%, rgba(var(--bg-2-rgb), 0.5) 99.41%);
  --surface-hi: linear-gradient(46deg, rgba(var(--bg-3-rgb), 0.65) 0%, rgba(var(--bg-2-rgb), 0.65) 25%, rgba(var(--bg-3-rgb), 0.65) 50%, rgba(var(--bg-2-rgb), 0.65) 75%, rgba(var(--bg-3-rgb), 0.65) 100%);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-0);
  color: var(--color-white);
  font: 13.5px/1.45 'Urbanist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(var(--accent-rgb), 0.35); }

:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 2px;
}

/* ---------- app bar: identity, nav, status — one persistent frame ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
  height: 52px;
  /* gutters grow with the viewport so the bar's contents stay on the page's measure */
  padding: 0 max(14px, calc((100% - 1720px) / 2));
  background: color-mix(in srgb, var(--color-bg-0) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.appbar .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
/* the one mark in the chrome: a lit pip, same shape as the session rail */
.appbar .brand::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent-glow);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55);
}

#tabs {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
#tabs::-webkit-scrollbar { display: none; }
.tabbtn {
  flex: none;
  height: 30px;
  padding: 0 13px;
  border: none;
  border-radius: 99px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.tabbtn:hover { color: var(--color-white); }
.tabbtn.on { background: rgba(var(--accent-rgb), 0.22); color: #D8E5F2; }

#live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
#live.stale { color: var(--danger); border-color: rgba(var(--danger-rgb), 0.4); }
#live.stale::before { background: var(--danger); }

main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 max(14px, calc((100% - 1720px) / 2));
}

/* ---------- per-tab page header: title, purpose, actions on one rule ---------- */
.pagehead {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
}
.pagehead h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.pagehead p {
  margin: 5px 0 0;
  max-width: 62ch;
  color: var(--color-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.pagehead-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

section[data-tab] {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
section[data-tab][hidden],
#tab-config[hidden],
#tab-links[hidden] { display: none; }

/* the tab body is the scroll region, not the window */
#sessions,
#ended {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--bg-3-rgb), 0.5) transparent;
  padding-bottom: 8px;
}
#tab-config,
#tab-links {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--bg-3-rgb), 0.5) transparent;
}
/* these two pages scroll as a whole, so their header rides along */
#tab-config .pagehead,
#tab-links .pagehead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--color-bg-0);
}

/* ---------- section headings ---------- */
h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
}
h2::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--color-line);
}
h2 .mut { font-weight: 500; color: var(--color-faint); font-variant-numeric: tabular-nums; }

/* ---------- the stat strip: one object, not a card grid ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 4px 0 0;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  flex: 1 1 132px;
  min-width: 0;
  padding: 10px 14px 11px;
  border: none;
  border-radius: 0;
  background: var(--surface);
}
.card b {
  display: block;
  font-family: var(--figures);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--color-white);
}
.card span {
  display: block;
  margin-top: 1px;
  color: var(--color-muted);
  font-size: 11.5px;
  font-weight: 500;
}
.bar {
  height: 3px;
  margin-top: 9px;
  border-radius: 2px;
  background: rgba(var(--white-rgb), 0.07);
  overflow: hidden;
}
.bar i { display: block; height: 100%; background: var(--accent-glow); }
.bar i.hot { background: var(--danger); }

/* ---------- workers ---------- */
.workers { display: flex; gap: 8px; flex-wrap: wrap; }
.worker {
  background: var(--color-bg-1);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12.5px;
  min-width: 200px;
  font-variant-numeric: tabular-nums;
}

/* ---------- session rows ---------- */
.listhead {
  display: flex;
  gap: 12px;
  padding: 0 14px 6px 12px;
  font-size: 11px;
  color: var(--color-faint);
}
.listhead > span { min-width: 0; }
.listhead > span:first-child { flex: 0 0 4px; }
.listhead > span:nth-child(2) { flex: 1 1 160px; }
.listhead > span:nth-child(3) { flex: 2 1 280px; }
.listhead > span:nth-child(4) { flex: 1 1 150px; }
.listhead > span:nth-child(5) { flex: 0 0 72px; text-align: right; }
.listhead > span:nth-child(6) { flex: 0 0 72px; text-align: right; }
.listhead > span:nth-child(7) { flex: 0 0 auto; width: 148px; }
main:has(#sessions:empty) .listhead { display: none; }
#sessions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.session {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.session:hover { border-color: var(--color-bg-3); }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 11px 12px;
  cursor: pointer;
}
.row > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row > div:nth-child(2) { flex: 1 1 160px; }
.row > .url { flex: 2 1 280px; }
.row > div.opt { flex: 1 1 150px; }
.row > .num { flex: 0 0 72px; }
.row > .acts { flex: 0 0 auto; margin-left: auto; }
.row > div:last-child { margin-left: auto; }

/* the state rail: colour down the row's left edge instead of a floating dot */
.dot {
  flex: 0 0 4px;
  width: 4px;
  height: 26px;
  margin: 0;
  border-radius: 2px;
  background: var(--success);
  align-self: center;
}
.dot.down { background: var(--danger); }
.dot.idle { background: rgba(var(--white-rgb), 0.16); }
.dot.hidden { background: var(--warn); }
.dot.cap { background: var(--accent-glow); }
.dot.exp { background: transparent; border: 1px dashed rgba(var(--white-rgb), 0.28); }

.url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--color-muted);
}
.mut { color: var(--color-muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.num {
  text-align: right;
  font-family: var(--figures);
  font-variant-numeric: tabular-nums;
}

/* ---------- chips & badges ---------- */
.chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(var(--white-rgb), 0.06);
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
  margin-right: 4px;
}
.chip.held { background: rgba(var(--danger-rgb), 0.22); color: #FFB4AC; }
.chip.mod { background: rgba(var(--warn-rgb), 0.2); color: #FFD08A; }
/* Sites link state: dormant means its lure path still 404s */
.chip.kit-dormant { background: rgba(var(--warn-rgb), 0.2); color: #FFD08A; }
.chip.kit-live { background: rgba(var(--success-rgb), 0.18); color: #9BE8B8; }

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.b-live { background: rgba(var(--success-rgb), 0.18); color: var(--success); }
.b-cap { background: rgba(var(--accent-rgb), 0.26); color: var(--accent-glow); }
.b-fail { background: rgba(var(--danger-rgb), 0.2); color: #FF9E93; }
.b-pend { background: rgba(var(--white-rgb), 0.08); color: var(--color-muted); }
.b-run { background: rgba(var(--warn-rgb), 0.2); color: var(--warn); }

/* ---------- buttons: pills, flat fills, one hard shadow on the primary ---------- */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 99px;
  background: var(--color-bg-btn);
  color: var(--color-white);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}
button:hover,
.btn:hover { opacity: 0.85; }
button:active,
.btn:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: default; transform: none; }

.btn.primary {
  background: var(--accent);
  color: #0C1826;
  font-weight: 600;
  box-shadow: 0 4px 0 var(--accent-deep);
}
.btn.primary:hover { opacity: 1; filter: brightness(1.05); }
.btn.primary:active { box-shadow: 0 2px 0 var(--accent-deep); }
.btn.danger { background: rgba(var(--danger-rgb), 0.32); color: #FFD9D5; }

.acts { display: flex; gap: 6px; justify-content: flex-end; overflow: visible !important; }
.act {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: none;
  border-radius: 99px;
  background: var(--color-bg-btn);
  color: var(--color-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.act:hover { color: var(--color-white); opacity: 0.9; }
.act.on { background: rgba(var(--danger-rgb), 0.32); color: #FFD9D5; }

/* ---------- expanded session detail ---------- */
.detail-bar {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-bottom: 2px;
}
.btn.danger {
  border-color: rgba(var(--danger-rgb), 0.5);
  background: rgba(var(--danger-rgb), 0.16);
  color: #FFB4AC;
}
.btn.danger:hover { background: rgba(var(--danger-rgb), 0.26); }

/* the automation deck: one labelled grid, chips all the same size */
.runrow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 5px;
  margin-top: 10px;
}
.runrow-label {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--color-faint);
}
.runrow .act { text-align: left; }
.runrow .act:disabled { opacity: 0.5; }

/* an action band at the foot of a block */
.foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--color-line);
  background: var(--color-bg-0);
}
.detail .detail {
  display: block;
  border-top: none;
  padding: 0;
  background: transparent;
}
.detail h3 {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-muted);
}
.detail p { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
td {
  padding: 4px 0;
  vertical-align: top;
  border-bottom: 1px solid rgba(var(--white-rgb), 0.04);
}
tr:last-child td { border-bottom: none; }
td:first-child {
  width: 118px;
  padding-right: 12px;
  color: var(--color-faint);
  font-size: 11.5px;
  white-space: nowrap;
}
td:last-child {
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
td.diff { color: var(--warn); }

.tabs { display: flex; flex-direction: column; gap: 3px; }
.tabs div {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

/* ---------- forms (Kit config, Links) ---------- */
input, select, textarea {
  font: inherit;
  font-size: 12.5px;
  color: var(--color-white);
  background: var(--color-bg-2);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 11px;
  min-width: 0;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--accent-glow);
}
input::placeholder, textarea::placeholder { color: var(--color-faint); }

.frm { display: grid; gap: 12px; }
.frm > label {
  display: grid;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-muted);
}
.frm2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: start;
  font-size: 12.5px;
}
.frm2 > label {
  display: grid;
  gap: 6px;
  color: var(--color-muted);
  font-size: 11.5px;
  font-weight: 500;
}
.frm2 .full { grid-column: 1 / -1; }
.frm2 input[type='number'] { width: 100%; }

/* settings: forms in the main column, engine knobs in a side rail */
#tab-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 404px;
  gap: 12px;
  align-content: start;
  align-items: start;
}
#tab-config > .pagehead,
#tab-config > .mut { grid-column: 1 / -1; }
#tab-config > .detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border-top: none;
  padding: 0;
}
#tab-config > .card--rail { grid-column: 2; margin: 0; }

#tab-config .card,
#tab-links .card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 18px;
}
#tab-links .card { margin-bottom: 12px; }
#tab-config h3,
#tab-links h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
}
#tab-links table { font-family: var(--mono); }

/* ---------- check rows (post-capture automation) ---------- */
.checkrow {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--color-bg-2);
  cursor: pointer;
  transition: background 0.15s ease;
}
.checkrow:hover { background: var(--color-bg-3); }
.checkrow:has(input:checked) { background: rgba(var(--accent-rgb), 0.14); }
.checkrow input[type='checkbox'] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid var(--color-bg-3);
  border-radius: 6px;
  background: var(--color-bg-1);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.checkrow input[type='checkbox']:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkrow input[type='checkbox']:checked::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #0C1826;
  border-bottom: 2px solid #0C1826;
  transform: rotate(-45deg) translate(0, -1px);
}
.checkrow b { font-size: 12.5px; font-weight: 600; }
.checkrow .mut { display: block; margin-top: 2px; font-size: 11px; line-height: 1.45; }

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 6px;
  margin-top: 10px;
}

/* ---------- empty state ---------- */
#empty {
  display: block;
  padding: 44px 24px;
  color: var(--color-muted);
  text-align: center;
  font-size: 13px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
#empty[hidden] { display: none; }

/* ---------- one entrance, on first paint only ---------- */
@media (prefers-reduced-motion: no-preference) {
  main { animation: panel-in 0.22s ease-out both; }
  @keyframes panel-in {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 900px) {
  .appbar { gap: 14px; padding: 0 16px; height: auto; min-height: 52px; flex-wrap: wrap; }
  .appbar .brand { padding: 12px 0; }
  #tabs { order: 3; width: 100%; }
  .tabbtn { padding: 10px 9px 9px; }
  #live { padding: 3px 9px; }
  body { overflow: auto; display: block; }
  main { display: block; padding: 0 16px 56px; }
  section[data-tab] { display: block; padding-bottom: 0; }
  #sessions, #ended, #tab-config, #tab-links { overflow: visible; }
  #tab-config .pagehead, #tab-links .pagehead { position: static; }
  .pagehead { flex-direction: column; gap: 10px; padding-top: 16px; }
  .row { flex-wrap: wrap; row-gap: 4px; }
  .row > .url { flex: 1 1 100%; order: 9; }
  .row > div.opt { display: none; }
  .card { flex: 1 1 46%; }
}

/* ---------- fork additions: empty states and section framing ---------- */
/* The list header is a promise of rows; with none, it is noise. */
section[data-tab].is-empty .listhead { display: none; }

/* Same box as rippanel's #empty, for the two session lists. */
#live-empty,
#history-empty {
  padding: 44px 24px;
  color: var(--color-muted);
  text-align: center;
  font-size: 13px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
#live-empty[hidden],
#history-empty[hidden] { display: none; }

/* Cards in the fork's pages live in the flow, not in rippanel's grid. */
#tab-tenants:not([hidden]),
#tab-settings:not([hidden]) {
  display: block;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--bg-3-rgb), 0.5) transparent;
}
#tab-tenants .card,
#tab-settings .card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
}
#tab-tenants h3,
#tab-settings h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--color-muted); }
#tab-tenants .foot h3 { margin-right: auto; }
#tab-tenants table, #tab-settings table { font-family: var(--mono); }
#links-list .card { margin-bottom: 12px; }
#links-list .card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 18px;
}
#links-list h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--color-muted); }
