:root{font-family:system-ui,"Segoe UI",Tahoma,Arial,sans-serif;color:#1c3341;background:#f3f1ed}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f3f1ed}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit}.studio-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#102635;color:#f6e2ba;padding:14px clamp(15px,2vw,34px);flex-wrap:wrap}.studio-head a{text-decoration:none;font-weight:750}.studio-head .brand{display:flex;align-items:center;gap:11px}.brandmark{background:#d2ae72;border-radius:12px;color:#102635;display:grid;place-items:center;width:38px;height:38px}.studio-head .links{display:flex;gap:16px;font-size:.85rem}.studio-head .links a:last-child{color:#d9b87c}.studio{max-width:1650px;padding:clamp(12px,2vw,27px);margin:auto}.studio-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.studio-title small{color:#a77d3f;font-weight:800;letter-spacing:.1em}.studio-title h1{font-size:clamp(1.55rem,3vw,2.45rem);margin:5px 0}.studio-title p{color:#687783;margin:0;line-height:1.7;font-size:.94rem}.workspace{display:grid;grid-template-columns:minmax(320px,390px) minmax(0,1fr);gap:18px;align-items:start}.controls,.scene-panel{background:#fff;border:1px solid #e4ded4;border-radius:20px;box-shadow:0 8px 30px #132d3c0b;min-width:0}.controls{position:sticky;top:12px;height:calc(100dvh - 24px);max-height:860px;display:flex;flex-direction:column;overflow:hidden;padding:15px}.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:13px;flex:none}.step{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:61px;border:1px solid #e7e0d5;border-radius:11px;background:#faf9f6;color:#435867;padding:8px 3px;font-size:.72rem;font-weight:730}.step b{display:grid;place-items:center;border-radius:50%;width:21px;height:21px;font-size:.75rem;background:#e8e4dd}.step[aria-selected=true]{background:#162f40;color:#f7e1b9}.step[aria-selected=true] b{background:#ba985f;color:#102635}.step:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #c39c59;outline-offset:2px}.control-scroll{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:6px 4px 16px}.stage{display:none}.stage.is-active{display:block}.stage h2{font-size:1.1rem;color:#1e3748;margin:5px 0 9px}.stage .help{color:#6a7981;font-size:.85rem;line-height:1.65;margin:0 0 15px}.stage label{display:block;margin:13px 0 6px;font-size:.89rem;font-weight:720}.stage input,.stage select,.stage textarea{width:100%;padding:11px 12px;border:1px solid #d6d0c6;border-radius:10px;background:#fff;min-height:45px;color:#243d4c}.stage input[type=range]{padding:0;accent-color:#b38e56;min-height:34px}.stage input[type=file]{height:auto;font-size:.83rem}.stage .inline{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stage .action{min-height:44px;background:#173142;border:0;color:#fce4b9;border-radius:10px;padding:10px 15px;font-size:.88rem;font-weight:750}.stage .muted-action{border:1px solid #cbbda8;background:#fff;color:#2b4657}.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:440px;overflow-y:auto;padding:4px;scrollbar-width:thin}.material{border:1px solid #e3ddd3;border-radius:11px;background:#fff;padding:5px;color:#283e4b;display:grid;gap:6px;min-width:0}.material[aria-pressed=true]{outline:2px solid #b18b52;background:#fff8eb}.material img{width:100%;height:97px;object-fit:cover;border-radius:7px;background:#ece8e0}.material span{font-size:.76rem;line-height:1.4}.stage .note{border:1px solid #e7d8b9;background:#fff9ee;padding:11px;border-radius:10px;font-size:.79rem;line-height:1.75;color:#705a3b}.sticky-actions{flex:none;border-top:1px solid #e9e5de;padding-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.sticky-actions button{min-height:46px;border-radius:10px;border:1px solid #c3a36c;background:#172f40;color:#f8e1bb;padding:10px;font-weight:760;font-size:.83rem}.sticky-actions .secondary{background:#fff;color:#284353;border-color:#ded6c8}.scene-panel{padding:clamp(12px,1.7vw,22px);min-height:0}.scene-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:11px}.scene-heading h2{font-size:1.12rem;margin:0}.scene-actions{display:flex;flex-wrap:wrap;gap:7px}.scene-actions button{border:1px solid #d8d1c7;background:#fff;color:#34495a;padding:9px 12px;border-radius:9px;font-size:.8rem;font-weight:650}.scene-actions button[aria-pressed=true]{background:#172e40;color:#f8e1b9}.scene-frame{position:relative;background:#e6e3dd;border-radius:16px;overflow:hidden;aspect-ratio:4/3;box-shadow:inset 0 0 0 1px #dfdbd3;min-height:350px}.scene-frame canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.scene-frame canvas:active{cursor:grabbing}.scene-hint{position:absolute;inset:auto 14px 14px auto;background:#0d273bbd;color:#fff;padding:10px 13px;font-size:.76rem;border-radius:9px;pointer-events:none;max-width:75%;line-height:1.5}.scene-chip{position:absolute;inset:14px auto auto 14px;background:#fffdfaef;color:#203b4c;padding:8px 12px;border-radius:99px;font-size:.74rem;font-weight:800}.scene-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.scene-bottom small{color:#6e7c84;line-height:1.65;font-size:.8rem}.scene-bottom .main-actions{display:flex;gap:8px;flex-wrap:wrap}.scene-bottom button,.scene-bottom a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;background:#163040;border:0;color:#fbe3b9;text-decoration:none;padding:10px 15px;border-radius:10px;font-weight:740;font-size:.86rem}.scene-bottom .outline{background:#fff;border:1px solid #d7c9b0;color:#294254}.status{color:#3c6275;font-size:.83rem;line-height:1.6;min-height:1.5em}.suggestion{white-space:pre-wrap;background:#f8f6f1;border:1px solid #e6dfd3;border-radius:11px;padding:12px;line-height:1.85;font-size:.84rem;color:#3c5360;margin-top:12px}.toggle-before{position:absolute;inset:0;background:#101f3245;border:0;color:#fff;display:none;font-size:1rem;font-weight:700}.toggle-before.active{display:block}.review-summary{border:1px solid #e9e2d7;border-radius:12px;padding:13px;line-height:1.9;font-size:.87rem;color:#3b5664}.studio-foot{margin-top:18px;text-align:center;font-size:.75rem;line-height:1.75;color:#788590}@media(max-width:1100px){.workspace{grid-template-columns:minmax(290px,350px) minmax(0,1fr)}.scene-frame{min-height:290px}}@media(max-width:760px){.workspace{display:flex;flex-direction:column}.controls{order:2;position:relative;top:auto;width:100%;height:auto;max-height:none;overflow:hidden}.control-scroll{max-height:min(53dvh,520px);min-height:230px}.scene-panel{order:1;width:100%}.scene-frame{min-height:0;aspect-ratio:4/3}.studio-title{margin-bottom:12px}.scene-hint{font-size:.67rem;padding:7px 9px}.scene-chip{font-size:.65rem}.scene-bottom{align-items:start}.scene-bottom .main-actions{width:100%}.scene-bottom .main-actions button{flex:1}.studio-head{padding:10px 14px}.steps{margin-bottom:9px}}@media(max-width:410px){.step{font-size:.65rem;min-height:58px}.scene-actions button{font-size:.72rem;padding:7px}.sticky-actions button{font-size:.75rem}.material img{height:78px}.scene-heading h2{font-size:.98rem}}