/* Operator workspace: the sidebar never pushes the left-column controls down. */
.workspace-main{display:flex;flex-direction:column;gap:18px;min-width:0}.workspace-main>.section-gap{margin-top:0}.main-grid>.side{min-width:0}.panel{min-width:0}.fact[hidden]{display:none}
.portfolio-maintenance{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;border-top:1px solid var(--line);padding-top:12px}.portfolio-maintenance button{min-height:40px}.portfolio-maintenance small{flex:1;min-width:190px;font-size:11px}
.section-actions{display:flex;gap:12px;align-items:center}.panelhead h2 small{font-size:11px;font-weight:400}.section-actions button{min-height:40px}.strategy-control-body{grid-template-columns:minmax(0,1fr) auto;gap:12px 18px}.strategy-actions button{min-width:104px}.strategy-library-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:10px}.strategy-library-actions small{font-size:11px;max-width:460px}.strategy-library-actions button{min-height:36px}.quiet-button{background:transparent;color:var(--muted)}.quiet-button:hover:not(:disabled){background:#222a27;color:var(--text)}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--up);outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}.editor-toggle{margin-top:12px;min-height:40px}
.strategy-editor{border-top:1px solid var(--line)}.strategy-editor>summary{padding:16px 18px;cursor:pointer;display:flex;justify-content:space-between;gap:16px;align-items:center;list-style:none}.strategy-editor>summary::-webkit-details-marker{display:none}.strategy-editor>summary:after{content:'+';font-size:22px;color:var(--up)}.strategy-editor[open]>summary:after{content:'−'}.strategy-editor>summary strong{font-size:14px;font-weight:600;display:block}.strategy-editor>summary small{font-size:11px;display:block;margin-top:3px}.draft-badge{margin-left:auto;font:11px Consolas,monospace;color:var(--muted);white-space:nowrap}.strategy-editor[open]>summary{border-bottom:1px solid var(--line);background:#1d2421}.editor-body{padding:18px}.editor-intro-row{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}.editor-intro{font-size:12px;color:var(--muted);max-width:650px;margin:0}.editor-intro-row button{white-space:nowrap;min-height:36px}.editor-steps{display:flex;flex-wrap:wrap;gap:12px 28px;margin:18px 0;color:var(--muted);font-size:12px}.editor-steps b{display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid #4a5d51;border-radius:50%;margin-right:7px;font-size:11px;color:var(--green)}.editor-source{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.editor-source label{display:grid;gap:7px;flex:1;min-width:180px;color:var(--muted);font-size:12px}.editor-source select{width:100%;min-height:44px}.editor-source button{min-height:44px}.editor-source-note{font-size:11px;color:var(--muted);margin-top:8px}.editor-model-row{margin-top:20px;padding:16px;background:#202822;border:1px solid #3b4a3f;border-radius:5px}.editor-model-note{font-size:12px;color:var(--muted);margin:10px 0 4px;line-height:1.6}.editor-group{padding:20px 0;border-bottom:1px solid var(--line)}.editor-group h3,.editor-group summary{font-size:13px;font-weight:600;margin:0}.editor-group>.group-description{margin:4px 0 15px;font-size:12px;color:var(--muted)}.editor-group summary{cursor:pointer;min-height:30px;display:list-item;list-style-position:inside}.editor-group summary small{font-size:11px;margin-left:10px;font-weight:400}.editor-group[open] summary{margin-bottom:16px}.parameter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}.parameter{min-width:0;display:flex;flex-direction:column;gap:6px}.parameter label{font-size:12px;font-weight:600}.parameter input,.parameter select,.editor-save input{width:100%;min-width:0;min-height:44px;border:1px solid #45524a;border-radius:4px;background:#151c18;color:var(--text);padding:9px 11px;font:14px 'Segoe UI',sans-serif}.parameter-control{display:flex;align-items:center;position:relative}.parameter-control input{padding-right:43px}.parameter-unit{position:absolute;right:12px;pointer-events:none;color:var(--muted);font-size:12px}.parameter small{font-size:11px;color:var(--muted);line-height:1.5}.parameter[data-inactive=true]{opacity:.55}.parameter[data-inactive=true] label:after{content:' · not used by this model';font-size:10px;font-weight:400}.parameter[data-invalid=true] input{border-color:var(--red)}.advanced-heading{margin-top:22px}.advanced-heading h3{font-size:13px;margin:0}.advanced-heading p{color:var(--muted);font-size:12px;margin-top:5px}.editor-advanced .editor-group{padding:12px 0}.editor-filter-note{font-size:12px;line-height:1.6;margin:14px 0 0;padding:12px;background:#29291f;border:1px solid #56533c;border-radius:4px;color:#e2d3a0}.editor-filter-note[hidden]{display:none}.draft-review{margin-top:22px;background:#202822;border:1px solid #3b4a3f;border-radius:5px;padding:16px}.draft-review h3{font-size:13px;margin:0 0 8px}.draft-review p{font-size:13px;line-height:1.7}.draft-review small{display:block;margin-top:8px;font-size:11px}.editor-save{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:20px}.editor-save label{flex:1;min-width:200px;display:grid;gap:7px;font-size:12px}.editor-save button{min-height:44px;min-width:160px;background:#294536;border-color:#5d8d6e;font-size:13px;font-weight:600}.editor-save-note{font-size:11px;color:var(--muted);margin-top:10px}.editor-status{margin-top:12px;color:var(--green);font-size:12px}.editor-error{margin-top:10px;color:var(--red);font-size:12px;white-space:pre-wrap}.editor-error[hidden]{display:none}.library-notice{grid-column:1/-1;color:var(--green);font-size:12px}.library-notice:empty{display:none}
dialog{color:var(--text);background:var(--panel);border:1px solid #566057;border-radius:8px;padding:24px;max-width:480px;width:calc(100% - 32px);box-shadow:0 22px 90px #0008}dialog::backdrop{background:#000a}dialog h2{font-size:18px}dialog p{margin-top:14px;font-size:13px;line-height:1.7}dialog .delete-target{font-size:15px;font-weight:600;overflow-wrap:anywhere}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.dialog-actions button{min-height:44px}.danger-button{color:#ffd3ce;border-color:#9b635e;background:#4a2927}.control-error[hidden]{display:none}
@media(max-width:1100px){.strategy-control-body{grid-template-columns:1fr}.strategy-actions{justify-content:flex-start}}
@media(max-width:700px){.parameter-grid{grid-template-columns:1fr}.editor-body{padding:14px}.editor-source{align-items:stretch}.editor-source label{flex-basis:100%}.editor-source button{flex:1}.editor-intro-row{flex-direction:column;gap:10px}.editor-steps{gap:10px;font-size:11px}.editor-steps b{width:20px;height:20px;margin-right:4px}.editor-save{display:grid;grid-template-columns:1fr}.editor-save label{min-width:0}.section-actions{gap:8px}.panelhead h2 small{display:none}.strategy-editor>summary small{max-width:300px}.draft-badge{display:none}.strategy-library-actions{align-items:flex-start;flex-direction:column}.dialog-actions{flex-direction:column-reverse}.dialog-actions button{width:100%}}
