/* A tall, unobstructed scene with controls in their own rows. */
.house-mode header{padding-top:calc(10px + env(safe-area-inset-top))}
.house-mode main{padding:0 12px 24px;min-height:0}
.house-mode>#nav{display:none}
.home-workspace{--home-green:#438b76;--home-ink:#426b64;--home-card:#fffff1;position:relative}
.home-workspace .home-heading{margin:15px 2px 9px;gap:8px}
.home-workspace .home-heading h1{font-size:23px;margin-top:0;white-space:nowrap}
.home-workspace .home-heading>div:first-of-type>span{display:none}
.home-workspace .home-heading .home-focus-back{display:block;min-width:34px;min-height:44px;padding:4px 6px;border-radius:12px;background:#fffdf0c9;color:#668c7a;font-size:23px}
.home-heading-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.home-heading-actions button{min-height:44px;min-width:44px;border:1px solid #fff;border-radius:14px;color:#557a6d;background:#ffffeddd;padding:6px 10px;box-shadow:0 3px 8px #5a827212;font-size:10px;font-weight:750}
.home-heading-actions button b{font-size:15px;margin-right:3px;color:#398775}
.home-heading-actions [data-home-focus]{padding:5px 10px}
.home-heading-actions [data-home-focus]>span{font-size:21px;line-height:21px;display:block}
.home-heading-actions [data-home-focus]>small{font-size:9px;display:block;margin-top:2px}
.home-focus-back,.home-focus-balance{display:none}
.home-scene-meta{display:flex;align-items:center;gap:7px;margin:0 2px 9px;min-height:36px}
.home-scene-meta .world-status{position:static;display:flex;align-items:center;flex:1;gap:5px;min-width:0;font-size:10px;pointer-events:auto}
.home-scene-meta .world-status span,.home-scene-meta .world-status b{box-shadow:none;background:#f5faedb8;border:1px solid #fff9;color:#668b7e;border-radius:10px;padding:6px 7px;font-size:9px;font-weight:600;letter-spacing:0;white-space:nowrap}
.home-scene-meta .world-status span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.home-scene-meta .world-status b{margin-left:auto;flex-shrink:0}
.home-scene-meta .farm-hero-badge{position:static;transform:none;margin:0;min-height:34px;padding:6px 8px;border:1px solid #fff;border-radius:11px;box-shadow:none;background:#fff5db;color:#8b8063;font-size:10px;white-space:nowrap}
.home-scene-meta .farm-hero-badge>span{display:none}
.home-workspace .home-touch-world{margin:0;border:2px solid #fffef2;border-radius:24px;box-shadow:0 6px 0 #718e7d15,0 12px 25px #457b6818}
.home-workspace .home-touch-world .world-canvas{height:clamp(430px,70dvh,820px)}
.home-workspace .home-camera-toolbar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:10px;padding:5px;background:#fffdf1bd;border:1px solid #fff;border-radius:18px}
.home-camera-toolbar button{min-width:0;min-height:52px;border-radius:12px;color:#668373;background:transparent;padding:5px 2px;font-weight:750}
.home-camera-toolbar button>span{display:block;font-size:21px;line-height:24px}
.home-camera-toolbar button>small{display:block;margin-top:3px;font-size:10px;line-height:1.2}
.home-camera-toolbar button:hover,.home-camera-toolbar button:focus-visible{background:#e0efdd}
.home-camera-toolbar [data-room-enter],.home-camera-toolbar .workspace-room-exit{background:#e1efdc;color:#518165}
.home-camera-toolbar [data-home-view="motion"][aria-pressed=true]{background:#f3e5c4;color:#a38a55}
.home-camera-toolbar button[hidden]{display:none}
.home-workspace .home-scene-context{display:grid;gap:8px;margin:8px 0}
.home-scene-context:empty{display:none}
.home-workspace .home-build-banner,.home-workspace .island-world-tools,.home-workspace .island-battle-hud,.home-workspace .room-topbar,.home-workspace .room-entry-prompt,.home-workspace .room-decor-selection,.home-workspace .guard-banner{position:static;inset:auto;transform:none;width:auto;max-width:100%;margin:0;pointer-events:auto;backdrop-filter:none;box-shadow:0 3px 8px #577b6310}
.home-workspace .home-build-banner{display:flex;gap:7px;border-radius:14px;background:#f4f8e8;border:1px solid #fff;padding:8px 10px;align-items:center}
.home-workspace .home-build-banner>span{font-size:11px;font-weight:700;line-height:1.4}
.home-workspace .home-build-banner button{min-height:44px;padding:7px 11px;font-size:11px;border-radius:11px}
.home-workspace #island-world-tools{display:block;padding:11px;border:1px solid #fff;border-radius:17px;background:#fffdf1}
.home-workspace #island-world-tools:after{display:none}
.home-workspace #island-world-tools>div:first-child{display:flex;align-items:center;gap:9px;padding:0 2px 9px}
.home-workspace #island-selected-name{font-size:13px;color:#537c68;flex-shrink:0}
.home-workspace #island-world-hint{font-size:10px;line-height:1.6;color:#79976d;text-align:right}
.home-workspace #island-world-tools[data-valid=false] #island-world-hint{color:#bb7965}
.home-workspace .home-object-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.home-workspace .home-object-actions button{min-height:48px;font-size:18px;padding:4px;border-radius:12px;background:#eaf0dd;border:0;color:#718563}
.home-workspace .home-object-actions small{display:block;font-size:10px;margin-top:3px;color:inherit;text-align:center}
.home-workspace .home-object-actions [data-island-quick=confirm]{background:#448f75;color:#fff}
.home-workspace .home-object-actions [hidden]{display:none}
.home-workspace .island-battle-hud{border-radius:14px;display:flex;align-items:center;gap:6px;padding:8px 10px;background:#f7f3dc}
.home-workspace .island-battle-hud>span{font-size:11px;line-height:1.5;color:#708466;flex:1;min-width:0}
.home-workspace .island-battle-hud button{font-size:10px;min-height:42px;padding:7px 10px;border-radius:10px}
.home-workspace .guard-banner{padding:11px;font-size:12px;text-align:left;line-height:1.6;border-radius:13px}
.home-scene-message{margin:0;padding:10px 12px;background:#edf4df;border:1px solid #d8e5ca;border-radius:13px;color:#75906a;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.home-workspace .room-topbar{display:flex;align-items:center;padding:0;background:transparent;min-height:42px;gap:8px}
.home-workspace .room-topbar>div:first-child{padding:7px 11px;border-radius:13px;max-width:100%;flex:1;box-shadow:none;background:#fff9e9;border:1px solid #fff}
.home-workspace .room-topbar span{font-size:12px}
.home-workspace .room-topbar small{font-size:10px;line-height:1.5}
.home-workspace .room-entry-prompt{padding:8px 10px;border-radius:14px;display:flex;align-items:center;gap:6px;background:#fff6de}
.home-workspace .room-entry-prompt span{font-size:11px;line-height:1.5;color:#968866;flex:1}
.home-workspace .room-entry-prompt button{min-height:44px;border-radius:10px;font-size:11px;padding:7px 9px}
.home-workspace .room-decor-selection{background:#fff9e9;border-radius:15px;padding:10px 12px}
.home-workspace .room-decor-selection>b{font-size:13px}
.home-workspace .room-decor-selection>small{font-size:11px;line-height:1.6;margin-top:3px}
.home-workspace .room-decor-selection button{min-height:46px;font-size:11px;border-radius:11px}
.home-workspace .home-room-panel{padding:11px;margin:0 0 8px;border-radius:18px}
.home-workspace .room-action-grid{gap:5px}
.home-workspace .room-action-grid button{min-height:61px;font-size:10px;padding:7px 2px}
.home-workspace .room-action-grid span{font-size:25px}
.home-workspace .room-instruction{display:none}
.home-workspace .room-decor-bar{margin-top:9px}
.home-workspace .room-decor-bar button{min-height:44px}
.home-workspace .room-decor-list button,.home-workspace .room-decor-tabs button,.home-workspace .room-tv-controls button{min-height:44px}
.home-workspace .room-view-controls{display:none}
.home-workspace .home-tool-dock{margin:0;gap:4px;padding:5px;border-radius:18px}
.home-workspace .home-tool-dock button{min-height:61px;border-radius:13px;font-size:10px}
.home-workspace .home-tool-dock button>span{font-size:25px;line-height:28px;margin-bottom:3px}
.home-controls-help{margin-top:8px;border-radius:12px;background:#eef4e4aa;border:1px solid #ffffff8c;color:#8b9c7f}
.home-controls-help summary{font-size:10px;min-height:36px;cursor:pointer;padding:10px 12px;list-style:none;display:flex;align-items:center;gap:8px}
.home-controls-help summary>span{margin-left:auto;font-size:9px;color:#9bad91}
.home-controls-help summary:after{content:'⌄';font-size:14px}
.home-controls-help .world-guide{position:static;inset:auto;transform:none;text-align:left;background:none;border-radius:0;white-space:normal;font-size:11px;line-height:1.7;padding:0 12px;margin:0;color:#7e947c;pointer-events:auto;max-width:100%}
.home-controls-help>small{display:block;font-size:10px;line-height:1.8;padding:6px 12px 12px;color:#9ba68c}
.home-workspace [hidden],.home-drawer-notice[hidden]{display:none!important}
.home-drawer-notice{margin:0 14px 8px;flex-shrink:0;padding:8px 11px;border-radius:11px;background:#e8f0d9;color:#7c8e64;line-height:1.6;font-size:11px}
.home-workspace .home-heading>div:first-child{min-width:0}
.interior-mode .home-scene-meta{display:none}
.interior-mode .home-workspace .world-panel{margin-bottom:0}
.home-focus-open{overflow:hidden}
.home-focus>header,.home-focus>#nav{display:none}
.home-focus .home-workspace{position:fixed;z-index:40;inset:0;max-width:560px;margin:0 auto;height:100dvh;padding:calc(8px + env(safe-area-inset-top)) 10px calc(8px + env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(150deg,#d3ebe2,#edf0d8);box-shadow:0 0 0 100vmax #294e50}
.home-focus.interior-mode .home-workspace{background:linear-gradient(150deg,#e0e4ce,#f0e4ce)}
.home-focus .home-workspace .home-heading{margin:0 1px 5px;min-height:43px;flex-shrink:0}
.home-focus .home-heading>div:first-child>span{display:none}
.home-focus .home-heading h1{font-size:19px;margin:0;white-space:nowrap}
.home-focus .home-heading-actions{gap:5px}
.home-focus .home-heading-actions>[data-home-open]{display:none}
.home-focus .home-focus-back{display:block;min-width:38px;min-height:40px;padding:4px 6px;border-radius:12px;background:#fffdf0cc;color:#789381;font-size:21px}
.home-focus .home-focus-balance{display:inline-block;font-size:11px;font-weight:800;color:#8c8a60;background:#fff5dccc;border:1px solid #fff;border-radius:12px;padding:8px}
.home-focus .home-workspace .home-scene-meta{margin:0 2px 6px;min-height:30px;flex-shrink:0}
.home-focus .home-workspace .home-touch-world{flex:1;min-height:190px;overflow:hidden;display:flex}
.home-focus .home-workspace .home-touch-world .world-canvas{height:auto;min-height:0;flex:1;width:100%}
.home-focus .home-camera-toolbar{margin-top:7px;flex-shrink:0}
.home-focus .home-camera-toolbar button{min-height:47px}
.home-focus .home-camera-toolbar button>span{font-size:20px;line-height:21px}
.home-focus .home-camera-toolbar button>small{font-size:9px}
.home-focus .home-scene-context{gap:5px;margin:6px 0;flex-shrink:0}
.home-focus .home-workspace .room-topbar{display:none}
.home-focus .home-workspace .home-room-panel{max-height:190px;overflow:auto;overscroll-behavior:contain;flex-shrink:0;scrollbar-width:thin}
.home-focus .room-editing .home-room-panel{height:170px;max-height:170px;padding-top:6px;padding-bottom:6px}
.home-focus .room-editing .room-decor-bar{margin-top:0}
.home-focus .has-room-selection .room-decor-selection{padding-top:8px;padding-bottom:8px}
.home-focus .home-workspace .home-tool-dock{flex-shrink:0}
.home-focus .home-tool-dock button{min-height:57px}
.home-focus .home-controls-help{display:none}
.home-focus .island-editing .home-tool-dock{display:none}
.home-focus .home-workspace .home-build-banner{padding:5px 8px}
.home-focus .home-build-banner button{min-height:40px}
.home-focus .home-workspace #island-world-tools{padding:8px 10px}
.home-focus .home-workspace #island-world-tools>div:first-child{padding-bottom:6px}
.home-focus .home-workspace .home-object-actions button{min-height:43px}
.home-focus .home-workspace .home-scene-message{padding:7px 10px;font-size:10px}
@media(max-width:350px){.home-workspace .home-heading h1{font-size:20px}.home-workspace .home-heading>div>span{font-size:8px;letter-spacing:1.2px}.home-heading-actions button{padding:6px 8px}.home-scene-meta{gap:4px}.home-scene-meta .world-status{gap:3px}.home-scene-meta .world-status span,.home-scene-meta .world-status b{padding:6px 5px;font-size:8px}.home-scene-meta .farm-hero-badge{font-size:9px;padding:6px}.home-workspace .home-camera-toolbar{gap:3px;padding:4px}.home-camera-toolbar button>small{font-size:9px}.home-workspace .home-tool-dock{gap:2px}.home-workspace .home-room-panel{padding:9px}.home-workspace .room-action-grid{gap:3px}.home-workspace .room-action-grid button{font-size:9px}.home-focus .home-heading h1{font-size:18px}.home-focus .home-focus-balance{padding:7px 6px;font-size:10px}}
@media(max-height:720px){.home-focus .home-workspace .home-room-panel{max-height:150px}.home-focus .has-room-selection .home-room-panel{max-height:56px}.home-focus .home-workspace .home-touch-world{min-height:160px}.home-focus .home-camera-toolbar{margin-top:5px}.home-focus .home-camera-toolbar button{min-height:44px}.home-focus .home-scene-meta{min-height:28px}.home-focus .home-tool-dock button{min-height:52px}}
.home-workspace #island-world-tools,.home-build-placeholder,.home-workspace .room-decor-selection,.home-room-placeholder{height:108px;min-height:108px;box-sizing:border-box}
.home-build-placeholder,.home-room-placeholder{padding:15px;display:flex;flex-direction:column;justify-content:center;gap:7px;border:1px dashed #b9d1b8;border-radius:15px;color:#7f9779;background:#f1f6e6}
.home-build-placeholder b,.home-room-placeholder b{font-size:12px;font-weight:750}
.home-build-placeholder small,.home-room-placeholder small{font-size:10px;line-height:1.7;color:#9aa88b}
#home-battle-announcement:not(:has(.guard-banner:not([hidden]))){display:none}
@media(max-height:720px){.home-focus .room-editing .home-room-panel{height:140px;max-height:140px}}
