.studio { background: #e7ecf2; background-image: radial-gradient(52% 46% at 2% 10%, rgb(255 255 255 / .8), transparent 72%), radial-gradient(46% 56% at 100% 60%, rgb(255 255 255 / .6), transparent 72%), linear-gradient(165deg, #eef2f7 0%, #dde5ee 52%, #e9eef4 100%); padding: 18px 0 30px; }
.studio__wrap { max-width: 1560px; }
/* The studio is a room, not a sheet on the desk: full width on the platinum backdrop (the site's page-on-desk style is set aside here). */
.is-desk main > #view-studio > .section { padding: 16px clamp(12px, 2vw, 28px) 30px; background: #e7ecf2; background-image: radial-gradient(52% 46% at 2% 10%, rgb(255 255 255 / .8), transparent 72%), radial-gradient(46% 56% at 100% 60%, rgb(255 255 255 / .6), transparent 72%), linear-gradient(165deg, #eef2f7 0%, #dde5ee 52%, #e9eef4 100%); }
.is-desk main > #view-studio > .section > .wrap { max-width: 1560px; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.studio__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 12px; }
.studio__top .back-link { margin: 0; }
.studio__title { margin: 0; font: 700 clamp(1.6rem, 2.4vw, 2.2rem)/1.1 Georgia, "Times New Roman", serif; color: #12233f; }
.studio__title:focus { outline: none; }
.studio__flag { margin: 0 0 0 auto; padding: 8px 14px; border-radius: 999px; background: #12233f; color: #fffdf8; font-size: .85rem; font-weight: 600; }
.studio__lede { flex: 1 1 100%; margin: 0; color: #3a4558; font-size: .95rem; }

.studio__grid { display: grid; gap: 14px; grid-template-columns: minmax(270px, 320px) minmax(0, 1fr) minmax(260px, 330px); grid-template-areas: "plan photo rooms" "plan photo thumbs" "sum sum sum"; grid-template-rows: auto 1fr auto; align-items: start; }
.studio-panel { background: rgb(255 255 255 / .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .95); border-radius: 18px; box-shadow: 0 12px 30px rgb(52 72 104 / .12); padding: 16px; min-width: 0; }
.studio-panel h2 { margin: 0 0 10px; font: 700 1.3rem/1.15 Georgia, "Times New Roman", serif; color: #12233f; }
.studio-plan { grid-area: plan; }
.studio-stage { grid-area: photo; }
.studio-rooms { grid-area: rooms; }
.studio-thumbs { grid-area: thumbs; }
.studio-sum { grid-area: sum; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

.studio label { display: block; margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: #12233f; }
.studio select { width: 100%; min-height: 46px; padding: 0 8px 0 10px; text-overflow: ellipsis; border: 1.5px solid #b9c3d3; border-radius: 10px; background: #fffdf8; color: #12233f; font: 600 .95rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; }
.studio select:focus-visible, .studio button:focus-visible, .studio-frame:focus-visible { outline: 3px solid #12233f; outline-offset: 2px; }
.studio-award { display: inline-block; margin: 10px 0 0; padding: 6px 20px 6px 12px; background: linear-gradient(90deg, #b8944f, #d9bd7c); color: #12233f; font: 700 .75rem/1.1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); }
.studio-award-src, .studio-plan__note { margin: 6px 0 0; font-size: .82rem; line-height: 1.35; color: #3a4558; }
.studio-exterior { position: relative; margin: 10px 0; aspect-ratio: 16 / 10; border-radius: 12px; background: #dfe6ee center / cover no-repeat; box-shadow: 0 0 0 1px rgb(18 35 63 / .12); }
.studio-tag { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 10px; border-radius: 999px; background: rgb(18 35 63 / .86); color: #fffdf8; font-size: .78rem; line-height: 1.25; }

.studio-stage h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.studio-frame { position: relative; width: 100%; max-height: min(68svh, 720px); margin: 0 auto; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #dfe6ee; box-shadow: 0 0 0 1px rgb(18 35 63 / .12); }
.studio-frame img { display: block; width: 100%; height: 100%; object-fit: contain; background: #dfe6ee; }
.studio-frame.is-loading::after { content: "Loading photo…"; position: absolute; inset: 0; display: grid; place-items: center; color: #3a4558; font-size: .95rem; background: rgb(223 230 238 / .7); }
.studio-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; color: #12233f; font: 600 1.05rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; background: repeating-linear-gradient(135deg, #e3e9f0 0 14px, #dbe2eb 14px 28px); }
.studio-caption { margin: 10px 0 0; font-size: .95rem; line-height: 1.45; color: #2c3443; }
.studio-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; }
.studio-nav[hidden] { display: none; }
.studio-nav button, .studio-room { min-height: 46px; padding: 0 16px; border: 1.5px solid #8c9db5; border-radius: 10px; background: #fffdf8; color: #12233f; font: 600 .95rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.studio-nav button:hover, .studio-room:hover { border-color: #12233f; }
.studio-count { font-size: .9rem; color: #3a4558; }

.studio-rooms__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.studio-room { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 12px; text-align: left; }
.studio-room[aria-pressed="true"] { background: #12233f; border-color: #12233f; color: #fffdf8; }
.studio-room__n { font-size: .78rem; font-weight: 400; opacity: .85; }
.studio-thumbs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.studio-thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; min-height: 56px; border: 2px solid transparent; border-radius: 10px; background: #dfe6ee center / cover no-repeat; cursor: pointer; box-shadow: 0 0 0 1px rgb(18 35 63 / .15); }
.studio-thumb[aria-pressed="true"] { border-color: #c2a05e; box-shadow: 0 0 0 2px #12233f; }
.studio-thumb__n { position: absolute; left: 5px; top: 5px; min-width: 20px; padding: 1px 5px; border-radius: 999px; background: rgb(18 35 63 / .82); color: #fffdf8; font-size: .72rem; }
.studio-hint { margin: 0; font-size: .92rem; color: #3a4558; }
.studio-gaps { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid #c2a05e; background: rgb(255 253 248 / .8); border-radius: 0 10px 10px 0; }
.studio-gaps h3 { margin: 0 0 4px; font: 700 .85rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; color: #12233f; }
.studio-gaps ul { margin: 0; padding-left: 18px; font-size: .85rem; line-height: 1.4; color: #2c3443; }

.studio-sum h2 { margin: 0; }
.studio-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.studio-chips li { padding: 8px 14px; border: 1px solid #b9c3d3; border-radius: 999px; background: #fffdf8; color: #12233f; font-size: .92rem; }
.studio-discuss { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: #0f2a52; color: #fff; font: 700 1.05rem/1 Georgia, "Times New Roman", serif; cursor: pointer; box-shadow: 0 8px 20px rgb(15 42 82 / .28); }
.studio-discuss:hover { background: #163a6e; }
.studio-sum__note, .studio__foot { flex: 1 1 100%; margin: 0; font-size: .85rem; line-height: 1.4; color: #3a4558; }
.studio__foot { margin-top: 12px; }

@media (max-width: 1100px) {
  .studio__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "plan rooms" "photo photo" "thumbs thumbs" "sum sum"; grid-template-rows: auto; }
  .studio-thumbs__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* Phones: chooser, room selector, picture, thumbnails, summary, button — in that order, nothing sticky. */
@media (max-width: 700px) {
  .studio__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "plan" "rooms" "photo" "thumbs" "sum"; }
  .studio__flag { margin-left: 0; }
  .studio-panel { padding: 14px; }
  .studio-thumbs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-discuss { width: 100%; padding: 0 14px; }
  .studio-nav button { padding: 0 12px; }
}
@media (prefers-reduced-motion: no-preference) { .studio-frame img { transition: opacity 160ms ease; } .studio-frame.is-loading img { opacity: .4; } }

/* ====================== 2026-11-17: welcome, filters, homes first, then one home ====================== */
.studio__top { margin-bottom: 14px; }
.studio__flag { background: none; color: #46546a; border: 1px solid #b9c3d3; font-weight: 600; padding: 5px 12px; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.studio-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 10px; }
.studio-bar__title { margin: 0 auto 0 0; font: 700 1.5rem/1.15 Georgia, "Times New Roman", serif; color: #12233f; }
#studio-home .studio-bar__title { margin: 0; }
#studio-home .studio-award { margin: 0 auto 0 0; }
.studio-bar__title:focus { outline: none; }
.studio-btn { min-height: 46px; padding: 0 18px; border: 1.5px solid #8c9db5; border-radius: 999px; background: rgb(255 255 255 / .7); color: #12233f; font: 600 .95rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.studio-btn:hover { border-color: #12233f; background: #fff; }
.studio-btn--primary { background: #0f2a52; border-color: #0f2a52; color: #fff; }
.studio-btn--primary:hover { background: #163a6e; border-color: #163a6e; }
.studio-btn--quiet { border-color: transparent; background: none; text-decoration: underline; text-underline-offset: 3px; padding: 0 10px; }
.studio-btn--big { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.studio-link { min-height: 46px; padding: 0 10px; border: 0; background: none; color: #12233f; font: 600 .95rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.studio-fchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.studio-fchips li { padding: 7px 12px; border-radius: 999px; background: #12233f; color: #fffdf8; font-size: .85rem; }
.studio-result { margin: 0 0 12px; font-size: .92rem; color: #3a4558; }

.studio-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.studio-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: rgb(255 255 255 / .72); border: 1px solid rgb(255 255 255 / .95); box-shadow: 0 12px 28px rgb(52 72 104 / .13); }
.studio-card__photo { position: relative; aspect-ratio: 16 / 10; background: #dfe6ee center 58% / cover no-repeat; }
.studio-card__award { position: absolute; left: 0; top: 12px; margin: 0; padding: 6px 20px 6px 12px; background: linear-gradient(90deg, #b8944f, #d9bd7c); color: #12233f; font: 700 .72rem/1.1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); }
.studio-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 12px 14px 14px; }
.studio-card__name { margin: 0; font: 700 1.25rem/1.15 Georgia, "Times New Roman", serif; color: #12233f; }
.studio-card__n { grid-column: 1; margin: 0; font-size: .88rem; color: #46546a; }
.studio-card__go { grid-column: 2; grid-row: 1 / span 2; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: #0f2a52; color: #fff; font: 600 .95rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: nowrap; cursor: pointer; }
.studio-card__go:hover { background: #163a6e; }
.studio-none, .studio-unknown { margin: 16px 0 0; padding: 18px; border-radius: 16px; background: rgb(255 255 255 / .7); border: 1px solid rgb(255 255 255 / .95); }
.studio-none__t { margin: 0 0 10px; font: 700 1.2rem/1.2 Georgia, "Times New Roman", serif; color: #12233f; }
.studio-unknown h3 { margin: 0 0 4px; font: 700 1.05rem/1.2 Georgia, "Times New Roman", serif; color: #12233f; }
.studio-unknown p, .studio-unknown ul { margin: 0 0 6px; font-size: .92rem; color: #2c3443; }

/* One home: rooms left, the picture right, the one action under them. */
#studio-home .studio__grid { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); grid-template-areas: "rooms photo" "sum photo"; grid-template-rows: auto 1fr; }
.studio-panel h3 { margin: 0 0 10px; font: 700 1.3rem/1.15 Georgia, "Times New Roman", serif; color: #12233f; }
.studio-design { margin-top: 14px; }
.studio-design[hidden] { display: none; }
#studio-home .studio-sum { display: block; align-self: start; }
#studio-home .studio-discuss { width: 100%; }
.studio-sum__note { margin: 8px 0 0; }
#studio-thumbs-box { margin-top: 12px; }
#studio-home .studio-thumbs__list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.studio-details { margin: 12px 0 0; border-top: 1px solid #cfd8e4; }
.studio-details summary { display: flex; align-items: center; min-height: 46px; cursor: pointer; font-weight: 600; color: #12233f; }
.studio-details ul { margin: 0 0 4px; padding-left: 20px; font-size: .92rem; line-height: 1.45; color: #2c3443; }

/* Welcome and filter dialog. */
.studio-dlg { width: min(680px, calc(100vw - 24px)); max-height: calc(100svh - 24px); overflow: auto; overscroll-behavior: contain; padding: clamp(26px, 5vw, 52px) clamp(20px, 5vw, 56px) clamp(22px, 4vw, 40px); border: 1px solid rgb(255 255 255 / .95); border-radius: 26px; color: #12233f; text-align: center;
  background: #eef2f7; background-image: radial-gradient(70% 60% at 0% 0%, rgb(255 255 255 / .95), transparent 70%), linear-gradient(160deg, #f4f7fb, #dfe7f0); box-shadow: 0 30px 80px rgb(18 35 63 / .35); }
.studio-dlg::backdrop { background: rgb(18 35 63 / .45); }
.studio-dlg__x { position: absolute; right: 12px; top: 12px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; color: #46546a; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.studio-dlg__x:hover { background: rgb(18 35 63 / .08); }
.studio-dlg__rule { width: 64px; height: 3px; margin: 0 auto 18px; background: #c2a05e; border-radius: 2px; }
.studio-dlg__title { margin: 0 0 14px; font: 700 clamp(1.9rem, 5vw, 2.9rem)/1.1 Georgia, "Times New Roman", serif; color: #12233f; }
.studio-dlg__copy { max-width: 30em; margin: 0 auto 28px; font-size: 1.12rem; line-height: 1.55; color: #2c3443; }
.studio-dlg__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; }
.studio-dlg__foot { margin: 10px 0 0; }
.studio-dlg button:focus-visible, .studio-dlg select:focus-visible, .studio-btn:focus-visible, .studio-card__go:focus-visible, .studio-details summary:focus-visible { outline: 3px solid #12233f; outline-offset: 3px; }
.studio-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 0 0 26px; text-align: left; }
.studio-field label { margin-bottom: 6px; font-size: 1rem; }
.studio-field label span { display: block; font-weight: 400; font-size: .82rem; color: #46546a; }
.studio-field select { min-height: 50px; font-size: 1.05rem; }
.studio-field--off select { background: #e3e8ef; color: #5a6679; }
.studio-field__note { margin: 6px 0 0; font-size: .85rem; color: #46546a; }

@media (max-width: 900px) {
  #studio-home .studio__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rooms" "photo" "sum"; grid-template-rows: auto; }
}
@media (max-width: 560px) {
  .studio-filters { grid-template-columns: 1fr; }
  .studio-dlg__actions .studio-btn--big { width: 100%; }
  .studio-bar__title { flex: 1 1 100%; }
  .studio-card__body { grid-template-columns: minmax(0, 1fr); }
  .studio-card__go { grid-column: 1; grid-row: auto; margin-top: 8px; }
}
@media (prefers-reduced-motion: no-preference) { .studio-dlg[open] { animation: studio-in 220ms ease-out; } @keyframes studio-in { from { opacity: 0; transform: translateY(8px); } } }

/* ====================== 2026-11-17: photos beside the picture, all on screen ====================== */
/* The picture is sized to the window's height so it, its caption and the photo controls are visible without scrolling.
   The strip of this room's photos stands beside it at the same height and scrolls inside itself if there are many. */
.studio-viewer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
.studio-viewer .studio-frame { max-height: max(260px, calc(100svh - 330px)); align-self: start; }
.studio-strip { position: relative; width: 148px; margin: 0 !important; overflow-y: auto; overscroll-behavior: contain; border-radius: 12px; background: rgb(223 230 238 / .6); box-shadow: inset 0 0 0 1px rgb(18 35 63 / .1); }
.studio-strip[hidden] { display: none; }
#studio-home .studio-strip .studio-thumbs__list { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 8px; }
.studio-strip .studio-thumb { aspect-ratio: 4 / 3; }
.studio-strip:focus-within { box-shadow: inset 0 0 0 1px rgb(18 35 63 / .3); }
@media (max-width: 900px) {
  /* narrow screens: the strip runs under the picture and scrolls sideways */
  .studio-viewer { grid-template-columns: minmax(0, 1fr); }
  .studio-viewer .studio-frame { max-height: none; }
  .studio-strip { width: auto; overflow-x: auto; overflow-y: hidden; }
  #studio-home .studio-strip .studio-thumbs__list { position: static; grid-auto-flow: column; grid-auto-columns: 112px; grid-template-columns: none; width: max-content; }
}

/* ====================== 2026-11-17: room sidebar (Option 1) ====================== */
/* A home: compact header, frosted "Which room?" sidebar on the left, the picture on the right with its photo strip
   under it. Phones: the sidebar folds into one control above the picture. */
.studio-bar--home { gap: 8px 14px; margin-bottom: 12px; }
#studio-home .studio-bar__title { font-size: clamp(1.5rem, 2.2vw, 2rem); }
#studio-home .studio-award { margin: 0; }
#studio-home .studio-design { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; }
#studio-home .studio-design[hidden] { display: none; }
#studio-home .studio-design label { margin: 0; }
#studio-home .studio-design select { width: auto; max-width: min(100%, 340px); }
#studio-home .studio__grid { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); grid-template-areas: "rooms photo" "sum photo"; grid-template-rows: auto 1fr; }
.studio-side { grid-area: rooms; position: relative; z-index: 2; padding: 14px 12px; }
.studio-side h3 { margin: 0 4px 8px; }
.studio-rooms__list, .studio-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.studio-row { position: relative; min-width: 0; }
.studio-row[hidden] { display: none; }
.studio-room { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 44px; padding: 4px 12px; border: 1px solid rgb(18 35 63 / .1); border-radius: 12px; background: rgb(255 255 255 / .55); text-align: left; }
.studio-room:hover { border-color: #12233f; background: #fff; }
.studio-room[aria-pressed="true"], .studio-row.is-on > .studio-room { background: #12233f; border-color: #12233f; color: #fffdf8; }
.studio-ico { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.studio-room__name { flex: 1 1 auto; min-width: 0; }
.studio-room__n { flex: none; font-size: .78rem; font-weight: 400; opacity: .8; white-space: nowrap; }
.studio-room--sub { min-height: 44px; background: none; border-color: transparent; }
.studio-more { margin: 4px 0 0 12px; padding-left: 8px; border-left: 2px solid rgb(194 160 94 / .6); }
.studio-more[hidden] { display: none; }
#studio-more[aria-expanded="true"] .studio-room__n::after { content: " ▴"; }
#studio-more[aria-expanded="false"] .studio-room__n::after { content: " ▾"; }
/* Primary: two compact choices under the row. */
.studio-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 4px 0 2px 34px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px rgb(18 35 63 / .12); }
.studio-sub[hidden], .studio-subbtn[hidden] { display: none; }
.studio-subbtn { min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: #12233f; font: 600 .92rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.studio-subbtn:hover { background: rgb(18 35 63 / .08); }
.studio-subbtn[aria-pressed="true"] { background: #12233f; color: #fffdf8; }
/* LifeSpace help: its own button at the right edge of the row. */
.studio-row--help > .studio-room { padding-right: 56px; }
.studio-help { position: absolute; right: 0; top: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; font: 700 .95rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; color: #12233f; }
.studio-help::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #f0dfb4; box-shadow: 0 0 0 1.5px #8a6d2f; z-index: -1; }
.studio-help { z-index: 1; isolation: isolate; }
.studio-help:hover::before, .studio-help[aria-expanded="true"]::before { background: #e6cd8d; }
.studio-pop { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 5; width: min(250px, 60vw); margin: 0; padding: 12px 14px; border-radius: 12px; background: #fffdf8; color: #12233f; font-size: .95rem; line-height: 1.4; box-shadow: 0 10px 28px rgb(18 35 63 / .25), 0 0 0 1px rgb(194 160 94 / .7); }
.studio-pop[hidden] { display: none; }
/* Phones' "Which room?" control (hidden on wide screens). */
.studio-pick { display: none; }

.studio-stage__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 8px; }
.studio-stage__head h3 { margin: 0 auto 0 0; }
.studio-full { min-height: 44px; padding: 0 6px; font-size: .88rem; }
.studio-full[hidden] { display: none; }
.studio-viewer { display: block; }
.studio-viewer .studio-frame { max-height: max(240px, calc(100svh - 430px)); }
.studio-viewer.is-full .studio-frame { max-height: none; }
/* Give the frame the picture's own shape inside the height limit, so nothing is cropped or stretched. */
.studio-viewer .studio-frame { width: auto; max-width: 100%; }
.studio-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin: 10px 0 0; }
.studio-nav[hidden] { display: none; }
.studio-arrow { width: 44px; height: 44px; min-height: 44px !important; padding: 0 !important; border-radius: 50% !important; font-size: 1.1rem !important; }
.studio-strip { width: auto; overflow-x: auto; overflow-y: hidden; }
#studio-home .studio-strip .studio-thumbs__list { position: static; display: grid; grid-auto-flow: column; grid-auto-columns: 124px; grid-template-columns: none; width: max-content; gap: 8px; padding: 8px; }
.studio-thumb[aria-pressed="true"] { border-color: #c2a05e; box-shadow: 0 0 0 2px #12233f; }
.studio-caption { margin: 8px 0 0; }

@media (max-width: 900px) {
  #studio-home .studio__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rooms" "photo" "sum"; grid-template-rows: auto; }
  #studio-home .studio-design { margin-left: 0; flex: 1 1 100%; }
  #studio-home .studio-design select { flex: 1 1 auto; max-width: none; }
  .studio-side { padding: 10px; }
  .studio-side h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .studio-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid #12233f; border-radius: 12px; background: #fffdf8; color: #12233f; font: 700 1rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; cursor: pointer; }
  .studio-pick::before { content: "Which room?"; font-weight: 400; color: #46546a; }
  .studio-pick__chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
  .studio-pick[aria-expanded="true"] .studio-pick__chev { transform: rotate(-135deg) translate(-2px, -2px); }
  .studio-side .studio-rooms__list { margin-top: 8px; }
  /* Folded: only the Primary choices stay out, right above the picture. */
  .studio-side:not(.is-open) .studio-rooms__list > .studio-row { display: none; }
  .studio-side:not(.is-open).is-primary .studio-rooms__list > .studio-row[data-row="primary"] { display: block; }
  .studio-side:not(.is-open).is-primary .studio-row[data-row="primary"] > .studio-room { display: none; }
  .studio-side:not(.is-open):not(.is-primary) .studio-rooms__list { margin-top: 0; }
  .studio-sub { margin-left: 0; }
  .studio-pop { position: static; transform: none; width: auto; margin: 6px 0 2px; }
  .studio-viewer .studio-frame { max-height: 62svh; }
  #studio-home .studio-strip .studio-thumbs__list { grid-auto-columns: 104px; }
}
@media (prefers-reduced-motion: no-preference) {
  .studio-room, .studio-subbtn, .studio-help::before { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
  .studio-pop:not([hidden]) { animation: studio-pop 160ms ease-out; }
  @keyframes studio-pop { from { opacity: 0; } }
}
/* The strip's thumbnails sit inside the arrow row: keep their own look (whole photo scaled to fill the tile), not the arrow buttons'. */
#studio-nav .studio-thumb { min-height: 0; padding: 0; border: 2px solid transparent; border-radius: 10px; background-color: #dfe6ee; background-position: center; background-size: cover; background-repeat: no-repeat; }
#studio-nav .studio-thumb[aria-pressed="true"] { border-color: #c2a05e; }
.studio-pick, .studio-help, .studio-room { scroll-margin-top: 160px; }
@media (max-width: 900px) {
  #studio-home .studio-design { min-width: 0; max-width: 100%; }
  #studio-home .studio-design select { min-width: 0; width: 100%; }
}
#studio-ico-ns { display: none; }
