@import url('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:#272c28;background:#f4f2ed;--line:#d9d9cf;--accent:#a1814e;--ink:#27372e}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #a1814e;outline-offset:4px}[hidden]{display:none!important}button{color:inherit;border:0}#gate{min-height:100dvh;padding:48px 6vw;position:relative;overflow:hidden}.gate-brand,.brand{display:flex;align-items:center;gap:17px}.monogram{font-family:Georgia,serif;font-size:42px;letter-spacing:-5px;line-height:1;margin-right:8px}.gate-brand>span:last-child{font-size:10px;letter-spacing:2px;line-height:1.8}.gate-brand small{font-size:8px;color:#888b83;letter-spacing:1.6px}.gate-content{position:relative;z-index:1;margin-top:12vh;max-width:530px}.eyebrow{font-size:9px;letter-spacing:2.5px;color:#858a80;font-weight:600}h1{font-family:'Manrope',sans-serif;font-size:clamp(48px,5.7vw,82px);line-height:1.07;letter-spacing:-4px;font-weight:500;margin:23px 0}p{color:#83877e;line-height:1.8;font-size:14px}#login{margin-top:38px;max-width:390px}#login label{font-size:9px;letter-spacing:2px;display:block;margin-bottom:12px}.pin-row{display:flex;gap:10px}.pin-row input{min-width:0;width:140px;letter-spacing:9px;border:1px solid #c8ccbf;background:#fff9;border-radius:7px;padding:13px 20px;font-size:22px}.pin-row button{background:var(--ink);color:#fff;border-radius:7px;padding:12px 22px;font-size:12px;flex:1;display:flex;align-items:center;justify-content:space-between;gap:20px}.pin-row button:disabled{opacity:.6}.pin-row button span{font-size:21px}#login-error{color:#ae4433;font-size:12px;min-height:20px;margin:8px 0}.private-note{font-size:10px;color:#8a8c80;display:flex;gap:8px;align-items:center}.private-note>span{font-size:7px;color:#899278}.gate-art{position:absolute;right:5%;top:23%;width:39%;height:54%;background:linear-gradient(135deg,#e7e7dd,#dcded2);border-radius:180px 180px 0 0;overflow:hidden}.arch{position:absolute;border:1px solid #aeb3a1;transform:skewY(-20deg)}.arch1{width:75%;height:48%;left:25%;top:38%;background:#e8e9dd}.arch2{width:52%;height:32%;left:5%;top:52%;background:#d2d6c8}.arch3{width:63%;height:11%;left:27%;top:69%;background:#b8c7be;box-shadow:15px 20px 0 #d9ddcf}.art-caption{position:absolute;bottom:25px;left:30px;right:30px;font-size:8px;letter-spacing:1.3px;display:flex;justify-content:space-between;color:#6f7968}.gate-footer{position:absolute;bottom:27px;left:6vw;right:6vw;display:flex;justify-content:space-between;font-size:8px;letter-spacing:2px;color:#92978a;border-top:1px solid var(--line);padding-top:19px}#app{height:100dvh;overflow:hidden;position:relative}#viewport{position:absolute;inset:0}#viewport canvas{display:block;touch-action:none}.topbar{position:absolute;top:0;left:0;right:0;height:90px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#f4f2edf5,#f4f2edb0,transparent);pointer-events:none}.topbar>*{pointer-events:auto}.brand strong{display:block;font-family:Manrope,sans-serif;font-size:20px;font-weight:600;letter-spacing:-.8px}.brand small{display:block;color:#888c81;font-size:8px;letter-spacing:2px;margin-top:6px}.top-actions{display:flex;align-items:center;gap:12px}.status{font-size:10px;color:#717b6b;display:flex;gap:7px;align-items:center;margin-right:12px}.status i{height:5px;width:5px;background:#859971;border-radius:100%}.icon-btn{height:36px;width:36px;background:transparent;border-radius:6px;font-size:22px}.icon-btn:hover{background:#dfe3d9}.view-label{position:absolute;top:121px;left:40px;pointer-events:none}.view-label h2{font-family:Manrope,sans-serif;font-weight:500;font-size:30px;letter-spacing:-1px;margin:10px 0 7px}.view-label>span:last-child{font-size:10px;color:#8b8f82}.side-tools{position:absolute;right:28px;top:50%;transform:translateY(-50%);background:#fafaf5eb;padding:6px;border:1px solid #d9ded1;border-radius:12px;box-shadow:0 5px 20px #1d322210;display:flex;flex-direction:column;gap:3px}.tool{width:39px;height:39px;border-radius:7px;background:transparent;font-size:22px}.tool:hover,.tool.active{background:#e7ebdf;color:#566b4c}.tool-sep{height:1px;background:var(--line);margin:4px}.panel{position:absolute;right:90px;top:50%;transform:translateY(-50%);width:280px;background:#fafbf7f5;border:1px solid #d9ded1;padding:20px;border-radius:13px;box-shadow:0 15px 45px #1d32221a;backdrop-filter:blur(15px)}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin:-6px -4px 12px 0}.panel h3{font-size:13px;font-weight:600;margin:0}.switch-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:20px 0}input[type=checkbox]{accent-color:#657751;width:17px;height:17px}.range-label{display:flex;justify-content:space-between;font-size:10px;color:#76806c;margin:22px 0 12px}input[type=range]{width:100%;accent-color:#68784f}.panel-note{font-size:10px;line-height:1.8;margin:12px 0}.panel-divider{border-top:1px solid var(--line);margin-top:20px}.model-meta{font-size:9px;letter-spacing:1px;margin-top:20px}.model-meta span{display:block;color:#91978b;font-size:9px;letter-spacing:0;margin-top:5px}.bottom-nav{position:absolute;bottom:64px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:6px;background:#fafbf7ee;border:1px solid #dce0d4;border-radius:13px;box-shadow:0 8px 24px #21332210;backdrop-filter:blur(15px)}.bottom-nav button{font-size:11px;white-space:nowrap;display:flex;gap:9px;align-items:center;border-radius:8px;background:transparent;padding:14px 18px;color:#767e6e}.bottom-nav button span{font-size:17px}.bottom-nav button.active{background:#2f4033;color:#fff}.bottom-nav button:hover:not(.active){background:#e9ece2}.bottom-note{position:absolute;bottom:23px;left:40px;right:40px;display:flex;justify-content:space-between;pointer-events:none;font-size:8px;letter-spacing:1.8px;color:#909785}.tiny-cross{font-size:14px;padding-left:12px}.loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#f9faf5ed;border:1px solid #dedfd6;border-radius:15px;padding:32px 45px;text-align:center;box-shadow:0 10px 45px #21332212;min-width:285px}.loader-mark{font-family:Georgia,serif;font-size:38px;color:#768269;letter-spacing:-5px;margin-left:-4px}.loading h3{font-size:14px;font-weight:500;margin:15px 0 8px}.loading p{font-size:10px;margin:0 0 20px}.progress-track{height:3px;background:#e0e5d8;width:100%;overflow:hidden;border-radius:2px}#progress{height:100%;width:3%;background:#8a9a76;transition:width .3s}#retry{margin-top:16px;padding:10px 18px;background:#2f4033;color:white;border-radius:6px}body.loading-model .bottom-nav{opacity:.5;pointer-events:none}
@media(max-width:700px){#gate{padding:29px 27px}.gate-content{margin-top:17vh}.gate-art{right:-95px;top:18%;width:240px;height:360px;opacity:.22}.gate-content h1{font-size:56px;letter-spacing:-3px}.gate-content p{font-size:13px}.gate-footer{left:27px;right:27px;letter-spacing:1px;font-size:7px}.topbar{height:78px;padding:0 20px}.brand .monogram{font-size:34px}.brand{gap:10px}.brand strong{font-size:18px}.brand small{font-size:7px;letter-spacing:1px}.status{display:none}.top-actions{gap:2px}.view-label{left:22px;top:102px}.view-label h2{font-size:25px}.view-label>span:last-child{font-size:9px}.side-tools{right:13px;padding:4px}.tool{width:34px;height:35px}.bottom-nav{bottom:54px;width:calc(100% - 28px);justify-content:space-between;gap:0;padding:5px}.bottom-nav button{padding:10px 7px;font-size:9px;gap:5px;flex-direction:column;flex:1}.bottom-nav button span{font-size:18px}.bottom-note{left:22px;right:22px;bottom:23px;font-size:6px;letter-spacing:1px}.panel{right:65px;width:260px;max-width:calc(100vw - 82px);padding:16px}.loading{padding:27px 32px}.eyebrow{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.scene-label{font-size:10px;color:#7b8472;display:block;margin:12px 0 8px}#saved-view{width:100%;border:1px solid #d5dbcc;background:#f4f6ef;padding:10px 8px;border-radius:5px;color:#455340;font:inherit;font-size:11px}.panel{max-height:calc(100dvh - 165px);overflow:auto}
