.cancel-placement{display:none}.is-placing .cancel-placement{display:block;position:absolute;z-index:25;right:16px;top:16px;min-height:44px;padding:10px 16px;border:1px solid #b99052;background:#fffaf0;color:#302619;border-radius:4px;font:inherit;font-size:13px}
@media (pointer:coarse){.drag-card,[data-relocate]{touch-action:pan-y}.drag-card{cursor:pointer}.field input,.field select,.field textarea,.placement-library select,.placement-library input,.wall-editor input{font-size:16px}.placed-actions button,.model-toolbar button{min-width:44px;min-height:44px}.placement-help{font-size:13px}.swatch{min-height:44px}}
@media(max-width:760px){
html,body{height:100%;height:100dvh;overscroll-behavior:none}.app-shell{height:100dvh;grid-template-rows:60px minmax(0,1fr)}.topbar{height:60px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.top-actions{gap:5px}.top-actions button{height:44px;min-width:44px;padding:0 10px}.top-actions .icon-button:nth-child(2){display:flex}.brand img{width:82px;height:44px}.project-name{display:none}
.viewer{bottom:calc(66px + env(safe-area-inset-bottom));transition:none}.config-panel{height:min(62dvh,620px);max-height:calc(100dvh - 60px);transform:translateY(calc(100% - 66px - env(safe-area-inset-bottom)));grid-template-rows:58px 62px minmax(0,1fr) auto;border-radius:12px 12px 0 0}.config-panel.open{transform:translateY(0)}body.panel-open .viewer{bottom:min(62dvh,620px)}body.is-placing .viewer{bottom:0}.is-placing .config-panel{transform:translateY(100%)}
.sheet-handle{height:58px;touch-action:manipulation}.sheet-handle b{font-size:13px}.sheet-handle em{font-size:15px}.step-tabs{height:62px;padding:4px}.step-tabs button{height:54px;font-size:10px;gap:5px}.panel-scroll{padding:16px 14px 24px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding:16px}.panel-summary{height:auto;min-height:76px;padding:10px 14px calc(10px + env(safe-area-inset-bottom))}.panel-summary button{min-width:50px;min-height:46px}.field-row{gap:10px}.field input,.field select,.field textarea{min-height:46px;font-size:16px}.field label{font-size:12px}.field small{font-size:12px}.drag-card{min-height:66px;padding:14px 12px}.drag-card b{font-size:14px}.placed-row{align-items:flex-start}.placed-actions{flex-wrap:wrap;max-width:105px}.placed-actions button{min-height:44px}.kitchen-color{min-height:84px;font-size:12px}.cost-line{font-size:13px;gap:14px}.cost-line strong{white-space:nowrap}.facade-controls{padding:12px}
.viewer-meta{top:14px;left:14px}.quote-chip{display:none}.view-modes{top:auto;bottom:70px;right:12px;left:12px;justify-content:center;gap:6px}.view-modes button{width:auto;min-width:88px;height:44px;padding:0 10px;gap:7px;justify-content:center;font-size:11px}.view-modes button span{display:inline}.view-modes button svg{width:15px;height:15px}.camera-tools{bottom:14px;left:50%;transform:translateX(-50%);gap:0}.camera-tools button{width:44px;height:44px}.camera-tools button:nth-child(2){display:grid!important}.snap-toggle{top:83px;left:12px;font-size:11px;padding:8px}.placement-status{top:124px;left:12px;right:12px;font-size:12px}.model-toolbar{bottom:128px;max-height:45%;overflow-y:auto;width:calc(100% - 24px);padding:10px;font-size:13px}.model-toolbar button{min-height:44px}.model-toolbar input{font-size:16px}.model-toolbar label{flex-wrap:wrap}
body.panel-open:not(.is-placing) .viewer-meta,body.panel-open:not(.is-placing) .snap-toggle,body.panel-open:not(.is-placing) .placement-status,body.panel-open:not(.is-placing) .camera-tools{display:none}body.panel-open:not(.is-placing) .view-modes{bottom:10px}.is-placing .view-modes,.is-placing .camera-tools,.is-placing .snap-toggle{display:none}.is-placing .placement-status{top:78px}.is-placing .viewer-meta{display:none}.toast{bottom:calc(80px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);font-size:13px}.loading b{font-size:13px}
}
@media(max-width:380px){.field-row.three{grid-template-columns:1fr}.view-modes button{min-width:82px}.brand img{width:70px}.top-actions button{padding:0 8px}.step-tabs button{font-size:9px}}
@media(max-width:760px) and (orientation:landscape){.config-panel{height:calc(100dvh - 60px);width:52%;left:auto}.viewer,body.panel-open .viewer{bottom:0;right:52%}.config-panel:not(.open){transform:translateY(calc(100% - 66px))}body:not(.panel-open) .viewer{right:0}.is-placing .viewer{right:0}.viewer-meta,.snap-toggle,.placement-status{display:none}.view-modes{bottom:68px}.panel-scroll{padding-bottom:18px}}
@media print{.cancel-placement{display:none!important}.viewer{display:none!important}.config-panel,.config-panel.open{position:static;transform:none;height:auto;max-height:none;width:auto}.app-shell{height:auto}.panel-scroll{overflow:visible}.topbar,.sheet-handle,.step-tabs,.panel-summary{display:none!important}}

@media(max-width:760px) and (orientation:landscape){body.is-placing .viewer{right:0}}
