/* =================================================================
  SazMonitor  —  Frosted glass teal design system
  ================================================================= */

:root {
  --brand:       #00a79a;
  --brand-dim:   rgba(0, 167, 154, 0.14);
  --brand-glow:  rgba(0, 167, 154, 0.20);
  --bg-page:     #eaf3f6;
  --bg-sidebar:  rgba(255, 255, 255, 0.62);
  --bg-card:     rgba(255, 255, 255, 0.58);
  --bg-raised:   rgba(255, 255, 255, 0.74);
  --bg-input:    rgba(247, 252, 255, 0.72);
  --bg-hover:    rgba(0, 167, 154, 0.07);
  --border:      rgba(10, 49, 65, 0.12);
  --border-med:  rgba(10, 49, 65, 0.20);
  --text:        #0f2330;
  --text-dim:    #415f74;
  --text-muted:  #7a95a8;
  --green:       #16a34a;
  --green-bg:    rgba(22, 163, 74, 0.08);
  --orange:      #b45309;
  --orange-bg:   rgba(180, 83, 9, 0.08);
  --red:         #dc2626;
  --red-bg:      rgba(220, 38, 38, 0.08);
  --blue:        #2563eb;
  --blue-bg:     rgba(37, 99, 235, 0.08);
  --purple:      #7c3aed;
  --purple-bg:   rgba(124, 58, 237, 0.08);
  --ghost-bg:    rgba(0,0,0,0.03);
  --ghost-bg-hover: rgba(0,0,0,0.06);
  --fg-dim:      var(--text-dim);
  --fg-muted:    var(--text-muted);
  --sidebar-w:   232px;
  --topbar-h:    52px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --shadow:    0 10px 28px rgba(11, 36, 51, 0.10), 0 1px 4px rgba(11, 36, 51, 0.07);
  --shadow-lg: 0 22px 52px rgba(11, 36, 51, 0.16);
  --surface-glow: rgba(0, 167, 154, 0.14);
  --surface-sheen: rgba(255, 255, 255, 0.44);
  --surface-top-edge: color-mix(in srgb, var(--brand) 26%, var(--border));
  --glass-blur: saturate(150%) blur(14px);
  --diagram-panel: #f0fdfb;
  --diagram-surface: #ffffff;
  --diagram-surface-soft: #f8fafc;
  --diagram-surface-muted: #f1f5f9;
  --diagram-border: #cbd5e1;
  --diagram-border-soft: #e2e8f0;
  --diagram-row: #e8edf2;
}

/* Auto-dark by default via system preference unless user selected light manually */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:       #13c7ba;
    --brand-dim:   rgba(19, 199, 186, 0.24);
    --brand-glow:  rgba(19, 199, 186, 0.32);
    --bg-page:     #0a141b;
    --bg-sidebar:  rgba(15, 27, 37, 0.62);
    --bg-card:     rgba(21, 34, 46, 0.62);
    --bg-raised:   rgba(25, 40, 54, 0.76);
    --bg-input:    rgba(24, 43, 58, 0.70);
    --bg-hover:    rgba(19, 199, 186, 0.10);
    --border:      rgba(146, 196, 220, 0.17);
    --border-med:  rgba(146, 196, 220, 0.27);
    --text:        #e7f2f8;
    --text-dim:    #bad1df;
    --text-muted:  #88a8bc;
    --green:       #48d18c;
    --green-bg:    rgba(72, 209, 140, 0.22);
    --orange:      #ffba66;
    --orange-bg:   rgba(255, 186, 102, 0.22);
    --red:         #ff7e8c;
    --red-bg:      rgba(255, 126, 140, 0.22);
    --blue:        #7db4ff;
    --blue-bg:     rgba(125, 180, 255, 0.22);
    --purple:      #b29bff;
    --purple-bg:   rgba(178, 155, 255, 0.22);
    --ghost-bg:    rgba(255,255,255,0.06);
    --ghost-bg-hover: rgba(255,255,255,0.10);
    --fg-dim:      var(--text-dim);
    --fg-muted:    var(--text-muted);
    --shadow:      0 14px 34px rgba(0, 0, 0, 0.34), 0 2px 6px rgba(0,0,0,0.26);
    --shadow-lg:   0 24px 64px rgba(0, 0, 0, 0.46);
    --surface-glow: rgba(19, 199, 186, 0.22);
    --surface-sheen: rgba(255, 255, 255, 0.14);
    --surface-top-edge: color-mix(in srgb, var(--brand) 36%, var(--border));
    --glass-blur: saturate(155%) blur(16px);
    --diagram-panel: rgba(16, 184, 167, 0.10);
    --diagram-surface: #2f3741;
    --diagram-surface-soft: #2a313a;
    --diagram-surface-muted: #353e49;
    --diagram-border: rgba(255, 255, 255, 0.18);
    --diagram-border-soft: rgba(255, 255, 255, 0.12);
    --diagram-row: rgba(255, 255, 255, 0.10);
  }
}

/* Explicit manual theme selection */
:root[data-theme="dark"] {
  --brand:       #13c7ba;
  --brand-dim:   rgba(19, 199, 186, 0.24);
  --brand-glow:  rgba(19, 199, 186, 0.32);
  --bg-page:     #0a141b;
  --bg-sidebar:  rgba(15, 27, 37, 0.62);
  --bg-card:     rgba(21, 34, 46, 0.62);
  --bg-raised:   rgba(25, 40, 54, 0.76);
  --bg-input:    rgba(24, 43, 58, 0.70);
  --bg-hover:    rgba(19, 199, 186, 0.10);
  --border:      rgba(146, 196, 220, 0.17);
  --border-med:  rgba(146, 196, 220, 0.27);
  --text:        #e7f2f8;
  --text-dim:    #bad1df;
  --text-muted:  #88a8bc;
  --green:       #48d18c;
  --green-bg:    rgba(72, 209, 140, 0.22);
  --orange:      #ffba66;
  --orange-bg:   rgba(255, 186, 102, 0.22);
  --red:         #ff7e8c;
  --red-bg:      rgba(255, 126, 140, 0.22);
  --blue:        #7db4ff;
  --blue-bg:     rgba(125, 180, 255, 0.22);
  --purple:      #b29bff;
  --purple-bg:   rgba(178, 155, 255, 0.22);
  --ghost-bg:    rgba(255,255,255,0.06);
  --ghost-bg-hover: rgba(255,255,255,0.10);
  --fg-dim:      var(--text-dim);
  --fg-muted:    var(--text-muted);
  --shadow:      0 14px 34px rgba(0, 0, 0, 0.34), 0 2px 6px rgba(0,0,0,0.26);
  --shadow-lg:   0 24px 64px rgba(0, 0, 0, 0.46);
  --surface-glow: rgba(19, 199, 186, 0.22);
  --surface-sheen: rgba(255, 255, 255, 0.14);
  --surface-top-edge: color-mix(in srgb, var(--brand) 36%, var(--border));
  --glass-blur: saturate(155%) blur(16px);
  --diagram-panel: rgba(16, 184, 167, 0.10);
  --diagram-surface: #2f3741;
  --diagram-surface-soft: #2a313a;
  --diagram-surface-muted: #353e49;
  --diagram-border: rgba(255, 255, 255, 0.18);
  --diagram-border-soft: rgba(255, 255, 255, 0.12);
  --diagram-row: rgba(255, 255, 255, 0.10);
}

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

