:root{color-scheme:dark;--bg:#090c12;--panel:#111722;--panel2:#0e141d;--line:#222d3d;--muted:#8792a5;--text:#edf0f7;--purple:#8a7cff;--teal:#45c4bd}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px system-ui,-apple-system,'Segoe UI',sans-serif}.shell{min-height:100vh}.sidebar{width:220px;position:fixed;inset:0 auto 0 0;padding:27px 16px;background:#0b1017;border-right:1px solid #1b2431;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--text);font:700 17px system-ui}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#998aff,#6553e8);font:800 18px system-ui;color:white;box-shadow:0 5px 22px #7061ee40}.brand-sub{display:block;color:#697487;font:600 8px 'DM Sans';letter-spacing:1.2px;margin-top:2px}.sidebar nav{margin-top:55px;display:grid;gap:7px}.nav{color:#8490a3;text-decoration:none;padding:11px 12px;border-radius:9px;display:flex;gap:12px;font-size:17px}.nav span{font-size:13px}.nav.active{background:#1b2030;color:#b9b0ff}.side-bottom{margin-top:auto;display:grid;gap:17px}.privacy{border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;gap:9px;align-items:flex-start;font-size:11px}.privacy small{display:block;color:var(--muted);margin-top:5px}.green-dot,.sync-dot,.live-chip i{width:7px;height:7px;border-radius:50%;background:#49c991;display:inline-block;flex:none;margin-top:4px}.content{max-width:1430px;margin-left:220px;padding:0 42px 24px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1a2330}.eyebrow{font-size:9px;color:#818b9f;letter-spacing:1.65px;font-weight:700;margin:0 0 8px}.topbar h1{font:700 19px system-ui;margin:0}.top-right{display:flex;align-items:center;gap:15px}.live-chip{border:1px solid #234139;color:#75d1a8;border-radius:16px;padding:6px 9px;font-size:9px;letter-spacing:.8px}.live-chip i{width:5px;height:5px;margin:0 5px 1px 0}.icon-btn{background:transparent;color:#adb5c5;border:1px solid var(--line);width:32px;height:32px;border-radius:9px;font-size:17px;cursor:pointer}.avatar{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#27203e;color:#c5baff;font-weight:700}.welcome{padding:26px 0 19px;display:flex;justify-content:space-between;align-items:end}.welcome h2{font:600 22px system-ui;margin:0 0 7px}.muted{color:var(--muted);margin:0;line-height:1.55}.sync{font-size:10px;color:#8d98ab;display:flex;gap:7px;align-items:center}.sync-dot{width:6px;height:6px;margin:0;background:var(--purple)}.notice{border:1px solid #39345f;background:#17162a;border-radius:10px;padding:12px 15px;color:#aaa6cf;display:flex;gap:10px;align-items:center;font-size:11px;line-height:1.5}.notice strong{color:#e3dfff}.notice-icon{border:1px solid #7165c9;border-radius:50%;width:16px;height:16px;text-align:center;line-height:14px;flex:none;color:#b7afff;font-size:10px}.section-head{display:flex;align-items:end;justify-content:space-between;margin:25px 0 12px}.section-head h3{font:600 15px system-ui;margin:0}.section-head .eyebrow{margin-bottom:5px}.subtle{font-size:10px;color:var(--muted)}.subtle b{color:#c2cadd;font-weight:500}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.card{border:1px solid var(--line);border-radius:12px;background:linear-gradient(145deg,#121923,#101620);}.limit-card{padding:18px}.card-top{display:flex;justify-content:space-between}.label{display:block;color:#8490a3;letter-spacing:1.15px;font-size:9px;font-weight:700}.provider{display:block;color:#b5bfd0;font-size:11px;margin-top:6px}.window-icon{border:1px solid #2c3545;border-radius:8px;width:29px;height:29px;display:grid;place-items:center;color:#a69aff;font-size:14px}.metric-line{margin:17px 0 11px;display:flex;align-items:baseline;gap:8px}.metric-line strong{font:700 29px system-ui;color:#f3f2ff}.metric-line span{font-size:11px;color:#a0aabc}.metric-line small{margin-left:auto;color:#8590a3;font-size:10px}.progress{height:5px;background:#252e3b;border-radius:4px;overflow:hidden}.progress span{height:100%;width:0;display:block;background:linear-gradient(90deg,#6658d9,#a496ff);border-radius:4px;transition:width .3s}.footline{display:flex;justify-content:space-between;color:#737f92;font-size:10px;margin-top:11px}.footline b{color:#b8c0ce;font-weight:500}.chart-head{margin-top:29px}.legend{display:flex;gap:13px;color:#9aa4b6;font-size:10px}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:7px;height:7px;border-radius:2px;background:var(--purple)}.legend .lg-out{background:var(--teal)}.legend .lg-cache{background:#596983}.chart-card{padding:17px 19px 12px;position:relative}.chart-summary{display:flex;justify-content:space-between;align-items:center}.chart-summary strong{display:block;font:700 22px system-ui;margin-top:4px}.chart-badge{color:#8e99ac;border:1px solid var(--line);padding:6px 9px;border-radius:7px;font-size:9px}.chart-wrap{height:150px;margin-top:9px}.chart-wrap svg{width:100%;height:100%;overflow:visible}.chart-empty{position:absolute;inset:95px 10px auto;text-align:center;color:#778397;font-size:11px}.chart-empty[hidden]{display:none}.lower{margin-top:14px}.stats-card{padding:17px}.inner-head{margin:0 0 16px}.cache-value{font:700 27px system-ui;color:#d8d1ff}.cache-value small{font:400 11px 'DM Sans';color:#8e99ac;margin-left:7px}.small{font-size:10px}.cache-stats{border-top:1px solid var(--line);margin-top:15px;padding-top:12px;display:flex;justify-content:space-between}.cache-stats div{display:grid;gap:5px;color:#7f8a9d;font-size:10px}.cache-stats b{color:#d9deea;font-size:12px;font-weight:600}.gateway-state{display:flex;align-items:center;gap:8px}.gateway-state i{width:8px;height:8px;border-radius:50%;background:#788396}.gateway-state i.online{background:#49c991}.gateway-state i.offline{background:#ff747d}.gateway-state strong{font:600 15px system-ui}.gateway-state span{color:#818c9f;font-size:10px;margin-left:auto}.history-head{margin-top:27px}.table-card{overflow:hidden}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:560px}th{text-align:left;color:#758195;font-size:9px;letter-spacing:1px;font-weight:600;padding:12px 15px;border-bottom:1px solid var(--line)}td{padding:12px 15px;border-bottom:1px solid #1b2531;color:#b6c0d0;font-size:11px}tr:last-child td{border:0}.empty-row{text-align:center;color:#758195;padding:23px}.mono{font-family:monospace;color:#aeb6c6}.status-pill{padding:4px 7px;border-radius:12px;background:#19342d;color:#74d1a7;font-size:9px}.status-pill.bad{background:#3c2329;color:#ff9299}footer{text-align:center;color:#5f6b7e;font-size:9px;margin:25px 0 0}footer span{color:#9c8fff;margin:0 5px}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 42%,#191735 0,#090c12 53%)}.login-card{width:min(390px,calc(100vw - 34px));padding:34px;border:1px solid #292b40;border-radius:16px;background:#10151ff2;box-shadow:0 20px 80px #0008}.login-card .brand-mark{margin-bottom:27px}.login-card h1{font:700 26px system-ui;margin:0 0 8px}.login-card .muted{font-size:12px;margin-bottom:25px}.login-card form{display:grid;gap:15px;margin-top:20px}.login-card label{display:grid;gap:7px;color:#a7b0c0;font-size:11px}.login-card input{height:42px;border:1px solid #303a49;border-radius:8px;background:#0b1017;color:#fff;padding:0 11px;font:13px 'DM Sans';outline:none}.login-card input:focus{border-color:#8175f6}.login-card button{height:43px;border:0;border-radius:8px;background:linear-gradient(90deg,#7163e5,#8d7df5);color:white;font-weight:700;cursor:pointer;margin-top:4px}.login-card button span{float:right;margin-right:12px}.fine{font-size:9px;color:#657186;text-align:center;margin:19px 0 0}.error{padding:9px;border:1px solid #56343e;background:#301d26;color:#ffadb2;border-radius:7px;font-size:11px}
@media(max-width:850px){.sidebar{width:64px;padding:20px 9px}.brand{justify-content:center}.brand>span:last-child,.nav span,.privacy{display:none}.sidebar nav{margin-top:43px}.nav{justify-content:center;padding:12px 0}.side-bottom .nav{font-size:18px}.content{margin-left:64px;padding:0 20px}.brand-mark{flex:none}.topbar{height:76px}.welcome{align-items:start;gap:12px;flex-direction:column}.grid.lower{grid-template-columns:1fr 1fr}}@media(max-width:560px){.sidebar{width:52px;padding:17px 6px}.content{margin-left:52px;padding:0 13px 20px}.topbar{height:69px}.topbar h1{font-size:16px}.top-right{gap:8px}.live-chip{font-size:8px}.welcome h2{font-size:19px}.welcome{padding-top:20px}.notice{align-items:flex-start}.section-head{margin-top:22px}.subtle{max-width:110px;text-align:right;line-height:1.4}.grid{grid-template-columns:1fr;gap:10px}.limit-card{padding:15px}.metric-line strong{font-size:26px}.chart-head{align-items:start;gap:6px;flex-direction:column}.chart-card{padding:14px}.chart-wrap{height:125px}.grid.lower{grid-template-columns:1fr}.history-head{align-items:start}.history-head .subtle{font-size:9px}.legend{gap:11px}.avatar{width:28px;height:28px}}

.period-switch{display:flex;gap:4px;border:1px solid var(--line);border-radius:8px;padding:3px;background:#0c121b}.period{border:0;background:transparent;color:#8490a3;padding:6px 9px;border-radius:6px;font:600 10px system-ui;cursor:pointer}.period.active{background:#27233f;color:#ddd7ff}.legend{margin:10px 0 0 36px}.chart-wrap{height:175px;margin-top:2px}.axis-label{fill:#8792a5;font:10px system-ui}.cache-stats div{min-width:0}.cache-stats b{overflow-wrap:anywhere}.status-pill{background:#28303b;color:#c2c9d4}.status-pill.good{background:#19342d;color:#74d1a7}.status-pill.bad{background:#3c2329;color:#ff9299}.gateway-state i.degraded{background:#d1a75b}.gateway-state i.offline{background:#ff747d}.gateway-state i.online{background:#49c991}
@media(max-width:560px){.period-switch{align-self:stretch;justify-content:space-between}.period{flex:1;padding:7px 4px}.chart-head{flex-wrap:wrap}.chart-wrap{height:150px}.legend{margin-left:0;gap:8px;font-size:9px}.table-scroll{overflow:visible}table{min-width:0;display:block}thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}tbody{display:grid;gap:8px;padding:8px}tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:3px 10px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#0e141d}tbody td{display:grid;grid-template-columns:auto 1fr;gap:6px;padding:4px 0;border:0;min-width:0;overflow-wrap:anywhere;text-align:right;font-size:10px}tbody td::before{content:attr(data-label);color:#758195;text-align:left;font-size:9px;letter-spacing:.3px}tbody td:first-child{grid-column:1/-1;display:block;text-align:left;font-size:11px}tbody td:first-child::before{content:attr(data-label) ": ";display:inline;color:#758195}tbody .empty-row{display:block;text-align:center;grid-column:1/-1}.cache-stats{gap:8px}.cache-stats div{flex:1}}
.duplicate-note{margin:10px 0 0;padding-top:9px;border-top:1px solid var(--line)}
