/* One reading scale for the challenge workspace, including embedded interviews.
   Sidebar reading sizes remain intact; canvas geometry and zoom stay unchanged. */
#workspace,.workspace-bar,.page-heading{
 --challenge-font:'Inter',sans-serif;
 --challenge-label:#d5dfd9;
 --challenge-muted:#b1c0b8;
 --challenge-caption:12px;
 --challenge-control:14px;
 --challenge-body:15px;
 --challenge-heading:16px;
 font-family:var(--challenge-font);
}
#workspace{font-size:var(--challenge-body);line-height:1.5}
#workspace :is(button,input,select){font-family:var(--challenge-font)}
.workspace-bar :is(button,a),.workspace-bar .breadcrumb{font-family:var(--challenge-font);font-size:14px;line-height:1.5}
.workspace-bar .problem-picker-trigger{font-size:15px}
.workspace-bar #saveState{font-size:12px;line-height:1.5}
.page-heading :is(h1,p,a){font-family:var(--challenge-font)}
#workspace .canvas-toolbar strong{font-size:var(--challenge-heading);font-weight:600;line-height:1.4}
#workspace .canvas-toolbar :is(#toggleControlRoom,#runBtn){font-size:var(--challenge-control);line-height:1.4}
#workspace :is(.chip,.tag){font-family:var(--challenge-font);font-size:var(--challenge-caption);font-weight:600;line-height:1.5;letter-spacing:0}
#workspace .canvas-instruction{font-family:var(--challenge-font);font-size:var(--challenge-caption);line-height:1.5}
#workspace .tray-heading{align-items:center;flex-wrap:wrap}
#workspace .tray-heading strong{font-size:var(--challenge-caption);font-weight:700;line-height:1.5;letter-spacing:.06em}
#workspace .tray-heading>span{font-size:var(--challenge-control);line-height:1.5}
#workspace .palette{grid-template-columns:repeat(auto-fill,minmax(min(160px,100%),1fr))}
#workspace .palette button{box-sizing:border-box;width:100%;min-width:0;height:64px;min-height:64px;max-height:64px;padding:10px 12px;gap:8px;flex-direction:row;justify-content:flex-start;overflow:hidden}
#workspace .palette .component-icon{flex-shrink:0}
#workspace .palette button>span:last-child{display:flex;align-items:center;justify-content:flex-start;min-width:0;height:2.9em;flex:1 1 0;text-align:left;overflow:hidden}
#workspace .palette button>span:last-child{font-family:var(--challenge-font);font-size:var(--challenge-control);font-weight:600;line-height:1.45;overflow-wrap:normal;word-break:normal}
#workspace .node strong{font-family:var(--challenge-font);font-size:14px;font-weight:600;line-height:1.4}
#workspace .node small{font-family:var(--challenge-font);font-size:11px;line-height:1.4}
#workspace .edge-label{font-family:var(--challenge-font);font-size:12px;font-weight:500}
#workspace .canvas-bottom{font-family:var(--challenge-font);font-size:var(--challenge-caption);line-height:1.5}
#workspace .canvas-bottom #maximizeBtn{font-size:var(--challenge-control);min-height:36px}
#workspace .toast{font-family:var(--challenge-font);font-size:var(--challenge-control);line-height:1.5}
#workspace .control-room-panel :is(.field-label,.config-label,.connection-list,.range-labels,.metrics span,.metrics small,.result-legend){font-size:var(--challenge-control);letter-spacing:0}
#workspace .control-room-panel :is(.config-toggle strong,.component-setting,.connection-list button){font-size:var(--challenge-control);line-height:1.5}
#workspace .control-room-panel :is(.config-description,.model-note,.results-placeholder p){font-size:var(--challenge-body);line-height:1.6}
#workspace .round-switch button{display:inline-flex;align-items:center;justify-content:center;gap:5px}
.round-lock{width:14px;height:14px;flex-shrink:0}
.round-lock-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.interview-editor.interview-expanded #workspace .palette button{flex-basis:160px}
@media(max-width:650px){
 #workspace .canvas-toolbar strong{font-size:14px}
 #workspace .canvas-bottom #maximizeBtn{min-height:44px}
 #workspace .palette{gap:8px}
}

:root[data-theme=light] :is(#workspace,.workspace-bar,.page-heading){--challenge-label:#2B3538;--challenge-muted:#4A5558}
#workspace :is(.canvas-instruction,.canvas-bottom,.tray-heading>span,.node small){color:var(--challenge-muted)}
#workspace .palette button>span:last-child{color:var(--challenge-label)}

/* Keep the relocated tutorial action visible and aligned with workspace actions. */
.workspace-bar #guideBtn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 11px;white-space:nowrap}
.interview-editor .workspace-bar #guideBtn{display:none!important}
@media(max-width:650px){.workspace-bar #guideBtn{min-height:44px}}
