:root {
  color-scheme: dark;
  --bg: #08111f;
  --card: #111a2b;
  --panel: #16233a;
  --panel-soft: #0f1a2d;
  --text: #eaf0ff;
  --muted: #9cb0d0;
  --accent: #68a7ff;
  --accent-2: #8cf0c8;
  --danger: #ff7c7c;
  --border: rgba(255,255,255,0.09);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #12233d 0%, var(--bg) 48%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(980px, 100%);
  background: rgba(17,26,43,0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.hero-card, .flow-card { display: grid; gap: 18px; }
.wide-card { width: min(1180px, 100%); }
.center-card { text-align: center; }

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent-2);
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; }
h2 { font-size: 1.5rem; }
.lede { color: var(--muted); font-size: 1.03rem; line-height: 1.55; max-width: 64ch; }
.tight { line-height: 1.45; }

.stack { display: grid; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .grid.two { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}

.field { display: grid; gap: 8px; }
.field span, .label { color: var(--muted); font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  background: #09111e;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(104,167,255,0.45); outline-offset: 2px; }

input[maxlength="12"] { letter-spacing: 0.12em; font-size: 1.15rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #16233a;
  color: var(--text);
  cursor: pointer;
}
.button.primary { background: linear-gradient(135deg, var(--accent), #5379ff); border-color: transparent; color: #07111f; font-weight: 700; }
.button.secondary { background: transparent; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}
.panel.subtle { background: var(--panel-soft); }
.panel.note { display: grid; gap: 8px; }
.status-box {
  min-height: 20px;
  color: var(--accent-2);
  line-height: 1.5;
}
.bullets {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.bullets.compact { display: grid; gap: 6px; }
.hidden { display: none; }
.toolbar { display: grid; grid-template-columns: 1.8fr 0.8fr; gap: 12px; }
.search { width: 100%; }
.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}
.table th, .table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.table th { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(104,167,255,0.14);
  color: #d7e5ff;
  border: 1px solid rgba(104,167,255,0.18);
  font-size: 0.84rem;
}
.badge.warn { background: rgba(255,124,124,0.14); color: #ffd9d9; border-color: rgba(255,124,124,0.2); }
.badge.ok { background: rgba(140,240,200,0.14); color: #dafcf0; border-color: rgba(140,240,200,0.2); }
.narrow { max-width: 820px; }

@media (max-width: 760px) {
  .toolbar { grid-template-columns: 1fr; }
  .table, .table thead, .table tbody, .table tr, .table th, .table td { display: block; }
  .table thead { display: none; }
  .table td { border-bottom: none; padding: 8px 0; }
  .table tr { border-bottom: 1px solid var(--border); padding: 12px 0; }
}
