:root {
  --bg: #0f1420; --panel: #171e2e; --panel2: #1e2740; --line: #2a3553;
  --text: #e8ecf5; --mut: #8d99b8; --pink: #ff4f9a; --cyan: #25d9e0; --lime: #8be04e;
  --amber: #ffb02e; --red: #ff5d5d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: var(--cyan); text-decoration: none; cursor: pointer; }
h1 { font-size: 20px; margin: 0 0 14px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin: 0 0 10px; }
.shell { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
nav { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
nav .brand { font-weight: 800; font-size: 17px; margin: 0 8px 18px; color: var(--pink); }
nav a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--mut); margin-bottom: 2px; }
nav a.on, nav a:hover { background: var(--panel2); color: var(--text); }
nav .who { position: absolute; bottom: 16px; left: 12px; right: 12px; font-size: 12px; color: var(--mut); }
main { padding: 24px 28px; max-width: 1200px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 18px; }
.cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); margin-bottom: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 700; }
.stat .l { color: var(--mut); font-size: 12px; margin-top: 2px; }
.stat.warn .n { color: var(--amber); } .stat.bad .n { color: var(--red); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--mut); font-weight: 600; font-size: 12px; }
tr.click:hover { background: var(--panel2); cursor: pointer; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--panel2); color: var(--mut); margin-right: 4px; }
.tag.ok { color: var(--lime); } .tag.bad { color: var(--red); } .tag.warn { color: var(--amber); } .tag.test { color: var(--cyan); }
input, select, button { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; }
input:focus { outline: 2px solid var(--pink); }
button { cursor: pointer; background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 600; }
button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
button.danger { background: var(--red); border-color: var(--red); }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.err { color: var(--red); margin: 8px 0; min-height: 1.2em; }
.note { color: var(--mut); font-size: 12px; }
.login { max-width: 360px; margin: 12vh auto; }
.login input { width: 100%; margin-bottom: 10px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.bars span { flex: 1; background: var(--cyan); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.bars.pink span { background: var(--pink); }
.toast { position: fixed; right: 18px; bottom: 18px; background: var(--panel2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; max-width: 420px; }
.reveal { background: #0b0f19; border: 1px dashed var(--amber); padding: 10px 12px; border-radius: 8px; margin: 10px 0; word-break: break-all; }
.pos { color: var(--lime); } .neg { color: var(--red); }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; } nav { position: static; height: auto; display: flex; flex-wrap: wrap; } nav .who { position: static; width: 100%; } main { padding: 16px; } }
