/* Home Studio: the house first, full screen; the panel beside it on a laptop, under it on a phone. hu-shell palette. */
html.in-trip .site-header, html.in-trip .skip-link, html.in-trip .hs-how { display: none }
body { background: var(--paper) }
.hs { --hdr: 64px; display: grid; grid-template-columns: 1fr 360px; height: calc(100dvh - var(--hdr)); min-height: 520px; background: #E9EEF3 }
html.in-trip .hs { --hdr: 0px }
.hs-stage { position: relative; overflow: hidden; min-height: 0 }
#hs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab }
#hs-canvas:active { cursor: grabbing }
.hs-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: #E9EEF3; z-index: 5; color: var(--ink); font-family: Oswald, sans-serif; letter-spacing: .04em; text-transform: uppercase; transition: opacity .4s }
.hs-loading.done { opacity: 0; pointer-events: none }
.hs-spin { width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(31, 42, 51, .15); border-top-color: var(--brass); animation: hs-spin 1s linear infinite }
@keyframes hs-spin { to { transform: rotate(360deg) } }

.hs-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--ink); color: #fff; font: 600 13px/1 Inter, sans-serif; cursor: pointer; box-shadow: 0 2px 10px rgba(15, 20, 30, .18); text-decoration: none }
.hs-btn[hidden] { display: none }
.hs-btn:hover { color: #fff; background: var(--ink-soft) }
.hs-btn.ghost { background: #fff; color: var(--ink) }
.hs-btn.ghost:hover { background: var(--paper); color: var(--ink) }
.hs-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
.hs-btn img { width: 18px; height: 18px }
.hs-top { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; pointer-events: none; z-index: 3 }
.hs-top > * { pointer-events: auto }
.hs-crumbs { background: #fff; border-radius: 999px; padding: 7px 14px; font: 500 13px/1 Inter, sans-serif; color: var(--denim); box-shadow: 0 2px 10px rgba(15, 20, 30, .12) }
.hs-crumbs b { color: var(--ink) }
.hs-crumbs button { all: unset; cursor: pointer; color: var(--denim) }
.hs-crumbs button:hover { color: var(--rust) }
.hs-crumbs span.sep { margin: 0 6px; opacity: .5 }
.hs-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; z-index: 3 }

.hs-choices { position: absolute; left: 12px; top: 60px; width: 250px; max-height: 45%; overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(15, 20, 30, .16); z-index: 3; font: 13px/1.35 Inter, sans-serif }
.hs-choices-head { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; cursor: pointer; font-size: 13px }
.hs-choices-head span { background: var(--brass); color: #fff; border-radius: 999px; min-width: 20px; padding: 2px 7px; text-align: center; font-weight: 700; font-size: 12px }
.hs-choices-body { padding: 0 12px 10px }
.hs-choices-body h4 { display: flex; justify-content: space-between; margin: 8px 0 4px; font: 600 12px/1.2 Inter, sans-serif; text-transform: none; letter-spacing: 0; color: var(--denim) }
.hs-choices-body h4 button { all: unset; cursor: pointer; color: var(--rust); font-weight: 600 }
.hs-choices-body li { display: flex; gap: 6px; align-items: baseline; list-style: none; margin: 3px 0; color: var(--ink) }
.hs-choices-body ul { margin: 0; padding: 0 }
.hs-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); position: relative; top: 1px }
.hs-choices.closed .hs-choices-body { display: none }
.hs-head-range { font-style: normal; font-weight: 600; color: var(--denim); margin-left: 4px }
.hs-range { display: block; font-style: normal; font-weight: 600; color: var(--denim); font-size: 12px }
.hs-range.muted { font-weight: 500; color: #6b7680 }
.hs-total { position: sticky; bottom: -10px; margin: 10px -12px -10px; padding: 10px 12px 12px; background: #fff; border-top: 1px solid #e3e6e8 }
.hs-total b { display: block; font: 700 16px/1.2 Inter, sans-serif; color: var(--ink) }
.hs-total small { display: block; margin: 3px 0 8px; color: #56626b; font-size: 11px; line-height: 1.35 }
.hs-book { width: 100%; justify-content: center; background: var(--rust); color: #fff; border-color: var(--rust) }

.hs-toast { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; box-shadow: 0 4px 18px rgba(15, 20, 30, .18); font: 500 14px/1.2 Inter, sans-serif; white-space: nowrap; z-index: 4 }
.hs-toast::before { content: '✓'; display: inline-grid; place-content: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--brass); color: #fff; font-size: 12px; font-weight: 700 }
.hs-coach { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 8px 15px; font: 500 14px/1.2 Inter, sans-serif; color: var(--ink); box-shadow: 0 2px 12px rgba(15, 20, 30, .14); white-space: nowrap; z-index: 2 }
.hs-coach span { display: inline-grid; place-content: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--brass); color: #fff; font-size: 12px; font-weight: 700 }

.hs-panel { background: #fff; border-left: 1px solid var(--line); overflow: auto; padding: 16px 16px 24px; font: 14px/1.45 Inter, sans-serif; color: var(--ink) }
.hs-panel .eyebrow { font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); margin: 0 0 6px }
.hs-panel h2 { font-size: 1.35rem; margin: 0 0 4px }
.hs-panel h3 { font-size: .8rem; margin: 18px 0 8px; color: var(--denim) }
.hs-panel p { margin: 0 0 10px; color: var(--denim) }
.hs-rooms { display: grid; gap: 6px }
.hs-room { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; cursor: pointer; font: inherit; color: var(--ink) }
.hs-room:hover { border-color: var(--brass) }
.hs-room small { display: block; color: var(--denim); font-size: 12px }
.hs-room i { margin-left: auto; font-style: normal; color: var(--denim) }
.hs-parts { display: flex; flex-wrap: wrap; gap: 6px }
.hs-part { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 11px; cursor: pointer; font: 500 13px/1 Inter, sans-serif; color: var(--ink); display: inline-flex; gap: 6px; align-items: center }
.hs-part[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink) }
.hs-part .hs-dot { top: 0 }
.hs-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px }
.hs-sw { border: 0; background: none; padding: 0; cursor: pointer; text-align: center; font: 500 11px/1.2 Inter, sans-serif; color: var(--denim) }
.hs-sw i { display: block; height: 46px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(31, 42, 51, .18); margin-bottom: 4px; background-size: cover; background-position: center 60% }
.hs-sw[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--brass) }
.hs-sw[aria-pressed="true"] { color: var(--ink); font-weight: 700 }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px }
.hs-chip { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font: 500 12px/1 Inter, sans-serif; cursor: pointer; color: var(--ink) }
.hs-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink) }
.hs-note { font-size: 12px !important; color: var(--denim) }
.hs-apps { display: grid; gap: 6px }
.hs-app { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink) }
.hs-app:hover { border-color: var(--brass); color: var(--ink) }
.hs-app img { width: 34px; height: 34px; border-radius: 8px; flex: none }
.hs-app small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--denim); font-size: 12px; line-height: 1.3 }
.hs-how { padding: 32px 0 48px }
.hs-how ol { padding-left: 1.2em }
.hs-fine { font-size: 13px; color: var(--denim) }

