.studio-page .work-and-detail,
.studio-page .work-and-detail:has(>.results:not([hidden])),
.studio-page .work-surface {display:block;min-width:0}
.studio-page #shift-report[hidden],.studio-page #pick-menu[hidden],
.studio-page #feature[hidden],.studio-page #model[hidden],.studio-page #schedule[hidden],
.studio-page .room-directory [hidden]{display:none!important}
.studio-page .work-and-detail>.results,
body.studio-page:has(.mainpanel.expanded) .work-and-detail>.results {
  position:static;inset:auto;width:100%;max-height:none;overflow:visible;
  padding:clamp(14px,2vw,29px);margin:18px 0 0;border:1px solid #b9c1a9;
  border-top:2px solid #516c52;border-radius:3px;background:#f8f5e9;
  scroll-margin-block-start:calc(var(--ws-header,0px) + 12px)
}
.studio-page #model.expanded,
.studio-page .work-and-detail:has(>.results:not([hidden])) #model.expanded {
  position:fixed;inset:6px;width:auto;height:auto;z-index:16;display:flex;
  flex-direction:column;border-radius:3px;overflow:hidden
}
.studio-page #model.expanded .leftstage{display:flex;min-height:0;flex:1;flex-direction:column}
.studio-page #model.expanded #stage{height:0;min-height:0;flex:1}
.studio-page .expanded #map-tools{position:static;flex:none}
.studio-page #model .stage{position:relative}
.studio-page #map-tools{
  display:flex;align-items:center;justify-content:flex-start;gap:clamp(8px,1.6vw,24px);
  min-height:40px;padding:3px 10px;background:#eeeee0;border:0;border-top:1px solid #c3c7b5;color:#294432
}
.studio-page #map-tools button {text-decoration:none}
.studio-page #map-tools>.room-switch,.studio-page #map-tools>.object-list-toggle {
  display:inline-flex;min-height:31px;align-items:center;gap:7px;min-width:0;
  font:650 12px/1.2 Manrope,sans-serif;white-space:nowrap
}
.studio-page #scope{overflow:hidden;text-overflow:ellipsis}
.studio-page #room-total{font:11px/1.4 var(--mono);color:#61735e}
.studio-page #map-tools .segments{
  margin-inline-start:auto;gap:2px;flex:none;border:1px solid #c8cdbb;border-radius:5px;padding:2px;background:#f7f5ea
}
.studio-page #map-tools .segments button{min-height:26px;padding:3px 9px;border-radius:3px;font-size:12px}
.studio-page .pick-menu{
  display:flex;align-items:center;gap:9px;position:absolute;bottom:10px;left:50%;
  transform:translateX(-50%);z-index:3;max-width:calc(100% - 290px);
  padding:7px 8px 7px 12px;background:#fbf8eefa;color:#273e30;
  border:1px solid #8c9a84;border-radius:5px;
  box-shadow:0 4px 15px #24352826;line-height:1.15
}
.studio-page .pick-menu>div:first-child{min-width:0}
.studio-page .pick-menu strong,.studio-page .pick-menu small {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-page .pick-menu strong{font-size:13px;font-weight:750}
.studio-page .pick-menu small{font:10px/1.5 var(--mono);color:#4c6051}
.studio-page #pick-actions{display:inline-flex;gap:5px;flex:none}
.studio-page #pick-actions button{min-height:28px;padding:4px 8px;border-radius:3px;font-size:11px;font-weight:680}
.studio-page #pick-actions button:first-child{background:#314e39;color:#fff9e8}
.studio-page #pick-actions button:nth-child(2){background:#e3e7d7}
.studio-page .pick-dismiss{display:grid;place-items:center;color:#55624f;flex:none;width:24px;height:26px}
.studio-page .pick-dismiss i{width:14px;height:14px}
.studio-page .gtlabel b {display:inline-block;font:650 11px/1.35 var(--mono);color:#465e49}
.studio-page .schedule-empty{padding:12px 0;font-size:13px;color:#56674f}
.studio-page .room-search{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:2px 0 15px}
.studio-page .room-search label{display:grid;gap:4px;flex:1;min-width:0;max-width:420px;color:#465d48;font-size:12px}
.studio-page .room-search input{min-height:36px;border:1px solid #a7b49b;background:#fffdf4;border-radius:3px;padding:6px 9px}
.studio-page .room-search .source-btn{margin:0;min-height:36px;width:auto}
.studio-page .room-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(215px,100%),1fr));gap:0 18px}
.studio-page .results .room-directory .listbutton{display:flex;align-items:center;min-height:50px}
.studio-page .room-directory i{width:14px;color:#78876d}
.studio-page .results .dialogbody table{max-width:780px;font-size:14px}
.studio-page .results .dialogbody .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.studio-page .results #inspector{max-width:780px}
.studio-page .results .deflist{grid-template-columns:minmax(105px,.9fr) minmax(120px,2fr)}
.studio-page #report-proof{scroll-margin-block-start:calc(var(--ws-header,0px) + 16px)}
.studio-page #shift-report{margin-top:0}
.studio-page #tour-short{display:none}
@media(max-width:800px){
  .studio-page .work-and-detail>.results{scroll-margin-block-start:112px}
  .studio-page .pick-menu{max-width:calc(100% - 14px);bottom:48px}
}
@media(max-width:560px){
  .studio-page .intro{gap:8px;align-items:center;flex-wrap:wrap}
  .studio-page .intro>div:first-child{min-width:0}
  .studio-page .intro h1{font-size:clamp(28px,7.7vw,37px);line-height:1.05}
  .studio-page .intro .studio-links{margin-inline-start:auto;gap:6px}
  .studio-page .intro .primary{min-height:29px;padding:4px 8px;white-space:nowrap;gap:5px}
  .studio-page .intro .primary i{width:13px;height:13px}
  .studio-page #tour-label{display:none}
  .studio-page #tour-short{display:inline}
  .studio-page #map-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:5px 7px}
  .studio-page #map-tools>.room-switch{justify-self:start}
  .studio-page #map-tools .segments{grid-column:1/-1;display:flex;justify-self:stretch;margin:0}
  .studio-page #map-tools .segments button{flex:1;justify-content:center;min-height:28px}
  .studio-page .pick-menu{width:max-content;padding:5px 6px 5px 8px;gap:6px}
  .studio-page .pick-menu strong{font-size:12px}
  .studio-page #pick-actions button{padding:3px 6px}
  .studio-page .room-search{align-items:stretch;flex-direction:column;gap:7px}
  .studio-page .room-search .source-btn{align-self:flex-start}
  .studio-page .results .dialogbody table{font-size:12px}
}

.studio-page #functions{
  position:sticky;top:var(--ws-header);z-index:4;
  background-color:#f5f1e5;border-bottom-color:#aeb8a3
}
.studio-page :is(#workspace[data-view="schedule"],#workspace[data-view="jobs"],#workspace[data-view="scenarios"],#workspace[data-view="loss"]) #feature{
  padding:0;border:0
}
.studio-page .shift-sheet,.studio-page #workspace[data-view="schedule"] #feature,
.studio-page #workspace[data-view="schedule"] #schedule{
  min-width:0;border:1px solid #c1c7b3;border-top:2px solid #506b53;
  border-radius:3px;background:linear-gradient(116deg,#fffdf51c,#e5dfc710),#f8f6eb;
}
.studio-page .sheet-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;
  padding:12px clamp(10px,1.5vw,22px);border-bottom:1px solid #c5cab7;background:#eeeee1;
}
.studio-page .sheet-search{
  display:flex;align-items:center;gap:8px;width:min(100%,340px);min-width:0;padding:0 10px;
  color:#526854;background:#fbf9ef;border:1px solid #aab69e;border-radius:3px
}
.studio-page .sheet-search input{
  border:0;border-radius:0;background:transparent;width:100%;min-width:0;min-height:35px;padding:5px 0;color:var(--ink);font:inherit;font-size:13px
}
.studio-page .sheet-search:focus-within{outline:2px solid #99723e;outline-offset:2px}
.studio-page .sheet-search input:focus-visible{outline:0}
.studio-page .sheet-search i{width:15px;height:15px}
.studio-page .sheet-segments{
  display:inline-flex;align-self:center;gap:2px;padding:2px;border:1px solid #aeb9a2;border-radius:4px;background:#f8f7ec
}
.studio-page .sheet-segments button{
  display:inline-flex;justify-content:center;align-items:center;min-height:30px;font-size:12px;padding:4px 11px;color:#3e5544;border:0;border-radius:2px
}
.studio-page .sheet-segments button[aria-pressed=true]{background:#2c4836;color:#fff8e6}
.studio-page .sheet-link{display:inline-flex;align-items:center;min-height:32px;font-size:13px;font-weight:680;text-align:start;color:#34533e;text-decoration:underline;text-underline-offset:3px}
.studio-page .shift-sheet .work-table{width:100%;border-collapse:collapse;table-layout:fixed}
.studio-page .shift-sheet .work-table thead{background:#e8e9d9}
.studio-page .shift-sheet .work-table th,.studio-page .shift-sheet .work-table td{padding:10px clamp(8px,1.2vw,20px);vertical-align:middle}
.studio-page .shift-sheet .work-table th{font-size:11px;color:#536451;text-transform:uppercase;letter-spacing:.04em}
.studio-page .shift-sheet .work-table td{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.studio-page .shift-sheet .work-table tbody tr:last-child td{border-bottom:0}
.studio-page .shift-sheet .work-table td:first-child button{display:block;width:100%;color:#243c2c;text-decoration:none;text-align:left}
.studio-page .shift-sheet .work-table td:first-child button:hover strong{text-decoration:underline;text-underline-offset:3px}
.studio-page .work-table :is(.job-name,.loss-name) :is(span,strong){display:block}
.studio-page .work-table :is(.job-name,.loss-name) button span{font:11px/1.3 var(--mono);color:#526750}
.studio-page .work-table :is(.job-name,.loss-name) strong{margin-top:2px;font-size:14px;font-weight:680}
.studio-page .shift-sheet .work-table th:first-child{width:43%}
.studio-page .shift-sheet .work-table .cell-label{display:none}
.studio-page .jobs-ledger td small{display:block;font-size:11px}
.studio-page .jobs-ledger .late,.studio-page .loss-worse{color:#87532d}
.studio-page .jobs-ledger .ontime,.studio-page .loss-change{color:#456746}
.studio-page .shift-sheet .loss-ledger :is(th,td):not(:first-child){text-align:right}
.studio-page .loss-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 16px;padding:12px clamp(9px,1.5vw,22px);border-bottom:1px solid #c5cab7}
.studio-page #feature .loss-total h2{font:620 14px/1.3 Manrope,sans-serif;color:#526650}
.studio-page .loss-total p{margin:0;font:500 clamp(20px,2.5vw,32px)/1.15 var(--brand-serif,Georgia,serif);color:#67745f;font-variant-numeric:tabular-nums}
.studio-page .loss-total b{font-weight:650;color:#304d38}
.studio-page .loss-lines{display:grid;gap:2px;width:min(100%,120px);margin-top:5px}
.studio-page .loss-lines i{display:block;height:2px;background:#b29865}
.studio-page .loss-lines i+i{background:#59795d}
.studio-page .condition-sheet{max-width:760px}
.studio-page .condition-sheet header{
  padding:clamp(14px,2vw,25px);border-bottom:1px solid #c8cbb8;
  background:linear-gradient(110deg,#f7f3e6,#eeecde)
}
.studio-page .condition-sheet .form,.studio-page .applied-condition{padding:clamp(14px,2vw,25px);margin:0}
.studio-page .condition-sheet .field label{font-weight:600}
.studio-page .condition-sheet :is(input,select){min-height:38px;background:#fffdf4}
.studio-page .condition-sheet .form{display:grid;gap:14px}
.studio-page .condition-sheet .form .primary{justify-self:start}
.studio-page #downtime-window{color:#4a604c;font:12px/1.35 var(--mono);min-height:16px}
.studio-page .condition-sheet .form-status:empty{display:none}
.studio-page .condition-sheet .form-status:not(:empty){margin:0;padding:0 clamp(14px,2vw,25px) 14px}
.studio-page .applied-condition{border-top:1px solid #bdc7ae;background:#e9eddf}
.studio-page .applied-condition h3{font:600 19px/1.25 var(--brand-serif,Georgia,serif)}
.studio-page .applied-condition p{margin:5px 0;font-size:13px}
.studio-page .applied-condition .sheet-link+.sheet-link{margin-left:18px}
.studio-page #workspace[data-view="schedule"] #feature{border-radius:3px 3px 0 0}
.studio-page #workspace[data-view="schedule"] #feature .sheet-toolbar{border:0}
.studio-page #workspace[data-view="schedule"] #schedule{
  margin-top:0;border-top:0;border-radius:0 0 3px 3px;padding:clamp(12px,1.6vw,22px)
}
.studio-page .gtline + .gtline{border-top:1px solid #cbd0bd83}
.studio-page .gtlabel{display:flex;align-items:baseline;gap:3px 5px;flex-wrap:wrap;white-space:normal;line-height:1.25;overflow-wrap:anywhere}
.studio-page .gtlabel small{font:10px/1.3 var(--mono);color:#5c705a}
.studio-page .gtlabel b{color:#405b48}
.studio-page .gttrack{height:22px}
.studio-page .gtbar,.studio-page .gtsetup{top:3px;height:16px}
.studio-page .gtbar:focus-visible{outline-offset:0;z-index:2}
.studio-page .gtlabel:focus-visible,.studio-page .sheet-link:focus-visible{outline-offset:0}
@media(max-width:800px){
  .studio-page #functions{top:calc(var(--ws-header) + 51px)}
  .studio-page :is(.work-and-detail>.results,#report-proof){scroll-margin-block-start:calc(var(--ws-header) + 92px)}
}
@media(max-width:560px){
  .studio-page #functions{gap:13px}
  .studio-page #functions button{padding:10px 1px 8px}
  .studio-page .sheet-toolbar{gap:8px;padding:9px}
  .studio-page .sheet-search{width:100%}
  .studio-page .sheet-toolbar .sheet-segments{max-width:100%}
  .studio-page .sheet-segments button{min-height:30px;padding:4px 9px}
  .studio-page .shift-sheet .table-wrap{overflow:visible}
  .studio-page .shift-sheet .work-table,.studio-page .shift-sheet .work-table tbody{display:block}
  .studio-page .shift-sheet .work-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .studio-page .shift-sheet .work-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 8px;padding:10px;border-bottom:1px solid #cbd0bd}
  .studio-page .shift-sheet .work-table td{display:block;border:0;padding:0;font-size:12px;line-height:1.3;min-width:0}
  .studio-page .shift-sheet .work-table tr:last-child{border:0}
  .studio-page .shift-sheet .work-table .cell-label{display:block;color:#62725e;font-size:10px;margin-bottom:2px}
  .studio-page .shift-sheet .work-table .job-name,.studio-page .shift-sheet .work-table .loss-name,
  .studio-page .shift-sheet .empty-row td{grid-column:1/-1}
  .studio-page .shift-sheet .work-table td:first-child button{display:flex;align-items:baseline;gap:8px;min-height:22px}
  .studio-page .shift-sheet .work-table td:first-child button span{flex:none}
  .studio-page .shift-sheet .work-table td:first-child button strong{font-size:13px;margin:0}
  .studio-page .shift-sheet .loss-ledger :is(th,td):not(:first-child){text-align:left}
  .studio-page #gantt .gtline{grid-template-columns:1fr;gap:3px;padding:5px 0}
  .studio-page #gantt .gtline:first-child{padding-top:0}
  .studio-page #gantt .kicker{margin-bottom:1px}
  .studio-page #gantt .gtlabel{min-height:20px;font-size:12px}
  .studio-page :is(.report-evidence,.sheet-link){min-height:34px}
}
/* The scenario is a sheet on the green workshop table. Its index stays in place. */
.studio-page .work-frame>main#main {
  --folio-gutter:clamp(12px,1.7vw,28px);
  --folio-pad:clamp(16px,2.2vw,38px);
  padding:var(--folio-gutter) var(--folio-gutter) clamp(22px,3vw,44px);
  background-color:#233329;
  background-image:var(--bench-felt);
  background-size:cover,100% 900px;
  background-repeat:no-repeat,repeat-y;
  background-blend-mode:normal;
}
.studio-page .work-frame>main#main::after {display:none}
.studio-page #workspace {
  min-height:calc(100dvh - var(--ws-header) - 2 * var(--folio-gutter));
  padding:0 var(--folio-pad) var(--folio-pad);
  border:1px solid #ded5be;
  background-color:var(--sheet-color);
  background-image:var(--sheet-face);
  background-blend-mode:normal,soft-light;
  box-shadow:0 2px #b7ac8c,0 5px 0 -2px #d3c7a9,1px 8px 18px #13231959;
}
.studio-page #workspace[data-view=data] {
  padding:0;border:0;background:none;box-shadow:none;
}
.studio-page .work-frame>main#main:has(#workspace[data-view=data]) {
  background-color:var(--sheet-color);background-image:var(--sheet-face);
  background-size:auto,180px;background-repeat:repeat;background-blend-mode:normal,soft-light;
}
.studio-page #workspace[data-view=data]>.intro {display:none}
.studio-page #functions {
  margin:0 calc(-1 * var(--folio-pad));max-width:none;
  padding:7px var(--folio-pad) 0;gap:0;
  border:0;border-bottom:1px solid #a99c7e;
  background-color:#e6ddc7;background-image:var(--sheet-face);
  background-blend-mode:normal,soft-light;
  scrollbar-width:none;overscroll-behavior-x:contain;
}
.studio-page #workspace[data-view=data] #functions {margin:0}
.studio-page #functions::-webkit-scrollbar {display:none}
.studio-page #functions [data-view] {
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;
  min-height:42px;padding:5px clamp(10px,1.25vw,23px) 7px;
  color:#45503e;background:transparent;border:0;
  text-decoration:none;white-space:nowrap;font:620 13px/1.3 Manrope,sans-serif;
}
.studio-page #functions [data-view]:not(:first-child)::before {
  content:"";position:absolute;left:0;top:28%;bottom:27%;border-left:1px solid #b6b29a;
}
.studio-page #functions [data-view][aria-current] {
  color:#fbf2d9;background:#293e2e;
  clip-path:polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,0 100%);
  box-shadow:inset 0 -3px #ceac61;
}
.studio-page #functions [data-view][aria-current]::before,.studio-page #functions [aria-current]+a::before {display:none}
.studio-page #functions a:not([aria-current]):hover {background:#dfdfc9;color:#223c29}
.studio-page #functions [data-view]:focus-visible {outline:2px solid #a5752f;outline-offset:-4px;text-decoration:underline;text-underline-offset:4px}
.studio-page #functions [data-view][aria-current]:focus-visible {outline-color:#f1cd7f}
.studio-page #workspace:not([data-view=data])>.intro {
  padding:clamp(22px,2.7vw,43px) 0 clamp(15px,1.8vw,28px);margin:0;
}
.studio-page .intro .context {color:#62664e;letter-spacing:.03em;font-size:11px}
.studio-page .intro h1 {
  color:#272e23;font:400 clamp(37px,4.5vw,74px)/1.03 var(--brand-serif);
  letter-spacing:-.055em;
}
.studio-page .intro .primary {
  min-height:35px;padding:6px 12px;border:1px solid #a7a38b;
  border-radius:2px;background:#efeada;color:#29392b;
}
.studio-page .shift-sheet,.studio-page #workspace[data-view=schedule] :is(#schedule,#feature),
.studio-page #result-summary {
  background-color:#f5efdf;
  background-image:linear-gradient(112deg,#fbf8eb70,#e6dcc41a),url('/landing/grain.svg');
  background-blend-mode:normal,soft-light;
  border-color:#b9b49c;border-radius:1px;
}
.studio-page .sheet-toolbar,.studio-page .condition-sheet header,.studio-page .report-heading {
  background:linear-gradient(105deg,#ece5d2,#ede6d6);border-bottom:1px solid #bab69e
}
.studio-page .shift-sheet .work-table thead {background:#e4e0cb}
.studio-page .shift-sheet .work-table th {color:#464e3a}
.studio-page .shift-sheet .work-table td {border-bottom-color:#ccc7ae;font-variant-numeric:tabular-nums}
.studio-page .shift-sheet .work-table tbody tr:hover {background:#e7e6d566}
.studio-page .sheet-search,.studio-page .sheet-segments {border-radius:2px;background:#f6f1e3}
.studio-page .sheet-segments button[aria-pressed=true] {background:#344936;color:#fff7df}
.studio-page .gttrack {
  background:repeating-linear-gradient(90deg,#98a08975 0 1px,transparent 1px 10%),#e2e2cd;
}
.studio-page .condition-sheet,.studio-page #result-summary {box-shadow:1px 2px #dbd0b4,1px 3px #bdb69d}
.studio-page .condition-sheet .form .primary,.studio-page .report-evidence {
  border:1px solid #293b2c;background:#2b3d2e;color:#f7efdb;border-radius:2px;
}
.studio-page .report-evidence:hover {background:#405842}
.studio-page .report-impact {
  border-radius:0;color:#322e21;background-color:#e8bb58;
  background-image:linear-gradient(134deg,#fff3ba44,#bd8d3926),url('/landing/grain.svg');
  background-blend-mode:normal,soft-light;
  box-shadow:1px 2px 0 #bb9b61;
  clip-path:polygon(0 0,calc(100% - 11px) 0,100% 11px,100% 100%,0 100%);
}
.studio-page .report-impact p,.studio-page .report-impact .report-rate {color:#4e421f}
.studio-page .report-impact.adverse {background-color:#d9a075}
@media(max-width:800px) {
  .studio-page .work-frame>main#main {--folio-gutter:8px;--folio-pad:14px}
  .studio-page #functions {padding:3px 5px 0;scroll-padding-inline:12px}
  .studio-page #functions [data-view] {min-height:40px;padding-inline:11px}
}
@media(max-width:540px) {
  .studio-page .work-frame>main#main {--folio-gutter:4px;--folio-pad:9px}
  .studio-page #workspace:not([data-view=data])>.intro {padding:17px 2px 13px}
  .studio-page .intro h1 {font-size:clamp(27px,7.9vw,41px);letter-spacing:-.047em}
  .studio-page .intro .primary {min-height:30px;padding:4px 7px}
  .studio-page .intro .context {font-size:10px;margin-bottom:3px}
  .studio-page #functions [data-view] {font-size:12px}
  .studio-page .sheet-toolbar {background-color:#e9e4d1}
}

/* Page index printed on the sheet, with one brass pointer for the open section. */
.studio-page #functions {
  align-items:stretch;gap:clamp(3px,.65vw,12px);padding-block:0;
  border-bottom-color:#aaa48b;background-color:#e9e3d2;background-image:var(--sheet-face);
}
.studio-page #functions [data-view] {
  min-height:45px;padding:6px clamp(7px,.9vw,15px);font-size:14px;
  background:transparent;color:#59604e;font-weight:580;
}
.studio-page #functions [data-view]:not(:first-child)::before {display:none}
.studio-page #functions [data-view][aria-current] {
  color:#243729;font-weight:760;background:transparent;clip-path:none;box-shadow:inset 0 -3px #a88748;
}
.studio-page #functions a:not([aria-current]):hover {background:#e2deca;color:#273c2b}
.studio-page #functions [data-view][aria-current]:focus-visible {outline-color:#977131}
@media(max-width:800px) {
  .studio-page #functions {top:calc(var(--ws-header) + 46px);gap:1px}
  .studio-page #functions [data-view] {min-height:40px;padding:5px 9px;font-size:13px}
}

