/* Compact editor; input text remains 16px to prevent Safari focus zoom. */
body{height:100vh;height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
.app-header,.project-bar,.mobile-dock,.status-bar{flex-shrink:0}
.editor-layout{flex:1;min-height:0;height:auto}
.library-panel,.inspector-panel{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.touch-walk{display:none}
.mobile-panel-close{display:none}
.mobile-dock{align-items:center}.mobile-dock button{display:flex;align-items:center;gap:7px}
@media(pointer:coarse){.led-grow-row button{width:44px;height:44px;flex-shrink:0}.led-grow-row .range{min-width:0}.viewport-tools .icon-button{width:40px}.viewport-top .view-switch button{min-height:44px}.viewport-tools #fullscreen-button{display:none}}
@media(max-width:760px),(pointer:coarse) and (max-width:1024px){
  .panel-tabs,.inspector-header{position:sticky;top:0;z-index:2;background:white}
  .panel-tabs .mobile-panel-close,.inspector-header .mobile-panel-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;align-self:center;width:44px;height:44px;padding:0;margin-left:auto;font-size:26px;font-weight:400;line-height:1;border-radius:8px;color:#6d5f4f;touch-action:manipulation}
  .mobile-panel-close:active{background:#fef7ee}.inspector-header .unit-badge{margin-left:auto;margin-right:8px}.inspector-header .mobile-panel-close{margin-left:0}
  .app-header{height:54px;padding:0 12px;gap:10px}.brand img{width:93px}.header-divider,.beta,.back-link{display:none}.app-title{font-size:12px;white-space:normal}
  .header-actions{gap:0}.header-actions .text-button,.header-actions .primary-button{min-height:44px}.header-actions .primary-button{font-size:10px;padding:8px}.header-actions .primary-button svg{display:none}
  .project-bar{height:92px;padding:8px 12px;display:grid;grid-template-columns:minmax(0,1fr);gap:3px;align-content:center}
  .project-title{margin:0}.project-title>div{flex-direction:row;align-items:center;gap:8px}.project-icon{display:none}
  .project-title input{font-size:16px;width:100%;flex:1;min-width:0}.save-state{font-size:10px;max-width:125px;flex-shrink:0}
  .project-actions{justify-content:space-between;gap:0}.project-actions .unit-picker{font-size:11px;gap:5px;margin:0 5px 0 0}.unit-picker select{font-size:16px;max-width:none;min-height:40px;padding:6px!important}
  .project-actions .icon-button,.project-actions .text-button{width:44px;min-width:40px;height:44px;padding:10px}.project-actions .action-divider{display:none}.project-actions .text-button>span:not([data-icon]){display:none}
  .editor-layout{display:block;position:relative}.viewport{height:100%}.library-panel,.inspector-panel{display:none;position:absolute;inset:0 auto 0 0;width:min(330px,90vw);z-index:20;box-shadow:12px 0 25px #49392722}.inspector-panel{left:auto;right:0}.editor-layout.show-library .library-panel{display:flex}.editor-layout.show-inspector .inspector-panel{display:block}
  .mobile-dock{height:52px;display:flex;gap:0;justify-content:space-around;border-top:1px solid var(--line)}.mobile-dock button{min-height:48px;flex:1;justify-content:center;font-size:12px;padding:8px 4px}.status-bar{height:30px;font-size:9px;padding:0 12px}.status-end{display:none}.snap-toggle{min-height:30px}.snap-toggle input{width:16px;height:16px}
  .viewport-top{top:10px;left:8px;right:8px;gap:4px;align-items:flex-start}.view-switch{padding:3px;gap:0}.view-switch button{min-height:40px;font-size:11px;padding:8px}.viewport-tools{padding:3px;gap:0}.viewport-tools .icon-button{width:32px;height:40px}.viewport-tools #fullscreen-button{display:none}
  .scene-caption{top:65px;left:14px;font-size:10px}.compass{display:none}.viewport-bottom{left:8px;right:8px;bottom:10px;gap:5px}.floating-toolbar{padding:4px;gap:0;max-width:none}.floating-toolbar .tool-button{min-width:39px;height:44px;padding:8px;justify-content:center}.floating-toolbar .tool-button>span:not([data-icon]){display:none!important}.floating-toolbar .action-divider{margin:0 2px}
  .zoom-tools{padding:4px;gap:0}.zoom-tools button{width:35px;height:44px}.zoom-tools span{display:none}.interaction-hint{font-size:10px;bottom:62px;max-width:100%}
  .library-panel input,.library-panel select,.inspector-panel input:not([type=range]),.inspector-panel select,dialog input,dialog select{font-size:16px!important;min-height:44px}.project-title input{min-height:28px}.search-field{min-height:46px;padding:2px 10px}.search-field input{min-height:42px}
  .category-list button{min-height:38px;font-size:12px}.catalog-card b{font-size:12px}.catalog-card small{font-size:10px}.panel-tabs{height:48px}.panel-tabs button{font-size:13px}.field-grid label,.name-field,.inspector-section h3{font-size:12px}.secondary-button,.small-button,.danger-button,.tv-presets button{min-height:42px;font-size:12px}.object-row{min-height:42px;font-size:12px}.field-help,.inspector-note p{font-size:11px}.range{height:24px}.color-options{gap:10px}.swatch,.custom-color,.custom-color input{width:32px;height:32px}
  dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:24px 20px}.floorplan-dialog{padding:0}.plan-footer{flex-wrap:wrap}.plan-footer p{width:100%;font-size:11px}.plan-footer .primary-button{min-height:44px}.plan-toolbar button{min-height:40px}.dialog-close{min-width:44px;min-height:44px}
  .walk-overlay{top:78px;left:8px;right:8px;padding:9px 12px;gap:4px;flex-wrap:nowrap}.walk-overlay>span{flex-basis:auto;font-size:11px}.walk-overlay small{font-size:0}.walk-overlay small:after{content:'화살표로 이동 · 화면을 밀어 시선 회전';font-size:10px}.walk-overlay #walk-lock{display:none}.walk-overlay #walk-exit{font-size:10px;min-height:40px;max-width:95px}
  .touch-walk:not([hidden]){position:absolute;z-index:16;bottom:91px;left:18px;display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:4px}.touch-walk button{background:#ffffffeb;border:1px solid #ebe1d6;border-radius:12px;font-size:21px;touch-action:none;user-select:none;box-shadow:0 3px 10px #553a1b10}.touch-walk button:active{background:#fdefde}.touch-walk [data-walk-key=KeyW]{grid-column:2}.touch-walk [data-walk-key=KeyA]{grid-column:1;grid-row:2}.touch-walk [data-walk-key=KeyS]{grid-column:2;grid-row:2}.touch-walk [data-walk-key=KeyD]{grid-column:3;grid-row:2}
}
@media(orientation:landscape) and (max-height:500px){
  .app-header{height:44px}.project-bar{height:44px;display:flex;padding:0 10px;gap:10px}.project-title{flex:1;min-width:80px}.save-state{display:none}.project-actions{flex:1}.project-actions .icon-button,.project-actions .text-button{height:40px}.mobile-dock{height:42px}.mobile-dock button{min-height:40px}.status-bar{display:none}.viewport-top{top:5px}.view-switch button,.viewport-tools .icon-button{min-height:34px;height:34px}.scene-caption{top:52px}.walk-overlay{top:52px;left:155px;right:8px;max-width:470px}.walk-overlay small{display:none}.touch-walk:not([hidden]){left:12px;bottom:8px}.viewport-bottom{left:auto;width:auto}.interaction-hint{display:none}
}
