.callback-open{float:right;margin-left:16px;background:#2563eb;color:#fff;border:0;border-radius:7px;padding:8px 18px;cursor:pointer;font-size:15px}.callback-dialog{width:min(900px,94vw);max-height:92vh;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:12px;padding:24px;color:#0f172a;background:#fff;overflow:auto}.callback-dialog::backdrop{background:rgba(15,23,42,.48)}.callback-heading,.callback-actions,.callback-attempt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.callback-heading h2{margin:0}.callback-dialog label{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-weight:500}.callback-dialog input[type=tel],.callback-dialog select,.callback-dialog textarea{box-sizing:border-box;width:100%;font:inherit;padding:9px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#0f172a}.callback-dialog textarea{resize:vertical;min-height:140px}.callback-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.callback-dialog fieldset{border:1px solid #cbd5e1;border-radius:7px;margin:16px 0}.callback-manuals{max-height:200px;overflow:auto}.callback-dialog .callback-manuals label,.callback-dialog .callback-check{flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:8px;text-align:left;font-weight:400;line-height:20px}.callback-dialog .callback-manuals input[type=checkbox],.callback-dialog .callback-check input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;margin:2px 0 0;padding:0}.callback-dialog .callback-manuals label>span,.callback-dialog .callback-check>span{flex:1;min-width:0;overflow-wrap:anywhere}.callback-hint{font-size:13px;color:#475569;line-height:1.6}.callback-dialog button{padding:9px 15px;border:1px solid #cbd5e1;background:#f8fafc;color:#0f172a;border-radius:7px;cursor:pointer}.callback-dialog button.primary{background:#2563eb;color:white;border-color:#2563eb}.callback-dialog button:disabled{opacity:.5;cursor:default}.callback-attempt{border-top:1px solid #e2e8f0;padding:16px 0;margin-top:14px}.callback-attempt-head span{font-size:13px;color:#64748b}.callback-pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.callback-error{color:#b91c1c}.callback-dialog [data-message]:empty{display:none}@media(max-width:650px){.callback-fields{grid-template-columns:1fr;gap:0}.callback-dialog{padding:16px}}

/* Callback dialog: compact header and inline selectors. */
.callback-dialog[open]{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:12px;row-gap:0;align-items:center}
.callback-dialog .callback-heading,.callback-dialog>[data-content]{display:contents}
.callback-dialog .callback-heading>h2{grid-column:1;grid-row:1;white-space:nowrap}
.callback-dialog .callback-heading>[data-close]{grid-column:3;grid-row:1;white-space:nowrap}
.callback-dialog>[data-message],.callback-dialog>[data-content]>*{grid-column:1/-1;min-width:0}
.callback-dialog>[data-content]>p:first-child{grid-column:2;grid-row:1;margin:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.callback-dialog>[data-content]>label:first-of-type{flex-direction:row;align-items:center;gap:8px;white-space:nowrap;margin:8px 0 4px}
.callback-dialog>[data-content]>label:first-of-type>select{width:auto;min-width:12ch;max-width:min(40ch,70%);margin:0;padding:6px 8px;height:32px}
.callback-dialog .callback-fields{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:6px 0}
.callback-dialog .callback-fields label{flex-direction:row;align-items:center;gap:6px;margin:0;white-space:nowrap}
.callback-dialog .callback-fields input[type=tel],.callback-dialog .callback-fields select{width:auto;max-width:22ch;margin:0;padding:6px 8px;height:32px}
.callback-dialog .callback-fields input[name=target]{width:17ch}
.callback-dialog .callback-fields select[name=line]{max-width:19ch}
.callback-dialog .callback-fields select[name=language]{max-width:16ch}

/* Follow-up conversations stay with their original call/work order. */
.phone-followup{flex:0 0 auto;width:100%;min-width:0;border-top:1px solid #bfdbfe;padding:14px 0 4px;margin-top:6px}
.phone-followup-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-bottom:8px;color:#1e40af;font-size:13px}
.phone-followup-heading>span{font-size:12px}.phone-followup-status{padding:3px 7px;border-radius:5px;background:#dbeafe}
.phone-followup-task{padding:8px 10px;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;margin-bottom:10px;color:#1e3a5f;font-size:13px}
.phone-followup-task small{display:block;margin-top:5px;color:#475569}.phone-followup-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:5px 0}
.phone-followup .call-row{margin:8px 0}.phone-followup .call-row.ai .call-bubble,.phone-followup .call-row.caller .call-bubble{background:#dbeafe;color:#0f172a}
.phone-followup .call-row.ai .call-bubble::before{border-left-color:#dbeafe}.phone-followup .call-row.caller .call-bubble::before{border-right-color:#dbeafe}
.phone-followup .call-play.playing{background:#2563eb;color:#fff}.phone-followup-speaker{font-size:11px;color:#475569}.phone-followup-result{color:#1e3a5f;font-size:13px}
