:root {
  --bg: #0b0c0e;
  --bg-elevated: #111214;
  --panel: #16181c;
  --panel-hover: #1c1f24;
  --border: #2a2d33;
  --text: #f4f5f6;
  --text-muted: #9aa0a6;
  --text-dim: #6d737b;
  --lime: #c6e04a;
  --lime-dim: rgba(198, 224, 74, 0.14);
  --yellow: #f0c400;
  --yellow-dim: rgba(240, 196, 0, 0.12);
  --danger: #e85d5d;
  --success: #7dce7a;
  --warning: #e8c15a;
  --info: #7aa2c8;
  --radius: 12px;
  --nav-h: 72px;
  --max: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "SF Mono", ui-monospace, monospace;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--lime);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  min-height: 100%;
  border: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--lime);
  color: #111;
  z-index: 2000;
}
.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.site-nav__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  padding: 5px;
  background: #1a1c12;
  border: 1px solid rgba(198, 224, 74, 0.28);
  border-radius: 8px;
  filter: brightness(1.35) saturate(1.2) contrast(1.08);
  flex-shrink: 0;
}

.brand__name {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
}

.brand__sub {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-login {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--lime); color: #111; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--panel);
}
.btn-nav-cta { padding: 0.45rem 0.9rem; font-size: 0.82rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.section { padding: 5.5rem 0; }
.section--alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.kicker {
  color: var(--lime);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}

.h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.lede {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.hero { padding: 4.5rem 0 5rem; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.viz {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.4rem;
}

.viz__label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.85rem;
}

.viz__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.viz__title { margin: 0; font-size: 1rem; font-weight: 600; }
.viz__meta { color: var(--text-muted); font-size: 0.8rem; margin: 0.2rem 0 0; }

.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  font-size: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: var(--text-muted);
}
.pill--live {
  border-color: rgba(198, 224, 74, 0.4);
  color: var(--lime);
  background: var(--lime-dim);
}

.flow__row {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.7rem;
  align-items: start;
}
.flow__rail { display: flex; flex-direction: column; align-items: center; }
.flow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 224, 74, 0.45);
  margin-top: 0.35rem;
}
.flow__line {
  width: 1px;
  flex: 1;
  min-height: 1.15rem;
  background: var(--border);
}
.flow__body h3 { margin: 0; font-size: 0.88rem; font-weight: 600; }
.flow__body p {
  margin: 0.1rem 0 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.flow__row--gate {
  margin: 0.15rem -0.45rem 0.35rem;
  padding: 0.55rem 0.45rem 0.2rem;
  border: 1px solid rgba(198, 224, 74, 0.32);
  border-radius: 8px;
  background: var(--lime-dim);
}
.flow__row--gate .flow__body h3 {
  color: var(--lime);
}
.flow__gate {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  display: grid;
  place-items: center;
  color: var(--lime);
  flex-shrink: 0;
}
.flow__gate svg { width: 16px; height: 16px; display: block; }

@media (prefers-reduced-motion: no-preference) {
  .flow__row[data-step="1"] .flow__dot { animation: flow-travel 7s ease-in-out infinite; }
  .flow__row[data-step="2"] .flow__dot { animation: flow-travel 7s ease-in-out infinite; animation-delay: 0.85s; }
  .flow__row[data-step="3"] .flow__dot { animation: flow-travel 7s ease-in-out infinite; animation-delay: 1.7s; }
  .flow__row[data-step="4"] .flow__dot { animation: flow-travel 7s ease-in-out infinite; animation-delay: 2.55s; }
  .flow__row--gate { animation: gate-settle 7s ease-in-out infinite; }
}

@keyframes flow-travel {
  0%, 8% { opacity: 0.35; transform: scale(1); box-shadow: none; }
  10%, 18% { opacity: 1; transform: scale(1.28); box-shadow: 0 0 12px rgba(198, 224, 74, 0.55); }
  26%, 100% { opacity: 0.35; transform: scale(1); box-shadow: none; }
}

@keyframes gate-settle {
  0%, 42% { border-color: var(--border); background: transparent; }
  50%, 100% { border-color: rgba(198, 224, 74, 0.32); background: var(--lime-dim); }
}

.lifecycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.life-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1.2rem;
  min-height: 8.5rem;
}
.life-card__n { font-family: var(--mono); font-size: 0.72rem; color: var(--lime); margin-bottom: 0.55rem; }
.life-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.life-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

