:root{--chrome: #14263a;--editor-width: 480px;--editor-height: min(224px, 40vh);--accent: #0c8f8e}*{box-sizing:border-box}html,body{height:100%}body{margin:0;overflow:hidden;background:var(--chrome);color:#123;font-family:Inter,Segoe UI,system-ui,sans-serif}button,a{-webkit-tap-highlight-color:transparent}a{text-decoration:none}.app-shell{display:grid;height:100vh;grid-template-rows:36px minmax(0,1fr) 22px}.toolbar{display:flex;align-items:center;gap:6px;min-width:0;padding:0 6px 0 10px;background:var(--chrome);color:#f7fbff}.product-name{font-size:12px;font-weight:700;line-height:15px}.saved-state{display:inline-flex;align-items:center;gap:4px;color:#ffb4a8;font-size:10px;white-space:nowrap}.saved-state:before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:#1eae9d}.saved-state.is-failed:before{background:#e5534b}.build-label{min-width:0;overflow:hidden;color:#afc0d1;font:500 10px ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap;text-overflow:ellipsis}.build-label[href]:hover{color:#f7fbff;text-decoration:underline}.view-tabs{display:flex;align-items:center;gap:6px;margin-left:auto}.tool-chip{height:24px;border:0;border-radius:4px;padding:0 8px;background:none;color:#afc0d1;font:500 11px Inter,Segoe UI,system-ui,sans-serif;cursor:pointer}.tool-chip:hover{color:#f7fbff}.tool-chip.is-active{background:var(--accent);color:#f7fbff}.overflow-menu{position:fixed;inset:36px 6px auto auto;width:250px;max-height:calc(100vh - 64px);margin:0;overflow:auto;border:0;border-radius:8px;padding:4px 0;background:#fff;box-shadow:0 8px 24px #0b172647}.menu-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:28px;border:0;padding:0 14px;background:none;color:#123;font:400 12px Inter,Segoe UI,system-ui,sans-serif;text-align:left;white-space:nowrap;cursor:pointer}.menu-row:hover{background:#f1f5f8}.menu-hint{color:#5d7183;font-size:11px}.workspace,.workspace.mode-svg,.workspace.mode-dom{display:grid;min-height:0;grid-template-columns:minmax(280px,var(--editor-width)) 6px minmax(0,1fr)}.panel{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#fff}.panel-body{flex:1;min-height:0}.editor-body{background:#1e2229}.CodeMirror.cm-s-material-darker{height:100%;font:400 12px/20px SFMono-Regular,Menlo,Consolas,monospace;background:#1e2229}.CodeMirror-lines{padding:8px 0}.CodeMirror-gutters{background:#1e2229;border-right:0}.CodeMirror-linenumber{color:#798a96;padding-left:8px}.workspace-resizer{background:var(--chrome);cursor:col-resize;touch-action:none}.workspace-resizer:hover,.workspace.is-resizing .workspace-resizer{background:var(--accent)}.preview-panel{container-type:inline-size}.preview-views{flex:1;min-height:0;display:flex;gap:6px;background:var(--chrome)}.preview-view{min-width:0;min-height:0;flex:1;overflow:auto;scrollbar-gutter:stable;background:#fff}.workspace.mode-svg .html-panel,.workspace.mode-dom .svg-panel{display:none}.preview-stage{width:-moz-max-content;width:max-content;min-width:100%;padding:8px;background:#fff}.preview-stage svg{display:block}.preview-stage pre{margin:0}.fit-box{margin:0 auto}.fit-content{width:-moz-max-content;width:max-content;transform-origin:0 0}#svg-container svg{box-shadow:none}.svg-error{display:grid;place-items:center;min-height:220px;padding:20px;color:#991b1b;text-align:center}.switch-track{position:relative;width:28px;height:15px;flex:none;border-radius:9px;background:#a9b6c2;transition:background .15s}.switch-track:after{content:"";position:absolute;top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:#fff;transition:transform .15s}.capability-switch.is-active .switch-track{background:var(--accent)}.capability-switch.is-active .switch-track:after{transform:translate(13px)}.diagnostics-footer{display:flex;align-items:center;gap:4px;min-width:0;padding:0 10px;color:#b9cad9;background:var(--chrome);font-size:10px}.render-indicator{white-space:nowrap}.stats-text{overflow:hidden;color:#b9cad9;font:inherit;white-space:nowrap;text-overflow:ellipsis}.zoom-toggle{flex:none;margin-left:auto;border:0;padding:0;background:transparent;color:#d5e4f0;font:inherit;cursor:pointer;white-space:nowrap}.zoom-toggle:hover{color:#fff}@container (max-width: 690px){.preview-views{flex-direction:column}}@media (max-width: 1024px){.workspace,.workspace.mode-svg,.workspace.mode-dom{grid-template-columns:minmax(0,1fr);grid-template-rows:var(--editor-height) 6px minmax(0,1fr)}.workspace-resizer{cursor:row-resize}}
