.room-open{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:44px;margin:12px 0;padding:10px 14px;border:1px solid #cec5b9;background:transparent;color:inherit;font-size:13px;cursor:pointer}
.room-open[hidden],.room-preview [hidden]{display:none!important}
.room-open svg{flex-shrink:0}
.room-preview{padding:0;border:0;width:min(1120px,94vw);max-width:none;max-height:94dvh;background:#f7f4ee;color:#242838;overflow:auto}
.room-preview::backdrop{background:rgba(17,22,32,.65)}
.room-preview *{box-sizing:border-box}
.room-preview button,.room-preview select,.room-preview input{font:inherit;color:inherit}
.room-preview button,.room-preview select,.room-preview input:not([type=range]){min-height:44px;border:1px solid #cec5b9;background:transparent;padding:10px 13px}
.room-preview button,.room-preview summary{cursor:pointer}
.room-preview button:focus-visible,.room-preview input:focus-visible,.room-preview select:focus-visible,.room-preview [tabindex]:focus-visible,.room-preview summary:focus-visible{outline:2px solid #b5764a;outline-offset:3px}
.room-preview__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;border-bottom:1px solid #ddd5ca}
.room-preview__header h2{margin:0;font-size:clamp(22px,3vw,30px);line-height:1.15;font-weight:400}
.room-preview .room-preview__close{border:0;font-size:28px;line-height:1;padding:4px;flex:0 0 44px}
.room-preview__intro{max-width:520px;margin:0 auto;padding:52px 24px;text-align:center}
.room-preview__intro>svg{color:#8c8173;margin-bottom:12px}
.room-preview__intro>p{line-height:1.6;margin:12px 0 22px}
.room-preview .room-preview__primary{background:#283249;color:#fff;border-color:#283249;width:100%;font-weight:500}
.room-preview .room-preview__privacy{font-size:12px;line-height:1.55;color:#696860;margin:18px 0 0}
.room-preview__workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:480px}
.room-preview__visual{min-width:0;background:#e7e1d7;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;overflow:hidden}
.room-preview__stage{position:relative;flex:none;isolation:isolate;overflow:hidden;touch-action:none;max-width:100%}
.room-preview__photo{display:block;width:100%;height:100%;object-fit:fill;user-select:none;pointer-events:none}
.room-preview__poster{position:absolute;left:0;top:0;transform-origin:0 0;background:#fff;cursor:grab;box-shadow:2px 4px 9px rgba(0,0,0,.2);touch-action:none;user-select:none}
.room-preview__poster:active{cursor:grabbing}
.room-preview__poster>div{width:100%;height:100%;background:#fff}
.room-preview__poster img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.room-preview__poster[data-metal=true]{box-shadow:1px 2px 3px rgba(0,0,0,.28),0 0 0 1px #6c6c68}
.room-preview__poster[data-metal=true]::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,rgba(255,255,255,.07),transparent 55%,rgba(255,255,255,.02))}
.room-preview__guides{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.room-preview .room-preview__handle{position:absolute;width:44px;height:44px;min-height:44px;transform:translate(-50%,-50%);padding:0;border:2px solid #fff;background:#283249;color:white;font-size:14px;box-shadow:0 1px 5px #0006;touch-action:none}
.room-preview .room-preview__handle--measure{background:#915730}
.room-preview__hint{font-size:12px;text-align:center;line-height:1.5;margin:14px 0 0;color:#54554f}
.room-preview__controls{padding:24px;min-width:0;font-size:13px;display:flex;flex-direction:column;gap:10px}
.room-preview__controls label{font-weight:500}
.room-preview__controls select,.room-preview__controls input:not([type=range]){width:100%;font-size:16px}
.room-preview__status{font-size:12px;line-height:1.5;color:#66655e;margin:0 0 4px;min-height:36px}
.room-preview__adjust>button{width:100%}
.room-preview details{border-top:1px solid #ddd5ca;margin:14px 0;padding-top:4px}
.room-preview summary{padding:10px 0;min-height:44px}
.room-preview details>label{display:block;margin-top:8px}
.room-preview input[type=range]{width:100%;min-height:44px;accent-color:#915730;touch-action:pan-y}
.room-preview details>button{width:100%;margin:5px 0}
.room-preview__calibration,.room-preview__wall{display:flex;flex-direction:column;gap:10px}
.room-preview__calibration>p,.room-preview__wall>p{line-height:1.55;margin:0}
.room-preview__secondary{display:flex;flex-wrap:wrap;gap:4px;justify-content:space-between}
.room-preview .room-preview__secondary button{border:0;text-decoration:underline;text-underline-offset:3px;font-size:12px;padding:6px 0}
.room-preview__error{color:#873d2f;padding:12px 24px;line-height:1.5;margin:0}
@media(max-width:700px){
  .room-preview{width:100%;height:100dvh;max-height:100dvh;margin:0}
  .room-preview__header{padding:12px 16px;position:sticky;top:0;z-index:4;background:#f7f4ee}
  .room-preview__intro{padding:40px 24px}
  .room-preview__workspace{grid-template-columns:1fr;min-height:0}
  .room-preview__visual{padding:12px}
  .room-preview__controls{padding:16px 20px calc(20px + env(safe-area-inset-bottom));gap:8px}
  .room-preview__status{min-height:0}
  .room-preview__hint{margin-top:9px}
  .room-preview details{margin:10px 0}
}
