:root{--ink:#182620;--night:#17241f;--forest:#304f42;--gold:#ecc486;--cream:#f3f1e8;--line:#48574c;--fg:#f1f1e6;--accent:var(--gold);font-family:Inter,"Noto Sans KR",system-ui,sans-serif}
.topbar{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:22px;height:64px;flex:none;padding:0 22px;background:var(--night);border-bottom:1px solid #435247;color:var(--cream)}
.studio-brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:17px;font-weight:750;letter-spacing:-.06em}
.studio-brand b{display:grid;place-items:center;width:34px;height:34px;background:var(--gold);color:#23332a;border-radius:7px 7px 2px 7px;font:italic 800 24px/1 Georgia,serif}
.mode-nav{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #4b594e;border-radius:8px}
.mode-nav>*{display:grid;place-items:center;min-width:65px;height:33px;padding:0 9px;border-radius:5px;color:#d1dbcf;text-decoration:none;white-space:nowrap;font-size:13px;font-weight:650}
.mode-nav [aria-current]{color:#17251d;background:#e6ebda}.mode-nav a:hover{background:#34463c}
.top-actions,.map-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.topbar button,.export-menu summary{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:36px;border-radius:6px;border:1px solid #526154;background:#23362c;color:#f2f1e8;font:600 13px/1 system-ui;padding:0 12px;cursor:pointer;white-space:nowrap}
.history{display:flex;align-items:center;gap:3px}.history button{width:36px;padding:0;font-size:20px}
.topbar #play,.export-menu summary{background:var(--gold);color:#20291f;border-color:var(--gold);gap:8px}
.export-menu{position:relative}.export-menu summary{list-style:none}.export-menu summary::-webkit-details-marker{display:none}
.export-menu[open]>div{position:absolute;top:100%;margin-top:5px;right:0;width:180px;z-index:45;padding:5px;background:#26392e;border:1px solid #607061;border-radius:8px;box-shadow:0 8px 18px #101c1745}
.export-menu[open]>div>*{display:flex;justify-content:flex-start;align-items:center;margin:0;width:100%;min-height:42px;padding:0 10px;background:transparent;color:#f0f2e8;border:0;text-decoration:none;font:13px system-ui;box-sizing:border-box}
.export-menu[open]>div>*:hover{background:#375342}
.scene-editor .pane{background:#f1f0e7;color:#203129;color-scheme:light}
.scene-editor .workspace{grid-template-columns:clamp(188px,19vw,268px) minmax(0,1fr) clamp(190px,21vw,285px)}
.scene-editor .pane-heading{padding:16px 15px 12px}.pane-heading h2{margin:0;font-size:17px;letter-spacing:-.045em}.pane-heading .count{background:#e1e6d7;color:#394c3d;border-color:#b7bead}
.scene-editor .toolbar,.scene-editor .foot-note,.scene-editor .prop-block,.scene-editor .factory-panel,.scene-editor .no-selection{border-color:#c6cabb}
.scene-editor .pane button,.scene-editor .pane input,.scene-editor .pane select{background:#fbfaf3;color:#273a2d;border:1px solid #b6bdac;border-radius:5px}
.scene-editor .toolbar button,.scene-editor .object-actions button{font-size:13px;font-weight:600}
.scene-editor .left{overflow:auto;border-color:#a9b1a0}.scene-editor .right{border-color:#a9b1a0}
.scene-editor .scene-tools{padding:10px 12px 4px;gap:6px}.scene-tools input,.scene-tools button{min-width:0}
.scene-editor .node-list{min-height:88px}.scene-editor .node-row .node{background:transparent;border-color:transparent}.scene-editor .node.selected{background:#d8e3cf;border-color:#94aa8f}
.scene-editor .node .mini-cube,.scene-editor .inspector-icon,.scene-editor .node .desc,.scene-editor .field-label,.scene-editor .prop-block h3,.scene-editor .prop-block h3 span,.scene-editor .meta,.scene-editor .meta span:last-child,.scene-editor .inline-muted,.scene-editor .foot-note,.scene-editor .no-selection,.scene-editor .factory-panel label,.scene-editor .factory-note{color:#52604f}
.scene-editor .factory-panel{padding:12px 14px;background:#e6e8dc}.factory-title strong{color:#27382b;font-size:14px;letter-spacing:-.02em}
.scene-editor .factory-panel button:not(:disabled){background:#e1e8d7}.scene-editor .factory-note,.scene-editor .foot-note{font-size:11px}
.scene-editor .engine-export{border-color:#b3bdaa;font-size:13px}.scene-editor .prop-block h3{font-size:12px;letter-spacing:0}
.scene-editor .empty-hint{background:#15251cdd;border:1px solid #617461;padding:13px 17px;min-width:0;width:max-content;max-width:90%;border-radius:7px}.empty-hint p{margin:5px 0 0;color:#d0d9ce}
.scene-editor .edit-tools{background:#22352b;border:1px solid #536756}.scene-editor .edit-tools button{color:#e0e9de}.scene-editor .edit-tools .active{background:var(--gold);color:#263027}
.scene-editor .renderer-status{background:#24392d;color:#c6dbc8;border-color:#526859}.scene-editor .viewport{background:#18251e}.scene-editor .view-reset,.scene-editor .help{background:#182820e8;color:#d1ded1}
.scene-editor footer{background:#1c2b23;color:#e0e6da;border-color:#4a584a}.scene-editor footer .muted{color:#becabb}
.scene-editor .mode{background:transparent;color:#c9d7c3;border:0;font-size:11px}.scene-editor .danger{color:#8e483b!important}
:is(.scene-editor,.map-editor) :is(a,button,summary,input,select):focus-visible{outline:3px solid #538bbb;outline-offset:2px}
@media(max-width:1000px){.topbar{gap:12px;padding:0 14px}.scene-editor .mode{display:none}.scene-editor .viewport-top .axis{display:none}}
@media(max-width:770px) and (orientation:portrait){
 .topbar{height:auto;min-height:0;padding:6px 10px;display:grid;grid-template-columns:1fr auto;gap:5px 8px}
 .studio-brand{font-size:15px}.studio-brand b{width:30px;height:30px;font-size:22px}
 .mode-nav{padding:0;border:0;gap:2px}.mode-nav>*{height:44px;min-width:54px;padding:0 6px}
 .top-actions,.map-actions{grid-column:1/-1;width:100%;margin:0;border-top:1px solid #3d4b41;padding-top:4px;justify-content:flex-end;gap:6px}
 .topbar button,.export-menu summary{min-height:44px;height:44px;padding:0 12px;font-size:13px}.history{margin-right:auto}.history button{width:44px;font-size:21px}
 .map-actions button{flex:1}.scene-editor .pwa-assets-toggle{order:1}.scene-editor .export-menu{order:2}
 .scene-editor .left{flex:0 0 auto;max-height:134px;min-height:0;overflow:auto}
 .scene-editor .left .pane-heading{padding:6px 12px 4px}.scene-editor .left .pane-heading h2,.scene-editor .right .pane-heading h2{font-size:14px}
 .scene-editor .left .toolbar{position:static;display:flex;padding:2px 10px 3px;gap:5px;flex-wrap:nowrap;border:0}.scene-editor .toolbar button{height:44px;min-width:0}
 .scene-editor .left .node-list{min-height:0;flex:0 0 auto;padding:0 8px}.scene-editor .node-list:empty{display:none}
 .scene-editor .right{flex:0 0 auto;min-height:0;max-height:25dvh}.scene-editor .right .pane-heading{padding:7px 12px 3px}.scene-editor .right .no-selection{padding:3px 12px 7px;border:0}
 .scene-editor .right #properties{min-height:0;overflow:auto}.scene-editor .right .prop-block{min-width:140px}
 .scene-editor .viewport{min-height:150px}.scene-editor footer{height:24px;padding:0 8px}
 .scene-editor .viewport-top{left:12px;top:8px}.scene-editor .edit-tools{top:38px;left:10px}.scene-editor .edit-tools button{min-height:44px;min-width:44px}
 .scene-editor .viewport-bottom .help{display:none}.scene-editor .viewport-bottom{justify-content:flex-end}
 .scene-editor .pwa-asset-drawer-open .factory-panel,body.pwa-asset-drawer-open .left .factory-panel{top:111px;background:#ecede3;color:#24362a;border-color:#83947f;bottom:28px}
}
@media(max-height:500px) and (orientation:landscape){
 .topbar{height:48px;min-height:48px;padding:0 9px;gap:8px}.studio-brand{font-size:14px}
 .scene-editor .workspace{display:grid;grid-template-columns:150px minmax(200px,1fr) 165px}.scene-editor .left,.scene-editor .right{min-height:0;overflow:auto}
 .scene-editor .left .toolbar{position:static;flex-wrap:wrap}.scene-editor .left .toolbar button{min-width:36px}
 .scene-editor .left .node-list{min-height:40px}.scene-editor .viewport .axis,.scene-editor .viewport-bottom .help{display:none}
}

.play-symbol{width:0;height:0;border-left:8px solid currentColor;border-block:5px solid transparent}
.scene-editor .factory-panel input::file-selector-button{background:#dce5d6;color:#304331;border:0;border-radius:3px;padding:4px 6px;margin-right:6px}
.scene-editor .factory-panel .factory-asset{border-color:#a7b49e;color:#324c36}
.scene-editor .topbar .pwa-assets-toggle{background:#304c3f!important;color:#eff3e6!important}
@media(max-width:770px) and (orientation:portrait){.scene-editor .edit-tools button span{display:inline}.scene-editor .edit-tools button{font-size:12px;padding:0 8px}.scene-editor .placement-banner{top:96px}}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mode-nav a:focus-visible,.topbar button:focus-visible,.export-menu summary:focus-visible{outline:3px solid #9dd6e7;outline-offset:2px}
.placement-banner{pointer-events:none}
.placement-banner button{pointer-events:auto}
