/* Neutral Control room and Focus presentation. Existing chat behavior is shared. */
:root{--bg:#fff;--sidebar:#f7f7f7;--surface-2:#f3f3f3;--surface-3:#eaeaea;--border:#e7e7e7;--border-strong:#d2d2d2;--text:#252525;--muted:#737373;--faint:#858585;--accent:#292929;--accent-weak:#ededed;--on-accent:#fff;--user-bg:#f2f2f2;--shadow:0 12px 50px #00000014;--composer-shadow:none}
html[data-theme=dark]{--bg:#212121;--sidebar:#181818;--surface-2:#2c2c2c;--surface-3:#393939;--border:#383838;--border-strong:#515151;--text:#ececec;--muted:#aaa;--faint:#999;--accent:#e8e8e8;--accent-weak:#343434;--on-accent:#202020;--user-bg:#303030;--shadow:0 12px 50px #0004;--composer-shadow:none}
body{display:block;font-size:14px;background:var(--sidebar)}
button,input,select,textarea{font-family:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}
[hidden]{display:none!important}
#controlRoom{height:100dvh;overflow:auto;background:var(--sidebar);scrollbar-width:thin}
.cr-top{height:66px;padding:0 30px;display:flex;align-items:center;gap:12px;background:var(--bg);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:2}
.cr-logo{display:flex;align-items:center;gap:12px;background:transparent;color:var(--text);border:0;font-size:20px;letter-spacing:-1px;font-weight:650;padding:6px}.cr-logo span{font-size:15px;letter-spacing:-.3px}.cr-top nav{display:flex;align-items:center;margin-left:35px;gap:8px}.cr-top nav button{border:0;background:transparent;color:var(--muted);font-size:13px;padding:9px 14px;border-radius:8px}.cr-top nav button[aria-current=page]{background:var(--surface-2);color:var(--text);font-weight:550}.sp{flex:1;min-width:0}
.cr-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;background:transparent;color:var(--muted);border-radius:8px;flex:none;padding:7px}.cr-icon:hover{background:var(--surface-2);color:var(--text)}.cr-icon .ic{width:17px;height:17px;stroke-width:1.7}.cr-connection{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px;margin-right:10px}.cr-connection:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--amber)}.cr-connection.connected:before{background:var(--ok)}
.cr-page{padding:38px 42px 50px;max-width:1580px;margin:auto}.cr-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.cr-eyebrow{font-size:10px;font-weight:600;letter-spacing:1.5px;color:var(--faint);margin-bottom:10px}.cr-heading h1{font-size:30px;letter-spacing:-1px;font-weight:600;margin:0;line-height:1.25}.cr-heading p{color:var(--muted);font-size:13px;margin:9px 0 0}.cr-primary,.cr-secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;font-size:12px;font-weight:500;padding:9px 13px;min-height:36px;white-space:nowrap}.cr-primary{border:1px solid var(--accent);background:var(--accent);color:var(--on-accent)}.cr-secondary{border:1px solid var(--border);background:var(--bg);color:var(--text)}.cr-primary .ic,.cr-secondary .ic{width:15px;height:15px}.cr-secondary:hover{background:var(--surface-2)}.cr-actions{display:flex;gap:9px;flex-wrap:wrap}
.cr-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:30px}.cr-stats>div{padding:19px 21px;border:1px solid var(--border);border-radius:11px;background:var(--bg);display:flex;flex-direction:column;gap:6px}.cr-stats span{font-size:11px;color:var(--muted)}.cr-stats strong{font-size:29px;font-weight:550;line-height:1.3;letter-spacing:-1px}.cr-stats small{font-size:10px;color:var(--faint)}
.cr-tools{display:flex;align-items:center;gap:14px;margin-bottom:24px}.cr-tabs{display:flex;gap:5px}.cr-tabs button{background:transparent;border:0;color:var(--muted);padding:8px 12px;border-radius:7px;font-size:12px}.cr-tabs .selected{background:var(--bg);color:var(--text);box-shadow:0 1px 3px #0000000a}.cr-search{margin-left:auto;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:8px;padding:8px 11px;background:var(--bg);color:var(--faint)}.cr-search .ic{width:15px;height:15px}.cr-search input{background:transparent;color:var(--text);border:0;outline:0;min-width:0;width:185px;font-size:12px}.cr-search:focus-within{outline:2px solid var(--border-strong)}.cr-tools select{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;max-width:190px;padding:8px 10px;font-size:12px}
.cr-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}.cr-lane{min-width:0}.cr-lane>header{display:flex;align-items:center;gap:8px;padding:0 3px 14px}.cr-lane h2{font-size:12px;font-weight:550;margin:0}.cr-lane>header>span:last-child{font-size:10px;background:var(--surface-3);color:var(--muted);border-radius:5px;min-width:19px;padding:0 5px;text-align:center}.cr-lane-dot{width:6px;height:6px;border-radius:50%;background:var(--muted)}.dot-0{background:var(--ok)}.dot-1{background:var(--amber)}.cr-lane-cards{display:flex;flex-direction:column;gap:12px}.cr-task{display:block;width:100%;text-align:left;border:1px solid var(--border);border-radius:12px;padding:19px;background:var(--bg);color:var(--text)}.cr-task:hover{border-color:var(--border-strong);box-shadow:0 4px 14px #00000005}.cr-task-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--faint)}.cr-task-top>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cr-task-top .ic{width:15px;height:15px}.cr-unread{font-size:9px;font-weight:600;color:var(--link)}.cr-task h3{font-size:14px;font-weight:550;margin:12px 0 9px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cr-task p{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cr-task footer{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--faint)}.cr-status{display:flex;align-items:center;gap:6px}.cr-status i{width:5px;height:5px;border-radius:50%;background:currentColor}.cr-status.running,.cr-status.finished{color:var(--ok)}.cr-status.background{color:var(--bgwork)}.cr-status.question,.cr-status.parked{color:var(--amber)}.cr-status.failed{color:var(--err)}.cr-empty{padding:28px 15px;color:var(--faint);font-size:12px;text-align:center;border-radius:10px;border:1px dashed var(--border)}
/* One chat surface changes presentation; transcript/composer nodes stay mounted. */
#conversationSurface{position:fixed;display:flex;flex-direction:row;inset:66px 0 0 auto;width:min(600px,100%);background:var(--bg);border-left:1px solid var(--border);box-shadow:-12px 0 40px #00000009;z-index:10;min-height:0;min-width:0;overflow:hidden}.focus-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}.focus-main>.topbar{height:65px;min-height:65px;padding:10px 18px;gap:7px;border-bottom:1px solid var(--border)}.project-heading{min-width:0;flex:1}.project-heading .title{font-size:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-heading .cwd{font-size:10px;max-width:220px}.focus-main .topbar>.sp{display:none}.focus-main .topbar>.ico{display:none!important}.focus-main .topbar>#moreBtn,.focus-main .topbar>#mcpApprovalsBtn:not([hidden]),.focus-main .topbar>#subagentsBtn:not([hidden]),.focus-main .topbar>#wfBtn:not([hidden]){display:inline-flex!important}.focus-main .topbar #dot{display:none}.focus-main .topbar .cr-icon{width:30px;height:30px;padding:5px}.focus-main .thread{max-width:820px;padding:30px 28px 50px;margin:auto;width:100%}.focus-main .msg{font-size:14px;line-height:1.8}.focus-main .msg.user{background:var(--user-bg);border-radius:16px}.focus-main .composer-wrap{padding:12px 20px 16px;background:var(--bg);width:100%;max-width:820px;align-self:center}.focus-main .composer{background:var(--surface-2);border:1px solid transparent;box-shadow:none;border-radius:18px;padding:12px 14px}.focus-main .composer:focus-within{border-color:var(--border-strong);box-shadow:none}.focus-main #prompt{font-size:14px;min-height:50px}.focus-main .bar{gap:5px}.focus-main .selects{min-width:0;flex:0 1 auto;gap:3px;flex-wrap:wrap}.focus-main .select{min-width:0}.focus-main .select select{max-width:146px;font-size:11px;padding-right:18px}.focus-main .send{min-width:32px;min-height:32px;width:32px;border-radius:50%;padding:6px;flex:none}.focus-main .composer-hint{font-size:9px;margin-top:9px}.focus-main .stream-status{left:50%;transform:translateX(-50%)}#focusNav{display:none}
body[data-chat-mode=page] #conversationSurface{inset:0;width:100%;border:0;box-shadow:none}body[data-chat-mode=page] #focusNav{width:64px;flex:none;display:flex;flex-direction:column;align-items:center;padding:20px 0;gap:16px;background:var(--bg);border-right:1px solid var(--border)}#focusNav .cr-logo{font-size:18px}body[data-chat-mode=page] .focus-main>.topbar{border:0;padding:12px 28px}body[data-chat-mode=page] .focus-main .thread{padding-top:45px}body[data-chat-mode=page] .focus-main .msg{font-size:15px}body[data-chat-mode=page] .focus-main .composer-wrap{padding-bottom:20px}

#projectDrawer{position:fixed;inset:0 auto 0 0;width:290px;z-index:35;transform:translateX(-100%);transition:transform .18s;box-shadow:var(--shadow)}body.nav-open #projectDrawer{transform:translateX(0)}#navBackdrop{position:fixed;inset:0;z-index:34;background:#0005;display:none}body.nav-open #navBackdrop{display:block}#projectDrawer .brand{padding:20px}#projectDrawer .brand .mark{background:var(--text)}
.backdrop{z-index:50}.pop{z-index:51;border-radius:14px;box-shadow:var(--shadow)}#authGate{z-index:200}#crToast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:190;background:var(--accent);color:var(--on-accent);padding:12px 18px;max-width:calc(100% - 32px);border-radius:10px;box-shadow:var(--shadow);font-size:13px}
.cr-dialog{padding:26px;max-width:510px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:18px;box-shadow:0 20px 80px #0003}.cr-dialog::backdrop{background:#1117;backdrop-filter:blur(2px)}.cr-dialog header{display:flex;justify-content:space-between;align-items:center;gap:15px}.cr-dialog h2{font-size:21px;letter-spacing:-.5px;font-weight:550;margin:0}.cr-dialog p,.settings-surface p{font-size:12px;color:var(--muted);line-height:1.7}.cr-dialog fieldset,.settings-surface fieldset{border:0;padding:0;margin:25px 0;min-width:0}.cr-dialog legend,.settings-surface legend{font-size:12px;font-weight:550;margin-bottom:12px}.cr-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cr-options label{position:relative;cursor:pointer}.cr-options input{position:absolute;right:14px;top:14px;accent-color:var(--text)}.cr-options label>span{display:flex;flex-direction:column;gap:7px;padding:16px 12px;border:1px solid var(--border);border-radius:10px;min-height:122px}.cr-options input:checked+span{background:var(--surface-2);border-color:var(--text)}.cr-options input:focus-visible+span{outline:2px solid var(--link)}.cr-options strong{font-size:12px;font-weight:550}.cr-options small{font-size:10px;color:var(--muted)}.cr-dialog footer,.settings-surface footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:18px;gap:14px}.cr-dialog footer small,.settings-surface footer small{font-size:10px;color:var(--muted)}.cr-dialog-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.cr-note{font-size:11px;color:var(--muted);line-height:1.7}.cr-charts{display:grid;grid-template-columns:1.65fr 1fr;gap:20px;margin-bottom:28px}.cr-chart-card{border:1px solid var(--border);background:var(--bg);border-radius:12px;padding:23px;min-width:0}.cr-chart-card>header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:22px}.cr-chart-card h2,.cr-section-head h2{font-size:14px;font-weight:550;margin:0}.cr-chart-card>header>span{font-size:10px;color:var(--muted)}.cr-chart{height:165px;display:flex;align-items:stretch;gap:8px;border-bottom:1px solid var(--border);margin-bottom:30px}.cr-day{background:transparent;border:0;padding:0 4px;flex:1;position:relative;min-width:0;display:flex;align-items:center;justify-content:flex-end;flex-direction:column}.cr-day:hover{background:var(--surface-2)}.cr-day small{position:absolute;top:100%;margin-top:7px;font-size:9px;color:var(--faint)}.cr-bar-stack{display:flex;flex-direction:column;width:100%;max-width:38px;min-height:2px;border-radius:4px 4px 0 0;overflow:hidden;background:var(--surface-2)}.cr-bar-stack .codex{background:var(--accent)}.cr-bar-stack .claude{background:#aaa}.cr-chart-caption{font-size:10px;color:var(--muted)}.cr-model{margin-bottom:18px}.cr-model>div:first-child,.cr-quota>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;margin-bottom:7px}.cr-model strong,.cr-quota strong{font-weight:500}.cr-model span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cr-track{height:5px;background:var(--surface-2);border-radius:5px;overflow:hidden}.cr-track i{display:block;height:100%;background:var(--muted);border-radius:5px}.cr-track.high i{background:var(--amber)}.cr-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.cr-section-head>span{font-size:10px;color:var(--faint)}.cr-account-table{border:1px solid var(--border);border-radius:12px;background:var(--bg);overflow:hidden}.cr-account-head,.cr-account-row{display:grid;grid-template-columns:minmax(190px,1.25fr) minmax(85px,.65fr) minmax(220px,1.5fr) minmax(150px,.8fr);gap:20px;padding:20px;align-items:center}.cr-account-head{font-size:10px;color:var(--faint);padding:12px 20px;background:var(--bg);border-bottom:1px solid var(--border)}.cr-account-row+.cr-account-row{border-top:1px solid var(--border)}.cr-identity{display:flex;align-items:center;gap:11px;min-width:0}.cr-account-avatar{width:34px;height:34px;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;display:grid;place-items:center;flex:none;font-size:13px}.cr-identity>div{min-width:0}.cr-identity strong{display:block;font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cr-identity small{display:block;font-size:10px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}.cr-account-state{font-size:11px;color:var(--muted)}.cr-account-state.limited{color:var(--amber)}.cr-account-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.cr-account-actions button{font-size:10px;padding:6px 9px;min-height:30px}.cr-quotas{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:15px;align-items:start}.cr-quota{min-width:0}.cr-quota small,.cr-stale{font-size:9px;color:var(--faint);display:block;margin-top:5px;line-height:1.5}.cr-stale{grid-column:1/-1}.cr-routing{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:17px 20px;border:1px solid var(--border);border-radius:10px;background:var(--bg);margin-top:14px;cursor:pointer}.cr-routing strong{font-size:12px;font-weight:500;display:block}.cr-routing small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.cr-routing input{width:18px;height:18px;accent-color:var(--text);flex:none}
@media(min-width:1300px){}
@media(max-width:1050px){.cr-page{padding:28px}.cr-board{gap:14px}.cr-task{padding:15px}.cr-tools{flex-wrap:wrap}.cr-account-head{display:none}.cr-account-row{grid-template-columns:1.2fr .8fr}.cr-account-actions{align-self:end}.cr-stats>div{padding:16px}.cr-stats small{font-size:9px}}
@media(max-width:650px){.cr-top{height:58px;padding:0 12px;gap:4px}.cr-top nav{margin-left:6px;gap:0}.cr-top nav button{font-size:11px;padding:8px}.cr-logo span,.cr-connection,#crTheme{display:none}.cr-logo{font-size:18px}.cr-icon{width:30px;height:32px;padding:6px}.cr-page{padding:26px 16px}.cr-heading{gap:14px;align-items:flex-start;flex-wrap:wrap;margin-bottom:24px}.cr-heading h1{font-size:27px}.cr-heading p{font-size:12px}.cr-eyebrow{font-size:9px}.cr-primary,.cr-secondary{font-size:11px;padding:8px 11px}.cr-stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.cr-stats>div{padding:14px}.cr-stats strong{font-size:26px}.cr-stats small{font-size:9px}.cr-tools{gap:10px}.cr-tabs{width:100%;gap:3px}.cr-tabs button{font-size:11px;padding:7px 9px}.cr-search{margin:0;flex:1;min-width:0}.cr-search input{width:100%;font-size:16px}.cr-tools select{max-width:125px;font-size:12px}.cr-board{grid-template-columns:1fr;gap:23px}.cr-task{padding:18px}.cr-task h3{font-size:14px}.cr-task p{font-size:12px}#conversationSurface{inset:58px 0 0;width:100%}.focus-main>.topbar{min-height:58px;height:58px;padding:8px 10px;gap:2px}.focus-main .topbar .cr-icon{width:28px}.project-heading .title{font-size:12px}.project-heading .cwd{max-width:100px}.focus-main .thread{padding:23px 18px 35px}.focus-main .composer-wrap{padding:10px 12px 12px}.focus-main .composer{padding:10px;border-radius:16px}.focus-main #prompt{font-size:16px;min-height:42px}.focus-main .bar{flex-wrap:wrap;gap:3px}.focus-main .selects{width:100%;flex:1 1 100%;margin-bottom:5px;gap:6px}.focus-main .select select{max-width:135px}.focus-main .composer-hint{display:none}.focus-main .msg{font-size:14px}body[data-chat-mode=page] #focusNav{width:45px;gap:17px;padding-top:13px}body[data-chat-mode=page] .focus-main>.topbar{padding:8px}body[data-chat-mode=page] .focus-main .thread{padding:26px 16px}body[data-chat-mode=page] .focus-main .composer-wrap{padding:10px 9px 15px}.cr-charts{grid-template-columns:1fr;gap:14px}.cr-chart-card{padding:19px}.cr-chart{gap:4px}.cr-day{padding:0 2px}.cr-account-table{background:transparent;border:0;border-radius:0}.cr-account-row{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:17px;gap:16px;grid-template-columns:1fr}.cr-account-row+.cr-account-row{margin-top:12px}.cr-account-actions{justify-content:flex-start;border-top:1px solid var(--border);padding-top:12px}.cr-account-actions button{min-height:34px;font-size:11px}.cr-section-head{align-items:flex-start}.cr-section-head>span{max-width:125px;text-align:right}.cr-routing{padding:15px;gap:15px}.cr-dialog{padding:20px}.cr-dialog h2{font-size:19px}.cr-options label>span{padding:14px 10px}.cr-dialog .cr-quotas{gap:10px}.pop{max-width:calc(100vw - 24px)!important}#wfIsland{top:58px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.focus-main .msg.user{background:transparent}.focus-main .msg.user .content{border-radius:16px;max-width:88%}.focus-main .msg .role{font-size:10px}.cr-account-row .cr-note{display:block;margin-top:4px}
#crBoardError:not(:empty){background:var(--amber-bg);color:var(--amber);padding:12px 16px;border-radius:9px;margin-bottom:20px;font-size:12px}
@media(max-width:380px){.focus-main>.topbar{flex-wrap:wrap;height:auto;min-height:79px;justify-content:flex-end;row-gap:2px}.focus-main .topbar .project-heading{order:-2;flex:1 1 calc(100% - 40px)}.focus-main .topbar #chatClose{order:-1}.focus-main .topbar .cwd{display:none}.focus-main .topbar .project-heading .title{font-size:12px}}
/* Project-first navigation and compact conversation lists. */
#controlRoom{overflow:hidden}#crWorkspace{display:grid;grid-template-columns:224px minmax(0,1fr);height:calc(100dvh - 66px)}#crBoard{padding:28px 32px;overflow-y:auto;height:100%;width:100%;max-width:none;margin:0!important;scrollbar-width:thin}#crAccounts{height:calc(100dvh - 66px);overflow:auto;scrollbar-width:thin}#crProjectNav{min-width:0;display:flex;flex-direction:column;background:var(--bg);border-right:1px solid var(--border);padding:22px 12px 14px;min-height:0}#crProjectNav>header{display:flex;align-items:center;justify-content:space-between;padding:0 10px 12px;font-size:12px;font-weight:550}.cr-project-search{display:flex;align-items:center;gap:7px;margin:0 6px 16px;padding:8px;border:1px solid var(--border);border-radius:7px;color:var(--faint)}.cr-project-search .ic{width:13px;height:13px}.cr-project-search input{min-width:0;width:100%;border:0;background:transparent;color:var(--text);font-size:11px;outline:0}.cr-project-search:focus-within{outline:2px solid var(--border-strong)}#crProjectLinks{overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin}.cr-project-link{display:flex;align-items:center;gap:10px;width:100%;min-height:39px;border:0;border-radius:7px;background:transparent;color:var(--muted);padding:9px 10px;text-align:left;font-size:12px}.cr-project-link .ic{width:15px;height:15px}.cr-project-link>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cr-project-link small{font-size:10px;color:var(--faint);min-width:16px;text-align:center}.cr-project-link small.attention{color:var(--amber);background:var(--amber-bg);border-radius:4px;padding:1px 4px}.cr-project-link small.working{color:var(--ok)}.cr-project-link.selected{background:var(--surface-2);color:var(--text);font-weight:550}.cr-project-link:hover{background:var(--surface-2)}.cr-project-separator{height:1px;background:var(--border);margin:11px}.cr-project-manage{display:flex;align-items:center;gap:9px;border:0;border-top:1px solid var(--border);background:transparent;color:var(--muted);font-size:11px;padding:16px 10px 4px;margin-top:10px}.cr-project-manage .ic{width:15px;height:15px}#crProjectVeil{display:none}
#crBoard .cr-heading{margin-bottom:19px}#crBoard .cr-heading h1{font-size:24px;letter-spacing:-.6px}#crBoard .cr-eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:6px}#crBoard .cr-heading p{font-size:12px;margin-top:5px}#crBoard .cr-stats{display:flex;gap:24px;margin-bottom:24px}#crBoard .cr-stats>div{background:transparent;border:0;padding:0;flex-direction:row;align-items:center;gap:7px}#crBoard .cr-stats strong{font-size:13px;font-weight:600;letter-spacing:0}#crBoard .cr-stats span{font-size:11px}#crBoard .cr-tools{padding-bottom:15px;margin-bottom:4px;border-bottom:1px solid var(--border);gap:10px}#crProjectFilter{display:none}#crBoard .cr-search{max-width:300px;flex:1}#crBoard .cr-search input{width:100%}#crBoard .cr-tabs button{font-size:11px;padding:7px 10px}#crLanes{display:block}#crLanes .cr-conversation-group{margin-bottom:12px}#crLanes .cr-conversation-group>header{display:flex;align-items:center;gap:9px;padding:18px 2px 10px}#crLanes .cr-conversation-group h2{margin:0;font-size:11px;font-weight:550;color:var(--muted)}#crLanes .cr-conversation-group>header>span{font-size:10px;color:var(--faint)}.cr-conversation-row{display:flex;align-items:center;gap:12px;border:1px solid transparent;border-bottom-color:var(--border);background:transparent;min-width:0}.cr-conversation-row:hover{background:var(--bg);border-color:var(--border);border-radius:9px}.cr-conversation-row.question{background:var(--bg);border:1px solid var(--border);border-radius:9px;margin-bottom:7px}.cr-conversation-row .cr-task{display:flex;align-items:center;gap:13px;min-width:0;flex:1;background:transparent;box-shadow:none;border:0;border-radius:8px;padding:15px 12px;width:auto;text-align:left}.cr-conversation-row .cr-task:hover{box-shadow:none;border:0}.cr-row-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.cr-row-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}.cr-row-subtitle{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}.cr-unread-dot{height:5px;width:5px;flex:none;border-radius:50%;background:var(--link)}.cr-conversation-row .cr-status{font-size:10px;min-width:88px;justify-content:flex-start;flex:none}.cr-conversation-row time{font-size:10px;color:var(--faint);width:60px;text-align:right;flex:none}.cr-dismiss{flex:none;border:1px solid var(--border);background:var(--bg);color:var(--muted);font-size:10px;padding:7px 9px;border-radius:7px;margin-right:12px;white-space:nowrap}.cr-dismiss:hover{background:var(--surface-2);color:var(--text)}.cr-load-more{display:flex;align-items:center;justify-content:center;gap:14px;font-size:12px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--bg);width:100%;padding:12px;margin-top:16px}.cr-load-more span{font-size:10px;color:var(--muted)}.qdismiss{margin-left:auto;border:0;background:transparent;color:var(--muted);font-size:11px;padding:5px 7px;border-radius:5px;text-transform:none;letter-spacing:0}.qdismiss:hover{background:var(--surface-3);color:var(--text)}
/* Account identity belongs to the composer, rather than a separate dashboard. */
.send-account-chip{display:flex;min-height:36px;align-items:center;justify-content:flex-start;gap:7px;border:0;border-top:1px solid var(--border);background:transparent;color:var(--muted);font-size:12px;padding:10px 2px 0;margin-top:10px;width:100%;text-align:left}.send-account-chip>.ic{width:13px;height:13px;flex:none}.send-account-chip>.ic:last-child{margin-left:auto;width:11px;height:11px}.send-account-chip>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.send-account-chip strong{font-weight:500;color:var(--text)}.send-account-chip small{display:block;font-size:10px;margin-top:3px}.send-account-chip:hover>span{color:var(--text)}#sendAccountPicker{max-width:540px}.send-account-list{margin:20px 0}#sendAccountPicker footer{align-items:flex-start}#sendAccountPicker footer small{line-height:1.6;max-width:330px}.proj .dot{background:var(--faint)!important}.proj.active{box-shadow:inset 2px 0 var(--text)}
@media(min-width:1300px){}
@media(max-width:1100px){#crWorkspace{grid-template-columns:195px minmax(0,1fr)}#crBoard{padding:24px}.cr-conversation-row .cr-status{min-width:65px}.cr-conversation-row time{display:none}#crBoard .cr-tools{flex-wrap:wrap}#crBoard .cr-search{margin-left:0;max-width:none}}
@media(max-width:850px){#crWorkspace{grid-template-columns:minmax(0,1fr)}#crProjectNav{position:fixed;inset:66px auto 0 0;width:260px;z-index:25;transform:translateX(-100%);transition:transform .15s}#controlRoom.projects-open #crProjectNav{transform:translateX(0)}#crProjectVeil{display:block;position:fixed;inset:66px 0 0;z-index:24;background:#0005}#crBoard .cr-heading h1{font-size:24px}.cr-project-search input{font-size:16px}.cr-project-link{min-height:44px;font-size:13px}}
@media(max-width:650px){#crWorkspace,#crAccounts{height:calc(100dvh - 58px)}#crProjectNav,#crProjectVeil{top:58px}#crBoard{padding:22px 14px}#crBoard .cr-stats{gap:18px;margin-bottom:17px}#crBoard .cr-stats strong{font-size:12px}#crBoard .cr-heading{margin-bottom:14px}#crBoard .cr-tools{gap:10px}#crBoard .cr-tabs{gap:0;width:100%;justify-content:space-between}#crBoard .cr-tabs button{font-size:10px;padding:7px 8px}#crBoard .cr-search{max-width:none;width:100%;flex-basis:100%}.cr-conversation-row{flex-wrap:wrap;gap:0}.cr-conversation-row .cr-task{flex:1 1 100%;padding:14px 9px;gap:10px}.cr-conversation-row .cr-status{min-width:0;font-size:9px;max-width:65px;line-height:1.4}.cr-conversation-row .cr-status i{display:none}.cr-row-title{font-size:12px}.cr-row-subtitle{font-size:10px}.cr-dismiss{font-size:10px;min-height:30px;margin:0 10px 11px 27px}.send-account-chip{font-size:11px}.cr-load-more{font-size:11px;gap:9px}.cr-load-more span{font-size:9px}}
/* Approved refinement: one component system for accounts, settings, and utilities. */
:root{--chart-green:#348573;--chart-purple:#9981c2;--page:#fafafa}html[data-theme=dark]{--bg:#202020;--sidebar:#1c1c1c;--page:#171717;--chart-green:#78b8a3;--chart-purple:#b59dd9}
#controlRoom{background:var(--page)}.cr-top{background:var(--page)}#crHome{width:168px;flex:none}#crBreadcrumb{display:flex;align-items:center;gap:8px;min-width:0;font-size:11px;color:var(--muted)}#crBreadcrumb span{color:var(--text)}#crBreadcrumb .crumb-sep{color:var(--faint)}#crProjects{order:-1;display:none}#crProjectNav{background:var(--sidebar);padding-top:13px}.cr-primary-nav{display:flex;flex-direction:column;gap:3px;padding-bottom:24px}.cr-primary-nav :is(button,a){text-decoration:none;display:flex;align-items:center;gap:10px;min-height:38px;border:0;border-radius:7px;background:none;padding:9px 10px;font-size:12px;text-align:left;color:var(--muted)}.cr-primary-nav .ic{width:16px;height:16px}.cr-primary-nav :is(button,a):hover,.cr-primary-nav :is(button,a)[aria-current=page]{background:var(--surface-3);color:var(--text)}#crAccounts,#crAutomations,#crArtifacts,#crPlanner{height:100%;padding:30px 32px 45px;margin:0;width:100%;max-width:none;overflow:auto}#crBoard{background:var(--page)}#crWorkspace{grid-template-columns:214px minmax(0,1fr)}#sidebarSettings{margin-top:0;border:0}#crProjectNav>header{font-size:11px;color:var(--muted)}.cr-heading h1{font-size:28px;letter-spacing:-.8px}.cr-heading p{font-size:12px}.cr-segments{display:flex;align-items:center;gap:3px;background:var(--surface-2);border-radius:8px;padding:3px;max-width:100%;width:max-content}.cr-segments button{border:0;background:none;color:var(--muted);padding:6px 12px;font-size:11px;border-radius:6px;white-space:nowrap}.cr-segments button[aria-pressed=true]{background:var(--bg);color:var(--text);box-shadow:0 1px 3px #0000000a}.cr-segments button:focus-visible{outline:2px solid var(--chart-green);outline-offset:1px}#accountDays{border:1px solid var(--border);background:transparent}.cr-text-button{padding:4px 0;border:0;background:none;color:var(--muted);font-size:11px;text-decoration:underline;text-underline-offset:3px}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#accountStats{gap:0;border:1px solid var(--border);border-radius:11px;padding:18px 0;background:var(--bg);margin-bottom:21px}#accountStats>div{border:0;border-radius:0;padding:0 22px;background:none;gap:6px;min-width:0}#accountStats>div+div{border-left:1px solid var(--border)}#accountStats strong{font-size:27px;letter-spacing:-.7px}#accountStats span{font-size:10px}#accountStats small{font-size:10px;line-height:1.4}.cr-charts{grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:20px;margin-bottom:28px}.cr-chart-card{padding:20px 22px 14px;border-radius:11px}.cr-chart-card>header{margin-bottom:12px;gap:8px}.cr-chart-card h2{font-size:12px}.cr-chart-card .cr-segments button{font-size:10px;padding:4px 8px}#accountChart{display:block;height:185px;margin:10px 0 0;border:0}.activity-svg{display:block;width:100%;height:185px;overflow:visible}.activity-svg text{fill:var(--faint);font-family:inherit;font-size:10px}.chart-grid{stroke:var(--border);stroke-dasharray:3 4;stroke-width:1}.chart-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.chart-line.codex{stroke:var(--chart-green)}.chart-line.claude{stroke:var(--chart-purple)}.chart-area.codex{fill:var(--chart-green);opacity:.07}.chart-area.claude{fill:var(--chart-purple);opacity:.07}.chart-hit{fill:transparent;cursor:pointer}.chart-hit:hover,[data-day]:focus .chart-hit{fill:var(--muted);opacity:.09}[data-day]:focus{outline:0}.chart-legend{display:flex;gap:16px;font-size:10px;color:var(--muted)}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:6px;height:6px;border-radius:50%;background:var(--chart-green)}.chart-legend i.claude{background:var(--chart-purple)}.chart-legend small{margin-left:auto;font-size:9px}.cr-chart-caption{min-height:16px;font-size:10px;line-height:1.5;margin-top:8px}.chart-empty{height:185px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--muted);text-align:center}.chart-empty .ic{width:23px;height:23px;color:var(--faint)}.chart-empty strong{font-weight:500;font-size:12px}.chart-empty span{font-size:10px;max-width:220px;line-height:1.6}.model-chart{display:flex;align-items:center;justify-content:center;gap:22px;min-height:225px}.model-donut{width:125px;height:125px;position:relative;flex:none}.model-donut>svg{width:100%;height:100%;transform:rotate(-90deg)}.model-donut>div{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;pointer-events:none}.model-donut strong{font-size:21px;font-weight:550;letter-spacing:-.5px}.model-donut small{font-size:10px;color:var(--muted)}.model-legend{display:flex;flex-direction:column;gap:13px;min-width:0;max-height:205px;overflow:auto;flex:1;scrollbar-width:thin}.model-legend>div{display:flex;align-items:center;gap:7px;font-size:10px}.model-legend i{width:6px;height:6px;border-radius:50%;flex:none}.model-legend span{flex:1;overflow-wrap:anywhere;min-width:0}.model-legend strong{font-size:10px;font-weight:500;color:var(--muted);flex:none}.cr-section-head h2{font-size:14px}.cr-section-head h2 small{color:var(--faint);font-size:11px;margin-left:8px;font-weight:400}
.cr-account-head,.cr-account-row{display:grid;grid-template-columns:minmax(150px,1.45fr) minmax(78px,.7fr) minmax(105px,1fr) minmax(105px,1fr) minmax(100px,1fr) 28px;gap:18px;padding:18px;align-items:center}.cr-account-head{font-size:10px;background:var(--page);padding:12px 18px}.cr-account-row{position:relative}.cr-account-table{border-radius:10px}.identity-button{border:0;background:none;text-align:left;padding:0;color:var(--text);max-width:100%}.cr-identity .identity-copy{display:flex;flex-direction:column;min-width:0}.identity-copy strong{font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5}.identity-copy small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}.cr-account-avatar{height:30px;width:30px;border:0;font-size:12px;border-radius:8px;background:color-mix(in srgb,var(--chart-green) 10%,var(--bg));color:var(--chart-green)}.cr-account-avatar.claude{background:color-mix(in srgb,var(--chart-purple) 12%,var(--bg));color:var(--chart-purple)}.cr-account-state{display:inline-flex;align-items:center;border-radius:5px;padding:3px 6px;font-size:10px;background:var(--surface-2)}.cr-account-state.ready{color:var(--chart-green);background:color-mix(in srgb,var(--chart-green) 9%,var(--bg))}.cr-account-state.limited{color:var(--amber);background:var(--amber-bg)}.account-availability .next-badge{font-size:9px;display:block;color:var(--muted);margin-top:5px}.cr-quota .quota-label{font-size:10px;color:var(--muted)}.cr-quota>div:first-child{margin-bottom:7px;gap:7px}.cr-quota strong{font-size:11px;font-weight:500;margin-left:auto}.cr-quota .cr-track{height:4px}.cr-quota .cr-track i{background:var(--chart-green)}.cr-quota .cr-track.high i{background:var(--amber)}.cr-quota small,.cr-stale{font-size:9px;line-height:1.5;margin-top:6px;color:var(--faint)}.cr-account-row>.cr-quota .quota-label{display:none}.quota-missing{min-height:40px}.quota-missing small{display:block}.cr-account-row>.quota-missing{display:flex;align-items:center}.other-quotas .cr-text-button{font-size:9px;margin-top:3px}.routing-summary{display:flex;gap:9px;align-items:center;padding:20px 2px;color:var(--muted);font-size:11px}.routing-summary .ic{height:15px;width:15px}.routing-summary>span{flex:1}.detail-identity{margin:23px 0}.name-edit{display:flex;gap:8px;margin:8px 0}.name-edit input{flex:1;min-width:0}#accountNameForm label{font-size:12px}#accountDetail h3{font-size:12px;font-weight:550;margin:25px 0 15px}.detail-quotas{display:grid;grid-template-columns:1fr 1fr;gap:20px}.account-advanced{margin-top:22px;font-size:11px;color:var(--muted)}.account-advanced summary{cursor:pointer}.cr-dialog input:not([type=radio]):not([type=checkbox]),.cr-dialog select,.cr-dialog textarea{background:var(--bg);color:var(--text);border:1px solid var(--border-strong);border-radius:7px;padding:9px;font-size:12px}.cr-error{color:var(--text);font-size:11px;margin:8px 0}.cr-dialog .danger{color:var(--text)}
#sendAccountPicker{max-width:560px;padding:24px;overflow:hidden}#sendAccountPicker[open]{display:flex;flex-direction:column}#sendAccountPicker header,#sendAccountPicker>p,#sendAccountPicker footer{flex:none}#sendAccountPicker>p{margin:9px 0 17px}.send-account-list{overflow-y:auto;min-height:0;margin:0 -4px;padding:2px 4px 10px;scrollbar-width:thin}.picker-account-head .cr-identity{flex:1;display:flex;min-width:0;align-items:center;gap:10px}.picker-account-head input{accent-color:var(--text);width:16px;height:16px;flex:none;margin:0}.picker-account-head .identity-copy{display:flex;flex-direction:column;min-width:0}.picker-extra summary{cursor:pointer;margin-bottom:10px}.picker-running{display:flex;align-items:center;gap:9px;background:var(--surface-2);padding:12px;border-radius:8px;margin:0 0 15px;font-size:11px;flex:none}.picker-running .ic{width:15px;height:15px}.picker-running strong{font-weight:550}.picker-note{font-size:10px!important;line-height:1.6!important;margin:6px 0 15px!important}#sendAccountPicker footer{flex-wrap:wrap;align-items:center;gap:8px;padding-top:16px}#sendAccountPicker footer .cr-primary,#sendAccountPicker footer .cr-secondary{font-size:11px;padding:8px 11px}.send-account-chip{gap:7px}.send-account-chip small{display:block;margin:0 0 0 auto;font-size:10px;max-width:38%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.send-account-chip>.ic:last-child{margin-left:3px}.send-account-chip>span{font-size:11px}.send-account-chip strong{font-weight:550}#runningAccountLabel{font-size:11px;color:var(--muted);margin:0 5px 10px;line-height:1.5}
/* Explicit dimensions prevent shared text-button rules stretching these controls. */
#conversationSurface #sendBtn,#conversationSurface #steerBtn{box-sizing:border-box;width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;max-height:36px;flex:0 0 36px;aspect-ratio:1;border-radius:50%;padding:0;display:inline-flex;align-items:center;justify-content:center}#conversationSurface #sendBtn .ic,#conversationSurface #steerBtn .ic{width:18px;height:18px;margin:0}.focus-main .topbar #notifyBtn,.focus-main .topbar #mcpApprovalsBtn,.focus-main .topbar #subagentsBtn,.focus-main .topbar #wfBtn,.focus-main .topbar #resumeBtn,.focus-main .topbar #chatTheme{display:none!important}.focus-main .topbar #autopilotBtn{display:flex!important;align-items:center;gap:6px;width:auto;height:32px;min-width:0;padding:6px 9px;font-size:11px}.focus-main .topbar #autopilotBtn .ic{width:15px;height:15px}.focus-main .topbar #chatActivity{height:32px;min-height:32px;padding:6px 9px;font-size:11px;border:0;background:transparent}.focus-main .topbar #chatActivityCount{font-size:9px}.focus-main .topbar #moreBtn{display:flex!important}.focus-main .topbar .project-heading{flex:1;min-width:0;overflow:hidden}.focus-main .topbar .project-heading .title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.focus-main .topbar>.sp{display:none}.focus-main .topbar{gap:4px}#controlMenu{position:fixed;inset:auto;margin:0;padding:5px;width:230px;max-width:calc(100vw - 16px);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 40px #0002;background:var(--bg);color:var(--text)}#controlMenu button{display:flex;gap:9px;align-items:center;width:100%;border:0;background:none;color:var(--text);border-radius:6px;text-align:left;font-size:12px;padding:10px}#controlMenu button:not(:disabled):hover,#controlMenu button:focus-visible{background:var(--surface-2)}#controlMenu .ic{width:15px;height:15px;color:var(--muted);flex:none}#controlMenu .menu-heading{font-size:10px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:var(--faint);padding:9px 10px 4px;margin-top:4px;border-top:1px solid var(--border)}#controlMenu .menu-heading:first-child{border-top:0;margin-top:0;padding-top:5px}#controlMenu button.danger{color:var(--err)}#controlMenu button.danger .ic{color:var(--err)}#controlMenu button .ic:last-child:not(:first-child){margin-left:auto;width:13px}
.settings-dialog{padding:0;max-width:790px;overflow:hidden}.settings-shell{display:flex;min-height:510px;max-height:calc(100dvh - 50px)}.settings-nav{width:175px;flex:none;background:var(--sidebar);border-right:1px solid var(--border);padding:24px 12px}.settings-nav h2{font-size:16px;padding:0 10px;margin-bottom:22px}.settings-nav button{display:flex;align-items:center;gap:9px;width:100%;border:0;background:none;color:var(--muted);font-size:12px;padding:10px;border-radius:7px;margin-bottom:4px;text-align:left}.settings-nav button[aria-current=page],.settings-nav button:hover{background:var(--surface-3);color:var(--text)}.settings-nav .ic{height:16px;width:16px}.settings-content{min-width:0;flex:1;display:flex;flex-direction:column}.settings-content>header{padding:22px 24px;flex:none}.settings-content h2{font-size:20px}#settingsBody{padding:0 24px 24px;overflow:auto;scrollbar-width:thin;min-height:0}#settingsBody h3{font-size:12px;font-weight:550;margin:0 0 14px}.theme-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.theme-choices button{display:flex;flex-direction:column;align-items:center;gap:10px;padding:15px 8px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--muted);font-size:11px}.theme-choices button[aria-pressed=true]{border-color:var(--text);background:var(--surface-2);color:var(--text)}.theme-choices .ic{width:21px;height:21px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-top:1px solid var(--border)}.setting-row strong{font-size:12px;font-weight:500;display:block}.setting-row small{font-size:10px;color:var(--muted);display:block;margin-top:5px;line-height:1.5}.setting-row input[role=switch]{width:33px;height:19px;accent-color:var(--text);flex:none}.settings-surface fieldset{margin:25px 0}.settings-surface .cr-options label>span{min-height:112px}.settings-surface .cr-options small{line-height:1.5}.settings-surface #connectionType{margin-bottom:22px}
.utility-dialog{max-width:640px;padding:24px}.utility-dialog>header{margin-bottom:20px}.integrated-pop.pop{display:block;position:static!important;width:auto!important;min-width:0!important;max-width:none!important;max-height:none!important;overflow:visible!important;box-shadow:none;border:0;border-radius:0;padding:0;background:transparent}.integrated-pop>h2{display:none}.integrated-pop .send{width:auto;border-radius:7px;min-height:34px;font-size:12px;padding:8px 12px}.integrated-pop .send.ghost{background:var(--bg);border:1px solid var(--border);color:var(--text)}.integrated-pop .pk-list{max-height:50dvh;scrollbar-width:thin}.integrated-pop .plug-note,.integrated-pop .plug-foot,.integrated-pop .note{font-size:11px;line-height:1.7;overflow-wrap:anywhere;color:var(--muted)}.integrated-pop .pi,.integrated-pop .mi,.integrated-pop .cronj{border:1px solid var(--border);border-radius:9px;padding:14px;margin:10px 0;background:var(--bg)}.integrated-pop input,.integrated-pop textarea{min-width:0;max-width:100%}.integrated-pop .plug-add{display:flex;gap:8px}.integrated-pop .plug-add input{flex:1;min-width:0}.integrated-pop .provbtn{border-radius:7px;font-size:11px;padding:7px 14px}.integrated-pop .mcp-row>*{min-width:0}.integrated-pop .cronj .pr{font-size:12px;line-height:1.6;white-space:pre-wrap}.integrated-pop .cronj .meta{font-size:10px;line-height:1.6}#automationContent{max-width:1000px}#automationContent .cronj{padding:20px;margin:12px 0}#automationContent .plug-note{margin-bottom:20px}.modern-prompt.modal-wrap{padding:0;border:1px solid var(--border);border-radius:14px;background:var(--bg);color:var(--text);width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 40px);inset:0;margin:auto;height:fit-content;box-shadow:0 20px 70px #0003}.modern-prompt::backdrop{background:#1117;backdrop-filter:blur(2px)}.modern-prompt .modal{border:0;box-shadow:none;max-width:none;width:100%;border-radius:0;padding:25px}.modern-prompt:not([open]){display:none}.modern-prompt .send{border-radius:8px}
@media(max-width:1200px){.cr-account-head,.cr-account-row{gap:12px;padding-left:14px;padding-right:14px;grid-template-columns:minmax(135px,1.25fr) minmax(80px,.7fr) minmax(90px,1fr) minmax(90px,1fr) minmax(90px,1fr) 26px}.cr-account-row .cr-account-avatar{display:none}.cr-charts{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}.model-chart{gap:14px}.model-donut{width:105px;height:105px}#crAccounts,#crAutomations,#crArtifacts,#crPlanner{padding:28px 24px}.cr-chart-card{padding:18px}}
@media(max-width:1050px){.cr-charts{grid-template-columns:1fr}.model-chart{min-height:170px}.model-legend{max-width:300px}.cr-account-head{display:none}.cr-account-row{grid-template-columns:1fr 1fr;gap:16px;padding:18px;border:1px solid var(--border);border-radius:10px;margin-bottom:12px;background:var(--bg)}.cr-account-row+.cr-account-row{border:1px solid var(--border);margin-top:0}.cr-account-table{border:0;background:none;overflow:visible}.cr-account-row>div:first-child{grid-column:1/-1;padding-right:35px}.cr-account-row .cr-account-avatar{display:grid}.cr-account-row .account-availability{grid-column:1/-1;display:flex;align-items:center;gap:10px}.account-availability .next-badge{margin-top:0}.cr-account-row>.cr-quota .quota-label{display:block}.cr-account-row>.quota-missing{display:block}.cr-account-row>.cr-icon{position:absolute;right:10px;top:12px}.other-quotas{grid-column:1/-1;max-width:calc(50% - 8px)}#accountStats{grid-template-columns:1fr 1fr;gap:20px 0}#accountStats>div:nth-child(3){border-left:0}}
@media(max-width:850px){#crWorkspace{grid-template-columns:minmax(0,1fr)}#crHome{width:auto}#crProjects{display:inline-flex}#crBreadcrumb{margin-left:5px}.cr-top{gap:6px;padding:0 16px}.cr-top #crHome span{display:none}#crProjectNav{width:260px}.cr-connection{margin-right:2px}#crAccounts,#crAutomations,#crArtifacts,#crPlanner{padding:26px 22px}}
@media(max-width:650px){#crAccounts,#crAutomations,#crArtifacts,#crPlanner{padding:24px 16px}#crBreadcrumb{font-size:10px;gap:5px}#crTheme{display:inline-flex}.cr-top{padding:0 10px;gap:3px}#crConnection{display:none}#crHome{font-size:17px}.cr-heading h1{font-size:26px}#accountStats>div{padding:0 16px}#accountStats small{font-size:9px}.cr-charts{gap:14px}.cr-chart-card{padding:17px}.cr-tools .sp{display:none}#accountProvider{flex:none;width:max-content}#accountDays{margin-left:0}#accountRefresh{margin-left:auto}.model-chart{min-height:160px}.model-donut{width:120px;height:120px}.cr-account-row{padding:16px}.routing-summary{font-size:10px;flex-wrap:wrap;gap:8px}.routing-summary>span{min-width:150px}.cr-section-head>span{font-size:9px}#sendAccountPicker{padding:20px;width:calc(100vw - 24px);max-height:calc(100dvh - 28px)}#sendAccountPicker header{gap:8px}#sendAccountPicker h2{font-size:19px}#sendAccountPicker footer>.cr-text-button{flex-basis:100%;text-align:left}#sendAccountPicker footer>.sp{display:none}#sendAccountPicker footer>.cr-primary{flex:1}.picker-quotas{gap:16px!important}.send-account-chip small{max-width:30%;font-size:9px}.send-account-chip>span{font-size:10px}.settings-shell{display:block;min-height:0;max-height:calc(100dvh - 35px)}.settings-nav{display:flex;align-items:center;gap:4px;width:100%;border-right:0;border-bottom:1px solid var(--border);padding:12px 8px;overflow-x:auto}.settings-nav h2{display:none}.settings-nav button{width:auto;white-space:nowrap;flex:none;padding:8px 6px;margin:0;font-size:10px;gap:5px}.settings-nav .ic{width:13px;height:13px}.settings-content>header{padding:18px}.settings-content h2{font-size:18px}#settingsBody{padding:0 18px 20px;max-height:calc(100dvh - 180px)}.settings-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 30px)}.setting-row{flex-wrap:wrap;gap:10px}.setting-row>span{flex:1;min-width:150px}.theme-choices{gap:6px}.theme-choices button{font-size:9px}.cr-dialog input:not([type=radio]):not([type=checkbox]),.cr-dialog textarea,.settings-surface input:not([type=radio]):not([type=checkbox]),.settings-surface textarea{font-size:16px}.utility-dialog{padding:20px}.utility-dialog h2{font-size:18px}.focus-main .topbar #chatActivity{font-size:10px;padding:6px}.focus-main .topbar #autopilotBtn{font-size:10px;padding:6px}.focus-main .topbar .cwd{max-width:140px}.focus-main .topbar #menuBtn{display:none!important}.focus-main .topbar .project-heading{min-width:90px}.focus-main .topbar #chatClose{order:0}.focus-main .topbar{min-height:62px;height:auto;flex-wrap:wrap}.focus-main .topbar .project-heading{order:-2;flex:1 1 calc(100% - 40px)}.focus-main .topbar #chatClose{order:-1}.focus-main .topbar #moreBtn{margin-left:auto}.focus-main .topbar .cwd{display:none}}
@media(max-width:370px){#crBreadcrumb{display:none}.send-account-chip small{display:none}.settings-nav .ic{display:none}.settings-nav button{font-size:9px;padding:8px 7px}.model-donut{width:105px;height:105px}.detail-quotas{gap:14px}.picker-option .cr-identity{gap:7px}}

#conversationSurface .topbar #subagentsBtn,#conversationSurface .topbar #mcpApprovalsBtn,#conversationSurface .topbar #wfBtn{display:none!important}#conversationSurface .topbar #chatActivity{order:1}#conversationSurface .topbar #chatTools{order:2}#conversationSurface .topbar #autopilotBtn{order:3}#conversationSurface .topbar #moreBtn{order:4}#conversationSurface .topbar #chatClose{order:5}
@media(max-width:650px){#conversationSurface .topbar #chatClose{order:-1}}

/* Question batches grow with the number of decisions and choices. */
.qbatch{display:grid;gap:22px;margin-top:18px}.qbatch fieldset{min-width:0;border:0;padding:0;display:grid;gap:8px}.qbatch legend{font-weight:600;margin-bottom:12px;line-height:1.5}.qbatch label{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--border);border-radius:10px;cursor:pointer}.qbatch label:has(:checked){background:var(--accent-weak)}.qcustom{width:100%;box-sizing:border-box;background:var(--bg);color:var(--text);padding:11px 12px;border:1px solid var(--border);border-radius:10px;font:inherit}.qbatch>.cr-primary{justify-self:start}.qerror{color:var(--text);padding:12px 0}.qopts{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}.qopt-wrap{min-width:0}.qopt{white-space:normal!important;text-align:left;overflow-wrap:anywhere}

.cr-project-costs{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;margin:0 0 26px;border:1px solid var(--border);border-radius:16px;background:var(--surface-2)}.cr-cost-value{font-size:28px;font-weight:600;letter-spacing:-.8px;margin:7px 0;display:flex;gap:16px;align-items:baseline}.cr-cost-value small{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted)}.cr-project-costs p{font-size:12px;color:var(--muted);margin:0}#projectCostDetails{width:min(780px,calc(100vw - 32px));max-height:85vh;overflow:hidden}#projectCostDetails header p{margin:5px 0 0;color:var(--muted)}.cost-breakdown{overflow:auto;max-height:50vh}.cost-project{padding:18px 0;border-bottom:1px solid var(--border)}.cost-project summary{cursor:pointer;display:flex;justify-content:space-between;gap:20px;align-items:center}.cost-project summary>span{min-width:0}.cost-project strong{overflow-wrap:anywhere}.cost-project small,.cost-conversations small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.cost-bar{height:6px;background:var(--border);border-radius:8px;margin:15px 0}.cost-bar i{display:block;height:100%;background:var(--accent);border-radius:8px}.cost-agent-note{color:var(--muted);font-size:12px}.cost-conversations{padding-left:16px;border-left:2px solid var(--border)}.cost-conversations>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;font-size:13px}.cost-conversations>div>span{min-width:0;overflow-wrap:anywhere}.cost-conversations strong{white-space:nowrap}.cost-footer p{font-size:11px;color:var(--muted);line-height:1.6;flex:1}.cost-footer a{color:inherit}.codex-slash-menu{position:absolute;bottom:100%;left:0;width:min(480px,100%);max-height:300px;overflow:auto;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);box-shadow:0 12px 40px #0002;padding:6px;z-index:10}.codex-slash-menu[hidden]{display:none}.codex-slash-menu button{display:flex;text-align:left;align-items:center;width:100%;gap:16px;background:none;border:0;border-radius:8px;padding:11px;color:var(--text);font:inherit}.codex-slash-menu button:hover,.codex-slash-menu button:focus{background:var(--accent-weak)}.codex-slash-menu strong{min-width:76px;font-size:13px}.codex-slash-menu span,.codex-slash-menu p{font-size:12px;color:var(--muted)}@media(max-width:650px){.cr-project-costs{padding:16px}.cr-cost-value{display:block}.cr-cost-value small{display:block;margin-top:6px}.cr-project-costs>.cr-secondary{font-size:12px;white-space:nowrap}.cost-footer{flex-wrap:wrap}}

/* Question cards follow the message column; their height follows the content. */
.qcard{box-sizing:border-box;background:var(--bg)!important;border:1px solid var(--border)!important;border-radius:16px!important;padding:16px;width:100%;min-width:0;max-width:min(780px,100%)}
.qcard .qhead{margin-bottom:10px;gap:8px}.qcard .qdismiss{flex:none;margin-left:auto}.qcard .qtext{line-height:1.5;margin-bottom:14px;overflow-wrap:anywhere}
.qopt-wrap{position:relative;max-width:100%}.qopt{min-width:0;padding:9px 40px 9px 12px;line-height:1.45}
.qopt-insert{position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:1}
.qopt-wrap:focus-within .qopt-insert{opacity:1}.qopt:focus-visible,.qopt-insert:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(hover:none){.qopt-insert{opacity:1}}
.qbatch fieldset{grid-template-columns:repeat(2,minmax(0,1fr))}.qbatch .qcustom{grid-column:1/-1}.qbatch label{background:var(--surface-2);border-color:transparent}.qbatch label:has(:checked){border-color:var(--border-strong);background:var(--accent-weak)}.qerror{color:var(--err)}#projectCostDetails{max-width:min(780px,calc(100vw - 32px))}@media(max-width:550px){.qbatch fieldset{grid-template-columns:1fr}}

/* Conversation activity: a compact list, with details in the agent reader. */
#utilityDialog.agent-utility{width:min(900px,calc(100vw - 32px));max-width:900px;max-height:88vh;overflow:hidden;padding:26px}#utilityDialog.agent-utility>.utility-body{max-height:calc(88vh - 110px);overflow:auto}.agent-intro{margin:0 0 22px;color:var(--muted);font-size:13px}#selfCost{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 0 24px;border-bottom:1px solid var(--border);gap:18px}.agent-stat{display:grid;gap:7px}.agent-stat>span{font-size:11px;color:var(--muted)}.agent-stat>strong{font-size:24px;letter-spacing:-.6px;font-weight:550}.agent-usage-note{grid-column:1/-1;font-size:12px;color:var(--muted);margin:0}.agent-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 0 14px}.agent-filters{display:flex;gap:4px;flex-wrap:wrap}.agent-filters button,.agent-reader-tabs button{border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:12px;padding:8px 10px;white-space:nowrap}.agent-filters button.selected,.agent-reader-tabs button.selected{background:var(--surface-2);color:var(--text);font-weight:600}.agent-search{display:flex;align-items:center;gap:8px;max-width:190px;border:1px solid var(--border);border-radius:9px;padding:8px 10px;color:var(--muted)}.agent-search input{width:100%;min-width:0;background:none;border:0;outline:0;color:var(--text);font:inherit;font-size:12px}#agentListStatus{font-size:11px;color:var(--muted);margin-bottom:10px}#subList{display:flex;flex-direction:column}.agent-row{width:100%;display:flex;align-items:center;gap:14px;text-align:left;border:0;border-bottom:1px solid var(--border);background:none;color:var(--text);padding:16px 4px;font:inherit}.agent-row:hover,.agent-row:focus-visible{background:var(--surface-2);border-radius:10px}.agent-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--surface-2);color:var(--muted);flex:none}.agent-avatar.running{color:var(--text);background:var(--accent-weak)}.agent-copy{flex:1;min-width:0}.agent-copy>strong{display:block;font-size:13px;font-weight:550;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-copy>small{display:block;font-size:11px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-row-side{display:grid;justify-items:end;gap:6px;flex:none}.agent-row-side>small{font-size:11px;color:var(--muted)}.agent-row>.ic{width:14px;color:var(--faint);flex:none}.agent-status{font-size:11px;font-weight:500;line-height:1.5;white-space:nowrap;color:var(--muted);padding:3px 8px;border-radius:6px;background:var(--surface-2)}.agent-status.running{background:var(--accent-weak);color:var(--text)}.agent-status.running:before,.running-indicator{content:'';display:inline-block;width:5px;height:5px;background:currentColor;border-radius:50%;margin-right:6px}.agent-status.failed{color:var(--err);background:var(--err-bg)}.agent-status.done{color:var(--ok);background:transparent}.agent-status.background{color:var(--muted);background:transparent}.agent-empty{padding:42px 20px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7}.agent-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}.agent-footer>span{font-size:11px;color:var(--muted)}
/* Agent conversations use the same reading surface as the main chat. */
dialog.modern-prompt:has(.agent-reader){width:min(1040px,calc(100vw - 40px));max-width:1040px;padding:0;height:min(860px,88vh);max-height:88vh;overflow:hidden}.modal.agent-reader{width:100%;max-width:none;height:100%;max-height:none;padding:0;display:flex;flex-direction:column;box-shadow:none;box-sizing:border-box;background:var(--bg);border:0}.agent-reader-header{display:flex;align-items:center;gap:14px;padding:22px 24px 16px}.agent-reader-header>div{flex:1;min-width:0}.agent-reader-header h3{font-size:17px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-reader-header p{font-size:12px;color:var(--muted);margin:5px 0 0}.agent-reader-tabs{display:flex;gap:5px;border-bottom:1px solid var(--border);padding:0 24px 14px}.agent-reader-tools{display:flex;justify-content:space-between;padding:10px 30px;font-size:11px;min-height:20px}.agent-reader-tools[hidden]{display:none}.agent-reader-scroll{flex:1;min-height:0;overflow:auto;padding:20px max(28px,calc((100% - 780px)/2));line-height:1.75;font-size:14px;overflow-wrap:anywhere;scrollbar-gutter:stable}.agent-reader-scroll .msg{max-width:100%;margin-bottom:24px}.agent-reader-scroll .msg.user{background:var(--user-bg);border:0}.agent-reader-scroll .act{font-size:12px;color:var(--muted);margin:12px 0}.agent-reader-scroll pre{max-width:100%;overflow:auto}.agent-reader-summary{max-width:760px;margin:auto}.agent-reader-footer{display:flex;align-items:center;gap:16px;padding:14px 24px;border-top:1px solid var(--border)}.agent-reader-footer>span{flex:1;font-size:11px;color:var(--muted)}
/* Parallel work occupies one quiet line, regardless of task count. */
#otherRuns{display:block;margin:0 auto 8px;max-width:780px}#otherRuns:empty{display:none}.running-summary-button{display:flex;align-items:center;gap:8px;max-width:100%;background:none;border:0;color:var(--muted);font:inherit;font-size:11px;min-height:30px;padding:4px 8px;border-radius:7px}.running-summary-button:hover{background:var(--surface-2);color:var(--text)}.running-summary-button strong{font-weight:500}.running-summary-button>.ic{width:12px;height:12px;margin-left:3px}.running-summary-button>.running-indicator{margin:0;background:var(--muted);flex:none}.running-summary-button>span:not(.running-indicator){border-left:1px solid var(--border);padding-left:8px}#runningConversations{width:min(650px,calc(100vw - 32px));max-width:650px;max-height:80vh}#runningConversations header p{font-size:12px;color:var(--muted);margin:6px 0 0}#runningConversations>.cr-search{margin:22px 0 10px;width:100%;box-sizing:border-box}#runningGroups{max-height:52vh;overflow:auto}.running-group{padding:14px 0}.running-group>header{display:flex;gap:9px;align-items:center;margin:0 0 8px}.running-group h3{font-size:11px;font-weight:600;color:var(--muted);flex:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.running-group header small{font-size:11px;color:var(--faint)}.running-conversation{display:flex;align-items:center;gap:12px;width:100%;padding:13px 9px;border:0;border-radius:9px;background:none;color:var(--text);text-align:left;font:inherit}.running-conversation:hover{background:var(--surface-2)}.running-conversation>span:first-child{flex:1;min-width:0}.running-conversation strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:550}.running-conversation small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.running-conversation>.ic{width:12px;color:var(--faint)}
@media(max-width:650px){#utilityDialog.agent-utility{padding:20px;max-height:90vh}.agent-tools{align-items:stretch;flex-direction:column;gap:12px}.agent-search{max-width:none}#selfCost{gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.agent-stat>strong{font-size:21px}.agent-row{gap:10px;padding:14px 0}.agent-avatar{display:none}.agent-copy>strong{font-size:12px}.agent-row-side>small{font-size:10px}.agent-footer{align-items:flex-start;flex-direction:column;gap:8px}.agent-reader-header{padding:18px 14px;gap:8px}.agent-reader-header h3{font-size:14px}.agent-reader-header p{font-size:10px}.agent-reader-header>.agent-status{font-size:10px}.agent-reader-tabs{padding:0 18px 12px}.agent-reader-scroll{padding:16px 20px}.agent-reader-footer{padding:12px 16px;gap:8px}.agent-reader-footer>span{font-size:10px}dialog.modern-prompt:has(.agent-reader){width:calc(100vw - 16px);height:92vh;max-height:92vh}.running-summary-button{font-size:10px}.running-summary-button>span:not(.running-indicator){display:none}}
#subPop .agent-search input,#runningConversations .cr-search input{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;outline:0;width:100%;flex:1;min-width:0;font-size:12px}.agent-search:focus-within,#runningConversations .cr-search:focus-within{outline:2px solid var(--border-strong);outline-offset:2px}dialog.modern-prompt:has(.agent-reader)[open]{display:flex}.modal.agent-reader{flex:1;min-height:0}.agent-reader-header,.agent-reader-tabs,.agent-reader-tools,.agent-reader-footer{flex-shrink:0}.agent-reader-scroll{flex:1 1 0}.agent-reader-scroll .msg.user{background:transparent!important;display:flex;flex-direction:column;align-items:flex-end;text-align:left}.agent-reader-scroll .msg.user>.role{display:none}.agent-reader-scroll .msg.user>.content{display:inline-block;max-width:90%;border-radius:16px;background:var(--user-bg);padding:14px 18px;box-sizing:border-box;font-size:14px;line-height:1.7}.agent-reader-scroll .msg.assistant .content p{color:var(--text);font-size:14px;line-height:1.8;margin-bottom:12px}.agent-reader-scroll .msg.assistant>.role{font-size:10px;margin-bottom:8px;color:var(--muted)}.agent-reader-summary p{color:var(--text);font-size:14px;line-height:1.8}.agent-reader-tools>button:last-child{margin-left:auto}
/* Compact account selection, isolated from dashboard table and retired picker rules. */
#sendAccountPicker{width:min(620px,calc(100vw - 28px));max-width:620px;max-height:calc(100dvh - 40px);padding:24px;gap:0}
#sendAccountPicker h2{font-size:23px;letter-spacing:-.6px}#sendAccountPicker>p{font-size:12px;line-height:1.5}
#sendAccountPicker .send-account-list{display:block;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;padding:3px 4px 8px;margin:0 -4px;min-height:80px}
.account-pick-card{display:block;position:relative;box-sizing:border-box;padding:15px 16px;margin:0 0 9px;border:1px solid var(--border);border-radius:12px;background:var(--bg);cursor:pointer;color:var(--text);text-align:left}
.account-pick-card:hover{border-color:var(--border-strong)}.account-pick-card.selected{border-color:var(--chart-green,#72aa97);background:var(--surface-2)}.account-pick-card:focus-within{outline:2px solid var(--chart-green,#72aa97);outline-offset:1px}.account-pick-card.unavailable{cursor:default}
.account-pick-card .picker-account-head{display:flex;align-items:center;gap:12px}.account-pick-card .cr-identity{display:flex;flex:1;min-width:0;align-items:center;gap:10px}.account-pick-card .identity-copy{display:flex;flex-direction:column;min-width:0;gap:3px}.account-pick-card .identity-copy strong{font-size:13px;line-height:1.35;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.account-pick-card .identity-copy small{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-pick-card .cr-account-avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;margin:0;font-size:12px;border-radius:10px}.account-pick-card input[type=radio]{width:17px;height:17px;margin:0;flex:none;accent-color:var(--text)}
.account-pick-card .picker-status{display:block;font-size:10px;color:var(--muted);margin:9px 0 12px}.account-pick-card .picker-quotas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;width:100%}.account-pick-card .cr-quota{display:block;min-width:0;margin:0;max-width:none;text-align:left}.account-pick-card .cr-quota>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.account-pick-card .cr-quota span{font-size:10px;color:var(--muted);margin:0}.account-pick-card .cr-quota strong{font-size:11px;font-weight:550;margin:0}.account-pick-card .cr-quota>small{display:block;font-size:9px;line-height:1.5;color:var(--muted);margin-top:5px}.account-pick-card .cr-quota .quota-meter{width:100%}.account-pick-card .picker-extra{font-size:10px;color:var(--muted);margin-top:10px}.account-pick-card .picker-extra summary{cursor:pointer}.account-pick-card .quota-freshness{font-size:9px;margin:8px 0 0}
#sendAccountPicker .picker-note{font-size:10px!important;margin:8px 0!important}#sendAccountPicker footer{margin-top:8px;padding-top:14px;align-items:center}#sendAccountPicker footer .cr-primary{min-height:38px}
/* Dashboard and routing. */
#crAccounts .cr-project-costs{margin-bottom:24px}.routing-policy{padding:20px 0;border-bottom:1px solid var(--border)}.routing-policy:first-child{padding-top:4px}.routing-policy header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.routing-policy header h3{margin:0!important}.routing-policy header>span{font-size:11px;color:var(--muted)}.routing-strategy-label{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px;font-weight:500}.routing-strategy-label select{max-width:230px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:9px 12px}.routing-policy [data-strategy-help]{font-size:11px;line-height:1.6;min-height:36px}.routing-order{list-style:none;padding:0;margin:12px 0}.routing-order li{display:flex;align-items:center;gap:7px;border-top:1px solid var(--border);padding:10px 0}.routing-rank{width:18px;font-size:11px;color:var(--faint);flex:none}.routing-order .cr-identity{display:flex;align-items:center;gap:9px;flex:1;min-width:0}.routing-order .identity-copy{min-width:0}.routing-order .identity-copy strong,.routing-order .identity-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.routing-order .identity-copy strong{font-size:12px}.routing-order .identity-copy small{font-size:10px;color:var(--muted);margin-top:3px}.routing-order .cr-account-avatar{width:30px;height:30px;flex:none}.routing-order li>small{font-size:10px;color:var(--muted);white-space:nowrap}.routing-order .cr-icon{width:28px;height:28px;padding:6px}.routing-policy footer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding-top:10px}.routing-policy [data-save-status]{font-size:11px;color:var(--muted)}
#chatRefresh{order:1}#chatTerminal{order:1}#chatAgentTree{order:1}#chatRefresh[aria-busy=true] .ic{animation:spin 1s linear infinite}
@media(max-width:650px){#sendAccountPicker{padding:18px;max-height:calc(100dvh - 24px)}#sendAccountPicker h2{font-size:21px}.account-pick-card{padding:13px}.account-pick-card .picker-quotas{gap:12px}.routing-order li>small{display:none}.routing-strategy-label{align-items:flex-start;flex-direction:column;gap:8px}.routing-strategy-label select{width:100%;max-width:none}}
@media(prefers-reduced-motion:reduce){#chatRefresh[aria-busy=true] .ic{animation:none}}
/* Manually pinned desktop shortcuts: transparent bubble stack at the viewport edge. */
#conversationStage{position:fixed;right:22px;bottom:22px;z-index:115;display:flex;flex-direction:column;align-items:center;gap:12px;width:52px;background:none;border:0;padding:0;overflow:visible;box-shadow:none}
#stageToggle{position:relative;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;border:1px solid var(--border-strong);background:var(--bg);color:var(--text);box-shadow:none;padding:14px;flex:none}#stageToggle>.ic{width:23px;height:23px}#stageToggle:hover{background:var(--surface-2)}#stageCount{position:absolute;top:-7px;right:-5px;min-width:20px;height:20px;padding:0 4px;display:grid;place-items:center;border-radius:7px;background:var(--text);color:var(--bg);font-size:10px;font-weight:600;border:2px solid var(--bg)}
#stageShelf,#stageItems{display:flex;flex-direction:column;align-items:center;gap:10px;background:none;border:0;box-shadow:none;padding:0;width:52px;overflow:visible}
/* State colors stay visible until unread replies take visual priority. */
:root{--chat-idle:#77777d;--chat-question:#bd6411}
html[data-theme=dark]{--chat-idle:#a0a0a6;--chat-question:#ffa44d}
[data-chat-state]{--chat-state:var(--chat-idle)}
[data-chat-state=running]{--chat-state:var(--ok)}
[data-chat-state=background]{--chat-state:var(--bgwork)}
[data-chat-state=question]{--chat-state:var(--chat-question)}
[data-chat-state=failed]{--chat-state:var(--err)}
[data-chat-state=parked]{--chat-state:var(--amber)}
.cr-state-dot{display:block;width:8px;height:8px;border-radius:50%;background:var(--chat-state);flex:none}
.cr-status.finished,.cr-status.idle{color:var(--chat-idle)}
.cr-status.question{color:var(--chat-question)}
.stage-item{position:relative;width:48px;height:48px;flex:none}
.stage-conversation{position:relative;display:grid;place-items:center;width:48px;height:48px;padding:0;border-radius:50%;border:2px solid var(--chat-state);background:var(--bg);color:var(--chat-state);box-shadow:none}
.stage-conversation:hover{background:var(--surface-2)}
.stage-conversation>.ic{width:21px;height:21px;stroke-width:1.7}
.stage-item.current{z-index:1}
.stage-item.current .stage-conversation{outline:2px solid var(--text);outline-offset:3px}
.stage-item.current .stage-caption{border-color:var(--text);background:var(--surface-2)}
.stage-item.current .stage-caption strong{font-weight:700}
.stage-status{display:none;position:absolute;bottom:-1px;right:-1px;width:11px;height:11px;border-radius:50%;border:2px solid var(--bg);background:var(--chat-state)}
.stage-conversation.running .stage-status,.stage-conversation.background .stage-status,.stage-conversation.question .stage-status,.stage-conversation.failed .stage-status,.stage-conversation.parked .stage-status{display:block}

.stage-caption{position:absolute;right:calc(100% + 14px);top:50%;transform:translateY(-50%);width:max-content;max-width:240px;padding:9px 12px;border:1px solid var(--border);border-radius:9px;background:var(--bg);box-shadow:0 3px 16px #0002;color:var(--text);text-align:left;pointer-events:none;visibility:visible;opacity:1}.stage-caption strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500}.stage-caption small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--muted);margin-top:3px}.stage-item:hover .stage-caption,.stage-item:focus-within .stage-caption{visibility:visible;opacity:1}.stage-unpin{position:absolute;right:-4px;top:-4px;display:grid;place-items:center;width:20px;height:20px;padding:4px;border-radius:50%;border:1px solid var(--border);background:var(--bg);color:var(--muted);opacity:0;pointer-events:none}.stage-unpin .ic{width:10px;height:10px}.stage-item:hover .stage-unpin,.stage-item:focus-within .stage-unpin{opacity:1;pointer-events:auto}
.stage-add,.stage-page{display:grid;place-items:center;border:1px solid var(--border-strong);border-radius:50%;background:var(--bg);color:var(--muted);box-shadow:0 2px 8px #0001;flex:none}.stage-add{width:34px;height:34px;padding:8px}.stage-page{width:26px;height:26px;padding:5px}.stage-add .ic,.stage-page .ic{width:100%;height:100%}.stage-add:hover,.stage-page:hover{background:var(--surface-2);color:var(--text)}
#stagePinPicker{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 56px);padding:24px}#stagePinPicker[open]{display:flex;flex-direction:column}#stagePinPicker>header,#stagePinPicker>footer,#stagePinPicker>.cr-search{flex:none}#stagePinPicker header p{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0 0}#stagePinPicker>.cr-search{margin:18px 0 8px;max-width:none;width:100%}#stagePinChoices{overflow-y:auto;min-height:80px;overscroll-behavior:contain;scrollbar-width:thin}.stage-pin-choice{display:flex;align-items:center;gap:10px;padding:14px 2px;border-bottom:1px solid var(--border);cursor:pointer}.stage-pin-choice>span{flex:1;min-width:0}.stage-pin-choice strong{display:block;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-pin-choice small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.stage-pin-choice input{width:17px;height:17px;flex:none;accent-color:var(--text)}#stagePinPicker footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px}#stagePinTotal{font-size:11px;color:var(--muted)}#stageMoreChoices{width:100%;padding:16px}
.cr-row-pin{display:grid;place-items:center;width:30px;height:30px;flex:none;margin:0 8px 0 0;padding:7px;border:0;border-radius:7px;background:none;color:var(--muted);opacity:0}.cr-row-pin .ic{width:15px;height:15px}.cr-row-pin.pinned,.cr-conversation-row:hover .cr-row-pin,.cr-conversation-row:focus-within .cr-row-pin{opacity:1}.cr-row-pin.pinned{color:var(--text)}.cr-row-pin:hover{background:var(--surface-2)}

@media(max-width:850px){#conversationStage{display:none!important}.focus-main .composer{margin-right:0}.cr-row-pin{display:none}}
.stage-settings{padding:20px 0 6px}.stage-settings h3{margin-top:0!important}.stage-settings p{font-size:11px;line-height:1.6;color:var(--muted);margin-top:12px}.recent-settings select{width:140px}.cr-recent-dismiss{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:7px;border:0;border-radius:7px;background:none;color:var(--muted);margin-right:9px;opacity:0}.cr-recent-dismiss .ic{width:14px;height:14px}.cr-conversation-row:hover .cr-recent-dismiss,.cr-conversation-row:focus-within .cr-recent-dismiss{opacity:1}.cr-recent-dismiss:hover{background:var(--surface-2);color:var(--text)}.cr-dismissed-toggle{margin-top:18px;font-size:11px}.toast-undo{background:none;border:0;color:inherit;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;padding:0;margin-left:16px}.cr-conversation-row:has([data-recent-session][aria-label^="Restore"]){opacity:.65}
@media(min-width:851px){body[data-stage-covers-runs=true] #otherRuns{display:none!important}}
@media(max-width:850px){.cr-recent-dismiss{opacity:1}}
@media(max-width:650px){.cr-recent-dismiss{margin:0 12px 10px auto}}

.automation-work{margin-bottom:32px}.automation-work>.cr-note{line-height:1.6;margin-bottom:16px}.automation-work-row{display:flex;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--border)}.automation-work-row>div{flex:1;min-width:0}.automation-work-row>.cr-secondary{flex:none}.automation-work-open{display:flex;align-items:center;gap:10px;text-align:left;background:none;border:0;padding:0;color:var(--text);max-width:100%;cursor:pointer}.automation-work-open span{min-width:0}.automation-work-open strong,.automation-work-open small{display:block;overflow-wrap:anywhere}.automation-work-open strong{font-size:13px;font-weight:600}.automation-work-open small{font-size:12px;color:var(--muted);margin-top:4px}.automation-work-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.6;margin:12px 0 6px;overflow-wrap:anywhere}.automation-work-status{display:block;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}.automation-work-row details{margin-top:12px;font-size:12px;line-height:1.6}.automation-work-row summary{cursor:pointer;color:var(--muted)}.automation-timer-prompt{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-2);padding:14px;border-radius:10px}.automation-work .cr-empty{padding:18px 0}.automation-work-open:disabled{cursor:default}
@media(max-width:650px){.automation-work-row{flex-wrap:wrap}.automation-work-row>div{flex-basis:100%}}

.automation-provider{font-size:11px;font-weight:500;color:var(--muted);white-space:nowrap}.automation-cron-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;margin-bottom:14px}.automation-cron-identity strong{font-size:13px;overflow-wrap:anywhere}.automation-cron-identity small{grid-row:2;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.automation-cron-identity .automation-provider{grid-column:2;grid-row:1 / 3;align-self:center}.automation-work-open .automation-provider{flex:none;margin-left:10px}

/* The overlapping circles exist only for a collapsed, multi-conversation stack. */
#stageToggle::before,#stageToggle::after{content:"";position:absolute;inset:0;border:1px solid var(--border-strong);border-radius:50%;background:var(--surface-2);z-index:-1;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .22s ease}
#stageToggle.stacked::before{opacity:1;transform:translate(-4px,-5px)}#stageToggle.stacked-many::after{opacity:1;transform:translate(-8px,-10px);z-index:-2}
#conversationStage[data-expanded=true] #stageToggle::before,#conversationStage[data-expanded=true] #stageToggle::after{opacity:0;transform:none}
#conversationStage[data-expanded=false] .stage-caption{visibility:hidden}#stageToggle>.ic{position:relative;background:var(--bg)}#stageToggle:hover>.ic{background:var(--surface-2)}
/* The composer keeps its centring (margin:0 auto): a bare margin-right:0 here
   once pushed it 11px right of the thread and of every bar docked above it. */
@media(prefers-reduced-motion:reduce){#stageToggle::before,#stageToggle::after{transition:none}}

.cr-cost-idr{display:block;font-size:18px;font-weight:500;color:var(--muted);margin-top:5px}.cost-conversations>div>strong small,.cost-project summary>strong small{display:block;font-weight:400;text-align:right;color:var(--muted);margin-top:4px}
#automationAutopilots{margin-bottom:32px}.automation-section-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.automation-section-heading h2{font-size:16px;font-weight:600}.automation-section-heading>span{font-size:12px;color:var(--muted)}.automation-ap-row{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--border)}.automation-ap-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;border:0;background:none;padding:0;text-align:left}.automation-ap-open>span{min-width:0}.automation-ap-open strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.automation-ap-open small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.automation-ap-remaining{color:var(--muted);font-size:12px}.automation-ap-row>.cr-secondary{font-size:12px}
@media(max-width:650px){.automation-ap-row{flex-wrap:wrap;gap:12px}.automation-ap-open{flex-basis:100%}.automation-ap-remaining{flex:1}}

#crLanes>.cr-empty{margin:24px 0;padding:32px 20px;line-height:1.6;border:1px solid var(--border);border-radius:12px;text-align:center;background:var(--surface-2)}
#projTitle{border:0;background:none;color:inherit;font:inherit;text-align:left;padding:3px 5px;margin-left:-5px;border-radius:5px;cursor:text}#projTitle:hover:not(:disabled){background:var(--surface-2)}#projTitle:focus-visible{outline:2px solid var(--border-strong);outline-offset:2px}
.cr-row-menu{width:28px;height:28px;flex:none;opacity:0}.cr-conversation-row:hover .cr-row-menu,.cr-conversation-row:focus-within .cr-row-menu{opacity:1}.cr-project-link.dismissed{opacity:.5}#crDismissedProjects{margin:14px 10px;text-align:left;font-size:11px}
@media(hover:none){.cr-row-menu{opacity:1}}@media(max-width:650px){#crLanes>.cr-empty{margin:20px 0;padding:28px 16px}.cr-row-menu{margin:0 4px 8px auto}}

#stagePinPicker>.cr-search{display:flex;align-items:center;gap:10px;box-sizing:border-box;padding:12px 14px;border:1px solid var(--border);border-radius:11px;background:var(--surface-2);margin:20px 0 12px}
#stagePinPicker>.cr-search:focus-within{border-color:var(--border-strong);box-shadow:0 0 0 3px var(--surface-2)}#stagePinPicker>.cr-search>.ic{width:18px;height:18px;flex:none;color:var(--muted)}
#stagePinPicker #stagePinSearch{flex:1;width:100%;min-width:0;min-height:22px;margin:0;padding:0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;font-size:14px;line-height:1.5;color:var(--text)}#stagePinPicker #stagePinSearch::placeholder{color:var(--muted);opacity:1}
@media(max-width:650px){#stagePinPicker #stagePinSearch{font-size:16px}}

/* Resume is a text action, independent of the circular composer controls. */
.orphan{box-sizing:border-box;flex-wrap:wrap;padding:14px 16px;gap:12px 16px}
.orphan .omsg{min-width:0;flex:1 1 220px;line-height:1.55}.orphan .omsg>.ic{flex:none}.orphan .omsg>span{min-width:0;overflow-wrap:anywhere}
.orphan-resume{flex:none;white-space:nowrap;min-width:84px;min-height:38px}.orphan-resume:disabled{opacity:.65;cursor:wait}
.orphan-error{flex-basis:100%;font-size:12px;line-height:1.5;color:var(--err)}
@media(max-width:550px){.orphan-resume{margin-left:auto;min-height:40px}}

#prompt{tab-size:2}
.cr-draft-tag{flex:none;font-size:9px;font-weight:500;color:var(--muted);background:var(--surface-2);border:1px solid var(--border);border-radius:5px;padding:1px 5px}
/* Workspace outputs and planning use dedicated surfaces. */
#conversationSurface .topbar #chatResults{display:inline-flex!important;order:1}.workspace-actions,.workspace-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.workspace-tools{margin:20px 0 24px}.workspace-tools select,.workspace-form input,.workspace-form select,.workspace-form textarea{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:9px;padding:10px 12px;font:inherit;min-width:0;box-sizing:border-box}.workspace-tools .cr-search{max-width:300px}.workspace-tools .cr-search input{width:100%;min-width:0}.workspace-dialog{width:min(940px,calc(100vw - 32px));max-width:940px;max-height:88dvh;overflow:auto}.workspace-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.workspace-dialog>header h2{margin:0;font-size:19px}.workspace-form{display:grid;gap:16px}.workspace-form label{display:grid;gap:7px;font-size:12px;color:var(--muted)}.workspace-form textarea{resize:vertical;min-height:110px}.workspace-form .workspace-check{display:flex;align-items:center;gap:9px}
#crProjectLinks,.cr-primary-nav{position:relative}#crProjectLinks>:not(.nav-marker),.cr-primary-nav>:not(.nav-marker){position:relative;z-index:1}.nav-marker{position:absolute;top:0;left:0;width:0;height:0;border-radius:7px;background:var(--surface-3);opacity:0;pointer-events:none;z-index:0}body.rc-marker #crProjectNav :is(a,button)[aria-current=page],body.rc-marker #crProjectNav .cr-project-link.selected{background:transparent}
input.setting-switch[role=switch]{appearance:none;-webkit-appearance:none;position:relative;display:block;flex:none;width:36px;height:22px;margin:0;padding:0;border:1px solid var(--border-strong);border-radius:20px;background:var(--surface-3);cursor:pointer;transition:background .15s}
input.setting-switch[role=switch]::before{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--muted);transition:transform .15s}
input.setting-switch[role=switch]:checked{background:var(--text);border-color:var(--text)}
input.setting-switch[role=switch]:checked::before{background:var(--bg);transform:translateX(14px)}
input.setting-switch[role=switch]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.memory-switch{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);white-space:nowrap}
.credit-switches{margin:14px 0 0;padding:16px 18px;border:1px solid var(--border);border-radius:12px;background:var(--bg)}.credit-switches header h3{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;margin:0 0 4px}.credit-switches header .ic{width:15px;height:15px;color:var(--amber)}.credit-switches header p{font-size:11px;color:var(--muted);margin:0 0 12px;line-height:1.6}.credit-switch{white-space:normal;justify-content:flex-start;padding:9px 0;border-top:1px solid var(--border)}.credit-switch span{display:flex;flex-direction:column;gap:3px;color:var(--text)}.credit-switch strong{font-size:12px;font-weight:550}.credit-switch small{font-size:11px;color:var(--muted);line-height:1.5}.account-availability{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}.account-availability .cr-account-state,.credit-badge{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:6px;font-size:10px;line-height:1.3;max-width:100%;box-sizing:border-box}.account-availability .cr-account-state{white-space:nowrap}.credit-badge{white-space:normal;text-align:left}.credit-badge{background:var(--surface-2);color:var(--muted)}.credit-badge.on{background:var(--amber-bg);color:var(--amber)}.credit-badge.off{color:var(--faint);background:transparent;border:1px solid var(--border)}.cr-account-state.unknown{color:var(--muted);background:var(--surface-2)}.account-availability .next-badge{font-size:10px;color:var(--faint);margin:0;padding:0}
.memory-chip{gap:6px}.memory-chip[aria-pressed=true]{background:var(--surface-3);border-color:var(--border-strong);color:var(--text)}.memory-exclusions{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px 24px;margin:8px 0 18px}.memory-exclusions .memory-switch{white-space:normal;justify-content:flex-start}.memory-exclusions .memory-switch span{display:flex;flex-direction:column;gap:2px;color:var(--text)}.memory-exclusions .memory-switch small{font-size:10px;color:var(--faint)}
.memory-pin{flex:none;color:var(--muted);border:1px solid transparent;border-radius:7px}.memory-pin:hover{background:var(--surface-2);color:var(--text)}.memory-pin[aria-pressed=true]{color:var(--text);background:var(--surface-2);border-color:var(--border)}.memory-pin .ic{width:15px;height:15px}.workspace-form footer{justify-content:flex-end}.workspace-form [role=alert]{color:var(--err);margin:0}.workspace-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px;margin:16px 0;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;font-size:12px}.workspace-bulk[hidden]{display:none}.workspace-bulk strong{margin-right:10px}.workspace-bulk button{border:1px solid var(--border);border-radius:7px;padding:7px 9px;background:var(--bg);color:var(--text);font:inherit}.bulk-checkbox{flex:none;width:17px;height:17px;margin-left:12px;accent-color:var(--text)}.cr-row-tags{font-size:10px;font-weight:400;color:var(--muted);margin-left:8px}.artifact-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:18px;margin-top:20px}.artifact-card{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--bg);min-width:0}.artifact-copy{padding:18px;display:flex;flex-direction:column;gap:9px}.artifact-copy>strong{font-size:14px;overflow-wrap:anywhere}.artifact-copy small{font-size:11px;color:var(--muted);line-height:1.5}.artifact-image{display:block;border:0;background:var(--surface-2);width:100%;height:180px;padding:0}.artifact-image img{width:100%;height:100%;object-fit:contain}.artifact-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:7px}.artifact-actions .cr-icon{margin-left:auto}.artifact-large{display:block;max-width:100%;max-height:70vh;margin:auto;object-fit:contain}.test-result{font-size:12px;line-height:1.65;margin:0;white-space:pre-wrap}.test-result.passed{color:var(--ok)}.test-result.failed{color:var(--err)}.planner-item{display:flex;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--border);min-width:0}.planner-order{color:var(--faint);font-size:12px;width:22px;flex:none;cursor:grab}.planner-copy{flex:1;min-width:0}.planner-copy strong{font-size:13px}.planner-copy p{font-size:13px;line-height:1.6;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:120px;overflow:auto}.planner-copy small{color:var(--muted);font-size:11px}.planner-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:245px}.content .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:0 0 14px;border:1px solid var(--border);border-radius:10px}.content .table-scroll table{display:table;width:max-content;min-width:100%;max-width:none;margin:0;border-collapse:collapse}.content .table-scroll th,.content .table-scroll td{min-width:9ch;max-width:48ch;word-break:normal;overflow-wrap:break-word;white-space:normal;padding:10px 12px;line-height:1.6}.content .table-scroll th{white-space:nowrap}.content .table-scroll tr:first-child th{border-top:0}.content .table-scroll th:first-child,.content .table-scroll td:first-child{border-left:0}.content .table-scroll th:last-child,.content .table-scroll td:last-child{border-right:0}
@media(max-width:650px){#crArtifacts,#crPlanner{padding:24px 16px}.workspace-dialog{padding:18px;width:calc(100vw - 20px)}.planner-item{flex-wrap:wrap;gap:10px}.planner-actions{margin-left:32px;max-width:none}.planner-copy{flex-basis:calc(100% - 40px)}.workspace-tools>select{max-width:100%}.workspace-bulk{gap:7px}.cr-tools .cr-tabs{overflow-x:auto;max-width:100%}#conversationSurface .topbar #chatResults{width:30px;min-width:30px;padding:5px}.artifact-grid{grid-template-columns:1fr}}
#deliveryStrip{max-width:780px;margin:6px auto;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;font-size:11px;color:var(--muted)}#deliveryStrip[hidden]{display:none}#deliveryStrip button{border:0;background:none;color:var(--text);font:inherit;cursor:pointer;padding:5px}.message-delivery{display:block;text-align:right;font-size:10px;color:var(--muted);margin-top:5px}.delivery-item{padding:18px 0;border-bottom:1px solid var(--border)}.delivery-item strong{font-size:13px}.delivery-item p{white-space:pre-wrap;max-height:140px;overflow:auto;font-size:13px;line-height:1.6}.delivery-item small{display:block;color:var(--muted);font-size:11px;margin-bottom:12px}
@media(max-width:400px){#conversationSurface .topbar #chatResults{display:none!important}}

.workspace-form-dialog{width:min(560px,calc(100vw - 32px))}.workspace-tools .cr-search{margin-left:0}.planner-actions{max-width:none;flex:none}.artifact-actions a{text-decoration:none}.workspace-dialog .cr-note{line-height:1.6}
@media(max-width:650px){#crArtifacts .cr-heading,#crPlanner .cr-heading{flex-wrap:wrap;gap:16px}#artifactKinds{overflow-x:auto;max-width:100%}.planner-actions{flex-wrap:wrap}}

/* Account routing, capacity, and editable provider handoffs. */
.route-tabs{display:flex;gap:8px;margin:8px 0 20px;border-bottom:1px solid var(--border);padding-bottom:10px}.route-tabs button{border:0;border-radius:8px;padding:9px 14px;background:transparent;color:var(--muted);font:inherit;cursor:pointer}.route-tabs button.active{background:var(--surface-2);color:var(--text)}
.route-decision{background:var(--surface-2);border:1px solid var(--border);border-radius:14px;padding:18px;margin-bottom:16px}.route-decision>strong{display:block;font-size:20px;margin:6px 0}.route-decision p,.route-candidates p{font-size:13px;color:var(--muted);margin:6px 0}.route-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}.route-candidates article{padding:14px;border:1px solid var(--border);border-radius:12px;min-width:0}.route-candidates article>div{display:flex;align-items:center;gap:10px;justify-content:space-between}.route-candidates strong{overflow-wrap:anywhere}.route-candidates small{color:var(--muted)}.route-badge{font-size:11px;white-space:nowrap;color:var(--muted)}.route-badge.eligible{color:var(--accent)}.route-controls{margin-top:24px;border-top:1px solid var(--border);padding-top:20px}.route-controls footer{display:flex;gap:10px;justify-content:flex-end}.route-history{display:grid;gap:14px}.route-history article{border-bottom:1px solid var(--border);padding:0 0 14px}.route-history time{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.route-history strong{text-transform:capitalize}.route-history p{margin:4px 0}.route-history details{margin-top:8px}.route-history summary{cursor:pointer;margin-bottom:12px}.route-link{margin-bottom:14px}
.health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.health-card{border:1px solid var(--border);padding:18px;border-radius:14px;min-width:0}.health-card h3{margin:0}.health-card dl{display:grid;grid-template-columns:100px 1fr;gap:12px;font-size:13px}.health-card dt{color:var(--muted)}.health-card dd{margin:0;overflow-wrap:anywhere}.capacity-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.capacity-fields small{font-size:11px;color:var(--muted)}.workspace-dialog:has(.health-grid){width:min(940px,calc(100vw - 32px))}.handoff-dialog{width:min(780px,calc(100vw - 32px))!important}.route-provider{border:0;padding:0;margin:0;display:flex;gap:14px}.route-provider legend{margin-bottom:10px}.route-provider label{display:flex!important;align-items:center;gap:8px}.route-provider input{width:auto!important}.route-controls [role=alert],.health-card [role=alert]{font-size:13px}

.route-controls p,.handoff-dialog .workspace-form p{margin:0}.route-controls [role=alert]:empty,.handoff-dialog [role=alert]:empty,.health-card [role=alert]:empty{display:none}.health-card [role=alert].saved{color:var(--ok)}.health-card{align-content:start}.route-controls footer,.handoff-dialog footer{margin-top:0}.handoff-dialog .workspace-form{gap:18px}
/* Memory uses a quiet document list, with details only when opened. */
#crMemory{padding:38px 42px;min-width:0;height:calc(100dvh - 66px);overflow:auto;background:var(--bg)}
.memory-stats{display:flex;align-items:center;gap:26px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:0 0 30px}.memory-stats strong{color:var(--text);font-weight:550;margin-right:4px}.memory-enabled{margin-left:auto}.memory-tabs{border-bottom:1px solid var(--border);padding-bottom:8px;margin-bottom:22px;gap:8px}.memory-tabs span:not(:empty){margin-left:5px;border-radius:5px;background:var(--surface-3);padding:1px 5px;font-size:10px}.memory-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.memory-filters .cr-search{flex:1;min-width:180px;max-width:none;margin:0}.memory-filters input:not([type=checkbox]),.memory-filters select{font:inherit;font-size:12px;min-width:0;max-width:220px;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:9px;padding:10px 12px}.memory-filters .cr-search input{border:0;background:none;max-width:none;flex:1;padding:0}.memory-filters .cr-search{border:1px solid var(--border);background:var(--bg);padding:10px 12px;gap:8px;border-radius:9px}.memory-filters .workspace-check{font-size:12px;color:var(--muted)}#memoryNotice{font-size:12px;margin:20px 0 12px;line-height:1.6}.memory-row{display:flex;align-items:center;gap:16px;padding:20px 8px;border-bottom:1px solid var(--border);min-width:0}.memory-row:hover{background:var(--sidebar)}.memory-row>input{width:16px;height:16px;accent-color:var(--text);flex:none}.memory-row-main{display:flex;flex:1;flex-direction:column;gap:8px;min-width:0;text-align:left;border:0;background:none;color:var(--text);padding:0;font:inherit}.memory-row-top{display:flex;align-items:center;gap:10px;min-width:0}.memory-row-top strong{font-size:14px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.memory-row-top>.ic{width:13px;height:13px;flex:none}.memory-kind{border-radius:5px;padding:3px 6px;background:var(--surface-2);color:var(--muted);font-size:10px;white-space:nowrap;font-weight:400}.memory-excerpt{color:var(--muted);font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.memory-meta{font-size:11px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.memory-warning{font-size:11px;color:var(--warn,#a16b24)}.memory-row-end{display:flex;flex-direction:column;gap:12px;align-items:flex-end;font-size:10px;color:var(--muted);flex:none}.memory-source-icon{display:grid;place-items:center;background:var(--surface-2);border-radius:10px;width:36px;height:36px;flex:none;color:var(--muted)}.memory-source-icon .ic{width:17px;height:17px}.memory-empty{padding:64px 20px;text-align:center;color:var(--muted)}.memory-empty>.ic{width:28px;height:28px}.memory-empty h3{font-size:15px;font-weight:550;color:var(--text);margin:18px 0 8px}.memory-empty p{font-size:12px;margin:0;line-height:1.6}.memory-pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:22px 0;font-size:12px;color:var(--muted)}.memory-pagination>span{margin-right:auto}
.memory-detail-dialog{width:min(740px,calc(100vw - 32px))}.memory-detail-dialog>header{align-items:flex-start}.memory-detail-dialog h2{line-height:1.4;overflow-wrap:anywhere}.memory-detail-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:var(--muted);font-size:11px;margin:20px 0}.memory-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;margin:20px 0;max-height:48dvh;overflow:auto}.memory-detail-actions{display:flex;gap:8px;padding-bottom:24px;border-bottom:1px solid var(--border)}.memory-properties{display:grid;grid-template-columns:105px 1fr;gap:12px;margin:24px 0;font-size:12px;line-height:1.6}.memory-properties dt{color:var(--muted)}.memory-properties dd{margin:0;overflow-wrap:anywhere}.memory-detail-dialog h3{font-size:13px;font-weight:550;margin:22px 0 12px}.memory-detail-dialog h3 small{margin-left:6px;color:var(--muted);font-weight:400}.memory-context-row{width:100%;display:flex;justify-content:space-between;gap:12px;align-items:center;text-align:left;padding:12px 0;border:0;border-bottom:1px solid var(--border);background:none;color:var(--text);font:inherit;font-size:12px}.memory-context-row small{color:var(--muted);font-size:10px}.memory-context-row em{font-size:10px;font-style:normal;color:var(--warn,#a16b24)}.memory-related{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:8px 0}.memory-related small{color:var(--muted);font-size:10px}.memory-related>.cr-icon{margin-left:auto}.memory-section-title{display:flex;align-items:center;justify-content:space-between}.memory-revisions{margin-top:25px;border-top:1px solid var(--border);padding-top:20px}.memory-detail-dialog summary,.memory-advanced summary{cursor:pointer;font-size:12px;padding:12px 0;color:var(--muted)}.memory-revisions details{padding:5px 0}.memory-revisions .memory-content{font-size:12px;background:var(--surface-2);padding:16px;border-radius:10px}.memory-editor-dialog{width:min(690px,calc(100vw - 32px))}.memory-editor{gap:18px}.memory-editor textarea{line-height:1.7;min-height:180px}.memory-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.memory-share{border:1px solid var(--border);border-radius:10px;padding:14px;display:grid;gap:12px;max-height:180px;overflow:auto}.memory-share legend{font-size:12px;color:var(--muted);padding:0 5px}.workspace-form .memory-share label{font-size:12px}.memory-advanced{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:2px 0}.memory-advanced[open]{display:grid;gap:15px;padding-bottom:16px}.memory-source-ref{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.memory-context-controls{display:flex;gap:8px;align-items:center}.memory-context-controls .cr-search{flex:1;margin:0;max-width:none;border:1px solid var(--border);border-radius:10px;padding:10px}.cr-dialog .memory-context-controls .cr-search input:not([type=radio]):not([type=checkbox]){width:100%;min-width:0;background:none;border:0;border-radius:0;padding:0;color:var(--text);outline:none;font-size:13px}.memory-context-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px 0;font-size:12px}.memory-context-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:12px}.memory-context-item .memory-row-main{gap:5px}.memory-context-item .memory-row-main strong{font-weight:550}.memory-context-item>span{flex:1;min-width:0;overflow-wrap:anywhere}.memory-context-item small{font-size:10px;color:var(--muted)}.memory-context-item .workspace-check{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;color:var(--muted)}.memory-activity{border-bottom:1px solid var(--border);padding:14px 0}.memory-activity>summary{display:flex;justify-content:space-between;gap:20px;cursor:pointer;font-size:12px;line-height:1.6;padding:6px}.memory-activity>summary>span:first-child{min-width:0}.memory-activity>summary>span:last-child{text-align:right;flex:none;color:var(--muted)}.memory-activity small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.memory-activity .ic{width:14px;height:14px;margin-right:9px}.memory-activity-body{padding:12px;font-size:12px;color:var(--muted)}.memory-editor [role=alert]:empty{display:none}
/* Release information remains visible, with explicit stale-page detection. */
#currentVersion{border:0;background:none;color:var(--muted);font:inherit;font-size:10px;padding:8px 10px;border-radius:7px;white-space:nowrap;margin-left:auto}#currentVersion:hover{background:var(--surface-2);color:var(--text)}#currentVersion[data-stale=true]{background:var(--accent-weak);color:var(--text)}.release-info{display:grid;grid-template-columns:120px 1fr;gap:15px;font-size:13px;margin:24px 0}.release-info dt{color:var(--muted)}.release-info dd{margin:0;overflow-wrap:anywhere}.release-state{font-size:13px;line-height:1.7;color:var(--muted)}
/* Account identity and delivery share one footer instead of stacking rows. */
.composer-footer{display:flex;gap:14px;align-items:center;border-top:1px solid var(--border);margin-top:10px;padding-top:8px;min-width:0}.composer-footer .send-account-chip{flex:1;min-width:0;width:auto;border:0;margin:0;padding:3px 0;min-height:27px}.composer-footer #deliveryStrip{flex:none;margin:0;padding:0;font-size:10px;max-width:42%}.composer-footer #deliveryStrip button{display:flex;align-items:center;gap:5px;padding:5px 0;color:var(--muted);font-size:10px;white-space:nowrap}.composer-footer #deliveryStrip button:hover{color:var(--text)}#deliveryStrip .delivery-dot{width:5px;height:5px;border-radius:50%;background:var(--ok,#478968);flex:none}#deliveryStrip[data-status=failed] .delivery-dot,#deliveryStrip[data-status=unknown] .delivery-dot,#deliveryStrip[data-status=uncertain] .delivery-dot{background:var(--warn,#a16b24)}
.results-dialog{width:min(860px,calc(100vw - 32px))}.results-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--border)}.results-toolbar .cr-tabs{flex:1}.results-toolbar .cr-tabs button{font-size:11px}.results-dialog .artifact-grid{gap:14px;margin-top:18px;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))}.results-dialog .artifact-copy{padding:16px;gap:7px}.results-dialog .artifact-actions{margin-top:6px;gap:10px}.results-dialog .artifact-image{height:170px}.results-dialog .artifact-copy>small:last-of-type{display:none}.results-dialog .artifact-grid:has(>.artifact-card:only-child){grid-template-columns:1fr}.results-dialog .artifact-card:only-child:has(.artifact-image){display:grid;grid-template-columns:1fr 1fr;align-items:center}.results-dialog .artifact-card:only-child .artifact-image{height:230px}.results-note{font-size:11px;color:var(--muted);margin:14px 0 0}.delivery-dialog{width:min(690px,calc(100vw - 32px))}.delivery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding-bottom:16px}.delivery-toolbar .cr-tabs{gap:8px}.delivery-item{padding:20px 0}.delivery-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.delivery-item strong{font-size:11px;font-weight:500;border-radius:5px;padding:3px 6px;background:var(--surface-2);color:var(--muted)}.delivery-item[data-status=accepted] strong{color:var(--ok,#478968)}.delivery-item[data-status=failed] strong,.delivery-item[data-status=uncertain] strong{color:var(--err)}.delivery-item p{margin:12px 0;font-size:13px;max-height:110px;line-height:1.7}.delivery-item time{font-size:10px;color:var(--muted);flex:none}.delivery-item small{font-size:11px;line-height:1.6;margin:8px 0;color:var(--muted)}.delivery-item .workspace-actions{gap:12px}.delivery-item .workspace-actions button{font-size:11px;padding:5px 0}.delivery-item .workspace-actions .cr-secondary{padding:6px 10px}.delivery-empty{padding:40px 12px;text-align:center;color:var(--muted);font-size:13px}
@media(max-width:900px){#crMemory{padding:28px 24px}.memory-enabled{margin-left:0}.memory-stats{gap:16px}.memory-row-end time{display:none}.composer-footer .send-account-chip small{display:none}.memory-row-top{flex-wrap:wrap;gap:6px}.memory-row-top strong{white-space:normal}}
@media(max-width:650px){#crMemory{padding:24px 16px;height:calc(100dvh - 58px)}#crMemory .cr-heading{gap:16px;flex-wrap:wrap}.memory-tabs{overflow-x:auto;flex-wrap:nowrap;white-space:nowrap}.memory-tabs button{flex:none;font-size:11px;padding:8px}.memory-filters .cr-search{flex-basis:100%}.memory-filters select{flex:1;max-width:100%;font-size:12px}.memory-stats{font-size:11px}.memory-row{gap:10px;padding:18px 0}.memory-row-top strong{font-size:13px}.memory-row-end{display:none}.memory-form-grid{grid-template-columns:1fr}.memory-detail-dialog,.memory-editor-dialog{width:calc(100vw - 20px);padding:20px}.memory-properties{grid-template-columns:80px 1fr;font-size:11px}.memory-context-summary{flex-wrap:wrap}.memory-activity>summary{flex-wrap:wrap;gap:8px}.memory-activity>summary>span:last-child{text-align:left}#currentVersion{font-size:9px;max-width:100px;overflow:hidden;text-overflow:ellipsis;padding:8px 5px}.composer-footer{gap:10px}.composer-footer #deliveryStrip{max-width:40%}.composer-footer #deliveryStrip button{font-size:9px;overflow:hidden;text-overflow:ellipsis}.results-dialog .artifact-card:only-child:has(.artifact-image){display:block}.results-toolbar .cr-tabs{width:100%;flex:auto}.delivery-toolbar .cr-tabs button{font-size:11px}.memory-context-controls{flex-wrap:wrap}.memory-content{font-size:13px}}

/* Unread replies, including newly finished tasks, outrank every run color.
   Opening the conversation restores its state color; selection uses the outer outline. */
:root{--stage-unread:#3976cf}html[data-theme=dark]{--stage-unread:#80b2ff}.stage-conversation.unread{border-color:var(--stage-unread);background:var(--stage-unread);color:var(--bg)}.stage-conversation.unread .stage-caption{border-color:var(--stage-unread)}.stage-conversation.unread .stage-caption strong{color:var(--stage-unread);font-weight:700}.stage-conversation.unread .stage-status{display:block;background:var(--chat-state)}#conversationStage[data-unread=true] #stageCount{background:var(--stage-unread);color:#fff}.stage-settings .cr-segments{flex-wrap:wrap}
#crMemory{width:100%;max-width:none;margin:0}
@media(max-width:650px){.memory-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.memory-filters>.cr-search{grid-column:1/-1;width:100%;min-width:0;box-sizing:border-box}.memory-filters>select,.memory-filters>input{width:100%;max-width:none;box-sizing:border-box}.memory-filters>.workspace-check{grid-column:1/-1}.memory-context-row{flex-wrap:wrap}.memory-row-top .memory-kind{font-size:9px}}

/* Title review fits a single suggestion or a selected group without fixed empty space. */
.title-review-dialog{width:min(880px,calc(100vw - 28px))}.title-review-tools{display:flex;gap:16px;align-items:center;margin:22px 0 8px}.title-review-tools .cr-search{flex:1;min-width:0}.title-review-tools .cr-search input{width:100%;min-width:0}.title-review-tools>button{flex:none}.title-suggestions{margin:12px 0;max-height:56vh;overflow:auto}.title-suggestion{display:flex;gap:15px;padding:20px 2px;border-bottom:1px solid var(--border)}.title-suggestion>input{flex:none;margin:5px 0 0;align-self:flex-start;accent-color:var(--text)}.title-suggestion-body{min-width:0;flex:1}.title-suggestion-meta{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted);margin-bottom:15px}.title-suggestion-meta>span:last-child{white-space:nowrap}.title-suggestion[data-status=ready] .title-suggestion-meta>span:last-child{color:var(--ok,#478968)}.title-name-comparison{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);align-items:center;gap:16px}.title-name-comparison small{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.title-name-comparison span,.title-name-comparison strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.title-name-comparison>div:first-child>span{color:var(--muted)}.title-name-arrow{color:var(--muted)}.title-suggestion-actions{display:flex;gap:14px;margin-top:12px}.title-suggestion-actions:empty{display:none}.title-review-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;padding-top:14px;border-top:1px solid var(--border)}.title-review-footer>small{color:var(--muted)}.title-settings-form>footer{display:flex;gap:12px;justify-content:space-between}.title-settings-form .workspace-check{align-items:center;font-size:14px}.title-suggestion .cr-note{margin:10px 0 0}
@media(max-width:650px){.title-review-dialog{padding:20px;width:calc(100vw - 20px)}.title-review-tools{gap:10px;flex-wrap:wrap}.title-review-tools .cr-search{flex-basis:100%}.title-name-comparison{grid-template-columns:minmax(0,1fr);gap:12px}.title-name-arrow{display:none}.title-suggestion{gap:10px;padding:16px 0}.title-suggestion-meta{flex-wrap:wrap;gap:6px}.title-settings-form>footer{flex-wrap:wrap}.title-review-footer{gap:10px}}
.title-review-paging{display:flex;gap:8px;align-items:center;min-width:0;color:var(--muted)}.title-review-paging>small{font-size:11px;white-space:nowrap}.title-review-paging>[data-title-count]{margin-right:8px}.title-review-paging>button{width:28px;height:28px}
@media(max-width:650px){.title-review-footer{flex-wrap:wrap}.title-review-paging{flex:1;justify-content:space-between}.title-review-footer>.cr-primary{width:100%}}
.title-review-tools[hidden]{display:none}.title-review-tools .cr-search input{border:0;background:transparent;box-shadow:none;outline:none;padding:0;min-height:0}.title-review-tools .cr-search:focus-within{border-color:var(--muted)}.title-suggestion:last-child{border-bottom:0}.title-review-paging.single-page>button,.title-review-paging.single-page>[data-title-page]{display:none}
/* Project identity is stable; conversation names remain visible beneath it. */
.project-heading #chatProjectName{display:block;max-width:100%;font-size:13px;line-height:1.4;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-heading #projTitle{font-size:12px;font-weight:400;color:var(--muted);line-height:1.4;padding-top:0;padding-bottom:0}.project-heading #projCwd{display:none}.cr-row-title{font-weight:600}.cr-row-subtitle{font-size:12px;line-height:1.5}.stage-caption strong{font-weight:600}.stage-caption-status{display:none}.stage-conversation .stage-caption{max-width:min(270px,calc(100vw - 110px))}.stage-conversation .stage-caption small{font-size:11px}.stage-pin-choice strong{font-weight:600}.stage-pin-choice small{font-size:12px}.planner-conversation{display:block;margin-top:3px}.delivery-identity{display:flex;flex-direction:column;gap:3px;margin:9px 0}.delivery-identity strong{font-size:12px}.delivery-identity small{font-size:12px;color:var(--muted)}#conversationStage[data-expanded=false] #stageToggleCaption{visibility:visible}#conversationStage[data-expanded=true] #stageToggleCaption{visibility:hidden}
@media(max-width:650px){.cr-row-subtitle{font-size:11px}.project-heading #chatProjectName{font-size:12px}.project-heading #projTitle{font-size:11px}}

/* The conversation title stays the rename target. Its visual priority follows the device setting. */
body[data-conversation-label-order=conversation] .project-heading #projTitle{order:1;font-size:13px;font-weight:600;color:var(--text)}
body[data-conversation-label-order=conversation] .project-heading #chatProjectName{order:2;font-size:12px;font-weight:400;color:var(--muted)}
.delivery-identity>:first-child{display:block;margin:0;padding:0;background:none!important;color:var(--text)!important;font-size:12px!important;font-weight:600!important;line-height:1.4}
.delivery-identity>:nth-child(2){display:block;margin:0!important;padding:0!important;background:none!important;color:var(--muted)!important;font-size:12px!important;font-weight:400!important;line-height:1.4}

/* The compatibility bundle keeps its original markup, so reorder its two labels here. */
body[data-conversation-label-template=static][data-conversation-label-order=conversation] .cr-row-title{order:2;font-size:12px;font-weight:400;color:var(--muted)}
body[data-conversation-label-template=static][data-conversation-label-order=conversation] .cr-row-subtitle{order:1;font-size:13px;font-weight:600;color:var(--text)}
body[data-conversation-label-template=static][data-conversation-label-order=conversation] .stage-caption{display:flex;flex-direction:column}
body[data-conversation-label-template=static][data-conversation-label-order=conversation] .stage-caption strong{order:2;font-size:11px;font-weight:400;color:var(--muted)}
body[data-conversation-label-template=static][data-conversation-label-order=conversation] .stage-caption small{order:1;font-size:12px;font-weight:600;color:var(--text)}
body[data-conversation-label-template=static][data-conversation-label-order=conversation] .stage-pin-choice>span,body[data-conversation-label-template=static][data-conversation-label-order=conversation] .automation-ap-open>span{display:flex;flex-direction:column}
body[data-conversation-label-template=static][data-conversation-label-order=conversation] .stage-pin-choice strong,body[data-conversation-label-template=static][data-conversation-label-order=conversation] .automation-ap-open strong,body[data-conversation-label-template=static][data-conversation-label-order=conversation] .planner-copy strong{order:2;font-size:12px;font-weight:400;color:var(--muted)}
body[data-conversation-label-template=static][data-conversation-label-order=conversation] .stage-pin-choice small,body[data-conversation-label-template=static][data-conversation-label-order=conversation] .automation-ap-open small,body[data-conversation-label-template=static][data-conversation-label-order=conversation] .planner-conversation{order:1;font-size:13px;font-weight:600;color:var(--text)}

/* Sender attribution replaces YOU without adding another badge or toolbar. */
.msg.user>.role.message-sender{display:flex;align-items:center;justify-content:flex-end;gap:8px;max-width:88%;margin-left:auto;margin-bottom:9px;text-transform:none;letter-spacing:0;color:var(--muted);text-align:right;line-height:1.4}
.message-sender>.ic{width:16px;height:16px;flex:none;color:var(--muted)}
.message-sender>span{min-width:0;display:flex;flex-direction:column;gap:2px}
.message-sender strong,.message-sender small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-sender strong{font-size:12px;font-weight:600;color:var(--text)}
.message-sender small{font-size:11px;font-weight:400;color:var(--muted)}

/* Account connections share the dashboard's dialog and form styling. */
.onboarding-dialog{width:min(520px,calc(100vw - 28px))}.onboarding-dialog .utility-body{min-width:0}.account-onboarding .onboarding-intro{margin:0 0 20px;color:var(--muted);font-size:13px;line-height:1.6}.onboarding-providers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.onboarding-providers button{display:flex;flex-direction:column;gap:7px;align-items:flex-start;text-align:left;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--bg);color:var(--text)}.onboarding-providers button[aria-selected=true]{border-color:var(--text);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--text)}.onboarding-providers strong{font-size:15px;font-weight:600}.onboarding-providers small{color:var(--muted);font-size:11px;line-height:1.4}.account-onboarding .onboarding-note,.onboarding-steps{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 18px}.onboarding-steps{padding-left:20px}.onboarding-steps li+li{margin-top:12px}.account-onboarding .acct-link{display:inline-block;color:var(--text);font-weight:500;font-size:13px}.account-onboarding label{display:block;font-size:12px;margin:20px 0 8px}.account-onboarding input.pk-search{box-sizing:border-box;width:100%;margin:0 0 12px;padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--text);font:inherit;font-size:14px}.account-onboarding input:focus{outline:2px solid var(--text);outline-offset:2px}.account-onboarding .send{width:100%;min-height:42px;border-radius:9px;font-size:13px}.onboarding-device-code{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:var(--surface-2);border:1px solid var(--border);border-radius:10px}.onboarding-device-code code{font-size:22px;letter-spacing:2px;overflow-wrap:anywhere}.onboarding-device-code .send{width:auto;flex:none;font-size:12px;min-height:34px}.onboarding-status{font-size:12px;line-height:1.6;color:var(--muted);margin:16px 0}.onboarding-actions{display:flex;gap:10px;margin-top:8px}.account-onboarding .gate-err{text-align:left;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.account-onboarding .gate-err:empty{display:none}.account-onboarding .codex-adv{border-top:1px solid var(--border);margin-top:24px;padding-top:16px;font-size:12px;color:var(--muted)}.account-onboarding .codex-adv summary{cursor:pointer}.account-onboarding .codex-adv[open] summary{margin-bottom:14px}.account-onboarding [hidden]{display:none!important}@media(max-width:650px){.account-onboarding input.pk-search{font-size:16px}.onboarding-providers button{padding:13px}.onboarding-device-code code{font-size:18px}}

/* Exact memory references keep source ownership readable in narrow dialogs. */
.memory-context-item > span { min-width:0; overflow-wrap:anywhere; }
.memory-context-item > span > small { display:block; color:var(--muted); }

.memory-detail-dialog [data-document] summary,.memory-source-search-hit { overflow-wrap:anywhere; }
.memory-source-search-hit { display:grid; gap:6px; padding:14px 0; width:100%; text-align:left; }
#memoryFileActions { margin-bottom:18px; }

/* Keep saved-file fields and source results spaced like the existing workspace forms. */
.memory-file-dialog .workspace-form>p{margin:0}
.memory-file-dialog [role=status]:empty,.memory-file-dialog [role=alert]:empty{display:none}
#memoryDocumentJobs h3{margin:24px 0 12px;font-size:14px}
.memory-source-search-hit{display:flex;width:100%;gap:8px;padding:16px 8px;border-bottom:1px solid var(--border)}
#memoryFileActions[hidden]{display:none}

.memory-detail-actions{flex-wrap:wrap}
.workspace-dialog>header>h2{min-width:0;overflow-wrap:anywhere}
.workspace-dialog>header>.cr-icon{flex:none}
.memory-context-controls>.cr-secondary{white-space:normal}
.memory-context-item>span>small{display:block;margin-top:4px}
.memory-reference-dialog [data-results]{max-height:40dvh;overflow:auto}
.memory-reference-dialog h3{margin:0 0 12px;font-size:14px}
.memory-reference-dialog [role=alert]:empty{display:none}
#memoryPages[hidden]{display:none}

.workspace-form{grid-template-columns:minmax(0,1fr)}
.workspace-form>*,.workspace-form label>*{min-width:0}
.memory-share-dialog .workspace-form p{overflow-wrap:anywhere;margin:0}
.memory-share-dialog [role=alert]:empty{display:none}

/* Action rows use the message column; full tool input opens in the top layer. */
.thread .act{width:100%;max-width:100%;box-sizing:border-box;min-width:0;min-height:28px;cursor:pointer;border-radius:6px;padding:3px 0;margin:2px 0}
.thread .act .el{flex:1;min-width:0;max-width:none}
.thread .act>.ic{flex:none}
.thread .act:hover{background:var(--surface-2);color:var(--text)}
.act[role=button]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.modal.action-detail{width:100%;max-width:800px}
.action-detail h3{overflow-wrap:anywhere}
.action-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow:auto;font-size:12px;line-height:1.6;margin:16px 0 20px}
dialog.modern-prompt:has(.action-detail){width:min(840px,calc(100vw - 32px))}
/* Phones: the conversation takes the whole screen; its hamburger opens the Project
   drawer; the topbar is one row of icons; the composer keeps its controls on one
   row each so the transcript gets the height back. */
@media(max-width:650px){
  body.rc-workspace-ready[data-chat-mode=page] #conversationSurface{inset:0;height:100dvh}
  body.rc-workspace-ready .focus-main .topbar #menuBtn{display:inline-grid!important;order:-3;width:34px;height:34px;flex:none;color:var(--text)}
  body.rc-workspace-ready .focus-main>.topbar{min-height:52px;height:auto;padding:8px 8px 6px;flex-wrap:nowrap;gap:2px;align-items:center}
  body.rc-workspace-ready .focus-main .topbar .project-heading{order:-2;flex:1 1 auto;min-width:0}
  body.rc-workspace-ready .focus-main .topbar #chatActivity span,body.rc-workspace-ready .focus-main .topbar #autopilotBtn span{display:none}
  body.rc-workspace-ready .focus-main .topbar #chatActivity,body.rc-workspace-ready .focus-main .topbar #autopilotBtn{padding:6px;min-height:32px;width:32px;justify-content:center;gap:0}
  body.rc-workspace-ready .focus-main .topbar #chatActivity small{position:absolute;top:2px;right:2px;font-size:9px}
  body.rc-workspace-ready .focus-main .topbar #chatActivity{position:relative}
  body.rc-workspace-ready .focus-main .topbar .cr-icon{width:32px;height:32px}
  #conversationSurface .topbar #chatClose{order:9}
  #conversationSurface .topbar #chatTerminal,#conversationSurface .topbar #chatAgentTree{display:none}
  body.rc-workspace-ready .focus-main .thread{padding:16px 14px 20px}
  body.rc-workspace-ready .focus-main .composer-wrap{padding:6px 10px 10px}
  body.rc-workspace-ready .focus-main .composer{padding:8px 10px 8px;border-radius:14px}
  body.rc-workspace-ready .focus-main #prompt{min-height:38px}
  body.rc-workspace-ready .focus-main .selects{flex-wrap:nowrap;width:100%;gap:5px;margin-bottom:4px;align-items:center}
  body.rc-workspace-ready .focus-main .select{flex:1 1 0;min-width:0}
  body.rc-workspace-ready .focus-main .select select{max-width:none;width:100%;font-size:11px;padding:5px 18px 5px 8px}
  body.rc-workspace-ready .send-account-chip{min-height:26px;padding:6px 2px 0;margin-top:6px;font-size:11px}
  body.rc-workspace-ready #runningAccountLabel{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 4px}
  body.rc-workspace-ready .focus-main .bar{gap:2px;row-gap:0}
  body.rc-workspace-ready .focus-main .composer-footer{margin-top:0}
  body.rc-workspace-ready .send-account-chip{min-height:24px;padding:5px 2px 0;margin-top:4px;font-size:11px}
}

/* Every row's trailing action is one 28px icon (or an empty slot of that size),
   so status and time line up across question, failed, idle and running rows. */
.cr-conversation-row .cr-dismiss{display:grid;place-items:center;flex:none;width:28px;height:28px;min-height:0;padding:7px;margin:0 9px 0 0;border:0;border-radius:7px;background:none;color:var(--muted)}
.cr-conversation-row .cr-dismiss .ic{width:14px;height:14px}
.cr-conversation-row .cr-dismiss:hover{background:var(--surface-2);color:var(--text)}
.cr-row-slot{flex:none;width:28px;height:28px;margin-right:9px}
@media(max-width:650px){.cr-row-slot{display:none}.cr-conversation-row .cr-dismiss{margin:0 12px 10px auto}}
/* Send with account: a popover anchored to the chip (One pill draft), a bottom sheet on phones. */
#sendAccountPicker.acct-pop{position:fixed;inset:auto;right:auto;top:auto;margin:0;width:400px;max-width:calc(100vw - 24px);max-height:70vh;padding:16px;gap:0;color:var(--text);overflow-y:auto;border:1px solid var(--border);border-radius:14px;background:var(--bg);box-shadow:var(--shadow);z-index:170}
#sendAccountPicker.acct-pop[open]{display:block}
#sendAccountPicker.acct-pop .helper-head{padding:2px 12px 12px;font-size:13px;color:var(--text)}
#sendAccountPicker.acct-pop .send-account-list{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;overflow:visible;min-height:0}
#sendAccountPicker.acct-pop[aria-busy=true]{cursor:progress}
.acct-line{position:relative;display:flex;align-items:center}
/* "Switch now" sits under the meter, so the row grows instead of the name column shrinking. */
.acct-line.has-switch .acct-row{padding-bottom:52px}
.acct-line .acct-switch{position:absolute;right:12px;bottom:12px}
.acct-row{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:56px;padding:12px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;font-size:13.5px;text-align:left;cursor:pointer}
.acct-row[aria-checked=true]{background:var(--surface-2)}
.acct-row:hover:not(:disabled),.acct-row:focus-visible{background:var(--surface-2);outline:none}
.acct-row:focus-visible{box-shadow:inset 0 0 0 2px var(--accent)}
.acct-row:disabled{cursor:default;opacity:1}
.acct-row-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;line-height:1.35}
.acct-name{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;row-gap:1px;min-width:0}
.acct-name b{font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis}.acct-name b.acct-token{white-space:nowrap}
.acct-email{min-width:0;max-width:100%;color:var(--muted);font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-row-t small{font-size:12px;color:var(--muted);line-height:1.4}
.acct-row .hi-check{flex:none;width:16px;height:16px;visibility:hidden;color:var(--text);stroke-width:2.2}
.acct-row[aria-checked=true] .hi-check{visibility:visible}
.acct-usage{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:6px;flex:none;width:64px;text-align:right}
.acct-meter{display:block;width:100%;height:4px;border-radius:999px;background:var(--surface-3);overflow:hidden}
.acct-meter i{display:block;height:100%;border-radius:inherit;background:var(--lvl,var(--faint))}
.acct-pct{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--lvl,var(--faint));line-height:1}
:is(.acct-usage,.acct-dot)[data-level=ok]{--lvl:var(--ok)}:is(.acct-usage,.acct-dot)[data-level=mid]{--lvl:var(--amber)}:is(.acct-usage,.acct-dot)[data-level=high],:is(.acct-usage,.acct-dot)[data-level=limit]{--lvl:var(--err)}:is(.acct-usage,.acct-dot)[data-level=unknown],:is(.acct-usage,.acct-dot)[data-level=off]{--lvl:var(--faint)}
/* Limit reached: greyed but readable -- muted text (>= 4.5:1), a faded meter. */
.acct-row:disabled .acct-name b{color:var(--muted)}
.acct-row:disabled .acct-meter{opacity:.5}
.acct-switch{flex:none;min-height:30px;border:1px solid var(--border-strong);border-radius:999px;background:transparent;color:var(--text);font:inherit;font-size:12px;padding:0 12px;cursor:pointer;white-space:nowrap}
.acct-switch:hover{background:var(--surface-2)}
.acct-running{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:10px 12px;border-radius:10px;background:var(--surface-2);font-size:12.5px;color:var(--muted)}.acct-running .ic{width:14px;height:14px;flex:none}.acct-running strong{color:var(--text);font-weight:550}
.acct-note{font-size:12px;color:var(--muted);margin:12px 12px 0;line-height:1.5}
#sendAccountPicker.acct-pop #pickerError:empty{display:none}#sendAccountPicker.acct-pop #pickerError{margin:8px 12px 0;font-size:12px}
.acct-foot{display:flex;gap:4px;border-top:1px solid var(--border);margin:12px 0 -4px;padding:12px 0 0}
.acct-link{min-height:34px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;padding:0 12px;border-radius:8px;cursor:pointer}.acct-link:hover,.acct-link:focus-visible{color:var(--text);background:var(--surface-2)}
/* The chip carries the selected account's level as a dot (the title says it in words). */
.send-account-chip .acct-dot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--lvl);display:inline-block}
@media(max-width:720px){#sendAccountPicker.acct-pop{left:0!important;right:0;bottom:0!important;width:auto;max-width:none;border-radius:18px 18px 0 0;border-bottom:0;padding:28px 20px calc(20px + env(safe-area-inset-bottom))}#sendAccountPicker.acct-pop::before{content:"";position:absolute;top:10px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:999px;background:var(--border-strong)}#sendAccountPicker.acct-pop .helper-head{padding:2px 4px 12px}.acct-row{min-height:60px;padding:12px}.acct-note{margin:12px 4px 0}.acct-foot{margin-bottom:0}}

.automation-ap-instruction{display:block;order:3;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;margin-top:5px;color:var(--text)}

/* A long-press opens the conversation menu on touch; without this iOS shows its own link preview instead. */
[data-conv-project],.cr-task,.stage-conversation,.running-conversation{-webkit-touch-callout:none}
