/* Shared proportions keep all three presentations comparable. */
body[data-studio] {
  --studio-paper: #f8f9f6;
  --studio-panel: #fff;
  --studio-ink: #162c31;
  --studio-muted: #4c6266;
  --studio-rule: #d6ddda;
  --studio-blue: #155877;
  --studio-rail: #edf1ee;
  --studio-gutter: clamp(20px, 3.8vw, 66px);
  --glass: linear-gradient(111deg,#e7efedee 0%,#fffffff7 27%,#e0ebebe6 49%,#f7faf9ed 71%,#edf5f1e6 100%);
  color: var(--studio-ink);
  background: var(--studio-paper);
  font-family: "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body[data-studio] .mast {
  position: sticky;
  z-index: 8;
  top: 0;
  color: var(--studio-ink);
  background: var(--glass);
  border-bottom: 1px solid #b6c8c6a1;
  box-shadow: inset 0 1px #fffffff0, inset 0 -1px #ffffff85, 0 3px 13px #223e4211;
  -webkit-backdrop-filter: saturate(135%) blur(19px);
  backdrop-filter: saturate(135%) blur(19px);
}
.mast-inner { max-width: 1510px; min-height: 69px; gap: 22px; padding-inline: var(--studio-gutter); }
.identity { flex: 0 0 auto; align-items: center; min-height: 44px; }
.identity img { display: block; width: 106px; height: auto; mix-blend-mode: multiply; }
.product { padding-left: 20px; font-size: .97rem; font-weight: 620; letter-spacing: -.035em; white-space: nowrap; }
.review-nav { display: flex; align-items: center; gap: 14px; line-height: 1.2; }
.review-nav a { color: var(--studio-blue); text-underline-offset: .23em; }
.review-nav a[hidden] { display: none; }
.studio-app, .studio-board { max-width: 1510px; padding-inline: var(--studio-gutter); margin-inline: auto; }
.studio-app { padding-bottom: clamp(25px,4vw,64px); }
.studio-pagehead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: clamp(20px,2.2vw,37px); }
.page-title { min-width: 0; }
.page-title h1 { font-size: clamp(2.05rem,3.2vw,3.6rem); line-height: .99; letter-spacing: -.062em; font-weight: 550; }
.page-title small { display: block; color: var(--studio-muted); font-size: .76rem; font-weight: 650; margin-bottom: 5px; }
.studio-pagehead .guide-btn { color: var(--studio-blue); min-width: 44px; padding: 0; }
.studio-view-tools { display: flex; align-items: center; gap: clamp(6px, 2vw, 22px); }
.studio-pagehead .camera-shortcut { gap: 5px; }
@media (max-width: 390px) {
  .studio-pagehead { flex-wrap: wrap; column-gap: 6px; }
  .studio-view-tools { margin-left: auto; }
  .studio-pagehead .camera-shortcut { font-size: .82rem; }
}
.studio-workbench { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(330px, .92fr); align-items: start; gap: clamp(24px,4vw,70px); }
.drawing-zone, .inspector-zone, .studio-followup { min-width: 0; }
.drawing-zone { position: sticky; top: 85px; }
.drawing { background: var(--studio-panel); border: 1px solid var(--studio-rule); border-radius: 16px; box-shadow: 0 16px 40px -33px #142b2c60; }
.drawing-bar { padding: 4px 12px; }
.drawing-tabs { gap: 2px; }
.drawing-tabs button { color: var(--studio-muted); padding-inline: 12px; }
.drawing-tabs button[aria-pressed=true] { color: var(--studio-blue); border-color: var(--studio-blue); }
.dimension-toggle { color: var(--studio-blue); }
.drawing-frame { position: relative; isolation: isolate; }
#scene-slot .live-kitchen { height: clamp(350px, 39vw, 610px); }
.drawing-frame .metric-bar {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  width: auto;
  align-items: stretch;
  gap: 0;
  padding: 7px 11px;
  border: 1px solid #ffffffb8;
  border-radius: 12px;
  background: linear-gradient(140deg, #fffffff0, #f8fbf4ca);
  box-shadow: 0 4px 19px #182d331b, inset 0 1px #fff9;
  color: #17343a;
  -webkit-backdrop-filter: blur(13px) saturate(110%);
  backdrop-filter: blur(13px) saturate(110%);
}
.drawing-frame .metric-bar>div { align-items: baseline; text-align: left; flex: 0 0 auto; display: block; padding: 0 11px; }
.drawing-frame .metric-bar>div:first-child { padding-left: 0; }
.drawing-frame .metric-bar>div:last-child { padding-right: 0; }
.drawing-frame .metric-bar>div+div { border-left: 1px solid #556c702d; }
.drawing-frame .metric-bar span { display: block; color: #465c60; font-size: .69rem; line-height: 1.3; }
.drawing-frame .metric-bar strong { color: inherit; display: block; font-size: 1.16rem; font-weight: 620; line-height: 1.2; }
.drawing-frame .metric-bar small { color: inherit; font-size: .67rem; letter-spacing: 0; }
/* Measurements remain freely clickable. The dimension list gets its own surface when long. */
.drawing-frame .metric-bar:not(:has(button,a)) { pointer-events: none; }
.drawing-frame:has([data-kitchen-view=placement]) {
  padding-top: 55px;
  background: linear-gradient(100deg,#e7ece6,#fafbf7);
}
body[data-studio] .drawing-frame:has([data-kitchen-view=placement]) .metric-bar {
  position: absolute;
  top: 5px; right: 10px; bottom: auto; left: auto;
  margin: 0;
  width: auto;
  border-radius: 8px;
  border: 1px solid #ffffffda;
}
.inspector-zone { background: var(--studio-panel); border-radius: 16px; padding: 17px clamp(16px,2vw,30px) 21px; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 1px 0 13px; }
.panel-heading h2, h2.panel-heading { font-size: clamp(1.33rem,1.7vw,1.78rem); font-weight: 590; letter-spacing: -.045em; }
.panel-heading p { color: var(--studio-muted); font-size: .88rem; }
.ss-control-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; min-width: 0; min-height: 58px; margin: 0; padding: 6px 0; border: 0; border-top: 1px solid var(--studio-rule); }
.ss-control-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .96rem; font-weight: 620; color: var(--studio-ink); letter-spacing: -.02em; }
.ss-options { min-width: 0; max-width: 100%; margin-inline-start: auto; display: flex; align-items: center; gap: 2px; padding: 2px; background: var(--studio-rail); border-radius: 10px; }
.ss-option { position: relative; isolation: isolate; border: 1px solid transparent; background: transparent; color: var(--studio-muted); min-height: 44px; min-width: 44px; padding: 3px 9px; border-radius: 8px; font-size: .82rem; line-height: 1.2; font-weight: 580; text-align: center; white-space: normal; }
.ss-option:is([aria-pressed=true],[aria-checked=true],.is-active,.selected) { color: #fff; background: var(--studio-blue); border-color: var(--studio-blue); }
.ss-option:disabled { opacity: .56; }
.ss-option svg { flex: none; vertical-align: middle; margin-right: 4px; }
.ss-control-field { width: 100%; color: var(--studio-muted); font-size: .8rem; }
.ss-options:has(.ss-option:nth-child(3)) { flex-wrap: nowrap; }
.ss-choice-row .ss-option { display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.ss-choice-row .ss-option svg { margin: 0; }
body:not([data-studio=folio]) .ss-choice-row .ss-options { display: grid; grid-auto-columns: minmax(0,1fr); grid-auto-flow: column; width: min(100%,153px); }
body:not([data-studio=folio]) .ss-choice-row .ss-options:has(.ss-option:nth-child(3)) { width: min(100%,253px); }
#layout-options, #stone-finishes { scroll-margin-top: 85px; }
.ss-control-row .switch { color: var(--studio-muted); }
.ss-control-row .switch-track { background: #717f7d; }
.ss-control-row .switch[aria-checked=true] .switch-track { background: var(--studio-blue); }
.panel-foot { border-top: 1px solid var(--studio-rule); padding-top: 12px; }
.studio-followup { padding-block: 12px; }
.tool-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 0; font-weight: 600; color: var(--studio-blue); }
.studio-switcher { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding-top: 16px; color: var(--studio-muted); }
.studio-switcher a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
/* Gallery: white oak, pearl glass and a quiet single column of controls. */
[data-studio=gallery] .inspector-zone { padding-inline: 0; border-radius: 0; background: transparent; }
[data-studio=gallery] .ss-option:is([aria-pressed=true],[aria-checked=true],.is-active,.selected) { background: #fff; color: #0a5478; border-color: #b1c6cf; box-shadow: 0 1px 4px #223d4420; }
[data-studio=gallery] .drawing-zone .drawing-tabs { border-radius: 999px; }
/* Workbench: integrated instrument canopy, dark metering and a cool inspector. */
body[data-studio=workbench] { --studio-paper: #eaf0f1; --studio-panel: #fbfdfd; --studio-muted: #40565e; --studio-rule: #c8d5d7; --studio-rail: #e4edf0; --studio-blue: #0b5879; }
body[data-studio=workbench] .mast { color: #f0f8f8; border-bottom-color: #446272; background: linear-gradient(118deg,#183442f4,#274b58ed 49%,#162e3bfa); }
[data-studio=workbench] .identity img { mix-blend-mode: screen; filter: invert(1); }
[data-studio=workbench] .product { border-color: #9db2bb70; }
[data-studio=workbench] .review-nav, [data-studio=workbench] .review-nav a { color: #e0edf0; }
[data-studio=workbench] .studio-workbench { gap: 0; background: #d9e4e6; border: 1px solid #b2c4c9; border-radius: 12px; overflow: clip; }
[data-studio=workbench] .drawing, [data-studio=workbench] .inspector-zone { border: 0; border-radius: 0; box-shadow: none; }
[data-studio=workbench] .drawing-bar { background: #213d49; }
[data-studio=workbench] .drawing-tabs button, [data-studio=workbench] .dimension-toggle { color: #deeaee; }
[data-studio=workbench] .drawing-tabs [aria-pressed=true] { color: #fff; border-bottom-color: #9eddf2; }
[data-studio=workbench] .drawing-frame .metric-bar { color: #fff; background: linear-gradient(122deg,#142e3be8,#293e4ac9); border-color: #e3eff044; box-shadow: inset 0 1px #ffffff24; border-radius: 6px; }
[data-studio=workbench] .drawing-frame .metric-bar span { color: #dfebed; }
[data-studio=workbench] .drawing-frame .metric-bar>div+div { border-color: #ffffff4a; }
[data-studio=workbench] .inspector-zone { border-left: 1px solid #bdcdd0; }
[data-studio=workbench] .ss-options, [data-studio=workbench] .ss-option { border-radius: 5px; }
/* Folio: open editorial composition with wide, directly labeled choices. */
body[data-studio=folio] { --studio-paper: #f4f0e9; --studio-panel: #faf7f1; --studio-ink: #28342e; --studio-muted: #566059; --studio-rule: #cfcac0; --studio-rail: #eae7dd; --studio-blue: #195b74; --glass: linear-gradient(115deg,#fffaf1f2,#f5eee3e6 50%,#fffdf7f2); }
[data-studio=folio] .page-title h1, [data-studio=folio] .panel-heading h2, [data-studio=folio] h2.panel-heading { font-family: "Studio Serif",Georgia,serif; font-style: italic; font-weight: 400; }
[data-studio=folio] .studio-workbench { grid-template-columns: minmax(0,1.5fr) minmax(330px,.85fr); gap: clamp(25px,5vw,80px); }
[data-studio=folio] .drawing { border: 0; border-radius: 0; box-shadow: none; }
[data-studio=folio] .drawing-bar { background: var(--studio-paper); padding-inline: 0; border-top: 1px solid var(--studio-ink); }
[data-studio=folio] .inspector-zone { background: transparent; padding: 0; border-radius: 0; }
[data-studio=folio] .panel-heading { border-top: 1px solid var(--studio-ink); padding-block: 13px; }
[data-studio=folio] .ss-choice-row { display: block; padding-block: 9px; }
[data-studio=folio] .ss-options { margin: 5px 0 0; background: transparent; padding: 0; gap: 6px; }
[data-studio=folio] .ss-option { flex: 1; border-color: #bfc4b9; background: #fffcf6; color: #405145; border-radius: 4px; }
[data-studio=folio] .ss-option:is([aria-pressed=true],[aria-checked=true],.is-active,.selected) { color: #fff; border-color: var(--studio-blue); background: var(--studio-blue); }
[data-studio=folio] .drawing-frame .metric-bar { bottom: 0; left: 0; right: 0; justify-content: center; border-radius: 0; border: 0; border-top: 1px solid #fff7; background: linear-gradient(100deg,#f9f5e9bc,#fffdf4ed 50%,#f9f5e9bc); }
[data-studio=folio] .drawing-frame .metric-bar>div { display: flex; align-items: baseline; gap: 8px; padding-inline: 14px; }
.ss-switch-row .ss-options { background: transparent; margin: 0 0 0 auto; padding: 0; }
body[data-studio] .ss-control-row .ss-control-switch {
  border: 0; border-radius: 0; padding: 0 2px; margin: 0; background: transparent; box-shadow: none; color: var(--studio-muted);
}
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 17px; }
.inspector-zone details[data-lp-measurements], .inspector-zone .studio-followup {
  margin: 10px 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--studio-rule);
  border-bottom: 1px solid var(--studio-rule);
}
.inspector-zone :is([data-lp-measurements], .studio-followup) summary {
  padding: 13px 0;
  color: var(--studio-ink);
  font-size: .96rem;
}
.inspector-zone :is([data-lp-measurements], .studio-followup) summary :is(.subtle,small) {
  display: inline-block;
  margin-left: 6px;
  color: var(--studio-muted);
  font-size: .77rem;
  font-weight: 400;
}
.studio-switcher a[aria-current=page] { color: var(--studio-ink); font-weight: 650; text-decoration: none; }
/* Comparison board shows real, interactive prototype captures at readable scale. */
.studio-board { padding-bottom: 38px; max-width: 1500px; }
.board-head { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(200px,.75fr); align-items: end; gap: clamp(18px,5vw,80px); margin-block: clamp(34px,5vw,80px) 25px; }
.board-head h1 { max-width: 17ch; font-size: clamp(2.6rem,4.45vw,5rem); line-height: .98; font-weight: 520; letter-spacing: -.068em; }
.board-head h1 em { font-weight: 400; }
.board-head p { color: var(--studio-muted); max-width: 45ch; line-height: 1.45; }
.board-views { display: inline-flex; align-items: stretch; margin: 0 0 18px; padding: 3px; border: 1px solid #d4dcd8; border-radius: 999px; background: #eaf0ec; }
.board-views button { flex: 1 1 auto; min-height: 44px; padding: 5px 16px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--studio-muted); font-size: .89rem; font-weight: 610; }
.board-views [aria-pressed=true] { background: #fff; color: #144c62; border-color: #c8d8d3; box-shadow: 0 1px 4px #17392b17; }
.board-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(13px,2vw,34px); }
.direction-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: var(--studio-ink); border-top: 1px solid #687771; text-decoration: none; }
.direction-image { background: #e4eae4; border-radius: 0 0 5px 5px; display: flex; justify-content: center; overflow: hidden; width: 100%; padding: 16px clamp(12px,2.1vw,31px) 0; }
.direction-card:nth-child(2) .direction-image { background: #d4e1e5; }
.direction-card:nth-child(3) .direction-image { background: #e6dfd3; }
.direction-image img { display: block; width: min(100%, 258px); height: auto; align-self: flex-start; border-radius: 9px 9px 0 0; box-shadow: 0 1px 12px #16364222; }
.direction-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 0 0; }
.direction-info h2 { font-size: clamp(1.5rem,2.15vw,2.5rem); letter-spacing: -.05em; font-weight: 580; }
.direction-info small { margin-bottom: 6px; font-size: .75rem; font-weight: 620; color: var(--studio-muted); }
.direction-info p { margin: 8px 0 7px; max-width: 37ch; color: var(--studio-muted); line-height: 1.4; }
.direction-open { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--studio-blue); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.board-foot { border-top: 1px solid var(--studio-rule); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px 16px; margin-top: 25px; padding-top: 12px; color: var(--studio-muted); font-size: .86rem; }
.board-foot a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) {
  .studio-workbench, [data-studio=folio] .studio-workbench { grid-template-columns: minmax(0,1.1fr) minmax(300px, .9fr); gap: 18px; }
  .ss-option { padding-inline: 7px; }
  .mast-inner { min-height: 59px; }
  .drawing-zone { top: 72px; }
  .product { padding-left: 12px; }
}
@media (max-width: 730px) {
  body[data-studio] { --studio-gutter: clamp(15px,4.6vw,25px); }
  .mast-inner { min-height: 53px; padding: 4px var(--studio-gutter); gap: 11px; }
  .identity img { width: 79px; }
  .product { padding-left: 11px; font-size: .87rem; }
  .review-nav { font-size: .77rem; gap: 5px; }
  .studio-workbench, [data-studio=folio] .studio-workbench { display: block; }
  .drawing-zone { position: static; }
  .studio-pagehead { padding-block: 12px 9px; min-height: 62px; }
  .page-title h1 { font-size: clamp(1.75rem,7vw,2.45rem); }
  .page-title small { font-size: .69rem; margin-bottom: 3px; }
  .drawing-tabs button { padding-inline: 8px; font-size: .81rem; }
  .drawing-bar { padding: 0 7px; }
  .dimension-toggle { font-size: .78rem; }
  #scene-slot .live-kitchen { height: clamp(253px,74vw,390px); }
  .drawing-frame .metric-bar { bottom: 7px; right: 7px; padding: 5px 8px; border-radius: 8px; }
  .drawing-frame .metric-bar span { font-size: .69rem; }
  .drawing-frame .metric-bar strong { font-size: 1.13rem; }
  .drawing-frame .metric-bar>div { padding: 0 7px; }
  .drawing { border-radius: 12px; }
  .inspector-zone { padding: 10px 16px 16px; }
  [data-studio=gallery] .drawing-zone { margin-inline: calc(0px - var(--studio-gutter)); }
  [data-studio=gallery] .drawing { border-radius: 0; border-inline: 0; }
  [data-studio=gallery] .drawing-bar { padding-inline: var(--studio-gutter); }
  [data-studio=gallery] .inspector-zone, [data-studio=folio] .inspector-zone { padding-block: 15px; }
  [data-studio=workbench] .studio-workbench { margin-inline: -3px; }
  [data-studio=workbench] #scene-slot .live-kitchen { height: clamp(240px,65vw,355px); }
  [data-studio=workbench] .inspector-zone { border-left: 0; }
  [data-studio=workbench] .ss-choice-row:has(.ss-option:nth-child(3)) { display: block; padding-block: 7px; }
  body[data-studio=workbench] .ss-choice-row .ss-options:has(.ss-option:nth-child(3)) { width: 100%; margin-top: 4px; }
  [data-studio=folio] .panel-heading { padding-top: 8px; }
  [data-studio=folio] .panel-heading h2 { font-size: 1.5rem; }
  [data-studio=folio] .drawing-frame .metric-bar { padding: 7px; }
  [data-studio=folio] .drawing-frame .metric-bar>div { padding-inline: 7px; gap: 4px; }
  .panel-heading { padding: 0 0 8px; }
  .panel-heading h2, h2.panel-heading { font-size: 1.22rem; }
  .ss-control-row { min-height: 55px; padding-block: 4px; }
  .ss-control-label { font-size: .89rem; }
  .ss-option { padding-inline: 7px; font-size: .78rem; }
  #layout-options, #stone-finishes { scroll-margin-top: 65px; }
  .board-head { display: block; margin: 29px 0 20px; }
  .board-head h1 { font-size: clamp(2.4rem,9vw,3.6rem); max-width: 16ch; }
  .board-head p { margin-top: 10px; font-size: .95rem; }
  .board-grid { grid-template-columns: 1fr; gap: 15px; }
  .board-views { margin-bottom: 14px; }
  .board-views button { padding-inline: 13px; font-size: .83rem; }
  .direction-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0,1.05fr); align-items: stretch; }
  .direction-image { padding: 9px 6px 0; max-height: 255px; border-radius: 0 0 3px 3px; }
  .direction-info { align-self: center; padding: 12px 0 7px 15px; }
  .direction-info p { font-size: .88rem; }
  .direction-info h2 { font-size: 1.5rem; }
  .direction-open { font-size: .85rem; }
}
@media (max-width: 730px) and (min-height: 650px) and (orientation: portrait) {
  /* Only the drawing stays in view. The inspector remains in the normal page scroll. */
  [data-studio=workbench] { --pinned-scene: clamp(218px,59vw,302px); --pinned-total: calc(53px + 44px + var(--pinned-scene) + 12px); }
  [data-studio=workbench] .drawing-zone:not(:has([data-kitchen-view=placement])) { position: sticky; top: 53px; z-index: 4; box-shadow: 0 7px 12px -9px #142e3b70; }
  [data-studio=workbench] #scene-slot .live-kitchen:not([data-kitchen-view=placement]) { height: var(--pinned-scene); }
  [data-studio=workbench] .studio-workbench:not(:has([data-kitchen-view=placement])) .inspector-zone :is(button, input, select, label, summary, [id], [tabindex]) { scroll-margin-top: var(--pinned-total); }
  [data-studio=workbench] .studio-workbench:not(:has([data-kitchen-view=placement])) .inspector-zone { padding-bottom: 16px; }
}
@media (max-width: 365px) {
  .mast-inner { gap: 7px; }
  .identity img { width: 69px; }
  .product { font-size: .8rem; padding-left: 7px; }
  .ss-control-row:has(.ss-option:nth-child(3)) { display: block; padding-block: 7px; }
  .ss-control-row:has(.ss-option:nth-child(3)) .ss-options { margin-top: 3px; }
  body:not([data-studio=folio]) .ss-choice-row .ss-options:has(.ss-option:nth-child(3)) { width: 100%; }
  .ss-options:has(.ss-option:nth-child(3))>.ss-option { flex: 1; }
  .direction-info h2 { font-size: 1.27rem; }
  /* Reserve a narrow glass sill inside the drawing on the smallest phones. */
  [data-studio=workbench] .drawing-frame:not(:has([data-kitchen-view=placement])) { padding-bottom: 27px; background: #bbb4a8; }
  [data-studio=workbench] { --pinned-total: calc(53px + 44px + var(--pinned-scene,240px) + 39px); }
}
@media print {
  .mast, .studio-board, .studio-pagehead { position: static; }
  .drawing-zone { position: static; }
}
