.home-plan{margin:20px 0;min-width:0;color:var(--ink);font-size:1rem}
.hp-header,.hp-header-actions,.hp-modal-head,.hp-floors,.hp-selection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.hp-header{margin-bottom:14px}.hp-header>div{min-width:0}.hp-header h3{margin:4px 0;font-size:1.25rem}.hp-header small,.hp-selected small{display:block;color:#65594c;font-size:.9rem;line-height:1.5}.hp-header-actions{justify-content:flex-start}.hp-floors{justify-content:flex-start;margin:12px 0}
.hp-map-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #cbbcaa;border-radius:12px;background:#faf6ee;scrollbar-width:thin;touch-action:pan-x pan-y}.hp-map{position:relative;min-width:680px;width:100%;aspect-ratio:1000/650;isolation:isolate}.hp-drawing{display:block;width:100%;height:100%}.hp-wall{fill:none;stroke:#786654;stroke-width:7;stroke-linecap:square}.hp-door{stroke:#95714e;stroke-width:2;fill:none}.hp-window{stroke:#76a6b5;stroke-width:8}.hp-fixture{stroke:#6f6558;stroke-width:2;fill:#efe9da}.hp-furniture-base{fill:#c4a581;filter:drop-shadow(0 3px 2px #68533333)}.hp-bed .hp-furniture-base{fill:#a2b7a3}.hp-sofa .hp-furniture-base,.hp-seating .hp-furniture-base{fill:#bc8670}.hp-media .hp-screen,.hp-computer .hp-screen{fill:#445663}.hp-shower .hp-furniture-base,.hp-sink .hp-furniture-base,.hp-toilet .hp-furniture-base{fill:#f8f8ee}.hp-plants .hp-furniture-base,.hp-decor .hp-furniture-base{fill:#a6b77e}.hp-fridge .hp-furniture-base,.hp-washer .hp-furniture-base{fill:#e3e2d7}.hp-empty{opacity:.25;stroke-dasharray:4 3}.hp-stairs{fill:#d0baa0;stroke:#826d55;stroke-width:2}.hp-dirt{font-size:27px}
.home-plan button.hp-room-label{position:absolute;padding:5px 8px;margin:0;max-width:28%;border:0;border-radius:6px;background:#fffaf0eb;color:#473b2d;font-size:.88rem;font-weight:700;line-height:1.25;box-shadow:0 1px 4px #4d392219;white-space:normal;text-align:left;z-index:2;min-height:28px;min-width:0}.home-plan button.hp-object{position:absolute;margin:0;padding:0;border:2px solid transparent;min-width:0;min-height:0;border-radius:7px;background:transparent;box-shadow:none;z-index:2;transform:none;cursor:pointer}.home-plan button.hp-object:hover,.home-plan button.hp-object:focus-visible{border-color:#793d22;background:#fff5;outline:3px solid #fff}.home-plan button.hp-broken{border-color:#a34031}.hp-broken>span{background:#fff6e9;border-radius:5px;font-size:15px;position:absolute;right:-4px;top:-9px}.home-plan button.hp-in-use{border-color:#44736b;background:#c0ede855;box-shadow:0 0 0 4px #4e8a742d}
.hp-pawns{position:absolute;inset:0;pointer-events:none;z-index:4}.hp-pawn{position:absolute;transform:translate(-50%,-50%);width:32px;height:32px;border-radius:50%;border:2px solid #fdf5e4;background:#f5e3d0;box-shadow:0 2px 6px #46322144;display:block}.hp-pawn img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.hp-pawn.hp-player{border-color:#864b34;width:36px;height:36px}.hp-pawn b{position:absolute;top:100%;left:50%;transform:translateX(-50%);font-size:12px;line-height:1.4;background:#fffaf4ee;color:#47362b;padding:1px 5px;border-radius:4px;white-space:nowrap}
.hp-map-hint{font-size:.85rem;color:#675b50;margin:8px 0 12px;line-height:1.5}.hp-room-picker{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 14px}.home-plan .btn,.home-plan-modal .btn{white-space:normal;overflow-wrap:anywhere;min-height:42px;max-width:100%;line-height:1.35}.hp-room-picker button[aria-pressed=true],.hp-floors button[aria-pressed=true]{background:#745840;color:#fff;border-color:#745840}
.hp-selected{padding:16px;background:#f1e8da;border:1px solid #dfcdb7;border-radius:14px;overflow-wrap:anywhere}.hp-selected p{margin:7px 0 0;line-height:1.5}.hp-selection-head{align-items:flex-start}.hp-selection-head strong{font-size:1.08rem}.hp-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;margin-top:12px}.hp-action-option{display:flex;flex-direction:column;gap:6px;flex:1 1 160px;max-width:100%;min-width:0}.hp-action-option small{font-size:.85rem}.hp-status{padding:12px 0 8px;font-weight:700;line-height:1.5}.hp-presence-list{display:flex;gap:8px;flex-wrap:wrap;font-size:.88rem;color:#695745}.hp-presence-list span{padding:5px 9px;border-radius:6px;background:#f2e9dd}.hp-room-details{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}.hp-room-details summary{font-weight:700;cursor:pointer;padding:12px 0}.hp-room-details[open] .rooms{margin-top:12px}
.modal.home-plan-modal,.home-plan-modal{width:min(1000px,calc(100vw - 24px));max-width:100%;overflow-x:hidden}.home-plan-modal .hp-modal-head{position:sticky;top:0;z-index:8;background:var(--surface);padding:8px 0 12px}.home-plan-modal .option-btn{min-width:0}.home-plan-guide .guide-steps{padding-left:25px;line-height:1.6}.home-plan-guide .guide-steps li{margin:12px 0}.home-plan-guide .guide-steps p{margin:3px 0}
@media(min-width:1000px){.home-clean-main>.house-card{min-width:0}.home-plan-modal .hp-map{min-width:680px}}
@media(max-width:600px){.home-plan{margin-top:16px}.hp-header{align-items:flex-start}.hp-header-actions{width:100%;gap:8px}.hp-header-actions .btn{flex:1}.hp-selected{padding:12px}.hp-room-picker .btn{min-height:44px;padding:8px 10px;font-size:.9rem}.hp-actions>.btn,.hp-action-option{flex:1 1 130px}.hp-map-scroll{border-radius:8px}.hp-header h3{font-size:1.15rem}.hp-modal-head .btn{min-height:44px}.home-plan-modal{padding:14px!important}}
@media(prefers-reduced-motion:reduce){.home-plan *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Prevent the map's pan surface from widening the mobile CSS grid. */
.home-clean-layout,.home-clean-main,.home-clean-side{min-width:0}
.home-clean-layout .house-card,.home-clean-layout .home-now-card{min-width:0;max-width:100%;width:100%}
.hp-map-scroll{min-width:0;contain:inline-size}
.hp-pawn.hp-seated{box-shadow:0 2px 4px #46322155}.hp-pawn.hp-sleeping b::after{content:' · zZ'}
.hp-fridge-door{fill:#e3e2d7;transform-origin:0 0;transition:transform .25s ease}
.hp-fridge.hp-using .hp-furniture-base{fill:#66756d}.hp-fridge.hp-using .hp-fridge-door{transform:scaleX(.35)}
.hp-media.hp-using .hp-screen,.hp-computer.hp-using .hp-screen{fill:#8dd2d2}.hp-cooker.hp-using circle,.hp-grill.hp-using circle{fill:#d28c4c}
.hp-furniture-picker{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.hp-furniture-picker .btn{min-height:44px;flex:1 1 150px}

.hp-presence-list small{display:block;line-height:1.5;margin-top:3px}.hp-presence-list>span{max-width:100%;overflow-wrap:anywhere}.hp-pawn[hidden]{display:none}

.hp-pet-station{position:absolute;transform:translate(-50%,-50%);font-size:24px;pointer-events:none;z-index:2;opacity:.8}

/* 5.98.2 · Canvas 2D renderer. The DOM remains only as the interaction/accessibility layer. */
.hp-map{overflow:hidden;background:#faf6ee}
.hp-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.hp-canvas-static{z-index:0}
.hp-canvas-dynamic{z-index:4}
.home-plan button.hp-room-label,.home-plan button.hp-object{z-index:6}
.hp-pawns,.hp-pet-station,.hp-drawing{display:none!important}
