:root{font-family:Inter,"Noto Sans SC","Microsoft YaHei",sans-serif;color:#172c31;background:#f3f6f7;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#172c31;--muted:#65777b;--soft:#849397;--line:#dce5e7;--teal:#087f83;--teal-dark:#08676b;--teal-pale:#e7f4f3;--paper:#fff;--slate:#f6f8f8;--mono:ui-monospace,SFMono-Regular,Consolas,monospace}*{box-sizing:border-box}html{min-width:320px}body{margin:0;min-height:100vh;background:#f3f6f7;font-size:14px;line-height:1.5;color:var(--ink)}button,input,textarea,select{font:inherit}button{color:inherit}.topbar{height:58px;padding:0 max(28px,calc((100vw - 1480px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:14px;font-weight:700;text-decoration:none}.brand-mark{width:28px;height:28px;border-radius:8px;background:#0f4248;color:#d8f3ee;display:grid;place-items:center;font:600 14px var(--mono)}.topbar-actions,.bar-actions,.heading-actions,.artifact-actions{display:flex;align-items:center;gap:8px}.quiet-button,.icon-button,.text-button{font:inherit;border:0;cursor:pointer}.quiet-button{display:flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#4c6266;font-size:12px}.quiet-button:hover,.button-secondary:hover{background:#f5f8f8}.status-dot{width:7px;height:7px;border-radius:50%;background:#b7c2c4}.status-dot.ready{background:#24a275;box-shadow:0 0 0 3px #e4f5ee}.layout{width:min(1480px,calc(100% - 48px));margin:0 auto}.credentials{padding:17px 20px;margin:14px 0 0}.workbench-bar{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}.workspace-context{display:flex;align-items:center;gap:9px;color:#77898d;font-size:12px;min-width:0}.workspace-context strong{color:#334d52;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crumb-separator{color:#bbc5c7}.workbench{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start;padding-top:16px}.navigator{display:grid;gap:12px;min-width:0;align-content:start}.card{background:var(--paper);border:1px solid var(--line);border-radius:9px;box-shadow:0 1px 2px #1e3e4408}.tree-card,.task-form{padding:15px}.section-heading,.workspace-heading,.subheading{display:flex;align-items:center;justify-content:space-between;gap:12px}.step{font:600 12px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#74888c}.section-heading h2{font-size:15px;letter-spacing:-.2px;margin:3px 0 0;font-weight:650}.icon-button{width:32px;height:32px;display:grid;place-items:center;font-size:22px;color:#6d8083;background:transparent;border-radius:6px}.icon-button:hover{background:#f0f4f5}.search-field{display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;margin:14px 0 8px;border:1px solid var(--line);border-radius:6px;background:#fbfcfc;color:#789095}.search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:12px}.search-field input::placeholder{color:#96a4a7}.tree-list{display:grid;gap:4px;margin-top:12px;max-height:calc(100vh - 270px);min-height:42px;overflow:auto}.tree-item{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:1px solid transparent;border-radius:6px;background:transparent;padding:8px 9px;cursor:pointer;color:#3a5256}.tree-item:hover,.tree-item.selected{border-color:#cde4e2;background:#eff8f7}.tree-item strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600}.tree-item span{color:#718589;font-size:12px}.task-form{padding-top:14px}.format-chip{display:inline-block;margin-top:5px;padding:2px 7px;border-radius:12px;background:var(--teal-pale);color:var(--teal-dark);font-size:12px;font-weight:600;vertical-align:middle}.prompt-summary{margin:13px 0 0;padding:9px;border:1px solid var(--line);border-radius:6px;background:#fbfcfc}.prompt-summary summary{cursor:pointer;font-size:12px;color:#52696d}.prompt-summary pre{max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 var(--mono);color:#53676b}.prompt-summary code{font:12px var(--mono);color:#75888b;overflow-wrap:anywhere}.task-list-wrap{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.task-heading{display:flex;align-items:center;justify-content:space-between}.task-list-wrap h3{margin:0;font-size:12px;font-weight:650;color:#465d61}.text-button{padding:4px 0;background:transparent;color:#087f83;font-size:12px;text-decoration:none}.text-button:hover{text-decoration:underline}.run-workspace{min-width:0;min-height:640px;overflow:hidden}.workspace-heading{min-height:72px;padding:14px 20px;border-bottom:1px solid var(--line)}.workspace-heading h1{font-size:19px;letter-spacing:-.35px;margin:3px 0 0;font-weight:650;overflow-wrap:anywhere}.run-state-pill,.status-chip{padding:4px 8px;border-radius:16px;background:#e9f5f1;color:#15785e;font-size:12px;white-space:nowrap}.run-state-pill[data-status="failed"],.status-chip[data-status="failed"]{background:#fff0ed;color:#a24f40}.mobile-nav-toggle{display:none}.task-panel{padding:16px 20px 22px}.task-context{margin-bottom:12px;padding:8px 12px;border:1px solid #e6ecec;border-radius:6px;background:#fbfcfc}.task-context summary{cursor:pointer;font-size:12px;color:#53696d}.task-context .code-view{margin-top:9px}.run-launch{display:grid;grid-template-columns:minmax(160px,1fr) minmax(200px,312px) auto;align-items:end;gap:12px;padding:13px;border:1px solid #dcebea;border-radius:7px;background:#f7fbfb}.launch-copy{align-self:center}.field-label{display:block;margin:0 0 5px;font-size:12px;font-weight:650;color:#3c565b}.launch-hint{font-size:12px;color:#718589}.run-launch select{height:38px;min-width:0;padding:0 12px;font-size:12px}.run-launch button{height:38px}.launch-note{margin:7px 2px 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:6px;padding:0 13px;min-height:36px;font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,transform .15s;white-space:nowrap}.button:active:not(:disabled){transform:translateY(1px)}.button-primary{color:#fff;background:var(--teal)}.button-primary:hover:not(:disabled){background:var(--teal-dark)}.button-secondary{border:1px solid #d4dfe0;background:#fff;color:#40595e}.button-danger{color:#fff;background:#b53c39}.button-danger-quiet{color:#a44640;background:#fff;border:1px solid #f0d8d5}.button:disabled{opacity:.48;cursor:not-allowed}.inline-error{margin:9px 0 0;color:#ae453b;font-size:12px;line-height:1.5}.field-help{font-size:12px;color:#718286;margin:7px 0 0;line-height:1.55}.runs-block{margin-top:19px}.subheading{padding-bottom:9px;border-bottom:1px solid var(--line)}.subheading h2{margin:0;font-size:13px;font-weight:650;color:#465d61}.subheading span{font-size:12px;color:#718589}.run-list{display:flex;gap:8px;overflow-x:auto;padding:9px 0 3px}.run-item{flex:0 0 190px;min-width:0;display:grid;gap:6px;text-align:left;border:1px solid #e1e9e9;border-radius:7px;background:#fff;padding:12px;cursor:pointer}.run-item:hover,.run-item.selected{border-color:#9dcfca;background:#f7fbfb}.run-item-head{display:flex;justify-content:space-between;align-items:center;gap:5px}.run-item-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#40585c}.status-chip{font-size:12px;padding:3px 6px}.run-item-meta,.run-item-note{font-size:12px;color:#718589;line-height:1.45}.run-item-note{overflow-wrap:anywhere}.progress-panel{margin-top:16px;padding:14px;border:1px solid #bcdedb;border-radius:8px;background:linear-gradient(120deg,#f2fbfa,#fff 70%)}.progress-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.progress-top h2{margin:3px 0 0;font-size:15px}.progress-live{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:14px;background:#e3f5ef;color:#198064;font-size:12px}.progress-live i{width:7px;height:7px;border-radius:50%;background:#20a579;box-shadow:0 0 0 3px #d4efe5}.progress-stats{display:flex;gap:0;margin-top:13px;border:1px solid #e0ecec;border-radius:6px;background:#fff}.progress-stats div{flex:1;padding:8px 12px;border-right:1px solid #e7eeee}.progress-stats div:last-child{border-right:0}.progress-stats span,.progress-stats strong{display:block}.progress-stats span{font-size:12px;color:#74878b}.progress-stats strong{margin-top:2px;font-size:13px;font-weight:650;color:#2d5155}.progress-note{font-size:12px;color:#5f777b;margin:12px 0 0}.progress-events{display:grid;gap:5px;max-height:160px;overflow:auto;margin-top:8px}.progress-events li,.progress-events p{font-size:12px;color:#637a7e;margin:0;padding:5px 8px;border-left:2px solid #8fc9c4;background:#ffffff9c}.progress-summary-wrap{margin-top:12px;padding-top:8px;border-top:1px solid #dcebea}.progress-summary-wrap summary{font-size:12px;color:#527074;cursor:pointer}.progress-summary-wrap pre{max-height:200px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.55 var(--mono);color:#53676b}.artifact-panel{border-top:1px solid var(--line)}.artifact-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:15px 20px}.artifact-title-block{min-width:0}.artifact-head h2{margin:0;font-size:14px;font-weight:650;overflow-wrap:anywhere}.artifact-head p{margin:4px 0 0;color:#718589;font-size:12px;overflow-wrap:anywhere}.artifact-actions{flex-wrap:wrap}.artifact-head .button{min-height:32px;padding:0 12px;font-size:12px}.artifact-notes{margin:0 20px 12px;padding:9px 12px;border-radius:6px;background:#f3f8f7;color:#62797c;font-size:12px;line-height:1.5}.artifact-notes p{margin:3px 0}.artifact-tabs{display:flex;gap:3px;padding:0 20px;border-bottom:1px solid var(--line);overflow:auto}.artifact-tabs button{flex:0 0 auto;padding:9px 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:#72868a;font-size:12px;cursor:pointer}.artifact-tabs button.selected{border-bottom-color:var(--teal);color:#176e71}.artifact-content{min-height:320px;padding:14px 20px}.file-list{display:grid;gap:7px}.file-item{display:flex;justify-content:space-between;gap:12px;padding:12px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;text-align:left;cursor:pointer}.file-item:hover{border-color:#9dcfca;background:#f8fcfb}.file-item strong{font-size:12px;color:#40585c}.file-item span{font-size:12px;color:#72868a}.code-view{max-height:620px;overflow:auto;margin:0;padding:14px;border:1px solid var(--line);border-radius:6px;background:#f8fafa;color:#344c50;font:12px/1.65 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere}.preview-shell{min-width:0;background:#fff}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;color:#63797d;font-size:12px}.preview-toolbar>div{display:flex;gap:7px}.preview-toolbar .button{min-height:31px}#artifact-frame{display:block;width:100%;height:min(68vh,760px);min-height:480px;border:1px solid var(--line);border-radius:6px;background:#fff}.run-error-text{margin:0 20px 15px;padding:12px;border:1px solid #f0d9d5;border-radius:6px;background:#fff8f6;color:#9e4d3c;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.muted{margin:8px 0;color:#718589;font-size:12px}.empty-workspace{min-height:550px;display:grid;align-content:center;justify-items:center;padding:30px;text-align:center}.empty-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e5f3f2;color:#128286;font:24px var(--mono)}.empty-workspace h2{margin:14px 0 5px;font-size:16px}.empty-workspace p{max-width:340px;margin:0;color:#718589;font-size:12px}.empty-nav-button{display:none;margin-top:14px}.page-foot{display:flex;justify-content:space-between;gap:15px;padding:14px 3px 22px;color:#7b8c8f;font-size:12px}.foot-divider{color:#b6c3c5;padding:0 4px}
.field-label{margin:14px 0 6px}.text-input,textarea,select,.token-row input{font:inherit;color:var(--ink);border:1px solid #d8e2e3;border-radius:6px;background:#fff;outline:none}.text-input{display:block;width:100%;height:38px;padding:0 12px;font-size:12px}.dialog-body textarea{display:block;width:100%;resize:vertical;padding:9px 12px;font-size:12px;line-height:1.6}.dialog-body>select{width:100%;height:38px;padding:0 9px;font-size:12px}.text-input:focus,textarea:focus,select:focus,.token-row input:focus{border-color:#69b7b2;box-shadow:0 0 0 3px #e3f4f2}.file-picker{display:flex;align-items:center;gap:9px;margin:12px 0 0;color:#526b70;font-size:12px;cursor:pointer}.file-picker input{max-width:230px;font-size:12px}.token-row{display:flex;gap:8px}.token-row input{flex:1;min-width:0;height:38px;padding:0 12px;font-size:12px}.credentials .field-label{margin-top:14px}.credentials .field-help{max-width:720px}.section-heading h2,.workspace-heading h1,.artifact-head h2,.empty-workspace h2{letter-spacing:-.2px}.app-dialog{width:min(600px,calc(100vw - 32px));max-height:min(88vh,850px);padding:0;border:1px solid #d6e1e2;border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 24px 80px #13323833;overflow:auto}.app-dialog::backdrop{background:#18333875;backdrop-filter:blur(2px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0;padding:20px 22px 15px;border-bottom:1px solid #e6eded}.dialog-heading h2{font-size:19px;letter-spacing:-.3px;margin:4px 0 0}.dialog-heading p{font-size:12px;color:#718589;margin:5px 0 0}.dialog-body{padding:3px 22px 18px}.dialog-body .field-label{margin-top:15px}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:13px 22px 17px;border-top:1px solid #e6eded;background:#fbfcfc}.dialog-actions-split{justify-content:space-between}.dialog-actions-split>div{display:flex;flex-wrap:wrap;gap:7px}
[hidden]{display:none!important}
@media(max-width:900px){.layout{width:calc(100% - 32px)}.workbench{grid-template-columns:250px minmax(0,1fr);gap:12px}.workbench-bar{min-height:58px}.tree-card,.task-form{padding:12px}.task-panel{padding-left:15px;padding-right:15px}.workspace-heading{padding-left:15px;padding-right:15px}.run-launch{grid-template-columns:minmax(0,1fr) auto}.launch-copy{grid-column:1/-1}.run-launch select{grid-column:1}.run-launch button{grid-column:2}}
@media(max-width:680px){.topbar{height:54px;padding:0 12px}.layout{width:calc(100% - 20px)}.topbar-actions{gap:6px}.quiet-button{padding:6px 8px;font-size:12px}.workbench-bar{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;padding:9px 0;gap:8px}.workspace-context{font-size:12px}.bar-actions{gap:5px}.bar-actions .button{flex:1;min-width:0;padding:0 6px;min-height:36px;font-size:12px}.bar-actions{justify-content:space-between;width:100%}.workbench{display:block;padding-top:12px}.navigator{display:none;position:absolute;z-index:10;top:112px;left:12px;right:12px;max-height:calc(100dvh - 124px);overflow:auto;padding:8px;background:#eef3f4;border:1px solid #d7e2e3;border-radius:9px;box-shadow:0 18px 46px #142e3433}.navigator.is-open{display:grid}.tree-list{max-height:220px}.run-workspace{min-height:520px}.workspace-heading{min-height:62px;padding:12px 12px}.workspace-heading h1{font-size:16px}.mobile-nav-toggle{display:grid}.task-panel{padding:12px}.run-launch{padding:12px;grid-template-columns:minmax(0,1fr) auto}.run-launch select{grid-column:1/-1;grid-row:2}.run-launch button{grid-column:1/-1;grid-row:3;width:100%}.launch-copy{grid-column:1/-1}.progress-panel{padding:12px}.progress-stats div{padding:7px 6px}.progress-stats span{font-size:12px}.progress-stats strong{font-size:12px}.run-list{margin-left:-2px}.run-item{flex-basis:170px}.artifact-head{padding:12px;align-items:flex-start}.artifact-actions{flex-direction:column}.artifact-head .button{min-height:30px}.run-identity{gap:5px 8px;font-size:12px}.run-identity code{font:12px var(--mono)}.artifact-tabs{padding:0 8px}.artifact-tabs button{padding:9px 8px;font-size:12px}.artifact-content{padding:12px 12px;min-height:250px}.artifact-notes{margin-left:12px;margin-right:12px}.empty-workspace{min-height:420px;padding:24px}.empty-nav-button{display:inline-flex}.page-foot{padding:12px 2px 18px;font-size:12px}.page-foot span:last-child{display:none}.dialog-heading{padding:17px 16px 13px}.dialog-body{padding:0 16px 14px}.dialog-actions{padding:12px 16px 14px}.dialog-actions-split{align-items:flex-end}.dialog-actions-split>div{flex-direction:column}.app-dialog{max-height:92dvh}}
@media(max-width:390px){.brand{font-size:12px}.brand-mark{width:25px;height:25px}.quiet-button{font-size:12px;padding:6px}.workspace-context{gap:5px}.bar-actions .button{font-size:12px;padding:0 6px}.workspace-heading h1{font-size:15px}.progress-stats span{font-size:12px}.progress-stats strong{font-size:12px}.artifact-actions{gap:5px}.artifact-head .button{font-size:12px;padding:0 7px}}
.preview-shell:fullscreen,.preview-shell.expanded{display:flex;flex-direction:column;width:100%;height:100%;padding:12px;background:#fff}.preview-shell.expanded{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh}.preview-shell:fullscreen #artifact-frame,.preview-shell.expanded #artifact-frame{flex:1;min-height:0;height:0}.preview-shell:fullscreen .preview-toolbar,.preview-shell.expanded .preview-toolbar{flex:none}body.preview-expanded{overflow:hidden}.run-identity{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;margin-top:7px;font-size:12px;color:#718589}.run-identity code{font:12px var(--mono);overflow-wrap:anywhere;user-select:all}.run-identity [role="status"]{flex-basis:100%}

.delete-confirmation{margin:0 22px 18px;padding:14px;border:1px solid #efd3cf;border-radius:7px;background:#fff8f6}.delete-confirmation h3{margin:0;font-size:15px;color:#713d37}.delete-confirmation>p{margin:5px 0 12px;color:#84554e;font-size:12px}.delete-confirmation .field-label{margin:0 0 6px}.delete-confirmation .dialog-actions{margin:13px -14px -14px;padding:11px 14px 13px;border-top:1px solid #efd3cf;background:#fffdfd}
@media(max-width:680px){.delete-confirmation{margin:0 16px 14px;padding:12px}.delete-confirmation .dialog-actions{margin:12px -12px -12px;padding:10px 12px 12px}.workbench-bar .workspace-context{width:100%;overflow:hidden}.bar-actions{gap:6px}.bar-actions .button{padding:0 5px;font-size:12px}}

.workspace-context{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.bar-actions{flex-shrink:0}.progress-top{cursor:pointer;list-style:none}.progress-top::-webkit-details-marker{display:none}.progress-top::after{content:"⌄";color:var(--muted)}.progress-panel[open] .progress-top::after{transform:rotate(180deg)}.progress-top>div{flex:1}.progress-events li{display:flex;gap:12px;list-style:none}.progress-events time{flex-shrink:0;font-variant-numeric:tabular-nums}.progress-panel[data-phase="failed"] .progress-live{background:#fff0ed;color:#a24f40}.tree-item:focus-visible,.run-item:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.navigator .card,.section-heading>div,.workspace-heading>div{min-width:0}.navigator .tree-list{grid-template-columns:minmax(0,1fr)}.tree-item{min-width:0}.tree-item strong{width:100%}.section-heading h2{overflow-wrap:anywhere}#experiment-list{max-height:clamp(160px,34vh,380px)}#task-list{max-height:clamp(120px,28vh,300px)}.run-launch .field-label{margin:0 0 4px}.run-launch .launch-hint{display:none}.run-item{padding:9px 10px}.run-item-meta{font-size:12px}.progress-live{flex-shrink:0}
@media(max-width:680px){.run-launch{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}.launch-copy{grid-column:1/-1}.run-launch select{grid-column:1;grid-row:2;padding:0 7px}.run-launch button{grid-column:2;grid-row:2;width:auto}.navigator{top:142px;max-height:calc(100dvh - 152px)}.progress-stats{flex-wrap:wrap}.progress-events li{gap:8px}}

@media(max-width:680px){.bar-actions #navigation-toggle{flex:0 0 32px;width:32px;min-height:33px;padding:0;font-size:20px;background:#fff;border:1px solid var(--line)}}

.rerun-help{margin:0 20px 12px}.artifact-actions{justify-content:flex-end}.artifact-head>.artifact-actions{max-width:50%}@media(max-width:680px){.rerun-help{margin:0 12px 12px}}
.codex-followup{margin-top:16px;padding:13px;border:1px solid #e3ebdd;border-radius:8px;background:#fbfdf9}.codex-followup h3,.codex-progress h3{margin:0;font-size:11px;font-weight:600;color:#526057}.codex-followup textarea{display:block;width:100%;resize:vertical;padding:10px 11px;font:inherit;font-size:11px;line-height:1.6;color:var(--ink);border:1px solid #e2e8e1;border-radius:7px;background:#fff}.codex-progress{margin:14px 20px 16px;padding:12px;border:1px solid #e7ece5;border-radius:8px;background:#fbfcfa}.codex-events{display:grid;gap:8px;max-height:250px;overflow:auto;margin:10px 0 0;padding:0}.codex-event-meta{font-size:9px;color:#89958b}
@media(max-width:520px){.codex-progress{margin-left:12px;margin-right:12px}}
.run-launch{grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) auto;align-items:end}.run-launch .launch-copy{grid-column:1/-1}.run-launch>select,.model-launch select{width:100%;min-width:0}.model-launch{min-width:0}.model-launch .field-label{display:block;margin:0 0 4px;font-size:11px;color:#61767a}.runner-model-retry{display:block;margin:4px 0 0;padding:2px 0;font-size:11px}
.research-budget{margin-top:9px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:#fff}.research-budget summary{cursor:pointer;font-size:12px;color:#465d61}.research-budget summary label{cursor:pointer}.research-budget-fields{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:8px;align-items:end}.research-budget-fields .field-help{grid-column:1/-1;margin:0}.research-budget-fields label{display:grid;gap:3px;font-size:11px;color:#61767a}.research-budget-fields input{width:100%;min-width:0;height:32px;padding:0 7px;border:1px solid var(--line);border-radius:5px}
@media(max-width:900px){.run-launch{grid-template-columns:minmax(0,1fr) auto}.run-launch .launch-copy{grid-column:1/-1}.run-launch>select{grid-column:1}.model-launch{grid-column:1;grid-row:auto}.run-launch button{grid-column:2;grid-row:2 / span 2}}
@media(max-width:680px){.run-launch{grid-template-columns:minmax(0,1fr)}.run-launch>select,.model-launch,.run-launch button{grid-column:1;grid-row:auto}.run-launch button{width:100%}}
.codex-events{max-height:420px;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;padding:2px 3px 2px 0}.transcript-event{min-width:0;padding:11px 12px;border:1px solid #e8ede6;border-radius:9px;background:#fff;color:#35433a}.transcript-assistant{border-color:#e4ebdf;background:#fcfdfb}.transcript-user{justify-self:end;width:min(92%,720px);background:#f2f6ee}.transcript-tool{padding:0;border:0;border-radius:0;background:transparent}.transcript-phase{padding:8px 11px;background:#f7f9f5;color:#66756a}.transcript-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.transcript-role{font-size:10px;font-weight:650;color:#526b48}.transcript-tool .transcript-role{color:#626d65}.transcript-body{font-size:13.5px;line-height:1.65;overflow-wrap:anywhere}.transcript-body p,.transcript-tool-summary{margin:5px 0}.transcript-body h2,.transcript-body h3,.transcript-body h4,.transcript-body h5{margin:9px 0 4px;font-size:14px;line-height:1.4}.transcript-body ul{margin:4px 0;padding-left:20px}.transcript-body a{color:#3b7655;text-decoration:underline}.transcript-body code,.transcript-code{font:11px/1.55 var(--mono);background:#f1f4ef;border-radius:4px}.transcript-body code{padding:1px 4px}.transcript-code,.transcript-tool-content pre{max-width:100%;overflow:auto;margin:7px 0 2px;padding:9px 10px;white-space:pre-wrap;overflow-wrap:anywhere;color:#344239}.transcript-tool-details{margin:0;min-width:0}.transcript-tool-details summary{display:flex;align-items:center;gap:8px;min-height:32px;padding:5px 8px;border:1px solid #e3e9e2;border-radius:5px;background:#f8faf7;cursor:pointer;color:#46564a;font:10px/1.4 var(--mono);user-select:none;list-style:none}.transcript-tool-details summary::-webkit-details-marker{display:none}.transcript-tool-details summary::before{content:"▸";color:#78847a;font:11px/1 sans-serif;flex:none}.transcript-tool-details[open] summary::before{content:"▾"}.transcript-tool-glyph{width:14px;flex:none;text-align:center;font:700 12px/1 sans-serif}.transcript-tool-glyph.is-running{color:#566b73}.transcript-tool-glyph.is-completed{color:#397550}.transcript-tool-glyph.is-failed,.transcript-tool-status.is-failed{color:#a22e2e}.transcript-tool-glyph.is-cancelled{color:#6e7270}.transcript-tool-glyph.is-unknown{color:#79827b}.transcript-tool-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transcript-tool-status{flex:none;color:#6b766d;font:9px/1.3 var(--sans, sans-serif)}.transcript-tool-status.is-failed{font-weight:700}.transcript-tool-status.is-unknown{color:#7a837b}.transcript-tool-content section{margin-top:8px}.transcript-tool-content h5{margin:0 0 4px;color:#748076;font-size:9px;font-weight:600}.transcript-tool-content pre{max-height:220px;margin:0;border:1px solid #edf0eb;border-radius:5px;background:#fff;font-size:9px}.transcript-tool-summary{font-size:10px;color:#657269}.transcript-phase .transcript-header{margin:0}.transcript-phase .transcript-body p{margin:0}
@media(max-width:520px){.transcript-event.transcript-tool{padding:0}.transcript-tool-details summary{align-items:flex-start;min-height:0;line-height:1.35}.transcript-tool-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden}.codex-events{max-height:360px}.transcript-event{padding:9px 10px}.transcript-user{width:96%}.transcript-header{align-items:flex-start}.transcript-tool-content pre{max-height:180px}}
.app-dialog.archive-dialog{width:min(1040px,calc(100vw - 32px));max-width:none;max-height:92dvh}.archive-body{padding:0 20px 20px;min-width:0}.archive-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 12px;border-bottom:1px solid var(--line)}.archive-breadcrumb{display:flex;align-items:center;min-width:0;overflow:auto;white-space:nowrap}.archive-table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:7px}.archive-table{width:100%;border-collapse:collapse;min-width:620px;background:#fff}.archive-table th,.archive-table td{padding:9px 11px;border-bottom:1px solid #edf1f1;text-align:left;font-size:12px;white-space:nowrap}.archive-table th{background:#f7f9f9;color:#6b7e81;font-weight:600}.archive-table tr:last-child td{border-bottom:0}.archive-name{max-width:340px;overflow:hidden;text-overflow:ellipsis;border:0;background:transparent;color:#176e71;text-align:left;font:inherit;cursor:pointer}.archive-name:disabled{color:#40585c;cursor:default}.archive-table .text-button{margin-right:10px}.archive-preview-panel{margin-top:14px;border:1px solid var(--line);border-radius:7px;overflow:hidden}.archive-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:#f7f9f9}.archive-preview-heading>div{display:flex;gap:7px}.archive-preview-content{max-height:60vh;overflow:auto;padding:12px;background:#fff}.archive-preview-content pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 var(--mono);color:#344c50}.archive-preview-content img{display:block;max-width:100%;max-height:55vh;margin:auto;object-fit:contain}.archive-preview-content iframe{display:block;width:100%;height:55vh;border:1px solid var(--line);background:#fff}.archive-preview-content .muted{margin:0 0 8px}.archive-table td:nth-child(1){max-width:350px;overflow:hidden;text-overflow:ellipsis}@media(max-width:680px){.archive-body{padding:0 12px 14px}.archive-toolbar{align-items:flex-start;flex-direction:column}.archive-toolbar .artifact-actions{width:100%;justify-content:flex-end;flex-direction:row}.archive-preview-heading{align-items:flex-start;flex-direction:column}.archive-preview-heading>div{width:100%}.archive-preview-heading .button{flex:1}.archive-preview-content{max-height:55vh}}

@media(max-width:680px){.archive-table{min-width:0;table-layout:fixed}.archive-table th:nth-child(2),.archive-table td:nth-child(2),.archive-table th:nth-child(3),.archive-table td:nth-child(3),.archive-table th:nth-child(4),.archive-table td:nth-child(4){display:none}.archive-table th:last-child{width:106px}.archive-name{max-width:100%}.archive-table td:last-child{padding-left:4px;padding-right:4px}}

.preview-toolbar,.preview-actions{flex-wrap:wrap;gap:8px}.preview-actions{display:flex;align-items:center}.preview-actions [aria-pressed=true]{background:var(--teal-pale);border-color:var(--teal);color:var(--teal-dark)}
@media(max-width:900px){.preview-toolbar{align-items:flex-start}.preview-actions{justify-content:flex-start}}

.preview-shell:fullscreen #linked-preview,.preview-shell.expanded #linked-preview{flex:1;min-height:0;height:0;overflow:auto}

#linked-preview{--alpha-host-height:min(68vh,760px);min-height:560px}
@media(max-width:760px){#linked-preview{min-height:0}}

.artifact-locations{padding:14px 20px;border-bottom:1px solid var(--line);min-width:0}.artifact-locations-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.artifact-locations h3{font-size:13px;margin:0;font-weight:600}.artifact-location-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.artifact-location-row details{min-width:0;flex:1}.artifact-location-row summary{cursor:pointer;overflow-wrap:anywhere}.artifact-location-row code{font-family:var(--mono);font-size:12px;color:var(--teal-dark);white-space:normal}.artifact-location-row summary span{font-size:12px;color:var(--muted);margin-left:10px;white-space:nowrap}.artifact-location-row ul{padding-left:20px;font-size:12px;overflow-wrap:anywhere}.artifact-location-actions{display:flex;gap:12px;flex-shrink:0}.artifact-location-status,.artifact-locations p{font-size:12px;margin:8px 0 0}@media(max-width:600px){.artifact-locations{padding:12px}.artifact-location-row{flex-direction:column;gap:6px}.artifact-location-actions{align-self:flex-end}}

/* Resources is a full page, with the existing credentials panel still reachable. */
.resources-view .layout > :not(#resources-page):not(#credentials-panel) { display: none; }
.resources-page { grid-column: 1 / -1; min-width: 0; }
.resources-heading, .resources-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.resources-heading h1 { margin: 4px 0; font-size: 26px; }
.resources-heading p { margin: 0; }
.resources-columns { display: grid; grid-template-columns: minmax(260px, 32%) minmax(0, 1fr); border: 1px solid var(--line, #d8e4e6); border-radius: 12px; background: white; overflow: hidden; min-height: 65vh; }
.resources-tree-panel { padding: 18px 10px; border-right: 1px solid #d8e4e6; max-height: 75vh; overflow: auto; }
.resource-root { font-weight: 650; }
.resources-tree-panel ul { list-style: none; padding-left: 18px; margin: 2px 0; }
.resources-tree-panel > #resources-tree > ul { padding-left: 0; }
.resources-tree-panel button, .resources-tree-panel summary { padding: 7px 8px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; border-radius: 5px; font: inherit; font-size: 13px; overflow-wrap: anywhere; }
.resources-tree-panel summary { display: list-item; margin-left: 17px; }
.resources-tree-panel button:hover, .resources-tree-panel summary:hover, .resources-tree-panel [aria-current="true"] { background: #e9f5f4; color: #007e85; }
.resource-note { font-size: 11px; color: #71888d; margin-left: 6px; }
.resources-detail { min-width: 0; padding: 22px; }
.resources-detail-heading code { overflow-wrap: anywhere; font-size: 12px; color: #007e85; }
.resources-detail-heading button { flex-shrink: 0; }
#resources-status { font-size: 13px; color: #71888d; }
#resources-content pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; background: #f7fafb; padding: 18px; border-radius: 8px; max-height: 65vh; overflow: auto; }
#resources-content iframe { width: 100%; height: 65vh; border: 1px solid #d8e4e6; border-radius: 8px; background: white; }
#resources-content img { max-width: 100%; max-height: 65vh; object-fit: contain; }
.resource-directory { list-style: none; padding: 0; margin: 0; }
.resource-directory button { display: flex; justify-content: space-between; gap: 14px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #e7edef; background: none; text-align: left; cursor: pointer; color: inherit; }
.resource-directory button span:first-child { overflow-wrap: anywhere; }
.resource-directory button:hover { color: #007e85; }
@media (max-width: 700px) {
  .resources-heading { align-items: flex-start; flex-wrap: wrap; }
  .resources-columns { grid-template-columns: minmax(0, 1fr); }
  .resources-tree-panel { max-height: 35vh; border-right: 0; border-bottom: 1px solid #d8e4e6; }
  .resources-detail { padding: 16px; }
  .resources-detail-heading { align-items: flex-start; }
}
.resources-heading { padding-top: 20px; }
@media (max-width: 700px) {
  .topbar .brand > span:last-child { display: none; }
  .topbar-actions { gap: 4px; }
  .resources-view .topbar { height: auto; min-height: 58px; flex-wrap: wrap; gap: 10px; padding: 12px; }
  .resources-view .brand { white-space: nowrap; }
  .resources-view .brand > span:last-child { display: inline; }
  .resources-view .topbar-actions { flex-wrap: wrap; }
  .resources-heading .artifact-actions { flex-direction: row; }
}
.research-agent-list{margin:12px 0;border-bottom:1px solid var(--line);padding-bottom:12px}.research-agent-list h4{margin:0;font-size:11px;font-weight:600;color:#526057}.research-agent-list ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;margin:8px 0 0;padding:0;list-style:none}.research-agent-list li{min-width:0;border:1px solid #dde6da;border-radius:8px;background:#fff;overflow:hidden}.research-agent-card{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;width:100%;padding:12px;border:0;background:transparent;text-align:left;color:var(--ink);cursor:pointer;font-family:inherit;font-size:12px;line-height:1.5}.research-agent-card:hover{background:#f1f6ee}.research-agent-card:focus-visible{outline:2px solid #528047;outline-offset:-3px}.research-agent-card strong{width:100%;font-size:13px;overflow-wrap:anywhere}.research-agent-card span{color:var(--muted);font-size:11px}.research-agent-card .research-agent-enter{margin-left:auto;color:#386a45}.research-agent-error{margin:0;padding:0 12px 12px;color:#945140;font-size:12px;overflow-wrap:anywhere}.research-agent-list li[data-status="running"]{border-left:3px solid #699463}.research-agent-list li[data-status="failed"]{border-left:3px solid #b46f55}.research-detail-dialog{width:min(920px,calc(100vw - 24px));max-width:none}.research-detail-dialog .dialog-heading{gap:12px;position:sticky;top:0;background:var(--paper);z-index:1}.research-detail-dialog h2{overflow-wrap:anywhere}.research-detail-dialog .dialog-body{min-width:0}.research-detail-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto}.research-detail-dialog h3{font-size:13px;margin-top:20px}.research-detail-dialog summary{cursor:pointer}.research-detail-dialog .codex-events{max-height:45vh}.research-agent-list .subheading span{font-size:11px;color:var(--muted)}
@media(max-width:520px){.research-agent-list ul{grid-template-columns:minmax(0,1fr)}.research-detail-dialog .dialog-heading{align-items:flex-start;flex-wrap:wrap}}
.research-file-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.research-file-toolbar strong{min-width:0;overflow-wrap:anywhere;font:12px var(--mono)}.research-file-toolbar [role="group"]{display:flex;gap:6px;flex:none}.research-file-toolbar [aria-pressed="true"],#research-detail-files [aria-pressed="true"]{color:var(--teal-dark);background:var(--teal-pale);border-color:var(--teal)}#research-detail-preview{min-width:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}#research-detail-preview iframe{display:block;width:100%;height:clamp(320px,65vh,760px);border:0;background:#fff}@media(max-width:520px){.research-file-toolbar{align-items:flex-start;flex-wrap:wrap}}

.run-draft{margin:16px 20px;padding:16px;border:1px solid var(--line);border-radius:8px;min-width:0}.run-draft summary{cursor:pointer}.run-draft .file-list{padding:12px 0}#draft-preview iframe{display:block;width:100%;height:clamp(320px,65vh,760px);border:1px solid var(--line);background:white}#draft-files [aria-pressed="true"]{background:var(--teal-pale);border-color:var(--teal)}

.scenario-tools { border: 1px solid var(--border, #ddd); border-radius: 8px; padding: 12px; margin: 16px 0; min-width: 0; }
.scenario-tools .tool-option { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; overflow-wrap: anywhere; }
.scenario-tools input { flex-shrink: 0; }

.alpha-review-dialog { width:min(1200px,calc(100vw - 24px)); max-width:1200px; }
.alpha-review-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.alpha-review-toolbar input { width:200px; }
.alpha-review-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:20px; }
#alpha-review-list { max-height:65vh; overflow:auto; }
.alpha-review-item { display:flex; flex-direction:column; gap:6px; width:100%; padding:12px; text-align:left; border:1px solid #e2e8f0; border-radius:10px; background:#fff; margin-bottom:8px; cursor:pointer; }
.alpha-review-item[aria-current="true"] { border-color:#2563eb; background:#eff6ff; }
.alpha-review-item span { color:#64748b; font-size:12px; }
#alpha-review-detail { min-width:0; }
.alpha-review-source,.alpha-review-history { overflow-wrap:anywhere; font-size:12px; }
.alpha-review-preview { margin:12px 0; }
.alpha-review-preview iframe { width:100%; height:420px; border:1px solid #e2e8f0; border-radius:10px; background:white; }
#alpha-review-reason { width:100%; margin-bottom:12px; }
.alpha-review-history { padding-left:20px; line-height:1.7; color:#64748b; }
@media(max-width:700px) {
  .alpha-review-layout { grid-template-columns:minmax(0,1fr); }
  #alpha-review-list { max-height:220px; }
  .alpha-review-toolbar input { width:100%; }
  .topbar-actions { flex-wrap:wrap; }
}
