.hp-gallery{max-width:1100px;margin:20px auto}.hp-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px}.hp-gallery-card{min-width:0;background:#fff;border:1px solid #dbe4ef;border-radius:16px;padding:16px}.hp-gallery-card h3{overflow-wrap:anywhere}.hp-gallery-preview svg{display:block;width:100%;height:auto;max-height:320px}.hp-gallery-link{display:inline-block;padding:12px;color:#175b9c;font-weight:700}.hp-room-tools{margin:14px 0;padding:12px;border:1px solid #dbe4ef;border-radius:12px;background:#f7faff}.hp-nudges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.hp-nudges button{padding:10px 4px}.hp-gallery-preview .hp-room{cursor:default}@media print{.hp-room-tools,.hp-gallery{display:none!important}}
.hp-page{max-width:1280px;margin:0 auto;padding:18px 16px 100px;color:#123456}.hp-sample{max-width:920px;margin:20px auto;padding:18px;background:#fff;border:1px solid #dbe4ef;border-radius:16px;box-sizing:border-box}.hp-sample svg{display:block;width:100%;height:auto;max-width:500px;margin:0 auto;touch-action:pan-y}.hp-sample .hp-room{cursor:default}@media print{.hp-sample{display:none!important}}
.hp-back{color:#175b9c}.hp-heading span{font-size:12px;font-weight:800;color:#ed781b}.hp-heading h1{font-size:clamp(24px,4vw,34px);margin:8px 0}.hp-heading p{color:#53697e}.hp-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;margin-top:20px}.hp-workspace:has(>.hp-preview:only-child){grid-template-columns:1fr}.hp-controls,.hp-preview,.hp-saved{min-width:0;background:#fff;border:1px solid #dbe4ef;border-radius:16px;padding:18px;box-shadow:0 4px 16px #12345608}.hp-page h2{font-size:19px;margin:0 0 14px}.hp-page label{display:block;font-size:13px;font-weight:700;margin-bottom:12px}.hp-page input,.hp-page select{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:5px;border:1px solid #bbcada;border-radius:8px;padding:10px;background:#fff;font:inherit;color:#123456;min-height:42px}.hp-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hp-page button,.hp-actions a{font:inherit;font-size:14px;min-height:44px;padding:10px 14px;border:1px solid #a9bfd4;border-radius:9px;color:#175b9c;background:#f7faff;font-weight:700;cursor:pointer;text-align:center;text-decoration:none}.hp-page button:disabled{opacity:.45;cursor:default}.hp-page .hp-primary{background:#175b9c;color:#fff;border-color:#175b9c}.hp-controls>.hp-primary{width:100%;margin-bottom:14px}.hp-page details{border-top:1px solid #e0e7ef;margin:12px 0;padding-top:12px}.hp-page summary{cursor:pointer;font-weight:700;margin-bottom:10px}.hp-help{font-size:12px;line-height:1.65;color:#5d6d7e}.hp-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.hp-page [hidden]{display:none!important}#hp-canvas{background:#f1f6fb;border:1px solid #dfebf4;border-radius:10px;min-height:260px}#hp-canvas svg{width:100%;height:auto;max-height:680px;display:block;touch-action:pan-y}#hp-canvas .hp-room{cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}#hp-canvas .hp-room:focus-visible{outline:1px dashed #175b9c80;outline-offset:2px}#hp-canvas.hp-pointer-active .hp-room{outline:none}#hp-status{color:#175b9c;font-weight:700;min-height:24px}.hp-area{font-size:13px;font-weight:700}.hp-contact{border-top:1px solid #dbe4ef;padding-top:14px;margin-top:14px}.hp-contact .hp-actions a:last-child{background:#e9f8ef;color:#17693c}.hp-saved{margin-top:20px}.hp-saved ul{padding-left:20px;display:flex;gap:20px;flex-wrap:wrap}.hp-notice{padding:20px;background:#fff4e9;border-radius:12px}.hp-page input:focus,.hp-page select:focus,.hp-page button:focus-visible,.hp-page a:focus-visible{outline:3px solid #ef8b35;outline-offset:2px}@media(max-width:800px){.hp-workspace{grid-template-columns:1fr}.hp-controls{order:2}.hp-preview{order:1}.hp-page{padding:14px 12px 100px}.hp-controls,.hp-preview{padding:14px}.hp-heading h1{font-size:24px}#hp-canvas svg{max-height:520px}.hp-actions button{flex:1 1 140px}}@media print{body *{visibility:hidden!important}.hp-preview,.hp-preview *{visibility:visible!important}.hp-preview{position:absolute;left:0;top:0;width:100%;border:0;box-shadow:none}.hp-preview .hp-actions,.hp-preview input,.hp-preview button,.hp-preview #hp-share-panel,.hp-preview .hp-contact,.hp-preview #hp-status{display:none!important}#hp-canvas{border:0;background:#fff}#hp-canvas svg{max-height:85vh}}

/* Reference layout keeps its SVG proportions; zoom stays inside this module. */
.hp-plan-scroll{overflow:auto;max-width:100%;overscroll-behavior:auto}.hp-plan-scroll:has(.hp-reference){max-width:760px;margin:0 auto}#hp-canvas.hp-reference svg{height:auto;max-height:none;width:100%;aspect-ratio:41/48;touch-action:pan-y}.hp-zoom-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.hp-reference-button{width:100%;margin:0 0 12px}.hp-reference-note{padding:10px;border-left:3px solid #ed781b;background:#fff8ed;font-size:12px;line-height:1.6}@media print{.hp-zoom-tools{display:none!important}.hp-plan-scroll{overflow:visible!important}#hp-canvas.hp-reference{width:100%!important}#hp-canvas.hp-reference svg{width:auto!important;height:78vh!important;max-width:100%!important;max-height:none!important}}

/* Only an editable selected room reserves a touch gesture for dragging. */
#hp-canvas .hp-room{touch-action:pan-y}
#hp-canvas.hp-editing .hp-room[tabindex="0"]{touch-action:none;cursor:grab}#hp-canvas.hp-pointer-active .hp-room{cursor:grabbing}

.hp-resize-handle{touch-action:none;cursor:nwse-resize}.hp-editor-warnings{background:#fff1ec;border-left:3px solid #c73326;padding:10px;color:#93291f;font-size:13px}.hp-new-room{border-top:1px solid #dbe4ef;margin-top:14px;padding-top:14px}.hp-page .hp-snap{display:flex;align-items:center;gap:8px;margin:12px 0}.hp-page .hp-snap input{width:20px;min-height:20px;margin:0}.hp-preview #hp-edit-mode{margin-bottom:8px}@media print{.hp-resize-handle,.hp-editor-warnings{display:none!important}}

.hp-plan-scroll,#hp-canvas{touch-action:pan-y}#hp-move[aria-pressed="true"]{background:#fff0df;border-color:#ed781b}

/* Beginner flow; styles are scoped to this module. No fixed page overlays. */
.hp-workspace{grid-template-columns:1fr;max-width:920px;margin:20px auto}.hp-controls,.hp-preview{order:initial}.hp-progress{display:flex;gap:8px;max-width:920px;margin:20px auto}.hp-progress button{flex:1;min-width:0;padding:10px 6px;overflow-wrap:anywhere}.hp-progress [aria-current="step"]{background:#175b9c;color:#fff;border-color:#175b9c}.hp-wide{width:100%;margin:10px 0 14px}.hp-page input,.hp-page select{min-height:44px}.hp-preview #hp-advanced{margin:18px 0;padding:16px;border:1px solid #dbe4ef;border-radius:12px}.hp-preview #hp-move{margin-bottom:8px}.hp-sharing{flex:1 1 220px}.hp-sharing summary{min-height:44px;display:flex;align-items:center}.hp-controls h2{margin-bottom:18px}#hp-setup-status{color:#93291f;font-size:13px}#hp-setup-status:empty{display:none}@media(max-width:480px){.hp-controls .hp-fields{grid-template-columns:1fr}.hp-progress{gap:5px}.hp-progress button{font-size:13px}.hp-preview #hp-advanced{padding:12px}}@media print{.hp-progress,#hp-advanced,.hp-preview>h2,.hp-preview>details,.hp-preview>.hp-help{display:none!important}}

/* Keep shared navigation/support links available without covering editor inputs. */
#hp-app #bswa-support-v1{position:static!important;inset:auto!important;transform:none!important;display:inline-flex!important;min-height:44px;margin:18px 0;max-width:100%;box-sizing:border-box}

#hp-canvas svg{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.hp-context-menu{position:fixed;z-index:11000;bottom:96px;left:50%;transform:translateX(-50%);width:min(360px,calc(100vw - 32px));box-sizing:border-box;padding:14px;background:#fff;border:2px solid #ed781b;border-radius:14px;box-shadow:0 8px 30px #12345633}.hp-context-menu strong{display:block;overflow-wrap:anywhere;margin-bottom:10px}.hp-context-menu .hp-fields{margin:0}.hp-context-menu button{min-height:44px}#hp-context-delete{color:#a22620;background:#fff2ef}@media print{.hp-context-menu{display:none!important}}

/* Free angle controls reuse the shared editor. */
.hp-rotation-tools{border:1px solid #d5e4f1;border-radius:12px;padding:12px;background:#f5faff;margin:12px 0}.hp-rotation-tools label{display:flex;justify-content:space-between;font-weight:700;color:#175b9c}.hp-rotation-tools input[type=range]{width:100%;padding:0;min-height:44px;accent-color:#175b9c}.hp-turn-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hp-turn-buttons button{min-height:48px;font-size:1.1rem}.hp-rotate-handle{touch-action:none;cursor:grab}.hp-rotation-tools p{margin:8px 0 0;font-size:.9rem}@media print{.hp-rotate-handle,.hp-rotation-tools{display:none!important}}

/* Opening targets and orbit surface own only their intended gestures. */
.hp-opening-tools,.hp-3d-panel{border:1px solid #d5e4f1;border-radius:14px;padding:14px;background:#f5faff;margin:14px 0}.hp-opening-tools input[type=range],.hp-3d-panel input[type=range]{width:100%;min-height:44px;padding:0;accent-color:#175b9c}.hp-opening-tools label{display:block;margin-top:8px}.hp-opening-tools button,.hp-3d-panel button,#hp-view-3d{min-height:44px}.hp-opening-tools select{width:100%}#hp-canvas.hp-editing .hp-opening{touch-action:none;cursor:grab}.hp-opening:focus{outline:none}.hp-opening:focus>line{stroke:#ed781b}#hp-3d-canvas{touch-action:none;user-select:none;cursor:grab;width:100%;overflow:hidden;background:linear-gradient(#e4f2ff,#fff);border-radius:12px}#hp-3d-canvas svg{display:block;width:100%;height:420px;max-height:65vh}#hp-3d-canvas:focus{outline:2px solid #ed781b}@media(max-width:600px){#hp-3d-canvas svg{height:340px}.hp-3d-panel .hp-actions{display:grid;grid-template-columns:1fr 1fr}}@media print{.hp-opening-tools,#hp-view-3d,.hp-3d-panel{display:none!important}}
