/* Keep the introduction above a single workspace: controls left, model right. */
.studio-intro{display:block;min-height:0}
.studio-workspace{margin:0 5%}
.studio-workspace .config-section{margin:0}
.studio-workspace #scene,.studio-workspace #scene canvas{touch-action:none}

@media(min-width:761px){
  .studio-intro{padding:64px 5% 36px;max-width:none}
  .studio-intro .hero-copy{padding:0;text-align:center;max-width:720px;margin:0 auto}
  .studio-intro h2#studio-title{margin-top:0;font-size:clamp(44px,4vw,62px)}
  .studio-intro .intro{margin-top:22px}
  .studio-intro .body-copy{max-width:580px;margin:14px auto 0}
  .studio-intro .button,.studio-intro .hero-secondary{display:none}
  .studio-workspace{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);grid-template-areas:'controls model';gap:clamp(24px,4vw,64px);align-items:start;max-width:1500px;padding-top:28px;border-top:1px solid var(--line)}
  .studio-workspace .config-section{grid-area:controls;padding:0;border:0;min-width:0}
  .studio-workspace .viewer{grid-area:model;position:sticky;top:24px;height:clamp(580px,82vh,820px);min-height:580px;scroll-margin-top:24px}
  .studio-workspace .config-heading{display:flex;flex-direction:column;align-items:flex-start;gap:9px;margin-bottom:24px}
  .studio-workspace .config-heading h2{font-size:24px;line-height:1.25}
  .studio-workspace .config-grid{grid-template-columns:1fr;gap:0}
  .studio-workspace .control-block{padding:18px 0;border:0;border-bottom:1px solid var(--line)}
  .studio-workspace .control-block label,.studio-workspace .control-block legend{margin-bottom:10px;font-weight:500}
  .studio-workspace fieldset.control-block{padding-top:12px;margin-top:18px}
  .studio-workspace .control-note{margin-top:9px;line-height:1.5}
  .studio-workspace .model-sales{flex-direction:column;align-items:flex-start;gap:14px;padding-top:18px}
  .studio-workspace .model-sales>p{line-height:1.65}
  .studio-workspace .sample-note{text-align:left;line-height:1.65;padding-top:15px}
  .studio-workspace .viewer-top{top:12px;left:24px;right:16px;align-items:center}
  .studio-workspace .measure-launch{top:52px;left:24px}
  .studio-workspace .measure-download{top:52px;left:170px}
  .studio-workspace #scene{inset:94px 0 98px}
  .studio-workspace .viewer-bottom{left:24px;right:16px;bottom:42px;gap:12px}
  .studio-workspace .viewer-bottom h2{font-size:22px}
  .studio-workspace .drag-hint{left:24px;bottom:17px}
  .studio-workspace .dimension-editor{padding:20px 16px}
  .studio-workspace .dimension-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .studio-workspace .dimension-fields label:first-child{grid-column:1/-1}
  .studio-workspace .dimension-position .dimension-fields{grid-template-columns:1fr}
  .studio-workspace .dimension-actions button{flex:1;font-size:12px;padding:10px}
}
@media(min-width:1667px){.studio-workspace{margin-left:auto;margin-right:auto}}
@media(min-width:761px) and (max-width:1000px){
  .studio-workspace{grid-template-columns:280px minmax(0,1fr);gap:20px}
  .studio-workspace .viewer-bottom{flex-wrap:wrap;bottom:40px}
  .studio-workspace .viewer-bottom h2{font-size:19px}
  .studio-workspace #scene{bottom:140px}
}

/* The furniture selector belongs to the model, not the material controls. */
.studio-workspace .viewer-bottom{align-items:center;flex-wrap:nowrap;bottom:20px;gap:20px;pointer-events:auto}
.studio-workspace .viewer-bottom .model-picker{width:340px;max-width:100%;min-width:0;padding:0 0 14px;flex:0 1 340px;border-bottom:1px solid var(--line)}
.model-picker select{font-size:16px}
.model-picker .control-note{line-height:1.5}
.studio-workspace #scene{bottom:160px}
@media(max-width:760px){
  .studio-workspace .viewer{min-height:540px}
  .studio-workspace .viewer-bottom{bottom:18px;gap:12px;align-items:flex-end}
  .studio-workspace .viewer-bottom .model-picker{flex:1;padding-bottom:8px}
  .studio-workspace .view-actions{display:grid;grid-template-columns:repeat(2,34px);gap:7px;padding-bottom:8px}
  .studio-workspace .view-actions .icon-button{width:34px;height:34px}
  .studio-workspace #scene{top:112px;bottom:170px}
  .studio-workspace .config-grid>.control-block:last-child{grid-column:1/-1}
}
