:root{--background:100 9% 96%;--foreground:158 14% 11%;--card:0 0% 100%;--card-border:120 6% 90%;--border:120 6% 91%;--popover:0 0% 100%;--popover-border:120 6% 88%;--primary:162 81% 23%;--primary-ink:162 81% 22%;--primary-foreground:0 0% 100%;--muted:120 7% 95%;--muted-foreground:153 5% 40%;--input:150 5% 58%;--status-ok:157 70% 26%;--status-error:4 70% 40%;--status-error-tint:6 70% 96%;--series-ta3:#0f8a69;--series-24:#6c4fb0;--series-joj:#b7781f;--chart-muted:#b4bbb8;--chart-other:#87928d;--grid:#e7e9e7;--axis:#ced4ce;--shadow-sm:0 1px 2px 0 #1018140a, 0 1px 3px 0 #10181408;--shadow-md:0 4px 10px -2px #10181414, 0 2px 4px -2px #1018140d;--radius:14px;--radius-control:10px;--font:"Geist", system-ui, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.dark{--background:165 17% 5%;--foreground:153 15% 92%;--card:163 17% 8%;--card-border:160 14% 14%;--border:160 14% 13%;--popover:163 17% 9%;--popover-border:160 14% 16%;--primary:157 64% 47%;--primary-ink:153 68% 62%;--primary-foreground:156 65% 5%;--muted:160 14% 12%;--muted-foreground:157 7% 60%;--input:160 8% 38%;--status-ok:153 68% 58%;--status-error:8 100% 72%;--status-error-tint:10 40% 10%;--series-ta3:#24a883;--series-24:#8f78ce;--series-joj:#c08521;--chart-muted:#515d58;--chart-other:#778882;--grid:#1d2623;--axis:#2c3a35;--shadow-sm:0 1px 2px 0 #0000004d;--shadow-md:0 6px 14px -4px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:hsl(var(--background));color:hsl(var(--foreground));font-family:var(--font);-webkit-font-smoothing:antialiased;margin:0;font-size:14px;line-height:1.5}button,input,select{font:inherit;color:inherit}svg.lucide{flex:none;width:16px;height:16px}.muted{color:hsl(var(--muted-foreground))}.small{font-size:12.5px}h1,h2,h3{letter-spacing:-.01em;margin:0;font-weight:500}h2{font-size:15px}h3{margin-bottom:6px;font-size:13px}.app{max-width:1320px;margin:0 auto;padding:0 20px 32px}.topbar{border-bottom:1px solid hsl(var(--border));justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;padding:16px 0;display:flex}.brand{align-items:center;gap:8px;font-size:15px;font-weight:600;display:flex}.brand svg.lucide{color:hsl(var(--primary));width:20px;height:20px}.topbar-actions{align-items:center;gap:8px;display:flex}.filters{flex-wrap:wrap;align-items:flex-end;gap:16px 24px;margin-bottom:18px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field>span{color:hsl(var(--muted-foreground));font-size:12px;font-weight:500}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px;display:grid}.grid-2.inner{margin:0}@media (width<=980px){.grid-2{grid-template-columns:1fr}}.kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px;display:grid}@media (width<=860px){.kpis{grid-template-columns:1fr}}.foot{text-align:center;margin-top:24px}.boot{place-items:center;min-height:40vh;display:grid}.card{background:hsl(var(--card));border:1px solid hsl(var(--card-border));border-radius:var(--radius);box-shadow:var(--shadow-sm);min-width:0;padding:18px 20px}section.card{margin-bottom:16px}.grid-2>.card{margin-bottom:0}.card-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.card-head p{max-width:70ch;margin:2px 0 0}.card-actions{align-items:center;gap:8px;display:flex}.lead{max-width:80ch;margin:0 0 18px;font-size:15.5px;line-height:1.6}.lead b{font-variant-numeric:tabular-nums;font-weight:600}.kpi .kpi-value{letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin:4px 0 6px;font-size:34px;font-weight:500;line-height:1.15}.kpi-row{color:hsl(var(--muted-foreground));font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:16px;font-size:13px;display:flex}.kpi-row b{color:hsl(var(--foreground));font-weight:500}.kpi-row i,.legend i,.chip i,.chart-tip i{vertical-align:0;border-radius:3px;width:9px;height:9px;margin-right:6px;display:inline-block}.kpi-deltas{border-top:1px solid hsl(var(--border));font-variant-numeric:tabular-nums;flex-direction:column;gap:2px;margin-top:10px;padding-top:10px;font-size:13px;font-weight:500;display:flex}.kpi-deltas em{color:hsl(var(--muted-foreground));font-style:normal;font-weight:400}.up{color:hsl(var(--status-ok))}.down{color:hsl(var(--status-error))}.empty{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:48px 20px;display:flex}.empty svg.lucide{width:32px;height:32px;color:hsl(var(--primary))}.empty p{max-width:52ch;margin:0}.btn{border-radius:var(--radius-control);border:1px solid hsl(var(--card-border));background:hsl(var(--card));cursor:pointer;white-space:nowrap;align-items:center;gap:7px;height:40px;padding:0 14px;font-weight:500;display:inline-flex}.btn:hover{background:hsl(var(--muted))}.btn:disabled{opacity:.6;cursor:default}.btn.primary{background:hsl(var(--primary));border-color:hsl(var(--primary));color:hsl(var(--primary-foreground))}.btn.primary:hover{filter:brightness(1.08)}.btn.icon{justify-content:center;width:40px;padding:0}.btn.small{width:28px;height:28px}.btn.ghost{background:0 0;border-color:#0000}.seg{border:1px solid hsl(var(--card-border));border-radius:var(--radius-control);background:hsl(var(--card));height:40px;display:inline-flex;overflow:hidden}.card .seg{height:34px}.seg button{cursor:pointer;color:hsl(var(--muted-foreground));background:0 0;border:0;padding:0 13px;font-size:13px;font-weight:500}.seg button+button{border-left:1px solid hsl(var(--card-border))}.seg button.on{background:hsl(var(--primary) / .1);color:hsl(var(--primary-ink))}select,input:not([type=checkbox]){border:1px solid hsl(var(--input) / .55);border-radius:var(--radius-control);background:hsl(var(--card));min-width:0;height:40px;padding:0 12px}select:focus-visible,input:focus-visible,button:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:1px}select.compact,input.search{height:34px;font-size:13px}input.search{width:220px;max-width:100%}.check{color:hsl(var(--muted-foreground));cursor:pointer;align-items:center;gap:6px;font-size:13px;display:inline-flex}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.toolbar-right{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.toggles{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid hsl(var(--card-border));cursor:pointer;height:30px;color:hsl(var(--muted-foreground));background:0 0;border-radius:999px;align-items:center;padding:0 11px;font-size:13px;font-weight:500;display:inline-flex}.chip.on{color:hsl(var(--foreground));border-color:hsl(var(--input) / .5)}.chip:not(.on):not(.ghost){opacity:.55;text-decoration:line-through}.chip.ghost{border-style:dashed}.legend{color:hsl(var(--muted-foreground));gap:16px;margin-bottom:6px;font-size:12.5px;display:flex}.notice{border-radius:var(--radius-control);margin:8px 0;padding:8px 12px;font-size:13px}.notice.error{background:hsl(var(--status-error-tint));color:hsl(var(--status-error))}.spin{animation:1s linear infinite spin}.spin.inline{vertical-align:-3px;margin-right:4px}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spin{animation:none}}.chart{width:100%;position:relative;overflow:hidden}.chart svg{display:block}.chart text{fill:hsl(var(--muted-foreground));font-variant-numeric:tabular-nums;font-size:11.5px}.chart text.strong{fill:hsl(var(--foreground));font-weight:600}.chart .grid line{stroke:var(--grid)}.chart .axis line{stroke:var(--axis)}.chart .bar-label{fill:hsl(var(--foreground));font-size:11px}.chart .selected-day{fill:hsl(var(--primary) / .08)}.chart .hover-line{stroke:hsl(var(--muted-foreground) / .6);stroke-dasharray:3 3}.chart .marker line{stroke:hsl(var(--primary) / .25);stroke-dasharray:2 3}.chart .marker circle{fill:var(--series-ta3)}.chart .reference line{stroke:hsl(var(--muted-foreground));stroke-dasharray:4 3}.chart .reference text{font-size:11px}.empty-chart{color:hsl(var(--muted-foreground));text-align:center;place-items:center;padding:12px;font-size:13px;display:grid}.chart-tip{pointer-events:none;z-index:5;background:hsl(var(--popover));border:1px solid hsl(var(--popover-border));box-shadow:var(--shadow-md);border-radius:var(--radius-control);white-space:nowrap;font-variant-numeric:tabular-nums;padding:8px 10px;font-size:12.5px;position:absolute}.chart-tip-title{margin-bottom:2px;font-weight:600}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:13px}.table th,.table td{border-bottom:1px solid hsl(var(--border));text-align:right;white-space:nowrap;padding:8px 10px}.table th{color:hsl(var(--muted-foreground));font-size:12px;font-weight:500}.table .left{text-align:left;white-space:normal}.table tr.clickable{cursor:pointer}.table tr.clickable:hover td,.table tr.open td{background:hsl(var(--muted) / .6)}.row-icon{vertical-align:-2px;color:hsl(var(--muted-foreground));margin-right:4px;width:14px!important;height:14px!important}.mini-bar{background:var(--series-ta3);vertical-align:0;border-radius:2px;height:8px;margin-right:8px;display:inline-block}.trend-row td{background:hsl(var(--muted) / .35);text-align:left;padding:14px 16px}.show-history .toolbar strong{font-weight:500}.duel{border:1px solid hsl(var(--border));border-radius:var(--radius-control);padding:12px 14px}.duel-head{flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:8px;display:flex}.duel-head strong{font-weight:500}.duel-row{grid-template-columns:76px minmax(0,1fr) minmax(60px,120px) 40px 28px;align-items:center;gap:8px;padding:4px 0;font-size:13px;display:grid}.duel-row.ta3{font-weight:600}.duel-station{color:hsl(var(--muted-foreground))}.duel-row.ta3 .duel-station{color:hsl(var(--foreground))}.duel-show{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.duel-show em{font-size:12px;font-style:normal;font-weight:400}.duel-bar{background:hsl(var(--muted));border-radius:4px;height:8px;overflow:hidden}.duel-bar span{border-radius:4px;height:100%;display:block}.duel-val{text-align:right;font-variant-numeric:tabular-nums}.duel-form{border:1px dashed hsl(var(--card-border));border-radius:var(--radius-control);grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-bottom:14px;padding:12px;display:grid}.ai-card{border-left:3px solid hsl(var(--primary))}.ai-body p{max-width:90ch;margin:0 0 10px;line-height:1.6}.ai-headline{font-size:16px;font-weight:500}.ai-body ul{margin:0;padding-left:18px}.ai-body li{margin:4px 0;line-height:1.5}.ai-body .grid-2{margin-bottom:10px}.drop-overlay{z-index:50;background:hsl(var(--background) / .9);border:3px dashed hsl(var(--primary));pointer-events:none;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-size:16px;display:flex;position:fixed;inset:0}.drop-overlay svg.lucide{width:40px;height:40px;color:hsl(var(--primary))}.upload-results{margin-bottom:16px}.upload-results-head{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.upload-row{border-left:3px solid;flex-wrap:wrap;gap:10px;margin:4px 0;padding:4px 0 4px 10px;font-size:13px;display:flex}.upload-row.ok{border-color:hsl(var(--status-ok))}.upload-row.bad{border-color:hsl(var(--status-error));color:hsl(var(--status-error))}.login{place-items:center;min-height:100vh;padding:20px;display:grid}.login-card{flex-direction:column;gap:12px;width:100%;max-width:380px;padding:28px;display:flex}.login-card h1{font-size:22px}.login-card p{margin:0}.defs summary{cursor:pointer;font-weight:500}.defs ul{color:hsl(var(--muted-foreground));margin:10px 0 0;padding-left:18px}.defs li{margin:4px 0}@media (width<=640px){.app{padding:0 12px 24px}.topbar .brand span{display:none}.duel-row{grid-template-columns:64px minmax(0,1fr) 40px 28px}.duel-bar{display:none}}@media print{.topbar-actions,.filters,.card-actions,.toolbar,.duel-form,.btn{display:none!important}.card{box-shadow:none;break-inside:avoid}}.insights-card{border-left:3px solid var(--series-ta3)}.facts,.tips{margin:0;padding-left:0;list-style:none}.facts li,.tips li{border-bottom:1px solid hsl(var(--border));padding:6px 0 6px 20px;line-height:1.5;position:relative}.facts li:last-child,.tips li:last-child{border-bottom:0}.facts li:before,.tips li:before{font-weight:600;position:absolute;top:6px;left:0}.facts li.good:before{content:"▲";color:hsl(var(--status-ok));font-size:11px;top:8px}.facts li.bad:before{content:"▼";color:hsl(var(--status-error));font-size:11px;top:8px}.facts li.info:before{content:"•";color:hsl(var(--muted-foreground))}.tips li:before{content:"→";color:hsl(var(--primary))}code{background:hsl(var(--muted));border-radius:4px;padding:1px 5px;font-family:Geist Mono,ui-monospace,monospace;font-size:12px}
