/* Research-linked Design Studio, opened from a building concept. */
.studio-page{min-width:0;color:var(--text)}
.studio-page *, .studio-card-measure *{box-sizing:border-box}
.studio-page [hidden]{display:none!important}
.studio-page button,.studio-page select{font-family:Inter,Arial,sans-serif}
.studio-page svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.studio-page :is(button,a,select,summary):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
/* Galleries use the Design Guide components directly; no parallel card styles. */

.studio-page :is(.studio-back,.studio-open-atlas,.room-view-controls button,.studio-design-modes button,.paint-targets button){font-size:11px;font-weight:500;line-height:1.4;color:var(--topic-text,var(--muted));background:var(--topic-bg,var(--surface));border:1px solid var(--topic-border,var(--line));border-radius:999px;padding:7px 13px}
.studio-page :is(.room-view-controls button,.studio-design-modes button,.paint-targets button):is([aria-pressed=true],[aria-current=page]){background:var(--accent);border-color:var(--accent);color:var(--surface)}
.studio-page :is(.studio-back,.studio-open-atlas,.room-view-controls button,.studio-design-modes button,.paint-targets button):hover{background:var(--topic-hover);color:var(--accent-hover)}
.studio-page :is(.room-view-controls button,.studio-design-modes button,.paint-targets button):is([aria-pressed=true],[aria-current=page]):hover{background:var(--accent-hover);color:var(--surface)}
.studio-detail-heading{display:flex;align-items:center;gap:20px;padding:0 0 14px}
.studio-page .studio-back{white-space:nowrap;background:var(--surface)}
.studio-detail-heading>div{flex:1;min-width:0}
.studio-detail-heading h2{font-size:22px;line-height:1.25;letter-spacing:-.03em;margin:0;color:var(--ink);font-weight:600}
.studio-detail-heading h2:focus{outline:0}
.studio-function-question{font-size:11px;line-height:1.5;color:var(--muted);margin:4px 0 0}
.studio-function-question::first-letter{text-transform:uppercase}
.studio-function-position{font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}
.studio-evidence-bar{display:grid;grid-template-columns:minmax(170px,230px) minmax(0,1fr) auto;gap:18px;align-items:center;border:1px solid var(--line);border-radius:9px 9px 0 0;background:var(--surface);padding:12px 16px}
.studio-evidence-bar>label,.studio-building-select{font-size:10px;color:var(--muted);font-weight:500;display:flex;flex-direction:column;gap:5px;min-width:0}
.studio-page select{width:100%;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--panel-soft);font-size:12px;line-height:1.45;padding:7px 9px}
.studio-evidence-brief p{font-size:12px;line-height:1.5;color:var(--text);margin:0 0 5px}
.studio-evidence-brief>div{display:flex;flex-wrap:wrap;gap:5px}
.studio-evidence-brief span{font-size:9px;line-height:1.4;color:var(--muted);background:var(--panel-soft);border:1px solid var(--line);border-radius:4px;padding:2px 5px}
.studio-page .studio-open-atlas{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:10px;padding:7px 10px;background:var(--surface)}
.studio-open-atlas svg{width:13px;height:13px}
.studio-workbench{min-width:0;border:1px solid var(--line);border-top:0;background:var(--surface);border-radius:0 0 9px 9px;overflow:hidden}
.studio-page .design-studio{display:flex;flex-direction:column;background:var(--surface);height:100%;min-width:0;color:var(--text)}
.studio-page .design-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(255px,25vw,330px);padding:0;gap:0;flex:1;min-width:0;min-height:0;max-height:none}
.studio-page .room-column{padding:12px 16px 10px;background:var(--surface);min-width:0;min-height:0}
.studio-page .room-caption{font-size:10px;line-height:1.5;color:var(--muted);padding:0 0 8px}
.studio-page .room-view-controls{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:0 0 10px}
.studio-page .room-view-controls button{font-size:10px;padding:5px 8px}
.studio-page .room-view-controls .room-reset{margin-left:0}
.studio-design-modes{display:flex;gap:4px;margin-left:auto}
.studio-page .room-stage{flex:1;height:auto;min-height:0;position:relative;border-radius:7px;overflow:hidden;background:var(--panel-soft)}
.studio-page .room-stage canvas{width:100%;height:100%;display:block}
.studio-page .room-profile-description{font-size:10px;line-height:1.5;color:var(--muted);margin:8px 0 0}
.studio-page .room-controls{border-left:1px solid var(--line);padding:14px 16px;background:var(--panel-soft);overflow-y:auto;overscroll-behavior:contain;min-height:0;max-height:none;scrollbar-color:var(--line) transparent}
.studio-building-select{margin-bottom:14px;font-size:11px;gap:6px}
.studio-page .room-palette{background:var(--surface);border-color:var(--line);padding:11px}
.studio-page .room-controls .eyebrow,.studio-page .palette-value,.studio-page .color-insight,.studio-page .color-evidence-level,.studio-page .color-state{color:var(--muted)}
.studio-page .color-insight>b,.studio-page .room-control-group h3{color:var(--ink)}
.studio-page .color-insight{border-color:var(--line)}
.studio-page .room-controls .color-swatch{color:var(--text);font-size:9px}
.studio-page .room-controls .color-swatch[aria-pressed=true]{background:var(--topic-hover);border-color:var(--accent)}
.studio-page .room-controls .color-swatch:hover{background:var(--topic-hover)}
.studio-page .color-insight .color-research-link{color:var(--accent)}
.studio-page .room-controls .apply-example{background:var(--accent);color:var(--surface);border-color:var(--accent);border-radius:999px;padding:8px 10px}
.studio-page .room-control{border-color:var(--line);background:var(--surface);border-radius:7px}
.studio-page .room-control.selected-control{border-color:var(--accent);background:var(--topic-hover)}
.studio-page .room-control>span{font-size:11px;color:var(--ink)}
.studio-page .room-control output{color:var(--muted);font-size:10px}
.studio-page .room-control input{accent-color:var(--accent)}
.studio-page .room-control>button{color:var(--accent);font-size:10px}
.studio-page .research-disclosure{margin-top:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:clip}
.studio-page .research-disclosure>summary{justify-content:center;gap:12px;min-height:43px}
.studio-page .research-disclosure>summary .audit-count{margin-left:0}
.studio-page .research-disclosure>summary strong{font-size:13px;font-weight:550}
.studio-page .research-disclosure-content{padding:0 24px 24px}
.studio-page .studio-research,.studio-page .studio-color-research{color:var(--text)}
.studio-page :is(.studio-research,.studio-color-research) h2{font-size:22px;color:var(--ink)}
.studio-page :is(.studio-question,.population-study,.color-source-grid article){background:var(--panel-soft);border-color:var(--line)}
.studio-page .studio-research :is(button,a),.studio-page .color-source-grid a{color:var(--accent)}
.studio-page .typology-table{color:var(--text)}
.studio-page .typology-table .evidence-chip{background:var(--topic-hover)}
.studio-page .chosen-type{background:var(--topic-hover)}
.studio-page .chosen-type td:first-child button{background:var(--accent);color:var(--surface)}
.studio-page .studio-source-audit{border-top:1px solid var(--line);margin-top:20px}
.studio-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media screen and (min-width:850px){
 .studio-workbench{height:var(--studio-workbench-height,calc(100dvh - 280px))}
}
@media(min-width:850px) and (max-height:760px){
 .studio-detail-heading{padding-bottom:9px;gap:14px}.studio-detail-heading h2{font-size:19px}.studio-function-question{font-size:10px}
 .studio-evidence-bar{padding:9px 12px;gap:12px}.studio-evidence-brief p{font-size:11px}.studio-page .room-column{padding:9px 12px}.studio-page .room-profile-description{font-size:9px}
}
@media(max-width:1150px){.studio-evidence-bar{grid-template-columns:minmax(150px,200px) minmax(0,1fr)}.studio-open-atlas{grid-column:2;justify-self:start}.studio-evidence-brief{grid-row:1/3;grid-column:2}.studio-open-atlas{grid-row:3}.studio-evidence-bar>label{grid-row:1/3}.studio-evidence-bar{row-gap:6px}.studio-page .room-controls{padding:12px}.studio-design-modes{margin-left:0}}
@media(max-width:849px){
 .studio-detail-heading{flex-wrap:wrap;gap:12px}.studio-detail-heading>div{flex-basis:calc(100% - 175px)}.studio-function-position{display:none}
 .studio-page .design-layout{grid-template-columns:minmax(0,1fr) 260px}.studio-page .room-stage{height:480px;flex:none}.studio-page .room-controls{max-height:600px}.studio-page .room-column{padding:12px}.studio-workbench{height:auto}.studio-page .studio-open-atlas{grid-row:auto}.studio-page .research-disclosure>summary{flex-wrap:wrap;row-gap:4px}
}
@media(max-width:650px){
 .studio-detail-heading{display:grid;grid-template-columns:1fr;gap:12px}.studio-back{justify-self:start}.studio-detail-heading h2{font-size:23px}.studio-function-question{font-size:12px}
 .studio-evidence-bar{grid-template-columns:1fr;padding:13px;gap:12px}.studio-evidence-bar>label,.studio-evidence-brief,.studio-page .studio-open-atlas{grid-column:1;grid-row:auto}.studio-page .studio-open-atlas{justify-self:start}.studio-evidence-brief p{font-size:12px}
 .studio-page .design-layout{grid-template-columns:1fr}.studio-page .room-controls{border-left:0;border-top:1px solid var(--line);max-height:none;overflow:visible;padding:16px}.studio-page .room-stage{height:390px}.studio-page .room-caption{font-size:10px}.studio-page .room-profile-description{font-size:10px}
 .studio-page .color-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}.studio-page .room-controls .color-swatch{font-size:10px}.studio-page .room-control>span{font-size:12px}.studio-page .room-control output{font-size:11px}.studio-page .room-control>button{font-size:11px}
 .studio-page .research-disclosure-content{padding:0 15px 18px}.studio-page .research-disclosure>summary .audit-count{margin-left:0}