body {
  margin: 0;
  font-family: "SF Pro Text", "SF Pro Display", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(19, 199, 186, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(19, 199, 186, 0.11), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%);
  z-index: 0;
}

a { color: var(--brand); text-decoration: none; }
a:hover { opacity: 0.82; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.4rem; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 0.65rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

/* =================================================================
   APP SHELL — sidebar + main
   ================================================================= */

.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ——— Sidebar ——— */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  box-shadow: 10px 0 32px rgba(7, 22, 30, 0.12);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid color-mix(in srgb, var(--brand) 56%, transparent);
  text-decoration: none;
}

.sidebar-logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 94%, #b7f2ec 6%) 0%, #0d7f77 100%);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: #ffffff; font-weight: 900;
  flex-shrink: 0;
  letter-spacing: -0.05em;
}

.sidebar-logo-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.sidebar-logo-name em {
  font-style: normal;
  color: var(--brand);
  font-weight: 800;
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0 0.75rem;
}

.nav-section { margin-bottom: 0.25rem; }

.nav-label {
  padding: 0.7rem 1.1rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.48rem 1.1rem;
  color: var(--text-dim);
  font-size: 0.83rem;
  font-weight: 500;
  transition: color 0.16s, background 0.16s, border-color 0.16s, box-shadow 0.16s;
  border-left: 2px solid transparent;
  margin: 1px 0;
  opacity: 1;
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-left-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 26%, transparent);
  opacity: 1;
}

.nav-link.active {
  color: var(--brand);
  background: var(--brand-dim);
  border-left-color: var(--brand);
  font-weight: 650;
}

.nav-link svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-link.active svg { opacity: 1; }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.1rem;
}

.sidebar-user-email {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-signout-form { margin: 0; }

.sidebar-signout-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.13s;
}
.sidebar-signout-btn:hover { color: var(--red); }

/* ——— Main area ——— */
.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ——— Topbar ——— */
.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(8, 29, 42, 0.14);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  padding: 0 1.6rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-crumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.topbar-crumb a { color: var(--text-dim); }
.topbar-crumb a:hover { color: var(--text); opacity: 1; }
.topbar-crumb .sep { color: var(--text-muted); font-size: 0.75rem; }
.topbar-crumb .here { color: var(--text); font-weight: 600; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-med);
  background: var(--bg-input);
}

.theme-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.theme-btn.active {
  color: var(--text);
  border-color: var(--border-med);
  background: var(--bg-card);
}

/* ——— Content ——— */
.content {
  flex: 1;
  padding: 1.5rem 1.6rem 3rem;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

/* =================================================================
   PAGE HEADER
   ================================================================= */

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.15rem;
}

.page-sub {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: 0;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* =================================================================
   STAT TILES
   ================================================================= */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 86%, #ffffff 14%), color-mix(in srgb, var(--bg-card) 94%, #ffffff 6%));
  border: 1px solid color-mix(in srgb, var(--surface-top-edge) 70%, var(--border));
  border-top: 2px solid color-mix(in srgb, var(--brand) 42%, transparent);
  border-radius: var(--r-lg);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow), inset 0 1px 0 var(--surface-sheen);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.stat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(170px 90px at 92% -10%, var(--surface-glow), transparent 70%);
  opacity: 0.82;
}

.stat-tile:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent), var(--shadow-lg);
  transform: translateY(-1px);
}

.stat-tile-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.stat-tile-val {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.stat-tile-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-tile.s-green  { border-color: rgba(34, 199, 142, 0.28); }
.stat-tile.s-orange { border-color: rgba(245, 166, 35, 0.28); }
.stat-tile.s-red    { border-color: rgba(243, 78, 92, 0.28); }
.stat-tile.s-blue   { border-color: rgba(77, 158, 247, 0.28); }
.stat-tile.s-green  .stat-tile-val { color: var(--green); }
.stat-tile.s-orange .stat-tile-val { color: var(--orange); }
.stat-tile.s-red    .stat-tile-val { color: var(--red); }
.stat-tile.s-blue   .stat-tile-val { color: var(--blue); }

/* =================================================================
   CARDS
   ================================================================= */

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 86%, #ffffff 14%), color-mix(in srgb, var(--bg-card) 94%, #ffffff 6%));
  border: 1px solid color-mix(in srgb, var(--surface-top-edge) 68%, var(--border));
  border-top: 2px solid color-mix(in srgb, var(--brand) 34%, transparent);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow), inset 0 1px 0 var(--surface-sheen);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px 100px at 92% -12%, var(--surface-glow), transparent 72%);
  opacity: 0.8;
}

.card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 46%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 26%, transparent), var(--shadow-lg);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.card-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0.1rem 0 0;
}

.detail-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0.85rem;
}

.detail-box {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 88%, #ffffff 12%), color-mix(in srgb, var(--bg-card) 92%, #ffffff 8%));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  border-radius: 12px;
  padding: 0.9rem 1rem;
  min-height: 88px;
  box-shadow: inset 0 1px 0 var(--surface-sheen);
}

.detail-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}

.detail-box-value {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

/* Grid layouts */
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.2rem; }
.g4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1.2rem; }
.auto-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; align-items: stretch; }
.auto-cards-tight { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.85rem; align-items: stretch; }
.flex-cards { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
.flex-cards > * { flex: 1 1 260px; min-width: min(100%, 260px); }
.card-fluid { height: 100%; display: flex; flex-direction: column; }
.card-accent-orange { border: 2px solid var(--orange); }
.card-section { margin-top: 1rem; }
.section-pad-bottom-sm { padding: 0 0 0.25rem; }
.section-pad-vert-sm { padding: 0.25rem 0 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.inline-form { margin: 0; }
.form-contents { display: contents; }

.flex-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stack-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.stack-compact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.icon-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.icon-label svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.text-strong-sm {
  font-size: 0.9rem;
}

.badge-spaced { margin-right: 0.3rem; }
.badge-offset { margin-left: 0.2rem; }
.badge-offset-lg { margin-left: 0.35rem; }
.badge-mini { font-size: 0.65rem; }
.badge-wide { font-size: 0.78rem; padding: 0.35rem 0.75rem; }

.installer-panel {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border-med));
  border-radius: 14px;
  padding: 1rem 1.15rem 1.15rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 88%, #ffffff 12%), color-mix(in srgb, var(--bg-card) 94%, #ffffff 6%));
  box-shadow:
    0 16px 34px rgba(11, 36, 51, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.installer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(160px 80px at 95% -8%, var(--brand-glow), transparent 70%);
  opacity: 0.85;
}

.installer-panel:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border-med));
  box-shadow:
    0 22px 42px rgba(11, 36, 51, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.installer-panel > * {
  position: relative;
  z-index: 1;
}

.installer-grid {
  gap: 1.15rem;
}

.installer-panel-topline {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.installer-panel-head {
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.installer-panel-title {
  display: block;
  font-size: 0.98rem;
}

.installer-panel-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.installer-panel-icon-wrap {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
}

.installer-panel-icon-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.installer-panel-copy {
  margin-bottom: 0.85rem;
}

.installer-panel-hint {
  margin-bottom: 0.5rem;
}

.installer-panel--windows {
  border-top: 3px solid var(--blue);
}

.installer-panel--linux {
  border-top: 3px solid var(--green);
}

.agents-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.agents-how-step {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, var(--bg-raised), rgba(255,255,255,0));
  animation: agents-how-rise 0.55s ease both;
}

.agents-how-step::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16,185,129,0.16), rgba(16,185,129,0));
  pointer-events: none;
}

