:root{color-scheme:dark;--bg:#10161c;--panel:#151c23;--line:#2a333c;--text:#e8e9e7;--muted:#929da7;--accent:#e9b477;--green:#a0c5ad;--radius:8px;font-family:'Segoe UI',Inter,system-ui,sans-serif;font-synthesis:none;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit;background:none;border:0}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:hover:not(:disabled){filter:brightness(1.12)}svg{display:block}button svg,.check-title svg,.led-note svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icons{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.app-header{height:86px;padding:0 26px;display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line);background:#131a21}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--text);font-size:19px;letter-spacing:3px;font-weight:650;min-width:240px}.brand-mark{width:34px;height:42px;color:var(--accent)}.brand-sub{display:block;font-size:10px;letter-spacing:3px;color:var(--muted);margin-top:2px;font-weight:500}.document{display:flex;flex-direction:column;gap:5px}.document-name{font-size:14px;font-weight:550}.save-status{font-size:12px;color:var(--muted)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.quiet-btn,.primary-btn,.icon-btn,.stage-button{display:inline-flex;gap:8px;align-items:center;justify-content:center;font-size:14px;font-weight:550;border-radius:6px;white-space:nowrap}.quiet-btn{padding:9px 10px;color:#c5cbd0}.icon-btn{width:34px;height:34px;color:var(--muted)}.icon-btn:hover,.quiet-btn:hover{background:#ffffff08}.primary-btn{background:var(--accent);color:#21242a;padding:12px 17px}.chevron{margin-left:6px;font-size:18px;line-height:12px}.header-divider{width:1px;background:var(--line);height:28px;margin:0 7px}.export-wrap{position:relative}.export-menu{position:absolute;right:0;top:54px;z-index:10;width:306px;background:#202a33;box-shadow:0 16px 40px #0008;border:1px solid #49515a;border-radius:9px;padding:7px}.export-menu button{width:100%;display:flex;flex-direction:column;text-align:left;gap:4px;padding:14px 12px;border-radius:5px}.export-menu button:hover{background:#ffffff09}.export-menu strong{font-size:14px}.export-menu span,.export-menu p{font-size:12px;color:var(--muted)}.export-menu p{line-height:1.65;padding:10px 12px;border-top:1px solid var(--line);margin:0}.workspace{display:grid;grid-template-columns:272px minmax(360px,1fr) 336px;min-height:calc(100dvh - 128px);max-width:1900px;margin:0 auto}.settings-panel,.profile-panel{background:var(--panel)}.settings-panel{border-right:1px solid var(--line);padding:24px 20px 14px}.panel-intro .eyebrow{color:var(--accent)}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:600;color:var(--muted)}h1{font-size:28px;line-height:1.15;font-weight:450;letter-spacing:-.9px;margin:11px 0}p{margin:0}.panel-intro p{font-size:12px;color:var(--muted);margin-top:10px}.presets-section{margin-top:24px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:8px}.section-title h2,.control-section h2,.section-title h3{font-size:14px;font-weight:550;margin:0}.section-title span{font-size:10px;color:var(--muted)}.preset-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.preset-card{padding:9px 3px 8px;border:1px solid var(--line);border-radius:6px;background:#10171d;color:#a4acb3;transition:background .15s}.preset-card.selected{border-color:#c79965;background:#e9b4770b;color:var(--accent)}.preset-card svg{width:36px;height:51px;margin:0 auto 7px;overflow:visible}.preset-card span{font-size:11px;display:block}.settings-tabs,.profile-tabs{display:flex;border-bottom:1px solid var(--line);margin-top:24px;gap:18px}.settings-tabs button,.profile-tabs button{font-size:12px;padding:0 0 12px;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}.settings-tabs button[aria-selected=true],.profile-tabs button[aria-selected=true]{border-color:var(--accent);color:var(--text)}.control-section{padding:20px 0 0}.control-section h2{margin-bottom:15px}.param{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px 6px;margin-bottom:17px}.param label{font-size:13px;color:#bbc3c9}.value{display:flex;align-items:center;gap:4px;border:1px solid #35404a;border-radius:4px;background:#10171c;padding:3px 6px;height:28px}.value input{width:43px;border:0;background:transparent;text-align:right;color:var(--text);font-size:12px;padding:0;appearance:textfield}.value span{font-size:10px;color:var(--muted);min-width:17px}.value input::-webkit-inner-spin-button{display:none}input[type=range]{grid-column:1/-1;appearance:none;background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--pct,50%),#35414b var(--pct,50%),#35414b 100%);height:3px;width:100%;margin:0;cursor:pointer;border-radius:5px}input[type=range]::-webkit-slider-thumb{appearance:none;width:10px;height:10px;background:var(--accent);border:2px solid #e9b477;border-radius:100%;box-shadow:0 0 0 4px #e9b4770d}input[type=range]::-moz-range-thumb{width:8px;height:8px;border:0;border-radius:50%;background:var(--accent)}.top-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.top-options button{display:flex;flex-direction:column;align-items:center;border:1px solid var(--line);border-radius:6px;padding:10px 4px 8px;font-size:12px;color:var(--muted)}.top-options button[aria-pressed=true]{border-color:#c79965;color:var(--accent);background:#e9b47709}.top-options svg{width:33px;height:25px;stroke-width:1.2;margin-bottom:7px}.top-param{margin-top:18px}.field-help{font-size:11px;line-height:1.65;color:var(--muted);margin:-3px 0 18px}.led-note{border-top:1px solid var(--line);margin-top:25px;padding-top:16px;display:flex;gap:9px;color:var(--muted);align-items:center}.led-note svg{color:var(--accent);width:17px}.led-note span{font-size:10px;line-height:1.65}.stage-panel{min-width:0;display:flex;flex-direction:column;background:#111920}.stage-toolbar{height:65px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff05}.view-tabs{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:7px;background:#10161c}.view-tabs button{display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:4px;font-size:12px;color:var(--muted)}.view-tabs button svg{width:15px;height:15px}.view-tabs button[aria-selected=true]{background:#2b3540;color:#eceae5;box-shadow:0 1px 3px #0004}.history{display:flex;gap:3px}.stage{position:relative;min-height:420px;flex:1;overflow:hidden;background:radial-gradient(ellipse at 50% 44%,#263038 0%,#182229 45%,#111920 78%)}.stage-label{position:absolute;left:24px;top:20px;display:flex;flex-direction:column;gap:8px;z-index:2}.stage-label .eyebrow{font-size:9px;letter-spacing:1.7px}.prototype{font-size:10px;color:#75818b}.dimension-badge{position:absolute;right:24px;top:20px;color:#a9b3bc;font-size:11px;z-index:2;font-variant-numeric:tabular-nums}.floor-grid{position:absolute;width:160%;height:100%;left:-30%;top:55%;background-image:linear-gradient(#a1acb50a 1px,transparent 1px),linear-gradient(90deg,#a1acb50a 1px,transparent 1px);background-size:34px 34px;transform:perspective(320px) rotateX(65deg);transform-origin:center top;mask-image:radial-gradient(ellipse at 50% 0%,#000 5%,transparent 60%);pointer-events:none}.floor-shadow{position:absolute;left:26%;right:26%;bottom:12%;height:10%;background:#0008;filter:blur(15px);border-radius:50%;pointer-events:none}#viewer{width:100%;height:100%;position:absolute;inset:0;cursor:grab;touch-action:none}#viewer.dragging{cursor:grabbing}#cut-layout{position:absolute;inset:58px 15px 75px;width:calc(100% - 30px);height:calc(100% - 133px)}.stage-actions{position:absolute;left:0;right:0;bottom:50px;display:flex;justify-content:center;gap:8px;z-index:2}.stage-button{border:1px solid #4a555c;background:#182129df;color:#adb8c1;padding:8px 10px;font-size:11px;font-weight:450;backdrop-filter:blur(10px)}.stage-button[aria-pressed=true]{border-color:#8d7659;color:var(--accent)}.stage-button svg{width:15px;height:15px}.stage-button.square{width:34px;padding:8px}.orbit-hint{position:absolute;bottom:20px;left:0;right:0;text-align:center;font-size:10px;color:#7d8992}.orbit-hint span{padding:0 8px;color:#53606b}.webgl-fallback{display:none;position:absolute;top:40%;left:10%;right:10%;font-size:16px;text-align:center;line-height:1.8;color:var(--muted)}.no-webgl .webgl-fallback{display:block}.stage-bottom{height:70px;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff07}.material-picker{display:flex;gap:11px;align-items:center}.material-picker .eyebrow{font-size:9px;letter-spacing:1px}.material-picker>span:last-child{font-size:11px;color:#a8b2ba}.swatches{display:flex;gap:9px}.swatches button{width:20px;height:20px;border-radius:50%;border:2px solid #111920;outline:1px solid #53606a}.swatches button.selected{outline:1px solid var(--accent);box-shadow:0 0 0 3px #e9b47709}.birch{background:repeating-linear-gradient(80deg,#bfa17b,#ceb28e 2px,#c4a47c 3px)}.walnut{background:repeating-linear-gradient(80deg,#503321,#60432e 2px,#3b271c 4px)}.white{background:#dedfd9}.scale-note{font-size:10px;color:#6d7a85}.stats-bar{height:72px;display:grid;grid-template-columns:repeat(3,1fr);padding:15px 20px;border-top:1px solid var(--line);background:#131b22}.stats-bar div{display:flex;flex-direction:column;gap:5px;align-items:center;border-right:1px solid var(--line)}.stats-bar div:last-child{border:0}.stats-bar strong{font-size:17px;font-weight:450;font-variant-numeric:tabular-nums;color:#dfdfd9}.stats-bar span{font-size:10px;color:var(--muted)}.profile-panel{padding:27px 21px 16px;border-left:1px solid var(--line);min-width:0}.profile-heading{display:flex;align-items:center;justify-content:space-between}.profile-heading .eyebrow{font-size:9px;letter-spacing:1.4px}.profile-heading h2{font-size:24px;letter-spacing:-.5px;font-weight:450;margin:7px 0 0}.curve-type{border:1px solid #4e4539;color:var(--accent);font-size:9px;letter-spacing:.8px;padding:5px 7px;border-radius:4px;background:#e9b47708}.profile-tabs{margin-top:25px;gap:24px}.profile-area{margin-top:16px;background:#10171d;border:1px solid #28323a;border-radius:7px;overflow:hidden}#profile-editor{width:100%;height:auto;display:block;touch-action:none;user-select:none}#profile-editor .control-point{cursor:grab;outline:none}#profile-editor .control-point:focus-visible{stroke:#fff;stroke-width:3px}#profile-editor .control-point:active{cursor:grabbing}.profile-edit-toolbar{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.profile-edit-toolbar .quiet-btn{font-size:12px;padding:7px 0}.profile-edit-toolbar svg{width:14px;height:14px}.text-btn{font-size:11px;color:var(--muted);padding:7px 0}.text-btn:hover{color:var(--accent)}.profile-help{font-size:11px;line-height:1.75;color:var(--muted);margin:5px 0 20px}.point-inspector{padding:15px;border:1px solid var(--line);border-radius:7px;background:#10171c}.point-inspector .section-title h3{font-size:12px}.point-inspector .section-title span{font-size:10px}.coordinate-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.coordinate-grid label{font-size:11px;color:var(--muted)}.coordinate-grid label span{float:right;color:#64727e;font-size:10px}.coordinate-grid input{display:block;width:100%;border:1px solid #35414b;border-radius:4px;background:#19232b;color:var(--text);padding:7px 9px;font-size:13px;margin-top:6px}.degree-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:13px;padding-top:12px}.degree-row label{font-size:11px;color:var(--muted)}select{background:#1a252e;color:#c1c9ce;border:1px solid #35414b;border-radius:4px;font-size:11px;padding:5px 24px 5px 8px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23929da7' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 7px center;background-size:9px}.inner-mode-note{margin-top:10px;font-size:11px;color:var(--muted);display:flex;flex-direction:column}.inner-mode-note button{align-self:flex-start}.construction-check{margin-top:19px;padding:14px;background:#a0c5ad06;border:1px solid #a0c5ad28;border-radius:7px}.check-title{display:flex;gap:8px;align-items:center;color:var(--green)}.check-title strong{font-size:12px;font-weight:550}.check-title svg{width:15px;height:15px}.construction-check p{font-size:11px;line-height:1.8;color:#91a69a;margin-top:6px}.construction-check.warning{border-color:#e9b47745;background:#e9b47708}.construction-check.warning .check-title,.construction-check.warning p{color:#d6b48b}.profile-footnote{display:flex;align-items:center;gap:6px;font-size:9px;color:#7a8894;margin-top:17px}.legend-line,.legend-ghost{display:inline-block;width:14px;height:1px;background:var(--accent)}.legend-ghost{background:transparent;border-top:1px dashed #697a85;margin-left:5px}.legend-point{width:5px;height:5px;border-radius:50%;border:1px solid var(--accent);margin-left:5px}.app-footer{min-height:42px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px 24px;font-size:10px;color:#727f89;gap:16px}.footer-dot{margin:0 8px;color:#465461}.app-footer button{color:#929da7;font-size:10px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#2c3b43;color:#edf1ed;z-index:40;border:1px solid #60716f;border-radius:8px;box-shadow:0 6px 30px #0006;font-size:14px;max-width:90vw}
@media(min-width:1500px){.workspace{grid-template-columns:300px minmax(450px,1fr) 380px}.settings-panel{padding-left:26px;padding-right:26px}.profile-panel{padding-left:26px;padding-right:26px}.profile-area{margin-top:20px}}@media(max-width:1100px){.workspace{grid-template-columns:242px minmax(300px,1fr) 290px}.settings-panel,.profile-panel{padding-left:15px;padding-right:15px}.app-header{padding:0 18px;gap:15px}.brand{min-width:220px}.document{display:none}.stage-toolbar{padding:0 12px}.view-tabs button{padding:8px;font-size:11px}.scale-note{display:none}.stage-bottom{padding:12px 16px}.stage-button{font-size:10px}.profile-heading h2{font-size:22px}}@media(max-width:850px){.workspace{grid-template-columns:235px minmax(0,1fr)}.profile-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 25px;border-left:0;border-top:1px solid var(--line);padding:24px}.profile-heading,.profile-tabs,.profile-area,.profile-edit-toolbar,.profile-help{grid-column:1}.point-inspector,.inner-mode-note,.construction-check,.profile-footnote{grid-column:2}.point-inspector{grid-row:2/5;align-self:start;margin-top:24px}.construction-check{grid-row:5/7;align-self:start;margin-top:0}.profile-footnote{grid-row:7}.profile-area{max-width:350px}.app-footer #footer-status{display:none}.stage{min-height:450px}.stage-toolbar .history{gap:0}.stage-toolbar .history button{width:27px}.header-actions{gap:5px}.brand{min-width:200px}.app-header{height:76px}}@media(max-width:580px){.app-header{padding:0 14px;height:72px}.brand{min-width:0;font-size:16px;gap:8px;letter-spacing:2px}.brand-mark{width:27px}.brand-sub{font-size:8px;letter-spacing:2px}.header-divider,.header-actions .quiet-btn span{display:none}.header-actions{gap:2px}.primary-btn{padding:10px;font-size:12px;gap:5px}.primary-btn svg{width:15px;height:15px}.chevron{display:none}.workspace{display:flex;flex-direction:column}.settings-panel{order:2;border:0;padding:24px}.stage-panel{order:1}.profile-panel{order:3;display:block}.stage{height:490px;flex:auto}.stage-bottom{height:62px}.stats-bar{height:64px}.panel-intro{display:none}.presets-section{margin-top:0}.preset-card svg{height:55px}.preset-card span{font-size:13px}.section-title span{font-size:12px}.settings-tabs button,.profile-tabs button{font-size:14px}.param label{font-size:14px}.value input{font-size:14px}.control-section h2{font-size:15px}.param{margin-bottom:23px;gap:15px}.profile-area{max-width:none}.profile-area svg{max-height:410px}.point-inspector{margin-top:20px}.construction-check{margin-top:18px}.profile-heading h2{font-size:28px}.profile-help,.field-help{font-size:13px}.profile-edit-toolbar .quiet-btn,.text-btn{font-size:13px}.app-footer{padding:12px 16px;font-size:9px}.app-footer button{font-size:9px}.led-note span{font-size:12px}.profile-tabs{margin-top:20px}.profile-footnote{font-size:11px}.export-menu{width:280px}.stage-actions{gap:6px}.stage-button{font-size:11px}}
/* Comfortable sizes for the editor's primary controls. */
.param label,.settings-tabs button,.profile-tabs button,.point-inspector .section-title h3,.degree-row label,.coordinate-grid label,.profile-edit-toolbar .quiet-btn,.text-btn,.view-tabs button,.stage-button{font-size:14px}
.value input,.coordinate-grid input{font-size:14px}
.profile-help,.construction-check p,.field-help{font-size:13px}
@media(max-width:1100px) and (min-width:851px){.view-tabs button{font-size:12px}.stage-button{font-size:12px}.settings-tabs button{font-size:13px}}

.point-summary{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;margin:12px 0 20px}.parallel-toggle{display:flex;gap:10px;align-items:center;font-size:14px;line-height:1.5;margin:18px 0 12px}.parallel-toggle input{accent-color:var(--accent);width:17px;height:17px;flex-shrink:0}.parallel-toggle+.field-help{margin:0 0 16px}.reset-form{width:100%;padding:11px;border:1px solid #46525c;border-radius:6px;font-size:14px;color:#c2cbd1}.profile-edit-toolbar .active{color:var(--accent);background:#e9b47710;padding:7px 9px;border-radius:5px}.view-cube{position:absolute;z-index:4;bottom:12px;left:12px;width:88px;height:88px;opacity:.7}.view-cube:hover{opacity:1}.view-cube svg{width:100%;height:100%}.view-cube [data-direction]{cursor:pointer;outline:none}.view-cube [data-direction]:hover polygon,.view-cube circle:hover{fill:#ffffff24}.view-cube [data-direction]:focus-visible{stroke:#e9b477;stroke-width:2}.auto-rotate{position:absolute;z-index:3;right:20px;top:49px;font-size:12px}.explode-control{position:absolute;z-index:4;bottom:102px;left:50%;transform:translateX(-50%);display:flex;gap:12px;align-items:center;padding:10px 14px;border:1px solid #45515c;background:#182129ed;border-radius:6px;font-size:12px;width:290px}.explode-control input{grid-column:auto;flex:1;min-width:80px}.explode-control span{white-space:nowrap;width:40px;text-align:right}.layout-controls{position:absolute;bottom:58px;left:0;right:0;display:flex;gap:12px;justify-content:center;align-items:center;z-index:3}.layout-controls span{font-size:11px;color:var(--muted)}#cut-layout{touch-action:none;cursor:grab}.stage:has(#cut-layout:not([hidden])) .webgl-fallback{display:none}.stage:has(#cut-layout:not([hidden])) .stage-actions{display:none}.stage:has(#cut-layout:not([hidden])) #cut-layout{background:#10171d}.stage:has(#cut-layout:not([hidden])) .stage-label{pointer-events:none}@media(max-width:580px){.view-cube{width:72px;height:72px;bottom:8px;left:5px}.orbit-hint{font-size:9px}.auto-rotate{right:14px;font-size:11px}.layout-controls{flex-wrap:wrap}.stage-actions{bottom:55px}.explode-control{bottom:102px;width:260px}}

.depth-group{margin-top:24px}.depth-group .section-title{margin-bottom:10px}.depth-modes,.point-modes{display:flex;border:1px solid var(--line);border-radius:6px;padding:3px;gap:3px;background:#10171d}.depth-modes button,.point-modes button{flex:1;padding:9px 6px;font-size:14px;border-radius:4px;color:#9daab3}.depth-modes button[aria-pressed=true],.point-modes button[aria-pressed=true]{background:#303b44;color:#f1d1a9}.depth-group .param{margin:16px 0}.depth-group .field-help{margin:12px 0 0;min-height:40px}.profile-tabs{margin-top:14px}.editor-view-tools{display:flex;justify-content:space-between;align-items:center;margin:10px 0 0;gap:6px}.editor-view-tools>span{font-size:11px;color:#81929e}.editor-view-tools button{font-size:12px}.profile-area{margin-top:6px}.profile-edit-toolbar .quiet-btn{font-size:14px;color:#d7e0e6;padding:9px 2px}.profile-edit-toolbar{gap:8px}.profile-edit-toolbar .quiet-btn:disabled{color:#71808c}.point-modes{margin-bottom:12px}.point-summary{margin-bottom:10px}.trim-note{font-size:12px;line-height:1.6;color:var(--accent);margin-top:10px}.point-modes+.field-help{min-height:42px;margin:0 0 14px}.editor-backdrop{position:fixed;inset:0;background:#0009;backdrop-filter:blur(4px);z-index:55}.profile-panel.expanded{position:fixed;z-index:60;top:3vh;bottom:3vh;left:50%;transform:translateX(-50%);width:min(820px,94vw);padding:24px 32px;overflow:auto;box-shadow:0 12px 80px #0008;border:1px solid #465560;border-radius:10px;display:block}.profile-panel.expanded .profile-area{max-width:none}.profile-panel.expanded #profile-editor{max-height:65vh;min-height:400px}.profile-panel.expanded .depth-group{margin-top:16px}.profile-panel.expanded .depth-group .param{max-width:400px}.profile-panel.expanded .depth-group .field-help{min-height:0}.profile-panel.expanded .profile-heading{position:sticky;top:-24px;background:var(--panel);z-index:3;padding:10px 0}.profile-heading .quiet-btn{font-size:13px;padding-right:0}.top-options{grid-template-columns:repeat(3,1fr)}.top-options button{font-size:13px;padding:12px 3px}.top-options button[data-top=custom]{grid-column:2/4}.top-curve-wrap{margin-top:18px}.top-curve-wrap>svg{width:100%;height:auto;margin-top:10px;border:1px solid var(--line);border-radius:6px;touch-action:none;background:#10171d}.top-curve-wrap .field-help{margin-top:10px}.top-curve-wrap .quiet-btn{font-size:13px}.export-labels{display:flex;align-items:center;gap:10px;padding:13px 12px;font-size:14px;border-bottom:1px solid var(--line)}.export-labels input{accent-color:var(--accent);width:16px;height:16px}.export-menu{max-height:min(540px,85vh);overflow:auto}.profile-panel:not(.expanded) .point-modes button{font-size:12px}.dimension-badge{line-height:1.6;text-align:right}.editor-guide{pointer-events:none}#profile-editor{cursor:crosshair}#profile-editor .tangent-handle{cursor:move}.ghost-point{pointer-events:none}
@media(max-width:850px) and (min-width:581px){.profile-panel{display:block;max-width:none}.profile-panel .profile-area{max-width:none}.profile-panel:not(.expanded){display:grid;grid-template-columns:minmax(300px,1fr) minmax(220px,.65fr);gap:0 24px}.profile-panel:not(.expanded) .profile-heading,.profile-panel:not(.expanded) .depth-group,.profile-panel:not(.expanded) .profile-tabs,.profile-panel:not(.expanded) .editor-view-tools,.profile-panel:not(.expanded) .profile-area,.profile-panel:not(.expanded) .profile-edit-toolbar,.profile-panel:not(.expanded) .profile-help,.profile-panel:not(.expanded) .trim-note{grid-column:1}.profile-panel:not(.expanded) .point-summary{grid-column:2;grid-row:3}.profile-panel:not(.expanded) .point-modes{grid-column:2;grid-row:4;align-self:start}.profile-panel:not(.expanded) #handle-help{grid-column:2;grid-row:5;align-self:start}.profile-panel:not(.expanded) #reset-form{grid-column:2;grid-row:6;align-self:start}.profile-panel:not(.expanded) .construction-check{grid-column:2;grid-row:7/10;align-self:start}.profile-panel:not(.expanded) .profile-footnote{grid-column:1/-1;grid-row:auto}}
@media(max-width:580px){.profile-panel.expanded{width:96vw;padding:18px;top:1vh;bottom:1vh}.profile-panel.expanded #profile-editor{min-height:320px}.profile-panel.expanded .profile-heading{top:-18px}.editor-view-tools>span{font-size:12px}.top-options button{font-size:14px}.profile-panel:not(.expanded) .point-modes button{font-size:14px}}

@media(min-width:851px){body{height:100dvh;overflow:hidden}.workspace{height:calc(100dvh - 128px);min-height:0}.settings-panel,.profile-panel:not(.expanded){min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#45515b transparent}.stage-panel{min-height:0}.stage{min-height:0}.app-footer{height:42px;min-height:42px}.stage-toolbar,.stage-bottom,.stats-bar{flex-shrink:0}.profile-panel.expanded{max-height:94vh}.profile-panel:not(.expanded) .profile-heading{position:sticky;top:-27px;background:var(--panel);z-index:4;padding:12px 0}.stage-actions{bottom:42px}.orbit-hint{bottom:13px}.explode-control{bottom:90px}.view-cube{bottom:5px}}
@media(min-width:851px){.profile-panel.expanded{width:min(1100px,96vw);display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-auto-rows:min-content;gap:8px 24px;padding:18px 24px;align-content:start}.profile-panel.expanded .profile-heading{grid-column:1/-1;grid-row:1;position:static;padding:0 0 8px}.profile-panel.expanded .profile-tabs{grid-column:1;grid-row:2;margin-top:0}.profile-panel.expanded .editor-view-tools{grid-column:1;grid-row:3;margin:0}.profile-panel.expanded .profile-area{grid-column:1;grid-row:4/11;align-self:stretch;min-height:calc(min(52vh,480px) + 2px);margin:0}.profile-panel.expanded #profile-editor{height:min(52vh,480px);min-height:280px;max-height:none}.profile-panel.expanded .profile-edit-toolbar{grid-column:1;grid-row:11;margin:0}.profile-panel.expanded .profile-help{grid-column:1;grid-row:12;margin:0;font-size:12px}.profile-panel.expanded .trim-note{grid-column:1;grid-row:13}.profile-panel.expanded .depth-group{grid-column:2;grid-row:2/6;margin:0;align-self:start}.profile-panel.expanded .point-summary{grid-column:2;grid-row:6;margin:4px 0}.profile-panel.expanded .point-modes{grid-column:2;grid-row:7;margin:0}.profile-panel.expanded #handle-help{grid-column:2;grid-row:8;min-height:0;margin:0;font-size:12px}.profile-panel.expanded .reset-form{grid-column:2;grid-row:9;align-self:start}.profile-panel.expanded .construction-check{grid-column:2;grid-row:10/13;align-self:start;margin-top:8px}.profile-panel.expanded .profile-footnote{grid-column:1/-1;grid-row:14;margin:0}}

/* V4: one stationary editor for both contours. */
.profile-panel:not(.expanded){display:block;padding:20px}.profile-heading{margin-bottom:15px}.profile-panel:not(.expanded) .profile-heading{top:-20px;padding:6px 0 12px}.profile-panel>.depth-modes{margin:0 0 12px}.profile-panel>.depth-modes button{font-size:14px;padding:10px 5px}.profile-main{min-width:0}.profile-panel .profile-main .profile-area{margin:0;max-width:none;min-height:0}.profile-panel:not(.expanded) #profile-editor{width:100%;height:clamp(340px,52vh,540px);max-height:none;min-height:0;cursor:default}.profile-panel .profile-edit-toolbar{margin:5px 0 16px}.profile-panel .profile-edit-toolbar .quiet-btn{font-size:14px}.profile-options .point-summary{margin:16px 0 10px}.profile-options .point-modes{margin-bottom:14px}.profile-options #handle-help{min-height:0;margin:0 0 14px}.profile-options .construction-check{margin:16px 0 0}.profile-options .point-modes button{font-size:14px}#profile-editor .control-point{cursor:grab;outline:none}#profile-editor .control-point:focus-visible .point-dot{stroke:#fff;stroke-width:3px}.point-hit{pointer-events:all}.contour-label{pointer-events:none;user-select:none}.profile-curve{pointer-events:none}
@media(min-width:1051px){.workspace{grid-template-columns:280px minmax(320px,1fr) 420px}}
@media(min-width:1500px){.workspace{grid-template-columns:280px minmax(420px,1fr) 460px}}
.profile-panel.expanded{width:min(1140px,96vw);top:2vh;bottom:2vh;max-height:96vh;padding:20px 24px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 270px;grid-template-rows:auto auto minmax(0,1fr);gap:12px 24px;align-content:stretch}.profile-panel.expanded .profile-heading{grid-column:1/-1;grid-row:1;position:static;padding:0;margin:0}.profile-panel.expanded>.depth-modes{grid-column:1;grid-row:2;margin:0}.profile-panel.expanded .profile-main{grid-column:1;grid-row:3;min-height:0;display:flex;flex-direction:column}.profile-panel.expanded .profile-main .profile-area{flex:1;min-height:0;height:auto;display:flex}.profile-panel.expanded #profile-editor{width:100%;height:100%;min-height:0;max-height:none;cursor:default}.profile-panel.expanded .profile-edit-toolbar{flex-shrink:0;margin:7px 0 0}.profile-panel.expanded .profile-options{grid-column:2;grid-row:2/4;min-height:0;overflow-y:auto;padding-right:4px;scrollbar-width:thin}.profile-panel.expanded .profile-options>*{grid-column:auto;grid-row:auto}.profile-panel.expanded .profile-options .point-summary{margin-top:16px}.profile-panel.expanded .profile-options .construction-check{margin-top:18px}
@media(max-width:1050px){body{height:auto;overflow:auto}.workspace{height:auto;min-height:0;grid-template-columns:235px minmax(0,1fr)}.stage{min-height:430px}.profile-panel:not(.expanded){grid-column:1/-1;border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:auto auto auto;gap:12px 24px;padding:24px}.profile-panel:not(.expanded) .profile-heading{grid-column:1/-1;grid-row:1;position:static;margin:0;padding:0}.profile-panel:not(.expanded)>.depth-modes{grid-column:1;grid-row:2;margin:0}.profile-panel:not(.expanded) .profile-main{grid-column:1;grid-row:3}.profile-panel:not(.expanded) .profile-options{grid-column:2;grid-row:2/4}.profile-panel:not(.expanded) #profile-editor{height:480px}.profile-panel:not(.expanded) .profile-options>*{grid-column:auto;grid-row:auto}.profile-panel:not(.expanded) .profile-options .point-summary{margin-top:16px}}
@media(max-width:650px){.workspace{display:flex;flex-direction:column}.settings-panel{order:2}.stage-panel{order:1}.profile-panel:not(.expanded){order:3;display:block;padding:20px}.profile-panel:not(.expanded) .profile-heading{margin-bottom:18px}.profile-panel:not(.expanded)>.depth-modes{margin-bottom:12px}.profile-panel:not(.expanded) #profile-editor{height:auto;aspect-ratio:400/430;max-height:none}.profile-panel.expanded{padding:16px;overflow:auto;display:block}.profile-panel.expanded .profile-heading{margin-bottom:16px}.profile-panel.expanded>.depth-modes{margin-bottom:12px}.profile-panel.expanded .profile-main .profile-area{display:block;min-height:0}.profile-panel.expanded #profile-editor{height:auto;aspect-ratio:400/430;min-height:0}.profile-panel.expanded .profile-options{overflow:visible}.profile-panel.expanded .profile-edit-toolbar{margin-bottom:20px}.profile-options .point-modes button{font-size:14px}}

.profile-panel.expanded .profile-options .point-modes{margin-bottom:14px}.settings-tabs{gap:12px}

/* V5: fixed editing axes, contextual manufacturing controls. */
.header-led-note{font-size:12px;line-height:1.5;color:#9da7ae;white-space:nowrap;margin-left:4px}.header-led-note span{display:block;color:#768791}.app-header{gap:20px}.brand{min-width:220px}.document{min-width:145px}.header-actions{gap:8px}.profile-panel>#depth-controls{margin:2px 0 14px}.profile-panel>#depth-controls .param{margin:0;gap:12px}.ring-handle{cursor:ns-resize;outline:none}.ring-handle:focus-visible>rect:last-child{stroke:#fff;stroke-width:3}.profile-curve{pointer-events:none}#profile-editor{touch-action:none}.drag-readout{filter:drop-shadow(0 2px 4px #0006)}.stabilization-section{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.toggle-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}.toggle-label input,.symmetry-label input{accent-color:var(--accent);width:16px;height:16px;margin:0}.toggle-label input{order:2}.ring-count-row{display:flex;gap:12px;align-items:center;font-size:14px;margin:15px 0}.ring-count-row>span{margin-right:auto;color:#b6c2c9}.ring-count-row strong{font-weight:500;min-width:16px;text-align:center}.small-button{width:29px;height:29px;border:1px solid #495963;border-radius:5px;font-size:20px;line-height:1}.ring-height-wrap{margin:4px 0 0;gap:8px}.ring-height-wrap label{font-size:13px}.top-curve-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.top-curve-title .eyebrow{font-size:9px;letter-spacing:1px}.symmetry-label{font-size:12px;display:flex;align-items:center;gap:5px;white-space:nowrap}#wave-preview{width:100%;height:auto;margin:14px 0 2px;background:#10171d;border:1px solid var(--line);border-radius:6px;pointer-events:none}.material-presets{margin-bottom:20px}.material-presets>select{width:100%;padding:9px 25px 9px 10px;font-size:14px}.material-presets>.text-btn{font-size:12px;padding:7px 0}.material-presets input{width:100%;font:inherit;font-size:13px;color:var(--text);background:#10171d;border:1px solid #495963;border-radius:4px;padding:8px}.material-presets .quiet-btn{font-size:12px;padding:7px 9px 7px 0}.construction-check{padding:10px 12px;margin-top:14px;background:transparent;border-color:#a0c5ad20}.construction-check summary{cursor:pointer;list-style:none;line-height:1.5}.construction-check summary::-webkit-details-marker{display:none}.construction-check .check-title strong{font-size:12px}.construction-check summary:after{content:'+';margin-left:auto;color:#7c9194;font-size:14px}.construction-check[open] summary:after{content:'−'}.construction-check p{font-size:12px;line-height:1.65;margin-top:9px}.construction-check.warning{background:#d79a6010}.profile-panel:not(.expanded) #profile-editor{height:clamp(350px,53vh,550px)}
.profile-panel.expanded{grid-template-rows:auto auto auto minmax(0,1fr)}.profile-panel.expanded>#depth-controls{grid-column:1;grid-row:3;max-width:420px;margin:0}.profile-panel.expanded .profile-main{grid-row:4}.profile-panel.expanded .profile-options{grid-row:2/5}.profile-panel.expanded .profile-options .point-summary{margin-top:0}
@media(min-width:1081px){.workspace{grid-template-columns:260px minmax(320px,1fr) 460px}.settings-panel{padding-left:20px;padding-right:20px}.profile-panel{padding-left:20px;padding-right:20px}}
@media(min-width:1550px){.workspace{grid-template-columns:290px minmax(430px,1fr) 500px}.app-header{gap:28px}.brand{min-width:240px}}
@media(max-width:1100px){.app-header{gap:14px}.brand{min-width:180px}.header-led-note{font-size:11px}.header-actions .quiet-btn{font-size:13px}}
@media(max-width:900px){.app-header{flex-wrap:wrap;height:auto;min-height:90px;padding-top:10px;padding-bottom:8px;gap:5px 12px}.header-led-note{order:3;flex-basis:100%;display:flex;gap:9px;justify-content:flex-end;margin:0}.header-led-note span{display:inline}.header-actions{margin-left:auto}.document{display:none}.profile-panel:not(.expanded)>#depth-controls{grid-column:1;grid-row:3}.profile-panel:not(.expanded) .profile-main{grid-row:4}.profile-panel:not(.expanded) .profile-options{grid-row:2/5}}
@media(max-width:650px){.profile-panel.expanded{display:block}.profile-panel.expanded>#depth-controls{margin:14px 0}.profile-panel.expanded .profile-options{overflow:visible}.header-actions .quiet-btn{font-size:12px}.header-led-note{font-size:10px}.brand{min-width:0}}
