:root {
  --bg: #0f1419;
  --card: #ffffff;
  --ink: #1a2027;
  --muted: #6b7785;
  --line: #e4e8ec;
  --green: #2e9e5b;
  --amber: #e0a106;
  --red: #d23b3b;
  --accent: #1f6f43;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, #1c2733 0%, var(--bg) 70%);
  color: var(--ink);
  display: grid; place-items: center; padding: 24px;
}
.card {
  width: 100%; max-width: 460px;
  background: var(--card); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 28px;
}
.head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.plane { width: 38px; height: 38px; fill: var(--accent); flex: none; }
h1 { font-size: 1.35rem; margin: 0; letter-spacing: -.01em; }
.sub { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }

.status {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border: 1px solid var(--line); border-radius: 14px;
  background: #fafbfc;
}
.dot {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--muted); box-shadow: 0 0 0 4px rgba(0,0,0,.05);
  transition: background .3s;
}
.state { margin: 0; font-weight: 650; font-size: 1.05rem; }
.hint { margin: 3px 0 0; font-size: .85rem; color: var(--muted); }

[data-state="ready"]   .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(46,158,91,.18); }
[data-state="starting"].dot,
[data-state="starting"] .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(224,161,6,.18); animation: pulse 1.2s infinite; }
[data-state="offline"] .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(210,59,59,.16); }
@keyframes pulse { 50% { opacity: .35; } }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 13px 16px; border-radius: 12px; border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #185c37; }
.btn.ghost { background: #fff; color: var(--muted); border-color: var(--line); }
.btn.ghost:hover { color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }

.foot { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; font-size: .78rem; }
#checked { color: var(--muted); }
.muted { color: var(--muted); }
.links { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.links a:hover { text-decoration: underline; }
.links .sep { color: var(--muted); margin: 0 8px; }
