/* ============================================================
   ISW S3 Admin — Design Tokens & Skin
   Layout belongs to Tailwind. This file owns identity:
   colors, type, sizes, gradients, surfaces, animation.
   ============================================================ */

:root {
  /* Navy depth scale */
  --navy-950: #060c19;
  --navy-900: #0b1626;
  --navy-850: #0f1d33;
  --navy-800: #14253f;
  --navy-700: #1b3055;
  --navy-600: #243d6c;

  /* Cyan accents */
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --cyan-glow: rgba(34, 211, 238, 0.35);
  --cyan-soft: rgba(34, 211, 238, 0.08);

  /* Text hierarchy */
  --text-primary: #e6edf7;
  --text-secondary: #9fb0c8;
  --text-muted: #64748b;
  --text-faint: #475569;

  /* Semantic */
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;

  /* Surfaces (liquid glass) */
  --glass-bg: linear-gradient(
    135deg,
    rgba(28, 47, 79, 0.55) 0%,
    rgba(13, 27, 53, 0.35) 100%
  );
  --glass-bg-strong: linear-gradient(
    135deg,
    rgba(36, 61, 108, 0.7) 0%,
    rgba(20, 37, 63, 0.55) 100%
  );
  --glass-border: 1px solid rgba(124, 182, 255, 0.14);
  --glass-border-hover: 1px solid rgba(34, 211, 238, 0.35);
  --glass-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 32px rgba(0, 0, 0, 0.35);

  /* Sizes */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Type scale */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 18px;
  --fs-xl: 24px;
  --fs-2xl: 32px;
  --fs-display: 44px;

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

/* ----------------------------------------------------------
   Base / page chrome
---------------------------------------------------------- */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--navy-950);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 800px 600px at 15% -10%, rgba(34, 211, 238, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 600px 500px at 95% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 1000px 700px at 50% 110%, rgba(36, 61, 108, 0.4) 0%, transparent 60%),
    var(--navy-950);
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 182, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 182, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ----------------------------------------------------------
   Typography
---------------------------------------------------------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-weight: var(--fw-medium); }

p { margin: 0; color: var(--text-secondary); }

a {
  color: var(--cyan-400);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--cyan-300); }

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

/* ----------------------------------------------------------
   Liquid glass surfaces
---------------------------------------------------------- */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
}

.glass-row {
  background: rgba(20, 37, 63, 0.4);
  border: var(--glass-border);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.glass-row:hover {
  background: rgba(27, 48, 85, 0.55);
  border-color: rgba(34, 211, 238, 0.22);
}

/* ----------------------------------------------------------
   Buttons
---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--cyan-500) 0%, var(--cyan-600) 100%);
  color: var(--navy-950);
  font-weight: var(--fw-semibold);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 1px 2px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--cyan-400) 0%, var(--cyan-500) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 1px 3px rgba(0, 0, 0, 0.35);
}

.btn-ghost {
  background: rgba(28, 47, 79, 0.4);
  color: var(--text-primary);
  border: 1px solid rgba(124, 182, 255, 0.15);
}
.btn-ghost:hover {
  background: rgba(36, 61, 108, 0.6);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--cyan-300);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-danger-ghost:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-sm { height: 28px; padding: 0 10px; font-size: var(--fs-xs); }
.btn-lg { height: 44px; padding: 0 22px; font-size: var(--fs-md); }

/* ----------------------------------------------------------
   Form controls
---------------------------------------------------------- */

.field-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input, .select, .textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  background: rgba(11, 22, 38, 0.6);
  border: 1px solid rgba(124, 182, 255, 0.15);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.input:hover, .select:hover, .textarea:hover {
  border-color: rgba(34, 211, 238, 0.25);
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--cyan-400);
  background: rgba(11, 22, 38, 0.85);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.input::placeholder { color: var(--text-faint); }

.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; }

.input-mono { font-family: var(--font-mono); font-size: var(--fs-sm); }

