:root{--bg:#f3f5f8;--panel:#fff;--soft:#f5f7fa;--ink:#0c2340;--muted:#52647a;--line:#dce2ea;--accent:#ba0c2f;--accent-hover:#9e0a28;--green:#0c2340;--orange:#ba0c2f;--grid:#edf0f5;--danger:#a80c2b;--shadow:0 8px 32px #2339280a;--mono:'IBM Plex Mono',monospace;--font:'DM Sans',sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:13px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button,select{touch-action:manipulation}button{color:inherit}a{color:inherit;text-decoration:none}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}input,select,textarea{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:6px;min-width:0;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #7ea87118}input[type=checkbox]{accent-color:var(--green);width:14px;height:14px;cursor:pointer;box-shadow:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}select{height:35px;padding:0 28px 0 10px;cursor:pointer}h1,h2,h3,p{margin:0}h2{font-size:14px;font-weight:600;letter-spacing:-.3px}h3{font-size:13px;font-weight:600}button{transition:background .16s,color .16s,border-color .16s}input::placeholder,textarea::placeholder{color:#a0a79f}button:hover:not(:disabled){filter:brightness(.99)}[hidden]{display:none!important}.icon-library,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.app-header{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:var(--panel);gap:18px}.brand{display:flex;align-items:center;gap:9px;font-size:26px;font-weight:700;letter-spacing:-1.25px}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:var(--accent);color:#ffffff}.brand-mark svg{width:29px;height:29px}.brand-tag{font:9px var(--mono);letter-spacing:1.6px;color:var(--muted);border-left:1px solid var(--line);padding-left:19px;margin-left:14px;max-width:120px;line-height:1.5}.header-actions{display:flex;align-items:center;gap:12px}.save-status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;margin-right:10px}.status-dot{display:inline-block;width:5px;height:5px;background:#ba0c2f;border-radius:50%;flex-shrink:0}.btn{height:36px;border-radius:7px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:500;font-size:12px;border:1px solid transparent;white-space:nowrap}.primary{background:var(--accent);color:#ffffff;border-color:var(--accent)}.primary:hover{background:var(--accent-hover)}.secondary{background:var(--panel);border-color:var(--line)}.secondary:hover{background:var(--soft)}.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:none;border:0;padding:5px 0;font-size:11px;color:var(--muted)}.text-btn:hover{color:var(--green)}.text-btn svg{width:14px;height:14px}.keycap{border:1px solid var(--line);border-radius:4px;width:17px;height:18px;display:inline-grid;place-items:center;color:var(--muted);margin-left:4px;font-size:10px}.icon-btn{background:none;border:1px solid transparent;border-radius:6px;width:32px;height:32px;display:inline-grid;place-items:center;padding:0;color:var(--muted);font-size:20px}.icon-btn:hover{background:var(--soft);border-color:var(--line);color:var(--ink)}.icon-btn.small{width:27px;height:27px}.icon-btn.small svg{width:15px;height:15px}.chevron{font-size:14px;font-weight:400;margin-left:6px}.menu-wrap{position:relative}.dropdown{position:absolute;top:44px;right:0;width:244px;padding:6px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow),0 15px 40px #0001;border-radius:10px;z-index:20}.dropdown button{border:0;background:none;text-align:left;display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px 9px;border-radius:5px;font-size:12px}.dropdown button:hover{background:var(--soft)}.dropdown span{color:var(--muted);font-size:10px}
main{max-width:1800px;margin:auto;padding:30px 34px 18px}.workspace-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:15px}.eyebrow{font:9px var(--mono);letter-spacing:1.1px;color:var(--muted);display:flex;align-items:center;gap:7px}.slash{margin:0 3px;color:#b5bcb2}.title-row{display:flex;align-items:center;margin:9px 0 4px;max-width:550px}.title-row input{border:0;border-radius:3px;background:transparent;font-size:29px;letter-spacing:-1.2px;font-weight:500;padding:0;width:18ch;height:38px;text-overflow:ellipsis}.title-row input:focus{background:var(--panel);width:100%;box-shadow:0 0 0 2px var(--line)}.title-pencil{color:#a6afa2;font-size:19px;margin-left:5px}.intro{font-size:12px;color:var(--muted)}.workspace-actions{display:flex;gap:10px;align-items:center}.workspace-actions select{background:transparent;border-color:transparent;font-size:11px;color:var(--muted);max-width:200px}.workbench{display:grid;grid-template-columns:330px minmax(0,1fr);gap:22px;align-items:start}.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 2px 4px #14251502}.data-panel{overflow:hidden}.panel-heading{padding:17px 17px 16px;display:flex;align-items:center;justify-content:space-between}.panel-heading>div:first-child,.analysis-heading>div:first-child{display:flex;align-items:center;gap:9px}.section-no{font:9px var(--mono);color:#9aa494;margin-right:2px}.count-badge{font:9px var(--mono);background:var(--soft);border:1px solid var(--line);border-radius:4px;padding:2px 5px;margin-left:1px;color:var(--muted)}.history-actions{display:flex;gap:1px}.history-actions button{font-size:19px}.import-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;margin:0 17px 10px;width:calc(100% - 34px);padding:17px 8px 16px;border:1px dashed #cfd8c8;background:#f9fbf6;border-radius:7px;color:var(--ink)}.import-zone:hover,.import-zone.dragging{border-color:var(--green);background:#eef5e5}.import-icon{display:grid;place-items:center;width:30px;height:30px;background:#ecf2e5;border-radius:7px;color:#6e8562;margin-bottom:1px}.import-icon svg{width:17px;height:17px}.import-zone strong{font-size:11px;font-weight:500}.import-zone>span:last-child{font-size:9px;color:#8e9785}.data-tools{display:flex;justify-content:space-between;margin:0 18px 9px}.data-tools .text-btn{font-size:10px}.table-wrap{max-height:396px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.data-table{width:100%;border-collapse:collapse;table-layout:fixed;font-family:var(--mono);font-size:11px}.data-table thead{position:sticky;top:0;z-index:2;background:var(--soft)}.data-table th{text-align:left;height:45px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-weight:500;padding:5px 5px 5px 8px;color:var(--ink);border-right:1px solid var(--line)}.data-table th span{font-size:12px}.data-table th small{display:block;font:8px var(--font);color:var(--muted);font-weight:400;margin-top:2px}.data-table .index-col{width:32px;text-align:center;font-size:9px;color:var(--muted);padding:0}.data-table .delete-col{width:21px;border-right:0;padding:0}.data-table td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:0;height:32px}.data-table td:last-child{border-right:0}.data-table input[type=text]{width:100%;height:31px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0 5px 0 8px;font-size:11px;font-family:var(--mono);font-variant-numeric:tabular-nums}.data-table td:focus-within{box-shadow:inset 0 0 0 1.5px var(--green);background:#eef5e75e}.data-table input.invalid{background:#e9a78622;box-shadow:inset 0 -2px var(--danger)}.row-toggle{position:relative;display:grid;place-items:center;color:#9ca397;font-size:9px;cursor:pointer;height:100%}.row-toggle input{position:absolute;opacity:0;width:17px;height:17px;margin:0}.row-toggle:focus-within input,.row-toggle:hover input,.data-table tr.excluded .row-toggle input{opacity:1}.row-toggle:focus-within span,.row-toggle:hover span,.excluded .row-toggle span{opacity:0}.data-table tr.excluded input[type=text]{color:var(--muted);text-decoration:line-through;opacity:.5}.data-table tr.selected{background:#edf5e4}.delete-row{padding:0;border:0;background:none;width:20px;height:29px;color:#aab1a5;opacity:0;font-size:14px}.data-table tr:hover .delete-row,.delete-row:focus-visible{opacity:1}.delete-row:hover{color:var(--danger)}.table-footer{display:flex;align-items:center;justify-content:space-between;padding:11px 17px;border-bottom:1px solid var(--line);gap:6px}.table-footer .text-btn{font-size:11px;color:var(--green)}.hint{font-size:10px;color:var(--muted);line-height:1.6}.table-footer .hint{font-size:9px}.pagination{display:flex;align-items:center;gap:6px;font:8px var(--mono);color:var(--muted)}.pagination button{border:1px solid var(--line);background:var(--soft);border-radius:3px;width:19px;height:24px;font-size:16px;padding:0}.settings-section{border-bottom:1px solid var(--line);padding:0 17px}.settings-section summary{padding:15px 0;font-size:11px;display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;font-weight:500}.settings-section summary::-webkit-details-marker{display:none}.settings-section summary>span:first-child{display:flex;align-items:center;gap:7px}.settings-section summary svg{width:14px;height:14px;color:var(--muted)}.settings-section[open] summary .chevron{transform:rotate(180deg)}.axis-fields{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:11px 9px;padding:0 0 17px}.axis-fields label,.uniform-fields label,.column-mapping label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:var(--muted)}.axis-fields input{height:32px;padding:0 10px;font-size:11px;width:100%}.uniform-fields{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;align-items:end;margin-bottom:10px}.uniform-fields input{width:100%;height:32px;padding:0 7px}.uniform-fields .btn{height:32px;font-size:10px;padding:0 8px}.settings-section>p{padding-bottom:15px}.privacy-note{display:flex;align-items:center;justify-content:center;gap:7px;padding:15px;font-size:9px;color:var(--muted)}.data-notice{margin:10px 15px;padding:9px 10px;border-radius:5px;background:#fcf1e8;color:var(--danger);font-size:10px;line-height:1.6}
.plot-workspace{min-width:0}.graph-panel{overflow:hidden}.graph-heading{height:50px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 21px}.graph-tabs{display:flex;align-items:center;height:100%;gap:24px}.graph-tabs button{display:flex;align-items:center;gap:7px;border:0;border-bottom:2px solid transparent;height:100%;padding:1px 0 0;font-size:11px;background:none;color:var(--muted)}.graph-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--green)}.graph-tabs svg{width:14px;height:14px}.graph-actions{display:flex;gap:7px;align-items:center}.live-badge{font:8px var(--mono);color:var(--green);letter-spacing:.5px;display:flex;align-items:center;gap:6px;margin-right:6px;background:#edf2f8;border:1px solid #d6e1ee;border-radius:4px;padding:5px 7px}.live-badge .status-dot{width:4px;height:4px}.plot-title-row{display:flex;align-items:center;justify-content:space-between;padding:23px 25px 0}.plot-title-row h2{font-size:15px;letter-spacing:-.25px}.plot-title-row p{font-size:10px;color:var(--muted);margin-top:5px}.graph-index{font:9px var(--mono);color:#99a391}.chart-region{position:relative;height:345px;margin:2px 18px 0 7px;touch-action:none}.chart-region canvas{display:block;width:100%;height:100%;cursor:crosshair}.chart-tooltip{position:absolute;pointer-events:none;z-index:5;background:var(--ink);color:var(--panel);padding:10px 12px;font:10px var(--mono);line-height:1.8;border-radius:6px;box-shadow:var(--shadow);white-space:nowrap}.chart-tooltip strong{font:11px var(--font);display:block;margin-bottom:3px}.chart-tooltip span{opacity:.65}.graph-footer{min-height:48px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px 24px;gap:15px}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:17px}.legend label{display:flex;align-items:center;gap:6px;font-size:9px;cursor:pointer;position:relative;white-space:nowrap;color:var(--muted)}.legend label:has(input:not(:checked)){opacity:.4;text-decoration:line-through}.legend input{position:absolute;opacity:0;width:100%;height:100%;margin:0}.legend label:focus-within{outline:1px solid var(--green);outline-offset:4px}.legend-dot{width:6px;height:6px;border-radius:50%;background:var(--green)}.legend-line{width:16px;height:0;border-top:1.5px solid var(--green)}.legend-line.max,.line-sample.max{border-color:var(--orange);border-top-style:dashed}.legend-line.min,.line-sample.min{border-color:#52789e;border-top-style:dotted}.chart-interaction-hint{font-size:8px;color:#a0a79b;white-space:nowrap}.chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;gap:10px;text-align:center;padding:20px}.empty-mark{font:38px var(--font);color:var(--green);background:var(--soft);border:1px solid var(--line);width:70px;height:70px;border-radius:15px;margin-bottom:8px}.chart-empty h3{font-size:20px;letter-spacing:-.6px}.chart-empty p{color:var(--muted);font-size:12px}.analysis-panel{margin-top:18px;overflow:hidden}.analysis-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 21px;gap:15px}.fit-controls{display:flex;align-items:center;gap:14px}.fit-controls select{height:29px;font-size:10px;background:var(--soft);max-width:210px}.check-label{display:flex;align-items:center;gap:6px;font-size:10px;white-space:nowrap;color:var(--muted)}.check-label input{margin:0}.fit-summary{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;padding:7px 21px 24px;gap:12px}.equation-block{padding-right:8px}.equation-block .eyebrow{font-size:8px;letter-spacing:1px}.equation-row{display:flex;align-items:center;gap:4px;margin:8px 0 7px}.equation-row output{font:15px var(--mono);font-weight:500;letter-spacing:-.8px;overflow-wrap:anywhere}.equation-row .icon-btn{width:22px;height:22px;flex-shrink:0}.equation-row svg{width:12px;height:12px}.equation-block p{font-size:9px;line-height:1.5;color:var(--muted);max-width:240px}.stat{border-left:1px solid var(--line);padding-left:17px;display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0}.stat>span{font-size:10px;color:var(--muted);white-space:nowrap}.stat i{font:10px var(--mono);font-style:italic;color:var(--green);margin-left:3px}.stat>strong{font:21px var(--mono);letter-spacing:-1px;line-height:1.1;overflow-wrap:anywhere;max-width:100%}.stat small{font:8px var(--mono);color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.stat .hint{font-size:8px}.bounds-row{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:12px;padding:17px 21px;background:var(--soft);border-top:1px solid var(--line)}.bounds-title{display:flex;align-items:center;gap:10px}.range-symbol{width:30px;height:32px;display:grid;place-items:center;background:var(--panel);border:1px solid var(--line);border-radius:6px;font-size:20px;color:var(--green);flex-shrink:0}.bounds-title strong{display:block;font-size:10px;font-weight:500;margin-bottom:4px}.bounds-title div>span{display:block;font-size:8px;color:var(--muted);line-height:1.5;max-width:170px}.bound-stat{padding-left:17px;display:flex;flex-direction:column;gap:7px;min-width:0}.bound-stat>span{font-size:9px;color:var(--muted);display:flex;gap:6px;align-items:center}.bound-stat strong{font:12px var(--mono);color:var(--ink);overflow-wrap:anywhere}.line-sample{width:11px;border-top:1.5px solid;display:inline-block}.fit-error{padding:8px 14px;background:#fff0e4;margin:0 20px 14px;color:var(--danger);border-radius:6px;font-size:11px}.insight-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;margin-top:18px}.insight-panel{padding:17px 21px;min-width:0}.mini-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.mini-heading h3{font-size:11px}.tag{font:7px var(--mono);letter-spacing:.6px;color:#96a08f}.diagnostics{font-size:10px;color:var(--muted);line-height:1.65}.diagnostics p{margin-bottom:4px}.diagnostics .warning{color:var(--danger)}.insight-panel .text-btn{font-size:9px;color:var(--green);margin-top:8px}.insight-panel .text-btn svg{width:12px;height:12px}.prediction-input{display:flex;align-items:center;gap:9px;font:12px var(--mono);margin:4px 0 10px}.prediction-input input{width:85px;height:32px;background:var(--soft);font-size:11px;padding:0 8px}.prediction-input input::placeholder{font:9px var(--font)}.prediction-input>span{font-size:10px;color:var(--muted)}.prediction-input .predict-arrow{margin:0 5px;font-size:18px;color:#a9b79b}.prediction-input output{font-size:13px;overflow-wrap:anywhere;min-width:0}.prediction-panel .hint{font-size:9px}.workspace-footer{display:flex;justify-content:space-between;gap:10px;padding:17px 1px 0;font-size:8px;color:#949e8c}.workspace-footer>span:first-child{display:flex;align-items:center;gap:6px}.workspace-footer b{font-weight:400;margin-left:9px;color:#697861}
dialog{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:14px;width:min(670px,calc(100vw - 28px));max-height:90dvh;padding:0;box-shadow:0 25px 100px #1328192b}dialog::backdrop{background:#1b2a234d;backdrop-filter:blur(4px)}.dialog-heading{padding:24px 26px 19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.dialog-heading h2{font-size:23px;letter-spacing:-.8px;font-weight:500}.dialog-heading .eyebrow{margin-bottom:9px}.dialog-body{padding:22px 26px 26px}.dialog-intro,.dialog-body>p{color:var(--muted);font-size:12px;line-height:1.7}.dialog-intro{margin-bottom:18px}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px}.import-actions{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px}.inline-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px}.inline-label select{font-size:10px;height:32px}.dialog-body textarea{width:100%;resize:vertical;min-height:115px;font:11px/1.8 var(--mono);padding:13px;background:var(--soft);tab-size:9}.mapping-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 13px}.mapping-heading h3{font-size:12px}.column-mapping{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.column-mapping label{font-size:12px;color:var(--ink);gap:5px}.column-mapping label>span{font-size:9px;color:var(--muted)}.column-mapping select{width:100%;font-size:11px;padding-left:8px}.import-preview{margin:15px 0;max-height:200px;overflow:auto;border:1px solid var(--line);border-radius:5px}.import-preview table{width:100%;border-collapse:collapse;font:10px var(--mono)}.import-preview th,.import-preview td{padding:8px 12px;border-bottom:1px solid var(--line);text-align:left}.import-preview th{background:var(--soft);font-weight:400;color:var(--muted)}#sheet-choice{margin:12px 0}#sheet-choice label{font-size:11px;display:flex;gap:12px;align-items:center}.error-text{color:var(--danger)!important;font-size:11px;margin-top:12px;line-height:1.6}.compact-dialog{max-width:440px}.compact-dialog .dialog-heading h2{font-size:19px}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;font-size:12px;gap:10px}.settings-body>.hint{font-size:10px;margin:10px 0}.range-settings{margin:17px 0;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.range-settings h3{margin-bottom:14px}.range-settings .axis-fields{grid-template-columns:1fr 1fr;padding-bottom:2px}.range-settings .btn{margin-top:8px}.help-body section{margin-bottom:23px}.help-body h3{margin-bottom:9px;font-size:12px}.help-body p{font-size:12px;color:var(--muted);line-height:1.8;margin:7px 0}.help-body kbd{font:10px var(--mono);background:var(--soft);border:1px solid var(--line);padding:2px 4px;border-radius:3px}.help-body .method-links{font-size:10px}.method-links a{color:var(--green);text-decoration:underline;text-underline-offset:3px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--panel);border:1px solid var(--line);border-radius:8px;padding:13px 20px;font-size:12px;box-shadow:0 6px 30px #0002;z-index:100;max-width:90vw;text-align:center}#print-report{display:none}
body[data-theme=dark]{--bg:#091827;--panel:#10243b;--soft:#152d46;--ink:#edf3fa;--muted:#b0c1d5;--line:#304760;--green:#a8c4e6;--grid:#1d354e;--danger:#ff9ab0;--shadow:0 8px 32px #0002;color-scheme:dark}body[data-theme=dark] .import-zone{background:#162e48;border-color:#3a5675}body[data-theme=dark] .import-icon{background:#263e58;color:#d0e3fb}body[data-theme=dark] .import-zone>span:last-child{color:#becde0}body[data-theme=dark] .live-badge{background:#192f49;border-color:#3a5675}body[data-theme=dark] .data-table tr.selected,body[data-theme=dark] .data-table td:focus-within{background:#213c59}body[data-theme=dark] .data-notice,body[data-theme=dark] .fit-error{background:#432536}body[data-theme=dark] .import-zone.dragging{background:#254666}
@media(min-width:1600px){.workbench{grid-template-columns:350px minmax(0,1fr);gap:26px}.chart-region{height:420px}.fit-summary{grid-template-columns:1.5fr 1fr 1fr 1fr}.equation-row output{font-size:19px}.data-table td{height:36px}.data-table input[type=text]{height:35px}.table-wrap{max-height:455px}}
@media(max-width:1200px){.app-header{padding:0 24px}.brand-tag{display:none}main{padding:25px 24px}.workbench{grid-template-columns:300px minmax(0,1fr);gap:16px}.save-status{display:none}.fit-summary{grid-template-columns:repeat(3,1fr);gap:12px}.equation-block{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding-bottom:12px}.equation-row{margin:0}.equation-block p{max-width:100%;flex-basis:100%}.stat:first-of-type{border:0;padding-left:0}.stat{padding-left:12px}.bounds-row{grid-template-columns:repeat(3,1fr)}.bounds-title{grid-column:1/-1}.bounds-title div>span{max-width:100%}.bound-stat{padding-left:0}.chart-interaction-hint{display:none}.legend{gap:13px}.insight-grid{grid-template-columns:1fr}.analysis-heading{align-items:flex-start}.fit-controls{align-items:flex-start;gap:8px;flex-direction:column}.graph-footer{padding:12px 20px}.graph-index{display:none}}
@media(max-width:900px){.brand{font-size:24px}.header-actions{gap:8px}.header-actions>.text-btn{display:none}.workbench{grid-template-columns:265px minmax(0,1fr);gap:13px}main{padding:22px 18px}.app-header{padding:0 18px;height:66px}.workspace-actions{flex-direction:column;align-items:flex-end;gap:4px}.title-row input{font-size:26px;width:16ch}.table-wrap{max-height:396px}.panel-heading{padding:14px 12px}.import-zone{margin:0 12px 9px;width:calc(100% - 24px)}.data-tools{margin:0 12px 9px}.data-table input[type=text]{font-size:10px;padding-left:5px}.data-table th{padding-left:5px}.data-table .delete-col{width:17px}.delete-row{width:16px}.data-table .index-col{width:25px}.table-footer{padding:10px 12px}.table-footer .hint{font-size:8px}.settings-section{padding:0 12px}.analysis-heading{padding:14px;flex-wrap:wrap;gap:10px}.fit-controls{flex-direction:row;align-items:center;gap:10px;width:100%;justify-content:space-between}.fit-controls select{font-size:9px;max-width:170px}.check-label{font-size:9px}.fit-summary{padding:8px 14px 20px;gap:8px}.stat{padding-left:10px}.stat strong{font-size:17px}.stat>span{font-size:9px}.stat .hint{display:none}.equation-row output{font-size:16px}.bounds-row{padding:14px;gap:13px}.bound-stat strong{font-size:11px}.graph-heading{padding:0 15px}.plot-title-row{padding:20px 17px 0}.chart-region{height:325px;margin-right:10px}.live-badge{font-size:7px;padding:4px 5px;margin-right:1px}.graph-actions{gap:3px}.graph-tabs{gap:17px}.graph-tabs button{font-size:10px}.graph-footer{padding:12px 17px}.legend{gap:10px}.legend label{font-size:8px}.legend-line{width:12px}.workspace-footer>span:last-child{display:none}.insight-panel{padding:16px}.prediction-input output{font-size:12px}.prediction-input input{width:76px}}
@media(max-width:680px){.app-header{height:64px;padding:0 16px}.brand{font-size:24px}.brand-mark{width:31px;height:31px;border-radius:8px}.header-actions{gap:5px}.header-actions>#open-project{display:none}.header-actions>.icon-btn{width:28px}.header-actions .btn{height:32px;font-size:11px;padding:0 10px}.workspace-heading{align-items:flex-start;margin-bottom:20px;flex-direction:column;gap:13px}.workspace-actions{flex-direction:row-reverse;align-items:center;justify-content:space-between;width:100%}.workspace-actions select{font-size:10px;max-width:190px}.workspace-actions .btn{height:32px;font-size:10px}.title-row input{font-size:28px;width:18ch}.title-row{margin-top:9px}.eyebrow{font-size:8px}.intro{font-size:11px}.workbench{display:flex;flex-direction:column;gap:18px}.data-panel{width:100%;order:1}.plot-workspace{width:100%;order:0}main{padding:23px 14px 25px}.plot-title-row h2{font-size:14px}.plot-title-row p{font-size:9px}.chart-region{height:315px;margin-left:0}.graph-tabs{gap:22px}.graph-footer{min-height:50px;padding:10px 15px}.legend{gap:12px;justify-content:space-between;width:100%}.legend label{font-size:8px;gap:4px}.graph-heading{height:46px}.analysis-panel{margin-top:13px}.analysis-heading{padding:15px;gap:12px}.fit-controls{gap:10px}.fit-controls select{max-width:none;flex:1;font-size:10px}.check-label{font-size:10px}.fit-summary{padding:8px 15px 19px;gap:8px}.equation-block{gap:10px 18px;padding-bottom:8px}.equation-row output{font-size:16px}.stat{padding-left:10px}.stat strong{font-size:19px}.stat>span{font-size:9px}.stat small{font-size:8px}.bounds-row{padding:15px}.bounds-title div>span{font-size:9px}.bound-stat strong{font-size:12px}.insight-grid{gap:13px;margin-top:13px}.insight-panel{padding:17px}.mini-heading h3{font-size:12px}.tag{font-size:8px}.diagnostics{font-size:11px}.prediction-input input{width:100px}.prediction-input output{font-size:14px}.workspace-footer{font-size:8px;padding-top:13px}.data-panel .panel-heading{padding:18px}.data-panel .import-zone{margin:0 18px 12px;width:calc(100% - 36px);padding:20px}.data-tools{margin:0 18px 12px}.data-tools .text-btn{font-size:11px}.data-table input[type=text]{font-size:12px;height:36px;padding-left:10px}.data-table td{height:37px}.data-table th{padding-left:10px;height:46px}.data-table .index-col{width:35px}.data-table .delete-col{width:27px}.delete-row{width:26px;opacity:.6}.table-footer{padding:12px 18px}.table-footer .hint{font-size:10px}.settings-section{padding:0 18px}.settings-section summary{font-size:12px}.axis-fields input{height:36px;font-size:12px}.table-wrap{max-height:418px}.dialog-heading{padding:20px}.dialog-body{padding:20px}.dialog-heading h2{font-size:21px}.dialog-intro{font-size:11px}.import-actions{flex-wrap:wrap}.column-mapping{gap:9px}.column-mapping select{font-size:10px;padding-left:5px}.mapping-heading{align-items:flex-start;gap:12px;flex-direction:column}.dialog-footer{align-items:flex-start;flex-direction:column;gap:12px}.dialog-footer .btn{align-self:flex-end}.import-preview th,.import-preview td{padding:7px}.compact-dialog .dialog-footer{flex-direction:row;align-items:center;flex-wrap:wrap}.dialog-body .help-body{padding:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:#fff;color:#000}body>*{display:none!important}#print-report{display:block!important;font-family:var(--font);font-size:11px}#print-report h1{font-size:25px;margin-bottom:8px}#print-report h2{margin:20px 0 10px}#print-report img{width:100%;height:auto}#print-report p{margin:6px 0;line-height:1.6}#print-report table{border-collapse:collapse;width:100%;margin:12px 0;font:10px var(--mono)}#print-report td,#print-report th{text-align:left;padding:6px;border-bottom:1px solid #ddd}#print-report tr{break-inside:avoid}@page{margin:16mm}}

.mobile-tools,.mobile-back{display:none}.swap-axes{margin:0 0 13px;color:var(--green);font-size:10px}
@media(max-width:680px){.mobile-tools{display:flex;justify-content:space-between;gap:14px;width:100%;padding:3px 0 0;border-top:1px solid var(--line)}.mobile-tools .text-btn{font-size:10px;padding:11px 0 0;color:var(--green)}.mobile-back{display:block;margin:15px auto 0;color:var(--green)}.title-pencil{display:none}.title-row{max-width:calc(100vw - 28px)}.title-row input{max-width:100%}}
