/* Home Studio · Bathroom Studio — on top of ../studio.css (same shell, palette and panel as the house and My real room) */
#bs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab }
#bs-canvas:active { cursor: grabbing }
.bs .hs-panel { padding-bottom: 32px }
.bs-badge { background: #FFB07A; color: #1F2A33; border-radius: 999px; padding: 6px 12px; font: 600 12px/1 Inter, sans-serif; box-shadow: 0 2px 10px rgba(15, 20, 30, .12) }
.bs-badge[hidden] { display: none }
.bs-meta { font-size: 13px; color: #4F5B64 }

/* start from: the layouts, two to a row, the chosen one's blurb underneath */
.bs-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 6px }
.bs-preset { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 11px; cursor: pointer; font: 600 13px/1.25 Inter, sans-serif; color: var(--ink) }
.bs-preset:hover { border-color: var(--brass) }
.bs-preset[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink) }
.bs-preset-blurb { min-height: 2.6em }

/* add: groups and the fixtures */
.bs-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px }
.bs-adds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px }
.bs-add { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 10px; cursor: pointer; font: inherit; color: var(--ink) }
.bs-add:hover { border-color: var(--brass) }
.bs-add b { display: block; font-size: 13px }
.bs-add small { color: var(--denim); font-size: 11.5px }

