:root {
  --bg: #050505;
  --panel: rgba(8, 8, 8, 0.96);
  --panel-border: rgba(255, 255, 255, 0.08);
  --ink: #f5f1ea;
  --muted: #c7beb2;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: "Aptos", "Segoe UI", sans-serif; color: var(--ink); background: radial-gradient(circle at top left, rgba(226,154,26,0.12), transparent 22%), radial-gradient(circle at bottom right, rgba(15,169,88,0.08), transparent 18%), linear-gradient(160deg, #030303 0%, #070707 48%, #101010 100%); }
h1,h2,h3,strong { margin: 0; font-family: "Bahnschrift", "Arial Narrow", sans-serif; }
p { margin: 0; }
.app-shell { width: min(1740px, calc(100% - 8px)); margin: 4px auto; display: grid; gap: 6px; }
.topbar, .card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.topbar { padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; color: var(--muted); margin-bottom: 8px; }
.subtext, .muted { color: var(--muted); line-height: 1.45; }
.topbar-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; font-weight: 700; }
.hidden { display: none !important; }
.landing-stage, .dashboard-stage { display: grid; gap: 6px; }
.card { padding: 14px; }
.auth-panel-landing { max-width: 760px; margin: 60px auto; width: 100%; }
.auth-grid, .auth-actions, .button-row, .super-admin-grid { display: grid; gap: 12px; }
select, button, input, textarea {
  font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08); color: var(--ink);
}
select {
  background-color: #ffffff;
  color: #000000;
}
select option {
  background-color: #ffffff;
  color: #000000;
}
button { cursor: pointer; }
.button-secondary { background: rgba(255,255,255,0.04); }
.parity-copy, .super-admin-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.parity-meta, .governance-summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dashboard-stage .parity-card { padding: 8px; }
.dashboard-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.dashboard-pill {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.12);
  color: var(--ink);
  max-width: min(320px, 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.parity-frame { width: 100%; min-height: calc(100vh - 24px); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; background: #fff; }
.super-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.super-admin-section, .stack-item, .status-panel, .preview-card, .drop-zone { border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); padding: 14px; }
.stack { display: grid; gap: 10px; }
.stack-item strong { display: block; margin-bottom: 4px; }
.field-label { display: block; margin: 8px 0 4px; color: var(--muted); }
.small-text { font-size: 0.85rem; }
.tight-row { grid-auto-flow: column; justify-content: start; }
.topbar-logout {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}
@media (max-width: 1100px) {
  .topbar, .parity-copy, .super-admin-header { flex-direction: column; align-items: stretch; }
  .super-admin-grid { grid-template-columns: 1fr; }
  .tight-row { grid-auto-flow: row; }
}
