.contact-history-link{font:inherit;color:inherit;background:none;border:0;padding:0;text-align:inherit;cursor:pointer;border-radius:2px}
.contact-history-link:hover{background:none;color:var(--link);text-decoration:underline;text-underline-offset:3px}
.contact-history-link:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.contact-history-dialog{width:min(800px,calc(100vw - 32px));padding:25px 28px}
.contact-history-dialog .history-summary{background:var(--workflow-soft);border-radius:7px;padding:15px 17px;margin-bottom:17px}
.contact-history-dialog .history-numbers{display:flex;flex-wrap:wrap;gap:6px 18px;margin:9px 0 0;font-size:14px}
.contact-history-dialog .history-numbers .phone{font-size:14px}
.contact-history-dialog .history-meta{font-size:14px;color:var(--workflow-muted);margin:12px 0 0}
.contact-history-dialog .history-matches{width:100%;font-size:15px;margin:10px 0}
.contact-history-dialog .history-tabs{display:flex;gap:5px;border-bottom:1px solid var(--workflow-border);margin:18px 0;overflow:auto}
.contact-history-dialog .history-tabs button{border:0;border-radius:0;background:transparent;color:var(--workflow-muted);padding:9px 12px;font-size:14px}
.contact-history-dialog .history-tabs button[aria-selected=true]{border-bottom:2px solid var(--red);color:var(--link)}
.contact-history-dialog .history-list{display:grid;gap:13px}
.contact-history-dialog .history-event{border:1px solid var(--workflow-border);border-radius:7px;padding:14px 16px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.contact-history-dialog .history-event-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:6px}
.contact-history-dialog .history-event-head strong{display:flex;align-items:center;gap:8px;font-size:15px}
.contact-history-dialog .history-event-head svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;flex-shrink:0}
.contact-history-dialog .history-event time,.contact-history-dialog .history-sub{font-size:14px;color:var(--workflow-muted)}
.contact-history-dialog .history-sub{margin:5px 0}
.contact-history-dialog .history-note{padding:10px 12px;background:var(--workflow-soft);border-radius:5px;margin-top:10px}
.contact-history-dialog .history-note strong{font-size:14px}
.contact-history-dialog .history-note p{white-space:pre-wrap;margin:4px 0 0;line-height:1.6}
.contact-history-dialog .history-task{border-left:3px solid var(--workflow-border);padding-left:12px;margin-top:12px}
.contact-history-dialog .history-task p{white-space:pre-wrap;margin:4px 0}
.contact-history-dialog .history-more{display:block;margin:18px auto 0;font-size:14px}
.history-error{font-size:14px;color:var(--link);margin:12px 0}
@media(max-width:650px){.contact-history-dialog{padding:20px}.contact-history-dialog .history-event-head{flex-wrap:wrap}.contact-history-dialog .history-tabs button{padding:9px}.contact-history-dialog .history-event{padding:12px}}
