:root {
  --bg: #0f1214;
  --panel: #171b1f;
  --panel-2: #1d2227;
  --line: #2a3037;
  --line-2: #353c44;
  --text: #e7ebee;
  --text-2: #a9b2ba;
  --muted: #76808a;
  --accent: #5fbf4a;
  --accent-ink: #0d1a09;
  --accent-soft: rgba(95, 191, 74, .14);
  --good: #4cc26b;
  --warn: #e3a92b;
  --bad: #ef5b55;
  --info: #5aa9e6;
  --gold: #e8bd3a;
  --purple: #b48cf2;
  --chart-line: #6cc95a;
  --chart-grid: #252b31;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5f6; --panel: #ffffff; --panel-2: #f7f8f9; --line: #e1e5e8; --line-2: #d2d8dc;
    --text: #172026; --text-2: #4b5862; --muted: #77838c; --accent: #3d9a2b; --accent-ink: #fff;
    --accent-soft: rgba(61, 154, 43, .12); --good: #2f9a4f; --warn: #b57d00; --bad: #d03b35; --info: #2c7fc0;
    --gold: #a77c00; --purple: #7b4fc9; --chart-line: #3d9a2b; --chart-grid: #e8ecee;
    --shadow: 0 8px 30px rgba(20, 30, 40, .12); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f5f6; --panel: #ffffff; --panel-2: #f7f8f9; --line: #e1e5e8; --line-2: #d2d8dc;
  --text: #172026; --text-2: #4b5862; --muted: #77838c; --accent: #3d9a2b; --accent-ink: #fff;
  --accent-soft: rgba(61, 154, 43, .12); --good: #2f9a4f; --warn: #b57d00; --bad: #d03b35; --info: #2c7fc0;
  --gold: #a77c00; --purple: #7b4fc9; --chart-line: #3d9a2b; --chart-grid: #e8ecee;
  --shadow: 0 8px 30px rgba(20, 30, 40, .12); color-scheme: light;
}

