.ph-dialog{width:min(1380px,calc(100vw - 40px));height:min(890px,calc(100dvh - 40px));max-width:none;max-height:none;border:1px solid #ffffffa3;border-radius:26px;padding:0;background:#f8f5ec;color:#2e493c;overflow:hidden;box-shadow:0 25px 100px #142c3b42;font-family:inherit}.ph-dialog::backdrop{background:#142820a3;backdrop-filter:blur(8px)}.ph-dialog *{box-sizing:border-box}.ph-dialog button,.ph-dialog input,.ph-dialog select{font:inherit}.ph-dialog button{cursor:pointer;min-height:44px;border:1px solid #d6ddce;background:#fffdf6;color:#365140;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;padding:9px 13px;transition:background .16s,border-color .16s}.ph-dialog button:hover{background:#eaf0df;border-color:#a9b79d}.ph-dialog button:focus-visible,.ph-dialog input:focus-visible,.ph-dialog select:focus-visible,.ph-dialog canvas:focus-visible{outline:3px solid #c39751;outline-offset:2px}.ph-dialog button:disabled{opacity:.45;cursor:default}.ph-dialog button svg{width:18px;height:18px;flex:0 0 auto}.ph-dialog [hidden]{display:none!important}.ph-shell{height:100%;display:grid;grid-template-rows:74px 58px minmax(0,1fr) 34px}.ph-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 22px;border-bottom:1px solid #d5ddcd}.ph-title{display:flex;align-items:center;gap:12px}.ph-brand{width:42px;height:42px;border-radius:14px;background:#e4ebd7;display:grid;place-items:center}.ph-brand svg{width:23px;height:23px}.ph-eyebrow{font-size:10px;letter-spacing:1.4px;color:#708069;line-height:1.5}.ph-title h2{font-size:20px;line-height:1.4;margin:2px 0 0}.ph-header-right{display:flex;align-items:center;gap:9px}.ph-owner{font-size:12px;color:#63755d;margin-right:12px;max-width:270px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ph-dialog .ph-icon-button{width:44px;padding:10px;border-radius:50%;background:#ebefdf;border:0}.ph-modes{display:flex;justify-content:center;align-items:center;gap:8px;border-bottom:1px solid #dbe0d3;background:#f4f2e9;padding:7px 16px}.ph-modes button{border-color:transparent;background:transparent;min-width:124px}.ph-modes button[aria-pressed=true]{color:#f8f6e9;background:#526e4f;border-color:#526e4f;box-shadow:0 3px 8px #32493218}.ph-main{display:grid;grid-template-columns:minmax(0,1fr) 312px;min-height:0}.ph-stage{position:relative;overflow:hidden;background:#dce7d2;min-height:0;isolation:isolate}.ph-canvas{width:100%;height:100%;position:absolute;inset:0}.ph-canvas canvas{width:100%;height:100%;display:block;touch-action:none;outline:none;cursor:grab}.ph-dialog[data-mode=edit] canvas{cursor:crosshair}.ph-canvas canvas:active{cursor:grabbing}.ph-character-chip{position:absolute;top:18px;left:18px;display:flex;align-items:center;gap:8px;padding:5px 14px 5px 5px;background:#fffcf0e8;border:1px solid #fffdfa;border-radius:40px;box-shadow:0 4px 18px #48604118;pointer-events:none}.ph-mini-avatar{display:flex}.ph-mini-avatar svg{width:42px;height:42px}.ph-character-chip strong{display:block;font-size:12px;font-weight:600}.ph-position{display:block;font-size:11px;color:#758169;line-height:1.6}.ph-scene-hint{position:absolute;right:18px;top:26px;font-size:11px;color:#485c40;background:#fffbedbd;border:1px solid #fff9e6;border-radius:30px;padding:8px 11px;pointer-events:none}.ph-welcome-cta{position:absolute;bottom:45px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:12px;white-space:nowrap}.ph-welcome-cta>span{font-size:12px;color:#455d42;text-shadow:0 1px 6px #fff}.ph-dialog .ph-welcome-cta button{background:#3f654b;color:#fff8e7;min-height:48px;padding:12px 23px;border:1px solid #edf0d7;border-radius:28px;box-shadow:0 7px 20px #3d5a3e30;font-size:14px}.ph-dpad{position:absolute;bottom:22px;left:18px;display:grid;grid-template-columns:42px 42px 42px;grid-template-rows:42px 42px 42px;gap:3px;user-select:none;touch-action:none}.ph-dialog .ph-dpad button{min-height:42px;font-size:22px;padding:0;background:#fffcefde;border-color:#f9fff0;border-radius:14px;touch-action:none;box-shadow:0 3px 6px #33462e15}.ph-dpad button:first-child{grid-column:2}.ph-dpad button:nth-child(2){grid-column:1;grid-row:2}.ph-dpad span{grid-column:2;grid-row:2;display:grid;place-items:center;color:#687d59;font-size:12px;background:#ebefd980;border-radius:50%}.ph-dpad button:nth-child(4){grid-column:3;grid-row:2}.ph-dpad button:last-child{grid-column:2;grid-row:3}.ph-camera-controls{position:absolute;right:18px;bottom:22px;display:flex;gap:6px}.ph-dialog .ph-camera-controls button{width:44px;background:#fffcefde;font-size:24px;padding:0;border-color:#f9fff0}.ph-toast{position:absolute;left:18px;right:18px;bottom:5px;text-align:center;font-size:11px;line-height:1.5;color:#42563e;pointer-events:none;text-shadow:0 1px 5px #ffffed,0 1px 5px #ffffed}.ph-first-dot{position:absolute;top:50%;left:50%;width:6px;height:6px;border-radius:50%;border:1px solid #fff;background:#465b39a1;transform:translate(-50%,-50%);pointer-events:none}.ph-panel{padding:22px 20px;overflow:auto;overscroll-behavior:contain;border-left:1px solid #d8dfcd;background:#faf8f0;scrollbar-width:thin}.ph-panel-heading h3{font-size:19px;line-height:1.5;margin:5px 0 16px;letter-spacing:-.02em}.ph-panel-heading p{font-size:12px;line-height:1.7;color:#68725f;margin:0 0 16px}.ph-avatars{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:20px}.ph-dialog .ph-avatars button{display:flex;flex-direction:column;gap:5px;padding:9px 4px;font-size:12px;border-radius:17px;background:#f0efe4}.ph-avatars button svg{height:48px;width:48px}.ph-dialog .ph-avatars button[aria-pressed=true]{background:#e4ecd7;border-color:#849c70;box-shadow:inset 0 0 0 1px #849c70}.ph-label{display:block;font-size:12px;font-weight:600;margin:16px 0 8px}.ph-family-row{display:flex;gap:6px}.ph-dialog input:not([type=checkbox]),.ph-dialog select{min-width:0;width:100%;min-height:44px;border:1px solid #d6dbcc;border-radius:10px;background:#fffefa;color:#354f3b;padding:9px 10px;font-size:14px}.ph-dialog input[type=checkbox]{accent-color:#607d4d;width:18px;height:18px}.ph-family-row input{flex:1}.ph-dialog .ph-family-row button{padding:8px 10px;white-space:nowrap;background:#e6edd9;border-color:#e6edd9;font-size:12px}.ph-small{font-size:11px;line-height:1.75;color:#6c7963;margin:8px 0 12px}.ph-themes{display:flex;gap:6px}.ph-dialog .ph-themes button{flex:1;padding:6px 9px;font-size:12px;background:#f7f6ec}.ph-themes button i{width:12px;height:12px;display:block;border-radius:50%;background:#9daf84}.ph-themes button i.coast{background:#9bbdc0}.ph-themes button i.gallery{background:#c6a8b4}.ph-dialog .ph-themes button[aria-pressed=true]{border-color:#809c6a;background:#e9eedc}.ph-decor-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.ph-decor-fields label{font-size:12px;color:#596b50}.ph-decor-fields select{margin-top:6px;font-size:13px}.ph-plant-toggle{display:flex;align-items:center;gap:8px;font-size:12px;min-height:48px;margin:8px 0}.ph-dialog .ph-primary{background:#526e4f;color:#fff8e9;border-color:#526e4f}.ph-wide{width:100%}.ph-too{display:flex;gap:10px;padding-top:18px;border-top:1px solid #dce2d2;margin-top:22px}.ph-too b{background:#dfe7d1;width:34px;height:34px;display:grid;place-items:center;font-size:13px;border-radius:50%;flex-shrink:0}.ph-too p{font-size:11px;line-height:1.8;color:#6b785e;margin:0}.ph-furniture-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ph-dialog .ph-furniture-list button{justify-content:flex-start;gap:8px;padding:10px 8px;font-size:12px;min-height:54px}.ph-dialog .ph-furniture-list button[aria-pressed=true]{background:#e7edd8;border-color:#82996c}.ph-object-symbol{width:22px;height:18px;background:#a5b591;border-radius:5px;display:block;box-shadow:inset 0 -5px 0 #00000012;flex-shrink:0}.ph-object-symbol.table{height:11px;border-radius:50%;background:#c7ac88;box-shadow:0 4px 0 -2px #a58b67}.ph-object-symbol.chair{height:22px;width:19px;background:#d8aa94;border-radius:7px 7px 4px 4px}.ph-object-symbol.plant{width:20px;height:22px;background:#809867;border-radius:50% 50% 7px 7px;box-shadow:inset 0 -7px 0 #ba9b78}.ph-object-symbol.lamp{background:#d9c5a1;clip-path:polygon(25% 0,75% 0,100% 60%,55% 60%,55% 90%,80% 90%,80% 100%,20% 100%,20% 90%,45% 90%,45% 60%,0 60%);height:24px}.ph-object-symbol.shelf{background:repeating-linear-gradient(0deg,#b4936d 0 4px,#e5d3b6 4px 9px);border:2px solid #ba9b75;border-radius:1px;height:22px}.ph-selection{display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px;font-size:12px}.ph-selection>span{color:#7a836f}.ph-nudge{display:grid;grid-template-columns:44px 44px 1fr 44px 44px;gap:3px}.ph-dialog .ph-nudge button{padding:6px;min-width:0}.ph-nudge button[data-home=rotate]{flex-direction:column;gap:0;font-size:10px}.ph-nudge button:not([data-home=rotate]){font-size:20px}.ph-colors{display:flex;justify-content:space-between;gap:4px}.ph-dialog .ph-colors button{width:44px;padding:7px;border-color:transparent;background:transparent}.ph-colors button span{background:var(--swatch);width:26px;height:26px;border-radius:50%;box-shadow:inset 0 0 0 1px #0000000c}.ph-dialog .ph-colors button[aria-pressed=true]{border-color:#789568;background:#eef2e6}.ph-editor-actions{display:flex;gap:7px;margin-top:18px}.ph-dialog .ph-editor-actions button{flex:1;font-size:11px;padding:8px}.ph-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:5px 20px;border-top:1px solid #dce2d4;font-size:10px;color:#637457;background:#f6f4e9}.ph-footer span:first-child{white-space:nowrap}.ph-loading,.ph-fallback{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:30px;text-align:center}.ph-loading h2{font-size:24px;margin:0}.ph-loading p{font-size:14px;color:#718064}.ph-loading-mark{display:grid;place-items:center;width:66px;height:66px;border-radius:24px;background:#e4ebd7;color:#526e4f;font-size:35px}.ph-room-launch{display:block;position:relative;padding:0;border:0;cursor:pointer;border-radius:18px;overflow:hidden;background:#e3e9d6;width:100%;color:#fef9e8}.ph-room-launch img{width:100%;aspect-ratio:1.45;display:block;object-fit:cover}.ph-room-launch>span{position:absolute;left:14px;right:14px;bottom:14px;border-radius:15px;background:#324d3cdd;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;backdrop-filter:blur(12px);font-size:13px}.ph-room-launch strong{font-size:14px}.ph-room-launch small{font-size:11px;opacity:.85}.ph-room-launch:focus-visible{outline:3px solid #bd9158;outline-offset:4px}
@media(max-width:1050px){.ph-main{grid-template-columns:minmax(0,1fr) 280px}.ph-panel{padding:18px 15px}.ph-scene-hint{top:78px;left:20px;right:auto;font-size:10px}.ph-owner{max-width:200px}.ph-nudge{grid-template-columns:40px 40px 1fr 40px 40px}.ph-dialog .ph-nudge button{min-height:44px}.ph-welcome-cta{bottom:170px}.ph-welcome-cta>span{white-space:normal;text-align:center;max-width:240px}}
@media(max-width:700px){.ph-dialog{width:100vw;height:100dvh;border-radius:0;border:0;margin:0;max-height:none}.ph-shell{grid-template-rows:64px 56px minmax(0,1fr) 28px}.ph-header{padding:8px 12px;gap:4px}.ph-title{gap:7px}.ph-title h2{font-size:17px}.ph-title .ph-eyebrow{font-size:8px;letter-spacing:.8px}.ph-brand{width:36px;height:36px;border-radius:12px}.ph-header-right{gap:4px}.ph-owner{display:none}.ph-modes{gap:4px;padding:6px 8px}.ph-modes button{flex:1;min-width:0;padding:7px 3px;font-size:11px;gap:4px;border-radius:10px}.ph-modes button svg{width:15px;height:15px}.ph-main{display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain}.ph-stage{height:clamp(340px,53dvh,520px);min-height:340px;flex-shrink:0}.ph-panel{padding:20px 18px;overflow:visible;border-left:0;border-top:1px solid #d4ddc8}.ph-panel-heading h3{font-size:19px}.ph-character-chip{left:12px;top:12px}.ph-scene-hint{top:70px;left:13px;font-size:10px;padding:6px 9px}.ph-character-chip strong{font-size:11px}.ph-character-chip small{font-size:10px}.ph-character-chip svg{width:36px;height:36px}.ph-dpad{left:12px;bottom:30px;grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px 44px;gap:3px}.ph-dialog .ph-dpad button{min-height:44px}.ph-camera-controls{right:12px;bottom:30px}.ph-welcome-cta{bottom:100px;left:auto;right:12px;transform:none;max-width:174px;gap:6px;white-space:normal}.ph-welcome-cta>span{font-size:10px;max-width:160px}.ph-dialog .ph-welcome-cta button{font-size:12px;padding:8px 12px;white-space:nowrap}.ph-welcome-cta button svg{width:15px}.ph-toast{bottom:7px;left:12px;right:12px;font-size:10px}.ph-footer{padding:4px 12px;font-size:10px;gap:5px}.ph-footer span:last-child{display:none}.ph-nudge{grid-template-columns:44px 44px 1fr 44px 44px;gap:7px}.ph-furniture-list{grid-template-columns:repeat(3,1fr)}.ph-dialog .ph-furniture-list button{flex-direction:column;justify-content:center;padding:9px 4px;font-size:11px;min-height:66px}.ph-avatars button svg{width:52px;height:52px}.ph-dialog[data-mode=edit] .ph-stage{height:44dvh;min-height:300px}.ph-dialog[data-mode=edit] .ph-scene-hint{top:70px}.ph-room-launch>span{padding:9px 12px}}
@media(max-height:560px) and (min-width:701px){.ph-dialog{width:100vw;height:100dvh;margin:0;border-radius:0}.ph-shell{grid-template-rows:54px 50px minmax(0,1fr) 25px}.ph-header{padding:6px 14px}.ph-title h2{font-size:16px}.ph-title .ph-eyebrow{display:none}.ph-welcome-cta>span{display:none}.ph-dpad{grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px 44px;bottom:25px}.ph-dialog .ph-dpad button{min-height:44px}.ph-welcome-cta{left:auto;right:15px;transform:none;bottom:85px}.ph-scene-hint{display:none}}
@media(prefers-reduced-motion:reduce){.ph-dialog *{transition:none!important;scroll-behavior:auto!important}}
/* Keep the room in sight while a phone user adjusts controls underneath it. */
.ph-dpad{grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px 44px}.ph-dialog .ph-dpad button{min-height:44px}.ph-small,.ph-scene-hint,.ph-toast,.ph-position,.ph-too p{font-size:12px}.ph-footer span:first-child{white-space:normal;line-height:1.35}
@media(max-width:700px){.ph-stage{position:sticky;top:0;z-index:2;box-shadow:0 2px 0 #d4ddc8}.ph-dialog input:not([type=checkbox]),.ph-dialog select{font-size:16px}.ph-dialog .ph-toast{font-size:11px}.ph-shell{grid-template-rows:64px 56px minmax(0,1fr) minmax(28px,auto)}.ph-position{font-size:11px}.ph-scene-hint{font-size:11px}}
/* Separate scroll regions prevent controls slipping underneath the pinned canvas. */
@media(max-width:700px){.ph-main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:min(47dvh,400px) minmax(0,1fr);overflow:hidden}.ph-stage,.ph-dialog[data-mode=edit] .ph-stage{position:relative;height:100%;min-height:0;top:auto;z-index:auto}.ph-panel{overflow:auto;min-height:0;scroll-padding-block:16px;overscroll-behavior:contain}.ph-dialog[data-mode=edit] .ph-main{grid-template-rows:min(40dvh,340px) minmax(0,1fr)}.ph-welcome-cta{bottom:100px}.ph-scene-hint{top:65px}.ph-panel button,.ph-panel input,.ph-panel select{scroll-margin-block:16px}}
@media(max-width:700px) and (orientation:landscape){.ph-main,.ph-dialog[data-mode=edit] .ph-main{grid-template-columns:minmax(0,1fr) 245px;grid-template-rows:minmax(0,1fr)}.ph-panel{border-top:0;border-left:1px solid #d4ddc8;padding:12px}.ph-furniture-list{grid-template-columns:1fr 1fr}.ph-nudge{gap:2px;grid-template-columns:40px 40px 1fr 40px 40px}.ph-scene-hint,.ph-welcome-cta>span{display:none}.ph-welcome-cta{bottom:80px;right:8px}.ph-dialog .ph-welcome-cta button{font-size:11px;padding:6px}.ph-dpad{left:8px;bottom:27px}.ph-character-chip{top:7px;left:8px}.ph-character-chip small{display:none}.ph-camera-controls{right:8px;bottom:27px}}
.ph-room-launch img{height:auto;aspect-ratio:1.45;object-fit:cover}
