.agent-operation {margin:18px 0 2px;border:1px solid var(--line,#dce3ee);border-radius:12px;padding:16px;background:#fff;color:var(--text,#24334c);font-size:14px;line-height:1.5}
.agent-operation-head {display:flex;gap:12px;align-items:center;justify-content:space-between}
.agent-operation-head>span {font-size:12px;color:var(--muted,#78869d);white-space:nowrap}
.agent-operation-search {display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.agent-operation-search input {min-width:140px;flex:1;width:0;font-size:13px}
.agent-operation-search button {flex:none}
.agent-operation .agent-operation-hint {font-size:13px;color:var(--muted,#78869d);margin:12px 0 8px}
.agent-operation-options {display:grid;gap:6px}
.agent-operation-option {display:flex;text-align:left;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;background:#f6f8fb;width:100%;border:1px solid transparent;border-radius:8px}
.agent-operation-option:hover {border-color:#b6c8f9;background:#f0f4ff}
.agent-operation-option>span:first-child {min-width:0}
.agent-operation-option strong {font-weight:500;overflow-wrap:anywhere}
.agent-operation-option small {display:block;font-size:12px;color:var(--muted,#78869d);margin-top:3px;overflow-wrap:anywhere}
.agent-operation-option>span:last-child {color:#265bdc;font-size:13px;white-space:nowrap}
.agent-operation>.linkbutton {font-size:12px;margin-top:10px}
.agent-operation .agent-operation-error {color:#a33731}
.agent-operation.is-done {border-left:3px solid #3b9473}
.agent-operation.is-done p {margin:10px 0}
.agent-operation.is-done .agent-operation-head>span {color:#227354}
@media(max-width:680px){.agent-operation{padding:12px}.agent-operation-search input{flex-basis:100%;width:100%}.agent-operation-head{align-items:flex-start}}
.agent-draft-object{font-weight:500;margin:10px 0}
.agent-draft-values{margin:12px 0;display:grid;gap:6px}
.agent-draft-values>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px}
.agent-draft-values dt{color:var(--muted);font-size:13px}
.agent-draft-values dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:100px;overflow:auto}
.agent-draft-missing{padding-left:20px;color:#815818}
.agent-draft-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.agent-draft-actions-commission:empty{display:none}
.agent-draft-focus{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;color:#49628f;font-size:13px}
.agent-draft-focus button{font-size:12px;border:0;padding:4px 6px;background:transparent;color:var(--muted)}
.agent-context-details{border-top:1px solid var(--line);padding-top:16px;margin-top:20px;font-size:12px;color:var(--muted)}
.agent-discard-confirm{padding:12px;background:#fff7e9;border-radius:8px;font-size:13px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.agent-draft-review .lead-agent-context{margin-bottom:16px}
.agent-draft-review .lead-agent-review{margin-top:0}
.agent-draft-review .lead-agent-chat{display:none}
.agent-draft-review footer{flex-wrap:wrap}
@media(max-width:700px){.agent-draft-values>div{grid-template-columns:80px minmax(0,1fr)}.agent-draft-focus{align-items:flex-start}}

/* Mount the same native draft in the assistant reply, without a second conversation. */
.agent-inline-form{padding:0!important;min-width:0}
.agent-inline-form [hidden]{display:none!important}
.agent-inline-form .lead-agent-context,.agent-inline-form .lead-edit-composer,
.agent-inline-form .lead-agent-thread>.lead-agent-message:not(.lead-agent-proposal),
.agent-inline-form .lead-agent-proposal>small{display:none}
.agent-inline-form .lead-agent-thread{display:block;padding:0;max-height:none;overflow:visible}
.agent-inline-form .lead-agent-proposal{padding:0;border:0;border-radius:0;background:transparent}
.agent-inline-form .lead-agent-review{padding:0!important;margin:12px 0!important;border:0}
.agent-inline-form .lead-agent-object{display:none}
.agent-inline-form .lead-agent-fields{padding-top:14px}
.agent-inline-form>footer{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:14px}
.agent-inline-form>footer>button:not(.primary){display:none}
.agent-inline-form .ai-editor-actions{display:none}
.agent-inline-form .crm-agent-choices{margin-top:10px}
.agent-inline-form .lead-agent-diff-scroll,.agent-inline-form .case-agent-table,.agent-inline-form .work-agent-review{max-height:none;overflow:auto}
.agent-draft-before{color:var(--muted)}
.agent-inline-form .intake-savebar{position:static;background:transparent}
.agent-inline-form .lead-agent-fields .grid{grid-template-columns:minmax(0,1fr)}
.agent-inline-form .lead-agent-fields aside{display:none}
.agent-plan{margin:16px 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#f7f9fd;font-size:13px}
.agent-plan ol{margin:12px 0 0;padding-left:22px}
.agent-plan li{padding:5px 0 8px 4px}
.agent-plan li b{float:right;font-size:12px;font-weight:400;color:var(--muted);margin-left:12px}
.agent-plan li small{display:block;color:var(--muted);clear:both;overflow-wrap:anywhere;margin-top:3px}
.agent-plan-reuse{padding:12px;background:#fff8ed;border-radius:8px;margin:12px 0}
.agent-plan-reuse p{margin:0 0 8px;font-size:13px}
.agent-plan-reuse button{margin:4px 6px 0 0}

.customer-duplicate-row{padding:10px 0;border-bottom:1px solid var(--line);margin-bottom:10px}
.customer-duplicate-row small{display:block;color:var(--muted);overflow-wrap:anywhere}
.customer-duplicate-check{display:flex;align-items:flex-start;gap:8px;margin:12px 0}
.customer-duplicate-check input{width:auto;flex:none;margin-top:4px}
.agent-source-stale{margin:10px 0 14px;padding:10px 12px;border:1px solid #f0d7a8;border-radius:8px;background:#fff9ec;color:#805514;font-size:13px;line-height:1.6}
