/* Local completion feedback: preserves ERP layout and the AI task palette. */
.ai-feedback-row-footer{display:flex;align-items:baseline;justify-content:space-between;gap:8px;width:100%;min-width:0;margin-top:4px}.ai-feedback-row-footer>.ai-task-meta{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-feedback-row-duration{display:block;flex-shrink:0;white-space:nowrap;margin-top:0;text-align:right;font-size:11px!important;line-height:17px!important;font-weight:400!important;font-variant-numeric:tabular-nums;color:var(--task-muted,#59766c)}
.ai-feedback-toast,.ai-feedback-history{position:fixed;z-index:4500;top:64px;right:22px;width:370px;max-width:calc(100vw - 28px);background:#fff;color:#25493b;border:1px solid #b8d5c2;border-radius:10px;box-shadow:0 14px 40px #1d443926;font:13px/1.6 "PingFang SC","Microsoft YaHei",system-ui,sans-serif;overflow:hidden}
.ai-feedback-toast *,.ai-feedback-draft-result *,.ai-feedback-history *{box-sizing:border-box}
.ai-feedback-toast-heading{display:flex;align-items:center;gap:10px;padding:15px 16px 3px}.ai-feedback-toast-heading strong{font-size:14px;color:inherit;font-weight:650;flex:1}.ai-feedback-symbol{display:grid;place-items:center;width:25px;height:25px;flex-shrink:0;border-radius:50%;background:#def0e4;color:#237c4d;font-size:15px}.ai-feedback-close{border:0;background:transparent;color:#688779;font:20px/1 system-ui,sans-serif;cursor:pointer;padding:5px;margin-left:auto;min-width:28px;min-height:28px}.ai-feedback-toast-body{padding:3px 18px 12px 51px}.ai-feedback-toast-body p{margin:5px 0;font:12px/1.65 "PingFang SC","Microsoft YaHei",system-ui,sans-serif}.ai-feedback-source{color:#456e58}.ai-feedback-code{font-variant-numeric:tabular-nums;color:#305e46;overflow-wrap:anywhere}.ai-feedback-description{color:#5a7a65}.ai-feedback-duration{display:block;font-size:11px;color:#657e6f;font-variant-numeric:tabular-nums}.ai-feedback-toast-actions{display:flex;gap:11px;padding:11px 17px 12px 51px;border-top:1px solid #e2ece5}.ai-feedback-button{border:1px solid #bcd4c4;background:#fff;color:#286746;cursor:pointer;padding:6px 10px;border-radius:5px;font:12px/1.45 "PingFang SC","Microsoft YaHei",system-ui,sans-serif;white-space:nowrap}.ai-feedback-button:hover{background:#eff7f1}.ai-feedback-toast-actions .ai-feedback-button{padding:1px 0;background:none;border:0}.ai-feedback-toast.is-warning{border-color:#dfc69d;color:#805c22}.ai-feedback-toast.is-warning .ai-feedback-symbol{background:#f5e9d2;color:#956c29}.ai-feedback-toast.is-warning .ai-feedback-source,.ai-feedback-toast.is-warning .ai-feedback-description{color:#80683e}.ai-feedback-toast.is-warning .ai-feedback-button{color:#89652c}
.ai-feedback-draft-result{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:12px 0 16px;padding:15px 18px;border:1px solid #cbded7;border-radius:8px;background:#f1f6f4;color:#365e4e;font:13px/1.6 "PingFang SC","Microsoft YaHei",system-ui,sans-serif}.ai-feedback-draft-result[hidden]{display:none}.ai-feedback-draft-result strong{font-size:14px;font-weight:650}.ai-feedback-draft-result p{margin:4px 0;font-size:12px;overflow-wrap:anywhere}.ai-feedback-draft-result.is-saved{background:#eff8f1;border-color:#c4dfcc;color:#26663d}.ai-feedback-draft-result.is-warning{background:#fcf6e9;border-color:#e4d0a7;color:#85602a}.ai-feedback-draft-controls{display:flex;gap:8px;flex-shrink:0}.ai-feedback-history-trigger{margin:4px 9px 4px auto;align-self:center;flex-shrink:0;border:1px solid #c2d5ca;border-radius:5px;padding:5px 10px;background:#f3f8f4;color:#416a50;font:12px/1.5 "PingFang SC","Microsoft YaHei",system-ui,sans-serif;cursor:pointer;position:sticky;right:8px}.ai-feedback-history{padding:16px;top:53px}.ai-feedback-history>strong{display:inline-block;font-size:14px;margin-bottom:10px}.ai-feedback-history>.ai-feedback-close{position:absolute;right:9px;top:9px}.ai-feedback-history>p{font-size:12px;color:#657c6a}.ai-feedback-history-item{display:block;width:100%;background:transparent;color:#45654f;text-align:left;border:0;border-top:1px solid #e0eae1;padding:12px 0;font:12px/1.6 "PingFang SC","Microsoft YaHei",system-ui,sans-serif;cursor:pointer}.ai-feedback-history-item:hover{color:#1c693d}.ai-feedback-button:focus-visible,.ai-feedback-close:focus-visible,.ai-feedback-history-trigger:focus-visible,.ai-feedback-history-item:focus-visible{outline:2px solid #338566;outline-offset:3px}
@media(max-width:650px){.ai-feedback-toast,.ai-feedback-history{top:61px;right:12px;width:calc(100vw - 24px)}.ai-feedback-draft-result{align-items:flex-start;flex-direction:column;gap:11px;padding:13px 14px}.ai-feedback-draft-controls{flex-wrap:wrap}.ai-feedback-history-trigger{font-size:11px;padding:5px 7px}.ai-feedback-row-duration{font-size:10px!important}}
.ai-feedback-history{max-height:calc(100vh - 100px);overflow-y:auto;overscroll-behavior:contain}.ai-feedback-history-detail{padding:0 0 12px;color:#526a5a;font-size:12px;line-height:1.6}.ai-feedback-history-detail p{margin:4px 0;overflow-wrap:anywhere}.ai-feedback-history-detail .ai-feedback-history-error{color:#976b28}.ai-feedback-history-entry>.ai-feedback-history-item{border-top:1px solid #e0eae1}.ai-feedback-history-entry:first-of-type>.ai-feedback-history-item{margin-top:4px}

.ai-feedback-toast.is-completed{border-color:#237c4d}
.ai-feedback-toast.is-completed .ai-feedback-toast-heading{background:#eff8f1;padding-bottom:12px}
.ai-feedback-toast.is-completed .ai-feedback-toast-heading strong{color:#26663d;font-size:17px;font-weight:700}
.ai-feedback-toast.is-completed .ai-feedback-symbol{background:#237c4d;color:#fff}
.ai-feedback-toast.is-completed .ai-feedback-description{color:#26663d;font-weight:650}
