/* AG2 workbench. Typography and white / violet direction inspired by
   oyorf/person_dashboard; layout and components are specific to AG2. */
@font-face{font-family:"Noto Sans SC";font-style:normal;font-weight:400;font-display:swap;src:url("./fonts/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2")}
@font-face{font-family:"Noto Sans SC";font-style:normal;font-weight:600;font-display:swap;src:url("./fonts/noto-sans-sc-chinese-simplified-600-normal.woff2") format("woff2")}
@font-face{font-family:"Noto Serif SC";font-style:normal;font-weight:700;font-display:swap;src:url("./fonts/noto-serif-sc-chinese-simplified-700-normal.woff2") format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:400;font-display:swap;src:url("./fonts/space-grotesk-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("./fonts/space-grotesk-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url("./fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2")}

:root{
  --bg:#fafafa;--surface:#fff;--ink:#18171d;--secondary:#57545f;--muted:#6e6976;
  --line:#ecebee;--blue:#7c3aed;--blue-dark:#6d28d9;--blue-soft:#f3effe;
  --green:#23825b;--green-soft:#edf7f1;--amber:#a96b16;--amber-soft:#fff8eb;
  --red:#c34655;--red-soft:#fff1f2;--sidebar:238px;--radius:16px;
  --shadow:0 2px 6px #18171d03;--font-body:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --font-display:"Space Grotesk","Noto Serif SC","Songti SC",serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --text-xs:12px;--text-sm:13px;--text-base:14px;--text-reading:15px;
}
body{font-family:var(--font-body);font-size:var(--text-base);line-height:1.75;letter-spacing:0;color:var(--ink);text-rendering:optimizeLegibility}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background-image:radial-gradient(#d6cfdf .8px,transparent .8px);background-size:24px 24px;opacity:.25;mask-image:linear-gradient(120deg,transparent 20%,#000 100%);z-index:-1}
::selection{background:#e7dcff;color:#452083}
h1,h2,h3{letter-spacing:-.025em;line-height:1.5}
h1,.page-heading h1,.detail-title,.login-copy h1,.login-card h2{font-family:var(--font-display);font-weight:700}
h2{font-size:18px;font-weight:600}h3{font-size:15px;font-weight:600}
.page-heading h1{font-size:clamp(28px,3vw,38px);line-height:1.35;margin-top:8px}
.page-heading p{font-size:14px;line-height:1.85;color:var(--secondary);margin-top:10px;max-width:640px}
.mono,code,pre,.run-id,.eyebrow,.nav-label{font-family:var(--font-mono)}
.small{font-size:12px}.eyebrow{display:flex;align-items:center;gap:10px;font-size:11px;letter-spacing:.16em;color:var(--blue);font-weight:400}
.eyebrow time{letter-spacing:0;color:var(--muted);font-family:var(--font-body);font-size:12px}
.sidebar{padding:27px 17px 20px;border-color:var(--line);background:#fff}
.brand{padding:0 9px;gap:10px}.brand-name{font-family:var(--font-display);font-size:20px;letter-spacing:-.5px}
.brand-name small{font-family:var(--font-mono);font-size:9px;letter-spacing:1.2px;line-height:1.6;color:var(--muted);margin-top:7px}
.brand-logo{width:33px;height:35px;border-radius:10px;background:var(--blue);box-shadow:0 3px 10px #7c3aed1a}
.nav-label{font-size:10px;letter-spacing:.16em;color:#908998;margin:34px 0 12px;padding:0 13px}
.nav-group-label{color:#908998;font-size:11px;letter-spacing:1px}
.nav-list{gap:4px}.nav-item{position:relative;font-size:14px;line-height:1.6;padding:11px 13px;border-radius:10px;min-height:44px;gap:12px;color:var(--secondary)}
.nav-item:hover{background:#f7f6f9;color:var(--ink)}.nav-item.active{background:var(--blue-soft);color:var(--blue-dark)}
.nav-item.active::before{content:"";position:absolute;left:-17px;top:13px;bottom:13px;width:3px;border-radius:0 3px 3px 0;background:var(--blue)}
.nav-count{background:#e8dffd;color:var(--blue-dark);font-family:var(--font-mono);font-size:11px;border-radius:6px}
.workspace-label{font-size:12px;line-height:1.7;color:var(--muted);margin-left:10px;margin-right:10px}
.topbar{height:66px;background:#ffffffeb;border-color:var(--line);padding:0 36px}
.breadcrumbs{font-size:12px}.environment{font-size:12px}.avatar{background:var(--blue-soft);color:var(--blue-dark)}.user-button{font-size:13px}
.content{max-width:1510px;padding:32px 36px 54px}.page-heading{margin-bottom:28px;align-items:flex-end}
.heading-actions{gap:8px;flex-shrink:0}.button{border-color:#dfdce5;border-radius:9px;font-size:13px;min-height:39px;padding:8px 14px;font-weight:600;box-shadow:none}
.button:hover{background:#f8f6fc;border-color:#cfc4e4}.button.primary{background:var(--blue);border-color:var(--blue);box-shadow:0 1px 2px #18171d0d}
.button.primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}.button.subtle{color:var(--secondary)}
.button.subtle:hover,.button.subtle:focus-visible{background:transparent;border-color:transparent;box-shadow:none;color:var(--blue)}
.button:disabled{opacity:.5}button:focus-visible,.button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none}
button:focus-visible,a:focus-visible{text-decoration:underline;text-underline-offset:4px}
.input,select,textarea{font-family:var(--font-body);font-size:14px;line-height:1.7;border-color:#dfdce5;border-radius:9px;background-color:#fff;padding:10px 12px}
.input::placeholder,textarea::placeholder{color:#938c9c}input:focus,select:focus,textarea:focus{border-color:#dfdce5;box-shadow:none;outline:none}
.input:focus,select:focus,textarea:focus{background-color:#fcfaff}
select:not([multiple]):hover,select:not([multiple]):focus{border-color:#dfdce5}

.field label{font-size:13px;color:var(--ink)}.field-hint,.form-note{font-size:12px;line-height:1.85;color:var(--muted)}
.panel{border-color:var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.panel-head{padding:23px 24px 20px}
.panel-head h2{font-size:17px}.panel-head p{font-size:13px;color:var(--muted);line-height:1.75}
.count-label{font-family:var(--font-mono);font-size:11px;line-height:22px;color:var(--muted);border-radius:6px}
.demo-notice{background:#f7f4fd;border-color:#ebe4f6;color:#78638f;font-size:12px;border-radius:9px;margin-bottom:22px}
.demo-notice.quiet-notice{display:none}
.stats{gap:0;border:1px solid var(--line);border-radius:16px;background:#fff;margin-bottom:24px;overflow:hidden}
.stat{border:0;border-radius:0;box-shadow:none;background:transparent;padding:21px 25px 22px;position:relative}
.stat+.stat::before{content:"";position:absolute;top:23px;bottom:23px;left:0;width:1px;background:var(--line)}
.stat-head{font-size:13px;color:var(--secondary)}.stat-symbol{background:var(--blue-soft);color:var(--blue);width:28px;height:28px;border-radius:8px}
.stat-symbol.purple{color:var(--blue);background:var(--blue-soft)}.stat-value{font-family:var(--font-display);font-size:36px;line-height:1.15;font-weight:500;letter-spacing:0;font-variant-numeric:tabular-nums;color:var(--ink);margin-top:12px}
.stat-caption{font-size:12px;color:var(--muted);margin-top:7px}
.toolbar{gap:9px;flex-wrap:wrap}.toolbar input,.toolbar select{font-size:13px;height:40px}.search-field{max-width:400px}.search-field .icon{top:12px;color:#968b9f}
.runs-table th{font-size:12px;font-weight:400;background:var(--surface);color:var(--muted);padding:12px 24px;border-color:var(--line)}
.runs-table td{font-size:13px;padding:20px 24px;border-color:var(--line);color:var(--secondary);vertical-align:middle}
.runs-table tbody tr:hover{background:#fcfbfd}.runs-table tbody tr.is-selected{background:#faf8fc}.runs-table tbody tr.is-selected:hover{background:#f7f4fa}
.run-title{font-size:14px;font-weight:600;line-height:1.75;max-width:380px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.run-id{font-size:11px;color:#89808f;line-height:1.7;margin-top:6px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.task-summary-preview,.task-summary-preview.markdown-body{font-size:13px;line-height:1.8;color:#746d7e}
.task-summary-preview.markdown-body :is(h1,h2,h3,h4,p,li,td,th){font-size:inherit;line-height:inherit}
.badge,.task-chip,.mode-chip{font-size:11px;line-height:1.6;border-radius:6px;font-weight:500;padding:4px 8px}
.badge.active,.mode-chip.development,.task-chip.type-requirement{color:var(--blue-dark);background:var(--blue-soft);border-color:#e5dafa}
.task-chip.assistant{color:#7960a2;background:#f2edf9}.badge.pending{color:#9c6a28;background:var(--amber-soft)}
.badge.success{color:var(--green);background:var(--green-soft)}.badge.danger{color:var(--red);background:var(--red-soft)}
.project-dot{background:var(--blue)}.project-dot.agent{background:#b39bcf}.project-label,.branch,.table-footer{font-size:12px}
.project-card h2{font-size:20px}.project-description,.project-repository,.branch-pair dd{font-size:13px}.project-card-foot,.branch-pair dt{font-size:12px}
.project-symbol.agent{color:var(--blue);background:var(--blue-soft)}.empty h3{font-size:16px;color:var(--ink)}.empty p{font-size:13px;line-height:1.9}.empty-icon{background:var(--blue-soft);color:#a18bbd}
.detail-title,.detail-summary:has(>.background-disclosure) .detail-title{font-size:27px;line-height:1.5;margin-top:12px}
.detail-summary{padding:26px 28px}.detail-eyebrow,.detail-back{font-size:12px!important}.detail-metric{font-size:12px}.detail-metric strong{font-size:16px}
.requirement,.implementation-prompt,.classification-summary,.assistant-result,.source-message{font-size:14px;line-height:1.9}
.detail-repository,.gate p,.gate .role-hint,.agent-metadata,.event-title,.event-body,.activity-description{font-size:12px;line-height:1.85}
.background-disclosure>summary,.background-panel>summary{font-size:13px;font-weight:500}.background-panel{padding:20px 24px}.current-work{border-color:#e4d9fa}
.progress-phase h3{font-size:15px}.progress-phase p{font-size:13px}.progress-symbol{background:var(--blue-soft);color:var(--blue)}
.progress-updated,.progress-item-head,.progress-lifecycle{font-size:12px}.progress-item-head time,.progress-lifecycle time{font-size:11px}
.progress-feed,.progress-latest{background:#fcfbfd;border-color:var(--line)}.progress-stages li{font-size:12px;padding:9px 12px;min-width:136px}
.progress-step-label small{font-size:11px}.progress-stages li.current{border-color:#d8c5f8;background:var(--blue-soft);color:var(--blue-dark)}.current .progress-step-marker{background:#e8dcfc}
.progress-output,.progress-command{font:12px/1.85 var(--font-mono)}.progress-latest-log{font-family:var(--font-mono)}
.round-result{border-color:#e6dff0;background:#fdfcfe;padding:20px;font-size:14px;line-height:1.9;max-height:490px}
.round-result.markdown-body,.implementation-prompt.markdown-body,.requirement.markdown-body{font-size:14px;line-height:1.9}
.markdown-body{font-family:var(--font-body);font-size:15px;line-height:1.95;color:#393340}
.markdown-body h1,.markdown-body h2,.markdown-body h3{font-family:var(--font-body);color:var(--ink)}
.markdown-body h1{font-size:23px}.markdown-body h2{font-size:19px}.markdown-body h3{font-size:16px}
.round-result.markdown-body h1,.round-result.markdown-body h2,.progress-markdown h1,.progress-markdown h2{font-size:17px}
.markdown-body pre{background:#f7f5fa;border-color:var(--line);border-radius:10px;font-size:12px}.markdown-body code{font-family:var(--font-mono)}
.inline-review-actions,.review-publish{border-color:var(--line)}.continuation-suggestions{background:#faf8fd;border-color:#eee8f5}
.continuation-suggestions h3,.continuation-suggestions p,.suggestion-label strong{font-size:13px}.suggestion-label small{font-size:12px;line-height:1.8}
.verification-result{background:#f8f6fb;color:#706478}.verification-result.pass{background:var(--green-soft);color:var(--green)}
.implementation-note,.classification-reason,.screening-reason,.screening-context .implementation-prompt{font-size:13px;line-height:1.9}
.screening-item{padding:22px 0;border-color:var(--line);border-radius:0}.screening-title{gap:14px}.screening-title h3{font-size:15px;line-height:1.75}.screening-meta{font-size:12px;line-height:1.8}
.inbox-toolbar p{font-size:13px;line-height:1.9}.inbox-status dt{font-size:12px}.inbox-status dd{font-family:var(--font-display);font-weight:700;font-size:27px}
.config-card h2{font-size:18px}.config-card>p,.config-subsection>p,.config-check,.config-head p,.analysis-provider-intro{font-size:13px;line-height:1.85}
.config-secret-state,.analysis-node-hint,.analysis-model-hint,.analysis-auto-note,.analysis-device-meta{font-size:12px}.usage-option strong{font-size:14px}.usage-option small{font-size:12px}
.config-card,.usage-option{border-color:var(--line)}.usage-option:has(input:checked){border-color:var(--line);background:#faf7ff}
dialog{border-color:var(--line);border-radius:18px;box-shadow:0 24px 80px #2d174524}dialog::backdrop{background:#21152e55;backdrop-filter:blur(4px)}
.dialog-head h2{font-family:var(--font-display);font-size:24px}.dialog-head p{font-size:13px}.dialog-body{font-size:14px}.dialog-foot{border-color:var(--line);background:#fcfbfd}
.error{font-size:13px;line-height:1.85;border-color:#f1dce0}.toast{background:#292031;font-size:13px;border-radius:10px}
.login-visual{background:#f6f1fd;color:var(--ink);position:relative;overflow:hidden}.login-visual::after{content:"";position:absolute;inset:0;background-image:radial-gradient(#bba4d7 1px,transparent 1px);background-size:20px 20px;opacity:.28;pointer-events:none;mask-image:linear-gradient(45deg,transparent,#000)}
.login-copy{position:relative;z-index:1}.login-copy h1{font-size:clamp(34px,3.8vw,52px);line-height:1.6;letter-spacing:-1.8px;color:var(--ink)}
.login-copy p{font-size:15px;line-height:2;color:var(--secondary)}.login-kicker,.login-footer{font:11px/1.8 var(--font-mono);letter-spacing:.16em;color:#9176ad}
.login-process{font-size:13px;color:#806592}.login-process span{border-color:#ded2ec;background:#fff8}.login-description{font-size:14px;line-height:1.9}.login-card h2{font-size:32px}.login-badge{color:var(--blue);background:var(--blue-soft)}

/* Agent overview: every status and count is derived from the existing task API. */
.agent-workspace{margin:0 0 24px}.agent-overview-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:20px}
.agent-composer{padding:26px;background:#fff;position:relative;overflow:hidden}.agent-composer-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}
.agent-composer h2{font-family:var(--font-display);font-size:25px;line-height:1.55;margin-top:9px}.agent-composer-top p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:8px;max-width:430px}
.agent-glyph{display:grid;grid-template-columns:repeat(7,5px);gap:5px;padding:12px 6px;flex-shrink:0;color:var(--blue)}
.agent-glyph i{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.13}.agent-glyph i.lit{opacity:.8}.agent-glyph i.center{opacity:1;box-shadow:0 0 9px #a78bfa55}
.agent-composer textarea{min-height:108px;resize:vertical;background:#fcfbfd;border:1px solid #e8e1f0;font-size:14px;padding:14px 16px;border-radius:12px}
.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}.composer-hint{font-size:12px;color:var(--muted)}
.composer-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 0}.composer-shortcuts .button{background:#fff;color:#78698b;border-color:#eae4f1;font-weight:400;font-size:12px;min-height:32px;padding:5px 10px}
.agent-attention{padding:24px}.agent-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.agent-section-heading h2{font-size:16px}.agent-section-heading>.button{font-size:12px;padding:4px;min-height:28px}
.attention-list{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:0}.attention-item{display:flex;gap:12px;align-items:center;width:100%;min-width:0;max-width:100%;border:0;border-top:1px solid var(--line);background:none;text-align:left;padding:16px 0;color:inherit}
.attention-item:first-child{border-top:0;padding-top:5px}.attention-item>span:not(.attention-marker){flex:1;min-width:0}.attention-item strong{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.attention-item small{display:block;font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.attention-item>.icon{width:15px;height:15px;flex-shrink:0;color:#b2a9bd}.attention-item:hover strong{color:var(--blue)}
.attention-marker{width:30px;height:30px;border-radius:9px;background:var(--amber-soft);color:var(--amber);display:grid;place-items:center;flex-shrink:0}.attention-marker .icon{width:16px;height:16px}
.attention-empty{padding:30px 6px;text-align:center}.attention-empty .icon{color:#b8a4d6;width:30px;height:30px}.attention-empty h3{font-size:14px;margin:12px 0 5px}.attention-empty p{font-size:12px;color:var(--muted)}
.attention-links{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid var(--line);padding-top:12px;margin-top:4px}.attention-links .button{font-size:12px;padding:5px 8px;min-height:32px;font-weight:400;color:var(--blue-dark)}
.agent-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.agent-role{display:flex;align-items:center;gap:11px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}
.agent-role-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f5f1fa;color:#947bab;flex-shrink:0}.agent-role-mark .icon{width:18px;height:18px}.agent-role-copy{min-width:0;flex:1}.agent-role strong{display:block;font-size:13px;font-weight:600}.agent-role small{display:block;font-size:11px;color:var(--muted);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agent-role-state{font-size:11px;color:var(--muted);white-space:nowrap;display:flex;align-items:center;gap:5px}.agent-role-state::before{content:"";width:5px;height:5px;border-radius:50%;background:#c0b8c9}.agent-role-state.working{color:var(--blue)}.agent-role-state.working::before{background:var(--blue)}.agent-role-state.review{color:var(--amber)}.agent-role-state.review::before{background:var(--amber)}

/* Bulk selection is scoped to the current filtered list. */
.bulk-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 22px;background:#fff;border-top:1px solid var(--line);border-bottom:0;min-height:48px}
.bulk-toolbar.has-selection{background:#fff;border-color:var(--line)}.bulk-select-all{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--secondary);white-space:nowrap;cursor:pointer;min-height:30px}
.bulk-count{font-size:12px;color:#78658e;font-weight:500;background:#f4f0f8;border-radius:4px;padding:2px 7px}.bulk-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-left:auto}
.bulk-actions .button{font-size:12px;font-weight:500;min-height:30px;padding:4px 9px;background:transparent;border-color:transparent;box-shadow:none;color:var(--secondary)}.bulk-actions .button:hover,.bulk-actions .button:focus-visible{background:transparent;border-color:transparent;color:var(--blue-dark)}.bulk-actions .button small{font-family:var(--font-body);font-size:11px;color:#9c92a6;font-variant-numeric:tabular-nums}.bulk-hint{font-size:11px;color:#938b9b}
.selection-cell{width:46px!important;max-width:46px!important;padding:10px 8px 10px 18px!important}.row-select{min-width:28px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-block;vertical-align:middle;width:16px;height:16px;flex-shrink:0;padding:0;border:1px solid #d3cddc;border-radius:3px;background:#fff center/12px 12px no-repeat;box-shadow:none;cursor:pointer;accent-color:var(--blue)}
input[type=checkbox]:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
input[type=checkbox]:disabled{opacity:.5;cursor:default}
/* Keep a generous label hit area around the smaller, muted selection control. */
.row-select input,.bulk-select-all input{appearance:none;-webkit-appearance:none;display:block;width:14px;height:14px;padding:0;border:1px solid #d3cddc;border-radius:3px;background-color:#fff;background-position:center;background-repeat:no-repeat;background-size:10px 10px;box-shadow:none;cursor:pointer;margin:0;flex-shrink:0}
input[type=checkbox]:checked{border-color:var(--blue);background-color:var(--blue);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.2 6 2.5 2.5 5-5' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
input[type=checkbox]:indeterminate{border-color:var(--blue);background-color:var(--blue);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E")}
.row-select input:disabled,.bulk-select-all input:disabled{opacity:.5;cursor:default}
.has-selection .run-name-cell,.runs-table.has-selection th:nth-child(2){padding-left:8px}.screening-select-row{display:flex;align-items:flex-start;gap:10px}.screening-select-row>.screening-item-body{flex:1;min-width:0}.screening-item.is-selected{border-color:var(--line);background:#faf8fc}
.batch-dialog{width:min(650px,calc(100vw - 32px))}.batch-intro{font-size:13px;line-height:1.85;color:var(--secondary);margin-bottom:18px}
.batch-task-list{list-style:none;margin:0;padding:0;max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:10px}
.batch-task-list li{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:13px}.batch-task-list li:last-child{border-bottom:0}.batch-task-list li>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.batch-task-list small{display:block;font-size:12px;color:var(--muted);line-height:1.8;margin-top:4px}.batch-state{font-size:12px;white-space:nowrap;color:var(--muted)}.batch-state.success{color:var(--green)}.batch-state.failed{color:var(--red)}
.batch-progress{margin:18px 0 0;font-size:13px;color:var(--blue-dark)}.batch-progress progress{display:block;width:100%;height:5px;margin-top:12px;accent-color:var(--blue)}
.batch-report{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;font-size:13px;line-height:1.9}.batch-report .error{margin-top:10px}
.batch-dialog .dialog-foot{position:sticky;bottom:0;z-index:1}
.batch-mr-previews,.batch-project-previews{display:grid;gap:var(--space-3);margin-top:var(--space-4);min-width:0}
.batch-mr-preview,.batch-project-preview{border:1px solid var(--line);border-radius:8px;padding:var(--space-4);min-width:0}
.batch-mr-preview>summary,.batch-project-preview>summary{cursor:pointer;min-height:var(--touch-control-height);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.batch-mr-preview .field-hint,.batch-project-preview .field-hint{overflow-wrap:anywhere;white-space:normal}
.batch-mr-preview .input,.batch-mr-preview textarea,.batch-project-preview .input,.batch-project-preview textarea{width:100%;min-width:0}
.batch-mr-preview .field,.batch-project-preview .field{margin-top:var(--space-3)}
.batch-operation-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-4);min-width:0}
.batch-operation-list .button{width:100%;min-height:var(--touch-control-height);justify-content:space-between;gap:var(--space-3);white-space:normal;text-align:left;line-height:1.7}
.batch-operation-list .button>span{min-width:0;overflow-wrap:anywhere}
.batch-operation-list .button>small{flex-shrink:0;color:var(--secondary);font-size:12px}
.batch-operation-list .field-hint{margin-top:var(--space-1)}
@media(max-width:1100px){.content{padding:28px 24px 42px}.topbar{padding:0 24px}.agent-overview-grid{grid-template-columns:minmax(0,1.25fr) minmax(245px,1fr)}.agent-composer{padding:22px}.agent-attention{padding:22px}.agent-roster{gap:9px}.agent-role{padding:12px;gap:8px}.agent-role-state{font-size:10px}.stat{padding:20px}.page-heading{align-items:flex-start}}
@media(max-width:900px) and (min-width:651px){:root{--sidebar:208px}.sidebar{padding-left:13px;padding-right:13px}.brand-name{font-size:17px}.brand-name small{font-size:8px}.nav-item{font-size:13px}.agent-overview-grid{grid-template-columns:minmax(0,1fr)}.agent-roster{grid-template-columns:1fr}.agent-role-state{font-size:12px}.agent-role small{font-size:12px}.page-heading{flex-wrap:wrap}.stat{padding:17px 14px}.stat-caption{font-size:11px}.stat-value{font-size:31px}}
@media(max-width:650px){
  :root{--sidebar:0px}.content{padding:24px 16px calc(95px + env(safe-area-inset-bottom))}.topbar{height:60px;padding:0 17px;background:#fffffff5}.mobile-brand{font-family:var(--font-display);font-size:17px}.mobile-brand .brand-logo{width:29px;height:30px;background:var(--blue)}
  .page-heading{gap:18px;align-items:flex-start;margin-bottom:22px;flex-wrap:wrap}.page-heading h1{font-size:29px;line-height:1.45;letter-spacing:-.7px}.page-heading p{font-size:13px;max-width:none;margin-top:9px;line-height:1.85}.page-heading>div:first-child{flex:1 1 100%}.eyebrow{font-size:10px;letter-spacing:.12em;flex-wrap:wrap;gap:7px}.eyebrow time{font-size:11px}.heading-actions{width:100%;justify-content:flex-end}.heading-actions>.button{font-size:13px;min-height:38px;padding:8px 13px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-bottom:18px;border-radius:14px}.stat{padding:17px}.stat+.stat::before{top:19px;bottom:19px}.stat:nth-child(3)::before{display:none}.stat:nth-child(n+3){border-top:1px solid var(--line)}.stat-head{font-size:12px}.stat-value{font-size:32px}.stat-caption{font-size:11px;line-height:1.7}.stat-symbol{width:25px;height:25px}
  .panel-head{padding:19px 16px 16px}.panel-head h2{font-size:16px}.panel-head p{font-size:12px}.detail-body{padding:0 16px 20px}.toolbar{padding:0 16px 16px}.toolbar input,.toolbar select{height:42px;font-size:14px}.search-field{max-width:none;flex-basis:100%}.search-field .icon{top:13px}
  input.input,textarea,.field select{font-size:16px}.field label{font-size:13px}.field-hint{font-size:12px}.dialog-head{padding:22px 20px 17px}.dialog-head h2{font-size:23px}.dialog-head p{font-size:12px}.dialog-body{padding:0 20px 22px}.dialog-foot{padding:15px 20px}.dialog-foot .button{font-size:13px}
  .runs-table th,.runs-table td{padding-left:14px;padding-right:10px;font-size:12px}.runs-table th{font-size:11px}.runs-table td{padding-top:17px;padding-bottom:17px}.run-title{font-size:13px;line-height:1.8;max-width:calc(100vw - 190px)}.has-selection .run-title{max-width:calc(100vw - 216px)}.has-selection .run-name-cell{padding-left:2px!important}.run-id{font-size:10px;gap:5px}.badge,.task-chip,.mode-chip{font-size:10px;padding:4px 6px}.task-summary-cell{display:none}.table-footer{font-size:11px;gap:7px;flex-wrap:wrap;padding:13px 16px}.table-footer span:last-child{font-size:11px}.selection-cell{width:36px!important;max-width:36px!important;padding:8px 4px 8px 10px!important}
  .detail-summary{padding:22px 18px}.detail-title,.detail-summary:has(>.background-disclosure) .detail-title{font-size:23px;line-height:1.6}.detail-topline{flex-wrap:wrap}.detail-eyebrow{font-size:11px!important}.requirement{font-size:14px}.background-panel{padding:17px 16px}.background-panel .development-progress>.panel-head,.background-panel .development-progress>.detail-body{padding-left:13px;padding-right:13px}.progress-phase h3{font-size:14px}.progress-phase p{font-size:12px}.progress-stages li{min-width:0;font-size:11px;padding:9px 8px}.progress-step-label small{font-size:10px}.progress-updated{font-size:11px}.progress-item-head{font-size:12px}.progress-item-head time{font-size:10px}.round-result{padding:16px;max-height:430px}.markdown-body,.round-result.markdown-body,.implementation-prompt.markdown-body{font-size:14px;line-height:1.9}.markdown-body h1{font-size:21px}.markdown-body h2{font-size:18px}.markdown-body h3{font-size:16px}.suggestion-label small{font-size:12px}.suggestion-buttons .button{white-space:normal}
  .screening-item{padding:18px 0}.screening-title{flex-wrap:wrap;gap:8px}.screening-title h3{font-size:14px}.screening-meta{font-size:11px}.screening-select-row{gap:4px}.inbox-toolbar{gap:12px}.config-card h2{font-size:17px}.usage-option small{font-size:12px}
  .agent-overview-grid{grid-template-columns:minmax(0,1fr);gap:16px}.agent-composer{padding:20px 18px}.agent-composer h2{font-size:23px}.agent-composer-top{gap:10px;margin-bottom:18px}.agent-composer-top p{font-size:12px}.agent-glyph{grid-template-columns:repeat(7,4px);gap:4px;padding:10px 0}.agent-glyph i{width:4px;height:4px}.agent-composer textarea{font-size:16px;min-height:115px}.composer-bottom{align-items:flex-start;gap:10px}.composer-hint{font-size:11px;max-width:145px}.composer-bottom>.button{font-size:12px;padding:8px 12px}.composer-shortcuts{gap:6px}.composer-shortcuts .button{font-size:11px}.agent-attention{padding:20px 18px}.agent-roster{grid-template-columns:1fr;gap:8px;margin-top:13px}.agent-role{padding:12px 16px}.agent-role strong{font-size:13px}.agent-role small,.agent-role-state{font-size:11px}.agent-workspace{margin-bottom:20px}
  .bulk-toolbar{padding:8px 12px;gap:8px}.bulk-select-all,.bulk-count,.bulk-hint{font-size:11px}.bulk-actions{width:100%;margin:2px 0 0;gap:6px}.bulk-actions .button{font-size:11px;padding:6px 8px}.bulk-actions .button small{font-size:10px}.batch-task-list li{padding:12px;font-size:12px}.batch-task-list small,.batch-state{font-size:11px}.batch-dialog .dialog-foot{flex-wrap:wrap}.batch-intro{font-size:13px}
  .mobile-tabs{background:#fffffff5;border-color:var(--line)}.mobile-tabs button{font-size:11px}.mobile-tabs button.active{background:var(--blue-soft);color:var(--blue-dark)}.mobile-tabs button .icon{width:20px;height:20px}.mobile-nav-grid button.active{color:var(--blue-dark);background:var(--blue-soft)}.toast{bottom:calc(83px + env(safe-area-inset-bottom));max-width:calc(100% - 32px);white-space:normal;font-size:12px}
  .login-main{background:#fcfaff}.login-card h2{font-size:29px}.login-description{font-size:14px}.login-support{font-size:12px}
}
@media(max-width:650px){
  .attention-item{align-items:flex-start}.attention-item strong{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.75}.attention-item>.icon{margin-top:4px}
  .runs-table .run-title,.runs-table.has-selection .run-title{width:100%;max-width:100%;overflow-wrap:anywhere}
  .runs-table.has-selection tr{grid-template-columns:32px minmax(0,1fr) 28px;gap:8px;padding:12px}
  .runs-table.has-selection td.selection-cell{grid-column:1;grid-row:1;width:32px!important;max-width:32px!important;padding:0!important}
  .runs-table.has-selection td.run-name-cell{grid-column:2;grid-row:1;padding:0!important}
  .runs-table.has-selection td.run-name-cell+td{grid-column:2;grid-row:2}
  .runs-table.has-selection td:last-child{grid-column:3;grid-row:1 / span 2}
  .runs-table .row-select{width:44px;min-height:44px;margin:-8px -6px 0}
  .screening-select-row>.row-select{min-width:36px;min-height:44px;margin:-8px 0 0 -4px}
  .bulk-select-all{min-height:40px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(forced-colors:active){.agent-glyph i{background:CanvasText}input[type=checkbox]{appearance:auto;-webkit-appearance:auto;background-image:none;accent-color:auto}.badge,.button,.panel{border:1px solid CanvasText}}

/* Original messages stay available within the semantic inbox record. */
.inbox-originals { margin-top: 14px; min-width: 0; }
.inbox-originals summary { cursor: pointer; color: var(--accent, #6b4eff); font-size: 13px; }
.screening-title h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }

/* Compact inbox filters and a clear reading order within each flat list row. */
.screening-counts{gap:10px;margin-bottom:14px}
.screening-count{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--secondary);font:12px/1.5 var(--font-body);cursor:pointer}
.screening-counts b{margin:0;font:600 14px/1.5 var(--font-body);font-variant-numeric:tabular-nums;color:inherit}
.screening-count:hover{color:var(--blue-dark)}
.screening-count[aria-pressed="true"]{color:var(--blue-dark);background:var(--blue-soft);border-color:var(--line);box-shadow:none}
.screening-count:focus-visible,.inbox-originals summary:focus-visible{outline:none;text-decoration:underline;text-underline-offset:4px}
.viewer-toolbar .button[aria-pressed="true"]{border-color:#dfdce5}
.row-select:has(input:focus-visible),.bulk-select-all:has(input:focus-visible){background:#f4f0f8}
.screening-title h3{flex:1;min-width:0;font-weight:600;color:var(--ink)}
.screening-title>.badge{flex-shrink:0;margin-top:2px}
.screening-explanation{margin-top:14px}
.screening-explanation h4,.screening-context h4{margin:0;font:600 12px/1.6 var(--font-body);color:var(--secondary)}
.screening-explanation .screening-reason{margin-top:5px;color:var(--secondary);font-size:13px;line-height:1.85}
.screening-context{padding:12px 15px;margin-top:14px;background:#faf9fc;border-left:2px solid #d9c8ee}
.screening-context .implementation-prompt{margin-top:6px;max-height:none;color:var(--secondary);font-size:13px;line-height:1.85}
.screening-explanation .markdown-body p,.screening-context .markdown-body p{font:inherit;color:inherit;margin-top:0}
.screening-details{display:grid;gap:5px;margin-top:15px}
.screening-details .screening-meta{margin-top:0;gap:4px 14px;font-size:11px;line-height:1.8;color:var(--muted)}
.screening-meta>*{min-width:0;overflow-wrap:anywhere}
.screening-source time{margin-left:auto;white-space:nowrap}
.screening-actions{margin-top:10px}
.screening-actions .button{padding-left:0;min-height:36px;font-size:12px}
@media(max-width:650px){
  .screening-counts{gap:8px}
  .screening-count{min-height:40px;padding:8px 10px}
  .screening-title h3{flex-basis:100%}
  .screening-context{padding:11px 12px}
  .screening-details .screening-meta{gap:4px 10px}
  .screening-source time{margin-left:0}
  .inbox-originals summary{padding:5px 0}
}
@media(forced-colors:active){.screening-count[aria-pressed="true"]{color:Highlight;text-decoration:underline}}

.screening-actions{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap}
.screening-linked-task{display:inline-flex;align-items:center;gap:5px;max-width:100%}
.screening-references{display:flex;flex-wrap:wrap;gap:5px 16px;margin-top:12px;font-size:11px;color:var(--muted)}
.screening-references>span{min-width:0;overflow-wrap:anywhere}.screening-references a{color:var(--blue-dark)}

/* Inbox records without actions have their own table and never enter task selection. */
.inbox-view-tabs{display:flex;gap:28px;margin:0 0 20px;border-bottom:1px solid var(--line)}
.inbox-view-tabs [role="tab"]{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:10px 0 13px;border:0;background:transparent;color:var(--muted);font:500 14px/1.6 var(--font-body);white-space:nowrap;cursor:pointer}
.inbox-view-tabs [role="tab"]>span{font:500 12px/1.6 var(--font-display);font-variant-numeric:tabular-nums;color:inherit}
.inbox-view-tabs [role="tab"]:hover,.inbox-view-tabs [aria-selected="true"]{color:var(--blue-dark)}
.inbox-view-tabs [aria-selected="true"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:currentColor;border-radius:1px}
.inbox-view-tabs [role="tab"]:focus-visible{outline:none;text-decoration:underline;text-underline-offset:5px}
.retained-table-wrap{min-width:0;padding:0 var(--panel-pad,24px)}
.retained-table{width:100%;table-layout:fixed;border-collapse:collapse;white-space:normal;text-align:left}
.retained-table th{padding:12px 12px 12px 0;background:#fff;border-bottom:1px solid var(--line);font:400 12px/1.6 var(--font-body);color:var(--muted)}
.retained-table th:first-child{width:49%}.retained-table th:nth-child(2){width:23%}.retained-table th:nth-child(3){width:18%}.retained-table th:last-child{width:10%}
.retained-table td{padding:19px 12px 19px 0;border-bottom:1px solid var(--line);vertical-align:top;min-width:0;overflow-wrap:anywhere}
.retained-table th:last-child,.retained-table td:last-child{padding-right:0}
.retained-topic h3{margin:0;font:600 14px/1.8 var(--font-body);color:var(--ink)}
.retained-topic p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:5px 0 0;font:400 12px/1.8 var(--font-body);color:var(--muted)}
.retained-source{font:400 12px/1.8 var(--font-body);color:var(--secondary)}
.retained-source small{display:block;margin-top:5px;font-size:11px;color:var(--muted)}
.retained-time{font:400 11px/1.9 var(--font-body);color:var(--muted)}
.retained-action{text-align:right}.retained-action .button{padding:2px 0;min-height:36px;font-size:12px;gap:4px}
.retained-action .icon{width:14px;height:14px}.retained-action [aria-expanded="true"] .icon{transform:rotate(180deg)}
.retained-detail-row[hidden]{display:none!important}.retained-detail-row>td{padding:0 0 20px}
.retained-detail-row .screening-item{padding:18px 0 0;border:0}.retained-detail-row .screening-title{display:none}
.retained-detail-row .screening-context{margin-top:0}
@media(max-width:650px){
  .inbox-view-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin-bottom:16px}.inbox-view-tabs [role="tab"]{justify-content:space-between;font-size:13px;gap:7px}
  .retained-table-wrap{padding:0 16px}.retained-table,.retained-table tbody{display:block;width:100%}
  .retained-table thead{display:none}.retained-record-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;padding:17px 0;border-bottom:1px solid var(--line)}
  .retained-table td{display:block;padding:0;border:0}.retained-topic{grid-column:1/-1}
  .retained-topic h3{font-size:14px}.retained-source{grid-column:1;grid-row:2}.retained-source small{display:inline;margin-left:10px}
  .retained-time{grid-column:1;grid-row:3}.retained-action{grid-column:2;grid-row:2/4;align-self:center}
  .retained-action .button{min-height:44px}.retained-detail-row{display:block;border-bottom:1px solid var(--line)}
  .retained-detail-row>td{padding-bottom:18px}.retained-detail-row .screening-item{padding-top:14px}
}

/* Archive controls and record pagination share the existing quiet table style. */
.list-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 24px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.pagination-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.pagination-actions label{display:flex;align-items:center;gap:8px;margin:0;font:inherit}.pagination-actions select{width:auto;min-height:34px;padding:5px 30px 5px 10px;font-size:12px}.pagination-actions .button{min-height:34px;padding:4px 0;font-size:12px}.pagination-actions .button:disabled{opacity:.4;cursor:default}
.task-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.task-row-actions .button{padding:3px 0;font-size:12px;min-height:32px}.task-archive-controls{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 16px}
.archive-tags{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:7px}.archive-tag{padding:0;border:0;background:transparent;color:var(--muted);font:400 12px/1.7 var(--font-body);cursor:pointer;overflow-wrap:anywhere;text-align:left}.archive-tag:hover,.archive-tag:focus-visible{color:var(--blue-dark);outline:none;text-decoration:underline;text-underline-offset:4px}
#archive-tag-filter{width:auto;max-width:100%;margin:0 22px 14px;font-size:12px}
.retained-title-toggle{display:block;width:100%;border:0;border-radius:0;background:transparent;padding:0;color:inherit;text-align:left;font:inherit;line-height:inherit;overflow-wrap:anywhere;cursor:pointer}.retained-title-toggle:hover,.retained-title-toggle:focus-visible{background:transparent;color:var(--blue-dark);outline:none}.retained-title-toggle:focus-visible{text-decoration:underline;text-underline-offset:4px}
.retained-source .retained-model{display:block;margin:5px 0 0;overflow-wrap:anywhere;line-height:1.75}
#inbox-bulk-toolbar{padding-left:7px;padding-right:0}
.panel>#inbox-bulk-toolbar{padding-left:var(--panel-pad,24px);padding-right:var(--panel-pad,24px)}
@media(max-width:650px){.list-pagination{padding:14px 16px;gap:10px}.pagination-actions{gap:12px;width:100%;justify-content:space-between}.pagination-actions .button{min-height:40px}.pagination-actions select{min-height:38px}.task-row-actions{gap:12px}.task-row-actions .button{min-height:38px}.retained-source .retained-model{display:block;margin-left:0}.task-archive-controls{margin-top:6px}}

/* One quiet, fixed empty state across lists; real loading and errors stay distinct. */
.illustrated-empty{min-height:340px;padding:30px 24px 36px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;box-sizing:border-box;white-space:normal}
.illustrated-empty .empty-illustration{display:block;width:208px;height:156px;max-width:100%;object-fit:contain;margin:0 0 14px;flex:none}
.illustrated-empty h3{margin:0;font:500 15px/1.7 var(--font-body);color:var(--ink)}
.illustrated-empty p{max-width:360px;margin:8px 0 0;font:400 12px/1.9 var(--font-body);color:var(--muted);overflow-wrap:anywhere}
.illustrated-empty.empty-compact{min-height:240px;padding:18px 12px 26px}.empty-compact .empty-illustration{width:160px;height:120px;margin-bottom:8px}
.retained-table .retained-empty-row>td{padding:0;border-bottom:0}
.list-loading{min-height:340px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:13px}
@media(max-width:650px){.illustrated-empty{min-height:300px;padding:24px 16px 30px}.illustrated-empty .empty-illustration{width:184px;height:138px}.illustrated-empty h3{font-size:14px}.illustrated-empty.empty-compact{min-height:230px}.empty-compact .empty-illustration{width:144px;height:108px}.list-loading{min-height:300px}.retained-empty-row{display:block}}

.completion-recipient{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.completion-recipient:last-child{border-bottom:0}.completion-recipient strong{font-size:13px;font-weight:500}.completion-recipient p{color:var(--muted);font-size:12px;margin-top:5px;overflow-wrap:anywhere}.completion-recipient>span{flex-shrink:0;color:var(--muted)}.completion-recipient>span.success{color:var(--green)}
.people-notifiers{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.people-notifiers-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}.people-notifiers-heading h3{font-size:14px;font-weight:600;margin:0}.people-notifiers .field-hint{margin:6px 0 0}.people-notifiers-heading .button{min-height:40px}.people-notifier-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:8px;margin-top:12px}.people-notifier-choice{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}.people-notifier-choice:has(input:checked){border-color:var(--blue);background:var(--blue-soft)}.people-notifier-choice:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:2px}.people-notifier-choice input{flex:none;margin:0;accent-color:var(--blue)}.people-notifier-choice span{display:grid;min-width:0}.people-notifier-choice strong{font-size:13px;overflow-wrap:anywhere}.people-notifier-choice small{font-size:11px;color:var(--muted)}
@media(max-width:650px){.people-notifiers-heading .button{width:100%;min-height:44px}.people-notifier-choices{grid-template-columns:1fr}}
/* Agent conversation: quiet controls, compact reading, responsive composer. */
.agent-chat-page{max-width:880px;margin:28px auto 80px;min-width:0}.chat-welcome{text-align:center;margin:50px 0 28px}.chat-welcome h2{font-size:30px;font-weight:600;letter-spacing:-.8px;margin:12px 0}.chat-welcome p{font-size:14px;color:var(--secondary)}.chat-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-bottom:20px}.chat-suggestions button{display:flex;align-items:center;gap:7px;border:0;background:#eeedf3;border-radius:24px;padding:8px 15px;color:var(--secondary);font-size:12px}.chat-suggestions button:hover{color:var(--purple,var(--blue))}.chat-suggestions .icon{width:15px;height:15px}.chat-composer{padding:22px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 8px 40px #24203805}.chat-composer fieldset{border:0;padding:0;margin:0;min-width:0}.chat-composer textarea{border:0;background:transparent;box-shadow:none!important;resize:vertical;padding:4px;font-size:15px;min-height:148px}.chat-controls{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:12px 0 4px;min-width:0}.chat-controls label{margin:0;min-width:0;max-width:100%}.chat-controls select{border:0;background-color:#f5f4f8;font-size:12px;max-width:240px;padding:8px 38px 8px 10px;border-radius:8px;box-shadow:none}.chat-controls select:hover{color:var(--blue)}.chat-controls .button{font-size:12px;min-height:34px;padding:5px 8px}.chat-model{font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin:8px 3px}.chat-send-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:19px;padding-top:16px;border-top:1px solid var(--line)}.chat-send-row>span{color:var(--muted);font-size:11px}.chat-send-row .button{border-radius:12px;min-width:84px}.chat-footnote{font-size:11px;text-align:center;color:var(--muted);margin:15px 0 32px}.chat-file-list{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 0}.chat-file-list>span{display:inline-flex;gap:5px;align-items:center;max-width:100%;overflow-wrap:anywhere;background:#f5f4f8;border-radius:6px;padding:4px 8px;font-size:11px}.chat-file-list .icon{width:13px;height:13px}.chat-recent{margin-top:30px}.chat-recent-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.chat-recent-heading h3{font-size:12px;color:var(--secondary);font-weight:500}.chat-recent-heading .button{font-size:11px}.chat-recent-item{display:flex;align-items:center;gap:15px;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;padding:16px 4px;font-size:13px}.chat-recent-item span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-recent-item small{color:var(--muted);font-size:11px}.chat-recent-item:hover{color:var(--blue)}.chat-timeline{max-height:640px;overflow:auto;overscroll-behavior:contain;padding:0 4px 8px;scrollbar-width:thin}.chat-message{margin:0 0 24px;min-width:0}.chat-message-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 10px;font-size:11px;color:var(--muted)}.chat-message-meta strong{font-weight:550;color:var(--secondary)}.chat-message.from-user{background:#f7f6fa;border-radius:12px;padding:15px 18px;margin-left:24px}.assistant-conversation .markdown-body{font-size:14px;line-height:1.85;overflow-wrap:anywhere}.assistant-conversation .markdown-body h1,.assistant-conversation .markdown-body h2{font-size:16px;line-height:1.6;font-weight:600;margin:18px 0 9px;border:0;padding:0}.assistant-conversation .markdown-body h3,.assistant-conversation .markdown-body h4{font-size:14px;line-height:1.6;margin:16px 0 8px}.assistant-conversation .markdown-body>:first-child{margin-top:0}.assistant-conversation .markdown-body pre{max-width:100%;overflow:auto}.assistant-conversation .assistant-result{border:0;background:transparent;padding:4px 0}.assistant-input-heading{display:grid;grid-template-columns:minmax(0,1fr) 90px;column-gap:10px;position:relative}.assistant-input-heading label{grid-column:1;min-width:0;line-height:22px;margin-bottom:8px}.assistant-tip{grid-column:1 / -1;min-width:0;font-size:11px;color:var(--muted);margin:0;max-width:100%}.assistant-tip summary{position:absolute;top:0;right:0;cursor:pointer;display:flex;align-items:center;gap:5px;line-height:22px;list-style:none}.assistant-tip summary:focus-visible{outline:2px solid #b5a3db;outline-offset:3px}.assistant-tip summary .icon{width:13px;height:13px}.assistant-tip[open]{margin-bottom:12px}.assistant-tip .disclosure-body{background:#f8f7fa;padding:15px;border-radius:10px;color:var(--secondary);font-size:12px;overflow-wrap:anywhere}.assistant-tip h3{font-size:12px;margin:10px 0}.chat-child{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:13px;width:100%;border:0;background:#f6f5f9;border-radius:10px;text-align:left;margin:12px 0;font-size:12px}.chat-child>span{display:flex;gap:8px;align-items:center;min-width:0;overflow-wrap:anywhere}.chat-child small{color:var(--muted)}.chat-processing{display:flex;gap:9px;align-items:center;color:var(--secondary);font-size:12px;margin:15px 0}.assistant-actions{flex-wrap:wrap}.agent-composer#agent-shortcut{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:15px}.agent-composer#agent-shortcut p{font-size:12px;color:var(--secondary)}
@media(max-width:650px){.agent-chat-page{margin:5px 0 48px}.chat-welcome{margin:30px 0 24px}.chat-welcome h2{font-size:23px}.chat-welcome .eyebrow{font-size:9px}.chat-welcome p{font-size:12px}.chat-composer{padding:16px;border-radius:20px}.chat-suggestions{gap:6px}.chat-suggestions button{padding:7px 10px;font-size:11px}.chat-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.chat-controls>label{grid-column:1 / -1;display:block;min-width:0}.chat-controls select{width:100%;max-width:none;min-height:44px;font-size:14px;padding:10px 38px 10px 12px}.chat-controls>.chat-project{min-width:0}.chat-controls>.button{justify-content:flex-start;min-height:40px;font-size:13px}.chat-send-row>span{max-width:155px;line-height:1.7}.chat-footnote{line-height:1.7;padding:0 12px}.chat-message.from-user{margin-left:8px;padding:12px}.chat-timeline{max-height:60vh}.chat-child{flex-wrap:wrap}.chat-recent-item{gap:6px}.chat-recent-item small{max-width:80px}.assistant-conversation .detail-body{padding-left:15px;padding-right:15px}.assistant-conversation .markdown-body{font-size:14px}}

/* Application shell: navigation and toolbars stay in place; the work area scrolls. */
:root{--sidebar:220px;--bg:#f4f5f8;--radius:12px;--font-display:var(--font-body)}
body::before{display:none}
html:has(#workspace:not([hidden])){height:100%;overflow:hidden;overflow:clip}
body:has(#workspace:not([hidden])){position:fixed;inset:0;height:100vh;height:100dvh;overflow:hidden;overflow:clip}
#workspace{height:100vh;height:100dvh;height:var(--workspace-height,100dvh);overflow:hidden}
.sidebar{height:100%;padding:22px 12px 14px;background:#f7f7fa;border:0;overflow:hidden}
.brand{gap:9px;padding:0 10px;flex-shrink:0}.brand-name{font:600 17px/1.5 var(--font-body);letter-spacing:0}
.brand-name small{font:400 11px/1.6 var(--font-body);letter-spacing:0;margin-top:3px}
.brand-logo{width:32px;height:32px;border-radius:10px;box-shadow:none}
.sidebar .nav-list{display:flex;flex-direction:column;gap:4px;margin:28px 0 16px;min-height:0;overflow-y:auto;scrollbar-width:thin}
.sidebar .nav-item{flex-shrink:0;min-height:42px;padding:10px 12px;gap:11px;font-size:13px;text-align:left}
.sidebar .nav-item:hover{background:transparent;color:var(--blue-dark)}
.sidebar .nav-item.active{background:#ebe7f4;color:#6549a0}.sidebar .nav-item.active::before{display:none}
.sidebar .nav-group-label{font-size:11px;height:auto;letter-spacing:0;border:0;margin:16px 0 5px;padding:0 12px;color:var(--muted)}
.sidebar-bottom{flex-shrink:0}.workspace-label{border:0;padding-top:10px;font-size:11px}
.app{height:100%;display:flex;flex-direction:column;min-width:0;min-height:0;padding:0 12px 12px 0}
.topbar{position:relative;flex:0 0 58px;height:58px;padding:0 22px;border:0;background:transparent;backdrop-filter:none}
.breadcrumbs{gap:9px}.breadcrumbs>b{font-size:13px;font-weight:600;color:var(--ink)}
.topbar-right{min-width:0}.user-button{background:transparent}.environment{font-size:11px}
.app>.page-heading{flex-shrink:0;align-items:center;gap:16px;margin:0;padding:18px 24px;background:#fff;border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0}
.page-heading h1{font-size:20px;line-height:1.5;margin:0;letter-spacing:0}.page-heading p{font-size:12px;line-height:1.7;margin-top:4px}
#page-eyebrow{display:none}.heading-actions .button{min-height:36px;padding:6px 11px;font-size:12px}
.content{flex:1 1 0;min-width:0;min-height:0;max-width:none;width:auto;margin:0;padding:24px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d6d3de transparent;scroll-padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff}
/* Page content hands vertical scrolling to its parent at either edge; overlays keep their own boundary. */
#workspace #main-content :where(:not(dialog,dialog *,[popover],[popover] *)){overscroll-behavior-y:auto}
.page-heading:not([hidden])+.content{border-top:0;border-radius:0 0 14px 14px}
.content:focus{outline:none}.content>*{max-width:1440px;margin-left:auto;margin-right:auto;min-width:0}
.content>#agent-chat-page{max-width:1160px}.content:has(#agent-chat-page:not([hidden])){background:#fdfdfe;padding:36px 32px}
.panel{box-shadow:none}.panel-head{padding:18px 22px 16px}.panel-head h2{font-size:16px}
.detail-title,.detail-summary:has(>.background-disclosure) .detail-title{font-size:22px}.detail-summary{padding:22px 24px}
.stat{padding:17px 22px}.stat-value{font-size:30px}.stats{border-radius:12px}.runs-table td{padding-top:15px;padding-bottom:15px}
.agent-composer h2{font-size:21px}.agent-composer .eyebrow{display:none}
.agent-chat-page{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;margin:0 auto;align-items:start}
.chat-primary{min-width:0;width:100%;max-width:780px;margin:0 auto}
.chat-welcome{margin:0 0 24px;text-align:left}.chat-welcome-mark{display:grid;place-items:center;width:42px;height:42px;margin-bottom:18px;border-radius:13px;color:var(--blue-dark);background:#f0ebf8}
.chat-welcome-mark .icon{width:24px;height:24px}.chat-welcome h2{font:600 26px/1.5 var(--font-body);letter-spacing:-.5px;margin:0 0 8px}.chat-welcome p{font-size:13px;color:var(--muted)}
.chat-suggestions{justify-content:flex-start;gap:8px;margin-bottom:16px}.chat-suggestions button{min-height:36px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:7px 11px}
.chat-composer{padding:20px;border-radius:16px;border-color:#dedbe6;box-shadow:0 4px 20px #24203804}
.chat-composer textarea{min-height:160px;max-height:40vh;max-height:40dvh;font-size:15px;line-height:1.8}
.chat-controls{gap:6px}.chat-controls select{background-color:#f4f3f7}.chat-send-row{margin-top:14px;padding-top:14px}.chat-send-row .button{border-radius:9px;min-height:40px}
.chat-footnote{text-align:left;font-size:11px;line-height:1.8;margin:12px 2px 0;padding:0}
.chat-recent{width:100%;max-width:780px;margin:0 auto;min-width:0;border-top:1px solid var(--line);padding-top:18px}
.chat-recent-heading{gap:12px;margin-bottom:6px}.chat-recent-heading h3{font-size:13px;color:var(--ink);font-weight:600}.chat-recent-heading .button{min-height:36px;padding:4px 0;font-size:12px}
.chat-recent-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:14px 0;min-width:0;color:var(--secondary)}
.chat-recent-item span{grid-column:1;grid-row:1;font-size:13px}.chat-recent-item small{grid-column:1;grid-row:2;font-size:11px;max-width:none}.chat-recent-item>.icon{grid-column:2;grid-row:1/3;width:16px;height:16px;color:#aaa3b4}
.chat-recent-empty{padding:22px 0;font-size:13px;color:var(--secondary)}.chat-recent-empty p{font-size:12px;line-height:1.9;color:var(--muted);margin-top:6px}
.chat-recent-list{max-height:min(60vh,620px);overflow:auto;overscroll-behavior:contain}.chat-recent-row{display:flex;align-items:center;min-width:0;border-bottom:1px solid var(--line)}.chat-recent-row .chat-recent-item{flex:1;min-width:0;border-bottom:0}.chat-recent-action{display:grid;place-items:center;flex:none;width:32px;min-height:36px;margin-left:2px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:inherit;cursor:pointer}.chat-recent-action .icon{width:16px;height:16px}.chat-recent-action:hover:not(:disabled){background:var(--blue-soft);color:var(--blue)}.chat-recent-action:disabled{opacity:.4;cursor:default}.chat-recent-name{flex:1;min-width:0;margin:8px 0;padding:7px;border:1px solid var(--blue);border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:13px}.chat-recent-row :is(button,input):focus-visible{outline:2px solid var(--blue);outline-offset:2px}
/* Chat history shares the main scroll area; code blocks retain horizontal scrolling. */
.chat-timeline{max-height:none;overflow:visible;overscroll-behavior:auto}
@media(min-width:1180px){
  .agent-chat-page{grid-template-columns:minmax(0,1fr) 250px;gap:36px;padding:14px 0}
  .chat-recent{border-top:0;border-left:1px solid var(--line);padding:0 0 0 24px;min-height:320px}
}
@media(min-width:651px) and (max-width:1000px){
  :root{--sidebar:76px}.sidebar{padding:20px 10px 12px}.sidebar .brand{padding:0;justify-content:center}
  .sidebar .brand-name,.sidebar .nav-text,.sidebar .workspace-label{display:none}.sidebar .nav-list{margin-top:28px}
  .sidebar .nav-item{justify-content:center;padding:11px;min-height:44px;font-size:0;gap:0}.sidebar .nav-item .icon{width:21px;height:21px}
  .sidebar .nav-group-label{font-size:0;height:1px;background:var(--line);margin:16px 10px 10px;padding:0}
  .sidebar .nav-count{position:absolute;top:2px;right:2px;min-width:16px;padding:0 3px;line-height:16px;font-size:9px}
  .app>.page-heading{flex-wrap:wrap}.content:has(#agent-chat-page:not([hidden])){padding:28px}
}
@media(max-width:650px){
  :root{--sidebar:0px}#workspace{display:flex;flex-direction:column}.sidebar{display:none}
  .app{order:0;flex:1 1 0;height:auto;min-height:0;margin:0;padding:0}
  .topbar{flex-basis:calc(56px + env(safe-area-inset-top));height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));border-bottom:1px solid var(--line);background:#fff;gap:8px}
  .mobile-brand{display:flex;gap:8px;min-width:0;font:600 15px/1.5 var(--font-body)}.mobile-brand .brand-logo{width:28px;height:28px;border-radius:8px}
  .mobile-brand>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-right{gap:8px}.topbar-right .environment{display:none}
  .app>.page-heading{padding:12px 14px;gap:8px;align-items:center;flex-wrap:wrap;border:0;border-bottom:1px solid var(--line);border-radius:0}
  .app>.page-heading>div:first-child{flex:1 1 auto}.page-heading h1{font-size:17px;letter-spacing:0}.page-heading p{display:none}
  .heading-actions{width:auto;gap:6px;margin-left:auto}.heading-actions .button{min-height:36px;padding:6px 8px;font-size:12px}.refresh-button{font-size:0!important;gap:0}
  .content,.content:has(#agent-chat-page:not([hidden])){padding:18px 14px 24px;border:0;border-radius:0;scroll-padding:14px}
  .page-heading:not([hidden])+.content{border-radius:0}
  .mobile-tabs{order:1;position:relative;flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;inset:auto;padding:6px max(10px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));background:#fff;backdrop-filter:none}
  .mobile-tabs .mobile-tab{min-height:48px;border-radius:9px}.mobile-tabs .mobile-tab.active{background:#f2eef8;color:#6549a0}
  .agent-chat-page{gap:24px;padding:0;margin:0 auto}.chat-welcome{margin:4px 0 20px}.chat-welcome-mark{width:36px;height:36px;border-radius:11px;margin-bottom:14px}
  .chat-welcome h2{font-size:22px;letter-spacing:0;margin-bottom:6px}.chat-welcome p{font-size:12px}
  .chat-suggestions{gap:6px;margin-bottom:12px}.chat-suggestions button{font-size:11px;padding:7px 9px;min-height:36px}
  .chat-composer{padding:14px;border-radius:14px}.chat-composer textarea{min-height:126px;font-size:16px}
  .chat-send-row>span{max-width:145px}.chat-send-row{gap:6px}.chat-footnote{margin-top:10px;font-size:11px}
  .chat-recent{padding-top:12px}.chat-recent-item{padding:12px 0}
  .panel-head{padding:16px}.panel-head h2{font-size:16px}.detail-summary{padding:18px 16px}.detail-title,.detail-summary:has(>.background-disclosure) .detail-title{font-size:20px}
  .stat{padding:16px}.stat-value{font-size:28px}.chat-timeline{max-height:none}
  dialog{max-height:calc(100vh - 24px);max-height:calc(var(--workspace-height,100dvh) - 24px)}
}
@media(max-width:650px){.chat-recent-action{width:44px;min-height:44px}.chat-recent-list{max-height:45vh}}
@media(max-height:540px) and (min-width:651px){.sidebar{padding-top:12px}.sidebar .nav-list{margin-top:16px}.workspace-label{display:none}.app>.page-heading{padding-top:10px;padding-bottom:10px}}

/* 任务通: an AI companion mark and one shared composer across both entry points. */
:root{--blue:#7254d8;--blue-dark:#5f43bc;--blue-soft:#f1edf9}
.brand-name{font-family:Arial,Helvetica,var(--font-body);font-size:19px;letter-spacing:-.5px}
.brand-logo,.mobile-brand .brand-logo{display:block;object-fit:contain;background:transparent;box-shadow:none;border-radius:0;flex-shrink:0}
.brand-name small{font-family:var(--font-body);letter-spacing:0;font-size:10px}
.chat-welcome-mark{background:transparent;border-radius:0}.chat-welcome-mark img{display:block;width:100%;height:100%}
.login-copy h1{letter-spacing:-1px}.login-kicker{color:var(--blue-dark)}.login-card h2{font-family:var(--font-body);font-size:27px;letter-spacing:-.5px}
.agent-overview-grid{align-items:stretch;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:20px}
.overview-mate,.agent-overview-grid>.agent-attention{padding:20px;min-width:0;display:flex;flex-direction:column}
.overview-mate-head,.agent-attention>.agent-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin:0 0 16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.overview-mate-head h2{display:flex;align-items:center;gap:10px;font:600 15px/1.5 var(--font-body);margin:0}
.overview-mate-head img{flex-shrink:0}.agent-attention>.agent-section-heading h2{font-size:15px}
.overview-mate-head .button{min-height:32px;font-size:12px;padding:4px 0;flex-shrink:0}
#overview-chat{min-width:0;flex:1;display:grid;align-content:start;gap:var(--space-3)}
.overview-collaboration-suggestions{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.overview-collaboration-suggestions .button{min-height:40px;font-size:12px;gap:var(--space-2)}
.overview-collaboration-form{display:grid;gap:var(--space-3);padding:var(--space-4);border:1px solid var(--line);border-radius:12px;min-width:0}
.overview-collaboration-form textarea{min-height:112px;resize:vertical;font-size:14px;line-height:1.7}
.overview-collaboration-actions{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap}
.overview-collaboration-actions label{display:inline-flex;align-items:center;gap:var(--space-2);font-size:13px}
.overview-collaboration-actions input{width:16px;height:16px}
#overview-chat>.field-hint{margin:0}
.agent-attention .attention-list{display:flex;flex-direction:column;flex:1}
.agent-attention .attention-item{padding:16px 0;min-height:78px}
.agent-attention .attention-item:first-child{padding-top:6px}
.agent-attention .attention-item strong{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;line-height:1.75}
.agent-attention .attention-links{margin-top:auto;padding-top:12px;gap:8px}
.agent-attention .attention-links .button{padding:5px 0;margin-right:12px}
.agent-attention .attention-empty{margin:auto 0;padding:32px 12px}
.agent-roster{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
@media(max-width:1100px){.agent-overview-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){
  .overview-mate,.agent-overview-grid>.agent-attention{padding:16px}.overview-mate-head{margin-bottom:14px}
  .overview-collaboration-suggestions .button{min-height:44px}
  .overview-collaboration-form{padding:var(--space-3)}
  .overview-collaboration-form textarea{font-size:16px}
  .overview-collaboration-actions .button{min-height:44px}
  .chat-welcome h2{font-size:21px}.chat-welcome p{line-height:1.9}
  .login-card h2{font-size:24px}
}

/* Shared spacing rhythm: label → control → section → actions. */
:root{--space-field:16px;--space-section:24px;--panel-pad:24px}
.field{margin-top:var(--space-field);min-width:0}.field:first-child{margin-top:0}
.field label{margin-bottom:8px;line-height:1.6}.field-hint{margin-top:8px}
:is(.dialog-body,.config-card,.gate,.detail-body)>.field+*:not(.field):not([hidden]):not(.field-hint){margin-top:var(--space-field)}
.dialog-head{padding:24px var(--panel-pad) 20px;align-items:flex-start}
.dialog-head>div{min-width:0}.dialog-head h2{font:600 20px/1.5 var(--font-body);overflow-wrap:anywhere}
.dialog-head .icon-button{flex-shrink:0}.dialog-head p{margin-top:8px;line-height:1.8}
.dialog-body{padding:0 var(--panel-pad) var(--space-section);min-width:0}
.dialog-foot{padding:16px var(--panel-pad);gap:10px;flex-wrap:wrap}
.dialog-foot .button{white-space:normal}
.batch-intro{margin:0 0 var(--space-field)}
#batch-body>.field{margin:0 0 20px}
.batch-task-list{max-height:min(340px,45dvh);overscroll-behavior-x:contain;overscroll-behavior-y:auto}
.batch-task-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;padding:16px;line-height:1.8}
.batch-task-list small{margin-top:8px}.batch-state{padding-top:2px;font-size:12px}
.config-card{padding:var(--panel-pad)}.config-card>p{margin:8px 0 20px}.config-card>p:last-child{margin-bottom:0}
.config-subsection{padding-top:var(--space-section);margin-top:var(--space-section)}
.config-subsection h3{margin-bottom:16px}.config-actions{gap:12px;flex-wrap:wrap}
.panel-head{padding:20px var(--panel-pad);gap:12px;flex-wrap:wrap}
.panel-head>div{min-width:0}.panel-head p{margin-top:6px}
.toolbar{padding:0 var(--panel-pad) 16px;gap:10px}.toolbar>*{min-width:0}.toolbar .search-field{max-width:none}
.bulk-toolbar{padding:10px var(--panel-pad);gap:10px 16px}
.screening-title{align-items:flex-start}.screening-references{display:grid;gap:10px;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
.screening-references>span{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;min-width:0}
.screening-references a{overflow-wrap:anywhere}.screening-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:16px}
.inbox-originals summary{min-height:36px;display:flex;align-items:center;gap:8px;list-style:none}
.inbox-originals summary::before{content:"›";font-size:18px;line-height:1;transform-origin:center}
.inbox-originals[open]>summary::before{transform:rotate(90deg)}
.inbox-originals summary::-webkit-details-marker{display:none}
.project-card-foot{gap:12px;flex-wrap:wrap}.gate-actions,.task-routing-actions,.assistant-actions{gap:10px;align-items:center}
:is(.gate-actions,.task-routing-actions,.assistant-actions)>.button{white-space:normal}
#workspace[data-view="archive"] .toolbar .search-field{min-width:120px}
#workspace[data-view="archive"] #filter-type{max-width:128px}
#archive-tag-filter{flex:0 1 180px;max-width:180px;margin:0}
.detail-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;min-height:36px;margin-bottom:12px}
.detail-navigation>.detail-back{margin:0;flex-shrink:0;min-height:36px}
.detail-navigation>.task-archive-controls{flex:1;min-width:0;justify-content:flex-end;gap:8px 16px;margin:0}
.detail-navigation .archive-tags{margin:0}
.detail-navigation .task-row-actions .button{min-height:36px;padding:6px 12px}
.table-footer{gap:8px 16px;flex-wrap:wrap}
@media(max-width:650px){
 :root{--space-section:20px;--panel-pad:16px}
 .dialog-head{padding-top:20px;padding-bottom:16px}.dialog-head h2{font-size:18px}
 .dialog-foot .button{min-height:44px;flex:1 1 100px}
 .batch-task-list li{padding:14px;gap:12px;font-size:13px}.batch-task-list small{font-size:12px}.batch-state{font-size:11px}
 .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .toolbar .search-field{grid-column:1 / -1;min-width:0}.toolbar :is(input,select){width:100%;min-width:0}
 #workspace[data-view="archive"] #filter-type,#archive-tag-filter{max-width:none}
 .detail-navigation{gap:8px 12px;margin-bottom:10px}
 .detail-navigation>.detail-back,.detail-navigation .task-row-actions .button{min-height:44px}
 .bulk-toolbar{align-items:flex-start}.bulk-actions{margin-left:0;width:100%;gap:4px 8px}
 .bulk-actions .button{min-height:36px;padding:6px 4px}
 .screening-title{flex-wrap:wrap;gap:8px}.screening-title h3{flex-basis:100%}
 .screening-details .screening-meta{gap:6px 12px}.screening-source time{margin-left:0}
 .screening-actions .button{min-height:40px}
 .config-actions>.button,.task-routing-actions>.button,.assistant-actions>.button{flex:1 1 130px;min-height:44px}
 .project-card-foot>.button{min-height:42px}
}

/* Images load only on request, through the same authenticated attachment APIs. */
button.markdown-image{display:inline-flex;align-items:center;padding:4px 0;border:0;background:transparent;color:var(--blue-dark);font:inherit;text-decoration:underline;text-underline-offset:4px;text-align:left;cursor:pointer}
.image-viewer{width:min(1000px,calc(100vw - 32px));max-height:calc(var(--workspace-height,100dvh) - 32px)}
.image-viewer[open]{display:flex;flex-direction:column}.image-viewer .dialog-head,.image-viewer .dialog-foot{flex-shrink:0}
.image-viewer-body{min-height:140px;min-width:0;overflow:auto;padding:16px var(--panel-pad);background:#f7f7fa;overscroll-behavior:contain;text-align:center}
.image-viewer-body>p{padding:24px 0;color:var(--secondary);font-size:13px;line-height:1.8}
.image-viewer-body img{display:block;max-width:100%;max-height:65vh;max-height:60dvh;width:auto;height:auto;margin:0 auto;object-fit:contain}
.image-viewer-body.original-size img{max-width:none;max-height:none;margin:0}
.image-viewer .dialog-foot{background:#fff}.image-viewer-source{margin-right:auto}
@media(max-width:650px){
 .image-viewer .dialog-foot>#image-viewer-source{flex-basis:100%;justify-content:flex-start;min-height:32px;padding:0}
}

/* Development tasks: compact headings, clear failure states and an explicit work computer. */
#detail .detail-topline{align-items:flex-start;gap:16px}
#detail .detail-topline>div{min-width:0;flex:1}
#detail .detail-topline>.badge{flex-shrink:0;margin-top:0;max-width:100%}
#detail .detail-title{font-size:22px;line-height:1.55;letter-spacing:0;margin:12px 0 0;overflow-wrap:anywhere;max-width:58em}
#detail .detail-eyebrow{flex-wrap:wrap;row-gap:6px}
#detail .background-disclosure{margin-top:18px;padding-top:0;border-top:1px solid var(--line)}
#detail .background-disclosure>summary{padding:14px 0;min-height:44px;align-items:center}
#detail .background-disclosure>.disclosure-body{padding-top:0}
#detail .flow{grid-template-columns:repeat(var(--flow-count,7),minmax(0,1fr));gap:0;margin:24px 0 20px;padding:0;overflow:visible}
#detail .step{min-width:0;font-size:12px;line-height:1.6;padding:0 5px;overflow-wrap:anywhere}
#detail .step small{font-size:9px;letter-spacing:1px;margin-top:5px}
#detail .step-mark{width:32px;height:32px;font-size:11px;margin:0 auto 10px}
#detail .step:before{top:16px}
#detail .detail-metrics{padding:16px 0;gap:16px}
#detail .progress-phase{align-items:flex-start;gap:12px;padding:18px 0 12px;margin:0}
#detail .progress-symbol{width:36px;height:36px;border-radius:10px;flex:0 0 36px}
#detail .progress-symbol .icon{width:19px;height:19px}
#detail .progress-symbol.warning{background:#fff2df;color:#98612d}
#detail .progress-phase>div{min-width:0}
#detail .progress-phase h3{font-size:16px;line-height:1.5;margin:0}
#detail .progress-phase p{font-size:13px;line-height:1.75;margin:6px 0 0;color:var(--secondary);overflow-wrap:anywhere}
.execution-location{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;font-size:12px;line-height:1.8;padding:10px 12px;background:#f8f7fb;border:1px solid var(--line);border-radius:8px;margin:8px 0 16px;min-width:0;color:var(--secondary)}
.execution-location strong{color:var(--ink);font-weight:600;margin-left:6px}
.execution-location small{flex-basis:100%;font-size:12px;color:var(--muted)}
.execution-directory{min-width:0;max-width:100%;overflow-wrap:anywhere}.execution-directory code{font-size:11px;margin-left:6px;white-space:normal}
#detail .progress-stages{display:grid;grid-template-columns:repeat(var(--stage-count,5),minmax(0,1fr));gap:8px;margin:16px 0;padding:0;overflow:visible;list-style:none}
#detail .progress-stages li{min-width:0;padding:10px;gap:8px;align-items:center;line-height:1.5;margin:0}
#detail .progress-step-marker{flex:0 0 25px;width:25px;height:25px;font-size:11px}
#detail .progress-step-label{min-width:0;font-size:12px;overflow-wrap:anywhere}
#detail .progress-step-label small{display:block;font-size:11px;margin-top:3px}
#detail .progress-stages li.warning{background:#fff8ef;border-color:#efdbc2;color:#98612d}
#detail .progress-stages li.warning .progress-step-marker{background:#f9e7cd;color:#98612d}
#detail .progress-updated{font-size:12px;line-height:1.8;margin:14px 0 10px}
#detail .progress-empty{min-height:0;padding:24px 18px;font-size:13px;line-height:1.8;text-align:left;color:var(--muted)}
#detail .progress-feed:has(>.progress-empty){min-height:0;max-height:none}
#detail .preparation-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:12px 0}
#detail .preparation-actions p{margin:0;flex:1 1 220px}
#detail .preparation-progress{margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg);min-width:0}
#detail .preparation-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:13px}
#detail .preparation-heading strong{display:flex;align-items:center;gap:8px}
#detail .preparation-heading>span{font-size:12px;color:var(--secondary);font-variant-numeric:tabular-nums}
#detail .preparation-command{display:block;margin:12px 0 8px;font:12px/1.8 var(--font-mono);overflow-wrap:anywhere;white-space:pre-wrap}
#detail .preparation-output{max-height:180px;overflow:auto;overscroll-behavior-x:contain;overscroll-behavior-y:auto;margin:12px 0;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:6px;font:12px/1.8 var(--font-mono);white-space:pre-wrap;overflow-wrap:anywhere}
#detail .preparation-heartbeat{font-size:12px;color:var(--secondary);margin:10px 0 6px}
#detail .preparation-heartbeat.is-stale,#detail .preparation-progress.has-error .preparation-heading{color:var(--red)}
#detail .implementation-panel>.panel-head .execution-location{margin:12px 0 0}
@media(max-width:1000px){#detail .progress-stages{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 #detail .detail-topline{flex-wrap:wrap;gap:10px}#detail .detail-topline>div{flex-basis:100%}
 #detail .detail-title{font-size:19px;line-height:1.65}#detail .detail-summary{padding:18px 16px}
 #detail .flow{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;margin:18px 0}
 #detail .step{display:grid;grid-template-columns:28px 1fr;gap:2px 8px;text-align:left;padding:0;align-items:center}
 #detail .step:before{display:none}#detail .step-mark{grid-row:span 2;width:26px;height:26px;margin:0;font-size:10px}
 #detail .step small{margin:0;font-size:8px;letter-spacing:.5px}
 #detail .progress-stages li{padding:9px 8px;gap:6px}#detail .progress-phase h3{font-size:15px}
 #detail .detail-metrics{gap:10px}#detail .detail-metric{min-width:0;font-size:11px}
 .execution-location{gap:4px 14px;padding:9px 10px}
}
#detail .detail-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#detail .detail-topline{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:0}
#detail .detail-topline>div{display:contents}
#detail .detail-topline .detail-eyebrow{grid-column:1;grid-row:1;min-width:0}
#detail .detail-topline>.badge{grid-column:2;grid-row:1;align-self:start}
#detail .detail-topline .detail-title{grid-column:1/-1;grid-row:2}
/* Task development keeps the conversation separate from explicit verification. */
.task-development .detail-body{padding:20px 24px}.task-conversation{display:flex;flex-direction:column;gap:20px;max-height:min(58dvh,660px);min-height:170px;overflow:auto;padding:2px 4px 18px;overscroll-behavior-x:contain;overscroll-behavior-y:auto;scrollbar-gutter:stable}.task-chat-row{display:flex;flex-direction:column;gap:7px;min-width:0;width:100%;align-items:flex-start}.task-chat-row.user{align-items:flex-end}.task-chat-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:12px;line-height:1.6;color:var(--muted)}.task-chat-meta time{font-size:11px}.task-chat-bubble{max-width:min(88%,960px);padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);color:var(--text);font-size:15px;line-height:1.8;overflow-wrap:anywhere;min-width:0}.task-chat-row.user .task-chat-bubble{background:var(--purple-soft,#f1ecff);border-color:#e7defa;white-space:pre-wrap}.task-chat-bubble pre{max-width:100%;overflow:auto}.task-chat-bubble>:first-child{margin-top:0}.task-chat-bubble>:last-child{margin-bottom:0}.task-chat-composer{border:1px solid var(--line);border-radius:12px;padding:14px;margin-top:16px;background:var(--surface,#fff)}.task-chat-composer textarea{display:block;width:100%;border:0!important;box-shadow:none!important;resize:vertical;background:transparent!important;padding:2px 0;min-height:80px;font:inherit;line-height:1.7}.task-chat-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.task-chat-actions .field-hint{margin:0;min-width:0}.task-chat-actions .button{flex:none;min-width:90px}.task-next-step{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.task-next-step .field-hint{flex:1 1 230px;margin:0}.task-action-status{display:flex;align-items:center;gap:10px;padding:12px 16px;margin-bottom:14px;color:var(--purple,#7357dc);background:var(--purple-soft,#f1ecff);border:1px solid #e7defa;border-radius:9px;font-size:13px}.button[aria-busy=true]{cursor:progress}.button .spinner,.task-action-status .spinner{display:inline-block;width:15px;height:15px;flex:0 0 15px;padding:0;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:task-button-spin .8s linear infinite}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes task-button-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.button .spinner,.task-action-status .spinner{animation:none}}@media(max-width:680px){.task-development .detail-body{padding:16px}.task-conversation{max-height:55dvh;gap:17px;padding-right:0}.task-chat-bubble{max-width:96%;font-size:14px;padding:12px 14px}.task-chat-composer{padding:12px}.task-chat-actions{align-items:flex-end;gap:8px}.task-chat-actions .field-hint{font-size:11px}.task-next-step{align-items:stretch;gap:9px}.task-next-step>.button{width:100%}.task-next-step .field-hint{flex-basis:100%}.task-action-status{font-size:12px}}

/* Project implementation uses one frame and a shared content edge. */
#detail .implementation-panel>.panel-head{padding:18px var(--panel-pad);margin:0}
#detail .implementation-panel>.detail-body{padding:0}
#detail .implementation-panel .project-grid{grid-template-columns:minmax(0,1fr);gap:0}
#detail .implementation-panel .implementation-card{padding:20px var(--panel-pad);border:0;border-radius:0;box-shadow:none;min-width:0}
#detail .implementation-card+.implementation-card{border-top:1px solid var(--line)!important}
#detail .implementation-card-head{align-items:center;gap:12px;margin:0;padding:0 0 14px;border-bottom:1px solid var(--line)}
#detail .implementation-card-head>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0;flex:1}
#detail .implementation-card-head h3{font-size:16px;line-height:1.6;margin:0;overflow-wrap:anywhere}
#detail .implementation-card-head .mono{font-size:11px;line-height:1.7;white-space:nowrap}
#detail .implementation-card-head>.badge{flex-shrink:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#detail .implementation-card .progress-phase{gap:10px;padding:16px 0;margin:0}
#detail .implementation-card .progress-symbol{width:28px;height:28px;flex-basis:28px;border-radius:8px}
#detail .implementation-card .progress-symbol .icon{width:17px;height:17px}
#detail .implementation-card .progress-phase h3{font-size:15px;line-height:1.7;margin:0}
#detail .implementation-card .progress-phase p{margin:4px 0 0;font-size:13px;line-height:1.75}
#detail .implementation-card .inline-round-review{margin-top:0;padding-top:16px}
#detail .implementation-card .inline-round-review>h3{margin:0 0 12px}
@media(max-width:650px){
 #detail .implementation-panel>.panel-head{padding:16px}
 #detail .implementation-panel .implementation-card{padding:16px}
 #detail .implementation-card-head{gap:8px 12px;padding-bottom:12px}
 #detail .implementation-card-head h3{font-size:15px}
 #detail .implementation-card .progress-phase{padding:14px 0}
}

/* Unified computer directories and project context. */
.space-tools{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:14px;color:var(--secondary);font-size:14px}.space-tools>div,.space-card-foot>div{display:flex;gap:8px;flex-wrap:wrap}.space-card{padding:22px;min-width:0;display:flex;flex-direction:column;gap:16px}.space-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.space-card-head h2{font-size:19px;margin:0 0 6px}.space-card>p{color:var(--secondary);line-height:1.7;margin:0}.space-path{display:block;overflow-wrap:anywhere;padding:11px 13px;background:var(--surface,#f6f8fb);border:1px solid var(--line);border-radius:8px;font-size:13px}.space-rules{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px;color:var(--secondary)}.space-card-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.space-empty{padding:28px;color:var(--secondary);line-height:1.7}.mate-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px}.mate-layout>.panel{padding:24px;min-width:0}.mate-layout h2{font-size:19px;margin:0 0 12px}.mate-layout p{line-height:1.7;color:var(--secondary)}.mate-request form{display:grid;gap:10px;margin-top:20px}.mate-request form>div:has(select){display:grid;gap:10px}.mate-request label{font-size:14px;font-weight:600}.mate-request :is(select,textarea){width:100%;min-width:0;font:inherit;line-height:1.6;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff;color:var(--text)}.mate-request select{padding-right:36px}.mate-request textarea{resize:vertical}.mate-request-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.mate-request-actions [role=status]{font-size:13px;color:var(--secondary)}.mate-diff{border-top:1px solid var(--line);padding-top:14px;margin:14px 0}.mate-diff h3{font-size:14px;margin:0 0 8px}.mate-diff pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7fb;border-radius:6px;padding:12px;font-size:13px;max-height:360px;overflow:auto}.mate-diff summary{font-size:13px;color:var(--secondary);cursor:pointer}.project-skill-rule{display:grid;gap:9px;border:1px solid var(--line);border-radius:8px;padding:13px;margin:12px 0}.task-prompt-layers{padding:20px;margin-bottom:18px}.task-prompt-layers h2{font-size:17px;margin-bottom:12px}.task-prompt-layers summary{cursor:pointer;font-size:14px;font-weight:600;padding:8px 0}.task-prompt-layers p{white-space:pre-wrap;line-height:1.7;overflow-wrap:anywhere}.task-followup{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--line)}.task-followup small{display:block;color:var(--secondary);margin-top:5px}.task-followup .button{flex-shrink:0}
@media(max-width:850px){.mate-layout{grid-template-columns:1fr}.space-tools{align-items:flex-start;flex-direction:column}.space-tools>div{width:100%}.space-card{padding:18px}.mate-layout>.panel{padding:18px}.space-card-head{flex-direction:column}.task-followup{align-items:flex-start;flex-direction:column}.task-prompt-layers{padding:16px}}
.space-profiles{border-top:1px solid var(--line);font-size:13px;padding-top:10px}.space-profiles summary{cursor:pointer;color:var(--secondary);padding:5px 0}.space-profiles>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0}.space-profiles small{color:var(--secondary);display:block}
.space-profiles>div>span{min-width:0;overflow-wrap:anywhere}.space-profiles>div>.button{flex:none}.space-profiles>.space-profile-add{justify-content:flex-end;border-top:1px solid var(--line);padding-top:12px;margin-top:4px}
.space-archive-notice{grid-column:1/-1;overflow-wrap:anywhere}.space-tools>div{flex-shrink:0}
@media(max-width:480px){.space-profiles>div{align-items:flex-start;flex-wrap:wrap}.space-profiles>div>.button{margin-left:auto}}
/* Shared status icons keep their content inside the fixed size on every screen. */
#detail .progress-symbol{padding:0;display:grid;place-items:center;align-self:flex-start}
#detail .progress-symbol .icon{width:18px;height:18px;flex-shrink:0}
#detail .progress-phase>div{min-width:0}
#detail .progress-symbol .spinner{width:17px;height:17px;border-color:currentColor;border-right-color:transparent}
#detail .progress-phase .progress-live{font-size:12px;color:var(--purple,#7357dc)}
#detail [data-progress-run]>.task-action-status{margin:14px 0 0}
.feishu-action-review{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px 14px;margin:16px 0 10px;font-size:13px;line-height:1.8}.feishu-action-review dt{color:var(--muted)}.feishu-action-review dd{margin:0;min-width:0;overflow-wrap:anywhere}.feishu-action-review dd pre{margin:0;max-height:180px;font-family:inherit;background:transparent;border:0;padding:0;font-size:14px}@media(max-width:680px){.feishu-action-review{grid-template-columns:70px minmax(0,1fr);gap:8px}}
.feishu-workspace .panel-head{align-items:flex-start;gap:16px}.feishu-workspace .panel-head>div{min-width:0}.feishu-workspace .panel-head p{overflow-wrap:anywhere}.feishu-workspace .panel-head>.badge{flex:none}.feishu-action{min-width:0;padding:18px 0;border-top:1px solid var(--line)}.feishu-action:first-child{border-top:0;padding-top:0}.feishu-action-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.feishu-action-heading strong{min-width:0;overflow-wrap:anywhere}.feishu-action-heading .badge{flex:none}.feishu-action details{margin-top:12px}.feishu-action summary{cursor:pointer;font-size:13px;line-height:1.7;color:var(--muted)}.feishu-action pre{max-height:340px;max-width:100%;overflow:auto;overscroll-behavior-y:auto;padding:14px;background:var(--bg);border:1px solid var(--line);border-radius:8px;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.feishu-action-risk{color:#986218;font-size:13px;margin:10px 0}.feishu-action-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}@media(max-width:680px){.feishu-workspace .panel-head{gap:10px}.feishu-action-heading{gap:8px}.feishu-action{padding:16px 0}.feishu-action pre{max-height:260px;padding:10px}}
@media(prefers-reduced-motion:reduce){#detail .progress-symbol .spinner{animation:none}}
.verification-plan{border:1px solid var(--line);border-radius:8px;padding:14px 16px;margin:12px 0 16px;min-width:0}
.verification-plan-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}
.verification-plan-head h4{font-size:14px;margin:0}.verification-plan-head>span{color:var(--muted);white-space:nowrap}
.verification-plan>p{font-size:13px;line-height:1.75;color:var(--secondary);margin:7px 0 10px;overflow-wrap:anywhere}
.verification-plan ol{list-style:none;margin:0;padding:0}.verification-plan li+li{border-top:1px solid var(--line)}
.verification-issue>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:9px 0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.verification-issue .disclosure-body{padding:0 0 10px}.verification-issue dl{margin:0;font-size:12px;line-height:1.75}
.verification-issue dt{color:var(--muted);margin-top:7px}.verification-issue dd{margin:2px 0 0;color:var(--secondary);overflow-wrap:anywhere}
.verification-plan .is-verified>details>summary{color:var(--green,#35806b)}
.project-directory-summary{display:grid;gap:6px;padding:12px 14px;background:var(--surface-soft,#f6f5fa);border-radius:8px;margin-bottom:16px}
.project-directory-summary code{overflow-wrap:anywhere;font-size:13px}
.project-skills-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.project-skills-heading h3{margin:0}
.project-advanced{border-top:1px solid var(--line,#e5e3ec);margin-top:18px;padding-top:14px}
.project-advanced>summary{cursor:pointer;font-weight:600}
.project-skill-rule [data-rule-remove]{justify-self:start}
#workspace[data-surface="project-dialog"] #page-surfaces{height:100%;min-height:0}
#workspace[data-surface="project-dialog"] #project-dialog{height:100%;display:flex;flex-direction:column;overflow:hidden}
#project-dialog.app-surface .dialog-head{flex:none;align-items:flex-start;gap:16px}
#project-dialog.app-surface .dialog-head>div{flex:1;min-width:0}
#project-dialog.app-surface .dialog-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#project-dialog.app-surface .dialog-foot{flex:none;background:#fff}
.verification-evidence{margin:14px 0;border:1px solid var(--line);border-radius:8px;padding:12px 14px}
.verification-evidence summary{cursor:pointer;font-weight:600;font-size:13px}
.verification-evidence>div{padding-top:12px;margin-top:12px;border-top:1px solid var(--line);min-width:0}
.verification-evidence strong{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;overflow-wrap:anywhere}
.verification-evidence strong span{color:var(--secondary);font-size:12px;font-weight:400}
.verification-evidence p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.local-session-control,.test-acceptance-list{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);min-width:0}
.local-session-control h3,.test-acceptance-list h4{font-size:14px;margin-bottom:8px}
.local-session-control details,.test-acceptance-list details{margin:10px 0}
.local-session-control summary,.test-acceptance-list summary{cursor:pointer;overflow-wrap:anywhere}
.testing-development-controls{margin:18px 0;min-width:0}
.testing-development-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.testing-development-options>div{min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:var(--radius,12px);background:var(--surface,#fff);display:flex;flex-direction:column;align-items:flex-start}
.testing-development-options h3{margin:0 0 8px;font-size:14px}
.testing-development-options .field-hint{margin:0 0 14px;overflow-wrap:anywhere}
.testing-development-options .return-development-control>.button,.testing-development-options .local-session-control>.button{margin-top:auto}
.testing-development-options .gate-actions{width:100%}
@media(max-width:650px){.testing-development-options{grid-template-columns:minmax(0,1fr)}.testing-development-options .button{min-height:44px;white-space:normal;overflow-wrap:anywhere}}
.handoff-command{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:200px;overflow:auto}
.acceptance-checks{border:1px solid var(--line);border-radius:8px;min-width:0;margin:22px 0;padding:8px 16px 12px}
.acceptance-checks legend{padding:0 6px;font-size:13px;font-weight:600;line-height:1.6;color:var(--ink)}
.acceptance-checks label{display:grid;grid-template-columns:16px minmax(0,1fr);gap:10px;align-items:start;margin:0;padding:9px 0;font-size:14px;font-weight:400;line-height:1.65;cursor:pointer;overflow-wrap:anywhere}
.acceptance-checks label span{min-width:0}
.acceptance-checks input[type="checkbox"]{width:16px;height:16px;margin:3px 0 0;padding:0;accent-color:var(--blue)}
/* Agent reference and task evidence share the workbench's spacing and surfaces. */
.agent-reference-toolbar{display:flex;gap:12px;align-items:center;position:sticky;top:0;background:var(--bg);z-index:4;padding:12px 0;border-bottom:1px solid var(--line)}
.agent-reference-toolbar{z-index:15}
.bulk-toolbar{border-bottom:1px solid var(--line);box-shadow:none}
.bulk-toolbar.is-stuck{border-top-color:transparent}
.collaboration-step{margin:18px 0;padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:#faf9fd;min-width:0}
.collaboration-step-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.collaboration-step-head>div{min-width:0}.collaboration-step-head h3{font-size:14px;margin:0}.collaboration-step-head p{margin:5px 0 0;font-size:13px;color:var(--secondary);overflow-wrap:anywhere}.collaboration-step-head>.badge{flex:none}
.collaboration-step-body{margin-top:12px}.collaboration-step-body:has(> .error[hidden]:only-child){display:none}
.issue-review-evidence{margin:14px 0;font-size:13px;color:var(--secondary);line-height:1.8}.issue-review-evidence strong{font-weight:500;color:var(--blue)}
.inbox-review-status{margin:0 0 16px}
.agent-deploy-disclosure,.agent-deployment-status{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:10px;background:#fff}
.agent-deploy-disclosure>summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--ink);line-height:1.8}.agent-deploy-form{padding-top:14px}.agent-deploy-form p,.agent-deployment-status p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.agent-deploy-form .field{margin-top:16px}.agent-deployment-status h4{display:flex;align-items:center;gap:8px;margin:0}
.agent-deploy-form>button{margin-top:16px}.deployment-form{padding-top:22px;margin-top:18px;border-top:1px solid var(--line)}
.agent-commit-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:8px}.agent-commit-meta .field-hint{margin:0;min-width:0;overflow-wrap:anywhere}.agent-commit-meta .button{flex:none;min-height:32px;padding:4px 8px;font-size:13px;white-space:nowrap}
.test-acceptance-list details{padding:9px 0;border-bottom:1px solid var(--line)}.test-acceptance-list details:last-child{border-bottom:0}.test-acceptance-list summary{cursor:pointer;line-height:1.8}.test-acceptance-list details p{margin:8px 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){.collaboration-step{padding:14px}.collaboration-step-head{gap:8px}.inbox-toolbar{flex-wrap:wrap}}
.agent-reference-toolbar .search-field{flex:1;min-width:180px}.agent-reference-toolbar select{width:auto;min-width:150px}.agent-reference-toolbar>span{white-space:nowrap}
.agent-reference-note{margin:14px 0 20px}.agent-reference-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:18px;align-items:start}.agent-reference-card{padding:22px;min-width:0}.agent-reference-head,.agent-reference-foot,.code-evidence-head,.local-config-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.agent-reference-head h2{margin:0;font-size:17px}.agent-reference-card>p{color:var(--secondary);min-height:3.2em}.agent-reference-card dl{margin:18px 0}.agent-reference-card dl>div{display:grid;grid-template-columns:64px 1fr;gap:10px;margin:9px 0}.agent-reference-card dt,.code-evidence dt{color:var(--secondary)}.agent-reference-card dd,.code-evidence dd{margin:0;overflow-wrap:anywhere}.agent-reference-card summary{cursor:pointer;color:var(--secondary)}.agent-reference-card blockquote{margin:14px 0;padding:12px 14px;border-left:3px solid var(--blue);background:var(--bg);border-radius:4px}.agent-reference-foot{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.agent-reference-loading{padding:24px}
.code-evidence{margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-width:0}.code-evidence-head h3{margin:0}.code-evidence-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:18px 0}.code-evidence-facts dt{font-size:12px;margin-bottom:4px}.code-evidence-facts dd{font-size:14px}.code-evidence details{border-top:1px solid var(--line);padding:12px 0}.code-evidence summary{cursor:pointer;font-weight:500}.code-file-list,.code-commit-list,.code-turn-list{max-height:300px;overflow:auto;padding:8px 0 0;margin:0;overscroll-behavior-y:auto}.code-file-list,.code-commit-list{list-style:none}.code-file-list li{display:flex;gap:10px;align-items:baseline;padding:5px 0;min-width:0}.code-file-list code{overflow-wrap:anywhere;min-width:0}.code-commit-list li{display:grid;grid-template-columns:110px minmax(0,1fr);gap:4px 10px;padding:9px 0}.code-commit-list small{grid-column:2;color:var(--secondary)}.code-commit-list strong{font-weight:500;overflow-wrap:anywhere}.code-turn-list{padding-left:22px}.code-turn-list li{padding:8px 0}.code-turn-list small{display:block;color:var(--secondary)}.code-turn-list p{white-space:pre-wrap;font-size:13px;overflow-wrap:anywhere}.local-config-head h3{margin:0}.local-config-row{display:grid;grid-template-columns:minmax(140px,auto) 1fr;gap:4px 16px;padding:14px 0;border-bottom:1px solid var(--line)}.local-config-row span{color:var(--secondary)}.local-config-row small{grid-column:2;color:var(--secondary);overflow-wrap:anywhere}.local-configuration-status details{margin-top:12px}.local-configuration-status summary{cursor:pointer;color:var(--secondary)}
@media(max-width:650px){.agent-reference-toolbar{flex-wrap:wrap;gap:8px}.agent-reference-toolbar .search-field{flex-basis:100%}.agent-reference-toolbar select{flex:1}.agent-reference-card{padding:18px}.agent-reference-card>p{min-height:0}.agent-reference-grid{gap:12px}.code-evidence{padding:14px}.code-evidence-facts{gap:12px}.code-commit-list li{grid-template-columns:1fr}.code-commit-list small{grid-column:1}.local-config-row{grid-template-columns:1fr}.local-config-row small{grid-column:1}.local-config-head{align-items:flex-start;flex-wrap:wrap}}

.retained-record-title{display:flex;align-items:flex-start;gap:10px}.retained-record-title .row-select{flex:0 0 28px;justify-content:flex-start;padding:0;margin-top:-4px}.retained-record-title h3{flex:1;min-width:0}
.retained-table:has(.row-select) th:first-child{padding-left:38px}
.retained-topic:has(.row-select)>p{margin-left:38px}
@media(max-width:650px){.retained-record-row:has(.row-select) :is(.retained-source,.retained-time){margin-left:38px}}

/* Task details follow the current decision; reference and history stay secondary. */
.mobile-menu-sections{display:grid;gap:24px}
.mobile-menu-section h3{margin:0 0 10px;font-size:12px;font-weight:600;color:var(--secondary)}
.mobile-menu-section .mobile-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mobile-menu-section .mobile-menu-grid>.button{justify-content:flex-start;min-width:0;min-height:48px}
#detail:not([hidden]){display:flex;flex-direction:column;gap:20px;min-width:0;padding-bottom:32px}
#detail>*{min-width:0;margin-block:0}
#detail>.detail-navigation{gap:10px;min-height:36px}
#detail>.panel,#detail>.detail-grid{margin-block:0}
#detail .panel-head{padding:20px 24px 16px;align-items:flex-start}
#detail .panel-head h2{font-size:17px;line-height:1.5}
#detail .detail-body{padding:0 24px 24px}
#detail .detail-summary{padding:22px 24px}
#detail .detail-summary>.agent-metadata{margin-top:16px;font-size:12px}
#detail .detail-summary>.background-disclosure{margin-top:16px}
#detail .detail-summary .task-stage-path{margin:22px 0 0}
.task-stage-path{display:flex;align-items:stretch;gap:0;padding:0;list-style:none;border-top:1px solid var(--line);padding-top:18px}
.task-stage-path li{display:flex;flex:1;align-items:center;gap:8px;position:relative;min-width:0;font-size:12px;color:var(--muted);line-height:1.5;padding:0 10px 0 0}
.task-stage-path li>span{width:24px;height:24px;flex:0 0 24px;border-radius:50%;display:grid;place-items:center;background:#f0eff4;font-size:11px}
.task-stage-path li>span .icon{width:13px;height:13px}
.task-stage-path li.is-current{color:var(--blue-dark);font-weight:650}
.task-stage-path li.is-current>span{background:var(--blue);color:#fff}
.task-stage-path li.is-done{color:#668276}.task-stage-path li.is-done>span{background:#eef6f2;color:#4e876f}
.task-stage-guide{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}
.task-stage-guide>div{min-width:0}.task-stage-guide strong{font-size:15px;line-height:1.6}
.task-stage-guide p{font-size:13px;color:var(--secondary);margin:5px 0 0;line-height:1.7}
.task-stage-guide>.button{font-size:12px;flex-shrink:0;min-height:34px;padding:6px 8px}
.task-failed-projects,.task-failed-recovery{display:grid;gap:10px;margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.task-failed-projects strong,.task-failed-recovery strong{font-size:13px;color:var(--ink)}.task-failed-projects p,.task-failed-recovery p{margin:4px 0 0;font-size:12px;line-height:1.7;color:var(--secondary);overflow-wrap:anywhere}.task-failed-projects .gate-actions,.task-failed-recovery .gate-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}.task-failed-projects .button,.task-failed-recovery .button{min-height:40px}.task-failed-recovery{margin:0 0 16px}
.delivery-workspace-heading{display:flex;align-items:center;gap:8px 16px;min-width:0;flex:1}.delivery-workspace-heading>p{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-session-reference{display:flex;align-items:center;gap:8px;min-width:0;color:var(--secondary);font-size:12px}.task-session-reference>span{flex-shrink:0}.task-session-reference code{min-width:6ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);user-select:text}.task-session-reference .button{flex-shrink:0}.task-session-recovery{margin:0 0 12px}.task-session-recovery .error{padding:8px;white-space:normal}.task-session-recovery .button{white-space:normal;overflow-wrap:anywhere}
@media(max-width:650px){.delivery-workspace-heading{flex-basis:100%;flex-wrap:wrap}.delivery-workspace-heading>p{flex-basis:100%}.task-session-reference{flex-wrap:wrap;max-width:100%}.task-session-reference code{min-width:0;white-space:normal;overflow-wrap:anywhere}}
@media(max-width:650px){.task-failed-projects,.task-failed-recovery{padding:16px}.task-failed-projects .gate-actions,.task-failed-recovery .gate-actions{display:grid;grid-template-columns:minmax(0,1fr)}.task-failed-projects .button,.task-failed-recovery .button{width:100%;min-height:44px;justify-content:center}}
.task-undo-menu{position:relative;margin-left:auto;flex-shrink:0;font-size:12px}
.task-undo-menu>summary{display:flex;align-items:center;gap:6px;list-style:none;cursor:pointer;color:var(--secondary);padding:8px;min-height:36px}
.task-undo-menu>summary::-webkit-details-marker{display:none}.task-undo-menu>summary .icon{width:13px;height:13px}
.task-undo-content{position:absolute;right:0;top:calc(100% + 6px);z-index:12;width:min(300px,calc(100vw - 56px));padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);box-shadow:0 8px 28px #24213616}
.task-undo-content>.button{justify-content:flex-start;width:100%;font-size:13px}
.task-undo-content>p{font-size:12px;line-height:1.7;color:var(--secondary);margin:8px 8px 4px}
.detail-navigation>.task-archive-controls{flex:0 1 auto}
.detail-navigation .task-mode-detail-action{display:inline-flex;align-items:center;gap:2px;min-width:0;flex-shrink:0}
.detail-navigation .task-mode-detail-action>.button{color:var(--blue-dark);white-space:nowrap}
.detail-navigation .task-mode-detail-action>.button:disabled{color:var(--muted);opacity:.7}
.task-mode-why{position:relative;font-size:11px;color:var(--secondary)}
.task-mode-why>summary{list-style:none;cursor:pointer;padding:6px 4px;min-height:36px;display:flex;align-items:center;white-space:nowrap}
.task-mode-why>summary::-webkit-details-marker{display:none}
.task-mode-why>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
.task-mode-why>span{position:absolute;right:0;top:calc(100% + 4px);z-index:13;width:min(270px,calc(100vw - 36px));padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);box-shadow:0 8px 24px #24213616;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
@media(max-width:650px){
 .detail-navigation .task-mode-detail-action{position:relative}
 .detail-navigation .task-mode-why{position:static}
 .detail-navigation .task-mode-why>span{right:auto;left:0}
}
#detail .task-decision .classification-summary{font-size:14px;line-height:1.8;margin:0 0 18px;color:var(--secondary)}
.task-confidence{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 16px;font-size:12px;color:var(--secondary)}
.task-confidence strong{font-size:15px;color:var(--ink)}.task-confidence span{color:var(--muted)}
.agent-decision-entry{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.agent-decision-entry:first-child{padding-top:0}.agent-decision-entry strong{display:block;color:var(--ink)}.agent-decision-entry time{font-size:11px;color:var(--muted)}.agent-decision-entry p{margin:5px 0 0;color:var(--secondary)}
.agent-participants{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0 0 12px;padding:8px 10px;border-radius:8px;background:var(--bg);font-size:12px;line-height:1.6;color:var(--secondary)}
.agent-participants strong{flex:none;color:var(--ink)}.agent-participants span{min-width:0;overflow-wrap:anywhere}
.agent-decision-content .agent-decision-entry{padding:9px 0}.agent-decision-content .agent-decision-entry p{margin-top:3px}
.agent-decision-content .agent-collaboration{list-style:none;margin:12px 0 0;padding:0;gap:0;border-top:1px solid var(--line)}
.agent-decision-content .agent-collaboration-item{position:relative;grid-template-columns:22px minmax(0,1fr);gap:9px;padding:10px 0;margin:0;border-bottom:1px solid var(--line)}
.agent-decision-content .agent-collaboration-icon{width:22px;height:22px;border-radius:7px}.agent-decision-content .agent-collaboration-icon .icon{width:13px;height:13px}
.agent-decision-content .agent-collaboration-title{gap:3px 8px;min-height:22px;line-height:1.5}.agent-decision-content .agent-collaboration-title strong{font-size:12px;font-weight:600;color:var(--ink)}.agent-decision-content .agent-collaboration-title span{font-size:11px}.agent-decision-content .agent-collaboration-title time{font-size:10px;white-space:nowrap}
.agent-decision-content .agent-collaboration-item p{margin:2px 0;font-size:11px}.agent-decision-content .agent-collaboration-item .button{min-height:24px;margin-top:2px;padding:2px 0}
.agent-event-attempts{margin-top:2px;font-size:11px;color:var(--secondary)}.agent-event-attempts>summary{display:inline-block;cursor:pointer;color:var(--blue);list-style:none}.agent-event-attempts>summary::-webkit-details-marker{display:none}.agent-event-attempts>summary::after{content:'⌄';margin-left:4px}.agent-event-attempts[open]>summary::after{content:'⌃'}
.agent-event-attempts ol{margin:5px 0 0;padding:0;list-style:none}.agent-event-attempts li{padding:2px 0;line-height:1.5}.agent-event-attempts time{color:var(--muted)}.agent-event-attempts>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:3px}
.agent-decision-note{padding:11px 13px;border-left:2px solid var(--blue);background:var(--bg);border-radius:4px;color:var(--secondary);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.inbox-agent-log{margin:14px 0;border-top:1px solid var(--line);font-size:12px;color:var(--secondary)}
.inbox-agent-log>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;list-style:none;font-weight:600}.inbox-agent-log>summary::-webkit-details-marker{display:none}
.inbox-agent-log>.disclosure-body{padding:0 0 10px}.agent-log-list,.agent-reference-log{margin:0;padding-left:20px;max-height:360px;overflow:auto}
.agent-log-list li,.agent-reference-log li{padding:9px 0;border-bottom:1px solid var(--line);line-height:1.7;overflow-wrap:anywhere}
.agent-log-list li>div{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}.agent-log-list time,.agent-reference-log time{font-size:11px;color:var(--muted)}.agent-log-list p{margin:4px 0}.agent-log-list small{display:block;color:var(--muted)}
.agent-reference-participation{margin:0 0 12px;border-top:1px solid var(--line);padding-top:9px;min-width:0}.agent-reference-participation>summary{display:flex;justify-content:space-between;align-items:center;min-height:36px;cursor:pointer;list-style:none;font-size:13px;color:var(--secondary)}.agent-reference-participation>summary::-webkit-details-marker{display:none}.agent-reference-participation>div{padding:8px 0}.agent-reference-log li{display:grid;grid-template-columns:1fr auto;gap:3px 8px}.agent-reference-log time{grid-column:1/-1}.agent-reference-log button{grid-column:1/-1;background:none;border:0;padding:0;text-align:left;color:var(--blue);font:inherit;cursor:pointer;overflow-wrap:anywhere}.agent-reference-log small{grid-column:1/-1;color:var(--muted)}
.inbox-agent-log>summary:focus-visible,.agent-reference-participation>summary:focus-visible,.agent-reference-log button:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
.agent-reference-log-title{grid-column:1/-1;overflow-wrap:anywhere}
.task-missing-info{padding:12px 14px;margin:0 0 18px;border-left:2px solid #dbc897;background:#fcfaf4;font-size:13px;line-height:1.8;color:#766645}
.task-missing-info strong{font-size:12px}.task-missing-info ul{padding-left:20px;margin:5px 0 0}
#detail .task-route-workspace{border:0;padding:0;margin:20px 0 0}
@media(max-width:650px){#detail .task-route-workspace{margin-top:16px}}
.task-path-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:22px}
.task-path-options>button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;min-width:0;cursor:pointer;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);color:var(--secondary);font:inherit;line-height:1.6;transition:border-color .15s,background .15s}
.task-path-options>button[aria-pressed=true]{background:#f6f3ff;border-color:#baa9ec;box-shadow:inset 0 0 0 1px #baa9ec}
.task-path-options strong{font-size:14px;color:var(--ink)}.task-path-options span{font-size:12px;overflow-wrap:anywhere}
#detail .task-route-fields{max-width:100%}
#detail .task-route-fields>.field{margin:0 0 20px}
#detail .task-route-fields>.field label{font-size:13px;margin-bottom:8px}
#detail .task-route-fields textarea{min-height:116px;resize:vertical;line-height:1.8;font-size:14px;padding:12px 14px}
#detail .task-routing-actions{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0;padding-top:2px}
#detail .task-routing-actions>.button{min-height:42px;font-size:13px;padding:10px 16px}
#detail .task-routing-actions .task-action-status{flex-basis:100%;margin:0 0 8px}
#detail .task-route-secondary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.task-route-secondary>span{color:var(--muted);font-size:12px;line-height:1.7}
.task-route-secondary>.button{font-size:12px;min-height:32px;padding:4px 0}
.task-next-choice{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.task-next-choice h3{font-size:14px;margin:0 0 12px}
.task-next-tabs{display:flex;align-items:center;flex-wrap:nowrap;gap:24px;max-width:100%;overflow-x:auto;scrollbar-width:thin;margin-bottom:18px;border-bottom:1px solid var(--line)}
.task-next-tabs>button{position:relative;flex:0 0 auto;font:inherit;font-size:13px;line-height:1.6;padding:10px 2px 12px;min-height:42px;border:0;border-radius:0;background:transparent;color:var(--secondary);white-space:nowrap;cursor:pointer}
.task-next-tabs>button:hover{color:var(--blue-dark);background:transparent}
.task-next-tabs>button[aria-selected=true]{color:var(--blue-dark);font-weight:600}
.task-next-tabs>button[aria-selected=true]::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;border-radius:2px;background:currentColor}
.task-next-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px}
.task-next-actions>.button{min-height:40px;max-width:100%;padding:8px 16px;border-radius:8px;box-shadow:none;font-size:13px;line-height:1.7;white-space:normal}
.task-next-actions>.button:not(.primary){background:var(--surface,#fff);border-color:var(--line);color:var(--secondary)}
.task-next-actions>.button:not(.primary):hover{background:var(--blue-soft);border-color:#cfc3ed;color:var(--blue-dark)}
.task-next-panel>.field-hint{margin:12px 0 0;line-height:1.8;font-size:12px;max-width:760px}
.task-next-panel .task-action-status{margin:0 0 12px}
.task-next-panel:focus-visible{outline:2px solid var(--blue);outline-offset:5px}
@media(max-width:650px){.task-next-tabs{gap:20px;margin-bottom:16px}.task-next-tabs>button{min-height:44px}.task-next-actions>.button{flex:1 1 100%;width:100%;justify-content:center;min-height:44px}}
.task-path-options>button:disabled,.task-next-tabs>button:disabled{cursor:wait;opacity:.65}
.task-path-options>button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.task-next-tabs>button:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
.task-reply-disclosure{border:1px solid var(--line);border-radius:8px;margin-top:22px;background:var(--surface)}
.task-reply-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;min-height:44px;list-style:none;cursor:pointer;font-size:13px;font-weight:550}
.task-reply-disclosure>summary::-webkit-details-marker{display:none}.task-reply-disclosure>summary .icon{width:14px;height:14px}
.task-reply-body{padding:0 16px 16px}.task-reply-body h3{font-size:14px;margin:4px 0 8px}
.agent-reply-history{margin:var(--space-4) 0;border-top:1px solid var(--line);font-size:13px;min-width:0}
.agent-reply-history summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:var(--space-2);overflow-wrap:anywhere}
.agent-reply-history summary .icon{margin-left:auto;flex-shrink:0;width:16px;height:16px}
.agent-reply-version{border:1px solid var(--line);border-radius:8px;padding:0 var(--space-3);margin:var(--space-2) 0;background:var(--surface);min-width:0}
.agent-reply-content{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7;color:var(--ink);max-height:360px;overflow:auto;padding:var(--space-2) 0;margin:0}
.task-reply-body .field{margin-top:16px}.task-reply-body textarea{min-height:104px;line-height:1.8;font-size:14px}
#detail .task-reply-body .field-hint{margin:10px 0;line-height:1.8;font-size:12px}
#detail .task-reference-disclosure{border-top:1px solid var(--line);padding-top:0;margin-top:16px}
.task-reference-disclosure>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;gap:12px;cursor:pointer;font-size:12px;color:var(--secondary);min-height:40px;padding:10px 0}
.task-reference-disclosure>summary::-webkit-details-marker{display:none}.task-reference-disclosure>summary .icon{width:13px;height:13px}
.task-reference-disclosure .disclosure-body{font-size:13px;line-height:1.8;color:var(--secondary);padding:0 0 4px}
#detail .task-reference-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.task-reference-grid>div{min-width:0}.task-reference-grid h3{font-size:13px;line-height:1.6;margin:0 0 12px;color:var(--secondary);font-weight:600}
.task-reference-grid p{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.task-goal-text{margin:0;color:var(--ink)}
.task-reference-followups{border-left:1px solid var(--line);padding-left:28px}
.task-followup-list{padding:0;margin:0;list-style:none;display:grid;gap:16px}
#detail .task-followup{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:10px;padding:0;border:0;min-width:0}
.task-followup-marker{width:17px;height:17px;border:1px solid #d9d2e7;border-radius:50%;flex:0 0 17px;margin-top:3px;display:grid;place-items:center;background:#f5f2fa}
.task-followup-marker .icon{width:11px;height:11px}.task-followup.is-done .task-followup-marker{background:#edf7f1;border-color:#cbe5d4;color:#508568}
.task-followup>div{min-width:0;flex:1}.task-followup-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px 14px;flex-wrap:wrap}
.task-followup-title strong{font-size:13px;line-height:1.75;font-weight:550;overflow-wrap:anywhere}
.task-followup-state{font-size:11px;line-height:1.75;color:var(--muted);flex-shrink:0}
.task-followup-state.is-ready{color:var(--blue-dark);font-weight:600}
.task-followup p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.7}
.task-followup .button{margin-top:10px;min-height:32px;font-size:12px;padding:6px 10px}
#detail [data-task-section]{scroll-margin-top:20px;outline:none}
#detail .task-step-feedback{margin:0;padding:12px 24px;border-bottom:1px solid #dbe9df;background:#f4faf6;color:#416d52;font-size:13px;line-height:1.7;border-radius:10px 10px 0 0;overflow-wrap:anywhere}
#detail .task-delivery-work{padding:0 24px 22px}.task-delivery-work .stage-notice{border:0;background:transparent;padding:0;margin-top:20px}
#detail>.background-panel{padding:0 24px}
#detail>.background-panel>summary{padding:17px 0;min-height:52px;font-size:14px;line-height:1.5}
#detail>.background-panel>.disclosure-body{padding:4px 0 20px}
#detail>.background-panel .panel{box-shadow:none}
@media(max-width:850px){
 #detail .task-reference-grid{grid-template-columns:1fr;gap:20px}
 .task-reference-followups{padding:18px 0 0;border-left:0;border-top:1px solid var(--line)}
}
@media(max-width:650px){
 #detail:not([hidden]){gap:16px;padding-bottom:24px}
 #detail .panel-head{padding:18px 16px 14px}#detail .detail-body{padding:0 16px 18px}#detail .detail-summary{padding:18px 16px}
 .task-stage-path{gap:6px;align-items:flex-start;padding-top:16px}
 .task-stage-path li{flex-direction:column;align-items:flex-start;gap:6px;font-size:10px;padding:0;line-height:1.6}
 .task-stage-path li>span{width:22px;height:22px;flex-basis:22px}
 .task-stage-guide{align-items:flex-start}.task-stage-guide p{font-size:12px}.task-stage-guide>.button{display:none}
 .task-path-options{grid-template-columns:1fr;gap:8px;margin-bottom:20px}
 .task-path-options>button{flex-direction:row;align-items:baseline;justify-content:space-between;padding:11px 12px;gap:10px}
 .task-path-options strong{font-size:13px;flex-shrink:0}.task-path-options span{font-size:11px;text-align:right}
 #detail .task-routing-actions>.button{flex:1;min-height:44px;justify-content:center}
 #detail .task-route-fields textarea{font-size:14px;min-height:128px}
 .task-reply-body{padding:0 12px 14px}.task-reply-disclosure>summary{padding:12px;font-size:12px}
 .task-undo-menu>summary{min-height:44px}#detail .task-step-feedback{padding:11px 16px;font-size:12px}
 #detail .task-delivery-work{padding:0 16px 18px}#detail>.background-panel{padding:0 16px}
}
@media(prefers-reduced-motion:reduce){.task-path-options>button{transition:none}}

/* Read-only diagnosis stays beside the failed step. */
.execution-blocker{display:grid;gap:12px;margin-top:14px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.execution-blocker ul{margin:0;padding-inline-start:20px}.execution-blocker li+li{margin-top:6px}.execution-blocker details>summary{cursor:pointer;color:var(--secondary)}.execution-blocker details ul{margin-top:10px;color:var(--secondary)}

/* Task delivery: one current action, shared development workspace and file review. */
#detail .task-step-feedback{display:flex;align-items:flex-start;gap:9px;margin:16px 0 4px;padding:10px 12px;border:1px solid #dcebe1;border-radius:7px;background:#f5faf7;color:#416d52;font-size:13px;line-height:1.65}
.task-step-feedback>.icon{width:17px;height:17px;margin-top:2px;flex:none}.task-step-feedback>span{min-width:0}
.task-workspace{overflow:clip}.task-workspace>.panel-head{align-items:flex-start;border-bottom:1px solid var(--line)}
.task-workspace-tabs{display:flex;gap:24px;padding:0 24px;border-bottom:1px solid var(--line);background:var(--surface,#fff)}
.task-workspace-tabs>button{padding:14px 2px 12px;background:none;border:0;border-bottom:2px solid transparent;color:var(--secondary);font:inherit;font-weight:500;white-space:nowrap}
.task-workspace-tabs>button[aria-selected=true]{color:var(--blue);border-bottom-color:var(--blue)}
.task-workspace-pane{min-width:0}.task-workspace-pane>.task-development{border:0;border-radius:0;box-shadow:none;margin:0!important}
.task-workspace-pane>.task-development>.panel-head{display:none}.task-workspace-pane>.task-development>.detail-body{padding:22px 24px}
.task-records-pane{padding:20px 24px}.task-records-pane>.field-hint{margin:0 0 18px}.task-workspace-pane>.code-evidence{border:0;margin:0;padding:22px 24px;border-radius:0}
.task-records-pane .progress-stages{display:none}.task-records-pane .progress-phase{margin-top:0}
.deployment-error{margin:20px 0;padding:16px 18px;border:1px solid #eed3cb;border-radius:8px;background:#fff9f6;overflow-wrap:anywhere}
.deployment-error>strong{color:#97512f}.deployment-error>p{margin-top:8px;white-space:pre-wrap;font-size:13px;color:var(--secondary)}
.deployment-error.connection-checked{border-color:#d9e3f2;background:#f8faff}.deployment-error.connection-checked>strong{color:#45669b}
.deployment-recovery{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.deployment-recovery>strong{display:block;font-size:14px}
.deployment-recovery p{margin-top:8px}.deployment-recovery ol{padding-left:22px;margin:10px 0 16px}.deployment-recovery li{padding:3px 0;line-height:1.75}
.deployment-recovery .gate-actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}.deployment-recovery .button{white-space:normal;text-align:left}
.deployment-input-needed{padding:12px 14px;margin:16px 0;border:1px solid #eadfc8;border-radius:8px;background:#fffaf0;color:#8a6b34;overflow-wrap:anywhere}
.test-acceptance-list{margin:22px 0 12px;border-top:1px solid var(--line);padding-top:18px}.test-acceptance-list h4{margin:0 0 10px;font-size:14px}.test-acceptance-list details{padding:9px 0}.test-acceptance-list summary{cursor:pointer}.test-acceptance-list details p{margin:8px 0;color:var(--secondary);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.deployment-reference{margin:10px 0}.manual-deployment-record{margin:18px 0 0;border-top:1px solid var(--line);padding-top:16px}.manual-deployment-record>summary{cursor:pointer;color:var(--secondary)}.manual-deployment-record .deployment-form{margin-top:18px}
.code-file-open{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0;flex:1;text-align:left;background:none;border:0;padding:4px 6px;border-radius:4px;color:var(--blue);font:inherit}
.code-file-open:hover{background:var(--blue-soft,#eef3ff)}.code-file-open code{overflow-wrap:anywhere}.code-file-open>span{flex:none;color:var(--muted)}
dialog.app-modal.code-diff-dialog{width:min(1100px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:hidden;padding:0;background:var(--surface,#fff)}
.code-diff-dialog .dialog-head{padding:20px 24px;border-bottom:1px solid var(--line);align-items:flex-start}.code-diff-dialog .dialog-head>div{min-width:0}.code-diff-dialog .dialog-head h2{font:600 15px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}.code-diff-dialog .dialog-head p{overflow-wrap:anywhere}
.code-diff-body{max-height:calc(100dvh - 190px);overflow:auto;padding:16px 0;overscroll-behavior:contain}.diff-state{padding:18px 24px;overflow-wrap:anywhere}.code-diff-body>button{margin:0 24px 16px}.diff-legend{padding:0 24px 14px;font-size:12px;color:var(--secondary)}
.code-diff-lines{margin:0;font:12px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;tab-size:4;min-width:100%;width:max-content;max-width:none;white-space:pre;color:var(--ink)}
.code-turn-list{max-height:none;overflow:visible;display:grid;gap:var(--space-3,12px);padding:12px 0 0;list-style:none}.code-turn-item{min-width:0;padding:var(--space-4,16px);border:1px solid var(--line);border-radius:8px;background:var(--bg)}.code-turn-heading{display:flex;justify-content:space-between;gap:var(--space-2,8px);align-items:baseline;flex-wrap:wrap}.code-turn-heading small{color:var(--secondary)}.code-turn-preview{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.code-evidence .code-turn-summary{padding:8px 0;border:0}.code-turn-summary summary{font-size:13px;color:var(--secondary)}.code-turn-summary p{max-height:240px;overflow:auto;margin:8px 0;white-space:pre-wrap}.code-turn-changes{min-width:0}.code-turn-changes>strong{font-size:13px}.code-turn-changes ul{list-style:none;margin:8px 0 12px;padding:0;display:grid;gap:6px}.code-turn-changes li{display:flex;align-items:baseline;gap:8px;min-width:0;padding:0}.code-turn-changes code{overflow-wrap:anywhere;min-width:0}.code-turn-changes li small{margin-left:auto;white-space:nowrap;color:var(--secondary)}.code-turn-changes .artifact{margin-top:8px;min-height:44px}
@media(max-width:650px){.code-turn-item{padding:var(--space-3,12px)}.code-turn-changes li{flex-wrap:wrap}.code-turn-changes li small{margin-left:0;width:100%;padding-left:34px}}
.diff-line{display:block;min-height:1.8em;padding:0 24px}.diff-add{background:#eaf7ee;color:#176c35}.diff-remove{background:#fff0ee;color:#a53232}.diff-hunk{background:#edf3fc;color:#396b9b}.diff-header{color:var(--secondary)}
@media(max-width:650px){.task-workspace-tabs{padding:0 16px;gap:18px}.task-workspace-pane>.task-development>.detail-body,.task-workspace-pane>.code-evidence,.task-records-pane{padding:16px}.deployment-error{padding:14px}.deployment-recovery .gate-actions{gap:8px}.deployment-recovery .gate-actions>.button{flex:1 1 160px}dialog.app-modal.code-diff-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 24px)}.code-diff-dialog .dialog-head{padding:16px}.code-diff-body{max-height:calc(100dvh - 170px)}.diff-line{padding:0 16px}.diff-legend,.diff-state{padding-left:16px;padding-right:16px}}
.implementation-card>.task-workspace{margin-top:18px;border:1px solid var(--line);box-shadow:none}.implementation-card>.task-workspace>.panel-head{padding:16px 18px}.implementation-card .task-workspace-tabs{padding:0 18px;gap:18px}.implementation-card .task-workspace-pane>.task-development>.detail-body,.implementation-card .task-workspace-pane>.code-evidence,.implementation-card .task-records-pane{padding:18px}.implementation-card>.agent-deployment-status{margin:16px 0}
/* Keep recovery progress separate from its compact action row. */
.deployment-recovery .task-action-status{width:100%;min-width:0;margin:14px 0 0;padding:10px 12px;gap:9px;align-items:flex-start;font-size:13px;line-height:1.7}
.deployment-recovery .task-action-status>.spinner{margin-top:3px;flex:none}.deployment-recovery .task-action-status>span:last-child{min-width:0;overflow-wrap:anywhere}
.deployment-recovery .gate-actions{align-items:center}.deployment-recovery .gate-actions>.button{min-width:0;justify-content:center;text-align:center}
.deployment-recovery p,.deployment-recovery li,.agent-deployment-status p[role="status"]{overflow-wrap:anywhere}
.deployment-commit{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px}.deployment-commit code{padding:3px 7px;border:1px solid var(--line);border-radius:5px;font-size:12px;color:var(--text)}
.gate-actions>.task-action-status{flex:1 0 100%}
.deployment-form>.gate-actions{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-width:0}
.deployment-form #deployment-submit{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-height:44px;min-width:200px;width:auto;max-width:100%;white-space:nowrap}
.deployment-form>.task-action-status{width:100%;margin:16px 0 0;align-items:flex-start;line-height:1.7}
.deployment-form>.task-action-status>.spinner{margin-top:3px;flex:none}
.deployment-saved{border-color:#cfe6da;background:#f6fbf8}.deployment-saved h4{color:#297553}
@media(max-width:650px){.deployment-form #deployment-submit{width:100%;min-width:0}}

/* Compact source transcript, separate from task prompt and report spacing. */
.inbox-originals>summary{width:fit-content;max-width:100%;min-height:32px;gap:7px;color:var(--secondary);font-size:12px}
.inbox-originals>summary:hover{color:var(--blue-dark)}
.inbox-original-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:18px;padding:0 5px;border-radius:5px;background:#efedf5;color:#82758f;font-size:10px;font-variant-numeric:tabular-nums}
.inbox-original-list{margin-top:6px;padding:2px 12px;border:1px solid var(--line);border-radius:10px;background:#fcfbfd}
.inbox-original{display:flex;gap:9px;padding:11px 0;min-width:0;overflow-wrap:anywhere}
.inbox-original+.inbox-original{border-top:1px solid #eeecf2}
.inbox-original-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;margin-top:1px;border-radius:8px;background:#eeecf2;color:#89808f;font-size:11px}
.inbox-original.is-outgoing .inbox-original-avatar{background:#eee9fa;color:#8d78b5}
.inbox-original-main{flex:1;min-width:0}
.inbox-original-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:23px;font-size:11px;line-height:1.6;color:var(--muted)}
.inbox-original-head>strong{font-size:12px;font-weight:550;color:var(--secondary);overflow-wrap:anywhere}
.inbox-original-phase{font-size:10px;color:#9992a2}
.inbox-original-meta{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:10px;font-variant-numeric:tabular-nums}
.inbox-original-source{display:inline-flex;align-items:center;gap:3px;min-height:24px;color:#92849f;text-decoration:none;font-size:10px;white-space:nowrap}
.inbox-original-source .icon{width:11px;height:11px}
.inbox-original-source:hover{color:var(--blue-dark);text-decoration:underline}
.inbox-original-content.markdown-body{margin-top:3px;max-height:280px;overflow:auto;white-space:normal;font-size:13px;line-height:1.7;color:var(--secondary);overflow-wrap:anywhere}
.inbox-original-content.markdown-body p{font-size:inherit;line-height:inherit;color:inherit;white-space:normal;margin:0 0 6px}
.inbox-original-content.markdown-body>:last-child{margin-bottom:0}
.inbox-original-content.markdown-body :is(h1,h2,h3,h4,h5,h6){font-size:13px;line-height:1.7;margin:6px 0;font-weight:600}
.inbox-original-content.markdown-body :is(ul,ol,blockquote,pre){margin:6px 0}
.inbox-original-content.markdown-body pre{white-space:pre;font-size:12px}
.inbox-original-content.markdown-body blockquote{padding-left:10px;border-left:2px solid #ddd6e8;color:var(--muted)}
.inbox-original-attachments{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}
.inbox-original-attachment{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:30px;padding:4px 8px;border:1px solid #e8e3ef;border-radius:6px;background:#f5f2f9;color:var(--secondary);font:12px/1.5 var(--font-body);text-decoration:none;vertical-align:middle;text-align:left}
:is(button,a).inbox-original-attachment{cursor:pointer}
:is(button,a).inbox-original-attachment:hover{border-color:#d1c5e3;background:#efebf6}
.inbox-original-attachment .icon{width:14px;height:14px;flex-shrink:0;color:#9787aa}
.inbox-original-attachment>span{min-width:0;overflow-wrap:anywhere}
.inbox-original-attachment>small{font-size:10px;color:#9885ac;white-space:nowrap}
.inbox-original-attachment:focus-visible,.inbox-original-source:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.inbox-original-conversation{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-2);padding:var(--space-2) var(--space-3);border-left:3px solid var(--blue);border-radius:6px;background:var(--blue-soft);color:var(--blue-dark);font-size:12px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.inbox-original-conversation .icon{width:16px;height:16px;flex-shrink:0}
.inbox-original-conversation>span{min-width:0}
.inbox-original-empty{color:var(--muted);font-size:11px;line-height:1.7;margin-top:4px}
.config-feishu-advanced{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.config-feishu-advanced>summary{cursor:pointer;color:var(--muted);font-size:12px;line-height:1.8;width:fit-content}
.config-feishu-advanced>.field{max-width:640px;margin-top:14px}
@media(max-width:650px){
 .inbox-original-list{padding:1px 9px}.inbox-original{gap:7px;padding:10px 0}
 .inbox-original-avatar{flex-basis:22px;width:22px;height:22px;border-radius:7px;font-size:10px}
 .inbox-original-head{gap:3px 6px}.inbox-original-meta{gap:7px;flex-wrap:wrap}
 .inbox-original-content.markdown-body{font-size:12px}.inbox-original-source{min-height:28px}
 .inbox-original-attachment{min-height:34px}
}

/* Continuing a conversation uses a compact composer with durable capability choices. */
.chat-followup{margin-top:var(--space-4);border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:var(--space-3) var(--space-4);min-width:0}
.chat-followup-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--secondary)}
.chat-followup-heading>.assistant-handoff{flex:0 1 auto;max-width:100%}
.chat-followup-heading>.assistant-handoff>summary{position:static;min-height:32px;justify-content:flex-end;white-space:nowrap}
.chat-followup-heading>.assistant-handoff[open]{flex-basis:100%;margin:0 0 8px}
.chat-followup textarea{border:0;box-shadow:none!important;outline:none;background:transparent;resize:none;padding:var(--space-2) 0;min-height:64px;max-height:300px;font-size:13px}
.chat-followup .capability-control{margin:0 0 8px}
.chat-followup-settings{font-size:11px;color:var(--secondary);min-width:0}
.chat-followup-settings>summary{display:flex;align-items:center;gap:var(--space-2);min-height:40px;cursor:pointer;width:fit-content;max-width:100%;list-style:none;padding:6px 0}
.chat-followup-settings>summary .icon{width:17px;height:17px;flex:none}
.chat-followup-settings>summary>span{color:var(--muted);font-size:10px;margin-left:6px}
.chat-followup-settings .chat-controls{margin-top:8px}
.chat-followup-settings .chat-controls select{font-size:12px;min-height:40px;height:40px}
.chat-followup .button{min-height:40px;padding:var(--space-2);font-size:12px}
.chat-followup-toolbar{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr) auto;align-items:start;gap:var(--space-1) var(--space-2)}
.chat-followup-toolbar>[data-chat-files]{grid-column:1/-1;grid-row:2;min-width:0}.chat-followup-toolbar>[data-chat-files]:empty{display:none}
.chat-followup-toolbar>.chat-followup-settings{grid-column:2;grid-row:1}
.chat-followup-toolbar>.chat-followup-settings[open]{grid-column:1/-1;grid-row:2}
.chat-followup-toolbar:has(.chat-followup-settings[open])>[data-chat-files]{grid-row:3}
.chat-followup-footer{grid-column:3;grid-row:1;display:flex;align-items:center;gap:var(--space-2)}
.chat-followup-hint{margin:var(--space-1) 0 0;font-size:10px;color:var(--muted);line-height:1.5}
.chat-followup-toolbar>[data-chat-restore-tools]{grid-column:1/-1;justify-self:start}
.chat-followup-footer>.primary{min-height:40px;padding:var(--space-2) var(--space-4);flex-shrink:0}
.chat-task-actions{border-top:0!important;margin-top:8px!important;justify-content:flex-end}
.chat-task-actions .button{font-size:11px;min-height:30px;padding:5px 9px;color:var(--secondary);background:transparent;border-color:transparent}
.chat-failure{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 14px;border:1px solid #ecd9bd;background:#fffbf4;border-radius:9px;margin:14px 0;font-size:12px;color:#806239}
.chat-failure>div{flex:1;min-width:180px}.chat-failure p{margin-top:4px;line-height:1.65}.chat-failure>details{flex-basis:100%;font-size:10px;color:var(--muted)}.chat-failure summary{cursor:pointer;width:fit-content}.chat-failure code{display:block;margin-top:5px;overflow-wrap:anywhere}
@media(max-width:650px){.chat-followup{padding:12px}.chat-followup-settings>summary{flex-wrap:wrap}.chat-followup-settings>summary>span{margin-left:0}.chat-followup-footer{gap:8px}.chat-followup .chat-controls{flex-wrap:wrap}.chat-followup .chat-controls>label{flex:1 1 120px;min-width:0}.chat-task-actions{flex-wrap:wrap}}

/* Self-chat notes: one source label, compact disclosure and a balanced action. */
.self-note-card{padding:17px 18px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-width:0}
.self-note-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-width:0}
.self-note-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 9px;min-width:0}
.self-note-heading h3{font-size:14px;font-weight:550;line-height:1.65;overflow-wrap:anywhere;min-width:0;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.self-note-source{font-size:10px;color:var(--muted);white-space:nowrap}
.self-note-head>time{font-size:10px;color:var(--muted);line-height:23px;white-space:nowrap;flex-shrink:0}
.self-note-bottom{position:relative;margin-top:10px;min-height:30px}
.self-note-bottom .inbox-originals{margin:0}
.self-note-bottom .inbox-originals>summary{min-height:30px;font-size:11px;gap:5px;color:var(--secondary)}
.self-note-bottom.has-action .inbox-originals>summary{max-width:calc(100% - 104px)}
.self-note-bottom .inbox-original-count{font-size:10px;line-height:16px;min-width:18px;padding:0 4px;border-radius:4px;background:#f1eef6}
.self-note-bottom .inbox-original-list{margin-top:10px}
.self-note-convert.button{position:absolute;right:0;top:0}
.self-note-convert.button:hover{color:var(--blue-dark);background:var(--blue-soft);border-color:#dbd2f0}
.self-note-convert.button .icon{width:13px;height:13px}
.self-note-convert.button:focus-visible,.self-note-bottom summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
#inbox-self_notes-panel .screening-list{gap:10px;padding-top:4px}
@media(max-width:650px){.self-note-card{padding:13px 12px}.self-note-heading{gap:3px 8px}.self-note-heading h3{font-size:13px}.self-note-head{flex-wrap:wrap;gap:3px}.self-note-head>time{line-height:18px}.self-note-bottom{margin-top:8px}}

/* Manual conversion is a compact secondary action in every inbox layout. */
.button[data-self-note-task]{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:3px 9px;gap:5px;border:1px solid transparent;border-radius:6px;background:#f3effb;color:#7454b5;font-size:12px;font-weight:500;line-height:20px;white-space:nowrap;box-shadow:none;vertical-align:middle}
.button[data-self-note-task] .icon{width:12px;height:12px;flex-shrink:0}
.button[data-self-note-task]:hover:not(:disabled){background:#eae2f7;color:#63409f;border-color:transparent}
.button[data-self-note-task]:focus-visible{outline:2px solid #9b7bd5;outline-offset:3px}
.button[data-self-note-task]:disabled{opacity:.55;cursor:wait}
.button[data-self-note-task] .spinner{width:11px;height:11px}
.screening-actions>[data-self-note-task]+.field-hint{margin:0;font-size:11px;line-height:1.5;color:var(--muted)}
@media(pointer:coarse){.button[data-self-note-task]{min-height:32px;padding-top:5px;padding-bottom:5px}}

/* Notices respect the padding of the card, conversation, or dialog that owns them. */
#detail .task-step-feedback{box-sizing:border-box;margin:0 0 16px;padding:10px 12px;min-width:0}
#detail .panel>.task-step-feedback,#detail .panel>.task-action-status{margin:16px var(--panel-pad,24px) 0;width:auto}
:is(.chat-composer,.chat-followup,.task-chat-composer,.assistant-conversation,.dialog-body) .error:not([hidden]){box-sizing:border-box;min-width:0;margin:12px 0;padding:10px 12px;line-height:1.7;overflow-wrap:anywhere}
:is(.chat-composer,.chat-followup,.task-chat-composer,.dialog-body)>.error:last-child{margin-bottom:0}
.chat-failure{box-sizing:border-box;min-width:0;margin:16px 0;padding:12px 14px}.chat-failure>div{min-width:0;flex-basis:200px}.chat-failure p{margin:4px 0 0;overflow-wrap:anywhere}
.chat-processing{margin:16px 0;align-items:flex-start;line-height:1.7}.chat-processing>.spinner{flex:none;margin-top:3px}
.chat-followup>.task-action-status{margin:0 0 14px;align-items:flex-start;line-height:1.7;min-width:0}.chat-followup>.task-action-status>span:last-child{min-width:0;overflow-wrap:anywhere}
.conversation-sync-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;min-width:0;max-width:100%;padding:10px 0;color:var(--muted);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.conversation-sync-status>.spinner{display:inline-block;width:14px;height:14px;flex:0 0 14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:task-button-spin .8s linear infinite}
.conversation-sync-status>span:last-of-type{min-width:0;flex:1 1 180px}.conversation-sync-status>.button{flex:none}
.task-action-status{min-width:0;max-width:100%;align-items:flex-start;line-height:1.7;overflow-wrap:anywhere}
.task-action-status>.spinner{margin-top:3px}.task-action-status>span:last-child{min-width:0;flex:1}
.task-action-status+.gate-actions,.task-action-status+.task-routing-actions,.task-action-status+.task-chat-actions{margin-top:12px}
@media(prefers-reduced-motion:reduce){.conversation-sync-status>.spinner{animation:none}}
.chat-followup-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:none}.chat-working-label{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap}.chat-working-label>.spinner{width:13px;height:13px;flex:none}
.chat-followup .chat-stop{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;min-width:78px;padding:7px 13px;font-size:12px;border-color:var(--line);background:var(--surface);color:var(--secondary);white-space:nowrap}.chat-followup .chat-stop:hover:not(:disabled){background:var(--blue-soft);color:var(--blue);border-color:#d8caef}.chat-stop-symbol{font-size:10px;line-height:1;flex:none}
@media(max-width:650px){.chat-followup-footer{flex-wrap:wrap;gap:12px}.chat-followup-actions{margin-left:auto}.chat-followup .chat-stop{min-height:40px}.chat-working-label{font-size:11px}}

/* Compact record removal, with the destructive action reserved for confirmation. */
.retained-action .inbox-delete{margin-inline-start:12px}
.self-note-head .inbox-delete{margin-left:auto;flex-shrink:0}
#delete-record-dialog{width:min(520px,calc(100vw - 32px))}
#delete-record-name{font-weight:600;overflow-wrap:anywhere;margin:0 0 12px}
#delete-record-note{line-height:1.7;overflow-wrap:anywhere}
#delete-record-submit{color:#fff;background:#b42318;border-color:#b42318}

/* Keep archived-worktree cleanup readable even when a task title is very long. */
@media(min-width:651px){#cleanup-worktrees-dialog{width:min(520px,calc(100vw - 32px))}}
.cleanup-worktrees-target{min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--bg)}
.cleanup-worktrees-target>span{display:block;margin-bottom:3px;color:var(--muted);font-size:11px}
.cleanup-worktrees-target p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;color:var(--ink);font-size:13px;font-weight:600;line-height:1.65}
.cleanup-worktrees-description{margin:16px 0 0;color:var(--ink);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.cleanup-worktrees-notes{margin:12px 0 0;padding-left:18px;color:var(--secondary);font-size:12px;line-height:1.7}
.cleanup-worktrees-notes li+li{margin-top:7px}
.cleanup-worktrees-result-list{list-style:none;margin:14px 0 0;padding:0}
.cleanup-worktrees-result-list li{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:11px 0;border-bottom:1px solid var(--line)}
.cleanup-worktrees-result-list li:last-child{border-bottom:0}
.cleanup-worktrees-result-list li>span{flex:none;min-width:48px;font-size:11px;font-weight:600}
.cleanup-worktrees-result-list li>span.success{color:var(--green)}
.cleanup-worktrees-result-list li>span.pending{color:var(--red)}
.cleanup-worktrees-result-list li>div{min-width:0;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.cleanup-worktrees-result-list li p{margin-top:2px;color:var(--secondary)}
#cleanup-worktrees-submit{color:#fff;background:#b42318;border-color:#b42318}
#cleanup-worktrees-submit:hover:not(:disabled){background:#912018;border-color:#912018}

/* Automatic repair preferences and durable result notice. */
.auto-repair-projects{display:grid;gap:10px}.auto-repair-project{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);cursor:pointer}.auto-repair-project input{flex:0 0 auto;width:17px;height:17px;accent-color:var(--blue)}.auto-repair-project span{display:grid;gap:4px;min-width:0}.auto-repair-project small{color:var(--muted);overflow-wrap:anywhere}.auto-execution-notice{padding:16px 20px;display:grid;gap:8px;border-left:3px solid var(--blue);margin-bottom:16px}.auto-execution-notice p{margin:0;line-height:1.65}.auto-execution-notice small{color:var(--muted)}

/* Natural-language automation policies: compact list, one editor at a time. */
.automation-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.automation-head h2{margin:0}.automation-head p{margin:8px 0 0!important;color:var(--secondary);line-height:1.7}.automation-switch{display:flex!important;align-items:center;gap:9px;white-space:nowrap;font-size:13px;margin:3px 0 0!important}.automation-switch input,.automation-editor-enabled input,.automation-project-options input{width:17px!important;height:17px;flex:none;accent-color:var(--blue);margin:0}.automation-status-line{margin:14px 0 0!important;color:var(--muted);font-size:12px;line-height:1.7}.automation-notice{margin:14px 0 0!important;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.7}.automation-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:26px 0 14px}.automation-list-toolbar h3{font-size:14px;margin:0}.automation-list-toolbar h3 span{font-weight:400;color:var(--muted);margin-left:5px}.automation-rule-list{display:grid;gap:12px}.automation-rule{border:1px solid var(--line);border-radius:10px;min-width:0;background:var(--surface,#fff)}.automation-rule>summary{display:block;position:relative;padding:18px 44px 18px 18px;cursor:pointer;list-style:none}.automation-rule>summary::-webkit-details-marker{display:none}.automation-rule>summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:8px}.automation-rule-heading{display:flex;align-items:center;gap:12px;min-width:0}.automation-rule-heading strong{font-size:14px;line-height:1.7;min-width:0;overflow-wrap:anywhere}.automation-rule-state{flex:none;font-size:11px;color:var(--muted);padding:2px 8px;border-radius:5px;background:var(--bg)}.automation-rule-state.is-enabled{color:var(--blue);background:var(--blue-soft,#f1edfb)}.automation-rule-preview{color:var(--secondary);font-size:13px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin:8px 0!important}.automation-rule-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;color:var(--muted);font-size:12px;line-height:1.7}.automation-rule-meta>span{min-width:0;overflow-wrap:anywhere}.automation-rule-meta>span+span:before{content:'·';margin-right:12px;color:var(--muted)}.automation-chevron{position:absolute;right:18px;top:20px;color:var(--muted);font-size:19px;line-height:1}.automation-rule[open]>summary .automation-chevron{transform:rotate(180deg)}.automation-rule-body{border-top:1px solid var(--line);margin:0 18px;padding:18px 0;min-width:0}.automation-rule-body dl{display:grid;gap:18px;margin:0}.automation-rule-body dl>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:16px}.automation-rule-body dt{color:var(--muted);font-size:12px;line-height:1.8}.automation-rule-body dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}.automation-rule-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px}.automation-rule-actions .automation-remove{margin-left:auto;color:var(--muted)}.automation-remove-confirm{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.automation-remove-confirm p{margin:0 0 12px;line-height:1.7;overflow-wrap:anywhere}.automation-remove-confirm>div{display:flex;justify-content:flex-end;gap:10px}.automation-presets{margin-top:18px;color:var(--secondary);font-size:12px}.automation-presets>summary{cursor:pointer;padding:5px 0}.automation-presets>div{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.automation-empty{text-align:center;padding:34px 20px;border:1px dashed var(--line);border-radius:10px}.automation-empty p{color:var(--muted);margin:10px auto 0;max-width:480px;line-height:1.8;font-size:13px}.automation-footnote{margin:22px 0 0!important;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.8}.automation-editor{margin-top:24px;border-top:1px solid var(--line);padding-top:22px;max-width:980px}.automation-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}.automation-editor-head h3{font-size:16px;margin:0}.automation-editor-head p{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0 0}.automation-editor-head>.button{flex:none}.automation-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 20px}.automation-editor-grid>.field{min-width:0;margin:0!important}.automation-editor-grid>.automation-wide{grid-column:1/-1}.automation-editor-grid label{display:block!important;margin:0 0 9px!important;font-size:13px}.automation-editor-grid input,.automation-editor-grid select,.automation-editor-grid textarea{width:100%;min-width:0;box-sizing:border-box;font-size:14px}.automation-editor-grid textarea{resize:vertical;line-height:1.8;padding:12px 14px}.automation-editor-grid .field-hint{margin:8px 0 0;font-size:12px;line-height:1.7}.automation-editor [aria-invalid=true]{border-color:#b42318}.automation-project-scope{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);font-size:13px}.automation-project-scope>summary{cursor:pointer}.automation-project-scope .field-hint{margin:12px 0;font-size:12px;line-height:1.7}.automation-project-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;max-height:240px;overflow:auto;overscroll-behavior-y:auto}.automation-project-options>label{display:flex!important;align-items:center;gap:10px;min-width:0;margin:0!important;padding:9px 0;font-size:13px}.automation-project-options>label span{overflow-wrap:anywhere}.automation-editor-enabled{display:flex!important;align-items:center;gap:9px;font-size:13px;margin:22px 0!important}.automation-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;border-top:1px solid var(--line)}.automation-editor-footer>span{font-size:12px;color:var(--muted);line-height:1.7}.automation-editor-footer>div{display:flex;gap:10px;flex:none}.automation-editor .error{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
@media(max-width:650px){.automation-head{flex-direction:column;gap:14px}.automation-list-toolbar{margin-top:22px}.automation-rule>summary{padding:15px 34px 15px 14px}.automation-chevron{right:12px;top:18px}.automation-rule-heading{gap:8px;align-items:flex-start}.automation-rule-heading strong{font-size:14px;flex:1}.automation-rule-preview{-webkit-line-clamp:2}.automation-rule-meta{gap:4px 10px}.automation-rule-body{margin:0 14px;padding:16px 0}.automation-rule-body dl>div{grid-template-columns:1fr;gap:6px}.automation-editor-grid{grid-template-columns:1fr;gap:20px}.automation-editor-head{gap:10px}.automation-editor-head>.button{padding-left:8px;padding-right:8px}.automation-project-options{grid-template-columns:1fr}.automation-editor-footer{align-items:flex-start;flex-direction:column}.automation-editor-footer>div{align-self:flex-end}.automation-empty{padding:26px 14px}.automation-rule-actions{gap:6px}.automation-rule-actions .button{padding-left:10px;padding-right:10px}}

/* A stable project workspace inside its parent task. */
#detail .implementation-panel>.detail-body{padding:var(--space-4) var(--panel-pad) var(--space-6)}
.implementation-project-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid var(--line)}.implementation-project-tabs>button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;max-width:100%;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--secondary);font:inherit;font-size:13px;cursor:pointer;overflow-wrap:anywhere}.implementation-project-tabs>button span{font-size:11px;color:var(--muted)}.implementation-project-tabs>button[aria-selected=true]{border-color:var(--blue);color:var(--blue);background:var(--blue-soft,#f4f0fc)}.implementation-inline{min-width:0}.implementation-inline>.implementation-card-head{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--line)}.implementation-inline>.task-workspace{margin:20px 0 0}.implementation-inline .implementation-delivery{min-width:0;margin:0 0 20px}.implementation-inline .implementation-delivery>.stage-notice{margin:0}.implementation-inline .task-workspace .task-development{margin:0;border:0;box-shadow:none}.implementation-inline .task-workspace .task-development>.panel-head{display:none}.implementation-inline .task-records-pane{padding:18px 20px}.implementation-inline .implementation-delivery:focus{outline:none}
@media(max-width:650px){.implementation-project-tabs{gap:8px}.implementation-project-tabs>button{flex:1 1 130px;padding:10px}.implementation-inline>.implementation-card-head{align-items:flex-start;gap:10px;flex-wrap:wrap}.implementation-inline .task-records-pane{padding:16px 12px}.implementation-inline>.task-workspace>.panel-head{padding:16px}.implementation-inline>.task-workspace>.panel-head p{font-size:12px}}
@media(max-width:650px){#detail .implementation-panel>.detail-body{padding-bottom:var(--space-4)}}

/* Capability cards share a baseline; longer references open inside the card. */
.agent-reference-grid { align-items: stretch; }
.agent-reference-card { display: flex; flex-direction: column; padding: 22px; }
.agent-reference-head { align-items: flex-start; min-height: 50px; }
.agent-reference-head h2 { min-width: 0; line-height: 1.5; }
.agent-reference-head .badge { flex: none; font-size: 11px; margin-top: 2px; }
.agent-reference-card>.agent-reference-description { margin: 12px 0 0; min-height: 5.1em; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.agent-reference-card dl { display: grid; gap: 14px; margin: 20px 0; }
.agent-reference-card dl>div { grid-template-columns: 60px minmax(0,1fr); gap: 12px; margin: 0; min-height: 3.4em; line-height: 1.7; }
.agent-reference-card dd { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agent-reference-card:has(.agent-reference-details[open])>.agent-reference-description,
.agent-reference-card:has(.agent-reference-details[open]) dd { display: block; overflow: visible; }
.agent-reference-details { margin: 0 0 18px; }
.agent-reference-details>summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; list-style: none; font-size: 13px; }
.agent-reference-details>summary::-webkit-details-marker { display: none; }
.agent-reference-details>summary>span:last-child { transition: transform .15s; }
.agent-reference-details[open]>summary>span:last-child { transform: rotate(180deg); }
.agent-reference-details .when-open, .environment-test-result .when-open { display: none; }
.agent-reference-details[open]>summary .when-open, .environment-test-result[open]>summary .when-open { display: inline; }
.agent-reference-details[open]>summary .when-closed, .environment-test-result[open]>summary .when-closed { display: none; }
.agent-reference-foot { margin-top: auto; padding-top: 16px; }
.agent-reference-foot>.button { min-height: 40px; }

/* Project progress: one current action area, supporting records on demand. */
#detail .implementation-panel.current-work { border-color: var(--line); }
#detail .implementation-panel>.implementation-panel-summary { cursor: pointer; list-style: none; align-items: center; border-bottom: 1px solid transparent; }
#detail .implementation-panel>.implementation-panel-summary { padding: 16px var(--panel-pad); }
#detail .implementation-panel>.implementation-panel-summary h2 { margin: 0; font-size: 16px; line-height: 1.5; flex-wrap: wrap; }
.implementation-summary-context { color: var(--secondary); font-weight: 500; }
#detail .implementation-panel[open]>.implementation-panel-summary { border-bottom-color: var(--line); margin-bottom: 0; }
.implementation-panel-summary::-webkit-details-marker, .implementation-fold>summary::-webkit-details-marker { display: none; }
.implementation-panel-summary>.icon { flex: none; width: 18px; height: 18px; transition: transform .15s; }
.implementation-panel[open]>.implementation-panel-summary>.icon { transform: rotate(180deg); }
.implementation-panel-summary:focus-visible, .implementation-fold>summary:focus-visible, .agent-reference-details>summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; border-radius: 8px; }
.implementation-inline { display: grid; gap: 20px; }
.implementation-inline>.implementation-card-head { padding: 0; margin: 0; border: 0; align-items: center; }
.implementation-card-head>div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.implementation-stages { display: grid; grid-template-columns: repeat(auto-fit,minmax(112px,1fr)); gap: 12px; padding: 0 0 20px; margin: 0; list-style: none; border-bottom: 1px solid var(--line); }
.implementation-stages li { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted); font-size: 13px; }
.implementation-stages li>span { display: inline-flex; flex: 0 0 24px; width: 24px; height: 24px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; }
.implementation-stages strong { font-weight: 500; line-height: 1.5; }
.implementation-stages .icon { width: 14px; height: 14px; }
.implementation-stages .is-done { color: var(--secondary); }
.implementation-stages .is-done>span { color: var(--green,#349b7d); background: var(--green-soft,#eef8f4); border-color: transparent; }
.implementation-stages .is-current { color: var(--blue); }
.implementation-stages .is-current>span { color: #fff; background: var(--blue); border-color: var(--blue); }
.implementation-inline .implementation-delivery { margin: 0; }
#detail .implementation-delivery>.stage-notice { margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); }
#detail .implementation-delivery>.stage-notice>h3 { margin: 0; font-size: 16px; line-height: 1.6; }
#detail .implementation-delivery>.stage-notice>h3 .icon { display: none; }
#detail .implementation-delivery>.stage-notice>*+* { margin-top: 18px; }
#detail .implementation-delivery p { line-height: 1.8; }
.implementation-fold { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface,#fff); }
.implementation-fold>summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 13px 16px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; line-height: 1.7; }
.implementation-fold>summary>.icon { width: 16px; height: 16px; flex: none; transition: transform .15s; }
.implementation-fold[open]>summary>.icon { transform: rotate(180deg); }
.implementation-fold[open]>summary { border-bottom: 1px solid var(--line); }
.implementation-fold>.disclosure-body { padding: 18px; }
.implementation-fold>.disclosure-body>:first-child { margin-top: 0; }
.implementation-fold>.disclosure-body>:last-child { margin-bottom: 0; }
.implementation-work-records>.disclosure-body { padding: 0; }
.implementation-work-records .task-workspace { border: 0; box-shadow: none; margin: 0; }
.implementation-work-records .task-workspace>.panel-head { display: none; }
.implementation-work-records .task-workspace-tabs { border-radius: 0; }
#detail .implementation-delivery .environment-test-panel { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface,#fff); }
#detail .implementation-delivery .environment-test-panel>p { margin: 12px 0; color: var(--secondary); font-size: 13px; }
#detail .implementation-delivery .environment-test-panel>.gate-actions { margin-top: 16px; }
.environment-test-result { margin: 12px 0; }
.environment-test-result>summary { cursor: pointer; font-size: 13px; line-height: 1.8; padding: 8px 0; color: var(--blue); }
.environment-test-result-body { padding: 12px 0 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.environment-test-result-body>p { white-space: pre-wrap; }
.environment-test-result-body>:first-child { margin-top: 0; }
.environment-test-config>summary { min-height: 36px; padding: 8px 0; font-size: 13px; line-height: 1.8; }
#detail .implementation-delivery .test-handoff-targets { margin: 0; padding: 12px 0; border: 0; gap: 6px 16px; }
.implementation-delivery .test-handoff-targets>.implementation-fold { flex-basis: 100%; border: 0; }
.implementation-delivery .test-handoff-targets>.implementation-fold>summary { min-height: 32px; padding: 4px 0; font-size: 12px; color: var(--muted); border: 0; }
.implementation-delivery .test-handoff-targets>.implementation-fold>.disclosure-body { padding: 6px 0; }
#detail .implementation-delivery #deployment-form { padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface,#fff); }
#detail .implementation-delivery #deployment-form>.field:first-child { margin-top: 0; }
#detail .implementation-delivery #deployment-form>.implementation-fold { margin: 18px 0; }
#detail .implementation-delivery #deployment-form>.gate-actions { margin: 18px 0 0; gap: 10px; }
#detail .implementation-delivery #deployment-pass { order: -1; }
#detail .implementation-delivery .deployment-saved { padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; margin: 18px 0 0; }
#detail .implementation-delivery .test-handoff-panel { padding: 0; margin: 0; border: 0; }
@media(max-width:650px) {
  .agent-reference-card { padding: 18px; }
  .agent-reference-head { min-height: 0; }
  .agent-reference-head h2 { font-size: 16px; }
  .implementation-inline { gap: 16px; }
  .implementation-stages { gap: 8px; padding-bottom: 16px; }
  .implementation-stages li { flex-direction: column; align-items: flex-start; gap: 7px; font-size: 11px; }
  .implementation-inline>.implementation-card-head { align-items: flex-start; }
  .implementation-fold>summary { padding: 12px 14px; font-size: 13px; }
  .implementation-fold>.disclosure-body { padding: 14px; }
  .implementation-work-records>.disclosure-body { padding: 0; }
  #detail .implementation-delivery .environment-test-panel, #detail .implementation-delivery #deployment-form { padding: 14px; }
  .implementation-delivery .test-handoff-targets>div { min-width: 0; flex-basis: 100%; }
  .implementation-delivery .gate-actions>.button { flex: 1 1 100%; min-width: 0; white-space: normal; }
}
#detail .implementation-delivery .implementation-fold .environment-test-panel,
#detail .implementation-delivery .implementation-fold #deployment-form { padding: 0; border: 0; border-radius: 0; }

/* The next delivery step remains distinct from housekeeping actions. */
.bulk-actions .button.primary{color:var(--blue-dark);background:var(--blue-soft);border-color:transparent}
.bulk-actions .button.primary:hover{background:#e9e0fb}
.bulk-actions .button.primary small{color:inherit}
.bulk-actions .button.primary:disabled{opacity:.5;cursor:not-allowed}
.approval-task-scope{margin-bottom:18px;font-size:13px;color:var(--secondary)}
.approval-task-scope summary{cursor:pointer;line-height:1.7}
.approval-task-scope ul{margin:10px 0 0;padding-left:22px;line-height:1.8;overflow-wrap:anywhere}
/* Keep the task's archive action and disclosure arrow on one line. */
.runs-table .task-row-actions{flex-wrap:nowrap;gap:10px;white-space:nowrap;min-width:max-content}
.runs-table .task-row-actions>*{flex-shrink:0}
@media(forced-colors:active){input[type=checkbox],input[type=checkbox]:checked,input[type=checkbox]:indeterminate{appearance:auto;-webkit-appearance:auto;background-image:none;accent-color:auto}}
/* A single hairline separates the selection strip from the table. */
#workspace .bulk-toolbar{box-shadow:none;border-bottom:1px solid var(--line)}
#workspace .bulk-toolbar.is-stuck::before{bottom:0;border-bottom:0}
@media(max-width:650px){
 .runs-table.has-selection tr{grid-template-columns:32px minmax(0,1fr) auto}
 .runs-table .task-row-actions{gap:8px}
}

.approval-commit-summary{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;max-height:250px;overflow:auto;margin:10px 0 0}
@media(min-width:651px) and (max-width:1200px){
 .runs-table{table-layout:fixed;width:100%}
 .runs-table .column-branch,.runs-table .column-created{display:none}
 .runs-table th:last-child{width:100px}
 .runs-table.has-selection th:first-child{width:56px}
 .runs-table th.column-project{width:130px}
 .runs-table.has-selection th:nth-child(3){width:176px}
 .runs-table .run-title{max-width:100%;width:100%;overflow-wrap:anywhere}
}
@media(min-width:651px) and (max-width:900px){.runs-table .column-project{display:none}}
.runs-table .badge{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.runs-table .badge::before{margin-right:6px}
@media(min-width:651px) and (max-width:1200px){
 #delivery-list .toolbar{display:grid;grid-template-columns:minmax(180px,1fr) repeat(3,minmax(110px,.6fr))}
 #delivery-list .toolbar .search-field{max-width:none;min-width:0}
 #delivery-list .toolbar input,#delivery-list .toolbar select{min-width:0;width:100%}
}
@media(min-width:651px) and (max-width:900px){#delivery-list .toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}#delivery-list .toolbar .search-field{grid-column:1/-1}}
.runs-table .badge::before{display:inline-block}

/* Mode correction uses the same task action row on wide and narrow lists. */
.runs-table .task-mode-row-button{color:var(--blue-dark);white-space:nowrap}
@media(min-width:651px) and (max-width:1200px){
 .runs-table th:last-child{width:208px}
 .runs-table .task-row-actions{min-width:0;gap:8px;flex-wrap:wrap}
 .runs-table .task-status-badge{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.6}
}
@media(max-width:650px){
 .runs-table td:last-child,.runs-table.has-selection td:last-child{grid-column:1/-1;grid-row:3;justify-self:stretch}
 .runs-table .task-row-actions{min-width:0;white-space:normal;flex-wrap:wrap;justify-content:flex-end}
 .runs-table .task-mode-row-button{min-height:44px}
}

/* Native approval people and conditional route stay compact and readable. */
.native-people-picker{display:grid;gap:8px;min-width:0}
.native-person-chips{display:flex;flex-wrap:wrap;gap:8px}
.native-person-chips:empty{display:none}
.native-person-chip{display:inline-flex;align-items:center;gap:8px;padding:5px 9px;background:var(--blue-soft);color:var(--blue-dark);border-radius:6px;font-size:13px;max-width:100%;overflow-wrap:anywhere}
.native-person-chip button{border:0;background:transparent;color:inherit;font-size:18px;line-height:1;cursor:pointer;padding:2px 4px;flex:none}
.native-person-search{display:flex;gap:8px;min-width:0}
.native-person-search .input{flex:1;min-width:0;width:100%}
.native-person-search .button{flex:none}
.native-person-results{display:grid;max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:7px;background:var(--surface,#fff);padding:4px}
.native-person-results[hidden]{display:none}
.native-person-result{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;border:0;border-radius:4px;padding:10px;background:transparent;color:var(--text);cursor:pointer;overflow-wrap:anywhere}
.native-person-result:hover,.native-person-result:focus-visible{background:var(--blue-soft)}
.native-person-result small{color:var(--muted)}
.native-person-result:disabled{opacity:.5;cursor:default}
.native-people-picker .field-hint{margin:0}
.native-route{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}
.native-route-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.native-route-heading h3{margin:0;font-size:14px}
.native-route-steps{display:flex;flex-wrap:wrap;gap:8px 12px;list-style:none;padding:0;margin:14px 0 20px;color:var(--secondary);font-size:13px;line-height:1.7}
.native-route-steps li:not(:last-child)::after{content:'›';margin-left:12px;color:var(--muted)}
.native-route-status{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.native-route>.field{margin:18px 0 0}
#native-approval-form>.field{margin-bottom:20px}

/* Keep transition feedback separate from project identity at every width. */
#detail .panel>.task-step-feedback{margin:16px var(--panel-pad,24px) 20px}
#detail .implementation-panel>.detail-body>.task-step-feedback{margin:0 0 var(--space-4)}
#detail .implementation-inline>.task-step-feedback{margin:0}
#detail .panel>.task-step-feedback+.panel-head{padding-top:0}
.task-chat-queued .task-chat-bubble{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.task-chat-queued .task-chat-meta{color:var(--purple)}
@media(max-width:680px){.task-chat-actions .button{min-height:44px}}
.native-option-search{margin-bottom:8px}
.native-checkboxes .native-checkbox{display:flex;align-items:center;gap:9px}
@media(max-width:650px){#detail .panel>.task-step-feedback{margin:12px 14px 18px}}

/* Account-scoped Feishu contact directory. */
#feishu-connection .contact-directory-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
#feishu-connection .contact-directory-head h3{margin:0}
#feishu-connection .contact-description{margin:10px 0 0}
#feishu-connection .contact-directory-head>div{min-width:0}
#feishu-connection .contact-directory-head>.button{flex:none;min-width:120px}
#feishu-connection .contact-sync-status{margin:16px 0;font-size:13px;line-height:1.8;color:var(--secondary);text-align:left}
#feishu-connection .contact-sync-status[data-kind="busy"]{color:var(--purple,var(--blue))}
#feishu-connection .contact-sync-status[data-kind="error"]{color:var(--red)}
#feishu-connection .contact-people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:12px}
#feishu-connection .contact-person{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
#feishu-connection .contact-person .avatar{flex:none}
#feishu-connection .contact-person-info{display:flex;flex-direction:column;min-width:0;gap:2px;overflow-wrap:anywhere}
#feishu-connection .contact-person-info strong{font-size:14px;font-weight:600}
#feishu-connection .contact-person-info small{font-size:12px;color:var(--secondary);line-height:1.6}
#feishu-connection .contact-search-area{margin-top:20px}
#feishu-connection .contact-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px}
#feishu-connection .contact-search>.input{min-width:0;width:100%;margin:0}
#feishu-connection .contact-search>.button{margin:0;min-height:40px}
#feishu-connection #contact-results-status{margin:8px 0 0}
#feishu-connection #contact-results-status:empty{display:none}
#feishu-connection .contact-scope{margin:8px 0 0}
#feishu-connection .contact-empty{grid-column:1/-1;margin:0;padding:12px 0}
@media(max-width:480px){#feishu-connection .contact-directory-head{gap:12px}#feishu-connection .contact-directory-head>.button{min-width:108px;padding:8px 10px}#feishu-connection .contact-search>.button{min-height:44px}}

/* Dedicated Feishu workspace; keep navigation actions separate from navigation links. */
[data-feishu-nav][hidden],.feishu-nav-row[hidden]{display:none!important}
.feishu-nav-row{flex:none;display:flex;align-items:center;gap:4px;min-width:0}
.feishu-nav-row>[data-page]{flex:1;min-width:0}
.feishu-nav-sync{flex:none;width:32px;height:32px;margin-right:6px;color:var(--secondary)}
.feishu-nav-sync svg{width:16px;height:16px}
.feishu-nav-sync:disabled{opacity:.55}
#feishu-page,#feishu-contacts-page{min-width:0;width:100%}
.feishu-connection-summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;margin-bottom:20px}
.feishu-connection-summary h2,.feishu-directory-header h2{margin:0;font-size:17px;line-height:1.5}
.feishu-connection-summary p,.feishu-directory-header p{margin:8px 0 0;color:var(--secondary);font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.feishu-connection-summary>.button,.feishu-directory-header>.button{flex:none;white-space:nowrap}
.feishu-capabilities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.feishu-capability{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;min-width:0;text-align:left;color:var(--text);cursor:pointer;font:inherit}
.feishu-capability:hover{border-color:var(--purple,var(--blue));background:var(--blue-soft)}
.feishu-capability strong{display:block;font-size:15px}
.feishu-capability small{display:block;color:var(--secondary);font-size:13px;line-height:1.8;margin-top:10px}
.feishu-hub-note{margin:18px 0 0;line-height:1.8}
.feishu-directory{padding:24px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff)}
.feishu-directory-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.feishu-directory [data-contact-sync]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:124px}
.feishu-contact-status{margin:18px 0;color:var(--secondary);font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.feishu-contact-status[data-kind=busy]{color:var(--purple,var(--blue))}
.feishu-contact-status[data-kind=error]{color:var(--red)}
.feishu-contact-search{display:flex;align-items:stretch;gap:10px}
.feishu-contact-search>.input{flex:1;width:100%;min-width:0;margin:0}
.feishu-contact-search>.button{flex:none;white-space:nowrap;margin:0}
.feishu-contact-scope{margin:10px 0 0;line-height:1.8}
.feishu-directory [data-contact-results-status]{margin:10px 0 20px;line-height:1.7}
.feishu-department{margin:0 0 20px;padding:0;border:0}
.feishu-department:last-child{margin-bottom:0}
.feishu-department>summary{display:flex;align-items:center;gap:10px;list-style:none;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer;font-size:14px;font-weight:600;color:var(--text);line-height:1.7}
.feishu-department>summary::-webkit-details-marker{display:none}
.feishu-department>summary>span:first-child{min-width:0;overflow-wrap:anywhere}
.feishu-department-count{flex:none;color:var(--muted);font-size:12px;font-weight:400}
.feishu-department-chevron{margin-left:auto;color:var(--muted);transition:transform .15s}
.feishu-department:not([open]) .feishu-department-chevron{transform:rotate(-90deg)}
.feishu-people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:4px 20px;padding-top:10px}
.feishu-person{display:flex;align-items:center;gap:12px;min-width:0;padding:12px 0}
.feishu-person .avatar{flex:none;width:36px;height:36px;font-size:14px;background:var(--blue-soft);color:var(--purple,var(--blue))}
.feishu-person>div{min-width:0}
.feishu-person strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.feishu-person small{display:block;font-size:12px;color:var(--secondary);line-height:1.6;margin-top:3px;overflow-wrap:anywhere}
.feishu-empty{margin:0;padding:16px 0;color:var(--secondary);font-size:13px;line-height:1.8}
.contact-directory-shortcut{display:flex;align-items:center;justify-content:space-between;gap:20px}
.contact-directory-shortcut h3{margin:0 0 8px}.contact-directory-shortcut p{margin:0}.contact-directory-shortcut>.button{flex:none}
.mobile-menu-grid .feishu-nav-row>.button{justify-content:flex-start}
@media(max-width:650px){.feishu-capabilities{grid-template-columns:1fr;gap:12px}.feishu-connection-summary,.feishu-directory-header{align-items:flex-start;gap:14px;flex-direction:column}.feishu-connection-summary,.feishu-directory{padding:18px}.feishu-capability{padding:18px}.feishu-directory-header>.button{align-self:flex-start}.feishu-contact-search>.button{padding-left:12px;padding-right:12px}.contact-directory-shortcut{align-items:flex-start;flex-direction:column;gap:12px}}
@media(prefers-reduced-motion:reduce){.feishu-department-chevron{transition:none}}
#workspace .sidebar .feishu-nav-row>.nav-item{flex:1 1 0;width:auto;min-width:0}
#mobile-navigation .feishu-nav-row>[data-page]{flex:1 1 0;width:auto;min-width:0}

/* Compact department tree and the actual Feishu configuration workspace. */
.feishu-directory-header h2{font-size:16px}
.feishu-directory-header p{margin-top:6px}
.feishu-contact-status{margin:14px 0;font-size:12px}
.feishu-contact-scope{margin:10px 0 0;font-size:12px;color:var(--muted)}
.feishu-contact-scope>summary{cursor:pointer;display:list-item;font-weight:400;padding:0;border:0}
.feishu-contact-scope>p{margin:6px 0 0;line-height:1.7}
.feishu-tree-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:20px 0 8px;min-height:32px}
.feishu-directory .feishu-tree-toolbar [data-contact-results-status]{margin:0;min-width:0;font-size:12px}
.feishu-tree-toolbar>div{display:flex;gap:4px;flex:none}
.feishu-tree-toolbar .button{padding:4px 9px;min-height:30px;font-size:12px;white-space:nowrap}
.feishu-directory [data-contact-results]{border-top:1px solid var(--line);padding-top:4px}
.feishu-department{margin:0;padding:0;border:0;border-radius:0;background:none}
.feishu-department>summary{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:44px;padding:9px 10px;margin:0;border:0;border-radius:6px;font-size:14px;font-weight:500;line-height:1.6}
.feishu-department>summary:hover{background:var(--blue-soft)}
.feishu-department>summary:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.feishu-department>summary>span:first-child{flex:none;overflow:visible}
.feishu-department>summary>span:nth-last-child(2){min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.feishu-department-chevron{flex:none;display:inline-flex;justify-content:center;align-items:center;width:14px;margin:0;color:var(--muted);font-size:19px;line-height:20px;transition:transform .15s;transform:rotate(0deg)}
.feishu-department[open] .feishu-department-chevron{transform:rotate(90deg)}
.feishu-department:not([open]) .feishu-department-chevron{transform:rotate(0deg)}
.feishu-folder{width:17px;height:17px;flex:none;color:var(--secondary)}
.feishu-department-count{margin-left:auto;font-size:12px;line-height:20px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
.feishu-department .feishu-people-grid{display:block;list-style:none;margin:0 10px 6px 26px;padding:0 0 0 22px;border-left:1px solid var(--line)}
.feishu-person{position:relative;display:flex;align-items:center;gap:10px;min-height:46px;padding:8px 8px;list-style:none;border-radius:5px}
.feishu-person::before{content:'';position:absolute;top:50%;left:-22px;width:16px;border-top:1px solid var(--line)}
.feishu-person:hover{background:var(--blue-soft)}
.feishu-person .avatar{width:28px;height:28px;font-size:12px}
.feishu-person>div{display:grid;grid-template-columns:minmax(90px,180px) minmax(0,1fr);align-items:center;gap:12px;flex:1;min-width:0}
.feishu-person strong{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feishu-person small{margin:0;font-size:12px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.feishu-source-link{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 0;padding:14px 0 0;border-top:1px solid var(--line);font-size:12px;color:var(--secondary)}
.feishu-source-link>.button{flex:none;white-space:nowrap}
#workspace[data-view="feishu"] #first-use-intro{display:none}
#workspace[data-view="feishu"] #settings-section-heading{margin-bottom:20px}
@media(max-width:650px){
 .feishu-directory{padding:16px}.feishu-directory-header{flex-direction:row;align-items:center;gap:12px}
 .feishu-directory-header h2{font-size:15px}.feishu-directory-header p{display:none}
 .feishu-directory [data-contact-sync]{min-width:0;padding:7px 10px;font-size:12px;min-height:36px}
 .feishu-tree-toolbar{flex-wrap:wrap;gap:6px;margin-top:14px}.feishu-tree-toolbar>div{margin-left:auto}
 .feishu-department>summary{padding:9px 2px}.feishu-department .feishu-people-grid{margin-left:16px;margin-right:0;padding-left:14px}
 .feishu-person{padding:8px 4px}.feishu-person::before{left:-14px;width:11px}
 .feishu-person>div{grid-template-columns:minmax(0,1fr);gap:1px}.feishu-person .avatar{width:27px;height:27px}
 .feishu-source-link{align-items:flex-start;flex-direction:column;gap:8px}
}

/* Identity authorization lives beside capability authorization, with one widget instance. */
#workspace[data-feishu-auth="true"] #account-page #account-feishu-settings{display:none}
#feishu-login-configuration #account-feishu-settings{margin:0;padding:0;border:0}
#workspace[data-view="feishu"] [data-feishu-section="messages"]>h2,
#workspace[data-view="feishu"] [data-feishu-section="messages"]>h2+p,
#workspace[data-view="feishu"] [data-feishu-section="delivery"]>h2,
#workspace[data-view="feishu"] [data-feishu-section="delivery"]>h2+p{display:none}


/* Inbox: quiet local reads and a compact, shared record footer. */
.inbox-read-status{display:flex;align-items:center;gap:7px;min-height:24px;margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.6}
.inbox-read-status .spinner,.inbox-read-status .icon{width:13px;height:13px;flex-shrink:0}
.inbox-record-footer{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.inbox-record-references{display:grid;gap:6px}
.inbox-record-reference{display:flex;align-items:baseline;gap:6px 8px;flex-wrap:wrap;color:var(--muted);font-size:12px;line-height:1.7;min-width:0}
.inbox-record-reference>.icon{width:14px;height:14px;align-self:flex-start;margin-top:3px;flex:none}
.inbox-reference-title{min-width:0;overflow-wrap:anywhere}.inbox-reference-title a{color:var(--secondary);text-decoration:none}.inbox-reference-title a:hover{color:var(--blue-dark);text-decoration:underline;text-underline-offset:3px}
.inbox-reference-state{white-space:nowrap;color:var(--muted);font-size:11px}
.inbox-reference-state::before{content:'·';margin-right:8px}
.inbox-record-actions{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:6px}
.inbox-record-actions:first-child{margin-top:0}.inbox-record-links{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;min-width:0}
.inbox-record-actions .button{min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:12px;line-height:1.6;gap:8px;white-space:normal;text-align:left}
.inbox-record-links .button:first-child{color:var(--blue-dark);background:var(--blue-soft);border-color:transparent}
.inbox-record-actions .button .icon{width:16px;height:16px;flex:none}.inbox-record-actions .inbox-delete{flex:none;padding:8px 12px;color:var(--muted)}
.inbox-record-actions .inbox-delete:hover{color:var(--red);background:var(--red-soft)}
@media(max-width:650px){.inbox-record-actions{gap:8px}.inbox-record-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));width:100%}.inbox-record-actions .button{min-height:44px;justify-content:space-between}.inbox-record-reference{column-gap:6px}.inbox-reference-title{flex:1 1 150px}}

@media(min-width:651px) and (max-width:1100px){.inbox-view-tabs{flex-wrap:wrap;gap:0 20px}}

/* Approval records: one application per row, including shared task drafts. */
.approval-list-links,.approval-record-filters,.approval-record-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#delivery-list>.panel-head{gap:var(--space-3);flex-wrap:wrap}
#delivery-list .approval-list-links{min-width:0;margin-left:auto;justify-content:flex-end;gap:var(--space-2)}
#list-batch-actions{flex:none}
@media(max-width:650px){#delivery-list .approval-list-links{flex:1 1 100%;justify-content:flex-start}#delivery-list #list-note{flex:1;min-width:0;overflow-wrap:anywhere}#list-batch-actions{min-height:var(--touch-control-height)}}
.approval-records-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line)}
.approval-records-toolbar>.input{flex:1 1 220px;min-width:160px;max-width:380px;margin-left:auto}
.approval-record-filters{gap:4px}.approval-record-filters [aria-pressed="true"]{color:var(--blue);background:var(--blue-soft)}
.approval-records-hint{margin:0;padding:14px 20px;color:var(--secondary);font-size:13px;line-height:1.7}
#approval-record-error{margin:0 20px 16px}
.approval-record{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:20px;border-top:1px solid var(--line)}
.approval-record-main{min-width:0}.approval-record-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.approval-record-heading h2{margin:0;font-size:15px;line-height:1.6}.approval-record-summary{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0;font-size:14px;line-height:1.8}
.approval-record-meta{font-size:12px;color:var(--muted);gap:6px 16px;line-height:1.7}
.approval-record-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:124px}
.approval-record-actions .button{white-space:nowrap}.approval-record-tasks{margin-top:12px}.approval-record-tasks summary{cursor:pointer;font-size:13px;color:var(--secondary);padding:4px 0}
.approval-record-task{display:flex;align-items:baseline;gap:12px;width:100%;text-align:left;border:0;background:transparent;color:var(--secondary);padding:8px 0;font-size:13px;line-height:1.7;cursor:pointer}
.approval-record-task code{flex-shrink:0;font-size:12px;color:var(--blue)}.approval-record-task span{overflow-wrap:anywhere}
.approval-record-problem{font-size:13px;color:var(--amber);line-height:1.8;overflow-wrap:anywhere;margin:10px 0 0}
@media(max-width:650px){.approval-records-toolbar{padding:14px 12px;gap:10px}.approval-records-toolbar>.input{order:3;flex-basis:100%;max-width:none;margin:0}.approval-records-toolbar>#approval-record-refresh{margin-left:auto}.approval-record{grid-template-columns:1fr;padding:16px 12px;gap:14px}.approval-record-actions{flex-direction:row;flex-wrap:wrap;min-width:0}.approval-record-actions .button{min-height:40px}.approval-records-hint{padding:12px}.approval-record-task{gap:8px}}

@media(max-width:650px){.approval-record-filters{flex-basis:100%}.approval-records-toolbar>.input{order:2;flex:1 1 160px;min-width:140px;width:0}.approval-records-toolbar>#approval-record-refresh{order:3;margin:0;flex-shrink:0}}

/* Keep send controls together, with the hint filling the remaining space. */
.task-chat-actions{justify-content:flex-end;gap:var(--space-2)}
.task-chat-actions>.field-hint{flex:1 1 auto;margin-right:auto}
.task-chat-actions .task-send-mode{flex:0 1 120px;min-width:100px;margin:0}
.task-chat-actions .task-send-mode select{width:100%;min-height:44px}
.task-chat-actions :is(select,button):focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:650px){.task-chat-actions{flex-wrap:wrap}.task-chat-actions>.field-hint{flex:1 0 100%}}

/* Merged evidence is a compact reference card above the main task. */
.merged-issue-panel{padding:var(--space-4) var(--space-5)}
.merged-issue-heading,.merged-issue-title,.merged-issue-links{display:flex;align-items:center;gap:var(--space-2);min-width:0;flex-wrap:wrap}
.merged-issue-heading{justify-content:space-between;gap:var(--space-2) var(--space-4)}
.merged-issue-title h2{font-size:16px;line-height:1.6;margin:0}
.merged-issue-title .count-label{flex:none}
.merged-issue-links{gap:var(--space-2)}
.merged-issue-links .button{min-height:40px;padding:var(--space-1) var(--space-2);font-size:12px;white-space:normal;overflow-wrap:anywhere;text-align:left}
.merged-issue-panel>.merged-issue-description{margin:var(--space-1) 0 0;color:var(--muted);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.merged-issue-panel>.agent-decision-note,.merged-issue-panel>.field-hint{margin:var(--space-2) 0 0}
.merged-issue-panel>.merged-issue-sources-entry{width:100%;justify-content:space-between;margin-top:var(--space-3);padding:var(--space-2) 0;border-radius:0;border-top:1px solid var(--line);white-space:normal;text-align:left}
.merged-issue-sources-entry>span{min-width:0;overflow-wrap:anywhere}
.merged-issue-drawer>.dialog-body{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:var(--space-5);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.merged-issue-rationale{margin-bottom:var(--space-4)}
@media(max-width:650px){
 .merged-issue-panel{padding:var(--space-4)}
 .merged-issue-links .button,.merged-issue-panel>.merged-issue-sources-entry{min-height:44px}
 .merged-issue-drawer>.dialog-body{padding:var(--space-4)}
}
#detail .mr-other-actions>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);min-height:40px}
#detail .mr-other-actions[open]>.gate-actions{padding-top:var(--space-2)}
@media(max-width:650px){#detail .mr-other-actions>summary{min-height:44px}}
.task-issue-note{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;margin-top:var(--space-2);overflow-wrap:anywhere}
.task-issue-note .button{white-space:normal;min-height:40px}
@media(max-width:650px){.task-issue-note .button{min-height:44px}}

/* File inputs stay with the conversation instead of inside settings. */
.chat-followup-tools{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-1) var(--space-2);min-width:0;margin:0}
.chat-followup-tools>.capability-control{flex:0 1 auto;min-width:0;margin:0}
.chat-followup-footer .button{min-height:40px}
.chat-followup-tools>[data-chat-file]{flex:none;min-height:40px}
.chat-followup-settings>summary::-webkit-details-marker{display:none}
@media(max-width:650px){.chat-followup-toolbar{grid-template-columns:minmax(0,1fr) auto}.chat-followup-tools{grid-column:1/-1;grid-row:1}.chat-followup-toolbar>.chat-followup-settings{grid-column:1;grid-row:2}.chat-followup-footer{grid-column:2;grid-row:2}.chat-followup-toolbar>[data-chat-files],.chat-followup-toolbar:has(.chat-followup-settings[open])>[data-chat-files]{grid-row:3}.chat-followup-toolbar>.chat-followup-settings[open]{grid-column:1/-1;grid-row:3}.chat-followup-toolbar:has(.chat-followup-settings[open])>[data-chat-files]{grid-row:4}.chat-followup .button,.chat-followup-footer .button,.chat-followup-settings>summary{min-height:44px}.chat-followup-settings>summary>span{display:none}.chat-followup-settings .chat-controls select{min-height:44px;height:44px}}
.chat-file-list>.chat-file-chip{display:inline-flex;align-items:center;gap:var(--space-2);max-width:100%;min-width:0;padding:var(--space-1) var(--space-2);border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--secondary)}
.chat-file-chip>span{min-width:0;overflow-wrap:anywhere}.chat-file-chip>.icon{flex:none}.chat-file-chip>.icon-button{flex:none;min-width:28px;min-height:28px;padding:4px}
.chat-followup.chat-input-drag{border-color:var(--blue);background:var(--blue-soft)}
@media(max-width:650px){.chat-followup-tools>[data-chat-file],.chat-file-chip>.icon-button{min-height:44px}.chat-file-chip>.icon-button{min-width:44px}}

/* Shared control feedback stays visible without changing control geometry. */
/* Chat drafts use the text caret for focus; keep their frame unchanged. */
#workspace :is(button,a,input,select,textarea):not(:where(.pc-composer textarea,.task-chat-composer textarea,.chat-composer textarea,.chat-followup textarea,.ma-input-box textarea,.chat-compose textarea,.overview-collaboration-form textarea)):focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#workspace :is(.pc-composer,.task-chat-composer,.chat-composer,.chat-followup,.ma-input-box,.chat-compose,.overview-collaboration-form) textarea:focus{outline:none;box-shadow:none}
#workspace .overview-collaboration-form textarea{border-color:var(--line)}
#workspace .heading-actions>.button,#settings-shell .config-module-actions>.button{min-height:40px}
@media(max-width:760px){#workspace .heading-actions>.button,#settings-shell .config-module-actions>.button{min-height:44px}}