* { box-sizing: border-box; scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 15px; }
h3 { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.hidden { display: none !important; }

/* ---- layout ---- */
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand img { width: 36px; height: 36px; border-radius: 6px; image-rendering: pixelated; background: var(--panel-2); }
.brand b { font-size: 16px; display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--panel-2); text-decoration: none; color: var(--text); }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; }
.side .spacer { flex: 1; }
.side .foot { color: var(--muted); font-size: 12px; padding: 8px 10px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.top .title { font-size: 17px; font-weight: 650; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.page { padding: 20px 24px 40px; max-width: 1400px; width: 100%; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.st-running .dot { background: var(--good); box-shadow: 0 0 0 3px rgba(76, 194, 107, .2); }
.st-starting .dot, .st-stopping .dot { background: var(--warn); animation: pulse 1s infinite; }
.st-crashed .dot { background: var(--bad); }
@keyframes pulse { 50% { opacity: .35; } }

.banner { display: flex; gap: 12px; align-items: center; padding: 10px 24px; background: rgba(227, 169, 43, .12); border-bottom: 1px solid rgba(227, 169, 43, .35); color: var(--text); flex-wrap: wrap; }
.banner.guest { background: rgba(90, 169, 230, .12); border-color: rgba(90, 169, 230, .35); }
.banner b { color: var(--warn); }
.banner.guest b { color: var(--info); }
.banner .grow { flex: 1; min-width: 200px; }

/* ---- generic ---- */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.card > header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card > header h2 { margin-right: auto; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile .k { color: var(--muted); font-size: 12px; font-weight: 500; }
.tile .v { font-size: 22px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.bar { height: 4px; background: var(--panel-2); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .4s; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.good { color: var(--good); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.empty { color: var(--muted); padding: 24px; text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-weight: 550; white-space: nowrap; min-height: 34px; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { padding: 3px 10px; min-height: 28px; font-size: 12.5px; }
.btn.ghost { background: none; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn svg { width: 16px; height: 16px; }
.icon-btn { background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 6px; color: var(--text-2); display: inline-flex; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }

input[type=text], input[type=password], input[type=number], input[type=search], input[type=time], select, textarea {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; min-height: 34px; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.field { display: block; }
label.field > span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; font-weight: 500; }
label.field > small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { width: 36px; height: 20px; border-radius: 10px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--accent-soft); }

.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 12.5px; font-weight: 550; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.2); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.chip .n { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.chip .sw { width: 8px; height: 8px; border-radius: 2px; }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: var(--panel-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }

.badge { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 650; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.badge.op { color: var(--gold); border-color: rgba(232, 189, 58, .4); }
.badge.wl { color: var(--good); border-color: rgba(76, 194, 107, .4); }
.badge.ban { color: var(--bad); border-color: rgba(239, 91, 85, .4); }
.badge.be { color: var(--info); border-color: rgba(90, 169, 230, .4); }

.head { width: 28px; height: 28px; border-radius: 5px; image-rendering: pixelated; background: var(--panel-2); flex: none; object-fit: cover; }
.head.lg { width: 48px; height: 48px; border-radius: 8px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pcard { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; gap: 10px; align-items: center; background: var(--panel-2); }
.pcard .meta { flex: 1; min-width: 0; }
.pcard .meta small { color: var(--muted); display: block; }

/* ---- feed ---- */
.feed { display: flex; flex-direction: column; }
.feed .ev { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.feed .ev:last-child { border-bottom: 0; }
.feed .ev .ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; flex: none; font-size: 13px; background: var(--panel-2); }
.feed .ev .tx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.feed .ev time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---- console ---- */
.console-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; height: calc(100vh - 150px); min-height: 420px; }
.console-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.console-tools { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.console-tools input[type=search] { width: 200px; flex: 0 1 200px; min-height: 30px; padding: 4px 10px; }
.console { flex: 1; overflow-y: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; padding: 8px 0; background: var(--bg); position: relative; }
.ln { display: grid; grid-template-columns: 62px 18px 1fr; gap: 6px; padding: 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ln:hover { background: var(--panel-2); }
.ln .t { color: var(--muted); white-space: nowrap; }
.ln .g { text-align: center; }
.ln.old { opacity: .55; }
.ln.cont .t { visibility: hidden; }
.ln.c-warn .m { color: var(--warn); }
.ln.c-error .m, .ln.c-crash .m { color: var(--bad); }
.ln.c-join .m { color: var(--good); }
.ln.c-leave .m { color: var(--text-2); }
.ln.c-chat .m b { color: var(--info); font-weight: 600; }
.ln.c-death .m { color: #f08a7e; }
.ln.c-advancement .m { color: var(--gold); }
.ln.c-command .m { color: var(--purple); }
.ln.c-input .m { color: var(--accent); font-weight: 600; }
.ln.c-reply .m { color: var(--text); }
.ln.c-panel .m, .ln.c-backup .m { color: var(--info); }
.ln.c-denied .m { color: var(--bad); }
.ln.c-plugin .src { color: var(--text-2); }
.ln.c-noise, .ln.c-connect { opacity: .6; }
.ln.c-start .m { color: var(--good); font-weight: 600; }
.ln.c-lag .m { color: var(--warn); }
.ln mark { background: rgba(232, 189, 58, .35); color: inherit; border-radius: 2px; }
.jump { position: sticky; bottom: 8px; margin-left: auto; margin-right: 12px; display: block; width: max-content; box-shadow: var(--shadow); }
.cmdbar { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; background: var(--panel); }
.cmdbar .prompt { font-family: var(--mono); color: var(--accent); font-weight: 700; }
.cmdbar input { font-family: var(--mono); font-size: 13px; flex: 1; min-width: 0; }
.quick { display: flex; gap: 6px; padding: 0 12px 10px; flex-wrap: wrap; background: var(--panel); }
.side-feed { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.side-feed header { padding: 12px 14px 0; margin: 0; }
.side-feed .chips { padding: 8px 14px; }
.side-feed .feed { overflow-y: auto; padding: 0 14px 10px; flex: 1; }

/* ---- charts ---- */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chart { position: relative; }
.chart .ch-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.chart .ch-head b { font-size: 13px; font-weight: 600; }
.chart .ch-head span { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.chart canvas { width: 100%; height: 120px; display: block; }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; font-size: 12px; box-shadow: var(--shadow); white-space: nowrap; z-index: 5; }
.tip b { font-variant-numeric: tabular-nums; }

/* ---- server list preview (MOTD) ---- */
.mc-list { background: #1e1e1e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect width='32' height='32' fill='%23302722'/%3E%3Crect width='16' height='16' fill='%23382d27'/%3E%3Crect x='16' y='16' width='16' height='16' fill='%232a221e'/%3E%3C/svg%3E"); padding: 18px; border-radius: 8px; }
.mc-entry { display: flex; gap: 8px; padding: 2px; border: 2px solid transparent; max-width: 610px; }
.mc-entry:hover { border-color: #808080; background: rgba(0, 0, 0, .3); }
.mc-entry img { width: 64px; height: 64px; image-rendering: pixelated; flex: none; background: #555; }
.mc-entry .txt { flex: 1; min-width: 0; font-family: "Minecraft", var(--mono); font-size: 15px; line-height: 20px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.mc-entry .l1 { display: flex; justify-content: space-between; gap: 8px; }
.mc-entry .cnt { color: #aaa; white-space: nowrap; }
.mc-entry .motd { color: #aaa; white-space: pre; overflow: hidden; }
.mc-bedrock { background: #313233; border-radius: 4px; padding: 12px 14px; font-family: var(--mono); color: #fff; max-width: 420px; }
.mc-bedrock .sub { color: #aaa; font-size: 13px; }
.mc-tools { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.mc-tools button { width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 700; font-size: 12px; }
.ob { animation: ob .1s steps(2) infinite; }
@keyframes ob { 50% { opacity: .5; } }
.drop { border: 2px dashed var(--line-2); border-radius: 10px; padding: 18px; text-align: center; color: var(--text-2); cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }

/* ---- files ---- */
.crumbs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.crumbs a { color: var(--text-2); padding: 2px 4px; border-radius: 4px; }
.crumbs a:hover { background: var(--panel-2); text-decoration: none; }
.editor { width: 100%; min-height: 60vh; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; tab-size: 2; white-space: pre; resize: vertical; }
.ficon { width: 18px; color: var(--muted); display: inline-flex; }

/* ---- modal / toast ---- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 20px; width: min(520px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow); }
.modal.wide { width: min(820px, 100%); }
.modal h2 { margin-bottom: 8px; font-size: 17px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--panel); border: 1px solid var(--line-2); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; box-shadow: var(--shadow); white-space: pre-wrap; overflow-wrap: anywhere; animation: tin .2s; }
.toast.err { border-left-color: var(--bad); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---- login ---- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: min(380px, 100%); padding: 28px; }
.login img { width: 64px; height: 64px; image-rendering: pixelated; border-radius: 8px; display: block; margin-bottom: 14px; }

.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .console-wrap { grid-template-columns: 1fr; height: auto; }
  .console-card { height: calc(100vh - 190px); min-height: 420px; }
  .side-feed { max-height: 420px; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .page { padding: 16px 16px 90px; }
  .top { padding: 10px 16px; }
  .banner { padding: 10px 16px; }
  .cols-2, .cols-3, .charts { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top .power .lbl { display: none; }
  .mobile-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--panel); border-top: 1px solid var(--line); z-index: 50; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow-x: auto; }
  .mobile-nav a { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; color: var(--muted); border-radius: 8px; }
  .mobile-nav a.on { color: var(--accent); }
  .mobile-nav a:hover { text-decoration: none; }
  .mobile-nav svg { width: 20px; height: 20px; }
  .ln { grid-template-columns: auto 12px 1fr; gap: 5px; padding: 0 8px; font-size: 11.5px; }
  .console-tools input[type=search] { flex: 1 1 100%; width: 100%; }
  .hide-sm { display: none !important; }
}

/* ---- v2 additions ---- */
.bell { position: relative; }
.bell .count { position: absolute; top: -2px; right: -4px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 0 5px; line-height: 16px; min-width: 16px; text-align: center; }
.icon-btn.on { color: var(--warn); background: rgba(227, 169, 43, .14); }
.icon-btn svg { width: 20px; height: 20px; }
.navbadge { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.mobile-nav .navbadge { position: absolute; margin: 0 0 0 18px; font-size: 10px; padding: 0 5px; line-height: 15px; }
.mobile-nav a { position: relative; }
a.pl, b.pl { cursor: pointer; color: inherit; }
a.pl:hover, b.pl:hover { text-decoration: underline; }
.ln.c-chat .m b a.pl { color: var(--info); }
.ac { position: absolute; bottom: 100%; left: 12px; right: 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); max-height: 220px; overflow: auto; z-index: 10; font-family: var(--mono); font-size: 12.5px; }
.ac div { padding: 5px 10px; cursor: pointer; }
.ac div.on, .ac div:hover { background: var(--accent-soft); }
.cmdbar { position: relative; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 10.5px; color: var(--muted); }
.heat .c { height: 20px; border-radius: 3px; background: var(--panel-2); position: relative; }
.heat .c:hover { outline: 2px solid var(--text-2); }
.heat .h { text-align: center; }
.heat-legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.heat-legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.board { counter-reset: rank; }
.board .r { display: grid; grid-template-columns: 22px 28px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.board .r:last-child { border-bottom: 0; }
.board .rk { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.board .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.board .bar { grid-column: 3 / 5; margin-top: 0; height: 3px; }
.prog { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.prog .bar { flex: 1; margin: 0; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check .st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.check .st.ok { background: var(--good); } .check .st.warn { background: var(--warn); } .check .st.bad { background: var(--bad); }
.diff { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; max-height: 50vh; overflow: auto; }
.diff .a { color: var(--good); } .diff .d { color: var(--bad); } .diff .h { color: var(--info); }
.adv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 300px; overflow: auto; }
.adv div { font-size: 12px; padding: 5px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); }
.adv div.done { border-color: rgba(76, 194, 107, .45); }
.adv div.done b::before { content: "✓ "; color: var(--good); }
.adv div:not(.done) { opacity: .6; }
.console.wide-time .ln { grid-template-columns: 104px 18px 1fr; }