.field-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.input-with-prefix {
  display: flex;
  align-items: stretch;
  background: rgba(11, 22, 38, 0.6);
  border: 1px solid rgba(124, 182, 255, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.input-with-prefix:focus-within {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.input-with-prefix .prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(36, 61, 108, 0.5);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  border-right: 1px solid rgba(124, 182, 255, 0.1);
}
.input-with-prefix .input {
  border: none;
  background: transparent;
  border-radius: 0;
}
.input-with-prefix .input:focus { box-shadow: none; }

/* ----------------------------------------------------------
   Toggle switches (read / write)
---------------------------------------------------------- */

.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle input { position: absolute; opacity: 0; pointer-events: none; }

.toggle-track {
  width: 32px;
  height: 18px;
  background: rgba(11, 22, 38, 0.8);
  border: 1px solid rgba(124, 182, 255, 0.18);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--dur-fast) var(--ease-out);
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--dur-base) var(--ease-out);
}
.toggle input:checked + .toggle-track {
  background: linear-gradient(180deg, var(--cyan-400), var(--cyan-500));
  border-color: transparent;
  box-shadow: 0 0 12px var(--cyan-glow);
}
.toggle input:checked + .toggle-track::after {
  background: var(--navy-950);
  transform: translateX(14px);
}

.toggle-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.toggle input:checked ~ .toggle-label { color: var(--cyan-300); }

/* ----------------------------------------------------------
   Badges / pills
---------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.badge-cyan {
  background: var(--cyan-soft);
  color: var(--cyan-300);
  border-color: rgba(34, 211, 238, 0.2);
}

.badge-muted {
  background: rgba(124, 182, 255, 0.06);
  color: var(--text-secondary);
  border-color: rgba(124, 182, 255, 0.12);
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.25);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ----------------------------------------------------------
   Combo-select dropdown
---------------------------------------------------------- */

.combo {
  position: relative;
}

.combo-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 37, 63, 0.95) 0%,
    rgba(11, 22, 38, 0.95) 100%
  );
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-sm);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 12px 36px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(34, 211, 238, 0.1);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  padding: 4px;
}