.statement { text-align: center; max-width: 40rem; margin: 0 auto; }
.statement p {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  margin: 0;
}

.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.cap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.cap__n { font-family: var(--mono); color: var(--yellow); font-size: 0.8rem; margin-bottom: 0.7rem; }
.cap h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.cap p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.engine {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.engine-col {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.engine-col h3 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.src, .step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
}
.icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--lime); }

.engine-core {
  border-color: rgba(198, 224, 74, 0.35);
  background: var(--lime-dim);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.engine-core strong {
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 0.75rem;
}
.engine-core ul { list-style: none; margin: 0; padding: 0; color: var(--text-muted); font-size: 0.9rem; }
.engine-core li { padding: 0.2rem 0; }

.int-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.int {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.int h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.int p { margin: 0; color: var(--text-muted); font-size: 0.82rem; }

.badge {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.badge--on {
  color: var(--lime);
  border-color: rgba(198, 224, 74, 0.35);
  background: var(--lime-dim);
}
.badge--plan {
  color: var(--yellow);
  border-color: rgba(240, 196, 0, 0.35);
  background: var(--yellow-dim);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.site-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form { max-width: 32rem; display: grid; gap: 0.9rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--text-muted); }
.form input, .form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}
.form textarea { min-height: 8rem; resize: vertical; }
.note { color: var(--text-dim); font-size: 0.85rem; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.auth-card h1 { margin: 0.4rem 0 0.2rem; font-size: 1.35rem; }
.auth-card .muted { color: var(--text-muted); font-size: 0.9rem; }
.auth-card .form-group { margin: 1rem 0; }
.auth-card label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; color: var(--text-muted); }
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="tel"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}
.auth-card .btn-primary,
.auth-card button.btn-primary {
  width: 100%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--lime);
  color: #111;
  cursor: pointer;
  font-family: inherit;
}
.auth-card button.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.otp-inputs input {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.65rem 0.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
}
.otp-inputs input:focus { border-color: var(--lime); }
.login-option-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--lime);
  background: var(--lime-dim);
  border-radius: 8px;
  flex-shrink: 0;
}
.login-option-icon .icon { width: 18px; height: 18px; }
.login-option-text { flex: 1; }
.login-option-text h3 { margin: 0; font-size: 0.95rem; }
.login-option-text p { margin: 0.2rem 0 0; color: var(--text-muted); font-size: 0.82rem; }
.resend-otp { text-align: center; margin-top: 0.85rem; color: var(--text-muted); font-size: 0.85rem; }
.resend-otp a { cursor: pointer; }
.tier-option.selected { border-color: var(--lime); background: var(--lime-dim); }
.loading.active { display: block; }
.step-container { display: none; }
.step-container.active { display: block; }
.login-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.login-option:hover { background: var(--panel-hover); }
.message { display: none; padding: 0.7rem 0.85rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.message.info, .message.success, .message.error { display: block; }
.message.info { background: var(--lime-dim); color: var(--text); }
.message.error { background: rgba(232, 93, 93, 0.12); color: #ffb4b4; }
.message.success { background: rgba(125, 206, 122, 0.12); color: #b6ebb4; }
.back-link { margin-top: 1rem; font-size: 0.85rem; }
.back-link a { cursor: pointer; color: var(--text-muted); }
.loading { display: none; text-align: center; padding: 1.5rem; color: var(--text-muted); }
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--lime);
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.terms-container {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.checkbox-group { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; }
.tier-option {
  margin-bottom: 0.75rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.tier-option:hover { border-color: var(--lime); }

.app-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  padding: 1.25rem 1rem 2.5rem;
}
.app-shell .container { max-width: 1400px; margin: 0 auto; }
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.app-header h1 { margin: 0; font-size: 1.35rem; letter-spacing: 0.08em; }
.app-header p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.88rem; }
.toggle-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: none;
}
.card.wide { grid-column: 1 / -1; }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.card-title-group { display: flex; align-items: center; gap: 0.7rem; }
.card-title { font-weight: 600; font-size: 1.02rem; }
.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--lime-dim);
  color: var(--lime);
  flex-shrink: 0;
}
.card-icon svg { width: 18px; height: 18px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
}
.metric-label { font-size: 0.75rem; color: var(--text-muted); }
.metric-value { font-size: 1.25rem; font-weight: 650; margin-top: 0.2rem; }
.empty-state { text-align: center; padding: 1.4rem 0.5rem; }
.empty-state-icon { display: none; }
.empty-state-title { font-weight: 600; margin-bottom: 0.35rem; }
.empty-state-action {
  display: inline-flex;
  margin-top: 0.85rem;
  background: var(--lime);
  color: #111;
  border: none;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.healing-list { list-style: none; margin: 0; padding: 0; }
.healing-item { border-top: 1px solid var(--border); padding: 0.7rem 0; }
.healing-timestamp { color: var(--text-dim); font-size: 0.78rem; margin-top: 0.25rem; }
.badge-success { color: var(--success); border-color: rgba(125, 206, 122, 0.35); }
.badge-warning { color: var(--warning); }
.badge-danger { color: var(--danger); }
.badge-info { color: var(--info); }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  place-items: center;
  z-index: 50;
  padding: 1rem;
}
.modal-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  padding: 1.25rem;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; }
.modal-close { cursor: pointer; color: var(--text-muted); }
.debug-panel { display: none; margin-top: 1rem; }
.debug-panel.active { display: block; }
.app-footer { margin-top: 2rem; color: var(--text-dim); font-size: 0.82rem; }
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #3a3d44;
  border-radius: 22px;
  cursor: pointer;
}
.toggle-switch input:checked + .toggle-slider { background: var(--lime); }
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #111;
  border-radius: 50%;
  transition: 0.2s;
}
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.topology-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.75rem;
  min-width: 0;
  align-items: start;
}
.topology-node {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
  box-sizing: border-box;
}
.topology-node-type,
.topology-node-name,
.topology-node-meta,
.topology-node-state {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
.card-content {
  min-width: 0;
}

@media (max-width: 960px) {
  .hero__grid, .engine, .caps, .int-row { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }
  .nav-links.is-open { display: flex; }
}

@media (max-width: 720px) {
  .lifecycle { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .card.wide { grid-column: auto; }
}

/* Authenticated console: override leftover purple/white page styles */
body.app-shell {
  background: var(--bg) !important;
  color: var(--text) !important;
  min-height: 100vh;
  padding: 1.25rem 1rem 2.5rem;
}
.app-shell .card,
.app-shell .tier-selector-card {
  background: var(--panel) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.app-shell .card:hover {
  transform: none !important;
  box-shadow: none !important;
}
.app-shell .topology-node:hover {
  transform: none !important;
}
.app-shell .topology-manage-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
}
.app-shell .card-header { border-bottom-color: var(--border) !important; }
.app-shell .metric-value,
.app-shell .card-title,
.app-shell .header-content h1 { color: var(--text) !important; }
.app-shell .metric-label,
.app-shell .note,
.app-shell .empty-state-message,
.app-shell .header-content p { color: var(--text-muted) !important; }
.app-shell .toggle-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.app-shell .btn-primary {
  background: var(--lime);
  color: #111;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
