.pm-direct-chat-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid #cbdcf3;border-radius:10px;background:#edf5ff;color:#2358a0;white-space:nowrap;font:650 13px/1.3 system-ui,sans-serif}
.pm-direct-chat-button>span:first-child{display:grid;place-items:center}
.pm-direct-chat-button svg{width:19px;height:19px}
.pm-chat-badge{min-width:18px;padding:2px 4px;border-radius:20px;background:#225aa9;color:white;font-size:10px}
.pm-chat-badge[hidden],.pm-direct-chat [hidden]{display:none!important}
.pm-direct-chat{box-sizing:border-box;width:min(580px,calc(100% - 20px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #d7e3f3;border-radius:16px;background:white;color:#203858;font:14px/1.5 system-ui,sans-serif;box-shadow:0 18px 60px #10284344}
.pm-direct-chat::backdrop{background:#15294e88}
.pm-chat-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #e3ebf7}
.pm-chat-head h2{margin:0;font-size:19px}
.pm-chat-head p{margin:3px 0 0;color:#526d8b;overflow-wrap:anywhere}
.pm-chat-close,.pm-chat-older{border:1px solid #d8e4f4;background:#eff5fe;color:#22558f;border-radius:8px;padding:8px 12px}
.pm-chat-close{font-size:19px;min-width:40px;min-height:40px}
.pm-chat-log{height:min(380px,48dvh);overflow:auto;overscroll-behavior:contain;padding:14px;background:#f4f7fc}
.pm-chat-messages{display:grid;gap:9px}
.pm-chat-message{justify-self:start;max-width:86%;background:white;border:1px solid #dce6f1;border-radius:11px;padding:8px 11px;min-width:0;overflow-wrap:anywhere}
.pm-chat-message.is-mine{justify-self:end;background:#e6f0ff}
.pm-chat-message p{margin:3px 0 0;white-space:pre-wrap}
.pm-chat-message small,.pm-chat-empty,.pm-chat-status{color:#4f6987}
.pm-chat-status{padding:0 14px;font-size:12px}
.pm-chat-status:empty{display:none}
.pm-chat-older{margin:0 0 12px}
.pm-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px;border-top:1px solid #e3ebf7}
.pm-chat-compose textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:48px;max-height:150px;border:1px solid #ccdaeb;border-radius:9px;padding:8px;font:inherit}
.pm-chat-send{min-height:44px;border:0;border-radius:9px;background:#235db8;color:white;padding:8px 14px;font-weight:700}

.pm-account-chat-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pm-account-chat-controls .pm-direct-chat-button{background:white;color:#234c84;border-color:white}
#pmAdminPanel .pm-account-card-actions .pm-direct-chat-button{background:#edf5ff;color:#2358a0}
@media(max-width:540px){#pmAdminPanel .pm-account-card-actions .pm-direct-chat-button{flex:1 1 38%}}
.pm-chat-days{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:8px 14px;border-bottom:1px solid #dce6f1}
.pm-chat-days button{margin:0;min-height:40px}
.pm-chat-days button[aria-pressed=true]{background:#235db8;color:#fff}
.pm-chat-days label{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:12px;color:#405d7d}
.pm-chat-days input{max-width:100%;min-height:40px;padding:5px 8px;border:1px solid #ccdaeb;border-radius:8px;background:#fff;color:#203858}