.agents-how-step-install { animation-delay: 0.02s; }
.agents-how-step-approve { animation-delay: 0.12s; }
.agents-how-step-monitor { animation-delay: 0.22s; }

.agents-how-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.agents-how-title {
  margin: 0 0 0.35rem;
  font-size: 0.96rem;
}

.agents-how-copy {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.diagram-svg {
  width: 100%;
  height: auto;
  display: block;
}

.agents-how-diagram {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

.agents-how-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.process-legend {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.process-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-dim);
  border: 1.2px solid var(--brand);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}

/* =================================================================
   TABLES
   ================================================================= */

.table-wrap { overflow-x: auto; }

.table-wrap {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
  background: color-mix(in srgb, var(--bg-card) 92%, #ffffff 8%);
  box-shadow: inset 0 1px 0 var(--surface-sheen), 0 8px 18px rgba(11, 36, 51, 0.08);
}

.dt {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.dt th {
  padding: 0.55rem 1rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 95%, #ffffff 5%), color-mix(in srgb, var(--bg-card) 90%, #ffffff 10%));
  border-bottom: 1px solid var(--border-med);
  white-space: nowrap;
}

.dt td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.dt tr:last-child td { border-bottom: none; }
.dt tbody tr:hover {
  background: color-mix(in srgb, var(--bg-hover) 75%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 14%, transparent);
}
.dt td a { color: var(--text); font-weight: 500; }
.dt td a:hover { color: var(--brand); opacity: 1; }
.dt .cell-muted { color: var(--text-dim); font-size: 0.78rem; }
.dt .cell-mono { font-family: "Cascadia Code","Fira Code",monospace; font-size: 0.76rem; color: var(--text-dim); }
.dt tbody tr.table-row-link { cursor: pointer; }
.dt tbody tr.table-row-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  background: var(--bg-hover);
}

/* =================================================================
   STATUS INDICATORS
   ================================================================= */

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
}
.dot.green  { background: var(--green);  box-shadow: 0 0 0 3px var(--green-bg); }
.dot.orange { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-bg); }
.dot.red    { background: var(--red);    box-shadow: 0 0 0 3px var(--red-bg); }
.dot.grey   { background: var(--text-muted); }

/* Legacy aliases */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.status-dot.green  { background: var(--green);  box-shadow: 0 0 0 3px var(--green-bg); }
.status-dot.orange { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-bg); }
.status-dot.red    { background: var(--red);    box-shadow: 0 0 0 3px var(--red-bg); }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge.green    { background: var(--green-bg);  color: var(--green);  }
.badge.orange   { background: var(--orange-bg); color: var(--orange); }
.badge.red      { background: var(--red-bg);    color: var(--red);    }
.badge.blue     { background: var(--blue-bg);   color: var(--blue);   }
.badge.purple   { background: var(--purple-bg); color: var(--purple); }
.badge.grey     { background: rgba(0,0,0,0.06); color: var(--text-dim); }

.node-status-ribbon {
  margin-top: 0.8rem;
}

.node-window-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.window-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-med);
  border-radius: 4px;
  background: var(--bg-raised);
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.window-chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border-med));
}

.window-chip.is-active {
  border-color: color-mix(in srgb, var(--brand) 52%, transparent);
  background: color-mix(in srgb, var(--brand) 14%, var(--bg-raised));
  color: var(--text);
}

.nsr-track {
  position: relative;
  width: 100%;
  min-height: 26px;
  border-radius: 0;
  background: color-mix(in srgb, var(--bg-raised) 68%, var(--border));
  border: 1px solid var(--border-med);
  overflow: hidden;
}

.nsr-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.95;
  transition: opacity 0.14s ease, filter 0.14s ease;
}

.nsr-segment:hover,
.nsr-segment:focus-visible {
  opacity: 1;
  filter: brightness(1.05);
  z-index: 2;
  outline: 2px solid color-mix(in srgb, var(--brand) 62%, transparent);
  outline-offset: -2px;
}

.nsr-segment.up { background: var(--green); }
.nsr-segment.down { background: var(--red); }
.nsr-segment.high-latency { background: var(--orange); }
.nsr-segment.not-monitored { background: color-mix(in srgb, var(--text-muted) 78%, var(--bg-card)); }
.nsr-segment.no-data {
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--text-muted) 74%, var(--bg-card)) 0 5px,
    color-mix(in srgb, var(--bg-raised) 92%, var(--text-muted)) 5px 10px
  );
}

.nsr-segment.is-dimmed {
  opacity: 0.22;
  filter: grayscale(0.25);
}

.nsr-tooltip {
  position: fixed;
  z-index: 1100;
  max-width: min(340px, 90vw);
  pointer-events: none;
  white-space: pre-wrap;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-med);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  font-size: 0.74rem;
  line-height: 1.45;
}

.node-ribbon-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
  margin-bottom: 0.8rem;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.legend-chip.all {
  background: color-mix(in srgb, var(--bg-raised) 84%, var(--border));
  color: var(--text-dim);
}

.legend-chip.is-active {
  border-color: color-mix(in srgb, var(--brand) 58%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 16%, transparent);
}

.legend-chip.is-muted {
  opacity: 0.45;
}

.legend-chip.up {
  background: var(--green-bg);
  color: var(--green);
}

.legend-chip.down {
  background: var(--red-bg);
  color: var(--red);
}

.legend-chip.high-latency {
  background: var(--orange-bg);
  color: var(--orange);
}

.legend-chip.not-monitored {
  background: rgba(0,0,0,0.06);
  color: var(--text-dim);
}

.legend-chip.no-data {
  background: color-mix(in srgb, var(--bg-raised) 88%, var(--border));
  color: var(--text-dim);
  border-style: dashed;
}

.node-ribbon-empty {
  margin: 0;
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.node-ribbon-overview {
  position: relative;
  margin-top: 0.45rem;
  height: 24px;
  border: 1px solid var(--border-med);
  background: color-mix(in srgb, var(--bg-raised) 80%, var(--border));
  overflow: hidden;
  cursor: crosshair;
}

.node-ribbon-overview-track {
  position: absolute;
  inset: 0;
}

.node-ribbon-overview-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  opacity: 0.95;
}

.node-ribbon-overview-segment.up { background: var(--green); }
.node-ribbon-overview-segment.down { background: var(--red); }
.node-ribbon-overview-segment.high-latency { background: var(--orange); }
.node-ribbon-overview-segment.not-monitored { background: color-mix(in srgb, var(--text-muted) 78%, var(--bg-card)); }
.node-ribbon-overview-segment.no-data {
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--text-muted) 74%, var(--bg-card)) 0 4px,
    color-mix(in srgb, var(--bg-raised) 92%, var(--text-muted)) 4px 8px
  );
}

.node-ribbon-overview-selection {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 2px solid #2563eb;
  background: repeating-linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.28) 0 8px,
    rgba(255, 255, 255, 0.08) 8px 16px
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.node-ribbon-overview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.42rem;
  margin-bottom: 0.2rem;
}

.node-ribbon-overview-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.node-status-breakdown {
  margin-bottom: 0.85rem;
}

