:root { color-scheme: dark; --bg:#0d1320; --surface:#172130; --surface2:#1c293a; --edge:#2d3a4e; --text:#f1f6fc; --muted:#8d9bb0; --accent:#54d8b2; --blue:#72a8ff; --violet:#a593ff; --warn:#ffbe72; }
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; background:var(--bg); color:var(--text); font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif; }
body { background: radial-gradient(ellipse 440px 350px at 86% -5%,#1c3547 0%,transparent 74%), radial-gradient(ellipse 420px 330px at -20% 18%,#1a2349 0%,transparent 70%),var(--bg); }
button { font:inherit; color:inherit; cursor:pointer; }
.app-shell { max-width:720px; margin:0 auto; min-height:100vh; padding-bottom:110px; }
.head { display:flex; justify-content:space-between; align-items:center; padding:26px 22px 22px; }
.brand { display:flex; align-items:center; gap:11px; }
.brand-logo { width:43px; height:43px; background:linear-gradient(145deg,#2d5366,#23324c); border:1px solid #496073; border-radius:13px; display:flex; align-items:center; justify-content:center; font-weight:850; font-size:23px; letter-spacing:-2px; box-shadow:0 8px 24px #0003; }
.brand-logo span {color:var(--accent)}
.brand-title { font-weight:730; font-size:16px; letter-spacing:.1px; }
.brand-sub { margin-top:4px; font-size:9px; letter-spacing:1.3px; font-weight:800; color:var(--muted); }
.mini-label {font-size:8px; color:var(--accent); margin-left:4px;}
.online {display:flex;align-items:center;gap:7px; padding:8px 11px; font-size:10px; font-weight:750; border:1px solid #324a48; border-radius:99px; background:#1a3332; color:#85e3c1; white-space:nowrap}
.online.offline{color:#ffc8a0;background:#38271f;border-color:#5a4237}
.pulse-dot {width:7px;height:7px;background:#5be9b4;border-radius:50%;box-shadow:0 0 0 4px #3ee3ad20}
.online.offline .pulse-dot{background:#ffb17b;box-shadow:none}
main { padding:4px 19px 0; }
.welcome {display:flex;justify-content:space-between;align-items:center;gap:14px;margin:9px 4px 22px}
.eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--accent);font-weight:800}
h1{font-size:27px;letter-spacing:-.8px;line-height:1.12;margin:9px 0 7px}
p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.refresh {background:var(--surface);border:1px solid var(--edge);border-radius:13px;height:42px;width:42px;font-size:25px;color:var(--accent);transition:transform .2s}
.refresh:active{transform:rotate(40deg)}
.kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.card{background:linear-gradient(145deg,rgba(30,42,59,.96),rgba(21,31,46,.98));border:1px solid #2e3b50;border-radius:19px;box-shadow:0 12px 28px #030a161e;min-width:0}
.kpi{padding:16px 17px 15px;min-height:148px}
.kpi-header{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#cbd7e4;font-weight:700}
.kpi-icon{font-size:15px;color:var(--accent)}
.kpi-value{font-size:28px;font-weight:790;letter-spacing:-1.4px;margin-top:21px;white-space:nowrap}
.kpi-unit {font-size:13px;font-weight:650;letter-spacing:0;color:var(--muted)}
.progress{height:5px;border-radius:99px;background:#2a3850;margin:10px 0 9px;overflow:hidden}
.progress>span{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#2aabb0,var(--accent));transition:width .5s}
.progress.purple>span{background:linear-gradient(90deg,#7684f3,var(--violet))}
.progress.orange>span{background:linear-gradient(90deg,#dd8f65,#ffc183)}
.kpi-desc{color:var(--muted);font-size:10px;line-height:1.4}
.section-title{display:flex;justify-content:space-between;align-items:center;margin:27px 3px 12px;gap:8px}
.section-title h2{font-size:16px;margin:0;letter-spacing:-.3px}
.section-title small{font-size:10px;color:var(--muted)}
.section-title .soft{font-size:10px;color:var(--accent)}
.chart-card{padding:18px}
.chart-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.chart-legend{display:flex;align-items:center;gap:13px;font-size:10px;color:#cad5df}
.legend-dot{width:7px;height:7px;display:inline-block;border-radius:100%;margin-right:5px}
.chart-wrapper{width:100%;height:174px;position:relative}
canvas{width:100%;height:100%;display:block}
.time-row{display:flex;gap:6px;margin-top:13px}
.pill{padding:8px 12px;border:1px solid var(--edge);background:#1b2938;color:#adbbcb;border-radius:9px;font-size:11px;font-weight:750}
.pill.selected{background:#2b4e52;color:#8ef4ca;border-color:#3b6e66}
.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.quick{border:1px solid #2d3b50;background:linear-gradient(160deg,#223148,#1b2738);border-radius:15px;min-height:94px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center}
.quick .quick-icon{font-size:23px}
.quick span:last-child{font-weight:700;font-size:11px}
.quick:active{transform:scale(.985)}
.list-card{overflow:hidden}
.list-row{padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #2a3648}
.list-row:last-child{border-bottom:0}
.list-main{min-width:0;display:flex;align-items:center;gap:11px}
.list-icon{height:34px;min-width:34px;display:grid;place-items:center;background:#273b4b;border-radius:10px;font-size:15px}
.list-name{font-weight:720;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list-sub{color:var(--muted);font-size:10px;margin-top:4px;max-width:235px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.state{font-size:10px;font-weight:750;white-space:nowrap;color:#8ee1c0}
.state.warn{color:#f5b16e}
.state.bad{color:#f6939d}
.empty{padding:30px 18px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6}
.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.detail-grid .card{padding:16px}
.detail-grid .value{font-size:22px;font-weight:760;margin:8px 0}
.detail-grid .label{font-size:11px;color:var(--muted)}
.detail-grid .sub{font-size:10px;color:var(--muted)}
.auth-note{padding:14px 16px;border:1px solid #6c533a;background:#3c3027;border-radius:13px;color:#ffc790;font-size:12px;line-height:1.6;margin-bottom:15px}
.auth-note.hidden{display:none}
.helper{font-size:11px;line-height:1.55;color:var(--muted);padding:12px 2px}
.page-footer{display:flex;justify-content:space-between;color:#667890;font-size:9px;letter-spacing:.7px;margin:20px 4px 4px}
.bottom-nav{position:fixed;z-index:10;left:50%;bottom:0;transform:translateX(-50%);width:min(720px,100%);display:grid;grid-template-columns:repeat(5,1fr);background:rgba(17,26,40,.96);border-top:1px solid #2b3a50;backdrop-filter:blur(12px);padding:9px 8px calc(11px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px #070d1c70}
.nav-item{border:0;background:transparent;color:#7f92a8;font-size:10px;font-weight:650;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:7px 0;border-radius:10px}
.nav-icon{font-size:21px;line-height:1}
.nav-item.selected{color:var(--accent);background:#23403e}
.loading{animation:shimmer 1.4s ease infinite alternate;opacity:.62}
@keyframes shimmer{to{opacity:1}}
@media (min-width:650px){.kpi-grid{grid-template-columns:repeat(4,1fr)}.kpi{min-height:155px}.kpi-value{font-size:25px}.head{padding-top:30px}.welcome{margin-top:16px}}
@media (max-width:370px){.head{padding:19px 13px}.brand-logo{width:37px;height:37px}.brand-title{font-size:14px}main{padding:4px 12px 0}.kpi{padding:13px}.kpi-value{font-size:24px}.quick-grid{gap:7px}.quick{min-height:85px}}
