:root {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: rgba(20, 29, 52, .82);
  --surface-2: rgba(28, 39, 68, .78);
  --line: rgba(167, 188, 228, .17);
  --muted: #9ba8c3;
  --text: #f3f6ff;
  --teal: #51e0c2;
  --amber: #f4c66b;
  --violet: #b7a1ff;
  --danger: #ff8f9f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 18% 0%, #1d2f5c 0, transparent 36%), radial-gradient(circle at 90% 100%, #2c1c4b 0, transparent 32%), var(--bg);
}
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 72px; }
.topbar, .dashboard-head, .table-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow, .section-kicker { margin: 0 0 11px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(34px, 6vw, 64px); letter-spacing: -.055em; line-height: .98; }
h2 { margin-bottom: 0; font-size: 21px; letter-spacing: -.02em; }
.lede { max-width: 580px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.status-dot { width: 13px; height: 13px; margin-top: 8px; border-radius: 99px; background: var(--teal); box-shadow: 0 0 0 8px rgba(81, 224, 194, .11), 0 0 24px rgba(81, 224, 194, .65); }
.auth-panel, .table-card { margin-top: 42px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(26, 39, 71, .92), rgba(15, 23, 44, .82)); box-shadow: 0 24px 80px rgba(0, 0, 0, .22); }
.auth-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; padding: 28px; }
.section-kicker { color: var(--muted); }
.auth-form label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.auth-row { display: flex; gap: 10px; }
input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--text); background: rgba(4, 9, 23, .52); outline: none; }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(81, 224, 194, .12); }
button { border: 0; border-radius: 12px; padding: 0 19px; color: #07131c; background: var(--teal); font: inherit; font-weight: 800; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
button:hover { filter: brightness(1.08); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .6; transform: none; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.hidden { display: none !important; }
.dashboard { margin-top: 52px; }
.quiet-button { min-height: 42px; color: var(--text); background: rgba(255,255,255,.09); border: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.metric-section { margin-top: 42px; }
.metric-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.metric-section-head .section-kicker { margin-bottom: 8px; }
.metric-section-head > p { max-width: 290px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: right; }
.metric-card { min-height: 148px; padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card span { font-size: 13px; }
.metric-card strong { display: block; margin: 19px 0 7px; font-size: 39px; letter-spacing: -.06em; }
.metric-card small { font-size: 12px; }
.accent-teal { box-shadow: inset 0 3px 0 var(--teal); }
.accent-amber { box-shadow: inset 0 3px 0 var(--amber); }
.accent-violet { box-shadow: inset 0 3px 0 var(--violet); }
.accent-slate { box-shadow: inset 0 3px 0 #a9b8d9; }
.accent-danger { box-shadow: inset 0 3px 0 var(--danger); }
.table-card { padding: 24px; }
.table-head { align-items: center; margin-bottom: 18px; }
.table-head span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
td { color: #dce4f7; }
.badge { display: inline-flex; border-radius: 99px; padding: 5px 9px; font-size: 11px; font-weight: 750; }
.badge-available { color: #071c1a; background: var(--teal); }
.badge-leased { color: #2a1b03; background: var(--amber); }
.badge-reported { color: #1d123d; background: var(--violet); }
.badge-failed { color: #3b0811; background: var(--danger); }
.empty { padding: 30px 12px; color: var(--muted); text-align: center; }
.message { min-height: 22px; margin: 18px 2px 0; color: var(--muted); font-size: 13px; }
.message.error { color: var(--danger); }
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 620px); padding-top: 34px; }
  .auth-panel { grid-template-columns: 1fr; gap: 22px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .metric-section-head > p { max-width: none; text-align: left; }
  .topbar { align-items: flex-start; }
}
@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
  .metric-card { min-height: 132px; }
}