.node-status-breakdown-track {
  display: flex;
  width: 100%;
  min-height: 12px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-med);
  background: color-mix(in srgb, var(--bg-raised) 80%, var(--border));
}

.node-status-breakdown-segment {
  min-width: 2px;
}

.node-status-breakdown-segment.up { background: var(--green); }
.node-status-breakdown-segment.down { background: var(--red); }
.node-status-breakdown-segment.high-latency { background: var(--orange); }
.node-status-breakdown-segment.not-monitored { background: color-mix(in srgb, var(--text-muted) 78%, var(--bg-card)); }
.node-status-breakdown-segment.no-data {
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--text-muted) 74%, var(--bg-card)) 0 5px,
    color-mix(in srgb, var(--bg-raised) 92%, var(--text-muted)) 5px 10px
  );
}

.node-status-breakdown-labels {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem 0.7rem;
}

.node-status-breakdown-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.node-status-breakdown-label-btn {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  padding: 0.15rem 0.25rem;
}

.node-status-breakdown-label-btn.is-active {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.node-status-breakdown-label-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 52%, transparent);
  outline-offset: 1px;
}

.node-status-breakdown-label strong {
  color: var(--text);
}

.node-filter-hint {
  margin: 0 0 0.75rem;
  font-size: 0.73rem;
  color: var(--text-dim);
}

.node-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-card {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: var(--r);
  padding: 0.72rem 0.78rem;
}

.metric-title {
  margin: 0;
  font-size: 0.83rem;
}

.metric-caption {
  margin: 0.2rem 0 0.58rem;
  color: var(--text-dim);
  font-size: 0.72rem;
}

.metric-compare {
  display: grid;
  gap: 0.45rem;
}

.metric-compare-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.metric-row-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.metric-row-value {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 600;
}

.metric-meter {
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border-med);
  background: color-mix(in srgb, var(--bg-soft) 86%, var(--border));
  overflow: hidden;
}

.metric-fill {
  display: block;
  height: 100%;
}

.metric-fill.current {
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 65%, transparent), var(--brand));
}

.metric-fill.avg {
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 62%, transparent), var(--blue));
}

.metric-progress {
  display: grid;
  gap: 0.38rem;
}

.metric-progress-track {
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--border-med);
  background: color-mix(in srgb, var(--bg-soft) 86%, var(--border));
  overflow: hidden;
}

.metric-progress-fill {
  display: block;
  height: 100%;
}

.metric-progress-fill.availability {
  background: linear-gradient(90deg, #2f9963, #67c58f);
}

.metric-progress-fill.coverage {
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
}

.metric-progress-fill.failures {
  background: linear-gradient(90deg, #e07c2f, #c73434);
}

.metric-progress-value {
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .node-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Role preset pills (administrators invite modal) */
.role-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid var(--border-med);
  background: var(--bg-input);
  color: var(--text-dim);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.role-pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Reachability pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.status-pill.reachable   { background: var(--green-bg);  color: var(--green); }
.status-pill.blocked     { background: var(--orange-bg); color: var(--orange); }
.status-pill.unreachable { background: var(--red-bg);    color: var(--red); }

/* =================================================================
   BUTTONS
   ================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 0.48rem 1rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: filter 0.16s, opacity 0.16s, border-color 0.16s, box-shadow 0.16s, transform 0.16s;
  white-space: nowrap;
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  opacity: 0.85;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn:hover { filter: brightness(1.1); opacity: 1; }
.btn:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 24%, transparent);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }

.btn-primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 92%, #9ffff5 8%), color-mix(in srgb, var(--brand) 74%, #006f66 26%));
  color: #ffffff;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 24%, transparent), inset 0 1px 0 rgba(255,255,255,0.34);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost   {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 92%, #ffffff 8%), color-mix(in srgb, var(--ghost-bg) 82%, transparent));
  color: var(--text-dim);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border-med));
  box-shadow: inset 0 1px 0 var(--surface-sheen);
}
.btn-ghost:hover { background: var(--ghost-bg-hover); color: var(--text); filter: none; }
.btn-danger  {
  background: linear-gradient(180deg, color-mix(in srgb, var(--red-bg) 88%, #ffffff 12%), var(--red-bg));
  color: var(--red);
  border: 1px solid rgba(243,78,92,0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.btn-danger:hover { background: var(--red); color: #fff; filter: none; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.76rem; }
.btn-xs { padding: 0.2rem 0.55rem; font-size: 0.72rem; border-radius: 5px; }
.btn-link-bare { background: none; border: none; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; font: inherit; }
.btn-link-bare:hover { color: var(--brand-dark, #006f66); }

/* =================================================================
   FORMS
   ================================================================= */

.field { margin-bottom: 0.9rem; }

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-raised) 85%, #ffffff 15%), var(--bg-input));
  border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--border-med));
  border-radius: var(--r);
  padding: 0.5rem 0.7rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: inset 0 1px 0 var(--surface-sheen);
}

input,
select,
textarea {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border-med));
  transform: translateY(-0.5px);
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--brand) 60%, var(--border-med));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 24%, transparent);
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }


.field textarea { resize: vertical; min-height: 76px; }
.field select { cursor: pointer; }
.field-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }
.field-label-strong { font-weight: 600; margin-bottom: 0.4rem; }
.field-role { margin-bottom: 0.75rem; }
.field-role .field-hint { margin-top: 0.35rem; }

.perm-select {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  border: 1px solid var(--border-med);
  background: var(--bg-input);
  color: var(--text);
  cursor: pointer;
}

.perm-select-wide {
  width: 100%;
  padding: 0.45rem 0.6rem;
}

/* Timezone selectors: compact inline */
.tz-select {
  border: 1px solid var(--border-med);
  border-radius: 5px;
  background: var(--bg-raised);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border 100ms ease, box-shadow 100ms ease, background 100ms ease;
  min-width: 150px;
  max-width: 260px;
}
.tz-select:hover {
  border-color: var(--border);
  background: var(--bg-input);
}
.tz-select:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 167, 154, 0.15);
  border-color: var(--brand);
}
.tz-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Timezone selectors: full-width form-field */
.tz-select-full {
  border: 1px solid var(--border-med);
  border-radius: 6px;
  background: var(--bg-raised);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border 100ms ease, box-shadow 100ms ease, background 100ms ease;
  width: 100%;
}
.tz-select-full:hover {
  border-color: var(--border);
  background: var(--bg-input);
}
.tz-select-full:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 167, 154, 0.15);
  border-color: var(--brand);
}
.tz-select-full:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.role-presets {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.is-hidden { display: none; }

.details-block {
  margin-bottom: 1rem;
}

.details-summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.3rem 0;
  user-select: none;
}

.reference-list {
  list-style: none;
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
}

/* Inline row for form + button */
.form-inline { display: flex; gap: 0.7rem; align-items: flex-end; flex-wrap: wrap; }
.form-inline .field { flex: 1; min-width: 180px; margin-bottom: 0; }

/* =================================================================
   FLASH / ALERTS
   ================================================================= */

.flash {
  background: var(--blue-bg);
  border: 1px solid rgba(77,158,247,0.2);
  border-radius: var(--r);
  padding: 0.7rem 1rem;
  font-size: 0.83rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.deletion-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--red-bg);
  border: 1px solid rgba(243,78,92,.25);
  border-radius: var(--r);
  padding: 0.75rem 1.1rem;
  font-size: 0.83rem;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.deletion-banner-link {
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.deletion-banner-link:hover { text-decoration: underline; }

.site-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--blue-bg);
  border: 1px solid rgba(37,99,235,0.24);
  border-radius: var(--r);
  padding: 0.75rem 1.1rem;
  font-size: 0.83rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.site-banner[data-severity="information"] {
  background: var(--blue-bg);
  border-color: rgba(37,99,235,0.24);
  color: var(--blue);
}

