/* ESMFold2 only. Scientific inputs and job actions retain their original handlers. */
html #module-section.cb-esm-workspace{--esm-bg:#101a18;--esm-panel:#192824;--esm-elevated:#22362e;--esm-line:#33483e;--esm-text:#e8f1ec;--esm-muted:#a6bcb0;--esm-accent:#79d5b6;--esm-soft:#294b3d;--esm-danger:#ffb6a7;--esm-warn:#efd195;--esm-input:#10201a;background:var(--esm-bg)!important;color:var(--esm-text)!important;padding:0!important;overflow:visible!important;min-height:calc(100dvh - 70px)}
html[data-cb-theme=light] #module-section.cb-esm-workspace{--esm-bg:#edf4ee;--esm-panel:#fff;--esm-elevated:#e9f1e9;--esm-line:#cbdacf;--esm-text:#19392a;--esm-muted:#506e5d;--esm-accent:#176f4d;--esm-soft:#dbeede;--esm-danger:#a83a2e;--esm-warn:#886321;--esm-input:#f7faf6}
html #module-section.cb-esm-workspace *,html #module-section.cb-esm-workspace *::before,html #module-section.cb-esm-workspace *::after{box-sizing:border-box}
html #module-section.cb-esm-workspace .module-shell{width:100%;max-width:none;padding:0;margin:0}
html #module-section.cb-esm-workspace :is(.module-hero,.module-back-btn,#module-side-card){display:none!important}
html #module-section.cb-esm-workspace .module-workspace{display:block!important;grid-template-columns:1fr!important;gap:0!important;margin:0!important;padding:0!important}
html #module-section.cb-esm-workspace #module-preview-grid{margin:0!important;padding:0!important;width:100%;display:block!important}
html #module-section.cb-esm-workspace .cb-esm-brand{display:flex;align-items:center;justify-content:space-between;padding:20px 26px;border-bottom:1px solid var(--esm-line);background:var(--esm-panel);gap:16px}
html #module-section.cb-esm-workspace .cb-esm-brand h1{font:650 23px/1.2 var(--font-sans);letter-spacing:-.7px;margin:0;color:var(--esm-text)!important}
html #module-section.cb-esm-workspace .cb-esm-brand h1 span{font-size:10px;letter-spacing:1.8px;color:var(--esm-accent);margin-left:9px;vertical-align:middle}
html #module-section.cb-esm-workspace .cb-esm-brand p{font-size:11px;margin:6px 0 0;color:var(--esm-muted)!important;letter-spacing:.3px}
html #module-section.cb-esm-workspace :is(button,a,.form-control,textarea,input){font-family:inherit;box-shadow:none!important}
html #module-section.cb-esm-workspace button{cursor:pointer}
html #module-section.cb-esm-workspace button:disabled{opacity:.42;cursor:not-allowed}
html #module-section.cb-esm-workspace :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--esm-accent)!important;outline-offset:3px}
html #module-section.cb-esm-workspace .cb-esm-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;border:1px solid var(--esm-line);border-radius:6px;padding:6px 10px;background:var(--esm-elevated)!important;color:var(--esm-text)!important;font-size:11px;text-decoration:none!important;white-space:nowrap}
html #module-section.cb-esm-workspace .cb-esm-button:hover{border-color:var(--esm-accent)}
html #module-section.cb-esm-workspace .esmfold-workbench-shell{display:grid!important;grid-template-columns:310px minmax(0,1fr) 264px!important;grid-template-areas:'input output history';gap:0!important;height:auto!important;min-height:760px;border:0!important;border-radius:0!important;background:var(--esm-bg)!important;overflow:visible!important}
html #module-section.cb-esm-workspace .esmfold-input-panel{grid-area:input;border:0!important;border-right:1px solid var(--esm-line)!important;background:var(--esm-panel)!important;min-width:0;overflow:visible!important;display:flex;flex-direction:column}
html #module-section.cb-esm-workspace .esmfold-output-panel{grid-area:output;display:flex;flex-direction:column;min-width:0;overflow:hidden!important;background:var(--esm-bg)!important;border:0!important}
html #module-section.cb-esm-workspace .esmfold-panel-title{padding:16px 20px!important;border-bottom:1px solid var(--esm-line)!important;background:transparent!important;color:var(--esm-text)!important;font-size:12px}
html #module-section.cb-esm-workspace .esmfold-panel-title small{color:var(--esm-muted)!important;font-size:10px}
html #module-section.cb-esm-workspace .esmfold-form-body{padding:18px!important;overflow:visible!important;max-height:none!important;flex:1}
html #module-section.cb-esm-workspace .esmfold-form-body>.esmfold-mode-copy{display:none}
html #module-section.cb-esm-workspace .esmfold-section-label{margin:0 0 12px!important;font-size:10px!important;letter-spacing:.8px;color:var(--esm-muted)!important}
html #module-section.cb-esm-workspace .esmfold-section-label::after{background:var(--esm-line)!important}
html #module-section.cb-esm-workspace .esmfold-mode-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin:0 0 22px!important}
html #module-section.cb-esm-workspace .esmfold-mode-tab{background:var(--esm-input)!important;color:var(--esm-muted)!important;border:1px solid var(--esm-line)!important;border-radius:6px!important;padding:10px 7px!important;font-size:11px!important;min-height:42px;line-height:1.5;box-shadow:none!important}
html #module-section.cb-esm-workspace .esmfold-mode-tab.active{background:var(--esm-soft)!important;color:var(--esm-accent)!important;border-color:var(--esm-accent)!important}
html #module-section.cb-esm-workspace .esmfold-mode-copy{gap:5px!important;margin:0 0 16px!important}
html #module-section.cb-esm-workspace .esmfold-mode-copy strong{font-size:15px!important;color:var(--esm-text)!important}
html #module-section.cb-esm-workspace .esmfold-mode-copy span{font-size:11px!important;line-height:1.65;color:var(--esm-muted)!important}
html #module-section.cb-esm-workspace .esmfold-field-grid{display:grid!important;grid-template-columns:1fr!important;gap:13px!important}
html #module-section.cb-esm-workspace .esmfold-field-group{gap:6px!important;margin:0!important;min-width:0;color:var(--esm-text)!important;font-size:11px!important}
html #module-section.cb-esm-workspace :is(input.form-control,textarea.form-control){background:var(--esm-input)!important;border:1px solid var(--esm-line)!important;color:var(--esm-text)!important;border-radius:6px!important;padding:10px!important;font-size:12px!important;min-width:0;line-height:1.75}
html #module-section.cb-esm-workspace textarea.form-control{font-family:var(--font-mono);min-height:112px!important;max-height:none!important;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all}
html #module-section.cb-esm-workspace :is(input,textarea)::placeholder{color:var(--esm-muted)!important;opacity:.65}
html #module-section.cb-esm-workspace .cb-esm-upload{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--esm-muted);font-size:10px}
html #module-section.cb-esm-workspace .cb-esm-upload button{border:0;padding:2px 0;color:var(--esm-accent)!important;background:transparent!important;font-size:10px}
html #module-section.cb-esm-workspace .esmfold-example-row{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0!important;color:var(--esm-muted)!important;font-size:10px}
html #module-section.cb-esm-workspace .esmfold-example-chip{background:var(--esm-elevated)!important;color:var(--esm-text)!important;border:1px solid var(--esm-line)!important;border-radius:5px!important;padding:5px 8px!important;font-size:10px!important}
html #module-section.cb-esm-workspace .esmfold-meta-row{display:flex;flex-direction:column;align-items:flex-start;gap:7px!important;padding:14px 0 0!important;margin:16px 0 0!important;border-top:1px solid var(--esm-line);font-size:10px!important;color:var(--esm-muted)!important;line-height:1.5}
html #module-section.cb-esm-workspace .esmfold-meta-row strong{font-size:10px;font-weight:400}
html #module-section.cb-esm-workspace .text-danger{color:var(--esm-danger)!important}
html #module-section.cb-esm-workspace .text-success{color:var(--esm-accent)!important}
html #module-section.cb-esm-workspace .esmfold-form-actions{display:grid;gap:10px;padding:16px 18px!important;background:var(--esm-panel)!important;border-top:1px solid var(--esm-line)!important;position:sticky;bottom:0;z-index:2;box-shadow:none!important}
html #module-section.cb-esm-workspace .esmfold-credit-pill{background:transparent!important;border:0!important;padding:0!important;color:var(--esm-muted)!important;font-size:10px!important}
html #module-section.cb-esm-workspace .esmfold-submit-button{width:100%;min-height:42px;border:0!important;border-radius:6px!important;background:var(--esm-accent)!important;color:var(--esm-bg)!important;font-size:12px!important;box-shadow:none!important}
html #module-section.cb-esm-workspace .esmfold-output-workspace{padding:0!important;height:auto!important;min-height:700px;overflow:visible!important;flex:1;background:var(--esm-bg)!important}
html #module-section.cb-esm-workspace :is(.esmfold-preview-card,.esmfold-status-card){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;margin:0!important}
html #module-section.cb-esm-workspace :is(.esmfold-result-head,.esmfold-result-body){background:transparent!important;color:var(--esm-text)!important;border-color:var(--esm-line)!important;padding:20px!important}
html #module-section.cb-esm-workspace .esmfold-result-head h3{font-size:18px!important;color:var(--esm-text)!important;margin:0 0 6px}
html #module-section.cb-esm-workspace :is(.esmfold-result-head p,.text-muted){font-size:11px!important;color:var(--esm-muted)!important;line-height:1.6}
html #module-section.cb-esm-workspace .screening-badge{background:var(--esm-soft)!important;color:var(--esm-accent)!important;border:1px solid var(--esm-line)!important;font-size:10px;padding:5px 9px;white-space:nowrap}
html #module-section.cb-esm-workspace .esmfold-empty{min-height:520px!important;background:transparent!important;border:0!important;color:var(--esm-muted)!important;display:grid;place-items:center;text-align:center;padding:40px;font-size:12px;line-height:1.8}
html #module-section.cb-esm-workspace .cb-esm-empty-mark{font-size:76px;line-height:1.4;color:var(--esm-accent);font-weight:200;opacity:.7}
html #module-section.cb-esm-workspace .esmfold-status-strip{background:var(--esm-panel)!important;border:1px solid var(--esm-line)!important;color:var(--esm-text)!important;min-height:90px}
html #module-section.cb-esm-workspace .esmfold-status-strip :is(strong,span){color:inherit!important}
html #module-section.cb-esm-workspace .cb-esm-result-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--esm-line)}
html #module-section.cb-esm-workspace .cb-esm-result-toolbar h2{font-size:18px;color:var(--esm-text)!important;margin:0 0 5px;overflow-wrap:anywhere}
html #module-section.cb-esm-workspace .cb-esm-result-toolbar p{font-size:11px;color:var(--esm-muted)!important;margin:0}
html #module-section.cb-esm-workspace .cb-esm-result-actions{display:flex;flex-wrap:wrap;gap:6px}
html #module-section.cb-esm-workspace .cb-esm-scene{position:relative;height:550px;min-height:350px;background:var(--esm-bg);border-bottom:1px solid var(--esm-line)}
html #module-section.cb-esm-workspace .cb-esm-scene iframe{width:100%;height:100%;border:0;background:var(--esm-bg);display:block}
html #module-section.cb-esm-workspace .cb-esm-scene-tools{position:absolute;right:14px;top:12px;display:flex;gap:5px;z-index:1;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 28px)}
html #module-section.cb-esm-workspace .cb-esm-scene-tools button{background:var(--esm-panel)!important;opacity:.96}
html #module-section.cb-esm-workspace .cb-esm-scene-status{position:absolute;bottom:12px;left:12px;max-width:calc(100% - 24px);padding:9px 12px;border:1px solid var(--esm-line);border-radius:5px;background:var(--esm-panel);color:var(--esm-muted);font-size:11px;line-height:1.5;z-index:1}
html #module-section.cb-esm-workspace .cb-esm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--esm-line);background:var(--esm-panel)}
html #module-section.cb-esm-workspace .cb-esm-stat{padding:15px 18px;border-right:1px solid var(--esm-line);min-width:0}
html #module-section.cb-esm-workspace .cb-esm-stat:last-child{border-right:0}
html #module-section.cb-esm-workspace .cb-esm-stat span{font-size:10px;color:var(--esm-muted);display:block;margin-bottom:7px}
html #module-section.cb-esm-workspace .cb-esm-stat strong{font-size:22px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--esm-accent);overflow-wrap:anywhere}
html #module-section.cb-esm-workspace .cb-esm-analysis{padding:20px;background:var(--esm-bg);color:var(--esm-text)}
html #module-section.cb-esm-workspace .cb-esm-analysis h3{font-size:13px;margin:0 0 12px;color:var(--esm-text)!important}
html #module-section.cb-esm-workspace .cb-esm-analysis p{font-size:11px;line-height:1.7;color:var(--esm-muted);margin:6px 0 15px}
html #module-section.cb-esm-workspace .cb-esm-chart{width:100%;height:160px;display:block;overflow:visible}
html #module-section.cb-esm-workspace .cb-esm-chart text{fill:var(--esm-muted);font:9px var(--font-sans)}
html #module-section.cb-esm-workspace .cb-esm-chart .grid{stroke:var(--esm-line);stroke-width:1}
html #module-section.cb-esm-workspace .cb-esm-chart .trace{fill:none;stroke:var(--esm-accent);stroke-width:1.5;vector-effect:non-scaling-stroke}
html #module-section.cb-esm-workspace .cb-esm-chain{border:1px solid var(--esm-line);border-radius:6px;margin-top:10px;overflow:hidden;background:var(--esm-panel)}
html #module-section.cb-esm-workspace .cb-esm-chain summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;font-size:11px;color:var(--esm-text)}
html #module-section.cb-esm-workspace .cb-esm-chain summary span{font-size:10px;color:var(--esm-muted)}
html #module-section.cb-esm-workspace .cb-esm-sequence{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;font:12px/2 var(--font-mono);letter-spacing:1px;margin:0;padding:10px 14px;background:var(--esm-input)!important;color:var(--esm-text)!important;border-top:1px solid var(--esm-line);max-height:none;overflow:visible}
html #module-section.cb-esm-workspace .esmfold-task-panel{grid-area:history;background:var(--esm-panel)!important;border:0!important;border-left:1px solid var(--esm-line)!important;max-height:calc(100dvh - 76px)!important;overflow:hidden!important;min-width:0;position:sticky;top:70px;align-self:start;display:flex;flex-direction:column}
html #module-section.cb-esm-workspace .esmfold-task-panel>.esmfold-panel-title{display:flex;align-items:center;gap:8px;padding:16px 14px!important;flex:none}
html #module-section.cb-esm-workspace .esmfold-task-panel>.esmfold-panel-title span{flex:1}
html #module-section.cb-esm-workspace .esmfold-task-list-wrap{padding:12px!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--esm-line) var(--esm-panel)}
html #module-section.cb-esm-workspace .esmfold-task-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
html #module-section.cb-esm-workspace .esmfold-task-card{display:flex;flex-direction:column;gap:0!important;border:1px solid var(--esm-line)!important;border-radius:7px!important;padding:0!important;background:var(--esm-bg)!important;min-width:0;overflow:hidden;box-shadow:none!important}
html #module-section.cb-esm-workspace .esmfold-task-main{display:block;text-align:left;flex:1;background:transparent!important;color:var(--esm-text)!important;padding:12px!important;border:0!important;min-width:0}
html #module-section.cb-esm-workspace .esmfold-task-card-head{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:7px}
html #module-section.cb-esm-workspace .esmfold-task-title{font-size:12px!important;line-height:1.5;font-weight:600;word-break:break-word;overflow-wrap:anywhere;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:var(--esm-text)!important}
html #module-section.cb-esm-workspace :is(.esmfold-task-meta,.esmfold-task-body){color:var(--esm-muted)!important;font-size:10px!important;line-height:1.6;white-space:normal;overflow-wrap:anywhere;margin-top:6px}
html #module-section.cb-esm-workspace .esmfold-task-body{max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset!important}
html #module-section.cb-esm-workspace .esmfold-task-actions{display:flex;gap:4px;margin-top:0!important;padding:8px!important;border-top:1px solid var(--esm-line);background:var(--esm-panel)!important;flex-wrap:wrap}
html #module-section.cb-esm-workspace .esmfold-task-actions :is(a,button){flex:1;min-width:45px;background:var(--esm-elevated)!important;border:1px solid var(--esm-line)!important;color:var(--esm-text)!important;border-radius:5px;font-size:10px!important;padding:5px!important;text-align:center}
html #module-section.cb-esm-workspace .esmfold-task-actions .danger{color:var(--esm-danger)!important}
html #module-section.cb-esm-workspace .esmfold-task-actions .terminate{color:var(--esm-warn)!important}
html #module-section.cb-esm-workspace .task-badge{color:var(--esm-muted)!important;background:var(--esm-elevated)!important;border:1px solid var(--esm-line)!important;font-size:9px!important;padding:3px 6px!important}
html #module-section.cb-esm-workspace .task-badge.done{color:var(--esm-accent)!important;background:var(--esm-soft)!important}
html #module-section.cb-esm-workspace .task-badge.failed{color:var(--esm-danger)!important}
html #module-section.cb-esm-workspace .task-badge.running{color:var(--esm-warn)!important}
html #module-section.cb-esm-workspace .esmfold-task-empty{padding:28px;text-align:center;color:var(--esm-muted)!important;background:transparent!important}
html #module-section.cb-esm-workspace .cb-esm-local-status{font-size:11px;padding:10px;line-height:1.6;color:var(--esm-warn);border:1px solid var(--esm-line);border-radius:5px;margin-top:10px;overflow-wrap:anywhere}
html #module-section.cb-esm-workspace .cb-esm-complex-confidence{border:1px solid var(--esm-line);border-radius:8px;background:var(--esm-panel);padding:16px;margin-bottom:24px}
html #module-section.cb-esm-workspace .cb-esm-confidence-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}
html #module-section.cb-esm-workspace .cb-esm-confidence-heading h3{margin:0}
html #module-section.cb-esm-workspace .cb-esm-confidence-heading>span{color:var(--esm-muted);font-size:10px}
html #module-section.cb-esm-workspace .cb-esm-confidence-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
html #module-section.cb-esm-workspace .cb-esm-confidence-value{display:grid;gap:4px;padding:12px;background:var(--esm-input);border:1px solid var(--esm-line);border-radius:6px}
html #module-section.cb-esm-workspace .cb-esm-confidence-value>span{color:var(--esm-text);font-size:12px}
html #module-section.cb-esm-workspace .cb-esm-confidence-value strong{font-size:27px;line-height:1.3;color:var(--esm-accent);font-weight:500;font-variant-numeric:tabular-nums}
html #module-section.cb-esm-workspace .cb-esm-confidence-value small{color:var(--esm-muted);font-size:10px;line-height:1.5}
html #module-section.cb-esm-workspace .cb-esm-confidence-note{color:var(--esm-text)}
html #module-section.cb-esm-workspace .cb-esm-antibody-check{padding:12px;border:1px solid var(--esm-line);border-radius:6px;background:var(--esm-input);margin-top:14px}
html #module-section.cb-esm-workspace .cb-esm-antibody-check h3{font-size:11px;margin:0 0 10px;color:var(--esm-text)!important}
html #module-section.cb-esm-workspace .cb-esm-chain-lengths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html #module-section.cb-esm-workspace .cb-esm-chain-lengths div{display:grid;gap:4px;min-width:0}
html #module-section.cb-esm-workspace .cb-esm-chain-lengths span{font-size:10px;color:var(--esm-muted)}
html #module-section.cb-esm-workspace .cb-esm-chain-lengths strong{font-size:18px;font-weight:500;color:var(--esm-accent);font-variant-numeric:tabular-nums}
html #module-section.cb-esm-workspace .cb-esm-chain-lengths small{font-size:9px;color:var(--esm-muted)}
html #module-section.cb-esm-workspace .cb-esm-antibody-check p{font-size:10px;line-height:1.7;margin:10px 0 0;color:var(--esm-muted)}
html #module-section.cb-esm-workspace .cb-esm-antibody-check .cb-esm-demo-warning{border-top:1px solid var(--esm-line);padding-top:10px;color:var(--esm-warn)}
html #module-section.cb-esm-workspace .cb-esm-view-tabs{display:flex;align-items:stretch;gap:4px;min-height:58px;padding:0 20px;border-bottom:1px solid var(--esm-line);background:var(--esm-panel);overflow-x:auto;scrollbar-width:none}
html #module-section.cb-esm-workspace .cb-esm-view-tabs::-webkit-scrollbar{display:none}
html #module-section.cb-esm-workspace .cb-esm-view-tabs button{position:relative;min-height:58px;border:0;border-radius:0;padding:0 14px;background:transparent;color:var(--esm-muted);font-weight:700;white-space:nowrap;cursor:pointer}
html #module-section.cb-esm-workspace .cb-esm-view-tabs button:after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;background:transparent}
html #module-section.cb-esm-workspace .cb-esm-view-tabs button:hover{color:var(--esm-text)}
html #module-section.cb-esm-workspace .cb-esm-view-tabs button.is-active{color:var(--esm-accent)}
html #module-section.cb-esm-workspace .cb-esm-view-tabs button.is-active:after{background:var(--esm-accent)}
html #module-section.cb-esm-workspace[data-cb-view=history] .esmfold-workbench-shell{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"history"!important}
html #module-section.cb-esm-workspace[data-cb-view=history] .esmfold-input-panel,html #module-section.cb-esm-workspace[data-cb-view=history] .esmfold-output-panel{display:none!important}
html #module-section.cb-esm-workspace[data-cb-view=history] .esmfold-task-panel{grid-column:1!important;border-left:0!important;max-height:none!important;min-height:calc(100vh - 190px);position:static}
html #module-section.cb-esm-workspace[data-cb-view=guide] .esmfold-workbench-shell{display:none!important}
html #module-section.cb-esm-workspace .cb-esm-guide-panel{display:none;padding:30px 28px;border-bottom:1px solid var(--esm-line);background:var(--esm-bg);color:var(--esm-text)}
html #module-section.cb-esm-workspace[data-cb-view=guide] .cb-esm-guide-panel{display:block}
html #module-section.cb-esm-workspace .cb-esm-guide-kicker{color:var(--esm-accent);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
html #module-section.cb-esm-workspace .cb-esm-guide-panel h2{margin:8px 0;font-size:24px}
html #module-section.cb-esm-workspace .cb-esm-guide-panel>p{max-width:700px;margin:0;color:var(--esm-muted);font-size:12px;line-height:1.7}
html #module-section.cb-esm-workspace .cb-esm-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
html #module-section.cb-esm-workspace .cb-esm-guide-grid article{padding:16px;border:1px solid var(--esm-line);border-radius:5px;background:var(--esm-panel)}
html #module-section.cb-esm-workspace .cb-esm-guide-grid strong{display:block;color:var(--esm-text);font-size:12px}
html #module-section.cb-esm-workspace .cb-esm-guide-grid p{margin:8px 0 0;color:var(--esm-muted);font-size:11px;line-height:1.7}
@media(min-width:1800px){html #module-section.cb-esm-workspace .esmfold-workbench-shell{grid-template-columns:350px minmax(0,1fr) 292px!important}html #module-section.cb-esm-workspace .cb-esm-scene{height:620px}}
@media(max-width:1250px){html #module-section.cb-esm-workspace .esmfold-workbench-shell{grid-template-columns:280px minmax(0,1fr) 240px!important}html #module-section.cb-esm-workspace .cb-esm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){html #module-section.cb-esm-workspace .esmfold-workbench-shell{grid-template-columns:290px minmax(0,1fr)!important;grid-template-areas:'input output' 'history history'}html #module-section.cb-esm-workspace .esmfold-task-panel{position:static;max-height:none!important;border-left:0!important;border-top:1px solid var(--esm-line)!important}html #module-section.cb-esm-workspace .esmfold-task-list-wrap{max-height:470px!important}html #module-section.cb-esm-workspace .esmfold-task-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){html #module-section.cb-esm-workspace .cb-esm-brand{padding:18px}html #module-section.cb-esm-workspace .esmfold-workbench-shell{display:flex!important;flex-direction:column}html #module-section.cb-esm-workspace .esmfold-input-panel{border-right:0!important}html #module-section.cb-esm-workspace .esmfold-form-actions{position:static}html #module-section.cb-esm-workspace .esmfold-task-panel{width:100%}html #module-section.cb-esm-workspace .cb-esm-result-toolbar{align-items:flex-start}html #module-section.cb-esm-workspace .cb-esm-scene{height:460px}html #module-section.cb-esm-workspace .cb-esm-analysis{padding:16px}html #module-section.cb-esm-workspace .esmfold-task-list-wrap{padding:12px!important}}
@media(max-width:420px){html #module-section.cb-esm-workspace .esmfold-task-list{grid-template-columns:1fr!important}html #module-section.cb-esm-workspace .cb-esm-brand h1{font-size:20px}html #module-section.cb-esm-workspace .cb-esm-brand h1 span{display:block;margin:5px 0 0}html #module-section.cb-esm-workspace .cb-esm-stat{padding:12px}html #module-section.cb-esm-workspace .cb-esm-scene-tools{max-width:calc(100% - 20px);right:10px}}
@media(max-width:760px){html #module-section.cb-esm-workspace .cb-esm-view-tabs{padding:0 10px;min-height:52px}html #module-section.cb-esm-workspace .cb-esm-view-tabs button{min-height:52px;padding:0 10px}html #module-section.cb-esm-workspace .cb-esm-guide-panel{padding:22px 14px}html #module-section.cb-esm-workspace .cb-esm-guide-panel h2{font-size:20px}html #module-section.cb-esm-workspace .cb-esm-guide-grid{grid-template-columns:1fr}}
html:has(#module-section.cb-esm-workspace:not(.hidden)) body>.site-footer{display:none!important}
html:has(#module-section.cb-esm-workspace:not(.hidden)) #assistant-float-ball span::after{content:none!important}


/* Unified module layout: history is a top-tab view, never a permanent right column. */
html #module-section.cb-esm-workspace .esmfold-workbench-shell{grid-template-columns:310px minmax(0,1fr)!important;grid-template-areas:'input output'!important}
html #module-section.cb-esm-workspace .esmfold-task-panel{display:none!important}
html #module-section.cb-esm-workspace[data-cb-view=history] .esmfold-workbench-shell{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'history'!important}
html #module-section.cb-esm-workspace[data-cb-view=history] .esmfold-input-panel,html #module-section.cb-esm-workspace[data-cb-view=history] .esmfold-output-panel{display:none!important}
html #module-section.cb-esm-workspace[data-cb-view=history] .esmfold-task-panel{display:flex!important;grid-column:1/-1!important;border-left:0!important;max-height:none!important;min-height:calc(100vh - 190px)!important;position:static!important;background:var(--esm-bg)!important}
html #module-section.cb-esm-workspace[data-cb-view=history] .esmfold-task-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))!important;gap:12px!important}
html #module-section.cb-esm-workspace[data-cb-view=guide] .esmfold-workbench-shell{display:none!important}
@media(max-width:1050px){html #module-section.cb-esm-workspace .esmfold-workbench-shell{grid-template-columns:290px minmax(0,1fr)!important;grid-template-areas:'input output'!important}html #module-section.cb-esm-workspace .esmfold-task-panel{display:none!important}}
@media(max-width:760px){html #module-section.cb-esm-workspace .esmfold-workbench-shell{display:flex!important;flex-direction:column}html #module-section.cb-esm-workspace[data-cb-view=history] .esmfold-workbench-shell{display:block!important}}

/* Unified task history cards */
html #module-section.cb-esm-workspace .esmfold-task-main{display:flex!important;flex-direction:column;gap:8px}
html #module-section.cb-esm-workspace .esmfold-task-card-head{width:100%;flex-direction:row!important;justify-content:space-between;align-items:flex-start!important}
html #module-section.cb-esm-workspace .esmfold-task-created,html #module-section.cb-esm-workspace .esmfold-task-retention{font-size:11px;line-height:1.55;color:var(--esm-muted);overflow-wrap:anywhere}
html #module-section.cb-esm-workspace .esmfold-task-progress{width:100%;height:4px;border-radius:999px;background:var(--esm-line);overflow:hidden}
html #module-section.cb-esm-workspace .esmfold-task-progress>i{display:block;height:100%;border-radius:inherit;background:var(--esm-accent);transition:width .25s ease}
