@import url("collection-room-v3.css");

.room-stage{--room-view-height:clamp(350px,49vw,720px);display:grid;grid-template-columns:minmax(0,1fr) clamp(215px,23vw,294px);grid-template-rows:var(--room-view-height);overflow:hidden;border-radius:16px 16px 0 0}
.room-stage .room-frame{border-radius:0}
.room-stage .room-viewport{height:100%}
.room-outliner{min-width:0;display:flex;flex-direction:column;overflow:auto;background:#e8dfd1;color:#302b25;padding:16px 12px;border-left:1px solid #8c765839}
.room-outliner[hidden],.room-list:empty{display:none}
.room-outliner h2,.room-outliner h3{font-size:13px;font-weight:600;margin:0 4px 10px}
.room-list{display:grid;gap:4px;list-style:none;padding:0;margin:0;min-height:72px;max-height:295px;overflow-y:auto;scrollbar-width:thin}
.room-list-row{display:grid;grid-template-columns:minmax(0,1fr) 40px;border-radius:7px}
.room-list-row:has([aria-current="true"]){background:#d7d7c7}
.room-outliner button{font:inherit;color:inherit;border:0;background:transparent;cursor:pointer}
.room-outliner button:hover{background:#ffffff58}
.room-outliner button:focus-visible,.room-outliner input:focus-visible{outline:2px solid #61704e;outline-offset:-2px}
.room-outliner .room-item-name{text-align:left;font-size:12px;line-height:1.5;padding:8px;min-height:40px;overflow-wrap:anywhere;border-radius:7px 0 0 7px}
.room-outliner .room-eye{display:grid;place-items:center;min-height:40px;border-radius:0 7px 7px 0}
.room-eye svg{width:17px;height:17px}
.room-eye .eye-slash{display:none}
.room-eye[aria-pressed="false"] .eye-slash{display:block}
.room-eye[aria-pressed="false"],.room-list-row:has(.room-eye[aria-pressed="false"]) .room-item-name{color:#6b6154}
.room-list-empty{font-size:12px;line-height:1.5;margin:0 4px;color:#6b6154}
.room-parts{flex:none;margin-top:15px;padding-top:14px;border-top:1px solid #8c765839}
.room-parts [data-room-part-controls]{display:grid;gap:5px}
.room-outliner .room-part-toggle{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;border-radius:6px;border:1px solid #75654a38;background:#f7f0e7;font-size:12px;text-align:left}
.room-part-toggle [data-part-state]{color:#526144;white-space:nowrap}
.room-part-toggle[aria-pressed="false"] [data-part-state]{color:#716357}
.room-part-range{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:5px 7px 4px;font-size:12px}
.room-part-range input{grid-column:1/-1;width:100%;margin:1px 0;accent-color:#556347}
.room-part-range output{font-variant-numeric:tabular-nums}
@media(max-width:740px){
  .room-stage{--room-view-height:clamp(325px,95vw,520px);grid-template-columns:minmax(0,1fr);grid-template-rows:var(--room-view-height) auto}
  .room-outliner{border-left:0;border-top:1px solid #8c765839}
  .room-list{max-height:176px}
  .room-list-row{grid-template-columns:minmax(0,1fr) 44px}
  .room-outliner .room-item-name,.room-outliner .room-eye{min-height:44px}
}

.room-part-choice{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px 7px;font-size:12px}
.room-part-choice select{min-width:0;max-width:68%;padding:.2rem;color:#2c302a;background:#fffdf7;border:1px solid #a29d91;border-radius:4px;font:inherit}
