/* Workbench additions: richer task panel, explicit summaries and package state. */
.task-modal{width:min(1240px,calc(100vw - 36px));max-height:calc(100vh - 34px)}
.task-head-actions{display:flex;align-items:center;gap:16px}
.task-save-state{font-size:11px;color:#8d92a5;font-weight:600}
.task-scroll{padding:22px 28px 8px}
.task-layout{grid-template-columns:minmax(0,1.35fr) minmax(300px,.72fr);gap:24px}
.task-side{min-width:0;display:flex;flex-direction:column;gap:14px}
.task-selected{position:static}
.task-style-rich{gap:7px;flex-wrap:wrap}
.task-style-name{font-size:12px;flex:1;min-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-role-select{max-width:112px;border:1px solid #e1e2ec;border-radius:6px;background:#fff;color:#656a7d;font-size:10px;padding:4px 5px}
.tiny-warning{font-style:normal;color:#c56c35;font-size:10px;white-space:nowrap}
.task-role-select:focus{outline:2px solid #c7c3ff;outline-offset:1px}
.task-summary{border:1px solid #e8e8f1;border-radius:12px;padding:15px 16px;background:#fff;font-size:11px;color:#626779}
.summary-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.summary-head b{font-size:14px;color:#363a4c}.summary-head span{font-size:10px;color:#969aab;white-space:nowrap}
.summary-kv{display:grid;grid-template-columns:64px 1fr;gap:6px 8px;margin:0 0 10px}.summary-kv dt{color:#989cad}.summary-kv dd{margin:0;overflow-wrap:anywhere;line-height:1.55}.summary-kv dd b{color:#625bda}
.summary-warnings{border-top:1px solid #f0f1f5;padding-top:8px;margin-bottom:8px}.summary-warnings p{margin:4px 0;color:#a2682d;line-height:1.55}.summary-warnings .ok-line{color:#278877}
.summary-missing{border-top:1px solid #f0f1f5;padding-top:8px;color:#8e6470;line-height:1.6}.summary-missing b{color:#b05a57}.summary-missing .ok-line{color:#278877}
.task-package-box{border:1px solid #e8e8f1;border-radius:12px;padding:12px 14px;background:#fafaff}.task-package-box .field{margin:0 0 7px}.task-package-box small{display:block;color:#969aab;font-size:10px;line-height:1.6}
.task-prompt-preview pre{max-height:260px;font-size:11px}
.task-bottom-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.task-bottom-actions .ghost-btn,.task-bottom-actions .primary-btn{padding:9px 11px;font-size:11px}
.task-bottom-actions .primary-btn{min-width:145px}
.task-bottom-actions .primary-btn:disabled{opacity:.6;cursor:wait}
.workflow-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e9e9f2;border:1px solid #e9e9f2;border-radius:12px;overflow:hidden;margin:0 0 48px}
.workflow-strip>div{background:#fff;padding:14px 16px;min-width:0}.workflow-strip b{font-size:10px;color:#706ae5;letter-spacing:1px;margin-right:8px}.workflow-strip span{font-size:13px;font-weight:750;color:#3f4356}.workflow-strip small{display:block;font-size:10px;color:#9b9faf;margin-top:4px}
.case-hero-link{text-decoration:none}.case-link{display:flex;flex-direction:column;gap:3px;margin-top:15px;padding:11px 12px;border:1px solid #e3e2f4;border-radius:9px;background:#faf9ff;text-decoration:none;color:#646079}.case-link span{font-size:10px;letter-spacing:1px;color:#a09cab}.case-link b{font-size:13px;color:#5f59c8}.case-link:hover{border-color:#aaa4ef}
.example-download{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-30px 0 42px;font-size:12px;color:#8e93a5}.example-download a{color:#5f59c8;font-weight:750;text-decoration:none;border-bottom:1px solid #c9c5f2;padding-bottom:2px}.example-download a:hover{color:#4039b8}.example-download span{font-size:11px;color:#9da1b1}
.card-english{font-size:10px;color:#9b9faf;line-height:1.4;margin:-2px 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer-english{font-size:12px;color:#9298aa;margin:-4px 0 8px}.drawer-zoom{position:absolute;right:12px;bottom:12px;z-index:2;border:1px solid #ffffff50;background:#10172ca8;backdrop-filter:blur(8px);color:#fff;border-radius:7px;padding:7px 9px;font-size:11px}.drawer-zoom:hover{background:#10172ce8}
.warning-inline{display:block;margin:12px 0;line-height:1.65}.sha-cell{font-family:ui-monospace,Consolas,monospace;font-size:10px;word-break:break-all}
.task-small em{font-style:normal}.task-status{font-size:11px}
@media(max-width:1060px){.task-layout{grid-template-columns:1fr}.task-side{order:-1}.task-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.task-summary .summary-head,.task-summary .summary-warnings,.task-summary .summary-missing{grid-column:1/-1}.task-modal{width:calc(100vw - 20px)}}
@media(max-width:760px){.workflow-strip{grid-template-columns:1fr 1fr;margin-bottom:28px}.workflow-strip>div{padding:11px 12px}.workflow-strip small{display:none}.task-summary{display:block}.task-head-actions .task-save-state{display:none}.task-bottom-actions{width:100%;justify-content:stretch}.task-bottom-actions button{flex:1;min-width:0;padding:10px 7px;font-size:10px}.task-bottom-actions .primary-btn{min-width:0}.task-scroll{padding:13px}.task-package-box{padding:10px}.task-style-rich{gap:5px}.task-role-select{max-width:96px}.task-prompt-preview pre{max-height:190px}}
@media(max-width:430px){.workflow-strip{grid-template-columns:1fr}.task-bottom-actions{display:grid;grid-template-columns:1fr 1fr}.task-bottom-actions .primary-btn{grid-column:1/-1}.summary-kv{grid-template-columns:56px 1fr}.task-head{padding:12px 14px}.task-head h2{font-size:19px}}
