:root {
  color-scheme: dark;
  --bg: #0b1020;
  --card: #11172a;
  --card-soft: #151d34;
  --text: #ecf2ff;
  --muted: #93a4c5;
  --line: rgba(255,255,255,.10);
  --accent: #78a6ff;
  --accent-strong: #9bc0ff;
  --ok: #6ee7a8;
  --warn: #ffd166;
  --bad: #ff8a8a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }


[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(120, 166, 255, .20), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(110, 231, 168, .10), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero-card, .card, .status-banner {
  border: 1px solid var(--line);
  background: rgba(17, 23, 42, .88);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.hero-card h1, .card h2 {
  margin: 0;
  line-height: 1.15;
}

.hero-card h1 { font-size: clamp(28px, 5vw, 48px); }
.card h2 { font-size: 20px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: 12px;
}

.hero-text {
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions, .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-actions { flex-wrap: wrap; justify-content: flex-end; }

.grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { padding: 22px; }

.status-banner {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  color: var(--muted);
}

.status-banner.show { display: block; }
.status-banner.ok { border-color: rgba(110, 231, 168, .45); color: var(--ok); }
.status-banner.warn { border-color: rgba(255, 209, 102, .45); color: var(--warn); }
.status-banner.bad { border-color: rgba(255, 138, 138, .45); color: var(--bad); }

.button {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 16px;
  color: var(--text);
  background: var(--card-soft);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { background: linear-gradient(135deg, #477cff, #7ea9ff); color: #071022; font-weight: 800; }
.button-secondary { border-color: rgba(120, 166, 255, .45); }
.button-ghost { background: transparent; border-color: var(--line); }
.button-small { padding: 7px 10px; border-radius: 10px; font-size: 13px; }

.facts {
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.facts div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.facts dt { color: var(--muted); }
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.04);
  font-weight: 700;
  white-space: nowrap;
}
.pill.ok { border-color: rgba(110, 231, 168, .4); color: var(--ok); }
.pill.bad { border-color: rgba(255, 138, 138, .4); color: var(--bad); }
.pill.warn { border-color: rgba(255, 209, 102, .4); color: var(--warn); }

.form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255,255,255,.06);
  color: var(--text);
}

select option { color: #0b1020; }

.instructions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.copy-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.copy-row strong { color: var(--muted); font-weight: 600; }
.copy-row code { overflow-wrap: anywhere; color: var(--text); }

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { color: var(--muted); font-weight: 700; }
td { color: var(--text); }

.empty-state { color: var(--muted); }
.muted { color: var(--muted); }
.monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

@media (max-width: 860px) {
  .hero-card, .card-header { align-items: flex-start; flex-direction: column; }
  .hero-actions { justify-content: flex-start; }
  .grid-two, .grid-three { grid-template-columns: 1fr; }
  .facts div, .copy-row { grid-template-columns: 1fr; }
}