.site-banner[data-severity="warning"] {
  background: var(--orange-bg);
  border-color: rgba(180,83,9,0.24);
  color: var(--orange);
}

.site-banner[data-severity="error"] {
  background: var(--red-bg);
  border-color: rgba(220,38,38,0.24);
  color: var(--red);
}

.site-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.site-banner-msg { flex: 1; }
.site-banner-close {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  padding: 0 0.25rem;
  opacity: 0.75;
}
.site-banner-close:hover { opacity: 1; }

.alert-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--red-bg);
  border: 1px solid rgba(243,78,92,0.18);
  border-radius: var(--r);
  font-size: 0.83rem;
}
.alert-row + .alert-row { margin-top: 0.5rem; }
.alert-row strong { color: var(--text); }
.alert-meta { color: var(--text-dim); font-size: 0.76rem; margin-left: auto; white-space: nowrap; }

/* =================================================================
   EMPTY STATES
   ================================================================= */

.empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-dim);
}
.empty-icon { font-size: 1.8rem; margin-bottom: 0.5rem; opacity: 0.35; }
.empty p { font-size: 0.83rem; margin: 0; }

/* =================================================================
   DIALOGS / MODALS
   ================================================================= */

dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  padding: 1.4rem 1.5rem;
  width: min(580px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
}

dialog::backdrop {
  background: rgba(15, 30, 50, 0.45);
  backdrop-filter: blur(4px);
}

.discovery-modal {
  width: min(920px, 95vw);
}

.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-title { font-size: 1rem; font-weight: 600; margin: 0; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: var(--r);
}
.modal-close:hover { color: var(--text); background: var(--bg-hover); }
.modal-ft { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.25rem; }

.discovery-readonly {
  margin: 0;
  padding-top: 0.4rem;
}

.discovery-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.discovery-or {
  white-space: nowrap;
  font-size: 0.875rem;
}

.text-danger {
  color: var(--red);
}

/* =================================================================
   CODE / TOKENS
   ================================================================= */

code {
  font-family: "Cascadia Code","Fira Code","Consolas",monospace;
  font-size: 0.8rem;
  background: rgba(0,158,142,0.07);
  border: 1px solid rgba(0,158,142,0.14);
  color: var(--brand);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  word-break: break-all;
}

.token-display {
  display: flex;
  align-items: center;
  background: rgba(0,158,142,0.05);
  border: 1px solid rgba(0,158,142,0.2);
  border-radius: var(--r);
  padding: 0.5rem 0.75rem;
  gap: 0.6rem;
  font-family: "Cascadia Code","Fira Code",monospace;
  font-size: 0.78rem;
  color: var(--brand);
  word-break: break-all;
}

/* =================================================================
   DANGER ZONE
   ================================================================= */

.danger-zone {
  border: 1px solid rgba(243,78,92,0.18);
  border-radius: var(--r-lg);
  padding: 1rem 1.2rem;
  background: rgba(243,78,92,0.04);
}
.danger-zone-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--red);
  margin-bottom: 0.35rem;
}

/* =================================================================
   CHART
   ================================================================= */

.chart-wrap {
  width: 100%;
  height: auto;
  min-height: 180px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.4rem;
  overflow-x: auto;
}
.chart-wrap svg { display: block; }

.chart-wrap-spaced {
  margin-top: 0.25rem;
}

.g-nodestats {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.2rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr auto;
  gap: 0.9rem;
  align-items: end;
}

.form-grid-scan {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(220px, 1.4fr) minmax(220px, 1.4fr) auto;
  gap: 0.9rem;
  align-items: start;
}

.form-grid-scan .field {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 0;
}

.form-actions-end {
  display: flex;
  align-items: flex-end;
  min-height: 100%;
}

.scan-job-box {
  /* ── Tab navigation ─────────────────────────────────────────────────── */
  .tab-bar {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
  }
  .tab-btn {
    padding: 8px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: var(--text-dim);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: -1px;
    transition: color 120ms;
  }
  .tab-btn.active {
    color: var(--text);
    border-bottom-color: var(--accent, #53b67f);
  }
  .tab-btn:hover { color: var(--text); }
  .tab-panel.hidden { display: none; }
  /* ── Checkbox column ─────────────────────────────────────────────────── */
  .col-check {
    width: 36px;
    text-align: center;
  }
  /* ── Scan form grid ──────────────────────────────────────────────────── */
  .form-grid-scan {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    align-items: end;
    padding: 1rem 0;
  }
  .form-grid-scan .field-wide { grid-column: 1 / -1; }
  .form-grid-scan .form-actions-end { justify-self: end; }
  @media (max-width: 640px) { .form-grid-scan { grid-template-columns: 1fr; } .form-grid-scan .form-actions-end { justify-self: start; } }

  display: grid;
  gap: 0.5rem;
}

.scan-progress {
  width: 100%;
  height: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.scan-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1f8e56, #53b67f);
  transition: width 220ms ease;
}

.scan-status-spinner {
  display: inline-block;
  width: 0.82rem;
  height: 0.82rem;
  margin-left: 0.3rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  vertical-align: text-bottom;
  animation: spin 0.9s linear infinite;
}

.scan-site-select {
  min-width: 120px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  padding: 0 0.4rem;
}

/* =================================================================
   STAT LIST
   ================================================================= */

.stat-list { list-style: none; display: grid; gap: 0.55rem; }
.stat-list li { display: flex; align-items: center; justify-content: space-between; font-size: 0.83rem; }
.stat-list .k { color: var(--text-dim); }
.stat-list .v { font-weight: 600; }

.stat-list-inline {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.8rem;
}

.stat-list-inline li {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.5rem 0.6rem;
}

@media (max-width: 980px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .form-grid-scan {
    grid-template-columns: 1fr;
  }

  .form-actions-end {
    align-items: stretch;
  }

  .stat-list-inline {
    grid-template-columns: 1fr 1fr;
  }
}

/* =================================================================
   WIZARD
   ================================================================= */

.wizard-bar {
  display: flex;
  border-bottom: 1px solid var(--border-med);
  margin-bottom: 1.5rem;
  overflow: hidden;
  scrollbar-width: none;
}
.wizard-bar::-webkit-scrollbar { display: none; }
.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.wizard-step .step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}
.wizard-step.active { color: var(--brand); border-bottom-color: var(--brand); }
.wizard-step.active .step-num { background: var(--brand-dim); color: var(--brand); }
.wizard-step.done   { color: var(--green); }
.wizard-step.done   .step-num { background: var(--green-bg); color: var(--green); }

/* =================================================================
   PLAN CARDS (Financial)
   ================================================================= */

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-bottom: 1.5rem; }

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.35rem;
  position: relative;
  box-shadow: var(--shadow);
}
.plan-card.current { border-color: var(--brand); }

.plan-current-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
}

