:root {
  color-scheme: dark;
  --bg: #07080c;
  --line: rgb(255 255 255 / 0.07);
  --t1: #e6e9f1;
  --t2: #c3c8d6;
  --t3: #949cb0;
  --t4: #6b7489;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --info: #8b93ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--t1); }
body {
  font: 15px/1.5 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1100px 560px at 85% -10%, rgb(109 114 246 / 0.12), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgb(52 211 153 / 0.05), transparent 60%);
  background-attachment: fixed;
}
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgb(7 8 12 / 0.85); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.brand small { display: block; color: var(--t4); font-size: 11px; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-weight: 700; color: var(--bg);
  background: linear-gradient(135deg, #8b93ff, #34d399); }
.sync { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ok); }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sync.warn { color: var(--warn); } .sync.bad { color: var(--bad); }
.banner { padding: 8px 16px; font-size: 13px; border-bottom: 1px solid; }
.banner.warn { color: var(--warn); background: rgb(251 191 36 / 0.08); border-color: rgb(251 191 36 / 0.25); }
.banner.bad { color: var(--bad); background: rgb(251 113 133 / 0.08); border-color: rgb(251 113 133 / 0.25); }
main { max-width: 1180px; margin: 0 auto; padding: 24px 16px; display: grid; gap: 20px; }
.card { background: linear-gradient(180deg, rgb(255 255 255 / 0.025), rgb(255 255 255 / 0.01)); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; min-width: 0; }
h2 { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--t4); }
.muted { color: var(--t3); font-size: 13px; }
.tiny { color: var(--t4); font-size: 11.5px; }
.num { font-weight: 600; font-size: 22px; }
.num.small { font-size: 17px; }
.big { font-size: 24px; font-weight: 600; margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.ring-wrap { position: relative; width: 168px; height: 168px; justify-self: center; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: rgb(255 255 255 / 0.07); }
.ring .fill { stroke: url(#g); stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label strong { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.ring-label span { font-size: 12px; color: var(--t3); }
.ring-label small { font-size: 11px; color: var(--t4); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.bar { position: relative; height: 8px; margin: 10px 0 6px; border-radius: 99px; background: rgb(255 255 255 / 0.06); overflow: hidden; }
.bar.small { height: 6px; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; transition: width .7s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(90deg, #818cf8, #a78bfa); }
.bar i.ok { background: linear-gradient(90deg, #34d399, #6ee7b7); }
.bar i.warn { background: linear-gradient(90deg, #fbbf24, #fcd34d); }
.bar i.bad { background: linear-gradient(90deg, #fb7185, #fda4af); }
.bar i.muted { background: #64748b; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 500;
  white-space: nowrap; box-shadow: inset 0 0 0 1px currentColor; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: rgb(52 211 153 / .1); }
.pill.warn { color: var(--warn); background: rgb(251 191 36 / .1); }
.pill.bad { color: var(--bad); background: rgb(251 113 133 / .1); }
.pill.info { color: var(--info); background: rgb(139 147 255 / .1); }
.pill.muted { color: var(--t3); background: rgb(255 255 255 / .04); }
.phases { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.phase { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.phase.current { border-color: rgb(139 147 255 / .45); background: rgb(139 147 255 / .05); }
.phase-head, .phase-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phase-head .num { font-size: 13px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.timeline { list-style: none; margin: 0 0 0 6px; padding: 0; border-left: 1px solid rgb(255 255 255 / .1); }
.timeline li { position: relative; padding: 0 0 16px 20px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px var(--bg); }
.notes { margin: 0 0 16px; padding-left: 18px; color: var(--t2); font-size: 13px; }
.notes li { margin-bottom: 6px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.meta dt { color: var(--t4); }
.meta dd { margin: 0; color: var(--t2); }
footer { max-width: 1180px; margin: 0 auto; padding: 0 16px 32px; color: var(--t4); font-size: 11.5px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-grid, .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
