:root{color-scheme:light;--bg: #f6f7f9;--surface: #ffffff;--surface-2: #eef0f3;--text: #1a2333;--text-muted: #6b7280;--border: #e2e5ea;--accent: #7c3aed;--accent-soft: #ede9fe;--ok: #16a34a;--ok-soft: #dcfce7;--warn: #d97706;--warn-soft: #fef3c7;--error: #b91c1c;--error-soft: #fee2e2;--note: #d97706;--note-soft: #fef3c7;--chart-card: #ffffff}[data-theme=dark]{color-scheme:dark;--bg: #111318;--surface: #1a1d24;--surface-2: #242830;--text: #e5e7eb;--text-muted: #9aa1ac;--border: #2a2e37;--accent: #a78bfa;--accent-soft: color-mix(in srgb, #7c3aed 26%, transparent);--ok: #4ade80;--ok-soft: color-mix(in srgb, #16a34a 24%, transparent);--warn: #fbbf24;--warn-soft: color-mix(in srgb, #d97706 24%, transparent);--error: #f87171;--error-soft: color-mix(in srgb, #b91c1c 28%, transparent);--note: #fbbf24;--note-soft: color-mix(in srgb, #d97706 24%, transparent);--chart-card: #f4f4f5}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:Segoe UI,system-ui,-apple-system,sans-serif;font-size:14px;color:var(--text);background:var(--bg);transition:background-color .15s,color .15s}button{font:inherit;cursor:pointer}code{background:var(--surface-2);padding:1px 5px;border-radius:4px}.btn{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:6px;padding:6px 12px}.btn:hover{border-color:var(--accent);color:var(--accent)}.btn.subtle{color:var(--text-muted)}.theme-btn{background:transparent;border:1px solid var(--border);color:var(--text-muted);border-radius:6px;width:28px;height:28px;line-height:1;padding:0;font-size:15px}.theme-btn:hover{background:var(--surface-2)}.landing-theme{position:absolute;top:16px;right:16px}.error{color:var(--error);background:var(--error-soft);border-radius:6px;padding:8px 14px;max-width:480px}.landing{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px}.landing-brand{font-size:28px;font-weight:700;letter-spacing:-.5px}.landing-tagline{color:var(--text-muted);margin:0}.dropzone{border:2px dashed var(--border);border-radius:12px;background:var(--surface);padding:56px 88px;text-align:center;cursor:pointer;transition:border-color .15s,background .15s}.dropzone:hover,.dropzone.dragging{border-color:var(--accent);background:var(--accent-soft)}.dropzone-title{font-size:16px;font-weight:600}.dropzone-sub{color:var(--text-muted);margin-top:6px}.landing-foot{color:var(--text-muted);font-size:12px;max-width:460px;text-align:center}.viewer{height:100%;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:12px;padding:8px 14px;background:var(--surface);border-bottom:1px solid var(--border)}.brand{font-weight:700}.buildtag{font-size:10px;font-weight:500;color:var(--text-muted);border:1px solid var(--border);border-radius:999px;padding:1px 6px;vertical-align:middle}.topbar .title{font-weight:600;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip{background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:2px 10px;font-size:12px;white-space:nowrap}.meta-info{color:var(--text-muted);font-size:12px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main{flex:1;display:flex;min-height:0}.grid-area{flex:1;display:flex;flex-direction:column;min-width:0;position:relative}.watermark{position:absolute;right:14px;bottom:10px;font-size:11px;color:var(--text-muted);background:color-mix(in srgb,var(--surface) 80%,transparent);border:1px solid var(--border);border-radius:999px;padding:2px 10px;pointer-events:none}.sheet-tabs{display:flex;align-items:center;gap:4px;padding:6px 10px 0}.sheet-tab{border:1px solid var(--border);border-bottom:none;background:var(--bg);border-radius:6px 6px 0 0;padding:4px 14px;color:var(--text-muted)}.sheet-tab.active{background:var(--surface);color:var(--text);font-weight:600}.follow-toggle{margin-left:auto;color:var(--text-muted);font-size:12px;display:flex;align-items:center;gap:4px}.grid-wrap{flex:1;overflow:auto;background:var(--surface);border-top:1px solid var(--border)}.grid-inner{position:relative;width:max-content}.chart-anchored{position:absolute;z-index:1;pointer-events:auto}.chart-anchored img{width:100%;height:100%;border:1px solid var(--border);border-radius:4px;background:var(--chart-card);box-shadow:0 2px 10px #0000001f}table.grid{border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}.grid th,.grid td{border:1px solid var(--border);height:24px;padding:2px 8px;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.grid thead th{position:sticky;top:0;background:var(--bg);color:var(--text-muted);font-weight:500;text-align:center;z-index:2}.col-resize{position:absolute;top:0;right:-5px;width:9px;height:100%;cursor:col-resize;z-index:4}.col-resize:hover{border-right:3px solid var(--accent)}.grid td.rich{text-decoration:underline dotted var(--text-muted);text-underline-offset:3px}.grid td.sel{background:color-mix(in srgb,var(--ok) 12%,transparent)}.grid td.sel.touched{background:color-mix(in srgb,var(--accent-soft) 60%,color-mix(in srgb,var(--ok) 16%,transparent))}.grid td.sel-anchor{outline:2px solid var(--ok);outline-offset:-2px}.how{font-size:11px;color:var(--text-muted);font-style:italic}.chartstrip{display:flex;gap:10px;padding:8px 12px;overflow-x:auto;border-top:1px solid var(--border);background:var(--surface);align-items:flex-start}.chartstrip img{max-height:150px;border:1px solid var(--border);border-radius:6px;background:var(--chart-card);cursor:zoom-in;transition:max-height .15s ease}.chartstrip img.big{max-height:420px;cursor:zoom-out}.grid .rowhead{position:sticky;left:0;background:var(--bg);color:var(--text-muted);font-weight:500;text-align:center;min-width:42px;z-index:1}.grid thead .corner{z-index:3}.grid td.cell{background:var(--surface)}.grid td.touched{background:var(--accent-soft)}.grid td.current{outline:2px solid var(--accent);outline-offset:-2px;font-weight:600}.sidebar{width:320px;flex-shrink:0;position:relative;border-left:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column;min-height:0}.sidebar-resize{position:absolute;left:-4px;top:0;bottom:0;width:8px;cursor:col-resize;z-index:5}.sidebar-resize:hover{border-left:3px solid var(--accent)}.tabs{display:flex;border-bottom:1px solid var(--border)}.tabs button{flex:1;border:none;background:none;padding:8px;color:var(--text-muted);border-bottom:2px solid transparent}.tabs button.active{color:var(--text);font-weight:600;border-bottom-color:var(--accent)}.list{list-style:none;margin:0;padding:4px;overflow-y:auto;flex:1}.item{display:flex;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;align-items:baseline}.item:hover{background:var(--surface-2)}.item.active{background:var(--accent-soft)}.item.note.active{background:var(--note-soft)}.item.future{opacity:.45}.item .when{color:var(--text-muted);font-size:12px;min-width:34px;font-variant-numeric:tabular-nums}.item .body{display:flex;flex-direction:column;gap:2px;min-width:0}.cellref{font-family:Consolas,monospace;font-size:12px;color:var(--accent)}.item.note .cellref{color:var(--note)}.auto{margin-left:6px;font-size:10px;color:var(--text-muted);border:1px solid var(--border);border-radius:999px;padding:0 5px}.chip.media{background:var(--ok-soft);color:var(--ok)}.empty{color:var(--text-muted);padding:12px}.dim{color:var(--text-muted)}.playerbar{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--surface);border-top:1px solid var(--border)}.btn.play{width:38px;height:32px;text-align:center;padding:0}.time{font-variant-numeric:tabular-nums;min-width:86px}.track{flex:1;position:relative;height:28px;display:flex;align-items:center}.track input[type=range]{width:100%;accent-color:var(--accent)}.markers{position:absolute;top:0;right:8px;bottom:0;left:8px;pointer-events:none}.marker{position:absolute;top:1px;width:3px;height:7px;border-radius:2px;background:var(--border);pointer-events:auto;cursor:pointer}.marker.past{background:var(--accent)}.marker.note{top:auto;bottom:1px;background:var(--note-soft);border:1px solid var(--note);width:5px;height:5px;border-radius:50%}.marker.note.past{background:var(--note)}.speed{font:inherit;border:1px solid var(--border);border-radius:6px;padding:5px 6px;background:var(--surface);color:var(--text);cursor:pointer;min-width:3.6em}.speed-slider{width:84px;accent-color:var(--accent)}.skip-toggle{display:flex;align-items:center;gap:5px;color:var(--text-muted);font-size:12px;white-space:nowrap;cursor:pointer}
