/* Studio STL 2.0: a work surface, with geometry at the centre. */
[hidden]{display:none!important}
:root{--bg:#101820;--surface:#18232f;--border:#354656;--accent:#ecb77b;--muted:#b5c2cd}
.top{padding:.8rem 1.4rem;gap:1rem;background:#131d27}.brand small,.version{font-size:.875rem;letter-spacing:.09em}.brand .mark{border-radius:7px}.top nav{gap:.3rem}.nav.active{background:#344039;border-color:#78856b;color:#ede4cb}
main{max-width:2000px;padding:0 1.1rem 1.1rem}.workbar{padding:1.1rem 0;gap:1rem}.workbar h1{font-size:1.5rem}.workbar p{font-size:1rem}.workbar .actions{justify-content:flex-end}.panel{border-radius:8px}.note{font-size:.875rem}.section-label,#cad-root .section-label{font-size:.875rem;letter-spacing:.075em}
.fdm-profile{border:1px solid var(--border);background:#17242e;border-radius:8px;margin-bottom:1rem;padding:.8rem 1rem}.fdm-profile summary{display:flex;justify-content:space-between;gap:1rem;cursor:pointer;font-size:.875rem;line-height:1.6}.fdm-profile summary strong{color:#e6ecef;margin-right:.8rem}.fdm-profile summary span span{color:#b7c9d1}.fdm-profile-action{color:var(--accent)}.fdm-profile[open] summary{margin-bottom:1rem}.fdm-profile-fields{display:grid;grid-template-columns:2fr .8fr .8fr .8fr 1fr;gap:1rem}.fdm-profile-fields.secondary{grid-template-columns:repeat(5,1fr)}.fdm-profile .note{max-width:1000px;margin:.4rem 0 1rem}.fdm-profile label{margin:0}.fdm-profile-fields.secondary{margin-top:.75rem}
.cad-workspace{grid-template-columns:285px minmax(350px,1fr) 300px;gap:.85rem;align-items:start}.cad-left,.cad-right{padding:1rem;position:sticky;top:1rem;max-height:calc(100vh - 40px);overflow:auto;scrollbar-width:thin}.cad-left .section-label{margin-top:1.2rem}.fdm-modes{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.fdm-modes button{font-size:.875rem;padding:.7rem .4rem}.fdm-modes button.active{background:#304d50;border-color:#73ada8;color:#d7f0eb}.fdm-recipes{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.fdm-recipes button{text-align:left;min-height:52px;font-size:.875rem;background:#1d2d3b;line-height:1.45}.fdm-recipes button.active{background:#493c2d;color:#ffe2b9;border-color:#ac8155}.fdm-recipe-info{border-left:2px solid #687f82;padding-left:.7rem;margin-top:.9rem}.fdm-recipe-info p{margin:.4rem 0}.fdm-result{padding:.7rem;border:1px solid #587e79;background:#1c3638;border-radius:5px;font-size:.875rem;line-height:1.5}.fdm-result.warn{border-color:#b28a4c;background:#493c2b;color:#ffd99f}.fdm-diagnostics{margin:1rem 0}.fdm-diagnostics summary{font-weight:600;cursor:pointer;font-size:1rem}.fdm-measures{display:grid;grid-template-columns:1fr auto;gap:.45rem;font-size:.875rem}.fdm-measures dt{color:var(--muted)}.fdm-measures dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.fdm-checks{list-style:none;padding:0;margin:.8rem 0;font-size:.875rem;line-height:1.6}.fdm-checks li{border-top:1px solid #354655;padding:.7rem 0;color:#c3cfd8}.fdm-checks .warn{color:#ffd08c}.cad-canvas-wrap{height:clamp(420px,56vh,740px);background:radial-gradient(ellipse at center,#223748,#15232f);border-color:#536a7b}.cad-center{min-width:0}.cad-tools{border-radius:8px;background:#17232d}.cad-paintbar{display:none}.cad-center:has([data-cad-tool=freehand].active) .cad-paintbar,.cad-center:has([data-cad-tool=point].active) .cad-paintbar,.cad-center:has([data-cad-tool=line].active) .cad-paintbar,.cad-center:has([data-cad-tool=eraser].active) .cad-paintbar{display:flex}.cad-object button small,.cad-palette span,#cad-shape-fields label{font-size:.875rem}#mesh-stats b{overflow-wrap:anywhere}.cad-help p{font-size:1rem}#cad-root .workbar>div:first-child{max-width:none}.cad-help{margin-top:.75rem}#cad-status{line-height:1.6}
.fdm-research{max-width:1100px;margin:2rem auto;padding:1.5rem;background:#182932;border:1px solid #4f6b72;border-radius:8px}.fdm-research h2{font-size:1.5rem}.fdm-research p,.fdm-research li{font-size:1rem;line-height:1.7}.fdm-research ul{padding-left:1.3rem}.fdm-research table{width:100%;border-collapse:collapse}.fdm-research td,.fdm-research th{padding:.65rem;border-bottom:1px solid var(--border);text-align:left}
@media(max-width:1320px){.cad-workspace{grid-template-columns:265px minmax(300px,1fr)}.cad-right{grid-column:1/-1;position:static;max-height:none;display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:1rem}.cad-right>.section-label{grid-column:1/-1}.cad-right #cad-inspector{grid-column:2}.cad-right>.cad-slice{grid-column:3}.cad-right>.separator{display:none}.top .version{display:none}.fdm-profile-fields{grid-template-columns:1.6fr repeat(4,1fr)}}
@media(max-width:800px){main{padding:0 .7rem 1rem}.top{flex-wrap:wrap;padding:.7rem}.top nav{overflow-x:auto;width:100%}.nav{flex:1;padding:.6rem}.cad-workspace{display:flex;flex-direction:column}.cad-workspace>*{width:100%}.cad-left{order:0;position:static;max-height:none}.cad-center{order:1}.cad-right{order:2;display:block}.cad-canvas-wrap{min-height:340px;height:55vh}.fdm-profile-fields,.fdm-profile-fields.secondary{grid-template-columns:1fr 1fr}.fdm-profile-fields>label:first-child{grid-column:1/-1}.fdm-profile summary{display:block}.fdm-profile-action{display:block;margin-top:.3rem}.workbar{flex-wrap:wrap}.workbar .actions{justify-content:flex-start}.fdm-recipes{grid-template-columns:repeat(2,1fr)}.fdm-research{padding:1rem}.fdm-research table{font-size:.875rem}.cad-left #cad-shape-fields{grid-template-columns:1fr 1fr}.cad-palette{grid-template-columns:repeat(3,1fr)}}
