/* The existing monochrome workspace, with a dedicated experiment workbench. */
.visually-hidden {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body.playground-active main {max-width:none;padding-bottom:48px}
body.playground-active header {margin-bottom:22px}
.playground {--settings-width:40%;min-width:0}
.playground-toolbar {padding:20px 24px;margin-bottom:20px}
.playground-environments {display:flex;gap:8px;flex-wrap:wrap}
.playground-environments button {padding:10px 18px;text-align:left;border:1px solid var(--line);border-radius:10px;background:#fafafa;min-width:140px;font-weight:650}
.playground-environments button span {display:block;font-size:11px;font-weight:400;color:#666;margin-top:3px}
.playground-environments button[aria-pressed=true] {background:#252525;color:#fff;border-color:#252525}
.playground-environments button[aria-pressed=true] span {color:#e4e4e4}
.playground-controls {display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:20px;align-items:end;margin-top:14px}
.playground-controls label {margin:0}
.playground-controls .decision-study-switch {align-self:center;margin-top:20px;font-size:12px}
.playground-controls select {margin-top:6px}
.playground-toolbar .hint {margin:12px 0 0}
.playground-layout {display:grid;grid-template-columns:minmax(300px,var(--settings-width)) minmax(0,1fr);gap:20px;align-items:start}
.playground-settings,.playground-stage,.playground-workbench {min-width:0}
.playground-settings,.playground-workbench {padding:22px}
.playground-settings .section-top {margin-bottom:12px}
.playground-settings .job-actions {gap:6px;margin-top:0}
.playground-settings .job-actions button {font-size:11px;padding:8px 10px}
.playground-settings #decisionInstructions {min-height:150px}
#decisionPanel #decisionChoiceEditor {max-height:none;overflow:visible;padding:0}
#decisionPanel .decision-choice {padding:12px;background:#fafafa}
#decisionPanel .decision-fields {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
#decisionPanel .decision-choice textarea {min-height:95px}
#decisionPanel .decision-study-intro {padding:0;background:none;border:0;border-top:1px solid var(--line);border-radius:0}
#decisionPanel .decision-study-intro > details {margin-top:16px}
#decisionPanel #decisionInputPreview {max-height:320px;overflow:auto;font-size:11px}
.playground .hint {font-size:12px;line-height:1.65;color:#666}
.playground .playground-model-help {border-top:1px solid var(--line);padding-top:16px}
.playground-width {display:flex;align-items:center;gap:14px;font-size:11px;color:#666;margin-top:20px}
.playground-width input {width:110px;padding:0;min-height:24px;accent-color:#333}
.playground-tabs {display:flex;gap:4px;border-bottom:1px solid var(--line);margin:-4px 0 18px;overflow-x:auto}
.playground-tabs button {background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 9px;font-size:12px;color:#666;white-space:nowrap}
.playground-tabs button[aria-selected=true] {border-color:#222;font-weight:650;color:#222}
.playground-view > label:first-child {margin-top:0}
.playground .chat-bottom {gap:10px;justify-content:flex-start;flex-wrap:wrap}
.playground .chat-bottom .primary {min-width:145px}
.playground #decisionText,.playground #decisionChatText {min-height:120px}
.playground #decisionMessages {max-height:none;overflow:visible}
.playground-case-list {padding-left:24px;display:grid;gap:12px;max-height:440px;overflow:auto}
.playground-case-list small {display:block}
.playground #decisionCaseEditor {max-height:440px}
.playground #decisionBatch {margin-top:18px}
#decisionPanel .decision-compare {border:0;padding:0;margin:0}
.playground .model-choice-list {grid-template-columns:repeat(2,minmax(0,1fr));font-size:12px}
.playground .model-choice-list label {align-items:start}
.playground .model-choice-list input {margin-top:4px}
.playground-input-summary {padding:12px 14px;background:#f7f7f7;border-radius:10px;overflow-wrap:anywhere}
#playgroundResultsHost .results {margin-top:22px}
#playgroundResultsHost .job {padding:20px}
#playgroundResultsHost .section-top {margin-bottom:12px;flex-wrap:wrap}
#playgroundResultsHost .job-actions {gap:6px}
#playgroundResultsHost .job-actions button {font-size:11px;padding:8px 10px}
.playground-mobile-panes {display:none}
.playground button:focus-visible,.playground input:focus-visible,.playground select:focus-visible,.playground textarea:focus-visible {outline:2px solid #4a6480;outline-offset:3px}
@media(max-width:1279px) {
  .playground-controls {grid-template-columns:minmax(0,1fr) auto;gap:12px}
  .playground-controls .decision-study-switch {margin:0}
  .playground-controls > button {grid-column:2;grid-row:1}
  .playground-mobile-panes {display:flex;gap:8px;margin-bottom:14px}
  .playground-mobile-panes button {background:#f4f4f4;border:1px solid var(--line);border-radius:8px;padding:10px 18px}
  .playground-mobile-panes button[aria-pressed=true] {background:#fff;border-color:#333;font-weight:650}
  .playground-layout {display:block}
  .playground[data-pane=test] .playground-settings,.playground[data-pane=settings] .playground-stage {display:none}
  .playground-width {display:none}
}
@media(max-width:600px) {
  .playground-toolbar,.playground-settings,.playground-workbench {padding:16px}
  .playground-environments {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .playground-environments button {min-width:0;padding:10px 8px;font-size:12px}
  .playground-environments button span {font-size:10px}
  .playground-controls {display:flex;flex-wrap:wrap}
  .playground-controls > label:first-child {width:100%}
  .playground-controls > button {margin-left:auto;font-size:11px}
  .playground .model-choice-list {grid-template-columns:1fr}
  #playgroundResultsHost .job {padding:16px}
}
/* Experiment canvas on the left, model and instructions in one right inspector. */
body.playground-active main{height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:18px 24px 16px;max-width:none}
body.playground-active main>header{flex-shrink:0;margin-bottom:12px;padding-bottom:0}
body.playground-active main>header .eyebrow,body.playground-active #pageSubtitle,body.playground-active .local-badge,body.playground-active main>footer,body.playground-active #userDefaultsPanel{display:none}
body.playground-active #pageTitle{font-size:20px;margin:0}
body.playground-active #notice{flex-shrink:0;margin:0 0 8px;padding:6px 12px;font-size:12px}
#decisionPanel{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;--settings-width:320px}
#decisionPanel[hidden]{display:none}
.lab-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}
.lab-mode-bar>div{display:flex;gap:3px;background:#f1f1f1;padding:3px;border-radius:9px;flex-shrink:0}
.lab-mode-bar button{border:0;background:transparent;padding:8px 14px;border-radius:7px;font-size:12px;color:#666}
.lab-mode-bar button[aria-pressed="true"]{background:#fff;color:#222;box-shadow:0 1px 3px #0001;font-weight:650}
.lab-mode-bar .hint{margin:0;font-size:11px}
.playground-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:stretch}
.playground-stage{grid-column:1;grid-row:1;min-height:0;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;background:#fff}
.playground-settings{grid-column:2;grid-row:1;min-height:0;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;padding:16px;background:#fafafa;box-shadow:none}
.playground-workbench{border:0;padding:18px;box-shadow:none}
.playground-settings .playground-toolbar{padding:0;margin:0 0 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.playground-settings .playground-controls{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0 0 12px}
.playground-settings .playground-controls select{height:38px;font-size:12px;padding:6px 10px}
.playground-settings .decision-study-switch{align-self:flex-start;margin:0;font-size:11px}
.playground-settings #playgroundResults{display:none}
.playground-settings .playground-toolbar{display:flex;flex-direction:column}
.playground-controls{order:-1}
.playground-environments{gap:4px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.playground-environments button{min-width:0;padding:8px 4px;font-size:11px;text-align:center;border-radius:7px}
.playground-environments button span{display:none}
#playgroundEnvironmentNote{font-size:10px;margin:8px 0 12px}
.playground-settings h2{font-size:14px}.playground-settings #playgroundConfigState{font-size:10px}
.playground-settings .job-actions{display:flex;flex-wrap:wrap;margin-bottom:12px}
.playground-settings .job-actions button{font-size:10px;padding:6px 8px}
.playground-settings details>summary{font-size:12px;cursor:pointer;padding:9px 0}
.playground-settings label{font-size:12px}
.playground-settings #decisionPolicy{font-size:12px;line-height:1.6}
.playground-settings #decisionChoices{font-size:11px}
.playground-width{display:none}
.playground-stage #decisionText{min-height:150px}
.playground-stage .playground-tabs{margin:0 0 18px}
.playground-stage #playgroundResultsHost{padding:0 18px 18px}
.playground-stage #playgroundResultsHost .results{margin:0}
.playground-stage .model-choice-list{grid-template-columns:1fr}
.playground-stage #decisionMessages{max-height:50dvh;overflow:auto}
#decisionPanel[data-lab-mode="generation"]>.playground-layout,#decisionPanel[data-lab-mode="generation"]>.playground-mobile-panes{display:none}
#generationLab{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}
#generationLab[hidden]{display:none}
.lab-generation-stage,.lab-generation-settings{min-height:0;min-width:0;border:1px solid var(--line);border-radius:12px;padding:18px;background:#fff}
.lab-generation-stage{display:flex;flex-direction:column}
.lab-generation-stage>.section-top{flex-shrink:0;margin-bottom:8px}.lab-generation-stage h2,.lab-generation-settings h2{font-size:14px;margin:0 0 12px}
.lab-generation-settings{background:#fafafa;overflow:auto}
.lab-generation-settings label{font-size:12px}.lab-generation-settings select{height:38px;padding:6px 8px;font-size:12px}
.lab-generation-settings textarea{min-height:125px;font-size:12px;background:#fff}
.lab-generation-settings details{margin-top:14px}.lab-generation-settings summary{font-size:12px;cursor:pointer}
.lab-setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lab-setting-grid input{padding:8px;font-size:12px;margin-top:6px}
.lab-output{flex:1;min-height:120px;overflow:auto;overscroll-behavior:contain;padding:0 4px 14px}
.lab-empty{color:#888;text-align:center;line-height:1.8;font-size:13px;margin:12vh 10px}
.lab-prompt{flex-shrink:0;border-top:1px solid var(--line);padding-top:10px}
.lab-prompt>label{font-size:12px}.lab-prompt textarea{min-height:75px;max-height:150px;font-size:13px}
.lab-prompt .chat-bottom{display:flex;align-items:center;gap:10px}.lab-check{display:flex;align-items:center;gap:6px;font-size:11px;margin:0 auto 0 0}.lab-check input{width:auto}
.lab-run{border-bottom:1px solid var(--line);padding:16px 0}.lab-user-prompt{background:#f4f4f4;border-radius:10px;padding:10px 12px;white-space:pre-wrap;font-size:13px}
.lab-response{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.lab-run details{font-size:11px;margin-top:12px}.lab-run pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}
@media(min-width:1000px){.playground-mobile-panes{display:none}.playground[data-pane="test"] .playground-settings,.playground[data-pane="settings"] .playground-stage{display:block}}
@media(max-width:999px){body.playground-active main{padding:16px}.lab-mode-bar .hint{display:none}.playground-layout{display:block;overflow:hidden}.playground-settings,.playground-stage{height:100%}.playground-mobile-panes{display:flex;flex-shrink:0;margin:0;gap:6px}.playground-mobile-panes button{padding:6px 12px;font-size:11px}.playground[data-pane="test"] .playground-settings,.playground[data-pane="settings"] .playground-stage{display:none}#generationLab{grid-template-columns:minmax(0,1fr) 260px;gap:10px}}
@media(max-width:700px){body.playground-active main{height:auto;min-height:100dvh;overflow:visible}#decisionPanel{min-height:calc(100dvh - 110px)}.playground-layout{overflow:visible}.playground-stage,.playground-settings{height:auto;overflow:visible}.playground-workbench{padding:14px}#generationLab{display:flex;flex-direction:column}.lab-generation-settings{order:-1;max-height:38dvh;flex-shrink:0}.lab-generation-stage{min-height:480px}.lab-output{max-height:50dvh}.lab-mode-bar button{padding:7px 12px}.lab-prompt .chat-bottom{flex-wrap:wrap}}
.playground-settings #playgroundResults{display:block;padding:7px 10px;font-size:11px}
.playground-settings .playground-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.playground-settings .playground-controls>label:first-child{grid-column:1/-1}
.playground-settings .decision-study-switch{font-size:10px}
#labSettingsToggle{display:none}
@media(max-width:700px){#decisionPanel[data-lab-mode="generation"] #labSettingsToggle{display:block;font-size:11px;padding:7px 12px}#decisionPanel:not([data-lab-settings-open="true"]) .lab-generation-settings{display:none}.lab-generation-settings{max-height:45dvh}}
