:root { --bg:#0C0C0D; --card:#141416; --line:#26262A; --line2:#3A3A40; --text:#EFEAE0; --mute:#A8A294; --amber:#EFA81A; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 'Hanken Grotesk', system-ui, sans-serif; }
a { color: var(--amber); } a:hover { color: #F6C55C; }
h1, h2 { font-family: 'Big Shoulders Display', sans-serif; letter-spacing: 1px; margin: 0; }
h1 { font-weight: 800; font-size: 44px; } h2 { font-weight: 600; font-size: 22px; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.brand { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: 1px; line-height: 1.1; }
.brand span { display: block; color: var(--amber); font-size: 16px; letter-spacing: 2px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mute); }
input, select { min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 8px; background: transparent; color: var(--text); font: 500 15px 'Hanken Grotesk', sans-serif; cursor: pointer; }
button.primary { border: 0; background: var(--amber); color: var(--bg); font-weight: 600; }
button.chip { border-radius: 999px; font-size: 14px; }
button.chip.on { border-color: var(--amber); color: var(--amber); }
button:disabled { opacity: .5; cursor: default; }
.err { color: #F2A3A3; font-size: 14px; min-height: 20px; }
.mute { color: var(--mute); font-size: 13px; }
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
nav { flex: 1 1 220px; padding: 28px 20px; background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
nav .brand { margin-bottom: 20px; }
nav button { text-align: left; border: 0; }
nav button.on { background: var(--amber); color: var(--bg); font-weight: 600; }
nav .who { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
main { flex: 999 1 560px; min-width: 0; padding: 32px 36px; display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1 1 260px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.tile, .card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.card { display: flex; flex-direction: column; gap: 12px; }
.tile .n { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--amber); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; }
.kv span:nth-child(odd) { color: var(--mute); }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 14px 16px; font-weight: 500; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
td { padding: 12px 16px; border-top: 1px solid var(--line); }
td button.link { min-height: 44px; padding: 0; border: 0; color: var(--amber); font-weight: 600; text-align: left; }
.pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: #1E2A1E; color: #9AD29A; } .pill.warn { background: #3A2C0B; color: #F6C55C; }
.pill.bad { background: #3A1616; color: #F2A3A3; } .pill.off { background: #26262A; color: #C9C4B8; }
.qr { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 8px; align-self: center; }
code { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; }
pre.log { margin: 0; padding: 14px; border-radius: 8px; background: var(--bg); font-size: 13px; white-space: pre-wrap; max-height: 320px; overflow: auto; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 18px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; }
#toast.show { opacity: 1; }
@media (max-width: 700px) { main { padding: 20px 16px; } h1 { font-size: 34px; } }
