@font-face{font-family:Inter;src:url('./fonts/InterVariable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{font-family:Inter,Arial,sans-serif;color:#101112;background:#f2f2f7;font-synthesis:none;--ink:#101112;--muted:#676a78;--line:#d9dae2;--surface:#fff;--surface-soft:#f7f7fa;--accent:#ff8f2b;--accent-soft:#fff0e2;--blue:#096bc0;--danger:#b3261e}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
h1,h2,h3,p,dl,dd{margin:0}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d56b09;outline-offset:3px}
::selection{background:#ffb774;color:#101112}
.shell{width:min(1440px,calc(100% - 72px));margin-inline:auto}
.skip-link{position:fixed;z-index:20;top:10px;left:12px;background:var(--ink);color:#fff;padding:12px 18px;transform:translateY(-150%)}
.skip-link:focus{transform:none}
.viewer-header{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.viewer-brand{display:inline-flex;align-items:center;gap:11px;font-weight:760;font-size:26px;letter-spacing:-1px}
.viewer-brand img{width:46px;height:46px;border-radius:11px}
.back-link{color:var(--muted);font-size:15px;padding:10px 0;border-bottom:1px solid transparent}
.back-link:hover{color:var(--ink);border-color:var(--accent)}
.intro{display:flex;justify-content:space-between;gap:40px;align-items:flex-end;padding:70px 0 35px}
.eyebrow{font-size:12px;font-weight:650;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.intro h1{font-size:clamp(48px,6vw,82px);line-height:1;letter-spacing:-.055em;font-weight:760}
.intro-copy{font-size:20px;line-height:1.55;color:var(--muted);max-width:760px;margin-top:20px}
.drop-zone{background:var(--surface);border:1.5px dashed #bfc1cc;border-radius:26px;min-height:250px;padding:42px;margin-bottom:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;transition:border-color .18s,background .18s,transform .18s}
.drop-zone.is-dragging{border-color:var(--accent);background:#fffaf5;transform:translateY(-2px)}
.drop-icon{width:54px;height:54px;display:grid;place-items:center;background:var(--accent-soft);border-radius:16px;color:var(--accent);margin-bottom:18px}
.drop-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.drop-zone h2{font-size:28px;letter-spacing:-.7px;line-height:1.2}
.drop-zone .drop-copy p{color:var(--muted);font-size:16px;margin-top:8px}
.upload-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:24px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 20px;border-radius:24px;font-size:15px;font-weight:600;transition:transform .15s,background .15s,border-color .15s}
.button:hover{transform:translateY(-1px)}
.button-primary{background:var(--accent);color:#111}
.button-primary:hover{background:#ffa045}
.button-secondary{background:#fff;color:var(--ink);border:1px solid #cfd1da}
.button-secondary:hover{border-color:#aeb0bb;background:#fafafd}
.load-status,.load-error{font-size:14px;line-height:1.45;margin-top:16px}
.load-status{color:var(--muted)}
.load-error{color:var(--danger);font-weight:560}
.workspace{padding:0 0 90px}
.workspace-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.workspace-heading h2{font-size:clamp(32px,4vw,52px);letter-spacing:-.04em;line-height:1.08;overflow-wrap:anywhere}
.log-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:26px}
.summary-item{background:var(--surface);border:1px solid #e1e2e8;border-radius:17px;padding:18px 20px;min-width:0}
.summary-item dt{font-size:12px;line-height:1.4;color:var(--muted);text-transform:uppercase;letter-spacing:.8px}
.summary-item dd{font-size:20px;line-height:1.3;font-weight:620;margin-top:5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.summary-item small{display:block;color:var(--muted);font-size:12px;font-weight:450;margin-top:3px}
.analyzer-layout{display:grid;grid-template-columns:320px minmax(0,1fr);align-items:start;gap:18px;margin-top:18px}
.series-panel,.chart-card{background:var(--surface);border:1px solid #e1e2e8;border-radius:22px}
.series-panel{padding:22px;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}
.panel-heading,.chart-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.panel-heading h2,.chart-heading h2{font-size:25px;line-height:1.2;letter-spacing:-.7px}
.selected-count{background:var(--accent-soft);color:#a94d00;border-radius:20px;padding:6px 10px;font-size:12px;font-weight:680;white-space:nowrap}
.search-field{display:flex;align-items:center;gap:9px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;padding:0 12px;margin-top:19px}
.search-field:focus-within{border-color:#b36318;box-shadow:0 0 0 3px #ff8f2b20}
.search-field svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round}
.search-field input{width:100%;height:42px;border:0;outline:0;background:transparent;color:var(--ink);font-size:14px}
.search-field input::placeholder{color:#92949f}
.selection-actions{display:flex;gap:16px;margin-top:14px;padding-bottom:15px;border-bottom:1px solid var(--line)}
.selection-actions button{padding:0;background:none;color:var(--blue);font-size:13px;font-weight:560}
.selection-actions button:hover{text-decoration:underline;text-underline-offset:3px}
.series-group{border-bottom:1px solid var(--line);padding:17px 0 8px}
.series-group:last-child{border-bottom:0;padding-bottom:0}
.series-group h3{font-size:12px;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.series-row{display:grid;grid-template-columns:19px minmax(0,1fr) 24px;align-items:center;gap:9px;padding:9px 0;cursor:pointer}
.series-row.is-filtered{display:none}
.series-row input[type=checkbox]{width:17px;height:17px;margin:0;accent-color:var(--accent)}
.series-name{font-size:14px;line-height:1.3;min-width:0}
.series-name strong{display:block;font-weight:570;overflow-wrap:anywhere}
.series-name small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.series-color{width:23px;height:23px;padding:0;border:0;background:none;border-radius:50%;overflow:hidden;cursor:pointer}
.series-color::-webkit-color-swatch-wrapper{padding:0}
.series-color::-webkit-color-swatch{border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #b9bbc5}
.series-color::-moz-color-swatch{border:2px solid #fff;border-radius:50%}
.chart-column{display:grid;gap:18px;min-width:0}
.chart-card{padding:24px}
.chart-actions{display:flex;align-items:center;gap:9px}
.icon-button{width:44px;height:44px;border:1px solid #cfd1da;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--ink)}
.icon-button:hover{background:#fafafd;border-color:#aeb0bb}
.icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chart-settings{display:flex;align-items:end;flex-wrap:wrap;gap:12px 20px;margin:22px 0 14px;padding:16px;background:var(--surface-soft);border-radius:14px}
.chart-settings>label:not(.toggle){display:grid;gap:6px;font-size:12px;color:var(--muted)}
.chart-settings select{height:38px;min-width:150px;border:1px solid #cfd1da;border-radius:9px;background:#fff;color:var(--ink);padding:0 34px 0 10px}
.toggle{display:flex;align-items:center;gap:8px;min-height:38px;font-size:14px;cursor:pointer}
.toggle input{width:18px;height:18px;accent-color:var(--accent)}
.chart-shell{position:relative;width:100%;min-height:410px;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;touch-action:none}
#chart{display:block;width:100%;height:410px;cursor:crosshair}
.chart-tooltip{position:absolute;z-index:2;pointer-events:none;max-width:min(360px,calc(100% - 24px));background:#111318ee;color:#fff;border-radius:12px;padding:10px 12px;font-size:12px;line-height:1.45;box-shadow:0 8px 28px #0003}
.chart-tooltip strong{display:block;margin-bottom:6px;font-variant-numeric:tabular-nums}
.tooltip-row{display:flex;align-items:center;gap:7px;min-width:0;margin-top:3px}
.tooltip-color{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.tooltip-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e2e3e7}
.tooltip-value{margin-left:auto;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.range-controls{margin-top:16px;padding:0 4px}
.range-heading{display:flex;justify-content:space-between;gap:18px;font-size:13px;font-weight:600}
.range-heading output{font-variant-numeric:tabular-nums;color:var(--muted)}
.range-controls label{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:10px;margin-top:10px;color:var(--muted);font-size:12px}
.range-controls input[type=range]{width:100%;accent-color:var(--accent)}
.range-controls p{font-size:12px;color:var(--muted);margin-top:10px}
.viewer-footer{display:flex;justify-content:space-between;gap:24px;padding:34px 0 42px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.viewer-footer nav{display:flex;flex-wrap:wrap;gap:10px 24px}
.viewer-footer a{text-decoration:underline;text-underline-offset:3px}
.viewer-footer a:hover{color:var(--ink)}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
[hidden]{display:none!important}

@media(max-width:1050px){.analyzer-layout{grid-template-columns:270px minmax(0,1fr)}.log-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.shell{width:calc(100% - 36px)}.intro{align-items:flex-start;flex-direction:column;padding-top:52px}.analyzer-layout{grid-template-columns:1fr}.series-panel{position:static;max-height:none}.series-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.series-group{min-width:0}.chart-card{padding:20px}}
@media(max-width:600px){.shell{width:calc(100% - 28px)}.viewer-header{height:74px}.viewer-brand{font-size:22px}.viewer-brand img{width:40px;height:40px}.back-link{font-size:13px}.intro{padding:42px 0 27px;gap:24px}.intro h1{font-size:48px}.intro-copy{font-size:17px;margin-top:16px}.drop-zone{min-height:270px;padding:32px 20px;margin-bottom:56px;border-radius:20px}.drop-zone h2{font-size:24px}.upload-actions{width:100%}.upload-actions .button{flex:1 1 150px}.workspace{padding:0 0 70px}.workspace-heading{align-items:flex-start;flex-direction:column}.log-summary{grid-template-columns:1fr 1fr;gap:8px}.summary-item{padding:15px}.summary-item dd{font-size:17px}.series-list{display:block}.chart-heading{align-items:flex-start;flex-direction:column}.chart-actions{width:100%;justify-content:space-between}.chart-settings{display:grid;grid-template-columns:1fr 1fr;gap:13px}.chart-settings select{min-width:0;width:100%}.chart-shell{min-height:360px}#chart{height:360px}.panel-heading h2,.chart-heading h2{font-size:23px}.range-controls p{line-height:1.45}.viewer-footer{flex-direction:column}.viewer-footer nav{flex-direction:column}}
@media(max-width:390px){.log-summary{grid-template-columns:1fr}.chart-settings{grid-template-columns:1fr}.upload-actions{flex-direction:column}.upload-actions .button{width:100%;flex-basis:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.drop-zone,.button{transition:none}}