.plan-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.plan-price { font-size: 1.9rem; font-weight: 800; color: var(--text); margin-bottom: 0.05rem; }
.plan-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-dim); }
.plan-features { list-style: none; margin: 0.9rem 0 1rem; display: grid; gap: 0.45rem; }
.plan-features li { display: flex; gap: 0.45rem; font-size: 0.8rem; align-items: flex-start; }
.plan-features li::before { content: "✓"; color: var(--green); flex-shrink: 0; font-weight: 700; }

/* =================================================================
   PUBLIC PAGES (landing, login) — no sidebar
   ================================================================= */

.pub-shell {
  min-height: 100vh;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
}

.pub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}

.pub-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}
.pub-logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #00c4b2 0%, #007a6e 100%);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #ffffff; font-weight: 900;
}

.pub-body {
  flex: 1;
  padding: 3rem 2rem 4rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* Landing */
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
.hero-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 26ch;
  margin-bottom: 0.75rem;
}
.hero-lede {
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 1.35rem;
  font-size: 0.95rem;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2.5rem 0;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.feat-card h3 { font-size: 0.92rem; margin-bottom: 0.3rem; }
.feat-card p  { font-size: 0.82rem; color: var(--text-dim); margin: 0; }

.steps-list { list-style: none; display: grid; gap: 0.85rem; }
.steps-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-dim);
  border: 1px solid rgba(0,158,142,0.2);
  color: var(--brand); font-size: 0.72rem; font-weight: 700;
  flex-shrink: 0; margin-top: 0.1rem;
}
.steps-list p { font-size: 0.83rem; color: var(--text-dim); margin: 0.1rem 0 0; }

