:root { color-scheme: light; --page:#f9f9f7; --surface:#fcfcfb; --ink:#0b0b0b; --ink2:#52514e; --muted:#73716b; --grid:#e1e0d9; --axis:#c3c2b7; --line:rgba(11,11,11,.1); --wash:rgba(11,11,11,.05);
  --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --other:#898781; --track:#cde2fb; --good:#006300; --bad:#b32d2d; --h0:#eeede8; --h1:#cde2fb; --h2:#9ec5f4; --h3:#5598e7; --h4:#256abf; --h5:#104281; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; --page:#0d0d0d; --surface:#1a1a19; --ink:#f0efec; --ink2:#c3c2b7; --muted:#989690; --grid:#2c2c2a; --axis:#383835; --line:rgba(255,255,255,.1); --wash:rgba(255,255,255,.07);
  --s1:#3987e5; --s2:#d95926; --s3:#199e70; --track:#12305a; --good:#0ca30c; --bad:#ef7c7c; --h0:#242423; --h1:#0d366b; --h2:#184f95; --h3:#256abf; --h4:#5598e7; --h5:#b7d3f6; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--page); color:var(--ink); font:15px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif; -webkit-text-size-adjust:100%; }
a { color:inherit; } button,input,select { font:inherit; color:inherit; }
:focus-visible { outline:2px solid var(--s1); outline-offset:2px; }
nav { position:fixed; inset:0 auto 0 0; width:200px; padding:24px 12px; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:2px; }
nav .brand { font-weight:650; padding:0 12px 18px; }
nav a { text-decoration:none; padding:10px 12px; border-radius:8px; color:var(--ink2); display:flex; gap:10px; align-items:center; }
nav a:hover { background:var(--wash); } nav a[aria-current] { background:var(--wash); color:var(--ink); font-weight:600; }
nav svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none; }
main { margin-left:200px; padding:24px 28px 48px; max-width:1400px; }
header { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; margin-bottom:18px; } h1 { font-size:24px; margin:0; } h2 { font-size:15px; margin:0; font-weight:600; }
#filters { display:flex; flex-wrap:wrap; gap:8px; } #filters:empty { display:none; }
select,input,.btn { background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:7px 11px; min-height:38px; max-width:100%; } .btn { text-decoration:none; cursor:pointer; display:inline-flex; align-items:center; } .btn:hover:not(:disabled) { background:var(--wash); } .btn:disabled { opacity:.4; cursor:default; }
.note { border:1px solid var(--line); background:var(--surface); border-radius:10px; padding:10px 14px; margin-bottom:16px; color:var(--ink2); font-size:14px; } .note b { color:var(--ink); }
.grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; } .grid > * { grid-column:span 12; min-width:0; }
.loading { opacity:.55; transition:opacity .15s; }
@media (min-width:900px) { .w3 { grid-column:span 3 !important; } .w4 { grid-column:span 4 !important; } .w6 { grid-column:span 6 !important; } .w7 { grid-column:span 7 !important; } .w5 { grid-column:span 5 !important; } .w8 { grid-column:span 8 !important; } }
.card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px; } .card > .sub { color:var(--muted); font-size:13px; margin:2px 0 0; } .card > .body { margin-top:14px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; } .tile .l { color:var(--ink2); font-size:13px; } .tile .v { font-size:28px; font-weight:600; line-height:1.25; } .tile .d { font-size:13px; color:var(--muted); } .up { color:var(--good) !important; } .down { color:var(--bad) !important; }
svg.chart { display:block; width:100%; overflow:visible; } svg.chart text { fill:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; }
.bar { fill:var(--s1); } .hit { fill:transparent; } g.col:hover .bar, g.col:focus .bar { opacity:.78; } g.col { outline:none; } g.col:focus-visible .bar { stroke:var(--ink); stroke-width:1.5; }
.hb { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 12px; padding:6px 0; font-size:14px; text-decoration:none; } .hb .n { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .hb .x { color:var(--ink2); font-variant-numeric:tabular-nums; } .hb .t { grid-column:1/-1; height:8px; } .hb .t i { display:block; height:8px; background:var(--s1); border-radius:0 4px 4px 0; min-width:2px; } a.hb:hover .n { text-decoration:underline; }
.heat { display:grid; grid-template-columns:34px repeat(24,minmax(0,1fr)); gap:2px; font-size:11px; color:var(--muted); align-items:center; } .heat i { height:22px; border-radius:3px; } .heat i:hover { outline:1.5px solid var(--ink); } .heat .hr { text-align:left; white-space:nowrap; overflow:visible; }
.key { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:10px; font-size:13px; color:var(--ink2); align-items:center; } .key i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; }
.seg { display:flex; gap:2px; height:28px; } .seg i { border-radius:4px; min-width:3px; font-style:normal; color:#fff; font-size:12px; line-height:28px; padding-left:8px; }
details { margin-top:12px; font-size:13px; } summary { color:var(--muted); cursor:pointer; width:max-content; } .scroll { overflow-x:auto; } details .scroll { max-height:260px; overflow:auto; margin-top:8px; }
table { border-collapse:collapse; width:100%; font-size:14px; } th { text-align:left; color:var(--muted); font-weight:500; font-size:13px; } th,td { padding:8px 12px 8px 0; border-bottom:1px solid var(--grid); vertical-align:middle; } tr:last-child td { border-bottom:0; } .num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; } .mut { color:var(--muted); font-size:13px; }
.now { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:16px; } .np { display:flex; gap:12px; } .np > div:not(.poster) { min-width:0; flex:1; } .np b,.np span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.poster { width:40px; height:60px; border-radius:6px; background:var(--wash); flex:none; display:grid; place-items:center; overflow:hidden; color:var(--muted); font-weight:600; font-size:13px; } .np .poster { width:56px; height:84px; } .poster img { width:100%; height:100%; object-fit:cover; }
.meter { height:6px; border-radius:3px; background:var(--track); margin:8px 0 4px; } .meter i { display:block; height:6px; border-radius:3px; background:var(--s1); }
.row { display:flex; gap:12px; align-items:center; padding:9px 0; border-bottom:1px solid var(--grid); text-decoration:none; } .row:last-child { border:0; } .row .m { flex:1; min-width:0; } .row .m > * { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .row .r { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.avatar { width:36px; height:36px; border-radius:50%; background:var(--wash); display:grid; place-items:center; font-weight:600; flex:none; } a.row:hover .m b { text-decoration:underline; }
.empty { color:var(--muted); padding:12px 0; } .pager { display:flex; gap:10px; align-items:center; margin-top:14px; } .dayhead { margin:18px 0 2px; color:var(--muted); font-size:13px; font-weight:600; } .dayhead:first-child { margin-top:0; }
#tip { position:fixed; z-index:9; pointer-events:none; background:var(--ink); color:var(--page); border-radius:8px; padding:7px 10px; font-size:13px; max-width:240px; } #tip b { display:block; }
.login { max-width:320px; margin:14vh auto; display:grid; gap:12px; }
@media (max-width:760px) {
  nav { inset:auto 0 0 0; width:auto; flex-direction:row; justify-content:space-around; padding:6px 6px calc(6px + env(safe-area-inset-bottom)); background:var(--surface); border:0; border-top:1px solid var(--line); z-index:5; } nav .brand { display:none; } nav a { flex-direction:column; gap:2px; font-size:11px; padding:6px 10px; min-width:64px; }
  main { margin:0; padding:calc(16px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); } .tiles { grid-template-columns:1fr 1fr; } .heat { grid-template-columns:30px repeat(24,minmax(0,1fr)); gap:1px; } .heat i { height:18px; border-radius:2px; } select,input { font-size:16px; } .opt { display:none; }
}
@media (prefers-reduced-motion: reduce) { * { transition:none !important; } }
.signout { margin-top:auto; background:none; border:0; text-align:left; padding:10px 12px; border-radius:8px; color:var(--muted); cursor:pointer; } .signout:hover { background:var(--wash); }
.out nav { display:none; } .out main { margin:0 auto; }
@media (max-width:760px) { .signout { margin:0; font-size:11px; padding:6px 8px; align-self:center; } nav a { min-width:0; } }
