/* Header and directory; conversation dialogs use shared/admin-chat.css. */
.operator-chat-entry[hidden] { display: none !important; }
.operator-chat-entry { display: flex; flex: 0 0 auto; align-items: center; margin-right: auto; }
.operator-chat-trigger { display: flex; gap: 10px; align-items: center; min-height: 46px; padding: 6px 12px; border: 1px solid #454545; border-radius: 12px; background: #232323; color: #fff; cursor: pointer; }
.operator-chat-trigger > i { color: #ff781b; font-size: 22px; }
.operator-chat-trigger > span { display: grid; text-align: left; font-size: 14px; font-weight: 800; line-height: 1.2; }
.operator-chat-trigger small { color: #dedede; font-size: 10px; font-weight: 500; }
.operator-chat-trigger b { min-width: 22px; padding: 4px; border-radius: 999px; background: #ff6508; font-size: 11px; line-height: 1; }
.operator-chat-trigger b[hidden] { display: none; }
.operator-chat-selector { position: fixed; z-index: 12100; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; box-sizing: border-box; padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: transparent; overscroll-behavior: contain; }
.operator-chat-selector[open] { display: grid; place-items: center; }
.operator-chat-selector::backdrop { background: rgb(15 23 42 / .64); }
.operator-chat-directory { display: flex; flex-direction: column; width: min(620px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 0; overflow: hidden; border-radius: 24px; background: #fff; color: #15253b; box-shadow: 0 24px 80px rgb(0 0 0 / .3); }
.operator-chat-directory > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 10px; }
.operator-chat-directory header small { font-size: 10px; font-weight: 800; letter-spacing: .07em; color: #b84c00; }
.operator-chat-directory h2 { margin: 5px 0 0; font-size: 25px; font-weight: 800; }
.operator-chat-directory > p { margin: 0; padding: 0 22px 14px; font-size: 13px; line-height: 1.5; color: #52647a; }
.operator-chat-directory button { min-height: 44px; border: 1px solid #dae1e9; border-radius: 10px; background: #fff; color: #20354e; font: inherit; cursor: pointer; }
.operator-chat-directory button:disabled { opacity: .6; cursor: wait; }
.operator-chat-directory [data-close] { flex: 0 0 44px; width: 44px; }
.operator-chat-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 22px; }
.operator-chat-filters label { display: grid; flex: 1 1 140px; min-width: 0; gap: 5px; margin: 0; font-size: 12px; font-weight: 700; }
.operator-chat-filters .operator-chat-search { flex-basis: 100%; }
.operator-chat-filters :is(input, select) { min-height: 44px; min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 10px; color: #20354e; background: #fff; font-size: 16px; }
.operator-chat-search-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 22px; }
.operator-chat-search-actions p { margin: 0; font-size: 12px; color: #52647a; }
.operator-chat-search-actions button { flex: 0 0 auto; padding: 8px 12px; font-size: 12px; }
.operator-chat-contacts { overflow-y: auto; min-height: 100px; padding: 0 14px 12px; overscroll-behavior: contain; }
.operator-chat-contacts .operator-chat-contact { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px; margin-bottom: 6px; border-color: #e3e8ef; text-align: left; }
.operator-chat-contact:hover { background: #fff5ed; border-color: #ffc59f; }
.operator-chat-contact > span:nth-child(2) { display: grid; flex: 1; min-width: 0; gap: 3px; }
.operator-chat-contact strong { font-size: 14px; overflow-wrap: anywhere; }
.operator-chat-contact small { color: #52647a; font-size: 12px; overflow-wrap: anywhere; }
.operator-chat-avatar { display: grid; flex: 0 0 40px; height: 40px; place-items: center; color: #b34e0b; border-radius: 12px; background: #fff0e4; font-size: 19px; }
.operator-chat-contact b { padding: 4px 7px; border-radius: 999px; background: #ff6508; color: #fff; font-size: 12px; }
.operator-chat-empty { margin: 25px 10px; color: #52647a; font-size: 14px; text-align: center; }
.operator-chat-directory footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 22px; border-top: 1px solid #e3e8ef; font-size: 11px; color: #52647a; }
.operator-chat-directory footer button { padding: 8px 10px; font-size: 12px; }
.operator-chat-directory [hidden] { display: none !important; }
:is(.operator-chat-directory, .operator-chat-entry) :is(button, input, select):focus-visible { outline: 3px solid #2379ce; outline-offset: 2px; }
@media (max-width: 560px) { .operator-chat-trigger { gap: 7px; padding-inline: 8px; } .operator-chat-trigger small { display: none; } .operator-chat-directory { border-radius: 18px; } .operator-chat-directory > header { padding: 15px 16px 8px; } .operator-chat-directory > p, .operator-chat-filters { padding-inline: 16px; } .operator-chat-directory h2 { font-size: 23px; } }
@media (max-height: 500px) { .operator-chat-directory > p, .operator-chat-directory header small, .operator-chat-directory footer > span { display: none; } .operator-chat-directory > header { padding: 8px 16px; } .operator-chat-directory h2 { font-size: 20px; margin: 0; } .operator-chat-filters { flex-wrap: nowrap; padding-inline: 16px; } .operator-chat-filters .operator-chat-search { flex: 2 1 180px; } .operator-chat-filters label { flex: 1 1 100px; } .operator-chat-search-actions { padding: 4px 16px; } .operator-chat-directory footer { padding: 6px 16px; } }