.combo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.combo-item:hover, .combo-item.active {
  background: rgba(34, 211, 238, 0.1);
}
.combo-item .avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--cyan-300);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.combo-item .name {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  font-weight: var(--fw-medium);
}
.combo-item .email {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.combo-empty {
  padding: 12px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   Tables
---------------------------------------------------------- */

.perm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.perm-table th {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 12px 4px;
}

.perm-table td {
  background: rgba(20, 37, 63, 0.4);
  padding: 10px 12px;
  border-top: 1px solid rgba(124, 182, 255, 0.1);
  border-bottom: 1px solid rgba(124, 182, 255, 0.1);
  vertical-align: middle;
}
.perm-table td:first-child {
  border-left: 1px solid rgba(124, 182, 255, 0.1);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.perm-table td:last-child {
  border-right: 1px solid rgba(124, 182, 255, 0.1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.perm-table tr:hover td { background: rgba(27, 48, 85, 0.55); }

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-cell .avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--cyan-300);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.user-cell .name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.user-cell .email {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------------------------------------------------
   Sidebar / nav
---------------------------------------------------------- */

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.nav-link:hover {
  background: rgba(28, 47, 79, 0.5);
  color: var(--text-primary);
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.12) 0%, rgba(34, 211, 238, 0.03) 100%);
  color: var(--cyan-300);
  border-color: rgba(34, 211, 238, 0.2);
}
.nav-link .icon { color: currentColor; }

.brand {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.brand .accent { color: var(--cyan-400); }

/* ----------------------------------------------------------
   Project flatlist
   One row per project. Slug + git URL are the primary fields.
   The list container owns glass; the rows own dividers + hover.
---------------------------------------------------------- */

.proj-row {
  display: grid;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(124, 182, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-fast) var(--ease-out);
}
.proj-row:last-child { border-bottom: none; }
.proj-row:hover { background: rgba(34, 211, 238, 0.04); }
.proj-row:hover .cell-chevron { color: var(--cyan-300); transform: translateX(2px); }

.proj-row-header {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(124, 182, 255, 0.1);
  pointer-events: none;
}
.proj-row-header:hover { background: transparent; }

.cell-slug {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--cyan-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-name {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-git {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-git-empty {
  color: var(--text-faint);
  font-style: italic;
}

.cell-bucket {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.cell-users {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  font-feature-settings: 'tnum';
  text-align: right;
}

.cell-chevron {
  color: var(--text-faint);
  text-align: right;
  transition: color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

/* ----------------------------------------------------------
   Section dividers
---------------------------------------------------------- */

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
}
/* When the divider is the first thing in a glass card, drop the top margin —
   the card's padding already provides spacing. */
.glass > .section-divider:first-child,
.glass-strong > .section-divider:first-child { margin-top: 0; }
.section-divider .label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 182, 255, 0.15), transparent);
}

/* ----------------------------------------------------------
   Sub-stat label inside the right-rail edit-page cards
---------------------------------------------------------- */

.stat-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   Sign-in card (landing for unauthenticated / non-admin)
---------------------------------------------------------- */

.signin-card {
  width: 100%;
  max-width: 380px;
  padding: 32px;
  text-align: left;
}

.signin-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.signin-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 182, 255, 0.08);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ============================================================
   Reusable utilities
   Semantic classes for recurring inline patterns. Skin only —
   layout / spacing stays in Tailwind utilities at the call site.
   ============================================================ */

/* Semantic text-color utilities — pair with pre-existing .muted / .faint
   from the base typography block. Single-adjective names matching that
   convention; never read as Tailwind utilities. */
.error { color: var(--danger); }
.ok { color: var(--success); }
.subtle { color: var(--text-secondary); }
.term { color: var(--cyan-300); }

/* Small muted hint/meta text — by far the most common combination. */
.hint-xs { font-size: var(--fs-xs); color: var(--text-muted); }
.hint-sm { font-size: var(--fs-sm); color: var(--text-muted); }
.body-secondary { font-size: var(--fs-sm); color: var(--text-secondary); }

/* Stat values inside the right-rail / info cards. */
.stat-value-md { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.stat-value-mono { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--cyan-300); }
.stat-detail-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

/* Form error block — banner above a form when non-field errors fire. */
.form-error {
  background: var(--danger-soft);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: var(--fs-sm);
}

/* Empty-state row inside a flatlist. */
.empty-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
/* When the Core Team list has any data row (added via HTMX), hide the
   initial empty-state hint. Re-appears if the list empties out again. */
.core-team-list:has(.proj-row) .core-team-empty { display: none; }

/* Permission table — column widths + locked-row visuals. */
.perm-table .col-toggle { width: 110px; }
.perm-table .col-remove { width: 60px; }
.perm-table tr.row-locked { opacity: 0.7; }
.perm-table tr.row-locked:hover td { background: rgba(20, 37, 63, 0.4); }
.toggle-center { justify-content: center; }
.toggle-locked { cursor: not-allowed; }

/* Combo-select item that's not selectable (already granted). */
.combo-item-disabled { opacity: 0.55; }

/* Faint hairline border — used on sidebar dividers and footers. */
.border-hairline { border-color: rgba(124, 182, 255, 0.08); }

/* Inline emphasis for cyan accent words inside hint text. */
.accent-text { color: var(--cyan-300); font-weight: var(--fw-medium); }

/* Section-bottom hint — caption shown below a table or block. */
.section-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* Right-rail stat lines — used in the project-edit info cards. */
.stat-detail {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.stat-upstream {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  margin-top: 4px;
  word-break: break-all;
}
.stat-prefix {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--cyan-300);
  margin-top: 4px;
}

/* Page-header description below H1. */
.page-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 4px;
}

/* Italic faint text inside stat fields ("none configured"). */
.faint-italic { color: var(--text-faint); font-style: italic; }

/* Empty-state cell inside a perm-table (different from .empty-state which
   is a flatlist row). */
.perm-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  padding: 16px;
}

/* Danger variant of glass / badge for the sync-failure block. */
.glass-danger { border-color: rgba(248, 113, 113, 0.3); }
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.3);
}

/* Breadcrumb separator — used between path segments in page headers. */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb .sep { color: var(--text-faint); }