@media (max-width: 880px) {
  .hs { --hdr: 58px; grid-template-columns: 1fr; grid-template-rows: minmax(300px, 58dvh) auto; height: auto }
  html.in-trip .hs { grid-template-rows: minmax(300px, 60dvh) auto }
  .hs-panel { border-left: 0; border-top: 1px solid var(--line); overflow: visible }
  .hs-choices { width: 210px; top: 54px; max-height: 62% }
  .hs-total { position: static }
  .hs-tools { top: auto; bottom: 14px; right: 10px }
  .hs-coach { left: 12px; transform: none; bottom: 14px; font-size: 13px; max-width: calc(100% - 160px); overflow: hidden; text-overflow: ellipsis }
  .hs-toast { bottom: 58px; font-size: 13px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis }
  .hs-tools .ghost { display: none }
}

/* cabinet design on a room's real walls (cabinets-in-room.js) */
.hs-cabcard { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: #FFF6EF; border: 1px solid #F3D3BE; display: grid; gap: 4px; font: 13px/1.4 Inter, sans-serif; color: var(--ink) }
.hs-cabcard b { font-size: 14px }
.hs-cabcard span { color: #4F5B64 }
.hs-cabcard em { font-style: normal; font-weight: 700; color: var(--denim) }
.hs-cabcard-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px }
.hs-cabcard-row .hs-btn:first-child:not(.ghost) { background: var(--rust) }
.hs-btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #D5DADD }
.hs-designer { position: fixed; inset: 0; z-index: 2147482000; display: flex; flex-direction: column; background: #EEF2F7 }
.hs-designer-bar { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; background: #fff; box-shadow: 0 2px 10px rgba(15, 20, 30, .12); z-index: 1 }
.hs-designer-bar b { flex: 1; min-width: 0; font: 600 14px/1.2 Inter, sans-serif; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.hs-designer-bar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2 }
.hs-put { background: var(--rust) }
.hs-put[disabled] { opacity: .5 }
.hs-designer iframe { flex: 1; width: 100%; border: 0; background: #fff }
.hs-designer-load { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: #4F5B64; font: 14px Inter, sans-serif; padding: 0 24px }
html.hs-designing body { overflow: hidden }
@media (max-width: 560px) { .hs-designer-bar b { display: none } .hs-designer-bar { justify-content: space-between } }
.hs-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: #4F5B64; margin-top: 4px }
.hs-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid #59646d; margin-right: 4px; vertical-align: -2px }
.hs-boardcard { background: #F2F6FA; border-color: #D3DEE8 }

/* finished work: Home Upgraders' finished rooms, and a style taken from one (photo-style.js) */
.hs-fwcard { background: #F4F7F1; border-color: #D6E1CF }
.hs-realcard { background: #FFF1E6; border-color: #F0B990 }
.hs-fw { position: fixed; inset: 0; z-index: 2147482000; background: rgba(20, 28, 36, .55); display: grid; place-items: center; padding: 16px }
html.hs-fw-open body { overflow: hidden }
.hs-fw-card { width: min(1100px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); font: 14px/1.45 Inter, sans-serif; color: var(--ink) }
.hs-fw-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line) }
.hs-fw-bar b { font: 600 15px/1.2 Inter, sans-serif; text-transform: none }
.hs-fw-body { overflow: auto; padding: 14px 16px 18px }
.hs-fw-msg { color: #4F5B64; margin: 0 0 10px }
.hs-fw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px }
.hs-fw-ph { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: #E9EEF3 }
.hs-fw-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s }
.hs-fw-ph:hover img, .hs-fw-ph:focus-visible img { transform: scale(1.04) }
.hs-fw-ph i { position: absolute; left: 6px; bottom: 6px; background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 2px 8px; font: 500 11px/1.4 Inter, sans-serif; font-style: normal; color: #4F5B64 }
.hs-fw-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 18px; align-items: start }
.hs-fw-big img { width: 100%; border-radius: 12px; display: block; background: #E9EEF3; min-height: 200px; object-fit: contain; max-height: 70dvh }
.hs-fw-cap { color: #4F5B64; font-size: 13px; margin: 6px 0 0 }
.hs-fw-style h3 { margin: 0 0 6px; font-size: 1rem; color: var(--ink) }
.hs-fw-picks { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px }
.hs-fw-picks label { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer }
.hs-fw-picks input { margin-top: 3px; accent-color: var(--rust) }
.hs-fw-picks .hs-dot { width: 18px; height: 18px; top: 0; margin-top: 1px }
.hs-fw-picks small { display: block; color: #6b7680; font-size: 12px }
.hs-fw-words { font-size: 12px; color: #6b7680; margin: 0 0 12px }
.hs-fw-style [data-apply] { background: var(--rust); width: 100%; justify-content: center; padding: 11px 14px }
@media (max-width: 760px) { .hs-fw { padding: 0 } .hs-fw-card { max-height: 100dvh; height: 100dvh; border-radius: 0 } .hs-fw-detail { grid-template-columns: 1fr } .hs-fw-grid { grid-template-columns: repeat(2, 1fr) } }
/* no 3D on this device: what to do instead (studio.js no3d) */
.hs-loading.hs-no3d { opacity: 1; pointer-events: auto; padding: 16px }
.hs-no3d-card { max-width: 460px; background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 4px 18px rgba(15, 20, 30, .14); font: 14px/1.45 Inter, sans-serif; text-transform: none; letter-spacing: 0; color: var(--ink); text-align: left }
.hs-no3d-card b { display: block; font-size: 15px; margin-bottom: 4px }
.hs-no3d-card p { margin: 0 0 6px; color: #4F5B64 }
/* without 3D (fallback.js): the choices, the room tools and booking, in place of the canvas */
.hs:has(.hs-stage.no-3d) { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; min-height: 0; background: #fff }
.hs:has(.hs-stage.no-3d) .hs-panel { display: none }
.hs-stage.no-3d { overflow: visible }
.hs-stage.no-3d canvas, .hs-stage.no-3d .hs-tools, .hs-stage.no-3d .hs-coach, .hs-stage.no-3d .hs-choices, .hs-stage.no-3d .hs-loading { display: none }
.hs-fallback { position: relative; z-index: 6; background: #fff; color: var(--ink); padding: 20px 16px 24px; max-width: 760px; margin: 0 auto; font: 15px/1.5 Inter, sans-serif }
.hs-fallback h2 { font: 600 22px/1.2 Oswald, sans-serif; margin: 0 0 8px; letter-spacing: .02em }
.hs-fallback h3 { font: 600 15px/1.3 Inter, sans-serif; margin: 18px 0 6px }
.hs-fb-list, .hs-fb-tools { margin: 0; padding: 0 0 0 18px }
.hs-fb-list li, .hs-fb-tools li { margin: 4px 0 }
.hs-fb-tools li span { display: block; color: #445159; font-size: 13px }
.hs-fb-tools a { color: var(--rust); font-weight: 600 }
.hs-fb-note { color: #445159; font-size: 13px }
.hs-fb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px }
/* a homeowner's house opened from their request in InVoice (studio.js showHouse) */
.hs-visit { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); background: #0f2a44; color: #fff; border-radius: 10px; padding: 8px 14px; font: 500 13px/1.3 Inter, sans-serif; z-index: 4; max-width: calc(100% - 24px); text-align: center; box-shadow: 0 4px 18px rgba(15, 20, 30, .18) }
.hs-visit[hidden], .hs-tools .hs-btn[hidden] { display: none }
/* the layout view (plan-editor.js) */
.pe-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 }
.pe-row > span { font: 600 12px Inter, sans-serif; color: #56626b; margin-right: 2px }
.pe-svgwrap { position: relative; margin: 6px -4px 0; background: #fff; border: 1px solid #E1E5E8; border-radius: 14px; overflow: hidden; touch-action: none }
.pe-svg, .pe-preview svg { display: block; width: 100%; height: auto; max-height: 62vh; user-select: none; -webkit-user-select: none }
.pe-preview { position: absolute; inset: 0; pointer-events: none }
.pe-room { cursor: pointer }
.pe-label { fill: #24303a; font-family: Inter, sans-serif; pointer-events: none }
.pe-street { fill: #7b858d; font-family: Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; pointer-events: none }
.pe-wall { stroke: #2b3540; stroke-linecap: square; pointer-events: none }
.pe-iwall { stroke: #4a5560; pointer-events: none }
.pe-window { stroke: #6fb3d9; pointer-events: none }
.pe-door { stroke: #E8692A; pointer-events: none }
.pe-open { stroke: #9aa3aa; pointer-events: none }
.pe-hit { cursor: pointer; pointer-events: stroke }
.pe-grip { cursor: grab }
.pe-grip circle { fill: #fff; stroke: #2b3540; stroke-width: 2.5 }
.pe-grip text { fill: #2b3540; font-family: Inter, sans-serif; font-weight: 700; pointer-events: none }
.pe-grip.pe-out circle { fill: #E8692A; stroke: #fff }
.pe-grip.pe-out text { fill: #fff }
.pe-name { display: flex; align-items: center; gap: 8px; font: 600 12px Inter, sans-serif; color: #56626b; margin: 6px 0 }
.pe-name input { flex: 1; min-height: 38px; border: 1.5px solid #D5DADD; border-radius: 10px; padding: 6px 10px; font: 15px Inter, sans-serif }
.pe-rooms { margin-top: 12px }
.pe-rooms summary { cursor: pointer; font: 600 13px Inter, sans-serif; color: var(--denim) }
.hs-layoutcard { background: #FFF6EF; border-color: #F3D3BE }
.hs-btn[disabled] { opacity: .45 }