.studio-page .research-disclosure>summary strong{font-size:12px}.studio-page .research-disclosure>summary .audit-count{font-size:9px}.studio-page .studio-research-grid{grid-template-columns:1fr}
}
@media print{.studio-detail-heading button,.studio-evidence-bar select,.studio-open-atlas,.studio-workbench{display:none!important}.studio-page .research-disclosure-content{padding:0}.studio-page .studio-research-grid{grid-template-columns:1fr}}

/* Full workspace in an accessible native dialog; concept content stays behind. */
.studio-dialog{box-sizing:border-box;width:min(1500px,calc(100vw - 32px));max-width:none;height:calc(100dvh - 32px);max-height:none;padding:0;margin:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 24px 100px #092e3e45;overflow:hidden}
.studio-dialog::backdrop{background:rgb(11 35 42 / .62);backdrop-filter:blur(4px)}
.studio-modal-page{display:flex;flex-direction:column;height:100%;min-height:0}
.studio-dialog-heading{display:flex;flex:none;align-items:center;justify-content:space-between;gap:22px;padding:19px 24px 17px;border-bottom:1px solid var(--line);background:var(--panel-soft)}
.studio-dialog-heading>div{min-width:0}
.studio-dialog-kicker{display:block;font-size:10px;line-height:1.3;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin:0 0 5px}
.studio-dialog-heading h2{font-size:24px;line-height:1.25;font-weight:600;letter-spacing:-.035em;color:var(--ink);margin:0}
.studio-dialog-heading .studio-function-question{font-size:12px;line-height:1.5;margin-top:5px}
.studio-dialog-close{display:flex;flex:none;align-items:center;gap:8px;font-size:12px;font-weight:500;line-height:1.4;padding:9px 13px;border:1px solid var(--line);border-radius:999px;color:var(--accent);background:var(--surface);white-space:nowrap;cursor:pointer}
.studio-dialog-close:hover{background:var(--topic-hover);border-color:var(--accent)}
.studio-dialog-close svg{width:15px;height:15px}
.studio-dialog-scroll{min-width:0;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:16px 20px 18px;scrollbar-color:var(--line) transparent}
.studio-modal-page .studio-workbench{min-height:300px}
.studio-modal-page .research-disclosure{margin-bottom:0}
@media(max-width:849px){
 .studio-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);border-radius:12px}
 .studio-dialog-heading{padding:16px 18px;gap:16px}.studio-dialog-heading h2{font-size:22px}
 .studio-dialog-scroll{padding:14px}.studio-modal-page .room-stage{height:440px}
}
@media(max-width:650px){
 .studio-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:10px}
 .studio-dialog-heading{padding:15px 13px;align-items:flex-start;gap:12px}.studio-dialog-heading h2{font-size:21px}.studio-dialog-heading .studio-function-question{font-size:11px}
 .studio-dialog-close{padding:8px;gap:0}.studio-dialog-close span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.studio-dialog-close svg{width:18px;height:18px}
 .studio-dialog-scroll{padding:10px}.studio-modal-page .room-stage{height:350px}.studio-modal-page .room-column{padding:12px 10px}
}
@media print{.studio-dialog{display:none!important}}

