:root{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:13px;color:#253637;background:#f3f6f5;font-synthesis:none;color-scheme:light;--bg:#fff;--page:#f3f6f5;--side:#f9fbfa;--line:#e2e9e6;--text:#253637;--muted:#82918e;--accent:#127a70;--tint:#e7f3ef;--soft:#f4f7f5;--shadow:0 8px 26px #193f2910}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.35}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{color:inherit}button:has(svg),.button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.button{height:34px;border:1px solid var(--line);border-radius:6px;background:var(--bg);padding:0 11px;font-weight:550;font-size:11px;white-space:nowrap}.button:hover{background:var(--soft)}.button.primary{background:var(--accent);border-color:var(--accent);color:white;box-shadow:0 2px 3px #087a7020}.button.primary:hover{filter:brightness(1.07)}.button.subtle{border:0;background:transparent}.icon-button{border:0;background:transparent;border-radius:5px;height:30px;min-width:30px;padding:6px}.icon-button:hover{background:var(--tint)}svg{display:block;width:17px;height:17px;flex-shrink:0}a{color:inherit;text-decoration:none}.shell{display:flex;min-height:100dvh}.sidebar{width:232px;flex:0 0 232px;background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.brand{display:flex;gap:10px;align-items:center;padding:28px 24px 24px;font-size:18px;font-weight:650;letter-spacing:-.65px}.brand-mark{background:var(--accent);border-radius:9px;color:white;padding:9px;box-shadow:0 4px 8px #14796e20}.brand-mark svg{width:21px;height:21px}.brand-sub{display:block;font-size:8px;letter-spacing:1.95px;font-weight:500;margin-top:4px;color:var(--muted)}.workspace{margin:0 17px 30px;padding:12px 10px;display:flex;gap:9px;align-items:center;border:1px solid var(--line);background:var(--bg);border-radius:7px}.workspace-symbol{width:29px;height:30px;display:grid;place-items:center;border-radius:5px;background:var(--soft);color:var(--accent);font-weight:650;font-family:monospace}.workspace strong{font-size:11px}.workspace small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.workspace-version{margin-left:auto;font-family:monospace;color:var(--muted);font-size:9px}.nav-label{font-size:8.5px;letter-spacing:1.2px;font-weight:650;color:var(--muted);padding:0 24px 12px}nav{padding:0 12px}nav button{display:flex;width:100%;align-items:center;gap:10px;position:relative;height:39px;border:0;border-radius:6px;background:transparent;color:#677b76;padding:0 12px;text-align:left;font-size:11px;margin:2px 0}nav button svg{width:16px;height:16px;opacity:.8}nav button:hover{background:var(--soft)}nav button.active{color:var(--accent);background:var(--tint);font-weight:650}nav button.active:before{content:'';position:absolute;left:0;height:17px;width:3px;border-radius:9px;background:var(--accent)}.nav-new{font-size:7px;background:var(--bg);color:var(--accent);border:1px solid var(--line);margin-left:auto;border-radius:3px;padding:2px 3px;letter-spacing:.6px}.nav-divider{height:1px;background:var(--line);margin:16px 12px}.sidebar-bottom{padding:25px 25px 22px;margin-top:auto;font-size:10px;line-height:1.8}.neutral-badge{font-size:9px;display:flex;align-items:center;gap:6px;color:var(--accent);font-weight:600}.dot{display:inline-block;width:5px;height:5px;flex-shrink:0;border-radius:50%;background:var(--accent)}.sidebar-bottom p{color:var(--muted);margin:7px 0 16px}.sidebar-bottom a{display:flex;justify-content:space-between;font-weight:550}.sidebar-footer{padding:18px 22px;border-top:1px solid var(--line);display:flex;align-items:center;gap:9px}.avatar{border-radius:50%;height:28px;width:28px;background:#e0ebe6;display:grid;place-items:center;font-size:8px;color:#658274;font-weight:600}.sidebar-footer strong{font-size:9px;font-weight:550}.sidebar-footer small{display:block;font-size:8px;color:var(--muted);margin-top:4px}main{flex:1;min-width:0;display:flex;flex-direction:column;padding:0 30px;min-height:100dvh}.topbar{height:69px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);flex:0 0 auto}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:10px;color:var(--muted)}.breadcrumb strong{color:var(--text);font-weight:500}.breadcrumb svg{width:14px;height:14px}.top-actions{display:flex;align-items:center;gap:10px}.version-badge{padding:4px 7px;border:1px solid var(--line);border-radius:4px;font-size:7px;letter-spacing:.8px;background:var(--bg);font-weight:650;color:var(--muted)}.heading{padding:30px 0 25px;display:flex;align-items:center;justify-content:space-between;gap:16px}.eyebrow{font-size:8px;letter-spacing:1.3px;color:var(--accent);font-weight:650;display:flex;gap:6px;align-items:center}h1{font-size:29px;letter-spacing:-1px;line-height:1.2;margin:10px 0 8px;font-weight:620}.heading p{margin:0;font-size:11px;color:var(--muted)}.heading-actions{display:flex;gap:8px;margin-top:13px}.work-area{display:flex;gap:19px;min-height:480px;height:calc(100dvh - 287px);flex:1;max-height:1100px}.stage{min-width:0;flex:1;display:flex;flex-direction:column;box-shadow:var(--shadow);border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--bg)}.stage-head{height:43px;min-height:43px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:13px;padding:0 17px}.stage-tab{height:100%;border-bottom:2px solid var(--accent);display:flex;gap:7px;align-items:center;font-size:10px;font-weight:600}.stage-tab svg{width:13px;height:13px}.stage-badge{font-size:7px;border:1px solid var(--line);color:var(--muted);border-radius:3px;padding:3px 5px;letter-spacing:.7px}.stage-spacer{flex:1}.model-label{font-size:8px;color:var(--muted);display:flex;align-items:center;gap:5px}.model-label .dot{width:4px;height:4px}.toolbar{display:flex;align-items:center;padding:12px 14px;gap:9px;min-height:58px;flex-wrap:wrap}.search-box{display:flex;align-items:center;gap:8px;height:31px;border:1px solid var(--line);border-radius:5px;padding:0 9px;max-width:260px;min-width:130px;flex:1;background:var(--bg);color:var(--muted)}.search-box svg{width:14px;height:14px}.search-box input{width:100%;min-width:30px;border:0;background:transparent;color:var(--text);font-size:10px;outline:none}.search-box input::placeholder{color:var(--muted)}kbd{font:8px system-ui;border:1px solid var(--line);border-radius:3px;padding:1px 4px;color:var(--muted);white-space:nowrap}.toolbar-buttons{display:flex;align-items:center;gap:1px}.toolbar-buttons svg{width:14px;height:14px}.separator{height:17px;width:1px;background:var(--line);margin:0 5px}.selection-toggle{display:flex;background:var(--soft);padding:3px;border:1px solid var(--line);border-radius:6px;margin-left:auto}.selection-toggle button{border:0;border-radius:4px;background:none;padding:4px 9px;font-size:9px;color:var(--muted)}.selection-toggle .selected{background:var(--bg);box-shadow:0 1px 3px #18312413;color:var(--text);font-weight:600}.grid-host{flex:1;min-height:150px;display:flex;overflow:hidden}.grid-host>tree-data-grid{flex:1;min-width:0}.grid-host.split>tree-data-grid{width:57%;flex:0 0 57%}.second-view{flex:1;display:flex;flex-direction:column;border-left:1px solid var(--line);overflow:hidden;min-width:0}.second-view[hidden]{display:none}.second-title{height:25px;padding:8px;font-size:7px;letter-spacing:.8px;color:var(--accent);background:var(--tint);flex-shrink:0}.second-view tree-data-grid{flex:1;min-height:0}.grid-status{min-height:35px;background:var(--bg);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-size:9px;color:var(--muted);gap:10px}.grid-status>span:first-child{display:flex;align-items:center;gap:5px}.grid-status strong{color:var(--text);font-weight:550}.status-divider{margin:0 6px;color:var(--line)}.sample-caption{display:flex;align-items:flex-start;gap:7px;padding:12px 14px;background:var(--soft);border-top:1px solid var(--line);color:var(--muted)}.sample-caption svg{width:13px;height:13px;flex-shrink:0;margin-top:1px}.sample-caption p{margin:0;font-size:9px;line-height:1.5}.inspector{width:210px;flex:0 0 210px;border:1px solid var(--line);border-radius:9px;background:var(--bg);overflow:auto;scrollbar-width:thin}.inspector-heading{display:flex;align-items:center;gap:7px;height:44px;padding:0 16px;border-bottom:1px solid var(--line)}.inspector-heading svg{width:14px;height:14px;color:var(--muted)}.inspector-heading strong{font-size:11px;font-weight:600}.inspector-label{font-size:7px;letter-spacing:.7px;color:var(--accent);background:var(--tint);border-radius:3px;padding:3px 5px;margin-left:auto}.inspector section{padding:16px;border-bottom:1px solid var(--line)}h3{font-size:8px;color:var(--muted);font-weight:650;letter-spacing:1px;margin:0 0 13px}.property{display:flex;flex-direction:column;gap:7px;font-size:10px;margin-bottom:12px}.property select{width:100%;height:30px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--text);padding:0 7px;font-size:10px}.switch-row{font-size:10px;display:flex;align-items:center;justify-content:space-between;gap:6px;margin:13px 0}.switch-row:last-child{margin-bottom:0}.switch-row input[role=switch]{appearance:none;position:relative;background:var(--line);width:25px;height:14px;border-radius:20px;cursor:pointer;flex-shrink:0;margin:0;transition:.15s}.switch-row input[role=switch]:before{content:'';position:absolute;width:10px;height:10px;border-radius:50%;background:white;top:2px;left:2px;box-shadow:0 1px 2px #0002;transition:.15s}.switch-row input:checked{background:var(--accent)}.switch-row input:checked:before{left:13px}.section-heading{display:flex;justify-content:space-between;align-items:baseline}.text-button{border:0;background:none;padding:0;color:var(--accent);font-size:9px;font-weight:550;display:inline-flex;align-items:center;gap:5px}.column-option{display:flex;align-items:center;gap:7px;margin:10px 0;font-size:10px}.column-option input{accent-color:var(--accent);width:12px;height:12px;margin:0}.column-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.column-option small{margin-left:auto;font:8px monospace;color:var(--muted)}.metric{display:flex;justify-content:space-between;font-size:9px;margin:10px 0;color:var(--muted)}.metric strong{font-family:monospace;font-weight:500;color:var(--text);font-size:10px}.renderer-note{margin-top:15px;border:1px solid var(--line);border-radius:5px;padding:9px 8px;font-size:9px;color:var(--accent);line-height:1.8;background:var(--soft)}.renderer-note small{color:var(--muted);padding-left:11px;font-size:8px}.renderer-note .dot{width:4px;height:4px;margin-right:4px}.state-actions{display:flex;gap:6px}.state-actions .button{font-size:9px;height:28px;padding:0 7px}.state-actions svg{width:12px;height:12px}.bottom-strip{display:flex;gap:20px;align-items:center;height:58px;flex-shrink:0;color:var(--muted);font-size:9px}.bottom-strip>div:first-child{display:flex;align-items:center;gap:8px}.mini-code{border:1px solid var(--line);border-radius:4px;padding:3px 5px;background:var(--bg);color:var(--accent);font:9px monospace}.bottom-strip code{color:var(--accent);font-size:9px}.bottom-strip .muted{color:var(--muted)}.event-led{width:4px;height:4px;border-radius:50%;background:var(--accent)}#event-count{color:var(--muted);padding-left:3px}.shortcut-hint{margin-left:auto;display:flex;align-items:center;gap:5px;font-size:8px}.scenario-tools{border-bottom:1px solid var(--line);padding:8px 14px;display:flex;align-items:center;gap:7px;background:var(--soft);flex-wrap:wrap}.scenario-tools[hidden]{display:none}.scenario-tools .button{font-size:9px;height:28px}.scenario-tools select,.scenario-tools input{height:28px;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:4px;padding:0 6px;font-size:10px}.scenario-tools input{width:90px}.scenario-tools .tool-label{font-size:9px;color:var(--muted)}.event-panel{margin:0 0 16px;border:1px solid var(--line);border-radius:7px;background:var(--bg);height:155px;overflow:auto;padding:10px 13px}.event-title{font-size:10px;display:flex;justify-content:space-between;margin-bottom:6px}.event-line{display:flex;gap:14px;font:9px/1.8 monospace;color:var(--muted)}.event-line strong{color:var(--accent);font-weight:500}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 20px;border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 35px #12322625;z-index:1000;background:var(--bg);font-size:12px;max-width:80vw}.toast[hidden]{display:none}dialog{width:min(780px,90vw);border:1px solid var(--line);border-radius:12px;padding:26px;background:var(--bg);color:var(--text);box-shadow:0 30px 100px #0003}dialog::backdrop{background:#14363170;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between}h2{font-size:22px;letter-spacing:-.5px;font-weight:600;margin:10px 0}dialog p{font-size:11px;color:var(--muted);line-height:1.7}dialog pre{font:11px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;background:var(--soft);border:1px solid var(--line);border-radius:7px;padding:20px;overflow:auto;max-height:58dvh;color:var(--text)}.dialog-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}tree-data-grid{--tdg-bg:var(--bg);--tdg-text:var(--text);--tdg-line:var(--line);--tdg-accent:var(--accent);--tdg-muted:var(--muted);--tdg-selected:var(--tint);--tdg-hover:var(--soft);--tdg-header:var(--soft);font-size:11px}
[data-theme=dark]{color-scheme:dark;--bg:#182321;--page:#111b19;--side:#15201d;--line:#2b3b35;--text:#d6e3dc;--muted:#8c9f94;--accent:#65c5a6;--tint:#203e32;--soft:#1c2b25;--shadow:0 8px 26px #0002;background:var(--page);color:var(--text)}[data-theme=dark] .avatar{background:#314b3e;color:#a5c5b4}[data-theme=dark] nav button{color:var(--muted)}[data-theme=dark] .button.primary{color:#102b1c}[data-theme=dark] .brand-mark{color:#102b1c}
@media(min-width:1500px){main{padding:0 40px}.sidebar{width:250px;flex-basis:250px}.inspector{width:232px;flex-basis:232px}.heading{padding-top:34px;padding-bottom:30px}.work-area{height:calc(100dvh - 305px)}nav button{height:42px}.grid-host{font-size:12px}}
@media(max-width:1100px){.sidebar{width:205px;flex-basis:205px}.brand{padding-left:18px;font-size:16px}main{padding:0 18px}.inspector{width:184px;flex-basis:184px}.inspector section{padding:13px}.work-area{gap:12px}.heading-actions .button{font-size:9px}.shortcut-hint{display:none}.toolbar{gap:5px}.toolbar-buttons .separator{margin:0 2px}.model-label{display:none}}
@media(max-width:850px){.sidebar{width:64px;flex-basis:64px}.brand{padding:24px 13px}.brand>span:last-child,.workspace,.nav-label,.sidebar-bottom,.sidebar-footer,nav button>span,.nav-new{display:none}nav{padding:0 8px}nav button{padding:0;justify-content:center}nav button svg{width:18px;height:18px}.nav-divider{margin:15px 7px}.inspector{display:none}.heading{padding-top:23px}.heading-actions{gap:4px}.heading-actions button{padding:0 7px}.work-area{height:calc(100dvh - 270px)}.breadcrumb{font-size:9px}.top-actions{gap:1px}}
@media(max-width:550px){main{padding:0 10px}.topbar{height:50px}.heading{align-items:flex-start}.heading-actions #reset{display:none}.heading h1{font-size:23px}.heading p{font-size:10px;max-width:220px;line-height:1.6}.version-badge{display:none}.top-actions .button{font-size:0;gap:0;padding:0 7px}.stage-badge{display:none}.stage-head{padding:0 10px}.toolbar{padding:8px;flex-wrap:wrap}.search-box{max-width:none}.selection-toggle{margin-left:0}.toolbar-buttons{order:3}.work-area{min-height:400px}.bottom-strip{gap:9px}.bottom-strip .muted{display:none}.grid-host.split{flex-direction:column}.grid-host.split>tree-data-grid{width:100%;height:50%;flex-basis:50%}}
/* Definite flex viewport: prevent a percentage-height custom element from enlarging the page. */
.shell{height:100dvh;min-height:600px}main{height:100%;min-height:0}.heading{flex-shrink:0}.work-area{height:auto;flex:1;min-height:260px;max-height:none}.stage,.grid-host{min-height:0}.event-panel{flex-shrink:0}.grid-host>tree-data-grid{height:auto;align-self:stretch}
@media(max-width:550px){.shell{min-height:680px}.grid-host.split>tree-data-grid{height:50%}}
tree-data-grid{--tdg-fg:var(--text);--tdg-selection:var(--tint);--tdg-header-fg:var(--muted)}
