.tour-mode-switch{position:absolute;z-index:34;top:90px;left:26px;display:flex;background:#fafbf7f2;border:1px solid #d7e0db;border-radius:40px;padding:4px;box-shadow:0 5px 24px #18302912}.tour-mode-switch button{min-height:40px;border:0;border-radius:32px;background:transparent;padding:9px 18px;font-size:13px;color:#495b54}.tour-mode-switch button[aria-pressed=true]{background:#254f46;color:#fff}.tour-mode-switch button:disabled{opacity:.45}#tour-studio-panel,#tour-doors-panel{position:absolute;z-index:37;right:22px;top:90px;bottom:var(--tour-ui-bottom,140px);width:min(390px,calc(100% - 36px));padding:22px;overflow:auto;overscroll-behavior:contain;background:#fafbf7f5;backdrop-filter:blur(16px);border:1px solid #d2ddd4;border-radius:12px;box-shadow:0 18px 55px #122e2a22;text-align:left}#tour-studio-panel[hidden],#tour-doors-panel[hidden],#tour-studio-open[hidden]{display:none!important}.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.studio-heading h3{font-family:serif;font-weight:500;font-size:25px;line-height:1.5;margin:3px 0}.studio-heading small{font-size:9px;letter-spacing:.16em;color:#658076}.studio-heading button{border:0;background:transparent;min-width:44px;min-height:44px;font-size:24px;color:#536861}.studio-intro{font-size:12px;line-height:1.9;color:#657970;margin:12px 0 20px}.studio-room{font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:10px}.studio-room select{font-size:16px;min-height:44px;border:1px solid #cedbd3;border-radius:5px;background:white;color:#30473e;padding:6px 10px}.studio-link{border:0;background:none;color:#367661;font-size:12px;margin:9px 0 14px;text-decoration:underline;text-underline-offset:4px;min-height:34px}.studio-palettes{display:grid;grid-template-columns:1fr 1fr;gap:9px}.studio-palettes button{background:#fff;border:1px solid #dbe3dc;border-radius:7px;padding:12px;text-align:left}.studio-palettes button[aria-pressed=true]{border:2px solid #346b57;padding:11px}.studio-palettes strong{display:block;font-size:11px;font-weight:500;margin:8px 0 4px}.studio-palettes small{font-size:9px;line-height:1.6;display:block;color:#65766f}.studio-samples{height:34px;display:flex;overflow:hidden;border-radius:4px}.studio-samples i{flex:1}.studio-colors{display:flex;gap:12px;margin:20px 0}.studio-colors label{font-size:11px;flex:1;display:flex;flex-direction:column;gap:6px}.studio-colors small{font-size:9px;color:#60766b}.studio-colors input{width:100%;min-height:40px;background:#fff;border:1px solid #dce3dc}.studio-layout{border-top:1px solid #dbe2db;border-bottom:1px solid #dbe2db;padding:12px 0;font-size:12px}.studio-layout summary{cursor:pointer;min-height:30px;line-height:30px}.studio-layout p{color:#61776c;font-size:11px;line-height:1.8}.studio-move,.studio-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.studio-move button,.studio-actions button,.door-list button{border:1px solid #ccd9d0;border-radius:5px;background:white;min-height:44px;color:#355546;font-size:12px;padding:8px}.studio-actions button[aria-pressed=true]{background:#dce8df}.studio-actions button:disabled{opacity:.4}.studio-actions button:last-child{grid-column:1/-1}.studio-fine{font-size:10px;color:#718078;line-height:1.8;margin:15px 0 0}#studio-status,#door-status{font-size:12px;line-height:1.8;color:#3c6855;min-height:42px;margin:16px 0}.door-list{display:grid;gap:13px;margin-top:20px}.door-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.door-list a{font-size:11px;color:#457461;text-decoration:underline}.door-list button{flex:1;text-align:left}#room-tour .tour-compact-bar{grid-template-columns:repeat(6,max-content)}#room-tour[data-experience-mode=creative] .tour-compact-bar{grid-template-columns:repeat(7,max-content)}#tour-studio-open{background:#eaf1e7;color:#365845}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #3781a0;outline-offset:3px}
@media(max-width:1100px){#room-tour .tour-compact-bar,#room-tour[data-experience-mode=creative] .tour-compact-bar{grid-template-columns:repeat(3,1fr);width:calc(100% - 32px)}#room-tour .tour-compact-hint,#room-tour .tour-disclaimer{grid-column:1/-1}.tour-mode-switch{top:78px;left:16px}#tour-studio-panel,#tour-doors-panel{top:132px;right:16px;bottom:var(--tour-ui-bottom,200px)}}
@media(max-width:600px){#room-tour .tour-compact-bar,#room-tour[data-experience-mode=creative] .tour-compact-bar{grid-template-columns:repeat(2,1fr);gap:6px}#tour-studio-panel,#tour-doors-panel{left:16px;right:16px;width:auto;padding:15px;bottom:calc(var(--tour-ui-bottom,210px) + 4px)}.studio-heading h3{font-size:22px}.studio-palettes{gap:6px}.studio-palettes button{padding:8px}.tour-mode-switch button{padding:8px 14px}#room-tour[data-experience-mode=creative] #tour-choices-toggle{display:none}}
@media(max-height:550px){.tour-mode-switch{top:18px;left:38%}#tour-studio-panel,#tour-doors-panel{top:78px;bottom:18px;width:360px}#room-tour .tour-compact-bar{left:16px;right:auto;transform:none;width:calc(100% - 410px);max-width:440px;grid-template-columns:1fr 1fr}}

.tour-studio-notice{grid-column:1/-1;font-size:12px;color:#80603b;margin:5px 0}.tour-studio-notice[hidden]{display:none}
@media(max-width:600px) and (min-height:551px){
 #tour-studio-panel,#tour-doors-panel{top:auto;max-height:34vh;bottom:calc(var(--tour-ui-bottom,210px) + 4px)}
 #tour-studio-panel .studio-heading,#tour-doors-panel .studio-heading{position:sticky;top:-15px;z-index:2;background:#fafbf7;margin:-15px -15px 8px;padding:10px 15px;border-bottom:1px solid #dce5de}
 .studio-heading small,.studio-intro{display:none}.studio-heading h3{font-size:19px}.studio-room select{min-height:38px}.studio-link{margin:3px 0 8px;min-height:30px}
 #room-tour .tour-compact-bar{padding:10px 12px}.studio-palettes strong{font-size:10px}
}

/* Keep the room visible while the phone's edit sheet is open. */
@media(max-width:600px) and (min-height:551px){
 #room-tour[data-studio-panel=creative] .tour-compact-bar>button,
 #room-tour[data-studio-panel=doors] .tour-compact-bar>button{display:none}
 #room-tour[data-studio-panel=creative] .tour-compact-bar,
 #room-tour[data-studio-panel=doors] .tour-compact-bar{padding:9px 12px}
}

.studio-textures{border:0;padding:0;margin:20px 0}.studio-textures legend{font-size:12px;color:#355546;margin-bottom:9px}.studio-textures>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.studio-textures button{border:1px solid #d4dfd7;border-radius:6px;padding:8px 4px;background:#fff;color:#355546;font-size:10px;min-height:68px}.studio-textures button[aria-pressed=true]{border:2px solid #346b57;padding:7px 3px;background:#f1f5ef}.studio-textures i{display:block;width:32px;height:24px;border-radius:3px;background:#e2dfd7;margin:0 auto 7px}.studio-textures [data-texture=fineplaster] i{background-color:#dedbd2;background-image:radial-gradient(#bcb8ac55 .6px,transparent .8px);background-size:3px 3px}.studio-textures [data-texture=wovenlinen] i{background:repeating-linear-gradient(90deg,#beb9aa44 0 1px,transparent 1px 3px),repeating-linear-gradient(0deg,#eee9dd 0 1px,#cfc9bc 1px 3px)}.studio-textures p{font-size:10px;color:#718078;line-height:1.7;margin:8px 0 0}

.studio-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#e9eee8;border-radius:7px;margin:12px 0 18px}.studio-tabs button{min-height:40px;border:0;background:transparent;color:#557064;border-radius:5px;font-size:12px}.studio-tabs button[aria-pressed=true]{background:#fff;color:#254f46;box-shadow:0 1px 5px #203b2610}[data-studio-tabpanel][hidden]{display:none!important}.studio-arrangements{display:grid;gap:7px;margin:0 0 18px}.studio-arrangements button{text-align:left;border:1px solid #d4ded5;background:#fff;color:#355546;border-radius:5px;padding:10px 12px;min-height:54px}.studio-arrangements strong{display:block;font-size:12px;font-weight:500}.studio-arrangements small{display:block;font-size:10px;line-height:1.6;margin-top:4px}.studio-arrangements button[aria-pressed=true]{background:#e7eee3;border-color:#46705e}.studio-move button:disabled{opacity:.45;cursor:default}#studio-clearance{font-size:12px;color:#365b47;line-height:1.7}.studio-layout .studio-room{flex-wrap:wrap}.studio-layout .studio-room select{max-width:100%}@media(max-width:600px){.studio-tabs{margin:8px 0 12px}.studio-layout{padding-top:0}}

/* Leave room for the edit sheet on short landscape screens. */
@media(max-height:550px){
 #room-tour .tour-compact-bar,#room-tour[data-experience-mode=creative] .tour-compact-bar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #room-tour[data-studio-panel=creative] .tour-compact-bar>button,#room-tour[data-studio-panel=doors] .tour-compact-bar>button{display:none}
 #room-tour .tour-compact-bar label,#room-tour .tour-compact-bar select{min-width:0;max-width:100%}
}

.studio-arrangement-compact{display:none}
@media(max-width:600px) and (min-height:551px){
 .studio-arrangements{display:none}
 .studio-arrangement-compact{display:flex}
 #studio-arrangement-note{font-size:10px;line-height:1.6;margin:6px 0 14px;color:#65766f}
 #studio-arrangement{max-width:205px;font-size:14px}
}

.storage-controls{margin:15px 0 12px;border-top:1px solid #dce3da;padding-top:14px}.storage-controls[hidden]{display:none!important}.storage-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.storage-buttons button{min-height:44px;background:#f6f8f1;border:1px solid #becfc2;border-radius:5px;color:#365a46;font-size:12px;padding:9px}.storage-buttons button:disabled{opacity:.45}.storage-status{font-size:11px;line-height:1.8;color:#51705e;margin:10px 0 0;min-height:20px}

@media(max-width:700px) and (min-height:551px){
 #room-tour:has(#tour-detail:not([hidden]) .storage-controls:not([hidden])) .tour-compact-bar>button{display:none}
 #room-tour:has(.storage-controls:not([hidden])) #tour-detail{max-height:34dvh;padding:16px}
 #tour-detail:has(.storage-controls:not([hidden]))>p:first-of-type{display:none}
 #tour-detail:has(.storage-controls:not([hidden])) #tour-detail-title{font-size:18px;line-height:1.5;margin:0 24px 8px 0}
 #tour-detail:has(.storage-controls:not([hidden])) #tour-detail-copy{font-size:12px;line-height:1.7;margin:0}
 #tour-detail .storage-controls{margin:8px 0;padding-top:8px}
}

.storage-card-heading{display:contents}
#tour-detail:has(.storage-controls:not([hidden])) .storage-card-heading{display:flex;align-items:flex-start;gap:8px;position:sticky;top:0;z-index:2;background:#fafbf8;margin:0 0 8px;padding:0 0 6px}
#tour-detail:has(.storage-controls:not([hidden])) #tour-detail-title{flex:1;margin:0}
#tour-detail:has(.storage-controls:not([hidden])) #tour-detail-close{position:static;flex-shrink:0;margin:0;width:40px;min-height:40px;background:#fafbf8;border-radius:50%}

.studio-comparison{padding:12px;background:#e6eee4;border:1px solid #bdd1c0;border-radius:7px;margin:12px 0}.studio-comparison[hidden]{display:none}.studio-comparison p{font-size:12px;color:#355546;margin:0 0 8px}.studio-comparison button{min-height:40px;width:100%;border:1px solid #9bb5a5;border-radius:5px;background:white;color:#254f46;font-size:12px}.studio-palettes button:disabled,.studio-textures button:disabled,.studio-arrangements button:disabled,.studio-colors input:disabled{opacity:.5;cursor:default}

/* Short landscape: keep editing and travel controls in separate columns. */
@media(max-height:550px) and (orientation:landscape){
 #tour-studio-panel,#tour-doors-panel{left:auto;right:16px;width:min(360px,calc(100% - 204px));padding:16px}
 #room-tour[data-studio-panel=creative] .tour-compact-bar,#room-tour[data-studio-panel=doors] .tour-compact-bar{left:16px;right:auto;width:calc(100% - 410px);max-width:440px}
 #tour-studio-panel .studio-heading,#tour-doors-panel .studio-heading{position:sticky;top:-16px;z-index:2;background:#fafbf7;margin:-16px -16px 8px;padding:8px 16px;border-bottom:1px solid #dce5de}
 #tour-studio-panel .studio-heading small,#tour-studio-panel .studio-intro{display:none}
 #tour-studio-panel .studio-heading h3,#tour-doors-panel .studio-heading h3{font-size:19px;line-height:1.5}
}
@media(max-width:700px) and (max-height:550px) and (orientation:landscape){
 #room-tour[data-studio-panel=creative] .tour-compact-bar,#room-tour[data-studio-panel=doors] .tour-compact-bar{grid-template-columns:minmax(0,1fr);padding:8px;gap:8px}
 #room-tour[data-studio-panel=creative] .tour-compact-bar label,#room-tour[data-studio-panel=doors] .tour-compact-bar label{flex-direction:column;align-items:stretch;gap:3px}
 #room-tour[data-studio-panel=creative] .tour-compact-bar select,#room-tour[data-studio-panel=doors] .tour-compact-bar select{width:100%;max-width:100%;min-width:0}
}

/* Detail cards share the same separate landscape column as editing sheets. */
@media(max-height:550px) and (orientation:landscape){
 #room-tour #tour-detail{top:78px;bottom:18px;left:auto;right:16px;width:min(350px,calc(100% - 204px));max-height:calc(100dvh - 96px);padding:16px}
 #room-tour:has(#tour-detail:not([hidden])) .tour-compact-bar>button{display:none}
 #room-tour #tour-detail:has(.storage-controls:not([hidden])) .storage-card-heading{top:-16px;margin:-16px -16px 8px;padding:8px 16px;background:#fafbf8}
 #room-tour #tour-detail .storage-controls{margin:8px 0;padding-top:8px}
}
@media(max-width:700px) and (max-height:550px) and (orientation:landscape){
 #room-tour:has(#tour-detail:not([hidden])) .tour-compact-bar{grid-template-columns:minmax(0,1fr);padding:8px;gap:8px}
 #room-tour:has(#tour-detail:not([hidden])) .tour-compact-bar label{flex-direction:column;align-items:stretch;gap:3px}
 #room-tour:has(#tour-detail:not([hidden])) .tour-compact-bar select{width:100%;max-width:100%;min-width:0}
}

@media(max-width:700px) and (max-height:550px) and (orientation:landscape){
 #room-tour:has(#tour-detail:not([hidden]) .storage-controls:not([hidden])) .tour-compact-bar{display:none}
 #room-tour #tour-detail:has(.storage-controls:not([hidden])){width:300px}
}
