:root {
  --bg: #03050a;
  --panel: rgba(10, 18, 32, .58);
  --line: rgba(0, 240, 255, .22);
  --cyan: #00f0ff;
  --mag: #ff2bd6;
  --amb: #ffb000;
  --grn: #3dff9a;
  --red: #ff4d6d;
  --txt: #d8f6ff;
  --dim: #6f8aa0;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --head: "Orbitron", "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--txt); font-family: var(--mono); }
body { min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(ellipse at 20% -10%, rgba(0,240,255,.14), transparent 55%),
              radial-gradient(ellipse at 110% 30%, rgba(255,43,214,.10), transparent 50%),
              radial-gradient(ellipse at 50% 120%, rgba(255,176,0,.07), transparent 50%), var(--bg); }
.stars { position: absolute; inset: -50%; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #9ff, transparent),
    radial-gradient(1px 1px at 55% 35%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 80%, #f9f, transparent),
    radial-gradient(1px 1px at 90% 10%, #fff, transparent), radial-gradient(1px 1px at 65% 90%, #ffd, transparent);
  background-size: 340px 340px; animation: drift 180s linear infinite; }
.grid { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%;
  background-image: linear-gradient(rgba(0,240,255,.16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,240,255,.16) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(500px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  animation: gridmove 6s linear infinite; }
.scan { position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 140px; top: -140px;
  background: linear-gradient(to bottom, transparent, rgba(0,240,255,.06), transparent);
  animation: sweep 9s linear infinite; }
@keyframes drift { to { transform: translate(340px, 340px); } }
@keyframes gridmove { to { background-position: 0 60px, 0 0; } }
@keyframes sweep { to { top: 110%; } }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px clamp(14px, 3vw, 36px); border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(3,5,10,.9), rgba(3,5,10,.4)); backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 8px rgba(0,240,255,.6)); }
h1 { font-family: var(--head); font-weight: 900; letter-spacing: .14em; margin: 0;
  font-size: clamp(14px, 2.2vw, 24px); line-height: 1.25; }
.h-a { color: #fff; text-shadow: 0 0 12px rgba(0,240,255,.7); }
.h-sep { color: var(--mag); text-shadow: 0 0 10px var(--mag); }
.h-b { color: var(--cyan); text-shadow: 0 0 14px rgba(0,240,255,.8); }
.status { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(61,255,154,.45); background: rgba(61,255,154,.06); font-size: 12px; letter-spacing: .12em; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grn); box-shadow: 0 0 10px var(--grn);
  animation: pulse 1.6s ease-in-out infinite; }
.status-label { font-family: var(--head); font-weight: 700; color: var(--grn); }
.sync { color: var(--dim); }
.status[data-state="lost"] { border-color: rgba(255,77,109,.6); background: rgba(255,77,109,.1); }
.status[data-state="lost"] .dot { background: var(--red); box-shadow: 0 0 12px var(--red); animation-duration: .7s; }
.status[data-state="lost"] .status-label { color: var(--red); }
.status[data-state="boot"], .status[data-state="stale"] { border-color: rgba(255,176,0,.5); background: rgba(255,176,0,.07); }
.status[data-state="boot"] .dot, .status[data-state="stale"] .dot { background: var(--amb); box-shadow: 0 0 10px var(--amb); }
.status[data-state="boot"] .status-label, .status[data-state="stale"] .status-label { color: var(--amb); }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .45; } }

/* ---------- layout ---------- */
main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  padding: 20px clamp(12px, 3vw, 36px) 30px; max-width: 1600px; margin: 0 auto; }
.span-2, .hero { grid-column: 1 / -1; }
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(0,240,255,.05) inset, 0 0 24px rgba(0,240,255,.08), 0 20px 40px rgba(0,0,0,.4);
  min-width: 0; }
.panel::before, .panel::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--cyan);
  filter: drop-shadow(0 0 4px var(--cyan)); }
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; border-color: var(--mag); filter: drop-shadow(0 0 4px var(--mag)); }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
h2 { font-family: var(--head); font-size: 13px; letter-spacing: .22em; margin: 0; color: var(--cyan); font-weight: 700;
  text-shadow: 0 0 8px rgba(0,240,255,.5); }
