:root{
  --bg:#06101d;
  --panel:#0d1a2c;
  --panel2:#101f34;
  --line:#20324a;
  --text:#eef6ff;
  --muted:#8fa4bd;
  --accent:#4d8dff;
  --accent2:#75c8ff;
  --success:#30d49b;
  --danger:#ff627d;
  --radius:18px;
  --shadow:0 18px 45px rgba(0,0,0,.28)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(circle at top right,#0d2645 0,#071522 38%,#050d17 100%);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}
button,select{font:inherit}
code{color:#bcd7ff}
.app-shell{display:grid;grid-template-columns:270px 1fr;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;padding:24px 18px;border-right:1px solid var(--line);background:rgba(5,14,25,.92);backdrop-filter:blur(18px);display:flex;flex-direction:column}
.brand,.public-brand{display:flex;align-items:center;gap:13px}
.brand{padding:4px 8px 28px}
.brand strong,.brand small{display:block}
.brand small{color:var(--muted);margin-top:3px}
.brand-mark{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--accent),#774dff);box-shadow:0 12px 30px rgba(77,141,255,.28);font-weight:900}
.brand-mark.small{width:42px;height:42px;border-radius:13px}
.sidebar nav{display:grid;gap:6px}
.sidebar nav a{padding:12px 14px;border-radius:12px;color:var(--muted);font-weight:700}
.sidebar nav a:hover,.sidebar nav a.active{background:var(--panel2);color:var(--text)}
.sidebar-footer{margin-top:auto;padding:18px 10px 4px;border-top:1px solid var(--line);display:grid;gap:8px;font-size:12px;color:var(--muted)}
.sidebar-footer a{color:var(--accent2)}
.main{padding:34px;max-width:1680px;width:100%;margin:auto}
.topbar,.public-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.topbar h1,.public-header h1{margin:2px 0 0;font-size:32px;letter-spacing:-1px}
.eyebrow{margin:0;color:var(--accent2);font-size:11px;font-weight:900;letter-spacing:1.8px}
.filters{display:flex;gap:10px;flex-wrap:wrap}
.filters select,.btn{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:11px;padding:10px 13px}
.btn{cursor:pointer;font-weight:800}
.btn.primary{background:linear-gradient(135deg,var(--accent),#7356ff);border:0}
.btn.secondary:hover{border-color:var(--accent)}
.status-strip{display:flex;align-items:center;gap:8px;padding:11px 15px;margin-bottom:18px;border:1px solid rgba(48,212,155,.25);background:rgba(48,212,155,.07);border-radius:12px;color:#bff7e5}
.updated{margin-left:auto;color:var(--muted);font-size:12px}
.pulse{width:9px;height:9px;border-radius:50%;background:var(--success);box-shadow:0 0 0 7px rgba(48,212,155,.12);display:inline-block}
.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:18px}
.metric,.panel,.hero-live,.hero-score{background:linear-gradient(180deg,rgba(17,32,53,.96),rgba(11,24,41,.96));border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius)}
.metric{padding:18px}
.metric span,.metric small{display:block;color:var(--muted)}
.metric span{font-size:12px;font-weight:750}
.metric strong{display:block;font-size:27px;margin:8px 0 4px;letter-spacing:-.7px}
.metric small{font-size:11px}
.panel{padding:20px;margin-bottom:18px}
.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.panel h2{margin:3px 0 0;font-size:18px}
.chart-wrap{height:310px}
.chart-wrap.tall{height:400px}
.chart-wrap.compact{height:270px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.live-badge,.status-chip{padding:5px 9px;border-radius:999px;background:rgba(48,212,155,.12);color:var(--success);font-size:10px;font-weight:900;letter-spacing:1px}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);font-size:13px}
th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.7px}
td small{display:block;color:var(--muted);margin-top:4px}
.table-wrap{overflow:auto}
.rank-list{display:grid;gap:15px}
.rank-item,.rank-list>div{padding-bottom:12px;border-bottom:1px solid var(--line)}
.rank-line,.rank-list>div{display:flex;justify-content:space-between;gap:20px}
.rank-line span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-line b{color:var(--muted);margin-right:8px}
.progress{height:5px;background:#182942;border-radius:999px;margin-top:9px;overflow:hidden}
.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));border-radius:inherit}
.split-lists{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.split-lists h3{font-size:13px;color:var(--muted)}
.mini-list,.intel-list{display:grid;gap:10px}
.mini-list>div,.intel-list>div{display:flex;justify-content:space-between;gap:15px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.auth-body{min-height:100vh;display:grid;place-items:center;padding:25px}
.auth-card{width:min(430px,100%);padding:34px;background:var(--panel);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);text-align:center}
.auth-card .brand-mark{margin:0 auto 20px}
.auth-card h1{margin:8px 0}
.muted{color:var(--muted)}
.notice{padding:12px;margin:16px 0;border-radius:10px}
.notice.error{background:rgba(255,98,125,.1);color:#ffafbd}
.notice.success{background:rgba(48,212,155,.1);color:#adf3dc}
.public-body{min-height:100vh}
.public-shell{max-width:1480px;margin:auto;padding:38px}
.public-header{align-items:center}
.public-brand h1{margin:0}
.login-button{display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid rgba(117,200,255,.35);background:rgba(77,141,255,.1);border-radius:13px;font-weight:800}
.login-button:hover{background:rgba(77,141,255,.18)}
.login-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--accent)}
.hero-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-bottom:18px}
.hero-live,.hero-score{padding:28px;min-height:220px}
.hero-live{display:flex;align-items:center;justify-content:space-between;background:radial-gradient(circle at 80% 50%,rgba(77,141,255,.25),transparent 35%),linear-gradient(135deg,#10243d,#091726)}
.hero-live h2{font-size:64px;margin:8px 0 0}
.hero-live p{color:var(--muted)}
.live-orbit{position:relative;width:150px;height:150px;display:grid;place-items:center;border:1px solid rgba(117,200,255,.3);border-radius:50%}
.live-orbit:before,.live-orbit:after{content:"";position:absolute;border:1px solid rgba(117,200,255,.18);border-radius:50%}
.live-orbit:before{inset:18px}.live-orbit:after{inset:36px}
.live-orbit strong{color:var(--success);letter-spacing:2px}
.live-orbit span{position:absolute;width:8px;height:8px;background:var(--accent2);border-radius:50%;box-shadow:0 0 15px var(--accent2)}
.live-orbit span:nth-child(1){top:20px;left:40px}.live-orbit span:nth-child(2){right:19px;bottom:45px}.live-orbit span:nth-child(3){left:17px;bottom:31px}
.hero-score{display:grid;place-items:center}
.score-ring{width:150px;height:150px;border-radius:50%;border:12px solid rgba(77,141,255,.18);outline:2px solid var(--accent);display:grid;place-content:center;text-align:center}
.score-ring strong{font-size:24px}.score-ring span{display:block;color:var(--muted);font-size:11px}
.signal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.signal-grid>div{padding:18px;background:#0b192b;border:1px solid var(--line);border-radius:14px}
.signal-grid span,.signal-grid small{display:block;color:var(--muted)}
.signal-grid strong{display:block;margin:8px 0}
.public-footer{display:flex;justify-content:space-between;gap:20px;padding:22px;color:var(--muted);font-size:12px}
@media(max-width:1200px){.metric-grid{grid-template-columns:repeat(3,1fr)}.three-col{grid-template-columns:1fr 1fr}.signal-grid{grid-template-columns:1fr 1fr}}
@media(max-width:850px){.app-shell{display:block}.sidebar{position:relative;height:auto}.sidebar nav{grid-template-columns:repeat(2,1fr)}.main,.public-shell{padding:20px}.topbar,.public-header{align-items:flex-start;flex-direction:column}.two-col,.three-col,.hero-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,1fr)}.hero-live{min-height:280px}.signal-grid{grid-template-columns:1fr}.public-footer{flex-direction:column}}
@media(max-width:520px){.metric-grid{grid-template-columns:1fr}.filters{width:100%}.filters select,.filters button{flex:1}.chart-wrap.tall{height:300px}.split-lists{grid-template-columns:1fr}.hero-live{align-items:flex-start;flex-direction:column}.hero-live h2{font-size:48px}}
