:root {
  color-scheme: dark;
  --bg: #07060f;
  --panel: #12101c;
  --ink: #f4f0ff;
  --muted: #9b93b8;
  --faint: #6b6388;
  --line: #2a2440;
  --violet: #7c3aed;
  --violet-soft: #a78bfa;
  --green: #34d399;
  --gold: #fbbf24;
  --red: #f87171;
  --font: Inter, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
.bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 0%, #7c3aed33, transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 20%, #34d39922, transparent 50%),
    radial-gradient(ellipse 30% 30% at 50% 100%, #fbbf2415, transparent 45%);
}
.top, main { position: relative; z-index: 1; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: #0a0914cc;
  backdrop-filter: blur(12px);
  position: sticky; top: 0;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand img { border-radius: 10px; border: 1px solid var(--line); }
.brand strong { display: block; font-size: 15px; }
.brand span { font-size: 12px; color: var(--muted); }
.top-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 0 transparent;
}
.live-dot.on {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.mono { font-family: var(--mono); font-size: 12px; color: var(--faint); }
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 16px 40px #0006;
}
.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--violet-soft); margin-bottom: 8px;
}
h1 { font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.lede { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.overall-bar {
  height: 12px; border-radius: 999px; background: #0a0914;
  border: 1px solid var(--line); overflow: hidden; margin-bottom: 14px;
}
.overall-fill {
  height: 100%; width: 8%;
  background: linear-gradient(90deg, var(--violet), var(--green));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.overall-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.overall-stats b { display: block; font-size: 1.25rem; color: var(--ink); }
.overall-stats span { font-size: 11px; color: var(--faint); font-weight: 600; }
.stage {
  position: relative;
  height: 220px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 80%, #7c3aed22, transparent 50%),
    #0a0914;
  border: 1px solid var(--line);
  overflow: hidden;
}
.stage-caption { margin-top: 10px; font-size: 12px; color: var(--faint); }
.bot {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  border: 2px solid var(--line);
  background: #16122a;
  box-shadow: 0 8px 20px #0008;
  transition: left 1.2s ease, top 1.2s ease, border-color 0.3s, transform 0.3s;
  cursor: default;
}
.bot.working {
  border-color: var(--violet-soft);
  animation: bounce 0.9s ease-in-out infinite;
}
.bot.done { border-color: var(--green); }
.bot.blocked { border-color: var(--gold); }
.bot .label {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: #0a0914ee;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.card-head h2 { font-size: 1rem; }
.hint { font-size: 12px; color: var(--faint); }
.planes { display: flex; flex-direction: column; gap: 10px; }
.plane {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0914;
}
.plane .name { font-weight: 700; font-size: 13px; }
.plane .sum { font-size: 12px; color: var(--muted); }
.plane .bar {
  grid-column: 1 / -1;
  height: 6px; border-radius: 999px; background: #16122a; overflow: hidden;
}
.plane .bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--green));
  transition: width 0.5s ease;
}
.badge {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.badge.green { color: var(--green); border-color: #14532d; background: #052e1a; }
.badge.amber { color: var(--gold); border-color: #78350f; background: #1c1405; }
.badge.red { color: var(--red); border-color: #7f1d1d; background: #1f0a0a; }
.queue { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.queue li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #0a0914;
  font-size: 13px;
}
.queue .q-title { font-weight: 600; }
.queue .q-sub { font-size: 11px; color: var(--faint); margin-top: 2px; }
.feed {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 360px; overflow-y: auto;
}
.feed-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0914;
  font-size: 13px;
  animation: in 0.35s ease;
}
@keyframes in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.feed-item time { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.feed-item b { color: var(--violet-soft); font-weight: 700; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.fine { font-size: 12px; color: var(--faint); }
@media (max-width: 800px) {
  .hero-row, .grid-2 { grid-template-columns: 1fr; }
  .overall-stats { grid-template-columns: 1fr 1fr; }
}
