/* Right-side controls: compact rows, not clipped content. No business state here. */
body.phase2-workspace .ws-compact-inspector .ws-inspector-scroll { gap:6px!important;padding:8px!important; }
body.phase2-workspace .ws-compact-inspector :is(.ws-step-card,.ws-panel,.sl-panel-section,.ws-editor-group) { border-radius:0!important;box-shadow:none!important;min-width:0; }
body.phase2-workspace .ws-compact-inspector .ws-step-card { padding:8px!important;border:1px dashed var(--ws-border)!important; }
body.phase2-workspace .ws-compact-inspector .ws-compact-redundant-heading { display:none!important; }
body.phase2-workspace .ws-compact-inspector .ws-compact-source-preview { margin:4px 0; }
body.phase2-workspace .ws-compact-inspector .ws-compact-source-preview summary { cursor:pointer;line-height:28px; }
body.phase2-workspace .ws-compact-inspector .ws-step-card :is(.ws-panel,.sl-panel-section) { padding:0!important;margin:0!important;border:0!important;background:transparent!important; }
body.phase2-workspace .ws-compact-inspector :is(h2,.sl-section-heading,h3,.ws-section-title) { margin:0!important;padding:0!important;min-height:28px;align-items:center; }
body.phase2-workspace .ws-compact-inspector h2>span { display:none; }
body.phase2-workspace .ws-compact-inspector .sl-section-heading p { display:none; }
body.phase2-workspace .ws-compact-inspector :is(.sl-range-heading small,.sl-switch-row small) { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important; }
body.phase2-workspace .ws-compact-inspector .ws-compact-help { margin-top:4px; }
body.phase2-workspace .ws-compact-inspector .ws-compact-help summary { cursor:pointer;line-height:28px; }
body.phase2-workspace .ws-compact-inspector .ws-compact-help p { font-size:12px;line-height:1.5;margin:4px 0; }
body.phase2-workspace .ws-compact-inspector :is(.ws-step-content,.ws-advanced-direct) { padding:0!important;gap:4px!important; }
body.phase2-workspace .ws-compact-inspector :is(button,select,input,summary,label,small,output) { font-size:12px; }
body.phase2-workspace .ws-compact-inspector :is(button,select,summary) { min-height:28px; }
body.phase2-workspace .ws-compact-inspector .ws-source-slider.ws-slider-control-host { display:grid!important;grid-template-columns:52px minmax(36px,1fr) 48px!important;gap:6px!important;margin:2px 0!important;min-height:28px; }
body.phase2-workspace .ws-compact-inspector .ws-source-slider.ws-slider-control-host>.ws-unified-slider { grid-column:2!important; }
body.phase2-workspace .ws-compact-inspector .ws-source-slider.ws-slider-control-host>.ws-slider-number { grid-column:3!important; }
body.phase2-workspace .ws-compact-inspector input.ws-slider-number[type="number"] { width:48px!important;min-width:48px!important;padding:2px!important;border-radius:0!important; }
body.phase2-workspace .ws-compact-inspector .sl-range-setting { display:grid!important;grid-template-columns:64px minmax(36px,1fr);align-items:center;gap:4px!important;margin:2px 0!important;padding:0!important; }
body.phase2-workspace .ws-compact-inspector .sl-range-heading { margin:0!important; }
body.phase2-workspace .ws-compact-inspector .sl-range-row.ws-slider-control-host { grid-template-columns:minmax(36px,1fr) 48px!important;gap:6px!important; }
body.phase2-workspace .ws-compact-inspector .sl-option-list { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px!important;margin:4px 0!important; }
body.phase2-workspace .ws-compact-inspector .sl-switch-row { display:flex!important;align-items:center;justify-content:space-between;gap:4px!important;padding:3px 0!important;min-height:28px;margin:0!important; }
body.phase2-workspace .ws-compact-inspector .sl-switch-row strong { font-size:12px!important;font-weight:400; }
body.phase2-workspace .ws-compact-inspector :is(h2,h3,.ws-section-toggle,.sl-switch-row strong,.sl-range-heading,.ws-source-slider>span:first-child,.ws-field>span:first-child) { white-space:nowrap; }
body.phase2-workspace .ws-compact-inspector .sl-switch-row>span:first-child { min-width:0;flex:0 1 auto; }
body.phase2-workspace .ws-compact-inspector .sl-switch-ui { flex:0 0 26px!important;width:26px!important;min-width:26px!important;height:16px!important;min-height:16px!important; }
body.phase2-workspace .ws-compact-inspector .sl-switch-ui::after { width:10px!important;height:10px!important;left:2px!important;top:2px!important; }
body.phase2-workspace .ws-compact-inspector input:checked+.sl-switch-ui::after { transform:translateX(10px)!important; }
body.phase2-workspace .ws-compact-inspector .ws-advanced-direct>.sl-switch-row { display:inline-flex!important;width:calc(50% - 3px);vertical-align:top; }
body.phase2-workspace .ws-compact-inspector .ws-diagnostic-counts { grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:4px 0; }
body.phase2-workspace .ws-compact-inspector .ws-diagnostic-counts button { padding:3px 5px;min-width:0;min-height:28px;border-radius:0; }
body.phase2-workspace .ws-compact-inspector .ws-diagnostic-filters { margin-top:4px;border-top:1px dashed var(--ws-border); }
body.phase2-workspace .ws-compact-inspector .ws-diagnostic-filters summary { cursor:pointer;line-height:28px; }
body.phase2-workspace .ws-compact-inspector .ws-field { display:grid;grid-template-columns:86px minmax(0,1fr);align-items:center;gap:6px;margin:4px 0; }
body.phase2-workspace .ws-compact-inspector :is(button,input,select,summary):focus-visible { outline:2px solid var(--ws-text,#17181b)!important;outline-offset:2px; }
body.phase2-workspace .ws-compact-inspector :is([hidden][hidden],.ws-retired-controls.ws-retired-controls) { display:none!important; }
@media(min-width:1201px) { body.phase2-workspace .workspace-grid:has(>.ws-compact-inspector:not(.is-collapsed)) { --ws-task-col:260px; } }
@media(min-width:761px) and (max-width:1200px) {
  body.phase2-workspace .ws-compact-inspector .sl-option-list { grid-template-columns:minmax(0,1fr); }
  body.phase2-workspace .ws-compact-inspector .ws-advanced-direct>.sl-switch-row { width:100%; }
}
/* Text tools share the narrow inspector without squeezing the font selector. */
body.phase2-workspace .ws-compact-inspector .ws-text-editor { min-width:0;padding:6px;gap:6px;background:transparent;border-radius:0; }
body.phase2-workspace .ws-compact-inspector .ws-text-editor .ws-field { grid-template-columns:60px minmax(0,1fr);gap:4px;margin:0;white-space:nowrap; }
body.phase2-workspace .ws-compact-inspector .ws-text-editor .ws-field:has(textarea) { grid-template-columns:minmax(0,1fr);gap:4px; }
body.phase2-workspace .ws-compact-inspector .ws-text-editor :is(input:not([type=checkbox]):not([type=file]),select,textarea) { box-sizing:border-box;min-width:0;max-width:100%;width:100%;padding:3px 5px;font-size:12px; }
body.phase2-workspace .ws-compact-inspector .ws-text-editor textarea { min-height:58px;resize:vertical;white-space:pre-wrap; }
body.phase2-workspace .ws-compact-inspector .ws-text-font-row { grid-template-columns:minmax(0,1fr);gap:4px; }
body.phase2-workspace .ws-compact-inspector .ws-text-font-load { justify-self:end;min-height:28px;padding:3px 8px; }
body.phase2-workspace .ws-compact-inspector .ws-text-style { gap:4px; }
body.phase2-workspace .ws-compact-inspector .ws-text-style>label { min-width:0;gap:4px;white-space:nowrap; }
body.phase2-workspace .ws-compact-inspector .ws-text-style input[type=number] { width:54px!important; }
body.phase2-workspace .ws-compact-inspector .ws-text-toggle { width:28px;height:28px;padding:2px;flex:0 0 28px; }
body.phase2-workspace .ws-compact-inspector .ws-text-color-target { padding:3px 5px;min-width:0;white-space:nowrap; }
body.phase2-workspace .ws-compact-inspector .ws-text-effect-group { min-width:0;margin:2px 0;padding:6px;gap:4px;border-radius:0; }
body.phase2-workspace .ws-compact-inspector .ws-text-effect-group legend { font-size:12px;padding:0 4px; }
body.phase2-workspace .ws-compact-inspector .ws-text-effect-group input[type=range] { width:calc(100% - 48px);flex:1 1 100px;padding:0; }
body.phase2-workspace .ws-compact-inspector .ws-text-effect-group input[type=number] { width:42px; }
body.phase2-workspace .ws-compact-inspector .ws-text-effect-group output { width:40px;text-align:right;white-space:nowrap; }
body.phase2-workspace .ws-compact-inspector .ws-text-actions { grid-template-columns:minmax(0,1fr);gap:4px; }
body.phase2-workspace .ws-compact-inspector .ws-text-editor .ws-selection-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px; }
body.phase2-workspace .ws-compact-inspector .ws-text-editor .ws-note { margin:0;font-size:12px;line-height:1.5; }
@media(pointer:coarse) { body.phase2-workspace .ws-compact-inspector :is(button,select,summary,.sl-switch-row,.ws-switch-row,.ws-source-slider) { min-height:36px!important; } }
