:root{--bg:#f6f7f9;--card:#fff;--text:#161a1f;--muted:#5d6672;--line:#e3e6ea;--accent:#2f6fde;--pos:#12805c;--neg:#c23b3b;--track:#e9edf2;--amber:#8a5a00;--amber-bg:#fff4d6;--red-bg:#fde7e7}
@media (prefers-color-scheme:dark){:root{--bg:#0f1216;--card:#171b21;--text:#e8ebef;--muted:#9aa4b0;--line:#2a3039;--accent:#6a9cf2;--pos:#3cc08d;--neg:#ef6b6b;--track:#232931;--amber:#f2c14e;--amber-bg:#2e2610;--red-bg:#361818}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
main{max-width:1000px;margin:0 auto;padding:20px 16px 48px}
h1{font-size:22px;margin:0 0 2px}
h2{font-size:15px;margin:0 0 12px;color:var(--muted);font-weight:600}
.top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.sub{color:var(--muted);font-size:13px}
.note{color:var(--muted);font-size:13px;margin:-6px 0 10px}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:16px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.kpis .card{margin:0}
.dwie{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:16px;margin-bottom:16px}
.dwie .card{margin:0;min-width:0}
.dwie .grid{margin-bottom:10px}
.dwie .log{max-height:190px;margin-top:6px}
.dwie .sub{margin-top:8px}
.dwie td:first-child{white-space:normal}
#przeglad p{margin:6px 0}
#przeglad td:last-child{white-space:normal}
#przeglad .log{max-height:220px}
.zywa{color:var(--pos)}
.kpi .v{font-size:26px;font-weight:650;font-variant-numeric:tabular-nums}
.kpi .l{color:var(--muted);font-size:13px}
.bar{height:10px;background:var(--track);border-radius:6px;overflow:hidden;margin-top:10px}
.bar>div{height:100%;width:0;background:var(--accent)}
.pos{color:var(--pos)}.neg{color:var(--neg)}
.wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
th,td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
th{color:var(--muted);font-weight:600;font-size:12px}
td.r,th.r{text-align:right}
.log{max-height:360px;overflow:auto;font-size:13px}
.log div{padding:6px 0;border-bottom:1px solid var(--line)}
.log b{font-weight:600}
.empty{color:var(--muted);font-size:14px}
svg{width:100%;height:auto;display:block}
.tag{display:inline-block;font-size:12px;padding:2px 8px;border-radius:10px;background:var(--track);color:var(--muted);font-weight:400;vertical-align:middle}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.grid .l{color:var(--muted);font-size:12px}
.grid .v{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}
.pasek{border-radius:10px;padding:10px 14px;margin-bottom:10px;font-size:14px;border:1px solid transparent}
.pasek.zolty{background:var(--amber-bg);color:var(--amber);border-color:var(--amber)}
.pasek.czerwony{background:var(--red-bg);color:var(--neg);border-color:var(--neg)}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-top:6px}
.legend span::before{content:"";display:inline-block;width:14px;height:3px;margin-right:6px;vertical-align:middle;background:currentColor}
.legend .l1{color:var(--accent)}.legend .l2{color:var(--muted)}.legend .l3{color:var(--neg)}
button{font:inherit;cursor:pointer}
button.link{background:none;border:1px solid var(--line);color:var(--muted);border-radius:8px;padding:6px 12px}
.login{max-width:380px;padding-top:12vh}
.login form{display:grid;gap:10px;margin-top:12px}
.login input{font:inherit;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text)}
.login button{padding:9px;border:0;border-radius:8px;background:var(--accent);color:#fff;font-weight:600}
.blad{color:var(--neg);font-size:14px;margin:8px 0 0}
.przyciski{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.przyciski button{background:var(--track);border:1px solid var(--line);color:var(--text);border-radius:8px;padding:4px 10px;font-size:13px}
.przyciski .odstep{width:14px}
.przyciski button.aktywny{background:var(--accent);border-color:var(--accent);color:#fff}
#wyniki{color:var(--text)}
#wyniki .klik{cursor:pointer;outline-offset:-2px}
#wyniki .okres{font-size:14px;margin:10px 0 8px}
.waluty{display:grid;grid-template-columns:max-content minmax(80px,1fr) max-content;gap:7px 12px;align-items:center;font-size:14px;font-variant-numeric:tabular-nums}
.waluty .r{text-align:right}
.waluty .tor{position:relative;height:14px;background:var(--track);border-radius:4px}
.waluty .tor::after{content:"";position:absolute;left:50%;top:-3px;bottom:-3px;width:1px;background:var(--muted)}
.waluty .tor i{position:absolute;top:0;bottom:0;min-width:2px}
.waluty .tor i.plus{left:50%;background:var(--pos);border-radius:0 4px 4px 0}
.waluty .tor i.minus{right:50%;background:var(--neg);border-radius:4px 0 0 4px}
.mini{display:flex;align-items:flex-end;gap:2px;height:48px;margin:6px 0 2px}
.mini div{flex:1;background:var(--accent);min-height:2px;border-radius:2px 2px 0 0}
