:root{font-family:'Segoe UI',sans-serif;color:#d5dcd9;background:#171e21;font-size:14px;--line:#354146;--muted:#91a0a3;--accent:#b8d9ca}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{color:inherit;background:#2b363b;border:1px solid #48565c;border-radius:4px;padding:9px 15px;cursor:pointer}button:hover{background:#3b4b50}button:disabled{opacity:.35;cursor:default}button:focus-visible,input:focus-visible,canvas:focus-visible,a:focus-visible{outline:2px solid #9cddce;outline-offset:3px}button.primary{background:#c0d5b1;color:#202e29;border-color:#c0d5b1;font-weight:600}header{height:92px;display:flex;align-items:center;gap:36px;padding:0 26px;border-bottom:1px solid var(--line);background:#232c30}.brand{display:flex;align-items:center;gap:12px;min-width:245px}.brand img{width:49px;height:49px}h1{font-family:Georgia,serif;font-weight:400;font-size:28px;margin:0}h1 span{color:#9fb2ae}.brand p{font-size:12px;color:#91a0a3;margin:4px 0 0}header nav{display:flex;gap:9px;margin-left:auto}.document{border-left:1px solid #465155;padding-left:28px;display:flex;flex-direction:column;gap:3px}.document input{background:none;border:0;color:#e6e9df;width:220px;font-weight:600;padding:2px 0}.document span{font-size:12px;color:var(--muted)}main{display:grid;grid-template-columns:245px minmax(300px,1fr) 270px;height:calc(100dvh - 92px);min-height:650px}aside{background:#232c30;display:flex;flex-direction:column;overflow-y:auto}aside:first-child{border-right:1px solid var(--line)}aside.inspector{border-left:1px solid var(--line)}section{padding:22px 20px;border-bottom:1px solid var(--line)}h2{font-size:14px;font-weight:600;margin:0 0 16px;color:#e5e9de}#palette{display:grid;gap:8px}.palette-item{display:flex;gap:11px;align-items:center;text-align:left;padding:10px;background:#293337;border-color:#3c494d;position:relative}.palette-item.active{border-color:#b1cda4;background:#39483f;box-shadow:inset 3px 0 #b1cda4}.palette-item img{width:40px;height:40px;object-fit:contain}.palette-item strong{display:block;font-size:14px;font-weight:500}.palette-item small{display:block;color:#a6b3b2;margin-top:3px;font-size:12px}.shapes{display:grid;grid-template-columns:1fr 1fr;gap:6px}.shapes button{padding:9px 5px;text-align:left;font-size:13px;display:flex;gap:8px;align-items:center}.shapes button span{font-size:21px;line-height:20px;color:#a9bcb8;width:22px;text-align:center}.active{background:#43544e;border-color:#a4bfae}.segmented{display:flex;margin-top:14px}.segmented button{width:50%;border-radius:0}.segmented button:first-child{border-radius:4px 0 0 4px}.segmented button:last-child{border-radius:0 4px 4px 0}.hint{color:#9eaeae;font-size:13px;line-height:1.6;margin:13px 0 0}.layers label{display:flex;align-items:center;gap:8px;margin:14px 0;font-size:13px}.layers input{accent-color:#b8d9ca}.swatch{display:inline-block;flex-shrink:0;width:10px;height:10px;border-radius:2px}.swatch.field{border:1px solid #80bdb7;background:#39737370}.swatch.issue{border:1px solid #df967d;background:#914f4d80}.layers .swatch{margin-left:auto}.sidebar-footer{margin-top:auto;padding:22px 20px;font-size:12px;color:#99aaa7;line-height:1.6}.sidebar-footer p{font-family:Georgia,serif;font-style:italic}.sidebar-footer a{color:#c2d1bd}.sidebar-footer small{display:block;font-size:11px;margin-top:16px;color:#82928f}.workspace{min-width:0;display:flex;flex-direction:column}.canvas-top{min-height:57px;padding:12px 19px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#20292d;gap:10px}.canvas-top>div{display:flex;gap:10px;align-items:center}.live-dot{width:6px;height:6px;background:#b6d4b6;border-radius:50%}.canvas-top b{font-size:13px;font-weight:500}.subtle{font-size:12px;color:#91a09e}.history{gap:5px!important}.history button{padding:5px 9px;font-size:13px;background:transparent}.history span{height:18px;border-left:1px solid var(--line);margin:0 5px}#board{position:relative;flex:1;overflow:hidden;background:radial-gradient(ellipse at center,#263337 0%,#192327 85%)}canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}#empty{position:absolute;pointer-events:none;left:50%;top:50%;transform:translate(-50%,-50%);width:370px;text-align:center;background:#1c282bbd;padding:24px;border:1px solid #4f66654d;border-radius:8px}#empty h2{font-family:Georgia,serif;font-size:23px;font-weight:400;margin:12px 0}#empty p{color:#a8b9b5;font-size:14px;line-height:1.7}.orbit-icon{font-size:50px;color:#9ebbb1}.board-legend{position:absolute;bottom:21px;left:21px;display:flex;align-items:center;gap:7px;font-size:12px;color:#a5b5b3;pointer-events:none}.board-legend .issue{margin-left:12px}.zoom{position:absolute;bottom:15px;right:15px;display:flex;align-items:center;border:1px solid #48585a;background:#263438;border-radius:5px}.zoom button{border:0;background:transparent;padding:8px 11px}.zoom output{font-size:12px;width:45px;text-align:center}.canvas-bottom{display:flex;justify-content:space-between;padding:12px 18px;color:#98a9a8;font-size:12px;gap:10px;border-top:1px solid var(--line);background:#20292d}.canvas-bottom i{margin:0 7px;font-style:normal}.capacity{display:flex;align-items:baseline;gap:8px}.capacity strong{font-size:46px;font-weight:300;color:#dce5d4;line-height:1.2}.capacity span{font-size:14px;color:#99aaa4}.capacity b{font-weight:400}.meter{height:5px;background:#131f23;margin-top:16px;border-radius:5px;overflow:hidden}.meter div{height:100%;background:#b3c89f;width:0;transition:width .15s}.stat{display:flex;justify-content:space-between;margin-top:20px;font-size:13px;color:#a6b4b2}.stat b{color:#d4dcd2;font-weight:500}.section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:6px}.section-title span{font-size:10px;padding:3px 5px;border-radius:3px;color:#b5c5ba;background:#35463f;white-space:nowrap}#checks{padding:0;margin:0;list-style:none;display:grid;gap:14px}#checks li{display:flex;gap:9px;font-size:13px;line-height:1.6;color:#aab8b5}#checks li>span{color:#b9cfa3}#checks li.warn>span{color:#e6a58b}#checks li.warn{color:#e2b6a4}.reference{margin-top:auto}.reference p{font-size:12px;line-height:1.7;color:#98aaa7}.radii{display:flex;justify-content:space-between}.radii div{display:flex;flex-direction:column;gap:5px}.radii strong{font-family:Georgia,serif;font-size:28px;font-weight:400;color:#c0d4c9}.radii span{font-size:12px;color:#a1b2ac}#toast{position:fixed;bottom:55px;left:50%;transform:translateX(-50%);background:#d4dfcb;color:#25352e;padding:12px 22px;border:1px solid #e2ebdf;border-radius:5px;box-shadow:0 8px 35px #0005;opacity:0;pointer-events:none;transition:opacity .15s;z-index:10;max-width:90vw}#toast.visible{opacity:1}dialog{background:#263337;color:#d6e0d8;border:1px solid #60716b;border-radius:8px;padding:26px;width:min(540px,90vw)}dialog::backdrop{background:#0e181bc9;backdrop-filter:blur(3px)}dialog h2{font-family:Georgia,serif;font-size:24px;margin:0}dialog p{color:#aabbae;line-height:1.6}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start}.dialog-head button{padding:4px 10px;font-size:20px}.saved-row{display:flex;align-items:center;gap:10px;padding:16px 0;border-top:1px solid #46554f}.saved-row>div{flex:1}.saved-row strong{display:block}.saved-row small{display:block;margin-top:5px;color:#9aafa3}.saved-row button{font-size:13px;padding:6px 10px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}@media(min-width:1600px){main{grid-template-columns:260px 1fr 290px}section{padding:25px}}@media(max-width:1100px){main{grid-template-columns:215px minmax(300px,1fr)}.inspector{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;overflow:visible}main{height:auto;min-height:calc(100dvh - 92px)}.workspace{height:760px}aside:first-child{height:760px}.inspector section{border-right:1px solid var(--line)}.reference{margin-top:0}.document{display:none}.subtle{display:none}}@media(max-width:650px){header{padding:14px;height:auto;gap:10px;flex-wrap:wrap}.brand{min-width:0;margin-right:auto}header nav{gap:6px}header nav button{padding:7px 9px;font-size:12px}.brand img{width:35px;height:35px}h1{font-size:22px}h1 span{display:none}.brand p{font-size:10px}main{display:flex;flex-direction:column}aside:first-child{height:auto;overflow:visible;display:grid;grid-template-columns:1fr 1fr}.sidebar-footer,.layers{display:none}section{padding:14px}.palette-item img{width:27px;height:27px}.palette-item{padding:7px;gap:7px}.palette-item strong{font-size:12px}.palette-item small{font-size:10px}.shapes button{font-size:11px}.shapes button span{font-size:17px}.workspace{height:650px;flex:none}.inspector{grid-template-columns:1fr 1fr}.inspector .reference{grid-column:1/-1}.canvas-top{padding:10px}.canvas-top b{font-size:12px}.canvas-bottom span:last-child{display:none}.board-legend{font-size:10px;bottom:65px}.zoom{bottom:12px}#empty{width:270px}#empty h2{font-size:20px}}
#component-palette{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}#component-palette summary{cursor:pointer;font-weight:600;color:#dce6da;padding:5px 0}#component-palette summary span{float:right;font-size:12px;color:#a9bcae}#component-search{width:100%;background:#19262b;border:1px solid #50635f;border-radius:4px;color:#dce6da;padding:9px;margin:12px 0 4px}#component-options{max-height:300px;overflow-y:auto;padding-right:5px;scrollbar-width:thin;scrollbar-color:#63766b #233031}#component-options h3{font-size:13px;font-weight:500;color:#a8bda9;margin:15px 0 8px}.component-item{width:100%;margin-bottom:6px;gap:7px;padding:8px}.component-item img{width:34px;height:40px}.component-item strong{font-size:13px;line-height:1.4}.component-item small{font-size:11px}.component-item>div{min-width:0;flex:1}.component-quantity{color:#c9dbbd;font-size:12px}.component-item[hidden],#component-options h3[hidden]{display:none}#rotation-controls{margin-top:14px}#rotation-controls[hidden]{display:none}.rotation-buttons{display:flex;align-items:center;gap:6px}.rotation-buttons button{padding:8px 11px;min-width:55px}.rotation-buttons output{flex:1;text-align:center;font-size:13px;color:#c4d8b9}#component-wiki{display:block;margin-top:11px;color:#a9c6bd;font-size:12px}#component-inventory .stat{font-size:12px;margin-top:12px;gap:9px}#component-inventory .stat b{white-space:nowrap}.swatch.exhaust{border:1px solid #d4a16a;background:#bd8b4a40}aside>section{flex-shrink:0}.canvas-top>div:first-child{min-width:0;flex-wrap:wrap}.canvas-top b{overflow-wrap:anywhere}.history{flex-shrink:0}#component-search:focus-visible{outline-offset:0}@media(max-width:650px){#component-options{max-height:220px}.component-item strong{font-size:12px}.component-item img{width:28px}.rotation-buttons button{padding:8px;min-width:42px}.rotation-buttons output{font-size:12px}#component-search{padding:7px;font-size:12px}.canvas-top{align-items:flex-start}}

.swatch.engine-boundary{border:2px solid #f1cc7b;background:#142326}#engine-boundary-legend{display:inline-flex;align-items:center;gap:7px;color:#f1cc7b;margin-left:12px}#engine-boundary-legend[hidden]{display:none}.board-legend{flex-wrap:wrap;max-width:calc(100% - 160px);row-gap:8px}

#select-mode{width:100%;margin-bottom:12px;text-align:left}#select-mode.active{background:#43544e;border-color:#a4bfae}

.footer-credit{margin:12px 0;font-size:13px}.footer-links{display:flex;flex-direction:column;gap:6px}@media(max-width:650px){.sidebar-footer{display:block;grid-column:1/-1;border-top:1px solid var(--line)}}

.render-options label{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.5;cursor:pointer}.render-options input{accent-color:#b8d9ca;flex-shrink:0;margin-top:4px}.render-options small{display:block;color:var(--muted);font-size:12px}@media(max-width:650px){.render-options{grid-column:1/-1}}
