@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap";:root{font-family:DM Sans,sans-serif;color:#303c36;background:#f3f0e9;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{cursor:pointer;border:0;color:inherit;background:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid #40785e;outline-offset:4px}button:disabled{cursor:default;opacity:.4}#world{position:fixed;inset:0;display:block;touch-action:none}header{position:fixed;left:38px;right:38px;top:28px;display:flex;align-items:center;justify-content:space-between;z-index:3}.brand{display:flex;align-items:center;text-decoration:none;color:#303c36;font:800 30px Manrope,sans-serif;letter-spacing:-1.5px}.brand-icon{color:#557761;font-size:33px;margin-right:12px;transform:rotate(-10deg)}.brand-dot{color:#7b967d}.top-actions{display:flex;align-items:center;gap:19px}.icon-button{font-size:18px;border:1px solid #d6d8ce;border-radius:50%;width:31px;height:31px}.language{display:flex;gap:3px;font-size:11px}.language button{padding:7px 9px;border-radius:5px;color:#8b9189}.language button.active{background:#e2e6dc;color:#374a3d;font-weight:700}.library-toggle{background:#344e3f;color:#fff;border-radius:9px;padding:13px 18px;display:flex;gap:20px;align-items:center;font-size:12px}.intro{position:fixed;top:142px;left:55px;pointer-events:none;max-width:350px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2px;color:#848d80}.intro h1{font:500 clamp(44px,5vw,70px)/1.06 "Manrope",sans-serif;letter-spacing:-3.8px;margin:22px 0}.intro h1 em{font-style:normal;color:#64816a}.intro p{font-size:12px;color:#858a7f;margin-top:22px}.text-button{pointer-events:auto;margin-top:12px;padding:0 0 9px;display:flex;gap:20px;font-size:11px;border-bottom:1px solid #adb6a6}.text-button span:last-child{color:#6d8a6b}#library{position:fixed;right:38px;top:102px;bottom:96px;width:266px;padding:25px 23px 18px;border-radius:15px;background:#faf9f5ee;border:1px solid #fff;box-shadow:0 12px 35px #414f3810;backdrop-filter:blur(12px);overflow:auto;transition:transform .3s,opacity .3s;z-index:2}#library.closed{transform:translate(320px);opacity:0;pointer-events:none}.panel-heading{display:flex;align-items:center;justify-content:space-between}.pill{font-size:9px;background:#eaece4;color:#737e6f;padding:4px 7px;border-radius:4px;white-space:nowrap}h2{font:700 21px Manrope,sans-serif;letter-spacing:-.7px;margin:14px 0 8px}.muted{font-size:11px;line-height:1.7;color:#92968d;margin:0}#cards{display:grid;gap:10px;margin-top:23px}.brick-card{text-align:left;width:100%;padding:0;border:1px solid #e6e7de;border-radius:9px;overflow:hidden;transition:background .2s,transform .2s;background:#f3f3ed}.brick-card:hover{transform:translateY(-2px);background:#e8eee3;border-color:#bdcbb6}.brick-art{height:90px;display:flex;align-items:center;justify-content:center;perspective:500px;background:radial-gradient(ellipse at center,#fff9,transparent 70%)}.mini-brick{display:grid;grid-template-columns:repeat(var(--cols),19px);grid-template-rows:repeat(var(--rows),19px);gap:4px;padding:6px;background:var(--brick);transform:rotateX(48deg) rotate(-28deg);border-radius:3px;box-shadow:-1px 2px 0 var(--brick),-2px 4px 0 var(--brick),-3px 6px 0 var(--brick),-4px 8px 0 var(--brick),-5px 10px 0 var(--brick),-6px 12px 0 var(--brick),-7px 14px 0 var(--brick),-8px 16px 0 var(--brick),-12px 26px 12px #0002}.mini-brick i{width:16px;height:16px;border-radius:50%;background:var(--brick);filter:brightness(1.08);box-shadow:0 -2px #fff5,0 3px #0004,0 5px 2px #0003}.card-description{display:flex;align-items:center;padding:9px 12px 12px;gap:10px;background:#fff7}.card-number{font-size:9px;color:#929c8e;align-self:flex-start;padding-top:2px}.card-description strong{display:block;font-size:13px;letter-spacing:.3px}.card-description div>span{font-size:9px;color:#92988d;display:block;margin-top:3px}.add-circle{margin-left:auto;width:22px;height:22px;display:grid;place-items:center;background:#e8ece2;border-radius:50%;font-size:16px;color:#688269}.color-heading{margin:24px 0 12px}#swatches{display:flex;justify-content:space-between}.swatch{width:24px;height:24px;border-radius:50%;background:var(--swatch);border:3px solid #faf9f5;outline:1px solid transparent}.swatch.active{outline-color:#657e67}.library-footer{margin-top:24px;padding-top:17px;border-top:1px solid #e6e7de;display:flex;align-items:center;gap:8px;font-size:9px;color:#9b9e93}.tiny-cube{font-size:18px;color:#9ca990}.selection{position:fixed;left:38px;bottom:112px;width:264px;padding:21px;border:1px solid #ffffffbd;border-radius:12px;background:#faf9f3d9;backdrop-filter:blur(12px);box-shadow:0 8px 25px #414f3807}.selection h3{font:600 14px Manrope,sans-serif;margin:13px 0 8px}.selected-quick{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:10px;margin:12px 0 14px}.selected-part-thumb{width:58px;height:58px;border:1px solid #dfe2d7;border-radius:9px;background:#ffffffc7;overflow:hidden;display:grid;place-items:center}.selected-part-thumb img{width:100%;height:100%;object-fit:contain;transform:scale(1.08)}.selected-part-info{min-width:0}.selected-part-info h3{margin:0 0 5px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-part-info .pill{display:inline-flex}.quick-detach{align-self:stretch;min-width:58px;border:1px solid #d7ddd0;border-radius:7px;background:#eef1e8;padding:8px 9px;font-size:10px;font-weight:600}.quick-detach:not(:disabled):hover{background:#e3e9dc}.quick-detach:disabled{opacity:.38;cursor:default}.selected-title{display:flex;align-items:center;gap:9px;margin:12px 0}.selected-title h3{margin:0;font-size:19px}.selected-title .pill{margin-left:auto}.color-chip{width:12px;height:12px;border-radius:3px}.selection-actions{display:flex;gap:6px}.selection-actions button{font-size:10px;border:1px solid #dfe2d7;border-radius:5px;padding:8px}.selection-actions .secondary{flex:1;background:#e8ecdf}.secondary span{margin-left:9px}.remove{margin-left:auto}.height-actions{display:flex;align-items:center;gap:10px;font-size:10px;color:#93988d;margin:14px 0}.height-actions button{border:1px solid #d9dfcf;border-radius:4px;font-size:13px;width:24px;height:22px}kbd{font:9px DM Sans,sans-serif;border:1px solid #c9d0be;padding:3px 5px;border-radius:4px;white-space:nowrap}.press{display:flex;justify-content:space-between;align-items:center;gap:7px;background:linear-gradient(90deg,#7b9979 var(--progress, 0%),#3e5f48 var(--progress, 0%));border-radius:6px;color:#fff;font-size:10px;width:100%;padding:10px}.press kbd{border-color:#ffffff50}.seam-label{font-size:8px;letter-spacing:1px;margin:17px 0 8px}select{font-size:10px;border:1px solid #dce0d3;background:#f6f6ef;padding:6px;width:64%;border-radius:4px}.detach{font-size:10px;width:35%;padding:6px 0}.bottom-center{position:fixed;bottom:100px;left:50%;transform:translate(-50%);pointer-events:none;display:flex;align-items:center;flex-direction:column;gap:14px}.workspace-hint{display:flex;align-items:center;gap:9px;font-size:9px;color:#8d9487;white-space:nowrap}.mouse-icon{border:1px solid #b9c2af;padding:3px 5px;border-radius:5px;font-size:14px}.hint-divider{width:1px;height:13px;background:#cbd0c2;margin:0 5px}#alignment{font-size:11px;padding:9px 15px;border-radius:30px;background:#fff9;color:#7b8675;max-width:320px;text-align:center}#alignment:empty{display:none}#alignment.ready{background:#e1eddf;color:#426a4b}footer{position:fixed;bottom:0;left:0;right:0;height:68px;border-top:1px solid #dbded1;background:#f4f3ecd9;display:flex;justify-content:space-between;align-items:center;padding:0 38px;font-size:10px;color:#92988c;backdrop-filter:blur(8px)}.status,.scene-actions{display:flex;align-items:center;gap:20px}#pause{display:flex;align-items:center;gap:7px;font-size:10px}#pause i{width:6px;height:6px;background:#729c6c;border-radius:50%;box-shadow:0 0 0 4px #749c6c16}#pause.paused i{background:#be9c4e}.footer-divider{height:15px;width:1px;background:#d3d9c8}.scene-actions button{font-size:10px}.scene-actions button:last-child{border:1px solid #d5dacb;padding:9px 13px;border-radius:5px}#view{font-size:20px}#toast{position:fixed;top:92px;left:50%;transform:translate(-50%,-15px);background:#354b3f;color:#fff;border-radius:8px;padding:12px 20px;font-size:12px;opacity:0;pointer-events:none;transition:.25s;z-index:5}#toast.visible{opacity:1;transform:translate(-50%)}dialog{width:450px;max-width:calc(100vw - 30px);border:1px solid white;border-radius:16px;padding:35px;background:#f9f8f1;color:#394a3b;box-shadow:0 30px 90px #0003}dialog::backdrop{background:#23332350;backdrop-filter:blur(5px)}dialog p{font-size:13px;line-height:1.9;color:#7d8775}.close{position:absolute;right:12px;top:10px;width:44px;height:44px;min-width:44px;padding:0;display:grid;place-items:center;border-radius:12px;font-size:32px;line-height:1;color:#56645a}.close:hover{background:#e8ece5}.key-row{display:flex;gap:12px;align-items:center;margin-top:15px;font-size:12px}#loading{position:fixed;inset:0;display:grid;place-items:center;background:#f3f0e9;z-index:9;font-size:18px}@media(min-height:900px){.brick-art{height:115px}#library{bottom:auto;height:690px}}@media(max-width:1100px){.intro{left:35px;top:120px}.intro h1{font-size:48px}.intro p{max-width:190px;line-height:1.7}#library{width:230px;right:22px;padding:20px}.selection{left:22px;width:235px}.workspace-hint span:last-child,.hint-divider{display:none}.bottom-center{bottom:85px}}@media(max-width:720px){header{left:20px;right:20px;top:20px}.brand{font-size:25px}.top-actions{gap:10px}.library-toggle{padding:10px;gap:8px}.library-toggle span:nth-child(2){display:none}.intro{top:95px;left:25px}.intro h1{font-size:38px;letter-spacing:-2px;margin:14px 0}.intro .eyebrow{font-size:7px}.intro p{display:none}.text-button{font-size:10px}#library{top:85px;bottom:85px;width:220px}.selection{bottom:88px;left:15px;width:215px;padding:15px}.selection:has(#grab){bottom:125px}.workspace-hint{display:none}.bottom-center{bottom:83px;left:45%;width:90%}footer{padding:0 18px;gap:10px}.status,.scene-actions{gap:10px}#counts{font-size:8px}.footer-divider{display:none}.scene-actions button{font-size:9px}.scene-actions button:last-child{padding:7px}.intro{pointer-events:none}.intro .text-button{pointer-events:auto}}#library{height:auto;bottom:auto;max-height:calc(100dvh - 190px)}#library h2{margin-top:0}.brick-art{height:82px}#cards{margin-top:16px}.selection-actions{flex-wrap:wrap}.selection-actions .remove{color:#a14336;flex-basis:100%;margin-left:0}.ground-control{display:flex;align-items:center;gap:16px;margin-top:0;padding-bottom:12px;border-bottom:1px solid #d9ddd3}.ground-control select{flex:1;min-width:0;width:auto;margin:0}#cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.part-preview{width:100%;height:76px;object-fit:contain;display:block;pointer-events:none}.card-description{padding:8px;gap:4px;min-height:46px}.card-description strong{font-size:10px;letter-spacing:0;line-height:1.4}.card-description .add-circle{flex:0 0 17px;width:17px;height:17px;font-size:13px}#part-filter{margin:12px 0 0;width:100%}#sound{display:grid;place-items:center}#sound svg{pointer-events:none}.brand{gap:0;padding:8px 13px 9px;border:1px solid #ffffffb8;border-radius:13px;background:#faf9f3d9;box-shadow:0 5px 18px #38483d0b;backdrop-filter:blur(10px);font:750 26px Manrope,sans-serif;letter-spacing:-1.2px;line-height:1}.brand-main{color:#2f3a35}.brand-accent{color:#6f8e77}.brand-icon,.brand-dot{display:none}.selection{width:196px;padding:14px;border-radius:18px;background:#faf9f3e8;box-shadow:0 10px 30px #414f3810}.selection-minimal{display:grid;grid-template-columns:120px 48px;grid-template-rows:repeat(3,48px);gap:8px 10px;justify-content:center;align-items:center}.selected-part-thumb-large{grid-column:1;grid-row:1 / 4;width:120px;height:120px;border-radius:16px;border:1px solid #d9ded2;background:#fffefa;box-shadow:inset 0 0 0 1px #ffffffa8}.selected-part-thumb-large img{width:100%;height:100%;object-fit:contain;transform:scale(1.2)}.foreign-part-thumb{display:grid;place-items:center;align-content:center;gap:5px;padding:10px;overflow:hidden;background:linear-gradient(145deg,#eef6ff,#dbeaf8);border:1px dashed #8eb2d3;color:#315c82;text-align:center}.foreign-part-thumb span{font:700 9px/1 Manrope,sans-serif;letter-spacing:.14em;opacity:.7}.foreign-part-thumb strong{max-width:100%;font:700 11px/1.2 DM Sans,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selection-icon-button{display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #d4dbd0;border-radius:14px;background:#eef2e9;color:#42544a;transition:transform .12s ease,background .12s ease,opacity .12s ease}.selection-icon-button svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.selection-icon-button:not(:disabled):hover{background:#e4eadf;transform:translateY(-1px)}.selection-icon-button:not(:disabled):active{transform:translateY(1px) scale(.97)}.separate-icon{grid-column:2;grid-row:1;align-self:center}.rotate-icon{grid-column:2;grid-row:2;align-self:center}.separate-icon:disabled{opacity:.2;background:#f2f3ef;cursor:default}.delete-icon{grid-column:2;grid-row:3;justify-self:center;color:#b5362d;background:linear-gradient(180deg,#ffe6e1,#ffd5ce);border-color:#efb2aa}.delete-icon:hover{background:linear-gradient(180deg,#ffd9d2,#ffc9c0)!important}.delete-icon:active{background:#ffbeb4!important}.selection-bridge{display:none!important}@media(max-width:720px){.selection{width:180px;padding:12px}.selection-minimal{grid-template-columns:108px 44px;grid-template-rows:repeat(3,44px);gap:6px 8px}.selected-part-thumb-large{width:108px;height:108px}.selection-icon-button{width:44px;height:44px;border-radius:12px}.selection-icon-button svg{width:25px;height:25px}}.top-actions{gap:8px}.header-tool{width:40px;height:40px;padding:0;display:grid;place-items:center;border:1px solid #d5dbd2;border-radius:12px;background:#faf9f3e8;color:#405248;box-shadow:0 4px 14px #3141370a;backdrop-filter:blur(8px)}.header-tool:hover,.header-tool[aria-expanded=true]{background:#e6ede2;border-color:#bdcbb9}.header-tool svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}#library{top:82px;right:38px;bottom:24px;width:282px;height:auto;max-height:calc(100dvh - 106px);padding:18px;border-radius:18px;overflow-y:auto;scrollbar-width:thin}#library.closed{transform:translate(330px)}#swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 18px}.swatch{width:100%;aspect-ratio:1;height:auto;min-height:42px;border-radius:12px;border:3px solid #faf9f5;outline:1px solid #d8ddd3;box-shadow:inset 0 0 0 1px #fff5}.swatch.active{outline:3px solid #516b5a;outline-offset:1px}.cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cards-grid .brick-card{min-width:0}.cards-grid .part-preview{height:72px}.cards-grid .card-description{min-height:40px;padding:7px 8px}.cards-grid .card-description strong{font-size:10px}.more-parts{width:100%;height:38px;margin:10px 0 0;display:grid;place-items:center;border:1px solid #d9ded5;border-radius:10px;background:#f0f2ec;color:#617166}.more-parts:hover{background:#e7ece3}.more-parts svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .16s ease}.more-parts.open svg{transform:rotate(180deg)}.more-cards{margin-top:8px}.more-cards[hidden]{display:none}.scene-dialog{width:360px;padding:28px}.scene-menu-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:10px}.scene-menu-action{min-height:110px;display:grid;place-items:center;align-content:center;gap:10px;border:1px solid #d7ddd2;border-radius:14px;background:#f2f3ed;color:#405047;font:650 12px Manrope,sans-serif}.scene-menu-action:hover{background:#e7ece3}.scene-menu-action svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.scene-menu-action.danger{color:#9e493c;background:#fff8f4;border-color:#ead9d2}.scene-language{display:flex;justify-content:center;gap:6px;margin-top:16px;padding-top:14px;border-top:1px solid #e0e3db}.scene-language button{min-width:48px;padding:7px 10px;border-radius:9px;color:#7a837b}.scene-language button.active{background:#dfe8dc;color:#34483b;font-weight:700}.selection{bottom:28px}@media(max-width:720px){.header-tool{width:38px;height:38px;border-radius:11px}#library{top:72px;right:14px;bottom:14px;width:min(270px,calc(100vw - 28px));max-height:calc(100dvh - 86px);padding:15px}.scene-dialog{width:min(340px,calc(100vw - 24px));padding:22px}.scene-menu-action{min-height:96px}.selection{bottom:18px}}.brick-card[draggable=true]{cursor:grab}.brick-card[draggable=true]:active{cursor:grabbing}.brick-card.dragging{opacity:.42;transform:scale(.98)}:root{--ui-blue: #0055bf;--ui-blue-dark: #003f8f;--ui-blue-ink: #173b63;--ui-blue-soft: #eaf3ff;--ui-blue-soft-2: #dcecff;--ui-blue-border: #b9d0eb;--ui-muted: #72849a;color:#26394d}button:focus-visible,a:focus-visible,select:focus-visible{outline-color:var(--ui-blue)}.brand-main{color:#20364d}.brand-accent{color:var(--ui-blue)}.icon-button,.header-tool{border-color:var(--ui-blue-border);color:var(--ui-blue-dark);background:#f8fbffeb}.icon-button:hover,.header-tool:hover,.header-tool[aria-expanded=true]{background:var(--ui-blue-soft);border-color:#8db5e3}#library,.selection,dialog{border-color:#dbe7f4;box-shadow:0 12px 35px #163c6812}.swatch.active{outline-color:var(--ui-blue)}.brick-card{position:relative;overflow:hidden;min-height:118px;border-color:#dce5ef;background:#f8fafc}.brick-card:hover{background:#f0f6fd;border-color:#a9c7e7}.cards-grid .part-preview,.part-preview{width:100%;height:118px;padding:7px 8px 18px;object-fit:contain;display:block}.card-description{display:none!important}.part-card-label{position:absolute;left:11px;bottom:9px;max-width:calc(100% - 42px);color:#355370;font:650 11px DM Sans,sans-serif;letter-spacing:.1px;opacity:.58;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brick-card .add-circle{position:absolute;right:9px;bottom:7px;width:27px;height:27px;margin:0;display:grid;place-items:center;border-radius:50%;background:var(--ui-blue-soft-2);color:var(--ui-blue-dark);font-size:20px;line-height:1;opacity:0;transform:scale(.82);transition:opacity .13s ease,transform .13s ease,background .13s ease;pointer-events:none}.brick-card:hover .add-circle,.brick-card:focus-visible .add-circle{opacity:1;transform:scale(1)}.brick-card:hover .part-card-label,.brick-card:focus-visible .part-card-label{opacity:.86}.more-parts{border-color:#cbdced;background:#f0f6fc;color:#50759a}.more-parts:hover{background:var(--ui-blue-soft)}.selection-icon-button{border-color:#cbdced;background:#edf5fd;color:#285b8d}.selection-icon-button:not(:disabled):hover{background:#dfeefe}.separate-icon:disabled{background:#f2f5f8}.delete-icon{color:#b5362d;background:linear-gradient(180deg,#ffe6e1,#ffd5ce);border-color:#efb2aa}#alignment{color:#60758b}#alignment.ready{background:#e5f1ff;color:#17558f}#toast{background:#164a7d}.close{color:#416789}.close:hover{background:#e8f2fc}.scene-menu-action{border-color:#cbdced;background:#f2f7fc;color:#294f75}.scene-menu-action:hover{background:#e4f0fc}.scene-language{border-top-color:#dbe6f0}.scene-language button{color:#72849a}.scene-language button.active{background:#deedff;color:#164e85}dialog{color:#29435d}dialog::backdrop{background:#15395a55}.delete-dialog{width:300px;padding:30px 28px 26px;text-align:center}.delete-prompt{color:#c23832;font:750 18px Manrope,sans-serif;letter-spacing:1.6px}.delete-confirm-actions{display:flex;justify-content:center;gap:18px;margin-top:24px}.delete-confirm-actions button{width:62px;height:62px;display:grid;place-items:center;border-radius:18px}.delete-confirm-actions svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.delete-confirm-yes{color:#2f8f4e;background:#e7f6eb;border:1px solid #b9dfc4}.delete-confirm-yes:hover{background:#daf0e0}.delete-confirm-no{color:#747d87;background:#f1f3f5;border:1px solid #d7dde2}.delete-confirm-no:hover{background:#e7eaed}@media(hover:none){.brick-card .add-circle{display:none}}@media(max-width:720px){.brick-card{min-height:108px}.cards-grid .part-preview,.part-preview{height:108px}.part-card-label{left:9px;bottom:7px;font-size:10px}.delete-dialog{width:min(290px,calc(100vw - 28px))}}.other-swatch{position:relative;overflow:hidden}.other-corner{position:absolute;right:5px;bottom:5px;width:0;height:0;border-left:12px solid transparent;border-bottom:12px solid var(--ui-blue);filter:drop-shadow(0 0 1px #fff);pointer-events:none}.scene-dialog{width:min(840px,calc(100vw - 30px));padding:30px 32px 24px}.scene-menu-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:30px}.scene-menu-action{min-height:142px;padding:16px 8px}.scene-menu-action svg{width:52px;height:52px;stroke-width:1.65}.scene-language{justify-content:flex-end;margin-top:18px}.close{right:14px;top:12px;width:54px;height:54px;min-width:54px;border:1px solid #c9dced;border-radius:50%;background:#f3f8fe;font-size:39px;line-height:1}.close:hover{background:#e3f0fc}.color-dialog{width:min(780px,calc(100vw - 30px));max-height:min(84dvh,790px);padding:76px 24px 24px;overflow:hidden}.color-picker-top{margin-bottom:14px}#color-search{width:100%;height:46px;padding:0 14px;border:1px solid #c8dced;border-radius:12px;background:#f7fbff;color:#294b6b;font:500 14px DM Sans,sans-serif;outline:none}#color-search:focus{border-color:#78a9d8;box-shadow:0 0 0 3px #dcecff}.color-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:min(65dvh,610px);padding:2px 5px 2px 2px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.color-option{min-width:0;min-height:58px;padding:7px 9px;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:9px;border:1px solid #d8e4ef;border-radius:11px;background:#f9fbfd;text-align:left}.color-option:hover,.color-option:focus-visible{background:#eef6ff;border-color:#9dbfe0;transform:translateY(-1px)}.color-option-swatch{width:42px;height:42px;border:1px solid #0002;border-radius:9px;box-shadow:inset 0 0 0 1px #fff6,0 1px 3px #163c6812}.color-option-name{min-width:0;color:#355776;font-size:11px;line-height:1.25;overflow:hidden;text-overflow:ellipsis}@media(max-width:720px){.scene-dialog{width:min(520px,calc(100vw - 20px));padding:24px 14px 18px}.scene-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:34px}.scene-menu-action{min-height:96px;padding:10px 3px;font-size:10px}.scene-menu-action svg{width:38px;height:38px}.scene-language{margin-top:12px}.close{width:48px;height:48px;min-width:48px;font-size:35px}.color-dialog{width:min(520px,calc(100vw - 18px));padding:68px 14px 14px}.color-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:68dvh}.color-option{grid-template-columns:38px minmax(0,1fr);min-height:52px;padding:6px 7px}.color-option-swatch{width:38px;height:38px}}#physics.physics-off{color:#7e8b97;background:#f1f4f7;border-color:#d7dfe7}#physics.physics-off:hover{background:#e9eef3}#library{width:254px;padding:14px}#swatches{gap:7px;margin-bottom:12px}.cards-grid{gap:6px}.brick-card{min-height:92px;border-radius:10px}.cards-grid .part-preview,.part-preview{height:92px;padding:2px 3px 15px;object-fit:contain}.part-card-label{left:8px;bottom:6px;font-size:10px;max-width:calc(100% - 35px)}.brick-card .add-circle{right:6px;bottom:5px;width:24px;height:24px;font-size:17px}.more-parts{height:34px;margin-top:7px}.more-cards{margin-top:6px}@media(max-width:720px){#library{width:min(244px,calc(100vw - 24px));padding:12px}.brick-card{min-height:86px}.cards-grid .part-preview,.part-preview{height:86px;padding:1px 2px 14px}}#library{padding:0;overflow:hidden;max-height:calc(100dvh - 106px);transition:box-shadow .16s ease,background .16s ease}#library.collapsed{bottom:auto;max-height:none}.library-titlebar{height:42px;display:grid;grid-template-columns:24px minmax(0,1fr) 24px;align-items:center;gap:9px;padding:0 12px;border-bottom:1px solid #dce7f1;background:#f5f9fddd;color:#3f678d;cursor:pointer;user-select:none}.library-titlebar:hover,.library-titlebar:focus-visible{background:#eaf3fd;outline:none}.library-title-icon,.library-title-chevron{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.library-title-line{height:2px;border-radius:999px;background:linear-gradient(90deg,#b9d4ef,#dbe8f5)}.library-title-chevron{transition:transform .15s ease}#library:not(.collapsed) .library-title-chevron{transform:rotate(180deg)}#library.collapsed .library-titlebar{border-bottom-color:transparent}.library-body{max-height:calc(100dvh - 148px);padding:12px 14px 14px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.library-body[hidden]{display:none}.brick-card{cursor:grab;touch-action:manipulation}.brick-card:active,.brick-card.dragging-live,.library-live-drag .brick-card{cursor:grabbing}.brick-card.dragging-live{opacity:.38;transform:scale(.98)}.library-live-drag,.library-live-drag *{cursor:grabbing!important}@media(max-width:720px){#library{padding:0}.library-titlebar{height:40px;padding:0 10px}.library-body{max-height:calc(100dvh - 126px);padding:10px 12px 12px}}.library-live-object,.library-live-object *{cursor:none!important}#library{display:flex;flex-direction:column}.library-titlebar{flex:0 0 auto}.library-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}#swatches{flex:0 0 auto}.library-parts-scroll{width:100%;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:3px}.icon-button,.header-tool{width:40px;height:40px;min-width:40px;min-height:40px}.icon-button{display:grid;place-items:center;padding:0}.icon-button svg,.header-tool svg{width:22px;height:22px}#sound.sound-off,#physics.physics-off{color:#fff;background:#d7443e;border-color:#b92f2a;box-shadow:0 4px 14px #7b1f1b22}#sound.sound-off:hover,#physics.physics-off:hover{color:#fff;background:#c93631;border-color:#a92824}@media(max-width:720px){.icon-button,.header-tool{width:38px;height:38px;min-width:38px;min-height:38px}.icon-button svg,.header-tool svg{width:21px;height:21px}}.touch-only{display:none}#library{overscroll-behavior:contain}#help-dialog{max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain}[hidden]{display:none!important}.touch-layout{--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--edge-left: max(12px, env(safe-area-inset-left, 0px));--edge-right: max(12px, env(safe-area-inset-right, 0px));--footer-height: calc(60px + var(--safe-bottom));--hud-bottom: calc(var(--footer-height) + 12px)}.touch-layout body{overscroll-behavior:none}.touch-layout .touch-only{display:block}.touch-layout button{min-height:44px;touch-action:manipulation}.touch-layout select{min-height:44px;font-size:16px}.touch-layout header{top:calc(10px + var(--safe-top));left:var(--edge-left);right:var(--edge-right);gap:8px}.touch-layout .brand{font-size:26px}.touch-layout .top-actions{gap:8px}.touch-layout .icon-button{width:44px;height:44px;flex-shrink:0}.touch-layout .language{gap:0}.touch-layout .language button{min-width:44px;padding:8px}.touch-layout .library-toggle{min-width:44px;justify-content:center;padding:10px 12px;gap:12px}.touch-layout #touch-toolbar{position:fixed;top:calc(64px + var(--safe-top));left:50%;transform:translate(-50%);display:grid;grid-template-columns:auto auto;gap:6px 12px;z-index:3;max-width:calc(100% - var(--edge-left) - var(--edge-right))}.touch-modes,.touch-zoom{display:flex;gap:4px;padding:4px;border:1px solid #fff;border-radius:12px;background:#faf9f5f2;box-shadow:0 4px 16px #414f3810}.touch-modes button{border-radius:8px;min-width:70px;padding:8px 12px;font-size:13px}.touch-modes button[aria-pressed=true]{background:#344e3f;color:#fff}.touch-zoom button{width:44px;border-radius:8px;font-size:22px}#touch-hint{grid-column:1 / -1;margin:0;text-align:center;font-size:11px;line-height:1.4;color:#526251;pointer-events:none}.touch-layout #library{top:calc(150px + var(--safe-top));right:var(--edge-right);bottom:calc(var(--footer-height) + 12px);width:280px;height:auto;max-height:none;padding:16px;z-index:4}.touch-layout #library.closed{visibility:hidden}.touch-layout #swatches{flex-wrap:wrap;justify-content:flex-start;gap:4px}.touch-layout .swatch{width:44px;height:44px;min-width:44px;border:9px solid #faf9f5}.touch-layout .card-description strong{font-size:12px}.touch-layout .brick-card:active{background:#e8eee3}.touch-layout .brick-card:hover{transform:none}html.touch-layout #selection.selection{position:fixed;inset:0;width:auto;height:auto;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:visible;pointer-events:none;z-index:2}.touch-layout #selection>.eyebrow,.touch-layout #selection-content{display:none}.touch-layout:has(#selection:not([hidden])) #touch-hint{visibility:hidden}.touch-layout #touch-hud{pointer-events:none}.touch-layout #touch-hud button,.touch-layout #touch-hud select,.touch-layout #brick-joystick{pointer-events:auto}.touch-layout .hud-movement{position:fixed;left:var(--edge-left);bottom:var(--hud-bottom);width:112px}.touch-layout .hud-caption{position:absolute;bottom:calc(100% + 8px);width:100%;display:flex;gap:6px;align-items:center;font-size:11px;color:#455849;text-shadow:0 1px 2px #fff}.touch-layout .hud-caption i{width:8px;height:8px;border-radius:50%;flex-shrink:0}.touch-layout .hud-caption span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.touch-layout #brick-joystick{position:relative;width:112px;height:112px;border-radius:50%;border:1px solid #44645065;background:#faf9f52e;box-shadow:inset 0 0 0 12px #ffffff16,0 2px 10px #283f2810;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}.touch-layout #brick-joystick:focus-visible{outline:2px solid #40785e;outline-offset:3px}.touch-layout #brick-joystick.active{border-color:#40785e;background:#faf9f550;cursor:grabbing}.touch-layout .stick-cross{position:absolute;inset:0;display:grid;place-items:center;font-size:82px;color:#44645036;pointer-events:none}.touch-layout .stick-knob{position:absolute;left:calc(50% - 22px);top:calc(50% - 22px);width:44px;height:44px;border-radius:50%;border:1px solid #44645065;background:#f4f7ee80;box-shadow:0 2px 8px #203b2020;pointer-events:none;transform:translate(var(--stick-x, 0px),var(--stick-y, 0px))}.touch-layout .hud-actions{position:fixed;right:var(--edge-right);bottom:var(--hud-bottom);display:grid;grid-template-columns:repeat(2,46px);gap:6px}.touch-layout .hud-actions button{width:46px;height:46px;padding:0;border-radius:50%;font-size:22px;border:1px solid #44645065;background:#faf9f578;color:#344f40;box-shadow:0 2px 8px #283f2810}.touch-layout #touch-hud [data-repeat]{touch-action:none;user-select:none;-webkit-user-select:none}.touch-layout .hud-actions button:active{background:#d4e3cdbb}.touch-layout #hud-connect{grid-column:1 / -1;width:100%;border-radius:23px;font-size:12px;font-weight:700;background:linear-gradient(90deg,#80af8199 var(--progress, 0%),#e5f1df99 var(--progress, 0%))}.touch-layout #hud-connect:disabled{opacity:.42}.touch-layout #hud-details{position:fixed;right:var(--edge-right);bottom:var(--hud-bottom);width:min(260px,calc(100vw - var(--edge-left) - var(--edge-right)));max-height:min(280px,calc(100dvh - var(--safe-top) - var(--footer-height) - 142px));padding:8px;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;background:#f5f7eecc;border:1px solid #ffffffa6;border-radius:16px;box-shadow:0 3px 14px #203b201a;color:#344f40}.touch-layout #touch-hud:has(#hud-details:not([hidden])) .hud-actions{visibility:hidden}.touch-layout .hud-details-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:6px}.touch-layout #hud-close{min-width:44px;font-size:24px}.touch-layout .hud-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.touch-layout #hud-details button:not(#hud-close){border:1px solid #44645045;border-radius:10px;background:#fff5;padding:6px;font-size:12px}.touch-layout .hud-nudges{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:6px 0}.touch-layout .hud-nudges button{min-width:44px}.touch-layout #hud-seam-controls{margin-top:8px}.touch-layout #hud-seam-controls label{display:block;font-size:11px}.touch-layout #hud-seams,.touch-layout #hud-seam-controls button,.touch-layout .hud-delete{width:100%;margin-top:6px}.touch-layout #hud-details .hud-delete{color:#963f32}.hud-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.touch-layout .bottom-center{top:calc(140px + var(--safe-top));bottom:auto;left:50%;width:min(340px,90vw);z-index:1}.touch-layout #alignment{font-size:12px}.touch-layout footer{height:var(--footer-height);padding:0 var(--edge-right) var(--safe-bottom) var(--edge-left);gap:8px;z-index:5}.touch-layout .status,.touch-layout .scene-actions{gap:8px}.touch-layout .scene-actions button,.touch-layout #pause{min-width:44px;font-size:12px}.touch-layout #view{font-size:24px}.touch-layout #toast{top:calc(152px + var(--safe-top));max-width:calc(100vw - 32px);width:max-content;text-align:center}.touch-layout dialog{padding:24px;max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 32px)}.touch-layout .close{min-width:44px}.touch-layout #help-dialog>p[data-t=helpText],.touch-layout #help-dialog>.key-row{display:none}.touch-layout .touch-help{line-height:1.7}@media(max-width:760px){.touch-layout .brand{font-size:24px}.touch-layout .brand-icon{display:none}.touch-layout .top-actions{gap:4px}.touch-layout .library-toggle{padding:8px}.touch-layout .library-toggle span:nth-child(2),.touch-layout #toggle-arrow{display:none}.touch-layout #touch-toolbar{gap:6px}.touch-layout #library{top:auto;left:var(--edge-left);right:var(--edge-right);width:auto;bottom:calc(var(--footer-height) + 8px);max-height:calc(100dvh - var(--safe-top) - var(--footer-height) - 148px);border-radius:16px}.touch-layout #library.closed{transform:translateY(110%)}.touch-layout #cards{grid-template-columns:repeat(3,minmax(0,1fr))}.touch-layout #counts,.touch-layout .footer-divider{display:none}.touch-layout #pause span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.touch-layout #pause{justify-content:center}.touch-layout .scene-actions{flex:1;justify-content:space-between;gap:4px}.touch-layout .scene-actions button:last-child{padding:8px}}@media(max-height:500px)and (min-width:540px){.touch-layout .brand{font-size:22px}.touch-layout #touch-toolbar{top:calc(62px + var(--safe-top))}.touch-layout #touch-hint{display:none}.touch-layout #library{top:calc(122px + var(--safe-top));bottom:calc(var(--footer-height) + 6px);max-height:none;width:270px;padding:10px;left:auto;right:var(--edge-right)}.touch-layout #cards{grid-template-columns:repeat(2,minmax(0,1fr))}.touch-layout .bottom-center{top:calc(118px + var(--safe-top))}}@media(prefers-reduced-motion:reduce){#library,.brick-card,#toast{transition:none}}.touch-layout{--footer-height: var(--safe-bottom);--hud-bottom: calc(var(--safe-bottom) + 12px)}.touch-layout .header-tool{width:44px;height:44px;flex-shrink:0}.touch-layout #library{bottom:calc(var(--safe-bottom) + 12px)}.touch-layout footer{display:none!important}@media(max-width:760px){.touch-layout #library{bottom:calc(var(--safe-bottom) + 8px);max-height:calc(100dvh - var(--safe-top) - 156px)}}@media(max-height:500px)and (min-width:540px){.touch-layout #library{bottom:calc(var(--safe-bottom) + 6px)}}.touch-layout .touch-modes,.touch-layout .touch-zoom{box-shadow:0 4px 16px #123b6a12}.touch-layout .touch-modes button[aria-pressed=true]{background:var(--ui-blue);color:#fff}.touch-layout #touch-hint,.touch-layout .hud-caption{color:#58728d}.touch-layout #brick-joystick{border-color:#3f7fbd66;box-shadow:inset 0 0 0 12px #ffffff16,0 2px 10px #123b6a12}.touch-layout #brick-joystick:focus-visible{outline-color:var(--ui-blue)}.touch-layout #brick-joystick.active{border-color:var(--ui-blue)}.touch-layout .stick-cross{color:#3f7fbd40}.touch-layout .stick-knob{border-color:#3f7fbd66;background:#eef6ff80;box-shadow:0 2px 8px #123b6a20}.touch-layout .hud-actions button{border-color:#3f7fbd66;background:#f6faff90;color:#255786;box-shadow:0 2px 8px #123b6a12}.touch-layout .hud-actions button:active{background:#dcecffcc}.touch-layout #hud-connect{background:linear-gradient(90deg,#79ace2aa var(--progress, 0%),#e5f1ffaa var(--progress, 0%))}.touch-layout #hud-details{background:#f6faffdd;box-shadow:0 3px 14px #123b6a16;color:#285680}.touch-layout #hud-details button:not(#hud-close){border-color:#3f7fbd4d}.touch-layout .brick-card:active{background:#e6f1fd}.touch-layout #library{padding:0;overflow:hidden}.touch-layout #library.collapsed{max-height:none;bottom:auto}.touch-layout .library-titlebar{min-height:42px}.touch-layout .library-body{padding:10px 12px 12px;max-height:calc(100dvh - var(--safe-top) - 198px);overflow-y:auto}@media(max-height:500px)and (min-width:540px){.touch-layout #library{padding:0}.touch-layout .library-body{max-height:calc(100dvh - var(--safe-top) - 178px)}}.touch-layout .icon-button,.touch-layout .header-tool{width:44px;height:44px;min-width:44px;min-height:44px}.touch-layout .icon-button svg,.touch-layout .header-tool svg{width:23px;height:23px}.touch-layout .library-body{display:flex;flex-direction:column;min-height:0;overflow:hidden}.touch-layout #swatches{flex:0 0 auto}.touch-layout .library-parts-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}@media(min-width:761px){.touch-layout #library{top:calc(72px + var(--safe-top))}.touch-layout .library-body{max-height:calc(100dvh - var(--safe-top) - 126px)}}.touch-layout #touch-hud{display:none!important}html.touch-layout #selection.selection{display:block}.touch-layout #selection-content{display:block;position:fixed;top:calc(62px + var(--safe-top));left:var(--edge-left);width:auto;pointer-events:auto;z-index:6}.touch-layout #selection-content .selection-minimal{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #c9d9e8cc;border-radius:10px;background:#f7fbffdd;box-shadow:0 3px 12px #15334d18;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.touch-layout #selection-content .selected-part-thumb-large{display:none}.touch-layout #selection-content .selection-icon-button{width:34px;height:34px;min-width:34px;min-height:34px;padding:6px;border-radius:8px}.touch-layout #selection-content .selection-icon-button svg{width:22px;height:22px}.touch-layout #selection-content .selection-bridge{display:none!important}@media(max-width:760px){.touch-layout{--mobile-library-height: 142px;--hud-bottom: calc(var(--safe-bottom) + var(--mobile-library-height) + 14px)}.touch-layout #touch-toolbar{display:none!important}.touch-layout #library{top:auto;left:var(--edge-left);right:var(--edge-right);bottom:calc(var(--safe-bottom) + 8px);width:auto;height:auto;max-height:var(--mobile-library-height);border-radius:14px}.touch-layout #library.collapsed{left:var(--edge-left);right:auto;bottom:calc(var(--safe-bottom) + 8px);width:132px;max-height:32px}.touch-layout .library-titlebar{height:32px;min-height:32px;grid-template-columns:20px minmax(0,1fr) 20px;gap:6px;padding:0 8px}.touch-layout .library-title-icon,.touch-layout .library-title-chevron{width:18px;height:18px}.touch-layout .library-body{display:grid;grid-template-columns:47px minmax(0,1fr);align-items:start;gap:7px;padding:6px 7px 7px;max-height:110px;overflow:hidden}.touch-layout #swatches{display:grid;grid-template-rows:repeat(4,22px);grid-auto-flow:column;grid-auto-columns:22px;align-content:start;justify-content:start;gap:3px;width:47px;margin:0;padding:0;overflow:visible;touch-action:manipulation}.touch-layout #swatches::-webkit-scrollbar{display:none}.touch-layout .swatch{width:22px;height:22px;min-width:22px;min-height:22px;border-width:4px;flex:none}.touch-layout .library-parts-scroll{display:flex;flex:1 1 auto;align-items:stretch;gap:4px;width:100%;min-width:0;min-height:0;overflow-x:auto;overflow-y:hidden;padding:0 0 2px;overscroll-behavior-x:contain;scrollbar-width:thin;touch-action:pan-x}.touch-layout .cards-grid{display:grid;grid-template-rows:repeat(2,44px);grid-auto-flow:column;grid-auto-columns:56px;width:max-content;flex:0 0 auto;gap:4px}.touch-layout .brick-card{width:56px;height:44px;min-height:44px;border-radius:8px;touch-action:pan-x}.touch-layout .cards-grid .part-preview,.touch-layout .part-preview{height:44px;padding:0 2px 11px}.touch-layout .part-card-label{left:4px;bottom:2px;max-width:calc(100% - 20px);font-size:7px}.touch-layout .brick-card .add-circle{right:2px;bottom:2px;width:16px;height:16px;font-size:11px}.touch-layout .more-parts{flex:0 0 32px;width:32px;height:92px;min-height:92px;margin:0;align-self:stretch}.touch-layout .more-cards{margin:0}}
