:root{--bg:#0b0b0c;--surface:#161618;--surface-2:#202023;--border:#2c2c30;--text:#ececee;--muted:#8e8e96;--accent:#ff7a1a;--accent-hover:#ff9142;--accent-text:#111;--accent-soft:#ff7a1a1f;--ok:#4ade80;--warn:#ffb347;--bad:#f87171;--ok-bg:#12251a;--warn-bg:#2e1f0c;--bad-bg:#2d1414;--info-bg:#ff7a1a1a;--c1:#ff7a1a;--c2:#d4d4d8;--c3:#ffc078;--c4:#8e8e96;--radius:10px;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);margin:0;font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1{margin:0 0 4px;font-size:22px;font-weight:600}h2{margin:0 0 12px;font-size:16px;font-weight:600}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px}.num{font-variant-numeric:tabular-nums}.shell{grid-template-columns:220px 1fr;align-content:start;min-height:100vh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:4px;height:100vh;padding:20px 12px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:8px;padding:0 10px 16px;font-size:15px;font-weight:600;display:flex}.nav a{color:var(--text);border-radius:8px;align-items:center;gap:10px;padding:8px 10px;display:flex}.nav a:hover{background:var(--surface-2);text-decoration:none}.nav a.active{background:var(--info-bg);color:var(--accent);font-weight:500}.sidebar-footer{border-top:1px solid var(--border);flex-direction:column;gap:6px;margin-top:auto;padding:10px;display:flex}.main{min-width:0;padding:24px 28px 48px}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:20px;display:flex}.topbar{display:none}.burger{border-radius:8px;width:40px;height:40px;padding:0}.drawer-backdrop{display:none}@media (width<=860px){.shell{grid-template-columns:1fr}.topbar{z-index:30;background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;height:56px;padding:0 12px 0 16px;display:flex;position:sticky;top:0}.topbar .brand{padding:0}.sidebar{z-index:40;visibility:hidden;width:min(280px,85vw);height:100dvh;transition:transform .22s,visibility 0s linear .22s;position:fixed;inset:0 auto 0 0;transform:translate(-100%);box-shadow:4px 0 24px #00000080}.sidebar.open{visibility:visible;transition:transform .22s;transform:none}.nav a{padding:12px 10px;font-size:15px}.drawer-backdrop{z-index:35;background:#0009;display:block;position:fixed;inset:0}.main{padding:16px 16px 40px}.grid.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats .card{padding:12px 14px}.stat-value,h1{font-size:20px}.page-head .segmented{width:100%;overflow-x:auto}.page-head .segmented button{flex:1 0 auto}}@media (prefers-reduced-motion:reduce){.sidebar{transition:none}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;padding:16px 18px}.grid{gap:14px;display:grid}.stats{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.two{grid-template-columns:repeat(auto-fit,minmax(420px,1fr))}@media (width<=520px){.two{grid-template-columns:1fr}}.section{margin-top:22px}.stat-label{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:12px}.stat-value{font-variant-numeric:tabular-nums;margin:2px 0;font-size:24px;font-weight:600}.stat-sub{color:var(--muted);font-size:12px}.meter{background:var(--surface-2);border:1px solid var(--border);border-radius:99px;height:6px;margin-top:8px;overflow:hidden}.meter>div{background:var(--ok);border-radius:99px;height:100%;transition:width .4s}.meter.warn>div{background:var(--warn)}.meter.bad>div{background:var(--bad)}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;padding:9px 10px}th{color:var(--muted);white-space:nowrap;font-size:12px;font-weight:500}tr:last-child td{border-bottom:0}td.right,th.right{text-align:right}label{margin-bottom:4px;font-weight:500;display:block}.field{margin-bottom:14px}.hint{color:var(--muted);margin-top:4px;font-size:12px;font-weight:400}input[type=text],input[type=password],input[type=email],input[type=number],select,textarea{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);font:inherit;border-radius:8px;padding:8px 10px}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:#0000}.input-group{align-items:stretch;display:flex}.input-group input{border-top-right-radius:0;border-bottom-right-radius:0}.input-group .addon{border:1px solid var(--border);background:var(--surface-2);color:var(--muted);white-space:nowrap;border-left:0;border-radius:0 8px 8px 0;align-items:center;padding:0 10px;display:flex}.row{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.row>*{flex:160px}.checkbox{cursor:pointer;align-items:center;gap:8px;font-weight:400;display:flex}.segmented{border:1px solid var(--border);border-radius:8px;display:inline-flex;overflow:hidden}.segmented button{background:var(--surface);color:var(--text);border:0;border-radius:0;padding:6px 12px}.segmented button+button{border-left:1px solid var(--border)}.segmented button.active{background:var(--accent);color:var(--accent-text)}button,.btn{border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:8px 14px;font-weight:500;display:inline-flex}button:hover:not(:disabled){background:var(--surface-2)}button:disabled{opacity:.55;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}button.primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}button.danger{color:var(--bad)}button.small{padding:4px 9px;font-size:13px}button.link{color:var(--accent);background:0 0;border:0;padding:0;font-weight:400}.actions{flex-wrap:wrap;gap:6px;display:flex}.alert{border:1px solid #0000;border-radius:8px;margin-bottom:14px;padding:10px 14px}.alert.error{background:var(--bad-bg);color:var(--bad)}.alert.success{background:var(--ok-bg);color:var(--ok)}.alert.warn{background:var(--warn-bg);color:var(--warn)}.alert.info{background:var(--info-bg);color:var(--text)}.badge{white-space:nowrap;background:var(--surface-2);color:var(--muted);border-radius:99px;align-items:center;gap:6px;padding:2px 9px;font-size:12px;font-weight:500;display:inline-flex}.badge:before{content:"";background:currentColor;border-radius:50%;width:7px;height:7px}.badge.up{background:var(--ok-bg);color:var(--ok)}.badge.down{background:var(--bad-bg);color:var(--bad)}.badge.warn{background:var(--warn-bg);color:var(--warn)}.auth-page{place-items:center;min-height:100vh;padding:16px;display:grid}.auth-card{width:100%;max-width:380px}.auth-card h1{margin-bottom:4px}.auth-card .card{margin-top:16px;padding:24px}.code-input{letter-spacing:.3em;text-align:center;font-variant-numeric:tabular-nums;font-size:22px!important}.modal-backdrop{z-index:50;background:#00000073;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{width:100%;max-width:560px;max-height:calc(100vh - 32px);overflow:auto}.chart{width:100%;min-height:220px}.chart-head{justify-content:space-between;align-items:baseline;margin-bottom:6px;display:flex}.uplot{font-family:inherit}.u-legend{color:var(--muted);font-size:12px}.u-legend .u-marker{border-radius:2px}.codes{background:var(--surface-2);border-radius:8px;grid-template-columns:repeat(2,1fr);gap:6px 20px;margin:10px 0;padding:14px;display:grid}.center{place-items:center;min-height:100vh;display:grid}.empty{text-align:center;color:var(--muted);padding:30px 10px}.kv{grid-template-columns:max-content 1fr;gap:4px 16px;display:grid}.kv dt{color:var(--muted)}.kv dd{overflow-wrap:anywhere;min-width:0;margin:0}.auth-logo{margin-bottom:12px}h3{margin:0 0 10px;font-size:14px;font-weight:600}.nav a .count{background:var(--accent);min-width:20px;color:var(--accent-text);text-align:center;border-radius:99px;margin-left:auto;padding:0 6px;font-size:12px;font-weight:600}.modal.wide{max-width:760px}label.btn{margin:0;font-weight:500;display:inline-flex}label.btn.small{padding:4px 9px;font-size:13px}.input-group .addon-btn{border-left:0;border-radius:0 8px 8px 0}textarea{resize:vertical}.key-text{word-break:break-all;margin-bottom:10px;font-size:12px}.choice{gap:8px;display:grid}.choice-item{border:1px solid var(--border);cursor:pointer;border-radius:8px;grid-template-columns:auto 1fr;align-items:center;column-gap:10px;margin:0;padding:10px 12px;font-weight:400;display:grid}.choice-item .hint{grid-column:2;margin:0}.choice-item.active{border-color:var(--accent);background:var(--accent-soft)}.created,.totp-setup{flex-wrap:wrap;align-items:flex-start;gap:20px;display:flex}.created-body,.totp-setup>div{flex:300px;min-width:0}.qr{width:260px;max-width:100%;height:auto;image-rendering:pixelated;background:#fff;border-radius:8px}.totp-setup img{background:#fff;border-radius:8px}.steps{margin:0 0 12px;padding-left:20px}.steps li+li{margin-top:4px}.notes{gap:12px;display:grid}.note{border-left:3px solid var(--border)}.note.warning{border-left-color:var(--warn)}.note.info{border-left-color:var(--accent)}.note.unread{background:var(--surface-2)}.note header{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;display:flex}.note h2{margin:0 0 6px}.note-body{white-space:pre-wrap;overflow-wrap:anywhere}.pick-list{border:1px solid var(--border);border-radius:8px;gap:6px;max-height:220px;margin-top:10px;padding:8px 10px;display:grid;overflow:auto}.chart-head{flex-wrap:wrap;gap:6px 12px}.page-head h1 .badge{vertical-align:middle}.batch{gap:8px;margin-bottom:10px;display:grid}.batch-row{grid-template-columns:1fr auto;align-items:center;gap:4px 8px;display:grid}.batch-row .hint{grid-column:1/-1;margin:0}
