:root { --brand: #0A1F44; --brand2: #2c5aa0; --gold: #C69243; --ink: #1d2433; --muted: #5b6475; --line: #dfe3eb; --bg: #f5f7fb; --card: #fff; --ok: #1e7b34; --okbg: #e7f5ea; --bad: #b42318; --badbg: #fdecea; --warn: #8a4b00; --warnbg: #fff4d6; --code: #0f1b33; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand2); text-decoration: none; } a:hover { text-decoration: underline; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
pre { background: var(--code); color: #dbe7ff; padding: 12px 14px; border-radius: 8px; overflow: auto; max-height: 460px; margin: 8px 0; white-space: pre-wrap; word-break: break-word; }
.boot { padding: 60px; text-align: center; color: var(--muted); }
.layout { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--brand); color: #c9d6ee; padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side .logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; padding: 6px 10px 14px; font-size: 15px; }
.side .logo img { width: 26px; height: 26px; }
.side .badge { background: var(--gold); color: #1f1405; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; }
.side nav a { display: flex; gap: 8px; align-items: center; color: #c9d6ee; padding: 7px 10px; border-radius: 7px; margin: 1px 0; }
.side nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.side nav a.on { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.side .group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #8fa6cf; margin: 14px 10px 4px; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 22px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.top select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font: inherit; max-width: 260px; }
.top .clock { margin-left: auto; display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.top .clock b { color: var(--ink); font-weight: 600; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #9aa3b5; display: inline-block; } .live.on { background: #22a447; box-shadow: 0 0 0 3px #d5f0dc; }
.content { padding: 22px; max-width: 1240px; }
h1 { font-size: 22px; margin: 0 0 4px; color: var(--brand); } h2 { font-size: 16px; margin: 0 0 10px; } h3 { font-size: 14px; margin: 14px 0 6px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.card + .card { margin-top: 16px; } .grid > .card + .card { margin-top: 0; }
.stat { font-size: 24px; font-weight: 700; color: var(--brand); } .stat small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; align-items: center; } .kv > div:nth-child(odd) { color: var(--muted); } .kv .mono { word-break: break-all; }
table { width: 100%; border-collapse: collapse; } th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid #eef1f6; vertical-align: top; } tr.click { cursor: pointer; } tr.click:hover td { background: #f6f8fc; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef1f6; color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--okbg); color: var(--ok); } .pill.bad { background: var(--badbg); color: var(--bad); } .pill.warn { background: var(--warnbg); color: var(--warn); } .pill.info { background: #e6eefb; color: var(--brand2); }
button, .button { font: 600 13px/1 inherit; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
button.ghost, .button.ghost { background: #fff; color: var(--brand); border-color: var(--line); } button.danger { background: var(--bad); border-color: var(--bad); }
button.small { padding: 5px 9px; font-size: 12px; } button:disabled { opacity: .55; cursor: progress; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .spacer { flex: 1; }
label { display: block; font-size: 12.5px; color: var(--muted); margin: 8px 0 4px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 90px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9db6e3; border-color: transparent; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); } .check input { width: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; color: var(--muted); border-bottom: 2px solid transparent; } .tabs a.on { color: var(--brand); border-color: var(--brand); font-weight: 600; } .tabs a:hover { text-decoration: none; color: var(--brand); }
.note { background: #f2f5fa; border-left: 3px solid #e8a33d; border-radius: 6px; padding: 9px 12px; color: var(--muted); margin: 10px 0; }
.err { background: var(--badbg); color: var(--bad); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.muted { color: var(--muted); } .small { font-size: 12px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.auth { max-width: 420px; margin: 70px auto; } .auth .card { padding: 26px; } .auth h1 { text-align: center; } .auth .brand { text-align: center; margin-bottom: 16px; }
.auth .brand img { width: 46px; }
.smd { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; overflow: auto; text-align: center; }
.smd svg { max-width: 100%; height: auto; }
.smd g.node.current > path, .smd g.node.current > polygon, .smd g.node.current > ellipse { fill: #ffd27a !important; stroke: #b36b00 !important; stroke-width: 2.6 !important; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { display: grid; grid-template-columns: 82px 74px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #e6e9f0; align-items: start; }
.timeline .t { font-weight: 700; color: var(--brand); font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.feed { max-height: 360px; overflow: auto; } .feed div { padding: 5px 0; border-bottom: 1px solid #f0f2f6; font-size: 12.5px; }
.step { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; } .step > summary { padding: 9px 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; } .step > div { padding: 0 12px 10px; }
.progress { height: 10px; background: #e9edf4; border-radius: 99px; overflow: hidden; } .progress > i { display: block; height: 100%; background: var(--ok); }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--code); color: #fff; padding: 10px 14px; border-radius: 9px; max-width: 360px; box-shadow: 0 6px 20px rgba(0,0,0,.2); font-size: 13px; }
.toast.bad { background: var(--bad); }
.secret { display: flex; gap: 6px; align-items: center; } .secret code { background: #f2f4f8; padding: 3px 7px; border-radius: 6px; word-break: break-all; }
.op { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 7px; cursor: pointer; } .op:hover, .op.on { background: #eef3fb; }
.m { font: 700 10.5px/1 ui-monospace, Menlo, monospace; padding: 3px 5px; border-radius: 4px; color: #fff; min-width: 46px; text-align: center; }
.m.GET { background: #2c7a4b; } .m.POST { background: #2c5aa0; } .m.DELETE { background: #b42318; } .m.PUT { background: #8a4b00; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; } .side { position: static; height: auto; } .side nav { display: flex; flex-wrap: wrap; } .side .group { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .content { padding: 14px; } .kv { grid-template-columns: 1fr; }
}