h2::before { content: "▸ "; color: var(--mag); }
.sub { color: var(--dim); font-size: 11px; letter-spacing: .1em; }
.mini { font-family: var(--head); font-size: 11px; letter-spacing: .2em; color: var(--dim); margin: 16px 0 8px; font-weight: 500; }
.empty { color: var(--dim); font-size: 12px; letter-spacing: .12em; padding: 18px 0; text-align: center; border: 1px dashed rgba(111,138,160,.3); border-radius: 10px; list-style: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { position: relative; padding: 14px 16px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(0,240,255,.08), rgba(10,18,32,.55) 55%); overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc, var(--cyan));
  box-shadow: 0 0 12px var(--acc, var(--cyan)); }
.stat .k { font-size: 10px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.stat .v { font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); margin-top: 6px; color: #fff;
  text-shadow: 0 0 14px var(--acc, var(--cyan)); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font-size: 11px; color: var(--dim); margin-top: 4px; }
.stat.c-mag { --acc: var(--mag); } .stat.c-amb { --acc: var(--amb); } .stat.c-grn { --acc: var(--grn); }

/* ---------- legend & charts ---------- */
.legend { display: flex; gap: 14px; font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.lg.bar::before { width: 6px; height: 12px; }
.c-cyan { color: var(--cyan); } .c-mag { color: var(--mag); } .c-amb { color: var(--amb); }
.chart { position: relative; width: 100%; height: 280px; }
.chart.short { height: 120px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .axis text { fill: var(--dim); font-size: 10px; font-family: var(--mono); }
.chart .gridline { stroke: rgba(0,240,255,.08); stroke-dasharray: 2 4; }
.chart .hot { cursor: crosshair; }
.tip { position: absolute; pointer-events: none; z-index: 3; padding: 8px 10px; border-radius: 8px; font-size: 11px; line-height: 1.5;
  background: rgba(3,8,16,.92); border: 1px solid var(--cyan); box-shadow: 0 0 16px rgba(0,240,255,.35); white-space: nowrap;
  transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; }
.tip.on { opacity: 1; }
.tip b { color: var(--cyan); font-weight: 600; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 14px; margin-top: 10px; }
.strip i { border-radius: 2px; background: var(--cyan); }

/* ---------- leaderboard ---------- */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.rank { font-family: var(--head); font-size: 13px; color: var(--mag); text-shadow: 0 0 8px var(--mag); padding-top: 2px; }
.row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.mname { font-weight: 600; color: #fff; overflow-wrap: anywhere; font-size: 13px; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 4px; font-size: 10px; letter-spacing: .08em;
  color: var(--amb); border: 1px solid rgba(255,176,0,.45); background: rgba(255,176,0,.08); vertical-align: 1px; }
.mval { font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; }
.track { height: 8px; border-radius: 6px; background: rgba(0,240,255,.07); margin: 6px 0 4px; overflow: hidden; }
.fill { height: 100%; border-radius: 6px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--mag));
  box-shadow: 0 0 12px rgba(0,240,255,.7); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.meta { font-size: 11px; color: var(--dim); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- crew ---------- */
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: linear-gradient(170deg, rgba(255,43,214,.06), rgba(10,18,32,.5)); transition: transform .2s, box-shadow .2s; min-width: 0; }
.card:hover { transform: translateY(-2px); box-shadow: 0 0 18px rgba(0,240,255,.25); }
.card .nm { font-family: var(--head); font-size: 13px; letter-spacing: .1em; color: #fff; display: flex; align-items: center; gap: 8px; min-width: 0; }
.card .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #2a3a48; }
.adot.live { background: var(--grn); box-shadow: 0 0 10px var(--grn); animation: pulse 1.8s infinite; }
.adot.warm { background: var(--amb); box-shadow: 0 0 8px var(--amb); }
.card .md { font-size: 11px; color: var(--amb); margin: 4px 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 0; }
.card dt { font-size: 9px; letter-spacing: .18em; color: var(--dim); }
.card dd { margin: 0; font-weight: 700; font-size: 15px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.card .la { font-size: 10px; color: var(--dim); margin-top: 8px; }

/* ---------- kanban ---------- */
.kb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kb-stats div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; background: rgba(0,240,255,.04); }
.kb-stats .k { font-size: 9px; letter-spacing: .2em; color: var(--dim); }
.kb-stats .v { font-size: 22px; font-weight: 700; color: var(--amb); text-shadow: 0 0 10px rgba(255,176,0,.6); font-variant-numeric: tabular-nums; }
.kb-body { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; margin-top: 14px; }
.donut { width: 160px; height: 160px; }
.donut svg { width: 100%; height: 100%; display: block; }
.donut .c1 { font-family: var(--mono); font-weight: 700; font-size: 20px; fill: #fff; }
.donut .c2 { font-size: 8px; letter-spacing: .2em; fill: var(--dim); font-family: var(--mono); }
.kb-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12px; }
.kb-legend li { display: flex; align-items: center; gap: 8px; }
.kb-legend .sw { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.kb-legend .n { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.assignees { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.assignees li { display: grid; grid-template-columns: minmax(70px, 120px) 1fr 50px; gap: 10px; align-items: center; font-size: 12px; }
.assignees .an { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assignees .track { margin: 0; height: 6px; }
.assignees .fill { background: linear-gradient(90deg, var(--amb), var(--mag)); box-shadow: 0 0 10px rgba(255,176,0,.6); }
.assignees .ad { text-align: right; font-weight: 700; color: var(--amb); }

/* ---------- cron ---------- */
.cron { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cron div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: rgba(0,240,255,.04); }
.cron .k { font-size: 9px; letter-spacing: .2em; color: var(--dim); }
.cron .v { font-size: 24px; font-weight: 700; color: #fff; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cron .v.bad { color: var(--red); text-shadow: 0 0 10px var(--red); }
.cron .v.ok { color: var(--grn); text-shadow: 0 0 10px rgba(61,255,154,.6); }
.badge { font-family: var(--head); font-size: 10px; letter-spacing: .2em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--dim); color: var(--dim); }
.badge.ok { color: var(--grn); border-color: var(--grn); box-shadow: 0 0 10px rgba(61,255,154,.4); }
.badge.warn { color: var(--amb); border-color: var(--amb); box-shadow: 0 0 10px rgba(255,176,0,.4); }
.badge.bad { color: var(--red); border-color: var(--red); box-shadow: 0 0 10px rgba(255,77,109,.5); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px clamp(14px, 3vw, 36px) 26px;
  color: var(--dim); font-size: 10px; letter-spacing: .16em; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .top { padding: 12px 14px; }
  .logo { width: 32px; height: 32px; }
  h1 { font-size: 13px; letter-spacing: .1em; }
  .h-sep { display: none; }
  .h-a, .h-b { display: block; }
  .status { width: 100%; justify-content: flex-start; }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; }
  .stat .v { font-size: 22px; }
  .chart { height: 220px; }
  .chart.short { height: 90px; }
  .kb-body { grid-template-columns: 1fr; justify-items: center; }
  .kb-legend { width: 100%; }
  .crew { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .panel { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scan::after { display: none; }
}

/* ---------- grades ---------- */
.gr-board { gap: 14px; }
.gr-row { grid-template-columns: 26px minmax(0, 1fr); }
.gr-body { min-width: 0; }
.gr-model { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.gbadge { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px;
  border-radius: 5px; font-family: var(--head); font-size: 12px; font-weight: 700; vertical-align: -2px;
  border: 1px solid currentColor; background: rgba(255,255,255,.03); }
.gbadge.g-a { color: var(--grn); box-shadow: 0 0 10px rgba(61,255,154,.45); }
.gbadge.g-b { color: var(--cyan); box-shadow: 0 0 10px rgba(0,240,255,.45); }
.gbadge.g-c { color: var(--amb); box-shadow: 0 0 10px rgba(255,176,0,.4); }
.gbadge.g-d { color: #ff7a45; box-shadow: 0 0 10px rgba(255,122,69,.4); }
.gbadge.g-f { color: var(--red); box-shadow: 0 0 10px rgba(255,77,109,.45); }
.tag.prov { color: var(--amb); border-color: rgba(255,176,0,.5); background: rgba(255,176,0,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 2px 8px; border-radius: 5px;
  font-size: 10px; letter-spacing: .1em; border: 1px solid rgba(0,240,255,.22); background: rgba(0,240,255,.05); }
.chip-k { color: var(--dim); }
.chip-v { font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; }
.chip.na { border-style: dashed; border-color: rgba(111,138,160,.3); background: transparent; }
.chip.na .chip-v { color: var(--dim); }

.gr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.gr-card { background: linear-gradient(170deg, rgba(0,240,255,.06), rgba(10,18,32,.5)); }
.gr-score { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 10px; }
.gr-score-v { font-family: var(--mono); font-size: 24px; font-weight: 700; color: #fff;
  text-shadow: 0 0 14px rgba(0,240,255,.65); font-variant-numeric: tabular-nums; }
.gr-score-k { font-size: 9px; letter-spacing: .2em; color: var(--dim); }
.gr-card dl dd { font-size: 13px; overflow-wrap: anywhere; }
.gr-tags { margin-top: 8px; }
.ci { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ci-lab { font-size: 9px; letter-spacing: .18em; color: var(--dim); flex: none; }
.ci-rail { position: relative; flex: 1; min-width: 40px; height: 4px; border-radius: 3px;
  background: rgba(0,240,255,.1); overflow: hidden; }
.ci-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--grn)); box-shadow: 0 0 8px rgba(0,240,255,.6); }
.ci-na { font-size: 11px; color: var(--dim); }
.ci-txt { font-size: 9px; color: var(--dim); font-variant-numeric: tabular-nums; flex: none; }

.gr-cron { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gr-cron li { display: grid; grid-template-columns: minmax(80px, 150px) minmax(60px, 1fr) 56px auto;
  gap: 10px; align-items: center; font-size: 12px; }
.gr-cron .an { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-cron .track { margin: 0; height: 6px; }
.gr-cron .fill { background: linear-gradient(90deg, var(--grn), var(--cyan)); box-shadow: 0 0 10px rgba(61,255,154,.55); }
.gr-cron .ad { text-align: right; font-weight: 700; color: var(--grn); font-variant-numeric: tabular-nums; }
.gr-runs { display: inline-flex; gap: 8px; align-items: center; color: var(--dim); font-size: 10px; letter-spacing: .08em; }

.gr-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(0,240,255,.04); min-width: 0; }
.tile-k { font-size: 9px; letter-spacing: .2em; color: var(--dim); }
.tile-v { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--amb); margin: 6px 0 4px;
  text-shadow: 0 0 12px rgba(255,176,0,.5); font-variant-numeric: tabular-nums; }
.tile-l { font-size: 11px; color: var(--dim); line-height: 1.6; overflow-wrap: anywhere; }
.tile-off { margin-top: 8px; font-family: var(--head); font-size: 12px; letter-spacing: .12em;
  color: var(--amb); border: 1px dashed rgba(255,176,0,.35); border-radius: 8px; padding: 10px; text-align: center; }

.how { display: grid; gap: 10px; }
.how-row { display: grid; grid-template-columns: 54px 170px minmax(0, 1fr); gap: 12px; align-items: baseline;
  border-bottom: 1px solid rgba(0,240,255,.08); padding-bottom: 8px; }
.how-w { font-family: var(--head); font-size: 15px; font-weight: 700; text-shadow: 0 0 10px currentColor; }
.how-k { font-size: 11px; letter-spacing: .16em; color: #fff; }
.how-d { font-size: 11px; color: var(--dim); line-height: 1.6; }
.how-note { margin: 6px 0 0; font-size: 11px; color: var(--dim); line-height: 1.7; }

@media (max-width: 520px) {
  .gr-cards { grid-template-columns: minmax(0, 1fr); }
  .gr-cron li { grid-template-columns: minmax(0, 1fr) 56px; grid-template-areas: "n a" "t t" "r r"; row-gap: 4px; }
  .gr-cron .an { grid-area: n; } .gr-cron .ad { grid-area: a; } .gr-cron .track { grid-area: t; } .gr-cron .gr-runs { grid-area: r; }
  .how-row { grid-template-columns: 46px minmax(0, 1fr); }
  .how-d { grid-column: 1 / -1; }
  .chips { gap: 4px; }
  .chip { padding: 2px 6px; font-size: 9px; }
}

.gbadge.g-na{color:var(--muted-foreground,#7f8ea3);border-color:currentColor;box-shadow:none;text-shadow:none}
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px 22px; }
.cat-row { min-width: 0; }
.cat-row .bar { height: 4px; background: rgba(0,240,255,.08); margin: 6px 0; border-radius: 2px; overflow: hidden; }
.cat-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--grn)); }
.chip.fast { border-color: var(--grn); }

/* ================= LIGHT THEME (2026-10-27, gonka-api.org/dashboard look) =================
   Gray page, white 1px-bordered cards, near-black type, mono eyebrows, green status accent. */
:root {
  --bg: #f7f7f7; --panel: #fff; --line: #e4e4e7;
  --cyan: #18181b; --mag: #71717a; --amb: #18181b; --grn: #22c55e; --red: #dc2626;
  --txt: #18181b; --dim: #71717a;
  --head: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
html, body { background: var(--bg); color: var(--txt); font-family: var(--head); }
.bg { display: none; }
*, *::before, *::after { text-shadow: none !important; }
/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; padding: 12px clamp(14px, 3vw, 36px); }
.logo { filter: none; width: 30px; height: 30px; }
h1 { font-family: var(--head); font-weight: 700; letter-spacing: -.01em; font-size: clamp(15px, 1.6vw, 17px); }
.h-a, .h-b { color: #18181b; } .h-b { font-weight: 500; color: #71717a; } .h-sep { color: #d4d4d8; }
.to-news { color: #18181b !important; border: 1px solid #18181b !important; border-radius: 2px; opacity: 1 !important;
  font: 500 12px/1 var(--head) !important; letter-spacing: 0 !important; padding: 9px 12px !important; }
.to-news:hover { background: #18181b; color: #fff !important; }
.status { border: 1px solid var(--line); background: #fff; font-family: var(--mono); font-size: 11px; border-radius: 999px; }
.status .dot { box-shadow: none; width: 8px; height: 8px; }
.status-label { font-family: var(--mono); font-weight: 500; color: #16a34a; letter-spacing: .16em; }
.status[data-state="lost"] { border-color: #fecaca; background: #fef2f2; } .status[data-state="lost"] .dot { box-shadow: none; }
.status[data-state="boot"], .status[data-state="stale"] { border-color: #fde68a; background: #fffbeb; }
.status[data-state="boot"] .dot, .status[data-state="stale"] .dot { background: #d97706; box-shadow: none; }
.status[data-state="boot"] .status-label, .status[data-state="stale"] .status-label { color: #b45309; }
/* layout + cards */
main { gap: 24px; padding: 28px clamp(12px, 3vw, 36px) 36px; max-width: 1280px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; padding: 20px;
  backdrop-filter: none; -webkit-backdrop-filter: none; }
.panel::before, .panel::after { display: none; }
h2 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .2em; color: #71717a;
  display: inline-flex; align-items: center; gap: 8px; }
h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grn); }
.sub, .mini { font-family: var(--mono); color: #a1a1aa; }
.mini { font-weight: 500; }
.empty { border-color: var(--line); color: #a1a1aa; font-family: var(--mono); }
/* hero stats */
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.stat::after { display: none; }
.stat .k { font-family: var(--mono); color: #71717a; }
.stat .v { color: #18181b; font-family: var(--head); font-weight: 700; letter-spacing: -.02em; }
.stat .s { color: #a1a1aa; font-family: var(--mono); }
/* charts */
.legend { font-family: var(--mono); color: #71717a; }
.lg::before { box-shadow: none; }
.c-cyan { color: #18181b; } .c-mag { color: #a1a1aa; } .c-amb { color: #22c55e; }
.chart .axis text { fill: #a1a1aa; }
.chart .gridline { stroke: #ededed; stroke-dasharray: none; }
.chart svg polyline { filter: none; }
.tip { background: #fff; color: #18181b; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.08); font-family: var(--mono); }
.tip b { color: #18181b; }
.strip i { background: #18181b; }
/* leaderboard */
.rank { font-family: var(--mono); color: #a1a1aa; }
.mname, .gr-model { color: #18181b; }
.tag, .tag.prov { color: #52525b; border: 0; background: #f4f4f5; font-family: var(--mono); }
.mval { color: #18181b; font-family: var(--mono); }
.track, .ci-rail, .cat-row .bar { background: #f4f4f5; }
.fill, .ci-fill, .cat-row .bar i, .assignees .fill, .gr-cron .fill { background: #18181b; box-shadow: none; }
.meta { font-family: var(--mono); color: #71717a; }
/* crew / grade cards */
.card, .gr-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.card:hover { transform: none; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.card .nm { font-family: var(--head); font-weight: 600; letter-spacing: 0; color: #18181b; }
.adot { background: #d4d4d8; } .adot.live { box-shadow: none; } .adot.warm { background: #d97706; box-shadow: none; }
.card .md { color: #71717a; font-family: var(--mono); }
.card dt, .gr-score-k, .ci-lab, .tile-k, .kb-stats .k, .cron .k { font-family: var(--mono); color: #a1a1aa; }
.card dd { color: #18181b; font-family: var(--mono); }
.gr-score-v { color: #18181b; font-family: var(--head); letter-spacing: -.02em; }
.gbadge { font-family: var(--mono); background: #fff; box-shadow: none !important; }
.gbadge.g-a { color: #16a34a; } .gbadge.g-b { color: #18181b; } .gbadge.g-c { color: #d97706; }
.gbadge.g-d { color: #ea580c; } .gbadge.g-f { color: #dc2626; } .gbadge.g-na { color: #a1a1aa; }
.chip { border: 1px solid var(--line); background: #fafafa; font-family: var(--mono); }
.chip-v { color: #18181b; } .chip.fast { border-color: #86efac; background: #f0fdf4; }
/* kanban / cron / tiles */
.kb-stats div, .cron div, .tile { background: #fafafa; border: 1px solid var(--line); border-radius: 8px; }
.kb-stats .v, .tile-v, .cron .v { color: #18181b; font-family: var(--head); letter-spacing: -.02em; }
.cron .v.ok { color: #16a34a; } .cron .v.bad { color: #dc2626; }
.donut .c1 { fill: #18181b; font-family: var(--head); }
.assignees .ad, .gr-cron .ad { color: #18181b; font-family: var(--mono); }
.badge { font-family: var(--mono); box-shadow: none !important; border-color: var(--line); background: #fff; }
.badge.ok { color: #16a34a; border-color: #86efac; background: #f0fdf4; }
.badge.warn { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.badge.bad { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.tile-l, .how-d, .how-note { color: #71717a; }
.tile-off { font-family: var(--mono); color: #b45309; border-color: #fde68a; }
.how-row { border-bottom-color: #ededed; }
.how-w { font-family: var(--head); } .how-k { color: #18181b; font-family: var(--mono); }
.foot { font-family: var(--mono); color: #71717a; border-top: 1px solid var(--line); }
.logo { filter: grayscale(1) contrast(1.3); }
.sub, .mini, .stat .s, .card dt, .gr-score-k, .ci-lab, .ci-txt, .ci-na, .tile-k, .kb-stats .k, .cron .k, .chart .axis text { color: #71717a; fill: #71717a; }
.c-amb { color: #16a34a; } .status-label { color: #15803d; }
.cat-list { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }

/* ===== key-metrics consolidation (2026-10-27) ===== */
.hero { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.more-metrics { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.more-metrics > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; font: 500 11px/1.4 var(--mono); letter-spacing: .2em; color: #18181b; }
.more-metrics > summary::-webkit-details-marker { display: none; }
.more-metrics > summary::before { content: "+"; font: 600 14px/1 var(--mono); width: 14px; }
.more-metrics[open] > summary::before { content: "−"; }
.more-metrics > summary .sub { letter-spacing: .02em; text-transform: none; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 4px 20px 20px; }
.more-grid > .span-2 { grid-column: 1 / -1; }
@media (max-width: 760px) { .more-grid { grid-template-columns: minmax(0, 1fr); padding: 4px 12px 12px; } }