/* finishes */
.bs-ftabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px }
.bs-sw { display: flex; flex-wrap: wrap; gap: 6px }
.bs-sw button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; background-size: cover; background-position: center }
.bs-sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink) }
.bs-sw button:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px }
.bs-sw-label { margin: 6px 0 0; font-size: 12.5px; color: #4F5B64 }
.bs-check { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; margin: 8px 0 }
.bs-check input { width: 20px; height: 20px; accent-color: var(--rust) }

/* the room: advanced sizes */
.bs-room { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.bs-room label { display: grid; gap: 3px; font: 600 12px/1.2 Inter, sans-serif; color: #445159 }
.bs-room input { font: 400 15px/1.2 Inter, sans-serif; padding: 8px 9px; border: 1.5px solid #D5DADD; border-radius: 9px; min-width: 0; color: var(--ink) }
.bs-adv { margin: 8px 0 0; font-size: 13px }
.bs-adv summary { cursor: pointer; color: var(--denim); font-weight: 600 }

/* in the room: the list with its colour dot */
.bs-list { display: grid; gap: 5px }
.bs-li { display: flex; gap: 8px; align-items: center; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 10px; cursor: pointer; font: inherit; color: var(--ink) }
.bs-li[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink) }
.bs-li small { display: block; color: var(--denim); font-size: 11.5px }
.bs-lv { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #2e9b5a; display: inline-block }
.bs-lv.amber { background: #E6A21A } .bs-lv.red { background: #D94B2B } .bs-lv.none { background: #C9D1D7 }

/* actions: the two that matter stay in view; keeping, opening and starting over sit under them in one quiet row */
.bs-actions { display: grid; gap: 8px; margin-top: 10px; position: sticky; bottom: -24px; background: #fff; padding: 10px 0 6px; box-shadow: 0 -10px 12px -10px rgba(15, 20, 30, .12) }
.bs-actions-main { display: flex; gap: 8px }
.bs-actions-main .hs-btn { flex: 1; justify-content: center; padding: 11px 10px; font-size: 13.5px }
.bs-actions .primary { background: var(--rust) }
.bs-actions .primary:hover { background: #D45A1C }
.bs-actions-more { display: flex; gap: 4px; justify-content: space-between }
.bs-actions-more > * { flex: 1; border: 0; background: none; padding: 6px 4px; font: 600 12.5px/1 Inter, sans-serif; color: var(--denim); cursor: pointer; border-radius: 8px; text-align: center }
.bs-actions-more > *:hover { background: var(--paper, #F4F1EC); color: var(--ink) }
.bs-filebtn { cursor: pointer }
.bs-filebtn input { display: none }

/* the selected piece, over the 3D */
.bs-sel { position: absolute; left: 12px; bottom: 56px; width: min(340px, calc(100% - 24px)); background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(15, 20, 30, .2); padding: 10px 12px; z-index: 4; font: 13px/1.4 Inter, sans-serif; color: var(--ink) }
.bs-sel-head { display: flex; gap: 8px; align-items: center }
.bs-sel-head b { font-size: 14px }
.bs-sel-head small { color: var(--denim) }
.bs-x { margin-left: auto; border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--denim); padding: 4px }
.bs-sel-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px }
.bs-sel-row .hs-btn { padding: 7px 11px }
.bs-sel-row label { font-size: 12.5px; display: flex; gap: 6px; align-items: center }
.bs-sel-row input[type=range] { width: 120px; accent-color: var(--rust) }
.bs-sel-row input[type=number] { width: 70px; padding: 5px 7px; border: 1.5px solid #D5DADD; border-radius: 8px; font: inherit }
.bs-notes-list { margin: 6px 0 0; padding: 0 0 0 16px; font-size: 12.5px }
.bs-notes-list li.red { color: #B23A1E } .bs-notes-list li.amber { color: #8a5a00 }
.bs-ok { margin: 6px 0 0; color: #2e7a4a; font-size: 12.5px }
.bs-hint { margin: 6px 0 0; color: #4F5B64; font-size: 12px }

/* what to look at, top right, over the 3D: a pill that opens into the list */
.bs-notes { position: absolute; right: 12px; top: 56px; max-width: min(320px, calc(100% - 24px)); background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(15, 20, 30, .12); padding: 0; font: 13px/1.35 Inter, sans-serif; color: var(--ink); z-index: 3 }
.bs-notes.open { width: min(320px, calc(100% - 24px)) }
.bs-notes-head { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 9px 12px; font: 600 13px/1.2 Inter, sans-serif; color: var(--ink); cursor: pointer; text-align: left; border-radius: 14px }
.bs-notes-head:hover { background: #F6F7F8 }
.bs-notes-arrow { margin-left: auto; color: var(--denim); font-size: 12px }
.bs-notes ul { margin: 0; padding: 0 12px 10px 28px; font-size: 12px }
.bs-notes li { margin: 2px 0 }
.bs-notes li a { color: inherit; text-decoration: none } .bs-notes li a:hover { text-decoration: underline }
.bs-notes li.red { color: #B23A1E } .bs-notes li.amber { color: #8a5a00 }

/* numbers over the 3D: the gaps around the selected piece, the room's size from above */
.bs-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden }
.bs-label { position: absolute; left: 0; top: 0; white-space: nowrap; background: rgba(31, 42, 51, .88); color: #fff; border-radius: 999px; padding: 3px 8px; font: 600 12px/1.2 Inter, sans-serif; box-shadow: 0 1px 4px rgba(15, 20, 30, .2); will-change: transform }
.bs-label.dim { background: rgba(255, 255, 255, .95); color: var(--ink); border: 1px solid var(--line); font-size: 13px }

/* your image */
.bs-image { position: fixed; inset: 0; z-index: 60; background: rgba(15, 20, 30, .55); display: grid; place-items: center; padding: 16px }
.bs-image[hidden] { display: none }
.bs-image-card { background: #fff; border-radius: 16px; padding: 14px; width: min(920px, 100%); max-height: 100%; overflow: auto; display: grid; gap: 10px }
.bs-image-card img { width: 100%; height: auto; border-radius: 10px; display: block }
.bs-image-actions { display: flex; gap: 8px; flex-wrap: wrap }

@media (max-width: 880px) {
  .bs-sel { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; z-index: 50 }
  .bs-notes { top: 50px; right: 8px; max-width: min(280px, calc(100% - 16px)) }
  .bs-notes.open { width: min(280px, calc(100% - 16px)) }
  .bs .hs-tools .ghost { display: inline-flex }
  .bs .hs-tools { top: auto; bottom: 58px; right: 10px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 20px) }
  .bs .hs-tools .hs-btn { padding: 7px 11px; font-size: 12px }
  .bs-label { font-size: 11px; padding: 2px 6px }
  .bs-actions { position: static; box-shadow: none; padding-top: 4px }   /* the page scrolls, not the panel: the actions sit at its end */
}
@media (max-width: 420px) { .bs-room { grid-template-columns: 1fr 1fr 1fr } .bs-adds { grid-template-columns: 1fr 1fr } .bs-presets { grid-template-columns: 1fr 1fr } }
