:root {
  --navy: #07182c;
  --navy-2: #102a46;
  --cream: #f6f1e8;
  --gold: #d6a13d;
  --gold-light: #ffda87;
  --ink: #0d2034;
  --green: #378b70;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: white;
  background: var(--navy);
  font-synthesis: none;
}

* { box-sizing: border-box; }
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html, body, #app { width: 100%; height: 100%; margin: 0; overflow: hidden; }
html, body { position:fixed; inset:0; }
#app { overflow:clip; }
body { overscroll-behavior: none; touch-action: none; background: var(--navy); }
button, a { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:active { filter: brightness(.94); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
button { color: inherit; }
#app { position: relative; isolation: isolate; background: linear-gradient(#a7b9c4, #ded9cd); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; -webkit-touch-callout: none; user-select: none; }
.webgl-fallback { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; padding: 24px; pointer-events: none; background: radial-gradient(circle at 50% 40%, #d8d1c4 0 14%, #9cabb2 62%, #526978 100%); }
.webgl-fallback[hidden] { display: none; }
.webgl-fallback > div { width: min(360px, 82vw); max-height: calc(100% - 130px); padding: 18px 20px; overflow: auto; overscroll-behavior: contain; border: 1px solid rgba(255,255,255,.24); border-radius: 20px; text-align: center; pointer-events: auto; background: rgba(7,24,44,.76); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.webgl-fallback strong, .webgl-fallback span { display: block; }
.webgl-fallback strong { color: var(--gold-light); font: 700 19px Georgia, serif; }
.webgl-fallback span { margin-top: 6px; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.5; }
.webgl-fallback nav { display: grid; gap: 13px; margin-top: 15px; text-align: left; }
.fallback-group { display: grid; gap: 6px; }
.fallback-group > small { color: var(--gold-light); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.fallback-group > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.webgl-fallback button { min-height: 34px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: white; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; cursor: pointer; }
.webgl-fallback button.selected { border-color: #86c9a5; color: #e9fff1; background: rgba(55,139,112,.58); }
.webgl-fallback button.portal { border-color: rgba(145,214,239,.48); background: rgba(24,105,139,.42); }
.graphics-fallback .controls, .graphics-fallback .desktop-hint, .graphics-fallback .chair-prompt, .graphics-fallback .reticle, .graphics-fallback #hotspot-layer, .graphics-fallback .decorate-button { display: none; }
#hotspot-layer { position: absolute; z-index: 4; inset: 0; pointer-events: none; }

.glass {
  background: rgba(7,24,44,.72);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.topbar { position: absolute; z-index: 10; top: max(14px, env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.topbar-actions{display:flex;align-items:center;gap:8px;pointer-events:auto}
.house-help-button{width:50px;height:50px;display:grid;place-items:center;border-radius:16px;color:var(--gold-light);font-size:24px;font-weight:700;box-shadow:0 0 16px rgba(214,161,61,.14)}
.topbar button { pointer-events: auto; border: 0; cursor: pointer; }
.brand { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 8px 13px 8px 8px; text-align: left; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--navy); background: linear-gradient(145deg, var(--gold-light), var(--gold)); font: 900 18px Georgia, serif; transform: rotate(-3deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 13px; letter-spacing: .02em; }
.brand small { margin-top: 1px; color: rgba(255,255,255,.65); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.list-button { display: flex; align-items: center; gap: 9px; border-radius: 18px; padding: 8px 8px 8px 14px; }
.list-button span { font-size: 12px; font-weight: 750; }
.list-button strong { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--navy); background: var(--gold); }

.location-tools { position: absolute; z-index: 9; top: 74px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; }
.room-chip, .map-button, .decorate-button { padding: 7px 12px; border-radius: 999px; white-space: nowrap; color: rgba(255,255,255,.88); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.map-button, .decorate-button { border: 1px solid rgba(255,255,255,.15); cursor: pointer; }
.map-button span, .decorate-button span { color: var(--gold-light); margin-right: 3px; }
.decorate-button[hidden] { display: none; }

.map-panel { position: absolute; z-index: 13; top: 112px; left: 50%; width: min(360px, calc(100% - 28px)); padding: 13px; border-radius: 22px; transform: translate(-50%, -12px) scale(.97); transform-origin: top center; opacity: 0; visibility: hidden; pointer-events: none; transition: .22s ease; }
.map-panel.open { transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; pointer-events: auto; }
.map-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
.map-head small, .map-head strong { display: block; }
.map-head small { color: var(--gold-light); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.map-head strong { margin-top: 2px; font: 700 16px Georgia, serif; }
.map-head button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: white; background: rgba(255,255,255,.06); font-size: 20px; line-height: 1; cursor: pointer; }
#map-canvas { display: block; width: 100%; height: auto; border-radius: 14px; background: #0b2038; }
.map-panel > p { margin: 9px 3px 1px; color: rgba(255,255,255,.56); font-size: 9px; line-height: 1.45; }

.reticle { position: absolute; z-index: 3; left: 50%; top: 47%; width: 30px; height: 30px; transform: translate(-50%,-50%); display: grid; place-items: center; pointer-events: none; opacity: .52; }
.reticle::before, .reticle::after { content: ""; position: absolute; background: rgba(255,255,255,.8); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.reticle::before { width: 16px; height: 1px; }
.reticle::after { height: 16px; width: 1px; }
.reticle span { width: 4px; height: 4px; border: 1px solid white; border-radius: 50%; }
.follow-view .reticle { display: none; }

.world-hotspot { position: absolute; width: 40px; height: 40px; transform: translate(-50%,-50%); border: 0; border-radius: 12px; padding: 0; background: transparent; pointer-events: auto; cursor: pointer; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.world-hotspot::before { content: ""; position: absolute; inset: 1px; border-radius: 11px; opacity: .7; }
.world-hotspot .marker-core { position: absolute; inset: 3px; display: grid; place-items: center; border: 1px solid; border-radius: 9px; font-size: 15px; font-weight: 900; backdrop-filter: blur(6px); }
.world-hotspot.repair-guide::before { box-shadow: 0 0 15px rgba(227,174,72,.55); }
.world-hotspot.repair-guide .marker-core { border-color: rgba(255,216,132,.92); color: var(--gold-light); background: rgba(9,32,55,.91); }
.world-hotspot.portal-guide::before { box-shadow: 0 0 15px rgba(65,180,220,.58); }
.world-hotspot.portal-guide .marker-core { border-color: rgba(186,234,250,.9); color: white; background: rgba(24,105,139,.92); }
.world-hotspot.selected .marker-core { border-color: rgba(220,255,229,.9); color: white; background: rgba(36,112,72,.94); }
.world-hotspot.selected::after { content: "✓"; position: absolute; right: -5px; top: -5px; width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; color: white; background: var(--green); font-size: 9px; font-weight: 900; }
.world-hotspot[hidden] { display: none; }

.focus-card { position: absolute; z-index: 8; left: 50%; bottom: 146px; width: min(360px, calc(100% - 28px)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 15px; border-radius: 20px; }
.focus-card[hidden] { display: none; }
.focus-card small, .focus-card strong { display: block; }
.focus-card small { margin-bottom: 2px; color: var(--gold-light); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.focus-card strong { font-size: 13px; }
.focus-card button { min-width: 66px; padding: 11px 12px; border: 0; border-radius: 12px; color: var(--navy); background: var(--gold); font-weight: 900; cursor: pointer; }

.controls { position: absolute; z-index: 6; inset: auto 0 calc(16px + var(--safe-bottom)); display: flex; justify-content: center; align-items: end; padding: 0 22px; pointer-events: none; }
.joystick-wrap { display: grid; justify-items: center; gap: 6px; pointer-events: auto; }
.control-label { color: rgba(255,255,255,.7); font-size: 8px; font-weight: 900; letter-spacing: .22em; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.joystick { width: 112px; height: 112px; position: relative; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; touch-action: none; background: rgba(7,24,44,.48); box-shadow: inset 0 0 0 15px rgba(255,255,255,.025), 0 9px 26px rgba(0,0,0,.23); backdrop-filter: blur(7px); }
.joystick::before, .joystick::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255,255,255,.13); transform: translate(-50%,-50%); }
.joystick::before { width: 66px; height: 1px; }
.joystick::after { width: 1px; height: 66px; }
.joystick-knob { position: absolute; z-index: 2; left: 50%; top: 50%; width: 48px; height: 48px; border: 4px solid rgba(214,161,61,.68); border-radius: 50%; transform: translate(-50%,-50%); background: rgba(255,255,255,.94); box-shadow: 0 5px 13px rgba(0,0,0,.28); }
.stick-arrow { position: absolute; color: rgba(255,255,255,.55); font-size: 13px; font-weight: 900; line-height: 1; }
.stick-arrow.up { left: 50%; top: 7px; transform: translateX(-50%); }.stick-arrow.down { left: 50%; bottom: 7px; transform: translateX(-50%); }
.stick-arrow.left { left: 8px; top: 50%; transform: translateY(-50%); }.stick-arrow.right { right: 8px; top: 50%; transform: translateY(-50%); }
.desktop-hint { display: none; position: absolute; z-index: 6; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; padding: 9px 13px; border-radius: 999px; color: rgba(255,255,255,.8); font-size: 10px; letter-spacing: .04em; }
.chair-prompt { position: absolute; z-index: 7; top: 116px; right: 14px; max-width: 210px; padding: 9px 12px; border-radius: 14px; color: rgba(255,255,255,.86); font-size: 9px; line-height: 1.35; text-align: left; cursor: pointer; transition: opacity .25s ease; }
.chair-prompt span { margin-right: 5px; color: var(--gold-light); font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.chair-prompt.dismissed { opacity: 0; pointer-events: none; }

.decorate-panel { position: absolute; z-index: 14; left: 50%; bottom: calc(14px + var(--safe-bottom)); width: min(820px, calc(100% - 28px)); padding: 13px; border-radius: 22px; transform: translateX(-50%); }
.decorate-panel[hidden] { display: none; }
.decorate-copy { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 9px; margin: 0 3px 11px; }
.decorate-copy small { color: var(--gold-light); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.decorate-copy strong { font-size: 14px; }
.decorate-copy span { grid-column: 1 / -1; margin-top: 4px; color: rgba(255,255,255,.65); font-size: 12px; line-height: 1.35; }
.decorate-actions { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.decorate-actions button { min-height: 48px; display: grid; place-items: center; gap: 1px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; color: white; background: rgba(255,255,255,.075); font-size: 11px; font-weight: 800; cursor: pointer; }
.decorate-actions button span { color: var(--gold-light); font-size: 17px; line-height: 1; }
.decorate-actions button:disabled { opacity: .34; cursor: default; }
.decorate-utilities { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.decorate-utilities button { min-height: 34px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.055); font-size: 11px; font-weight: 800; cursor: pointer; }
.decorate-utilities button:disabled { opacity: .32; }
.decorate-utilities .decorate-done { color: var(--navy); border-color: var(--gold); background: var(--gold); }
.decorate-mode .controls, .decorate-mode .desktop-hint, .decorate-mode .chair-prompt, .decorate-mode .reticle, .decorate-mode #hotspot-layer, .decorate-mode .focus-card, .decorate-mode .room-chip, .decorate-mode .map-button { display: none; }
.decorate-mode #scene { cursor: grab; }
.decorate-mode #scene:active { cursor: grabbing; }

.scrim { position: absolute; z-index: 19; inset: 0; background: rgba(3,12,23,.56); backdrop-filter: blur(2px); }
.scrim[hidden] { display: none; }
.drawer { position: absolute; z-index: 20; right: 0; top: 0; width: min(440px, 100%); height: 100%; padding: max(26px, env(safe-area-inset-top)) 24px calc(22px + var(--safe-bottom)); overflow: auto; overscroll-behavior: contain; touch-action: pan-y; color: var(--ink); background: var(--cream); box-shadow: -20px 0 80px rgba(0,0,0,.3); transform: translateX(104%); transition: transform .12s ease-out; }
.drawer:not(.open) { visibility:hidden; pointer-events:none; }
.drawer.open { transform: translateX(0); }
.drawer-handle { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(13,32,52,.12); }
.drawer-head small { color: #8e6720; font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.drawer-head h2 { margin: 4px 0 0; font: 800 clamp(27px, 7vw, 38px)/.98 Georgia, serif; letter-spacing: -.03em; }
.icon-button { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid rgba(13,32,52,.15); border-radius: 50%; color: var(--ink); background: transparent; font-size: 27px; line-height: 1; cursor: pointer; }
.drawer-intro { margin: 17px 0; color: #5d6873; font-size: 12px; line-height: 1.55; }

.avatar-options { display: grid; gap: 17px; }
.avatar-option { display: grid; gap: 9px; }
.avatar-option > strong { color: var(--ink); font-size: 12px; }
.avatar-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.avatar-swatch { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid white; border-radius: 15px; color: transparent; background: var(--choice); box-shadow: 0 0 0 1px rgba(13,32,52,.14); cursor: pointer; }
.avatar-swatch.selected { box-shadow: 0 0 0 3px var(--gold); }
.avatar-swatch.selected::after { content: "✓"; color: var(--check,white); font-size: 18px; font-weight: 950; text-shadow: 0 1px 3px rgba(0,0,0,.28); }
.avatar-view-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.avatar-view { min-height: 54px; padding: 8px 10px; border: 1px solid rgba(13,32,52,.14); border-radius: 14px; color: var(--ink); background: white; font-weight: 850; cursor: pointer; }
.avatar-view small { display: block; margin-top: 3px; color: #6c7680; font-size: 9px; font-weight: 650; }
.avatar-view.selected { border-color: #b5852f; box-shadow: 0 0 0 2px rgba(214,161,61,.18); background: #fffaf0; }

.arrange-items { display: grid; gap: 9px; }
.arrange-item { width: 100%; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 72px; padding: 7px; border: 1px solid rgba(13,32,52,.11); border-radius: 16px; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.arrange-item.selected { border-color: #b5852f; box-shadow: 0 0 0 2px rgba(214,161,61,.16); }
.arrange-visual { width: 64px; height: 56px; display: block; border-radius: 11px; object-fit: cover; background: #e9e3d8; }
.arrange-item strong, .arrange-item small { display: block; }
.arrange-item strong { font-size: 13px; }.arrange-item small { margin-top: 3px; overflow: hidden; color: #6d747b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.arrange-item em { padding: 5px 7px; border-radius: 999px; color: #70511b; background: #efe1c6; font-size: 10px; font-style: normal; font-weight: 850; }
.inventory-item { padding: 10px; border: 1px solid rgba(13,32,52,.11); border-radius: 17px; background: white; }
.inventory-item.selected { border-color: #b5852f; box-shadow: 0 0 0 2px rgba(214,161,61,.16); }
.inventory-pick { width: 100%; min-height: 72px; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 0; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.inventory-pick strong, .inventory-pick small { display: block; }
.inventory-pick strong { font-size: 14px; }
.inventory-pick small { margin-top: 3px; overflow: hidden; color: #6d747b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-pick em { padding: 8px 9px; border-radius: 999px; color: white; background: var(--navy); font-size: 11px; font-style: normal; font-weight: 850; white-space: nowrap; }
.inventory-count { margin: 5px 2px 0; color: #70511b; font-size: 12px; font-weight: 800; }
.inventory-existing { display: flex; flex-wrap: wrap; gap: 6px; }
.inventory-existing button { min-height: 40px; padding: 8px 10px; border: 1px solid rgba(13,32,52,.14); border-radius: 11px; color: var(--ink); background: #f8f5ee; font-size: 12px; font-weight: 850; cursor: pointer; }
.inventory-existing { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(13,32,52,.08); }
.snapshot-image { width: 100%; display: block; border-radius: 18px; background: #d9d4ca; box-shadow: 0 12px 28px rgba(13,32,52,.15); }
.snapshot-time { margin: 10px 2px 0; color: #69737c; font-size: 11px; }
.snapshot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.snapshot-actions button { min-height: 48px; border: 1px solid rgba(13,32,52,.16); border-radius: 14px; color: var(--ink); background: white; font-weight: 850; cursor: pointer; }
.snapshot-actions button:last-child { color: white; border-color: var(--navy); background: var(--navy); }.snapshot-actions button:disabled { opacity: .45; }

.product-options { display: grid; gap: 10px; }
.product-options:empty { display: none; }
.product-card { display: grid; grid-template-columns: 1fr auto; align-items: stretch; overflow: hidden; border: 1px solid rgba(13,32,52,.11); border-radius: 17px; background: white; transition: border .2s, box-shadow .2s, transform .2s; }
.product-save{grid-column:1/-1;min-height:40px;margin:0 9px 9px;padding:8px 10px;border:1px solid rgba(42,108,119,.25);border-radius:10px;color:#1e505b;background:#edf5f3;font-size:12px;font-weight:800;text-align:center;text-decoration:none;cursor:pointer}
.product-save:disabled{opacity:.65;cursor:wait}
.house-save-status,.house-sync-status{min-height:18px;margin:8px 2px;color:#366454;font-size:12px;line-height:1.35}
.house-full-list{display:block;width:fit-content;margin:8px 0 18px;color:#225c66;font-size:14px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.product-card:hover { transform: translateY(-1px); }
.product-card.selected { border-color: #b5852f; box-shadow: 0 0 0 2px rgba(214,161,61,.18); }
.product-select { min-width: 0; display: grid; grid-template-columns: 86px 1fr 22px; align-items: center; gap: 11px; padding: 9px; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.product-visual { width: 86px; height: 72px; display: block; border-radius: 12px; object-fit: cover; background: #eee9df; }
.product-swatch { position: relative; overflow: hidden; border: 1px solid rgba(13,32,52,.1); background: linear-gradient(135deg,var(--swatch) 0 68%,var(--accent) 68% 100%); box-shadow: inset 0 0 22px rgba(255,255,255,.2); }
.product-swatch::before, .product-swatch::after { content:""; position:absolute; background:rgba(255,255,255,.24); }
.product-swatch::before { inset:12% 14%; border:2px solid rgba(255,255,255,.42); }
.product-swatch::after { width:3px; height:38%; right:23%; top:31%; border-radius:3px; background:var(--accent); box-shadow:0 0 0 1px rgba(0,0,0,.08); }
.product-swatch i { position:absolute; left:15%; right:15%; bottom:11%; height:7%; border-radius:999px; background:rgba(0,0,0,.12); }
.product-copy { min-width: 0; }.product-copy small, .product-copy strong, .product-copy em { display: block; }
.product-copy small { color: #98722c; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.product-copy strong { margin-top: 4px; font-size: 13px; line-height: 1.23; }
.product-copy em { margin-top: 4px; color: #68727b; font-size: 10px; font-style: normal; }
.product-copy .product-dimensions { display:block; margin-top:5px; color:#405b62; font-size:10px; line-height:1.35; font-weight:650; }
.product-check { opacity: 0; color: var(--green); font-size: 17px; }.product-card.selected .product-check { opacity: 1; }
.product-shop { width: 48px; display: grid; place-items: center; border-left: 1px solid rgba(13,32,52,.08); color: white; background: var(--navy); text-decoration: none; font-size: 11px; font-weight: 900; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .06em; }

.service-choice { margin-top: 22px; }
.service-choice > small { display: block; margin-bottom: 7px; color: #8e6720; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.service-choice > .linked-project-label { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(13,32,52,.1); color: #47697d; }
.service-choice > button { width: 100%; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 11px 4px; border: 0; border-top: 1px solid rgba(13,32,52,.1); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.service-choice > button:last-child { border-bottom: 1px solid rgba(13,32,52,.1); }
.service-choice > button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--navy); background: #ead9ba; font-size: 18px; }
.service-choice > button.selected { margin-inline: -6px; width: calc(100% + 12px); padding-inline: 10px; border-color: rgba(55,139,112,.26); border-radius: 12px; background: #e9f3ed; }
.service-choice > button.selected > span { color: white; background: var(--green); }
.service-choice > button.selected small { color: #34705d; font-weight: 750; }
.service-choice strong, .service-choice small { display: block; }
.service-choice strong { font-size: 12px; }.service-choice small { margin-top: 2px; color: #747d85; font-size: 10px; }
.prototype-note { margin: 10px 2px 0; color: #7a8086; font-size: 9px; line-height: 1.45; }

.empty-state { padding: 68px 20px; color: #5f6b77; text-align: center; }
.empty-state > span { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 18px; color: var(--navy); background: #ebdfc8; font-size: 28px; }
.empty-state h3 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }
.empty-state p { margin: 0; font-size: 13px; }
.service-items { margin: 0; padding: 8px 0 154px; list-style: none; }
.house-saved-products[hidden]{display:none}.house-saved-products{margin:16px 0 20px;padding:16px;border:1px solid rgba(13,32,52,.13);border-radius:17px;background:rgba(255,255,255,.58)}.house-saved-products h3{margin:0;color:var(--ink);font-size:17px}.house-saved-products>p{margin:5px 0 10px;color:#56616d;font-size:13px;line-height:1.45}.house-saved-products ul{margin:0;padding:0;list-style:none}.house-saved-products li{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:11px 0;border-top:1px solid rgba(13,32,52,.12)}.house-saved-products li strong,.house-saved-products li small{display:block}.house-saved-products li strong{color:var(--ink);font-size:14px;line-height:1.3}.house-saved-products li small{margin-top:3px;color:#68717a;font-size:12px}.house-saved-products li a{grid-column:1;color:#795216;font-size:14px;font-weight:750;text-decoration:underline;text-underline-offset:3px}.house-saved-products li button{grid-column:2;grid-row:1 / span 2;width:38px;height:38px;border:1px solid rgba(13,32,52,.18);border-radius:11px;background:transparent;color:var(--ink);font-size:23px;cursor:pointer}
.service-drawer:has(.house-saved-products:not([hidden])) .service-items{padding-bottom:10px}
.room-picture-status { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; color: #5c471d; background: #eddfc2; font-size: 11px; font-weight: 750; }
.room-picture-status[hidden] { display: none; }
.service-item { display: grid; grid-template-columns: 42px 1fr 34px; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(13,32,52,.1); }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--navy); background: #ead7b4; font-weight: 900; }
.service-item strong, .service-item small { display: block; }
.service-item strong { font-size: 13px; }.service-item small { margin-top: 3px; color: #68717a; font-size: 10px; }
.quote-badge { display: inline-block; margin-top: 7px; padding: 4px 7px; border-radius: 999px; color: #744e0a; background: #f0dfbd; font-size: 9px; font-style: normal; font-weight: 850; }
.service-product { display: block; width: fit-content; margin-top: 7px; color: #745316; font-size: 10px; font-weight: 850; text-decoration: none; }
.remove-item { width: 32px; height: 32px; border: 0; color: #7d848b; background: transparent; font-size: 20px; cursor: pointer; }
.drawer-actions { position: sticky; bottom: calc(-22px - var(--safe-bottom)); margin: 0 -24px calc(-22px - var(--safe-bottom)); padding: 16px 24px calc(22px + var(--safe-bottom)); background: linear-gradient(transparent 0, var(--cream) 13%); }
.drawer-actions > p { margin: 0 0 13px; padding-top: 15px; color: #56616d; font-size: 11px; line-height: 1.5; }
.drawer-actions > p strong { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 8px; }
.contact { min-height: 51px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 14px; text-decoration: none; font: 900 12px system-ui, sans-serif; cursor: pointer; }
.contact.secondary { color: var(--navy); border: 1px solid rgba(13,32,52,.18); background: white; }.contact.primary { color: white; border: 0; background: var(--navy); }.contact span { color: var(--gold); font-size: 16px; }

.info-copy { margin: 22px 0; color: #324154; font: 20px/1.45 Georgia, serif; }
.info-links { display: grid; border-top: 1px solid rgba(13,32,52,.12); }
.info-links a, .info-links button { width: 100%; display: flex; justify-content: space-between; padding: 16px 1px; border: 0; border-bottom: 1px solid rgba(13,32,52,.12); color: var(--ink); background: transparent; text-align: left; text-decoration: none; font-size: 13px; font-weight: 750; cursor: pointer; }.info-links span { color: #956d26; }
.service-area { margin: 24px 0 0; color: #6b747d; font-size: 11px; line-height: 1.55; }

.welcome { position: absolute; z-index: 30; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; background: radial-gradient(circle at 50% 35%, rgba(48,91,128,.86), transparent 37%), linear-gradient(150deg, #07182c, #102e4e 58%, #07182c); transition: opacity .65s ease, visibility .65s ease; }
.welcome.dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(214,161,61,.26); border-radius: 28px; pointer-events: none; }
.welcome-tag { position: absolute; top: max(28px, calc(env(safe-area-inset-top) + 15px)); padding: 7px 11px; border: 1px solid rgba(255,218,135,.28); border-radius: 999px; color: var(--gold-light); background: rgba(7,24,44,.25); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.welcome-orbit { width: 94px; height: 94px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid rgba(255,218,135,.45); border-radius: 50%; box-shadow: 0 0 0 13px rgba(214,161,61,.05), 0 0 0 27px rgba(214,161,61,.025); }
.welcome-orbit span { color: var(--gold-light); font-size: 40px; transform: translateY(-2px); }
.eyebrow { margin: 0 0 10px; color: var(--gold-light); font-size: 10px; font-weight: 900; letter-spacing: .24em; }
.welcome h1 { margin: 0; font: 800 clamp(39px, 9vw, 68px)/.94 Georgia, serif; letter-spacing: -.045em; }.welcome h1 em { color: var(--gold-light); font-weight: 400; }
.welcome > p:not(.eyebrow) { max-width: 470px; margin: 19px 0 25px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.6; }
.welcome > button { min-width: 224px; display: flex; justify-content: center; gap: 25px; padding: 16px 18px; border: 0; border-radius: 16px; color: var(--navy); background: var(--gold); box-shadow: 0 12px 32px rgba(0,0,0,.24); font-weight: 900; cursor: pointer; }
.welcome > small { margin-top: 14px; color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .05em; }

.loading { position: absolute; z-index: 35; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: white; background: var(--navy); transition: opacity .35s, visibility .35s; }
.loading.ready { opacity: 0; visibility: hidden; pointer-events: none; }
.loading span { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.16); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }.loading small { color: rgba(255,255,255,.62); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: absolute; z-index: 40; left: 50%; top: 90px; transform: translate(-50%,-14px); max-width: calc(100% - 28px); padding: 10px 15px; border-radius: 12px; opacity: 0; visibility: hidden; color: var(--navy); background: white; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 12px; font-weight: 850; white-space: nowrap; transition: .25s ease; }.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.house-chat{position:absolute;z-index:24;top:75px;right:14px;bottom:14px;width:min(430px,calc(100vw - 28px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,218,135,.6);border-radius:19px;color:#f6f8fb;background:linear-gradient(150deg,rgba(8,30,49,.98),rgba(4,16,28,.98));box-shadow:0 20px 70px rgba(0,0,0,.45),0 0 28px rgba(214,161,61,.1)}
.house-chat[hidden]{display:none}
.house-chat-head{display:flex;justify-content:space-between;align-items:center;padding:19px 20px 15px;border-bottom:1px solid rgba(255,255,255,.13)}
.house-chat-head small,.house-chat-head strong{display:block}.house-chat-head small{margin-bottom:5px;color:var(--gold-light);font-size:11px;font-weight:850;letter-spacing:.14em}.house-chat-head strong{font-size:21px;line-height:1.2}.house-chat-head button{width:38px;height:38px;border:1px solid rgba(145,207,238,.38);border-radius:11px;color:#d7ebf6;background:rgba(255,255,255,.03);font-size:25px;cursor:pointer}
.house-chat-thread{min-height:0;flex:1;display:flex;flex-direction:column;gap:12px;overflow:auto;padding:18px;overscroll-behavior:contain;touch-action:pan-y}
.house-chat-message{max-width:88%;padding:11px 13px;border:1px solid rgba(128,181,213,.35);border-radius:14px;background:rgba(18,50,72,.7);font-size:15px;line-height:1.45;white-space:pre-wrap}.house-chat-message.user{align-self:flex-end;border-color:rgba(255,218,135,.35);background:rgba(91,64,19,.43)}.house-chat-message.assistant{align-self:flex-start}.house-chat-typing{letter-spacing:4px}
.house-chat-starters{display:flex;flex-wrap:wrap;gap:7px;padding:0 18px 12px}.house-chat-starters[hidden]{display:none}.house-chat-starters button{min-height:38px;padding:7px 11px;border:1px solid rgba(145,207,238,.35);border-radius:999px;color:#e3f0f7;background:transparent;font-size:13px;cursor:pointer}
.house-chat-form{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:7px;margin:0 14px 14px;padding:5px;border:1px solid rgba(145,207,238,.45);border-radius:15px;background:rgba(0,0,0,.18)}.house-chat-form input{min-width:0;border:0;outline:0;padding:8px 9px;color:white;background:transparent;font-size:16px}.house-chat-form input::placeholder{color:#a7bac5}.house-chat-form button{min-height:42px;border:0;border-radius:11px;color:#112030;background:var(--gold-light);font-size:27px;cursor:pointer}
.house-chat-next{align-self:flex-start;padding:8px 12px;border:1px solid rgba(255,218,135,.4);border-radius:10px;color:var(--gold-light);font-size:14px;text-decoration:none}

@media (min-width: 800px) and (pointer: fine) {
  .controls { display: none; }
  .desktop-hint { display: block; }
  .focus-card { bottom: 62px; }
  .world-hotspot { width: 42px; height: 42px; }
}

@media (max-width: 640px) {
  .house-help-button{width:44px;height:44px;border-radius:14px;font-size:22px}
  .house-chat{inset:calc(68px + env(safe-area-inset-top)) 8px calc(8px + var(--safe-bottom));width:auto;border-radius:17px}
  .drawer { top: auto; bottom: 0; width: 100%; height: min(84%, 740px); padding-top: 16px; border-radius: 25px 25px 0 0; transform: translateY(104%); }
  .drawer.open { transform: translateY(0); }
  .drawer-handle { display: block; width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: rgba(13,32,52,.18); }
  .brand { border-radius: 15px; }.brand small { display: none; }.brand-mark { width: 31px; height: 31px; }
  .list-button { border-radius: 15px; }.list-button span { display: none; }.list-button strong { width: 31px; height: 31px; }
  .location-tools { top: 68px; gap: 4px; }.room-chip, .map-button, .decorate-button { padding: 7px 9px; font-size: 9px; }.map-panel { top: 105px; }
  .chair-prompt { top: auto; right: 14px; bottom: calc(32px + var(--safe-bottom)); width: 118px; max-width: none; text-align: center; }
  .contact-grid { grid-template-columns: .72fr .72fr 1.8fr; }
  .decorate-panel { bottom: calc(8px + var(--safe-bottom)); width: calc(100% - 16px); padding: 10px; border-radius: 19px; }
  .decorate-copy { margin-bottom: 8px; }.decorate-copy span { font-size: 11px; }
  .decorate-actions { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .decorate-actions button { min-height: 43px; font-size: 10px; }.decorate-actions button span { font-size: 15px; }
  .decorate-utilities { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
  .decorate-utilities button { min-height: 32px; padding: 5px 4px; font-size: 9px; }
}

@media (pointer: coarse) {
  .drawer { transition: none; }
}

@media (orientation: portrait) and (max-width: 520px) {
  .controls { bottom: calc(18px + var(--safe-bottom)); padding-inline: 14px; }.joystick { width: 108px; height: 108px; }
  .focus-card { bottom: 148px; }
}

@media (max-height: 570px) {
  .welcome-orbit { width: 65px; height: 65px; margin-bottom: 14px; }.welcome-orbit span { font-size: 30px; }
  .welcome > p:not(.eyebrow) { margin: 10px 0 15px; }.welcome > small { display: none; }
}

.room-links { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:12px; }
.room-links a { display:flex; flex-direction:column; gap:3px; min-height:53px; padding:9px 12px; border:1px solid #ffffff25; border-radius:12px; color:white; text-decoration:none; font-size:14px; font-weight:700; background:#ffffff08; }
.room-links a span { font-size:12px; color:#c2cfd4; font-weight:500; }
.room-links a[aria-current] { border-color:var(--gold); background:#d6a13d20; }
.map-panel { max-height:calc(100% - 130px); overflow:auto; touch-action:pan-y; }
#map-canvas { max-height:200px; object-fit:contain; }
.backpack-search { display:grid; gap:6px; margin:0 0 16px; font-size:14px; font-weight:750; }
.backpack-search input { width:100%; min-height:44px; padding:10px 13px; border:1px solid #b9c1c4; border-radius:12px; background:#fff; color:var(--ink); font:inherit; font-size:16px; touch-action:manipulation; }
.arrange-items { display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:10px; }
.inventory-item { padding:8px; border:1px solid #d8dad6; border-radius:18px; background:#fffdfa; overflow:hidden; }
.inventory-item[hidden],.backpack-empty[hidden] { display:none; }
.inventory-pick { display:flex; flex-direction:column; align-items:stretch; gap:6px; text-align:left; }
.inventory-pick .arrange-visual { width:100%; height:auto; aspect-ratio:6/5; object-fit:contain; border-radius:12px; background:#edf0ed; }
.inventory-pick strong { font-size:14px; line-height:1.3; }
.inventory-pick small { display:none; }
.inventory-pick em { align-self:flex-start; padding:5px 10px; border-radius:9px; color:#233e46; background:#e6eee9; font-size:12px; font-style:normal; font-weight:800; }
.inventory-count { margin:8px 0 4px; font-size:12px; color:#66747b; }
.inventory-existing { margin:0; gap:5px; }
.inventory-existing button { min-height:36px; padding:6px 8px; font-size:12px; background:white; }
.product-shop { max-width:78px; padding:10px; white-space:normal; text-align:center; font-size:12px; }
.product-visual { object-fit:contain; }
.drawer-intro { font-size:14px; line-height:1.55; }
.service-choice > button { min-height:52px; }
.backpack-empty { color:#53666e; font-size:14px; }
@media(max-width:640px){
  .location-tools { gap:5px; }
  .room-chip,.map-button,.decorate-button { min-height:40px; font-size:12px; padding:8px 10px; }
  .decorate-actions button { min-height:44px; font-size:12px; }
  .decorate-utilities button { min-height:38px; font-size:11px; }
  .drawer { padding-inline:16px; }
  .icon-button { width:44px; height:44px; }
  .chair-prompt { font-size:11px; bottom:calc(30px + var(--safe-bottom)); width:110px; }
}
@media(max-width:370px){
  .topbar { left:8px; right:8px; }
  .location-tools { width:calc(100% - 16px); justify-content:center; gap:3px; }
  .room-chip { max-width:82px; overflow:hidden; text-overflow:ellipsis; }
  .room-chip,.map-button,.decorate-button { min-height:38px; padding:7px 8px; font-size:10px; }
  .decorate-panel { width:calc(100% - 10px); padding:8px; }
  .decorate-actions { gap:4px; }
  .decorate-actions button { padding-inline:3px; font-size:10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
