:root {
  color-scheme: dark;
  --bg: #07111b;
  --panel: rgba(9, 20, 31, .88);
  --panel-strong: #101f2d;
  --line: rgba(165, 190, 214, .16);
  --text: #edf3fa;
  --muted: #9fb0c1;
  --gold: #e4b567;
  --teal: #4dc2cb;
  --green: #62c99b;
  --red: #e66a62;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% -15%, #203a50 0, #0b1824 46%, #060d14 100%); }
button, input, textarea, select { font: inherit; }
button, a.button { border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 10px; padding: .78rem 1rem; color: #07131c; background: var(--teal); font-weight: 800; letter-spacing: .02em; transition: transform .16s ease, filter .16s ease, border-color .16s ease; }
button:hover, a.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
button.secondary, a.button.secondary { color: var(--text); background: #1c2c3b; border-color: var(--line); }
button.gold, a.button.gold { color: #17120a; background: var(--gold); }
button.danger { color: #fff; background: #873d3b; }
button.ghost { background: transparent; border-color: var(--line); color: var(--text); }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .85rem .95rem; background: rgba(1, 7, 12, .72); color: var(--text); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(77,194,203,.12); }
a { color: var(--teal); }
.shell { width: min(1240px, calc(100% - 36px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 22px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; gap: .22rem; color: var(--text); text-decoration: none; }
.brand strong { font-size: 1.35rem; letter-spacing: .1em; }
.brand span { color: var(--muted); font-size: .68rem; letter-spacing: .18em; font-weight: 800; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: .55rem; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .17em; font-size: .68rem; font-weight: 900; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4.25rem); letter-spacing: -.045em; line-height: 1; margin: .55rem 0 1rem; }
h2 { font-size: clamp(1.25rem, 2.3vw, 1.8rem); margin-bottom: .7rem; }
p { line-height: 1.6; color: #c1cfdb; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .82rem; line-height: 1.5; }
.hero { padding: clamp(38px, 8vw, 92px) 0 45px; max-width: 850px; }
.hero p { max-width: 720px; font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 0 60px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.card h2 { margin-top: .75rem; }
.card p { min-height: 4.8rem; }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(77,194,203,.12); color: var(--teal); font-size: 1.35rem; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: 99px; padding: .36rem .68rem; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pill.good { border-color: rgba(98,201,155,.35); color: var(--green); background: rgba(98,201,155,.08); }
.pill.warn { border-color: rgba(228,181,103,.35); color: var(--gold); background: rgba(228,181,103,.08); }
.pill.bad { border-color: rgba(230,106,98,.35); color: var(--red); background: rgba(230,106,98,.08); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.stat { padding: 14px; background: rgba(1,8,14,.48); border: 1px solid var(--line); border-radius: 12px; }
.stat small { display: block; color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.stat strong { display: block; font-size: 1.5rem; margin-top: .3rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions button { flex: 1 1 auto; }
.log { display: flex; flex-direction: column; gap: 8px; max-height: 310px; overflow: auto; }
.log-item { border-left: 2px solid var(--teal); background: rgba(2,9,15,.52); padding: 9px 12px; border-radius: 0 8px 8px 0; }
.log-item strong { display: block; font-size: .82rem; }
.log-item span { color: var(--muted); font-size: .75rem; }
.notice { border: 1px solid rgba(228,181,103,.32); background: rgba(228,181,103,.08); padding: 12px 14px; border-radius: 10px; color: #e8cf9e; font-size: .85rem; line-height: 1.5; }
.error { border-color: rgba(230,106,98,.4); background: rgba(230,106,98,.1); color: #ffc3bc; }
.success { border-color: rgba(98,201,155,.35); background: rgba(98,201,155,.08); color: #a8efcb; }
.hidden { display: none !important; }
.footer { border-top: 1px solid var(--line); color: var(--muted); padding: 22px 0 34px; font-size: .75rem; }
.kbd { display: inline-block; font: .74rem ui-monospace, SFMono-Regular, Menlo, monospace; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: 5px; background: rgba(0,0,0,.22); color: #d4e4f2; }
@media (max-width: 850px) { .cards { grid-template-columns: 1fr; } .card p { min-height: 0; } .grid.two { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .shell { width: min(100% - 22px, 1240px); } .topbar { align-items: flex-start; flex-direction: column; } .nav { width: 100%; } .nav a { flex: 1; } .stat-grid { grid-template-columns: 1fr 1fr; } .row.mobile-stack { align-items: flex-start; flex-direction: column; } }
