/* Navy menu surfaces, scoped away from the room and product swatches. */
:is(.drawer,.home-account-dialog){--cream:#102a40;--ink:#f3efe5;--menu-card:#19384f;--menu-border:#3b586d;--menu-muted:#b9c9d4;color-scheme:dark;color:var(--ink);background:var(--cream);scrollbar-color:#536f82 #102a40}
#app .drawer .drawer-head,.home-account-dialog .drawer-head{background:var(--cream);border-color:var(--menu-border)}
#app .drawer :is(.drawer-head small,.service-choice>small,.product-copy>small,.inventory-count,.mh-play-guide>summary>span){color:#e9c77e}
#app .drawer :is(.drawer-intro,.service-area,.prototype-note,.snapshot-time,.empty-state,.inventory-dimensions,.inventory-purpose,.inventory-pick small,.product-copy em,.product-dimensions,.service-choice small,.service-item small,.backpack-request span,.inventory-details>summary,.backpack-empty,.mh-play-guide-return,.mh-play-guide-body h3,.house-saved-products>p,.house-saved-products li small,.drawer-actions>p){color:var(--menu-muted)}
#app .drawer :is(.icon-button,.service-remove){color:var(--ink);border-color:var(--menu-border);background:#19384f}
#app .drawer :is(.inventory-item,.product-card,.arrange-item,.avatar-view,.avatar-camera,.snapshot-actions button,.inventory-existing button,.house-saved-products,.mh-play-guide,.info-links a,.info-links button){background:var(--menu-card);color:var(--ink);border-color:var(--menu-border)}
#app .drawer :is(.inventory-item,.product-card,.arrange-item,.avatar-view,.avatar-camera).selected{border-color:#dfb967;box-shadow:0 0 0 2px #dfb96733;background:#274557}
#app .drawer :is(.avatar-view small,.arrange-item small){color:var(--menu-muted)}
#app .drawer :is(.inventory-existing,.service-choice>button,.service-item,.house-saved-products li,.service-choice>.linked-project-label){border-color:var(--menu-border)}
#app .drawer :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background:#0b2032;color:var(--ink);border-color:#597488;caret-color:#f4d28a}
#app .drawer ::placeholder{color:#aabfce;opacity:1}
#app #arrange-drawer .backpack-filters{background:#19384f;border-color:var(--menu-border)}
#app .drawer .backpack-toolbar{background:var(--cream)}
#app #arrange-drawer .backpack-request{background:#19384f;border-color:var(--menu-border);color:var(--ink)}
#app .drawer .inventory-pick em,#app .drawer .inventory-existing button:hover{background:#e4c17a;color:#102638}
#app .drawer .inventory-tags span{background:#29495a;color:#d3e6e7}
#app .drawer .inventory-purpose{background:#294555;color:#d5e0e5}
#app .drawer :is(.backpack-shopping-actions a,.product-save,.contact.secondary){background:#24475e;border-color:#5c7b90;color:#f7dca4}
#app .drawer :is(.house-full-list,.house-saved-products li a){color:#f1ce84}
#app .drawer .product-recommendation{background:#234b45;color:#b7e4d3}
#app .drawer .product-check{color:#8bd0b0}
#app .drawer :is(.house-save-status,.house-sync-status){color:#b6ddc9}
#app .drawer :is(.room-picture-status,.house-sync-status[data-pending=true]){background:#494632;color:#f4d99f}
#app .drawer .service-choice>button.selected{background:#234a43;border-color:#648c7d}
#app .drawer .service-choice>button.selected small{color:#b6ddc9}
#app .drawer :is(.info-link,.info-links a,.service-area){border-color:var(--menu-border)}
#app .drawer .contact.primary{background:#d9b36a;color:#102638}
#app #info-drawer>.mh-hub-tools{border-color:var(--menu-border)}
#app #info-drawer>.mh-hub-tools :is(button,button svg,button small){color:#f2d595!important}
#app #info-drawer>.mh-hub-tools button:hover,#app #info-drawer>.mh-hub-tools button:focus-visible{background:#29495d!important;border-color:#657e8e}
#app #info-drawer>.mh-hub-tools #list-count{background:#dfbd77;color:#102638}
.home-account-dialog :is(.drawer-intro,.home-account-section h3,.home-account-more summary){color:var(--menu-muted)}
.home-account-dialog .home-account-close{color:var(--ink);border-color:var(--menu-border);background:var(--menu-card)}
.home-account-dialog #home-account-status{color:#b6ddc9;background:#234a43}
.home-account-dialog .home-account-more{border-color:var(--menu-border)}
.home-account-dialog .home-account-more button{color:#c7d6df!important;border-color:var(--menu-border)!important}
.home-account-dialog .home-account-more button:nth-child(3){color:#f3b2a8!important}
.home-account-dialog .home-account-section:first-child button:first-child{color:#102638}

#app .drawer .info-links span{color:#e9c77e}

#app .drawer :is(#backpack-filter-summary,#backpack-result-count,.backpack-filter-fields label){color:var(--menu-muted)}

/* Give the corner marks the same visual weight as the room tools. */
#app #info-drawer>.mh-hub-tools #fullscreen-button{gap:0!important}
#app #info-drawer>.mh-hub-tools #fullscreen-button svg{width:28px!important;height:28px!important;flex-shrink:0;stroke-width:2.2}

/* Compact color choices retain each approved product's own model/link. */
.furniture-colors{display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px;margin:8px 0;min-width:0}.furniture-colors-label{font-size:11px;font-weight:800;color:#c4d4df}.furniture-color-select{font:700 12px/1.25 system-ui;min-width:0;max-width:100%;width:100%;min-height:44px;padding:7px 9px;border:1px solid #617487;border-radius:9px;background:#102b3b;color:#edf3f5}.furniture-color-select:focus-visible{outline:3px solid #e3b24c;outline-offset:2px}.product-card>.furniture-colors{padding:0 13px}

/* Quiet furniture cards: click the picture/name, expand details only when needed. */
#app #arrange-drawer .inventory-pick{grid-template-columns:1fr;gap:7px}
#app #arrange-drawer .inventory-pick>span{min-width:0}
#app #arrange-drawer .inventory-details{margin-top:7px;border-top:1px solid var(--menu-border)}
#app #arrange-drawer .inventory-details>summary,#app #backpack-filters>summary{position:relative;display:flex;align-items:center;min-height:44px;padding:8px 32px 8px 0;gap:8px;list-style:none;line-height:1.35;cursor:pointer}
#app #backpack-filters>summary{padding-left:11px;padding-right:36px}
#app #arrange-drawer .inventory-details>summary::-webkit-details-marker,#app #backpack-filters>summary::-webkit-details-marker{display:none}
#app #arrange-drawer .inventory-details>summary::after,#app #backpack-filters>summary::after{content:"";position:absolute;right:9px;top:50%;margin:0;width:16px;height:16px;flex:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d9bd7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-position:center;background-size:16px 16px;background-repeat:no-repeat;transform:translateY(-50%)}
#app #arrange-drawer .inventory-details[open]>summary::after,#app #backpack-filters[open]>summary::after{transform:translateY(-50%) rotate(180deg)}
#app #arrange-drawer .inventory-metadata{margin:6px 0;color:var(--menu-muted);font-size:11px;line-height:1.45}
#app .drawer select,.home-account-dialog select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d9bd7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:16px 16px!important;padding-right:38px!important;min-height:44px;line-height:1.35}
@media(max-width:760px),(max-height:520px){#app #arrange-drawer .inventory-pick{display:flex;flex-direction:column;align-items:stretch}#app #arrange-drawer .inventory-pick .arrange-visual{width:100%;height:auto;aspect-ratio:4/3}}

/* Compact surface palettes keep more choices within easy reach. */
#app #product-drawer:has(.surface-finish-grid)>.drawer-head{position:sticky;top:0;z-index:5}
.finish-preview-note{margin:0 0 4px;color:#b6c6cf;font-size:12px;line-height:1.45}
.surface-finish-grid{display:grid;gap:10px;min-width:0}
.paint-finish-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.floor-finish-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.surface-finish-choice{display:flex;flex-direction:column;gap:7px;padding:7px;min-width:0;min-height:90px;border:1px solid #405767;border-radius:11px;background:#142c3c;color:#edf2f3;cursor:pointer;font:inherit;text-align:left;touch-action:manipulation}
.surface-finish-choice:hover{border-color:#a8bac4;background:#1e394b}
.surface-finish-choice.selected{border-color:#e0b653;box-shadow:inset 0 0 0 1px #e0b653}
.surface-finish-choice:focus-visible{outline:3px solid #e0b653;outline-offset:3px}
.finish-chip{position:relative;display:block;width:100%;height:45px;border:1px solid #ffffff26;border-radius:6px;background:var(--swatch)}
.floor-finish-grid .finish-chip{height:64px}
.finish-chip b{display:none;position:absolute;right:4px;top:4px;width:22px;height:22px;border-radius:50%;background:#153244;color:#f5d075;align-items:center;justify-content:center;font:700 15px system-ui;box-shadow:0 1px 3px #0005}
.selected .finish-chip b{display:flex}
.finish-choice-name{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.finish-pattern-wood{background:repeating-linear-gradient(0deg,transparent 0 13px,#0003 13px 14px),repeating-linear-gradient(3deg,var(--swatch) 0 3px,var(--accent) 4px,var(--swatch) 5px 12px)}
.finish-pattern-tile,.finish-pattern-stone{background:repeating-linear-gradient(90deg,transparent 0 31px,var(--accent) 31px 32px),repeating-linear-gradient(0deg,var(--swatch) 0 31px,var(--accent) 31px 32px)}
.finish-pattern-checker{background:conic-gradient(var(--swatch) 25%,var(--accent) 0 50%,var(--swatch) 0 75%,var(--accent) 0);background-size:40px 40px}
.finish-pattern-terrazzo{background-color:var(--swatch);background-image:radial-gradient(ellipse,var(--accent) 1.4px,transparent 2px),radial-gradient(ellipse,#fff9 1.5px,transparent 2px);background-size:11px 17px,17px 13px;background-position:0 0,5px 6px}
.finish-pattern-carpet{background:repeating-linear-gradient(30deg,transparent 0 2px,#ffffff18 2px 3px),repeating-linear-gradient(120deg,var(--swatch) 0 2px,var(--accent) 2px 3px)}
@media(min-width:700px){.paint-finish-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Compact roof-off room picker: original room links form the tap regions. */
#app .visual-room-map #map-canvas[hidden]{display:none}
#app #map-panel.visual-room-map{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));left:auto;width:min(480px,calc(100% - 24px));max-height:56dvh;padding:12px 14px;transform:translateY(-8px);transform-origin:top right;border:1px solid #4a6476;border-radius:18px;background:#102a40;color:#f3efe5;z-index:22;scrollbar-color:#536f82 #102a40}
#app #map-panel.visual-room-map.open{transform:none}
#app .visual-room-map .map-head{position:sticky;top:-12px;z-index:2;min-height:50px;padding-bottom:8px;background:#102a40}
#app .visual-room-map .map-head small{color:#e9c77e}
#app .visual-room-map #map-title{font:800 20px/1.2 system-ui}
#app .visual-room-map #map-close{width:44px;height:44px;flex:0 0 44px;font-size:26px;border:1px solid #4a6476;border-radius:50%;background:#19384f;color:#f3efe5}
.map-house-stage{position:relative;width:100%;aspect-ratio:440/360}
.map-house-stage>svg{display:block;width:100%;height:100%;pointer-events:none}
.map-house-stage .floor{stroke:#f8efd9;stroke-width:5}
.map-house-stage .active .floor{stroke:#d6a13d;stroke-width:7}
#app .map-house-stage #room-links{position:absolute;inset:0;display:block;margin:0}
#app .map-house-stage #room-links a{position:absolute;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:0;min-height:44px;min-width:44px;margin:0;padding:2px 3px 5px;border:0;border-radius:0;background:transparent;color:#173145;font:800 10px/1.1 system-ui;text-align:center;text-decoration:none;transform:skewY(10deg);transform-origin:top left}
#app .map-house-stage #room-links a:hover,#app .map-house-stage #room-links a:focus-visible{background:#f8df9259;outline:3px solid #e9bf64;outline-offset:-3px}
#app .map-house-stage #room-links a span{font:750 8px/1.1 system-ui;color:#173145}
#app .map-house-stage #room-links a:not([aria-current]) span{display:none}
#app .map-house-stage #room-links a[href*="world=backyard"]{justify-content:flex-start;padding-top:7px}
#app .visual-room-map #map-description{margin:5px 0 0;color:#c5d4df;font:11px/1.35 system-ui}
@media(min-width:761px) and (min-height:521px){#app .map-house-stage #room-links a{font-size:12px}#app .map-house-stage #room-links a span{font-size:9px}}

/* Map30: miniature room materials and labels share the menu palette. */
#app #map-panel.visual-room-map{background:linear-gradient(145deg,#19384f,#102a40 65%);box-shadow:0 18px 45px #06152266;border-color:#526c7d;padding:12px 14px 14px}
#app .visual-room-map .map-head{background:transparent;border-bottom:1px solid #7890a333;margin-bottom:6px;position:relative;top:auto}
#app .visual-room-map .map-head small{font:800 9px/1.4 system-ui;letter-spacing:.18em;color:#e9c77e}
#app .visual-room-map #map-title{font:800 21px/1.2 system-ui;letter-spacing:-.035em}
#app .visual-room-map #map-close{border-color:#6c839044;background:#28475a88;font-size:24px}
#app .visual-room-map #map-close:hover{background:#35596e}
#app .map-house-stage>svg{filter:drop-shadow(0 8px 7px #06152244)}
#app .map-house-stage .floor{stroke:none}
#app .map-house-stage #room-links a{justify-content:flex-end;padding:0 2px 7px;gap:1px;color:#f3ede1;text-shadow:0 1px 3px #071927,0 0 6px #071927;font-size:10px;font-weight:750;letter-spacing:-.02em}
#app .map-house-stage #room-links a[aria-current]{color:#ffe0a0}
#app .map-house-stage #room-links a span{color:#ffe0a0;font-size:8px;text-transform:uppercase;letter-spacing:.07em;text-shadow:0 1px 3px #071927,0 0 6px #071927}
#app .map-house-stage #room-links a[href*="world=backyard"]{justify-content:flex-start;padding-top:8px}
#app .map-house-stage #room-links a:hover,#app .map-house-stage #room-links a:focus-visible{background:#e9bf6422;outline:2px solid #efc879;outline-offset:-2px}
#app .visual-room-map #map-description{border-top:1px solid #7890a333;padding-top:10px;margin-top:0;text-align:center;font:500 11px/1.4 system-ui;color:#c7d7e1}
@media(min-width:761px) and (min-height:521px){#app .map-house-stage #room-links a{font-size:12px}#app .map-house-stage #room-links a span{font-size:9px}}
#app .map-house-stage #room-links a .map-room-name{display:block!important;padding:3px 5px;border:1px solid #8196a04d;border-radius:4px;background:#142e40ec;color:#f5efe4;font:750 10px/1.15 system-ui;letter-spacing:-.02em;text-shadow:none;white-space:nowrap;box-shadow:0 2px 3px #07192722}
#app .map-house-stage #room-links a[aria-current] .map-room-name{background:#e4c17c;color:#112a3b;border-color:#f3d79e}
#app .map-house-stage #room-links a span:not(.map-room-name){padding:2px 4px;border-radius:3px;background:#142e40d9;text-shadow:none;font-size:7px}
@media(min-width:761px) and (min-height:521px){#app .map-house-stage #room-links a .map-room-name{font-size:12px}#app .map-house-stage #room-links a span:not(.map-room-name){font-size:8px}}
#app .map-house-stage #room-links a .map-room-name{text-transform:none}
@media(max-width:360px){#app .map-house-stage #room-links a .map-room-name{font-size:9px;padding:3px}}
/* Keep the complete miniature and footer within the upper panel. */
@media(min-height:521px){#app #map-panel.visual-room-map{width:min(480px,calc(68.44dvh - 113px),calc(100% - 24px))}}
@media(max-height:520px){#app #map-panel.visual-room-map{width:min(340px,calc(100% - 24px));max-height:calc(100dvh - 24px)}}
@media(max-height:360px){#app #map-panel.visual-room-map{width:min(260px,calc(100% - 24px));padding:8px 12px}#app .visual-room-map .map-head{min-height:44px;margin-bottom:0;padding-bottom:4px}#app .visual-room-map #map-description{display:none}#app .map-house-stage #room-links a .map-room-name{font-size:9px;padding:3px}}

/* Map31: a straight-on miniature floats above the projected avatar head. */
#app #map-panel.visual-room-map{right:auto;bottom:auto;width:340px;max-height:none;height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:visible;pointer-events:none;transform:none;transition:opacity .16s;}
#app #map-panel.visual-room-map .map-head,#app #map-panel.visual-room-map #map-description{display:none}
#app #map-panel.visual-room-map .map-house-stage{aspect-ratio:443/354;margin:0;width:100%;pointer-events:auto}
#app #map-panel.visual-room-map .map-house-stage>svg{filter:drop-shadow(0 8px 9px #06152255)}
#app #map-panel.visual-room-map #room-links a{transform:none}
#app #map-panel.visual-room-map #map-close{position:absolute;top:-10px;right:-14px;width:44px;height:44px;border:0;background:none;color:#fff4dc;text-shadow:0 1px 4px #071927;pointer-events:auto;font:500 28px/1 system-ui;filter:drop-shadow(0 1px 2px #071927)}
#app #map-panel.visual-room-map #map-close:hover,#app #map-panel.visual-room-map #map-close:focus-visible{background:#102a40bb;border-radius:50%;outline:2px solid #e4c17c}
#app #map-panel.visual-room-map.map-compact #room-links a .map-room-name{font-size:8px;padding:2px}
#app #map-panel.visual-room-map.map-compact #room-links a span:not(.map-room-name){font-size:6px;padding:1px 2px}

/* Retire introductory walking hints after actual movement. */
#app[data-movement-learned=true] .desktop-hint,#app[data-movement-learned=true] .mh-character-controls:not(.look-ready):not(.looking) .mh-character-hint{display:none!important}

/* Room reset lives inside Orbit tools, never as a floating walk-mode control. */
#app.mh008-arrange #decorate-panel #decorate-reset:not([hidden]){display:flex!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:auto!important;max-width:none!important;min-height:44px!important;min-width:76px!important;padding:9px 12px!important;font:600 12px/1.2 system-ui!important;align-items:center;justify-content:center;gap:6px;grid-column:auto!important}
#app.mh008-arrange #decorate-panel #decorate-reset:not([hidden]) span[aria-hidden="true"]{display:inline!important}
