/* Command Deck — classic / standard admin view (same markup as LCARS) */
body.ui-classic {
  --lcars-bg: #eef1f5;
  --lcars-panel: #2563eb;
  --lcars-amber: #1e293b;
  --lcars-peach: #e2e8f0;
  --lcars-lilac: #cbd5e1;
  --lcars-magenta: #7c3aed;
  --lcars-red: #dc2626;
  --lcars-blue: #2563eb;
  --lcars-text: #1e293b;
  --lcars-dim: #64748b;
  --lcars-frame: #cbd5e1;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

body.ui-classic,
body.ui-classic html {
  background: var(--lcars-bg);
  color: var(--lcars-text);
}

body.ui-classic a {
  color: var(--lcars-blue);
}
body.ui-classic a:hover {
  color: #1d4ed8;
}

body.ui-classic .lcars-shell {
  grid-template-columns: 220px 1fr;
  background: var(--lcars-bg);
}

body.ui-classic .lcars-nav {
  background: #fff;
  border-right: 1px solid #e2e8f0;
  padding: 0 0 1rem;
  box-shadow: 1px 0 0 rgba(15, 23, 42, 0.04);
}

body.ui-classic .lcars-elbow {
  height: auto;
  min-height: 56px;
  margin: 0;
  padding: 16px 16px 12px;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.ui-classic .lcars-nav a {
  margin: 2px 8px;
  padding: 10px 12px;
  background: transparent;
  color: #334155;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 8px;
}
body.ui-classic .lcars-nav a:nth-child(3n),
body.ui-classic .lcars-nav a:nth-child(4n) {
  background: transparent;
  color: #334155;
}
body.ui-classic .lcars-nav a:hover {
  background: #f1f5f9;
  color: #0f172a;
}
body.ui-classic .lcars-nav a.active {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}
body.ui-classic .lcars-nav a.mag {
  color: #7c3aed;
}
body.ui-classic .lcars-nav a.mag:hover {
  background: #f5f3ff;
}

body.ui-classic .lcars-nav .spacer {
  margin: 8px;
  background: transparent;
  border-radius: 0;
  min-height: 8px;
}

body.ui-classic .lcars-nav .nav-foot {
  margin: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #64748b;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: none;
  border: 1px solid #e2e8f0;
}

body.ui-classic .lcars-main {
  padding: 20px 24px 32px;
  background: var(--lcars-bg);
}

body.ui-classic .lcars-topbar {
  display: none;
}

body.ui-classic .lcars-title {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #0f172a;
}

body.ui-classic .lcars-sub {
  color: #64748b;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

body.ui-classic .panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.ui-classic .panel h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: #0f172a;
}

body.ui-classic .panel .metric {
  font-family: var(--font-body);
  font-size: 1.75rem;
  color: #0f172a;
}
body.ui-classic .panel .metric small {
  color: #64748b;
  letter-spacing: 0;
  text-transform: none;
}

body.ui-classic .insight {
  color: #334155;
  border-left: 4px solid #2563eb;
  font-size: 1rem;
}

body.ui-classic .alert {
  border-radius: 8px;
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.875rem;
}
body.ui-classic .alert.warn {
  background: #fef3c7;
  color: #92400e;
}
body.ui-classic .alert.crit {
  background: #fee2e2;
  color: #991b1b;
}
body.ui-classic .alert.ok {
  background: #dcfce7;
  color: #166534;
}

body.ui-classic table.lcars-table th {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
}
body.ui-classic table.lcars-table td {
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

body.ui-classic .badge {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.72rem;
  font-weight: 600;
}
body.ui-classic .badge.ideal {
  background: #dbeafe;
  color: #1e40af;
}
body.ui-classic .badge.network {
  background: #e0e7ff;
  color: #3730a3;
}
body.ui-classic .badge.other {
  background: #f1f5f9;
  color: #475569;
}
body.ui-classic .badge.dark {
  background: #e2e8f0;
  color: #475569;
}

body.ui-classic .period-label {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  color: #334155;
}
body.ui-classic .period-label strong {
  color: #0f172a;
}

body.ui-classic .period-pill {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.82rem;
  background: #fff;
  color: #475569;
  border: 1px solid #cbd5e1;
}
body.ui-classic .period-pill:hover {
  color: #1d4ed8;
  border-color: #93c5fd;
}
body.ui-classic .period-pill.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

body.ui-classic .station-lights .light {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
body.ui-classic .station-lights .light.on {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}
body.ui-classic .station-lights .light.warn {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

body.ui-classic .btn {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
}
body.ui-classic .btn.mag {
  background: #7c3aed;
}
body.ui-classic .btn.ghost {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
}
body.ui-classic .btn.ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

body.ui-classic .help-tip {
  border-color: #94a3b8;
  color: #64748b;
}
body.ui-classic .help-tip:hover,
body.ui-classic .help-tip:focus-visible,
body.ui-classic .help-tip.is-open {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
body.ui-classic .help-tip-bubble {
  background: #fff;
  color: #334155;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
body.ui-classic .help-tip-bubble::after {
  border-top-color: #e2e8f0;
}
body.ui-classic .help-tip.tip-below .help-tip-bubble::after {
  border-bottom-color: #e2e8f0;
}

body.ui-classic tr.row-probable-spam td {
  color: #94a3b8;
}

body.ui-classic .bar {
  background: #e2e8f0;
}
body.ui-classic .bar > span {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

body.ui-classic .lcars-nav .ui-toggle-form button,
body.ui-classic .lcars-nav .ui-toggle-nav {
  width: calc(100% - 16px);
  margin: 4px 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.82rem;
  text-align: center;
}
body.ui-classic .lcars-nav .ui-toggle-form button:hover,
body.ui-classic .lcars-nav .ui-toggle-nav:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.ui-classic .login-wrap {
  background: var(--lcars-bg);
}
body.ui-classic .login-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
body.ui-classic .login-card label {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  color: #475569;
}
body.ui-classic .login-card input {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
body.ui-classic .login-error {
  color: #991b1b;
  background: #fee2e2;
}

@media (max-width: 900px) {
  body.ui-classic .lcars-shell {
    grid-template-columns: 1fr;
  }
  body.ui-classic .lcars-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
  body.ui-classic .lcars-elbow {
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
  }
  body.ui-classic .lcars-nav a {
    margin: 4px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}
