.patient-suggestions-wrap{position:relative}
.patient-suggestions{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:min(260px,40dvh);overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #a9bec5;border-radius:10px;box-shadow:0 8px 24px #163d4b26;padding:4px}
.patient-suggestions[hidden]{display:none}
.patient-suggestions button{display:block;width:100%;min-height:44px;padding:10px;text-align:left;background:transparent;color:#20313a;border:0;border-radius:6px;white-space:normal;overflow-wrap:anywhere;font:inherit;cursor:pointer}
.patient-suggestions button:hover,.patient-suggestions button[aria-selected="true"]{background:#e4f0f2}
.patient-suggestions-note{display:block;color:var(--muted,#5e6e78);padding:8px;font-size:13px}
.patient-suggestions button span,.patient-suggestions button small{display:block;margin-top:4px}
.patient-suggestions button small{color:#5e6e78}
.patient-match-action{font-weight:600;color:#146671}
.patient-choice{font-size:13px;line-height:1.4;display:grid;gap:6px;color:#31555e}
.patient-choice:empty{display:none}
.patient-choice .btn{justify-self:start;font-size:12px;padding:4px 8px}
.patient-suggestions{max-height:min(420px,55dvh)}
.call-message-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;border:1px solid #bacbd1;border-radius:16px;background:#fff;color:var(--text,#202c33);padding:20px;overflow-y:auto;box-shadow:0 20px 70px #102d4660}
.call-message-dialog::backdrop{background:#102d4670}
.call-message-dialog header{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:12px}
.call-message-dialog h2{font-size:20px;margin:0}
.call-message-dialog label{display:grid;gap:8px;font-weight:600}
.call-message-dialog textarea{box-sizing:border-box;width:100%;min-height:140px;padding:12px;font:inherit;font-size:16px;border:1px solid #a9bec5;border-radius:10px;resize:vertical}
.call-message-dialog .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px;flex-wrap:wrap}
.call-message-dialog .btn{min-height:44px}
.call-message-dialog [role="alert"]{color:#a12b2b;white-space:pre-wrap}
.call-message-button{margin-top:10px;min-height:40px}
@media(max-width:540px){.call-message-dialog{padding:14px}.call-message-dialog .actions .btn{flex:1}}

.call-history summary{cursor:pointer;font-weight:600;padding:12px 0}
.call-history>div{display:grid;gap:8px}
.call-history button{text-align:left;white-space:normal;min-height:44px}

.call-message-history [data-history]{max-height:30dvh;min-height:60px;overflow:auto;overscroll-behavior:contain}.call-message-history article{background:#f0f4f5;border-radius:8px;padding:8px;margin:6px 0}.call-message-history article.mine{background:#e1f0ed;margin-left:18px}.call-message-history p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.call-message-history h3{font-size:16px;margin:12px 0 6px}.call-message-history small{color:#536871}.call-message-dialog textarea{min-height:90px}