/* Login/Register */
body.auth-light {
  --bg-page: #f4f8fc;
  --bg-card: #ffffff;
  --bg-raised: #ffffff;
  --bg-input: #f8fbff;
  --border: rgba(10, 49, 65, 0.14);
  --border-med: rgba(10, 49, 65, 0.22);
  --text: #0f2330;
  --text-dim: #415f74;
  --text-muted: #6f8798;
  --shadow: 0 12px 30px rgba(11, 36, 51, 0.10), 0 1px 4px rgba(11, 36, 51, 0.08);
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-page);
}
.auth-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1rem;
  margin-bottom: 2rem;
}
.auth-logo-mark {
  width: 32px; height: 32px; background: linear-gradient(135deg, #00c4b2 0%, #007a6e 100%); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #ffffff; font-weight: 900;
}
.auth-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  width: min(680px, 100%);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.auth-card h2 { font-size: 1.05rem; margin-bottom: 1.1rem; }

/* =================================================================
   UTILITIES
   ================================================================= */

.flex   { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.w-full { width: 100%; }

.text-dim    { color: var(--text-dim); }
.text-muted  { color: var(--text-muted); }
.text-green  { color: var(--green); }
.text-orange { color: var(--orange); }
.text-red    { color: var(--red); }
.text-sm     { font-size: 0.8rem; }
.text-xs     { font-size: 0.72rem; }
.font-mono   { font-family: "Cascadia Code","Fira Code",monospace; }
.font-bold   { font-weight: 700; }
.text-center { text-align: center; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted-mini  { font-size: 0.75rem; color: var(--text-muted); }

.subtle-copy { margin-bottom: 1rem; }
.subtle-copy-sm { margin-bottom: 0.9rem; }
.subtle-top { margin-top: 0.35rem; }
.subtle-top-sm { margin-top: 0.25rem; }
.subtle-top-md { margin-top: 0.45rem; }
.subtle-top-lg { margin-top: 0.7rem; }
.inline-link { color: var(--brand); }
.w-auto { width: auto; }

/* Inline delete confirm */
.inline-confirm { display: grid; gap: 0.5rem; }

.footer-bar {
  padding: 1rem 1.6rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.footer-link {
  color: var(--fg-dim);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--brand);
  opacity: 1;
}

/* Feedback button in footer (desktop) */
.feedback-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0.42rem 1rem;
  border: 1px solid var(--border-med);
  border-radius: var(--r-xl);
  background: var(--ghost-bg);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.feedback-fab:hover {
  background: var(--ghost-bg-hover);
  color: var(--text);
  filter: none;
}

.feedback-fab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Mobile: fixed position for small screens */
.feedback-fab-mobile {
  display: none;
}

@media (max-width: 640px) {
  .feedback-fab {
    display: none;
  }
  .feedback-fab-mobile {
    display: inline-flex;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 1rem;
    border: 1px solid var(--border-med);
    border-radius: var(--r-xl);
    background: var(--ghost-bg);
    color: var(--text-dim);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
  }
  .feedback-fab-mobile:hover {
    background: var(--ghost-bg-hover);
    color: var(--text);
    filter: none;
  }
  .feedback-fab-mobile:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }
}

.owner-shell {
  display: block;
  min-height: 100vh;
}

.owner-main {
  margin-left: 0;
  max-width: 1320px;
  width: 100%;
  padding: 1rem 1rem 1.4rem;
}

.owner-topbar {
  border-radius: 12px;
}

.owner-content {
  padding-left: 0;
  padding-right: 0;
}

.page-head-tight {
  margin-top: 0.8rem;
}

.owner-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.owner-login-card {
  width: min(460px, 100%);
  padding: 1.2rem 1.2rem 1rem;
}

.flash-warning {
  background: var(--orange-bg);
  border-color: rgba(245, 166, 35, 0.2);
  color: var(--orange);
}

.flash-danger {
  background: var(--red-bg);
  border-color: rgba(243, 78, 92, 0.2);
  color: var(--red);
}

.flash-success {
  background: var(--green-bg);
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--green);
}

.flash-neutral {
  background: var(--bg-card);
  border-color: var(--border-med);
  color: var(--text-muted);
}

.callout-spaced {
  margin-bottom: 1.25rem;
}

.table-cell-xs {
  width: 2rem;
}

.table-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dot-tight {
  margin: 0;
}

.actions-end {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.actions-inline {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.actions-inline-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.badge-default-site { margin-left: 0.4rem; font-size: 0.7rem; }

.sortable {
  cursor: pointer;
  user-select: none;
}

.form-select-compact {
  background: var(--bg-input);
  border: 1px solid var(--border-med);
  border-radius: var(--r);
  padding: 0.3rem 0.55rem;
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  outline: none;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.stat-value-sm { font-size: 0.9rem; }
.stat-value-md { font-size: 1rem; }
.stat-value-mono {
  font-size: 1.1rem;
  font-family: "Cascadia Code","Fira Code",monospace;
}

.cell-note {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.35;
}

.status-chip {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  font-weight: 600;
}

.status-chip.red {
  background: rgba(243, 78, 92, 0.16);
  color: var(--red);
}

.status-chip.orange {
  background: rgba(245, 158, 11, 0.18);
  color: var(--orange);
}

.badge-tiny {
  font-size: 0.68rem;
}

.auth-link-row {
  margin-top: 1rem;
  text-align: center;
}

.auth-error-list {
  margin: 0.4rem 0 0 1.2rem;
  padding: 0;
}

.process-diagram .diagram-brand { fill: var(--brand); stroke: var(--brand); }
.process-diagram .diagram-brand-fill { fill: var(--brand); }
.process-diagram .diagram-brand-stroke { stroke: var(--brand); }
.process-diagram .diagram-brand-dim { fill: var(--brand-dim); stroke: var(--brand); }
.process-diagram .diagram-text-brand { fill: var(--brand); }
.process-diagram .diagram-text-dim { fill: var(--text-dim); }
.process-diagram .diagram-text-muted { fill: var(--text-muted); }
.process-diagram .diagram-surface { fill: var(--diagram-surface); stroke: var(--diagram-border); }
.process-diagram .diagram-surface-soft { fill: var(--diagram-surface-soft); stroke: var(--diagram-border); }
.process-diagram .diagram-surface-muted { fill: var(--diagram-surface-muted); }
.process-diagram .diagram-panel { fill: var(--diagram-panel); stroke: var(--brand); }
.process-diagram .diagram-border { stroke: var(--diagram-border); }
.process-diagram .diagram-border-soft { fill: var(--diagram-border-soft); stroke: var(--diagram-border-soft); }
.process-diagram .diagram-row { fill: var(--diagram-row); }
.process-diagram .diagram-ok { fill: var(--green); }
.process-diagram .diagram-warn { fill: var(--orange); }
.process-diagram .diagram-error { fill: var(--red); }
.process-diagram .diagram-muted-dot { fill: var(--text-muted); }

.agents-how-flow {
  stroke-dasharray: 7 7;
  animation: agents-how-flow 2.8s linear infinite;
}

.agents-how-flow-b {
  animation-delay: 0.45s;
}

.agents-how-ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: agents-how-pulse 2.4s ease-in-out infinite;
}

.agents-how-ring-inner {
  transform-origin: center;
  transform-box: fill-box;
  animation: agents-how-pulse 2.4s ease-in-out infinite 0.35s;
}

.agents-how-core,
.agents-how-core-dot,
.agents-how-step-badge {
  transform-origin: center;
  transform-box: fill-box;
}

.agents-how-core {
  animation: agents-how-breathe 2.2s ease-in-out infinite;
}

.agents-how-core-dot {
  animation: agents-how-blink 1.4s ease-in-out infinite;
}

.agents-how-step-a { animation: agents-how-badge 2.8s ease-in-out infinite; }
.agents-how-step-b { animation: agents-how-badge 2.8s ease-in-out infinite 0.45s; }
.agents-how-step-c { animation: agents-how-badge 2.8s ease-in-out infinite 0.9s; }

/* Dashboard rows — static, no movement */
.agents-how-row { /* no animation */ }

/* Status dots cycle through green → orange → red */
.agents-how-status {
  animation: agents-how-traffic 4.5s ease-in-out infinite;
}

.agents-how-status-b { animation-delay: 0.9s; }
.agents-how-status-c { animation-delay: 1.8s; }
.agents-how-status-d { animation-delay: 2.7s; }
.agents-how-status-e { animation-delay: 3.6s; }

@keyframes agents-how-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes agents-how-flow {
  to {
    stroke-dashoffset: -28;
  }
}

@keyframes agents-how-pulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

@keyframes agents-how-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes agents-how-badge {
  0%, 100% {
    transform: scale(1);
  }
  18% {
    transform: scale(1.08);
  }
  30% {
    transform: scale(1);
  }
}

@keyframes agents-how-traffic {
  0%        { fill: #48d18c; }
  33%       { fill: #48d18c; }
  45%       { fill: #f59e0b; }
  58%       { fill: #f59e0b; }
  70%       { fill: #ff7e8c; }
  83%       { fill: #ff7e8c; }
  95%, 100% { fill: #48d18c; }
}

@keyframes agents-how-blink {
  0%, 100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agents-how-step,
  .agents-how-flow,
  .agents-how-ring,
  .agents-how-ring-inner,
  .agents-how-core,
  .agents-how-core-dot,
  .agents-how-step-badge,
  .agents-how-status {
    animation: none !important;
  }
}

.wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-limit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 2rem;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.wizard-limit-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.wizard-review-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.wizard-review-label {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.wizard-actions-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.wizard-check-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.tos-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.5rem;
  margin-top: 0.25rem;
}

.tos-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.tos-row label {
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--fg-dim);
  cursor: pointer;
  margin: 0;
  width: auto;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: normal;
}

.forgot-link-row {
  text-align: right;
  margin-top: -0.4rem;
  margin-bottom: 0.6rem;
}

.forgot-link {
  font-size: 0.83rem;
  color: var(--brand);
}

.wizard-bar-flat {
  border-bottom: none;
  margin-bottom: 0;
}

.card-title-spaced {
  margin-bottom: 0.75rem;
}

.actions-wrap {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.actions-wrap-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.actions-wrap-tight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.actions-inline-start {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.card-spaced {
  margin-bottom: 1.5rem;
}

.card-top-spaced {
  margin-top: 1.25rem;
}

.link-inherit-underline {
  color: inherit;
  text-decoration: underline;
}

.link-brand {
  color: var(--brand);
}

.link-brand-strong {
  color: var(--brand);
  font-weight: 600;
}

.cell-nowrap {
  white-space: nowrap;
}

.cell-break {
  max-width: 520px;
  word-break: break-word;
}

.th-min-sm { min-width: 90px; }
.th-min-md { min-width: 140px; }
.th-min-lg { min-width: 200px; }

.badge-dot {
  margin-right: 0.35rem;
}

.badge-compact {
  font-size: 0.72rem;
}

.badge-micro {
  font-size: 0.68rem;
}

.table-action-group {
  display: flex;
  gap: 0.4rem;
}

.top-copy-note {
  margin-top: 0.35rem;
}

.uoi-stack {
  margin-top: 0.75rem;
}

.uoi-meta {
  margin-top: 0.25rem;
}

.uoi-label {
  margin-bottom: 0.35rem;
}

.uoi-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.uoi-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-med);
  border-radius: var(--r);
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
  color: var(--text);
}

.uoi-help {
  margin-top: 0.3rem;
}

.panel-card {
  margin-top: 1rem;
  border: 1px solid var(--border-med);
  border-radius: var(--r);
  padding: 1rem;
  background: var(--bg-raised);
}

.panel-card-danger {
  border-color: var(--red);
  background: var(--red-bg);
}

.panel-copy {
  margin-bottom: 0.75rem;
}

.field-compact {
  margin-bottom: 0.75rem;
}

.input-max-sm {
  max-width: 300px;
}

.panel-actions {
  margin-top: 1rem;
}

.inline-form-spaced {
  display: inline;
}

.subscription-badge {
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
}

.financial-summary-grid {
  margin-top: 0.5rem;
}

.financial-label {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.financial-portal {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.financial-portal-copy {
  margin-bottom: 0.5rem;
}

.flash-test-mode {
  color: #6366f1;
  border-color: rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.08);
}

.code-test-card {
  font-family: "Cascadia Code","Fira Code","Consolas",monospace;
  background: rgba(99,102,241,0.12);
  color: inherit;
  border: none;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  word-break: normal;
}

.pricing-table-shell {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  overflow: hidden;
}

.details-spaced {
  margin-bottom: 1.5rem;
}

.details-summary-strong {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0.5rem 0;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.details-summary-caret {
  font-size: 0.7rem;
}

.details-copy {
  margin: 0.5rem 0 1rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.plan-target-copy {
  margin-bottom: 0.6rem;
}

.plan-form {
  width: 100%;
  margin: 0;
}

.btn-multiline {
  white-space: normal;
  line-height: 1.3;
  justify-content: center;
}

.plan-copy-center {
  margin-top: 0.5rem;
  text-align: center;
}

.plan-usage {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.plan-usage-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  background: var(--bg-input);
  color: var(--text-dim);
}

.plan-usage-pill.over {
  background: rgba(243,78,92,0.12);
  color: var(--red);
}

.plan-warning-copy {
  margin-top: 0.4rem;
  text-align: center;
  color: var(--red);
}

.plan-muted-copy {
  margin-top: 0.4rem;
  text-align: center;
}

.dashboard-refresh {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
}

.table-note-inline {
  font-weight: 400;
  font-size: 0.8em;
}

.status-with-dot {
  display: inline-flex;
  align-items: center;
}

.advanced-callout {
  margin-bottom: 1rem;
}

.status-hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
}

.health-badge.green  { background: rgba(22,163,74,.12); color: var(--green); }
.health-badge.orange { background: rgba(217,119,6,.12); color: #d97706; }
.health-badge.red    { background: rgba(220,38,38,.12); color: var(--red); }
.health-badge.grey   { background: var(--ghost-bg); color: var(--text-dim); }

.status-refresh-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
}

.status-refresh-bar.stale {
  color: #d97706;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-ring 2s infinite;
}

.status-pulse.stale {
  background: #d97706;
  animation: none;
}

.status-tile-label {
  font-size: 0.78rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.status-tile-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.status-tile-value.green { color: var(--green); }
.status-tile-value.orange { color: #d97706; }
.status-tile-value.red { color: var(--red); }

.alert-table td,
.alert-table th {
  vertical-align: middle;
}

.mute-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dur-select {
  font-size: 0.78rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--border-med);
  border-radius: 0.4rem;
  background: var(--bg-input);
  color: var(--fg);
  cursor: pointer;
}

.empty-alerts {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.badge-label-kind,
.badge-label-state,
.badge-label-indicator {
  font-size: 0.7rem;
}

.status-name-link,
.status-site-link,
.status-node-link {
  color: var(--brand);
}

.status-name-link,
.status-node-link {
  font-weight: 600;
}

.topology-select {
  min-width: 10rem;
}

.topology-ts {
  min-width: 7rem;
}

.topology-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.topology-wrap {
  position: relative;
  width: 100%;
  height: 580px;
}

.topology-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.topology-tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 0.65rem 0.75rem;
  min-width: 210px;
  max-width: 260px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.topology-loading,
.topology-empty {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.topology-loading {
  display: flex;
  background: var(--bg-card);
  z-index: 5;
  gap: 0.5rem;
}

.topology-empty {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
}

.topology-spinner {
  animation: spin 0.9s linear infinite;
}

.topology-empty-icon {
  opacity: 0.35;
}

.topology-empty-msg {
  margin: 0;
}

.topology-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.topology-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.topology-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.topology-legend-swatch.agent { background: #009e8e; }
.topology-legend-swatch.online { background: #16a34a; }
.topology-legend-swatch.orange { background: #b45309; }
.topology-legend-swatch.red { background: #dc2626; }
.topology-legend-swatch.pending { background: #93a8be; }

.topology-legend-note {
  margin-left: auto;
  font-size: 0.73rem;
}

.topo-tt-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topo-tt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.topo-tt-k {
  color: var(--text-dim);
  flex-shrink: 0;
}

.topo-tt-code {
  font-size: 0.73rem;
  word-break: break-all;
}

.topo-tt-link {
  display: block;
  text-align: center;
  margin-top: 0.55rem;
  pointer-events: auto;
}

.topo-node-circle {
  transition: filter 0.15s, r 0.1s;
}

.topo-node-circle:hover {
  filter: brightness(1.15);
}

.auth-card-center {
  text-align: center;
}

.auth-status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.2rem;
}

.auth-status-icon.success {
  background: var(--green-bg);
}

.auth-status-icon.mail {
  width: auto;
  height: auto;
  background: none;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.auth-cta-block {
  display: block;
  margin-top: 1.25rem;
}

.auth-copy-top {
  margin-top: 1rem;
}

.auth-copy-gap {
  margin-bottom: 0.5rem;
}

.auth-email {
  color: var(--text);
}

.auth-status-row {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  margin-right: 0.4rem;
}

.trial-expired {
  max-width: 520px;
  margin: 4rem auto;
  text-align: center;
}

.trial-expired-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0.5;
}

.trial-expired-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.trial-expired-copy-tight {
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.trial-expired-copy {
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.trial-expired-cta {
  font-size: 1rem;
  padding: 0.6rem 1.6rem;
}

.hero-section {
  margin-bottom: 2.5rem;
}

.steps-title {
  margin-bottom: 1.1rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); }
  70% { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.legal-card {
  max-width: 860px;
}

.legal-body {
  padding: 0.25rem 0 1.5rem;
  line-height: 1.75;
  color: var(--text);
}

.legal-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.legal-list {
  margin: 0.5rem 0 0.5rem 1.5rem;
}

.legal-lead-gap {
  margin-top: 0.75rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.88rem;
}

.legal-table-head-row {
  border-bottom: 1px solid var(--border);
  color: var(--fg-dim);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.legal-table-row {
  border-bottom: 1px solid var(--border);
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.45rem 0.6rem;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 860px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    min-height: auto;
    z-index: 120;
    border-right: none;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    overflow: visible;
  }

  .sidebar-logo-name {
    display: inline;
  }

  .nav-label,
  .sidebar-user-email,
  .sidebar-signout-btn { display: none; }

  .sidebar-logo {
    justify-content: flex-start;
    padding: 0.7rem 0.9rem;
    border-top: none;
  }

  .sidebar-nav {
    display: flex;
    gap: 0.45rem;
    padding: 0.5rem 0.55rem 0.65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-section {
    display: contents;
  }

  .nav-link {
    padding: 0.44rem 0.65rem;
    justify-content: center;
    border-left: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-raised);
    white-space: nowrap;
    margin: 0;
    font-size: 0.78rem;
  }

  .nav-link svg {
    width: 14px;
    height: 14px;
  }

  .nav-link.active {
    border-color: rgba(0, 158, 142, 0.35);
    background: var(--brand-dim);
  }

  .sidebar-footer {
    display: none;
  }

  .main-wrap {
    margin-left: 0;
    min-width: 0;
  }

  .topbar {
    padding: 0 0.9rem;
  }

  .topbar-crumb {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content {
    padding: 1rem 0.95rem 2.2rem;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .auto-cards, .auto-cards-tight { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .page-actions { width: 100%; }
  .page-actions .btn { width: 100%; justify-content: center; }
  .theme-switch { margin-left: auto; }
  .topbar-right { gap: 0.45rem; }
  .theme-btn { padding: 0.22rem 0.5rem; font-size: 0.7rem; }
  .card { padding: 1rem; }
  .plan-grid { grid-template-columns: 1fr; }
  .process-legend {
    justify-content: flex-start;
    gap: 0.75rem;
  }
}

/* ── Password strength popup ───────────────────────────────────────────── */
.pw-field-wrap { position: relative; }

.pw-popup {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 200;
  background: var(--card-bg, #1a1d27);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  min-width: 260px;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
}

.pwrule {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--red, #f34e5c);
  padding: 0.18rem 0;
}

.pwrule.pwrule-passing { color: var(--green, #22c55e); }

.pwrule .pwrule-pass { display: none; }
.pwrule .pwrule-fail { display: inline; }
.pwrule.pwrule-passing .pwrule-pass { display: inline; }
.pwrule.pwrule-passing .pwrule-fail { display: none; }
