:root { --ink:#1c2430; --mute:#667085; --line:#e3e7ee; --bg:#f6f7f9; --card:#fff; --brand:#1f4e79; --brand2:#163a5a; --warn:#b54708; --bad:#b42318; --ok:#067647; }
* { box-sizing: border-box; }
html, body { margin:0; height:100%; }
body { font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
.top { display:flex; align-items:center; gap:18px; padding:10px 20px; background:var(--brand2); color:#fff; }
.top h1 { font-size:16px; margin:0; letter-spacing:.3px; }
.top nav { display:flex; gap:4px; flex:1; }
.top nav button { background:none; border:0; color:#cfe0f0; padding:6px 12px; border-radius:6px; cursor:pointer; }
.top nav button.on, .top nav button:hover { background:rgba(255,255,255,.14); color:#fff; }
.top .who { font-size:13px; color:#cfe0f0; }
.top .who button { margin-left:10px; background:none; border:1px solid rgba(255,255,255,.35); color:#fff; border-radius:6px; padding:3px 10px; cursor:pointer; }
main { padding:18px 20px 60px; max-width:1500px; margin:0 auto; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:14px; }
.card h2 { font-size:15px; margin:0 0 10px; }
.btn { background:var(--brand); color:#fff; border:0; border-radius:7px; padding:8px 14px; cursor:pointer; }
.btn.ghost { background:#fff; color:var(--brand); border:1px solid var(--line); }
.btn.small { padding:4px 10px; font-size:13px; }
.btn:disabled { opacity:.5; cursor:default; }
input, select, textarea { border:1px solid #cfd5df; border-radius:7px; padding:7px 9px; background:#fff; width:100%; }
input:focus, select:focus, textarea:focus { outline:2px solid #9cc2e5; border-color:#9cc2e5; }
label { display:block; font-size:12px; color:var(--mute); margin-bottom:3px; }
.searchbar { display:flex; gap:8px; }
.searchbar input { font-size:16px; padding:10px 12px; }
.filters { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:8px 10px; margin-top:12px; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.chip { border:1px solid var(--line); background:#fff; border-radius:999px; padding:2px 10px; font-size:12px; cursor:pointer; }
.chip b { color:var(--mute); font-weight:500; margin-left:4px; }
.chip.on { background:#e8f1fa; border-color:#9cc2e5; }
table { width:100%; border-collapse:collapse; }
th { text-align:left; font-size:12px; color:var(--mute); font-weight:600; padding:6px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
td { padding:8px; border-bottom:1px solid var(--line); vertical-align:top; }
tr.row { cursor:pointer; }
tr.row:hover { background:#f2f6fb; }
td.num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.t1 { font-weight:600; }
.t2 { color:var(--mute); font-size:12px; overflow-wrap:anywhere; }
.badge { display:inline-block; font-size:11px; border-radius:5px; padding:1px 6px; margin-left:6px; background:#eef1f5; color:#475467; vertical-align:middle; }
.badge.warn { background:#fef0c7; color:var(--warn); } .badge.bad { background:#fee4e2; color:var(--bad); } .badge.ok { background:#d1fadf; color:var(--ok); }
.pager { display:flex; align-items:center; gap:10px; justify-content:flex-end; margin-top:10px; color:var(--mute); }
.msg { padding:10px 12px; border-radius:8px; background:#fef0c7; color:#7a2e0e; margin-bottom:12px; }
.msg.bad { background:#fee4e2; color:var(--bad); }
.drawer { position:fixed; inset:0; background:rgba(16,24,40,.45); display:flex; justify-content:flex-end; z-index:10; }
.drawer .pane { width:min(1250px, 96vw); background:var(--bg); height:100%; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(340px,1fr); }
.drawer iframe, .drawer .noprev { width:100%; height:100%; border:0; background:#525659; }
.drawer .noprev { display:flex; align-items:center; justify-content:center; color:#fff; padding:30px; text-align:center; }
.drawer .side { overflow:auto; padding:16px; }
.drawer .side h2 { margin:0 0 4px; font-size:17px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:8px 10px; }
.grid2 .wide { grid-column:1 / -1; }
.kv { font-size:13px; } .kv dt { color:var(--mute); font-size:12px; margin-top:8px; } .kv dd { margin:0; overflow-wrap:anywhere; }
.stat { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; }
.stat div { background:#f6f7f9; border-radius:8px; padding:10px 12px; } .stat b { display:block; font-size:20px; } .stat span { color:var(--mute); font-size:12px; }
.login { max-width:380px; margin:10vh auto; }
.row2 { display:flex; gap:8px; align-items:end; flex-wrap:wrap; } .row2 > * { flex:1; min-width:140px; } .row2 > .btn { flex:0 0 auto; }
pre.body { white-space:pre-wrap; font:12px/1.5 ui-monospace, Menlo, monospace; background:#fff; border:1px solid var(--line); border-radius:8px; padding:10px; max-height:300px; overflow:auto; }
@media (max-width: 900px) { .drawer .pane { grid-template-columns:1fr; grid-template-rows:45vh 1fr; } .hide-sm { display:none; } }