/* Controls stay available without competing with the model for first attention. */
.studio-page details.room-control-group{border:1px solid var(--line);border-radius:8px;background:var(--surface);margin:0 0 10px;overflow:clip}
.studio-page details.room-control-group>summary{display:list-item;padding:12px;font-size:13px;line-height:1.45;font-weight:600;letter-spacing:0;color:var(--ink);cursor:pointer}
.studio-page details.room-control-group[open]>summary{border-bottom:1px solid var(--line);background:var(--panel-soft)}
.studio-page .room-group-content{padding:10px}
.studio-page .room-group-content .room-control{margin:0 0 10px}
.studio-page .room-group-content .room-control:last-child{margin-bottom:0}
.studio-page .room-palette-wrap{padding:10px}
.studio-page .room-palette{border:0;padding:0;margin:0}
.studio-page .room-edit-heading{padding:5px 0 13px;gap:10px}
.studio-page .room-edit-heading .eyebrow{font-size:12px;letter-spacing:0}
.studio-page .room-control>span{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:12px}
.studio-page .room-control output{font-size:12px}
.studio-page .room-control>button{font-size:12px;min-height:32px;text-align:left}
.studio-page .room-controls .color-swatch{font-size:12px}
.studio-page .room-profile-description{font-size:12px;line-height:1.55}

/* The cutaway supports the same keyboard inspection as the anatomy models. */
.studio-page .room-stage canvas:focus-visible{outline:3px solid var(--focus);outline-offset:-4px}
