:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#121212;--surface-1:#191919;--surface-2:#212124;--surface-3:#2a2a2e;--surface-4:#34343a;--border:#ffffff1f;--border-strong:#fff3;--text-1:#ffffffed;--text-2:#ffffffbd;--text-3:#ffffff8a;--accent:#6ea8ff;--accent-strong:#5b95f0;--accent-dim:#6ea8ff24;--accent-contrast:#0a1220;--warn:#ffb454;--warn-text:#ffcf8f;--danger:#ff6b6b;--success:#57d38c;--radius:9px;--radius-sm:6px;--shadow-lg:0 18px 48px #0000008c;--shadow-md:0 8px 24px #0000006b;--font:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--mono:ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, "SF Mono", monospace;--panel-w:360px;--dock-w:312px;--rail-w:56px;--topbar-h:52px;--actionbar-h:60px;--content-max:1680px;--canvas-max:100%;--tap:48px;--safe-b:env(safe-area-inset-bottom,0px);--dur-fast:.12s;--dur:.2s;--ease:cubic-bezier(.4, 0, .2, 1)}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (prefers-color-scheme:light){:root{--bg:#f4f5f7;--surface-1:#fff;--surface-2:#f2f3f5;--surface-3:#e8eaee;--surface-4:#dcdfe4;--border:#0b132114;--border-strong:#0b132126;--text-1:#131720;--text-2:#414957;--text-3:#5c6470;--accent:#2f6fe0;--accent-strong:#245ec4;--accent-dim:#2f6fe01a;--accent-contrast:#fff;--warn:#b56a00;--warn-text:#8a5000;--danger:#c62f2f;--success:#1f8f52;--shadow-lg:0 18px 48px #0b13212e;--shadow-md:0 8px 24px #0b132124}}*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:var(--font);color:var(--text-1);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-size:14px;line-height:1.45;overflow:hidden}#app{height:100dvh;height:var(--app-vh,100dvh)}button{font-family:inherit}img,svg,canvas{max-width:100%}:where(a){color:var(--accent)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}::-webkit-scrollbar{width:11px;height:11px}::-webkit-scrollbar-thumb{background:var(--surface-4);background-clip:padding-box;border:3px solid #0000;border-radius:8px}::-webkit-scrollbar-thumb:hover{background:var(--border-strong) padding-box}.app-shell{height:100dvh;height:var(--app-vh,100dvh);grid-template-rows:auto 1fr auto;display:grid;overflow:hidden}.topbar{height:var(--topbar-h);padding:0 16px;padding-left:max(16px, env(safe-area-inset-left,0px));padding-right:max(16px, env(safe-area-inset-right,0px));background:var(--surface-1);border-bottom:1px solid var(--border);z-index:20;align-items:center;gap:16px;display:flex}.brand{letter-spacing:.01em;white-space:nowrap;align-items:center;gap:10px;font-weight:650;display:flex}.brand img{width:26px;height:26px;display:block}.version-chip{font-family:var(--mono);color:var(--text-2);background:var(--surface-3);border:1px solid var(--border);cursor:pointer;border-radius:20px;padding:2px 9px;font-size:11px}.version-chip:hover{color:var(--text-1);border-color:var(--border-strong)}.topbar-file{color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;max-width:34ch;font-size:13px;overflow:hidden}.topbar-file strong{color:var(--text-1);font-weight:550}.topbar-spacer{flex:1}.zoom-readout{font-family:var(--mono);color:var(--text-2);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;-webkit-user-select:none;user-select:none;padding:4px 9px;font-size:12px}.zoom-readout:hover{color:var(--text-1);border-color:var(--border-strong)}.trust-line{color:var(--text-2);white-space:nowrap;align-items:center;gap:6px;font-size:12px;display:flex}.trust-line svg{width:14px;height:14px;fill:var(--success);flex:none}.privacy-line{background:var(--surface-1);border-bottom:1px solid var(--border);color:var(--text-2);text-align:center;margin:0;padding:6px 16px;font-size:12.5px}.app-shell~.privacy-line{display:none}body:has(.app-shell)>.privacy-line{display:none}.topbar .panel-toggle,.topbar .menu-toggle{display:none}.workspace{min-height:0;display:flex;position:relative;overflow:hidden}.canvas-region{background:radial-gradient(circle at 30% 20%, var(--accent-dim), transparent 60%), var(--bg);flex:1;min-width:0;position:relative;overflow:hidden}.canvas-host{position:absolute;inset:0}.canvas-host canvas{touch-action:none;width:100%;height:100%;display:block}.canvas-overlay{z-index:15;pointer-events:none;gap:6px;display:flex;position:absolute}.canvas-overlay>*{pointer-events:auto}.canvas-overlay.bottom-left{left:12px;bottom:calc(12px + var(--safe-b))}.canvas-overlay.bottom-right{right:12px;bottom:calc(12px + var(--safe-b))}.canvas-overlay.top-right{top:12px;right:12px}.canvas-btn{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-2);min-width:40px;height:40px;color:var(--text-1);box-shadow:var(--shadow-md);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background var(--dur-fast), border-color var(--dur-fast);justify-content:center;align-items:center;padding:0 10px;font-size:13px;font-weight:550;display:inline-flex}.canvas-btn:hover{background:var(--surface-3);border-color:var(--border-strong)}.canvas-btn svg{fill:currentColor;width:18px;height:18px}.canvas-btn.active{color:var(--accent);border-color:var(--accent)}.compare-divider{background:var(--accent);z-index:14;cursor:ew-resize;width:2px;position:absolute;top:0;bottom:0}.compare-divider:before{content:"";background:var(--accent);width:34px;height:34px;box-shadow:var(--shadow-md);border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.empty-state{text-align:center;pointer-events:none;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:24px;display:flex;position:absolute;inset:0}.empty-state.hidden{display:none}.empty-state .dropzone{pointer-events:auto;border:1.5px dashed var(--border-strong);background:color-mix(in srgb, var(--text-1) 2%, transparent);cursor:pointer;max-width:460px;transition:border-color var(--dur-fast), background var(--dur-fast);border-radius:16px;flex-direction:column;align-items:center;gap:14px;padding:40px 46px;display:flex}.empty-state .dropzone:hover,.empty-state .dropzone:focus-visible{border-color:var(--accent);background:var(--accent-dim)}.empty-state .glyph{opacity:.9;width:56px;height:56px}.empty-state h2{margin:0;font-size:18px;font-weight:600}.empty-state p{max-width:40ch;color:var(--text-2);margin:0;font-size:13px}.empty-state .formats{color:var(--text-3);font-family:var(--mono);font-size:12px}.empty-state .sample-row,.empty-state .empty-actions{pointer-events:auto;flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.drop-overlay{z-index:60;background:color-mix(in srgb, var(--bg) 78%, transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);pointer-events:none;justify-content:center;align-items:center;display:none;position:fixed;inset:0}.drop-overlay.active{display:flex}.drop-overlay .ring{border:2px dashed var(--accent);background:var(--accent-dim);color:var(--text-1);border-radius:22px;padding:60px 84px;font-size:20px;font-weight:600}.panel{min-height:0;width:min(var(--panel-w), 100vw);background:var(--surface-1);border-left:1px solid var(--border);flex-direction:column;flex:none;display:flex}.tabs{border-bottom:1px solid var(--border);gap:4px;padding:8px 8px 0;display:flex}.tab{min-height:40px;color:var(--text-2);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;border-radius:6px 6px 0 0;flex:1;padding:9px 6px 11px;font-size:13px;font-weight:550}.tab:hover{color:var(--text-1);background:var(--surface-2)}.tab.active,.tab[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent)}.tab-body{-webkit-overflow-scrolling:touch;flex:1;padding:4px 0 40px;overflow:hidden auto}.tab-panel{display:none}.tab-panel.active{display:block}.section{border-bottom:1px solid var(--border)}.section>summary{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;min-height:44px;padding:12px 16px;font-size:13px;font-weight:600;list-style:none;display:flex}.section>summary::-webkit-details-marker{display:none}.section>summary .chevron{color:var(--text-3);transition:transform .15s var(--ease);margin-left:auto;font-size:11px}.section[open]>summary .chevron{transform:rotate(90deg)}.section>summary .count-badge{font-family:var(--mono);color:var(--text-2);background:var(--surface-3);border-radius:10px;padding:0 7px;font-size:11px}.section-content{flex-direction:column;gap:12px;padding:4px 16px 16px;display:flex}.section-hint{color:var(--text-3);margin:-2px 0 0;font-size:12px}.field{flex-direction:column;gap:5px;display:flex}.field-row{align-items:center;gap:10px;display:flex}.field-row>.field{flex:1;min-width:0}.field>label,.control-label{color:var(--text-2);font-size:12px;font-weight:500}.field .unit{color:var(--text-3);font-weight:400}input[type=text],input[type=number],select,textarea{width:100%;color:var(--text-1);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 9px;font-family:inherit;font-size:13px}input[type=number]{font-family:var(--mono)}textarea{resize:vertical;min-height:54px}input:focus,select:focus,textarea:focus,button:focus-visible,.tab:focus-visible,.dropzone:focus-visible{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}input:disabled,select:disabled,textarea:disabled{opacity:.5;cursor:not-allowed}input.invalid,textarea.invalid{border-color:var(--danger)}.field-error{color:var(--danger);font-size:12px}.slider-field .slider-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.slider-field .readout{font-family:var(--mono);color:var(--text-1);font-size:12px}.slider-row{align-items:center;gap:10px;display:flex}input[type=range]{appearance:none;background:var(--surface-4);cursor:pointer;border-radius:4px;flex:1;height:4px}input[type=range]::-webkit-slider-thumb{appearance:none;background:var(--accent);border:2px solid var(--surface-1);cursor:pointer;border-radius:50%;width:18px;height:18px}input[type=range]::-moz-range-thumb{background:var(--accent);border:2px solid var(--surface-1);cursor:pointer;border-radius:50%;width:18px;height:18px}.slider-field input[type=number]{flex:none;width:74px}.num-stepper{align-items:stretch;display:flex}.field>.num-stepper{width:100%}.num-stepper input{text-align:center;border-left:none;border-right:none;border-radius:0;flex:1;min-width:0}.slider-field .num-stepper{flex:none}.slider-field .num-stepper input{flex:none;width:52px}.stepper-btn{width:30px;color:var(--text-1);background:var(--surface-3);border:1px solid var(--border);cursor:pointer;-webkit-user-select:none;user-select:none;flex:none;padding:0;font-family:inherit;font-size:16px;font-weight:600;line-height:1}.stepper-btn:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm)}.stepper-btn:last-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0}.stepper-btn:hover{background:var(--surface-4)}.stepper-btn:active{transform:scale(.94)}.num-stepper input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}.num-stepper input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.num-stepper input[type=number]{-moz-appearance:textfield}.check{color:var(--text-1);cursor:pointer;align-items:flex-start;gap:9px;min-height:28px;font-size:13px;display:flex}.check input{width:16px;height:16px;accent-color:var(--accent);flex:none;margin-top:2px}.check .check-sub{color:var(--text-3);font-size:12px;display:block}.radio-group{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);gap:6px;padding:3px;display:flex}.radio-group.stack{flex-direction:column}.radio-group label{text-align:center;color:var(--text-2);cursor:pointer;border-radius:5px;flex:1;padding:8px;font-size:12.5px}.radio-group.stack label{text-align:left}.radio-group input{opacity:0;pointer-events:none;position:absolute}.radio-group label:hover{color:var(--text-1)}.radio-group label.checked,.radio-group input:checked+label{background:var(--accent-dim);color:var(--accent);font-weight:550}.radio-group input:focus-visible+label,.radio-group label:focus-within{outline:2px solid var(--accent);outline-offset:1px}.btn{min-height:38px;color:var(--text-1);background:var(--surface-3);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:background var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast);justify-content:center;align-items:center;gap:7px;padding:9px 13px;font-size:13px;font-weight:550;display:inline-flex}.btn:hover:not(:disabled){background:var(--surface-4);border-color:var(--border-strong)}.btn:disabled{opacity:.42;cursor:not-allowed}.btn.primary{background:var(--accent);color:var(--accent-contrast);border-color:#0000;font-weight:650}.btn.primary:hover:not(:disabled){background:var(--accent-strong)}.btn.ghost{background:0 0}.btn.full{width:100%}.btn.sm{min-height:32px;padding:6px 9px;font-size:12px}.btn svg{fill:currentColor;width:16px;height:16px}.btn-row{flex-wrap:wrap;gap:8px;display:flex}.btn-row .btn{flex:1;min-width:120px}.layer-list{flex-direction:column;gap:2px;max-height:320px;display:flex;overflow-y:auto}.layer-row{border-radius:var(--radius-sm);border:1px solid #0000;overflow:hidden}.layer-row.selected{border-color:var(--border);background:var(--surface-2)}.layer-row.active{border-color:var(--accent);background:var(--accent-dim,var(--surface-2))}.layer-summary{font-family:var(--mono);color:var(--text-3);white-space:nowrap;margin-left:auto;font-size:10.5px}.layer-meta{flex:none}.layer-param-panel{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);flex-direction:column;gap:10px;margin-top:4px;padding:10px;display:flex}.layer-param-head{align-items:center;gap:8px;display:flex}.layer-param-title{color:var(--text-1);font-size:12.5px;font-weight:600}.layer-head{cursor:pointer;align-items:center;gap:9px;min-height:40px;padding:7px 9px;display:flex}.layer-head input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);flex:none}.swatch{border:1px solid var(--border-strong);border-radius:4px;flex:none;width:16px;height:16px}.swatch.lg{width:20px;height:20px}.layer-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:13px;overflow:hidden}.layer-meta{font-family:var(--mono);color:var(--text-3);font-size:11px}.layer-expand{color:var(--text-3);cursor:pointer;background:0 0;border:none;padding:4px 6px;font-size:11px}.layer-expand:hover{color:var(--text-1)}.layer-params{border-top:1px solid var(--border);background:var(--surface-2);flex-direction:column;gap:9px;padding:6px 10px 12px;display:none}.layer-row.expanded .layer-params,.palette-row.expanded .layer-params{animation:params-reveal .16s var(--ease,ease);display:flex}@keyframes params-reveal{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.layer-row.expanded .layer-params,.palette-row.expanded .layer-params{animation:none}}.cutparams-wrap{flex-direction:column;gap:10px;display:flex}.cutparams{grid-template-columns:1fr 1fr;gap:8px 10px;display:grid}.cutparams .field{gap:3px}.scan-row{grid-template-columns:1fr 92px;align-items:center;gap:10px;display:grid}.scan-row>.field{min-width:0}.scan-preview{flex-direction:column;align-items:center;gap:4px;display:flex}.scan-preview-cap{text-align:center;white-space:normal}.scan-preview-svg{width:60px;height:60px}.scan-preview-svg svg{width:100%;height:100%;display:block}.sap-card{fill:var(--surface-3);stroke:var(--border);stroke-width:1px}.sap-line{stroke:var(--accent);stroke-width:2.4px;stroke-linecap:round}.sap-turn{stroke:var(--accent);stroke-width:2px;stroke-linecap:round;opacity:.5}.sap-return{stroke:var(--text-3);stroke-width:1.4px;stroke-linecap:round;stroke-dasharray:1.5 3;opacity:.75}.sap-arrow{fill:var(--accent)}.scan-preview-cap{font-family:var(--mono);color:var(--text-2);letter-spacing:.2px;white-space:nowrap;font-size:9.5px}.cutparams-toggles{border-top:1px solid var(--border);flex-direction:column;gap:7px;padding-top:9px;display:flex}.cutparams-toggles .check{min-height:24px;font-size:12.5px}.palette-list{flex-direction:column;gap:2px;max-height:340px;display:flex;overflow-y:auto}.palette-row{border-radius:var(--radius-sm);border:1px solid #0000}.palette-head{align-items:center;gap:9px;min-height:36px;padding:6px 9px;display:flex}.palette-code{font-family:var(--mono);color:var(--text-2);min-width:30px;font-size:11px}.palette-pct{font-family:var(--mono);color:var(--text-3);margin-left:auto;font-size:11px}.notice{color:var(--text-2);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:9px 11px;font-size:12.5px}.notice.warn{color:var(--warn-text);background:color-mix(in srgb, var(--warn) 12%, transparent);border-color:color-mix(in srgb, var(--warn) 40%, transparent)}.notice.accent{color:var(--accent);background:var(--accent-dim);border-color:color-mix(in srgb, var(--accent) 40%, transparent)}.disclaimer{color:var(--text-3);font-size:12px;font-style:italic}.how-to{color:var(--text-2);font-size:12.5px;line-height:1.55}.how-to ol{margin:6px 0 0;padding-left:18px}.how-to li{margin-bottom:4px}.status-bar{min-height:22px;padding:6px 16px;padding-bottom:calc(6px + var(--safe-b));color:var(--text-2);background:var(--surface-1);border-top:1px solid var(--border);font-size:12px}.overlay-host{z-index:80;pointer-events:none;position:fixed;inset:0}.toast-host{right:16px;bottom:calc(16px + var(--safe-b));z-index:90;pointer-events:none;flex-direction:column;gap:8px;display:flex;position:fixed}.preset-chips{scrollbar-width:thin;-webkit-overflow-scrolling:touch;border-bottom:1px solid var(--border);gap:8px;padding:10px 12px;display:flex;overflow:auto hidden}.preset-chip{min-height:36px;color:var(--text-1);background:var(--surface-3);border:1px solid var(--border);cursor:pointer;white-space:nowrap;border-radius:20px;flex:none;align-items:center;gap:6px;padding:7px 13px;font-size:12.5px;font-weight:550;display:inline-flex}.preset-chip:hover{border-color:var(--border-strong)}.preset-chip.active,.preset-chip[aria-pressed=true]{color:var(--accent);background:var(--accent-dim);border-color:var(--accent)}.unit-toggle{background:var(--surface-3);border:1px solid var(--border);border-radius:8px;gap:2px;padding:2px;display:inline-flex}.unit-btn{min-width:34px;min-height:28px;color:var(--text-2);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:3px 9px;font-size:12px;font-weight:550}.unit-btn:hover{color:var(--text-1)}.unit-btn.active,.unit-btn[aria-pressed=true]{color:var(--accent);background:var(--accent-dim)}.zoom-toolbar{background:var(--surface-1);border-bottom:1px solid var(--border);align-items:center;gap:6px;max-width:100%;padding:6px 10px;display:flex;overflow-x:auto}.zoom-toolbar .canvas-btn{box-shadow:none}.tool-rail{width:var(--rail-w);background:var(--surface-1);border-right:1px solid var(--border);flex-direction:column;flex:none;align-items:center;gap:6px;padding:10px 0;display:flex}.tool-rail button{width:40px;height:40px;color:var(--text-2);border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:1px solid #0000;justify-content:center;align-items:center;display:inline-flex}.tool-rail button:hover{color:var(--text-1);background:var(--surface-2)}.tool-rail button.active,.tool-rail button[aria-selected=true]{color:var(--accent);background:var(--accent-dim)}.tool-rail button svg{fill:currentColor;width:20px;height:20px}.modal-backdrop{z-index:100;background:color-mix(in srgb, var(--bg) 72%, #000);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal-backdrop[hidden]{display:none}.modal{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);width:min(560px,100%);max-height:min(80vh,720px);box-shadow:var(--shadow-lg);flex-direction:column;display:flex;overflow:hidden}.modal-head{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:16px 18px;display:flex}.modal-head h2{margin:0;font-size:16px;font-weight:650}.modal-head .modal-close{width:32px;height:32px;color:var(--text-2);border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;margin-left:auto;display:inline-flex}.modal-head .modal-close:hover{color:var(--text-1);background:var(--surface-3)}.modal-body{color:var(--text-2);padding:18px;font-size:13px;line-height:1.6;overflow-y:auto}.modal-body h3{color:var(--text-1);margin:18px 0 6px;font-size:13px}.modal-body kbd{font-family:var(--mono);color:var(--text-1);background:var(--surface-3);border:1px solid var(--border-strong);border-radius:4px;padding:1px 6px;font-size:11px}.shortcut-row{justify-content:space-between;gap:12px;padding:5px 0;display:flex}.onboarding{z-index:70;background:var(--surface-2);border:1px solid var(--border-strong);border-radius:var(--radius);max-width:320px;box-shadow:var(--shadow-lg);color:var(--text-1);padding:14px 16px;font-size:13px;position:absolute}.onboarding[hidden],.action-bar{display:none}.panel-sheet{display:contents}.sheet-handle{display:none}@media (width>=1080px){.workspace{justify-content:flex-start}.canvas-region{flex:auto}.panel{width:var(--panel-w);resize:horizontal;max-width:380px;overflow:auto hidden}.topbar .panel-toggle,.topbar .menu-toggle{display:none}.trust-line{display:flex}}@media (width<=1079.98px){.trust-line{display:none}.panel{width:min(var(--dock-w), 100vw)}.topbar .panel-toggle{display:inline-flex}.panel.dock,.dock{box-shadow:none;border-left:1px solid var(--border);transition:width var(--dur) var(--ease), margin var(--dur) var(--ease);position:relative;transform:none}.panel.dock.collapsed,.dock.collapsed{width:0;margin-right:calc(-1 * min(var(--dock-w), 100vw));overflow:hidden}.zoom-toolbar{display:flex}}@media (width<=767.98px){:root{--panel-w:100vw}.topbar{gap:10px;padding:0 12px}.topbar-file{max-width:18ch;font-size:12px}.zoom-readout{display:none}.workspace{display:block;position:relative}.canvas-region{inset:0;bottom:calc(var(--actionbar-h) + var(--safe-b));position:absolute}.panel-sheet,.panel.sheet{left:0;right:0;bottom:calc(var(--actionbar-h) + var(--safe-b));z-index:45;background:var(--surface-1);border-top:1px solid var(--border);width:100%;max-height:92vh;transition:height var(--dur) var(--ease), transform var(--dur) var(--ease);touch-action:none;border-left:none;border-radius:16px 16px 0 0;flex-direction:column;height:30vh;display:flex;position:fixed;box-shadow:0 -12px 40px #00000070}.panel-sheet[data-detent=peek],.panel.sheet[data-detent=peek]{height:128px}.panel-sheet[data-detent=half],.panel.sheet[data-detent=half]{height:52vh}.panel-sheet[data-detent=full],.panel.sheet[data-detent=full]{height:92vh}.sheet-handle{cursor:grab;touch-action:none;flex:none;justify-content:center;align-items:center;height:26px;display:flex}.sheet-handle:before{content:"";background:var(--border-strong);border-radius:4px;width:38px;height:4px}.panel-sheet .tab-body,.panel.sheet .tab-body{flex:1;min-height:0}.panel-sheet .preset-chips,.panel.sheet .preset-chips{order:-1}.action-bar{z-index:50;height:calc(var(--actionbar-h) + var(--safe-b));padding:6px 8px calc(6px + var(--safe-b));background:var(--surface-1);border-top:1px solid var(--border);align-items:stretch;gap:4px;display:flex;position:fixed;bottom:0;left:0;right:0}.action-bar button{min-width:48px;min-height:48px;color:var(--text-2);border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:none;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;font-size:10.5px;font-weight:550;display:flex}.action-bar button svg{fill:currentColor;width:20px;height:20px}.action-bar button:active,.action-bar button.active{color:var(--accent);background:var(--accent-dim)}.action-bar .primary{color:var(--accent)}.panel.sheet .cutparams{grid-template-columns:1fr 1fr}.status-bar{display:none}.modal{border:none;border-radius:0;width:100%;height:100%;max-height:100%}.modal-backdrop{padding:0}}@media (width<=767.98px) and (orientation:landscape){.workspace{display:flex}.canvas-region{flex:1;position:relative;inset:auto}.panel-sheet,.panel.sheet,.action-bar{display:none}.tool-rail{display:flex}.panel.drawer,.panel:not(.sheet){z-index:45;border-left:1px solid var(--border);width:min(340px,82vw);box-shadow:var(--shadow-lg);transition:transform var(--dur) var(--ease);display:flex;position:absolute;top:0;bottom:0;right:0;transform:translate(100%)}.panel.open{transform:translate(0)}}@media (width<=479.98px){.topbar{gap:8px;padding:0 10px}.brand{font-size:14px}.brand img{width:22px;height:22px}.version-chip{display:none}.canvas-region{bottom:calc(var(--actionbar-h) + var(--safe-b))}.panel-sheet[data-detent=peek],.panel.sheet[data-detent=peek]{height:136px}.preset-chips{padding:8px 10px}.canvas-overlay.bottom-right{bottom:calc(136px + 12px + var(--safe-b))}}[inert]{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none}[inert],[inert] *{-webkit-user-modify:read-only}[hidden]{display:none!important}.panel[aria-hidden=true],.panel-sheet[aria-hidden=true]{pointer-events:none}@media (prefers-reduced-motion:reduce){:root{--dur-fast:1ms;--dur:1ms}*,:before,:after{scroll-behavior:auto!important;transition-duration:1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important}}
