/* The chat of the coworkers (js/Common/chat.js) */
.zchat {
    --zc-ground: #EEF2F6;
    --zc-card: #FFFFFF;
    --zc-soft: #F3F6F9;
    --zc-hover: #E9EEF4;
    --zc-line: #E4E6EF;
    --zc-line-strong: #D5DAE3;
    --zc-text: #181C32;
    --zc-text2: #3F4254;
    --zc-muted: #5E6278;
    --zc-primary: #1173D4;
    --zc-primary-hover: #0D5FB0;
    --zc-primary-text: #0B5CAD;
    --zc-primary-soft: #E1F0FF;
    --zc-mine: #DCEBFC;
    --zc-mine-line: #C5DEF8;
    --zc-mine-quote: #CBE1F9;
    --zc-mention: #A33A00;
    --zc-danger: #B3123C;
    --zc-danger-soft: #FDE8EC;
    --zc-online: #1A8754;
    --zc-flash: #FFF1D6;
    --zc-wave: #94A9C2;
    position: relative;
    display: flex;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--zc-card);
    color: var(--zc-text);
    font-size: 13px;
    line-height: 1.6;
}

html[data-theme=dark] .zchat {
    --zc-ground: #151521;
    --zc-card: #1E1E2D;
    --zc-soft: #2B2B40;
    --zc-hover: #323248;
    --zc-line: #2B2B40;
    --zc-line-strong: #474761;
    --zc-text: #FFFFFF;
    --zc-text2: #CDCDDE;
    --zc-muted: #A1A5B7;
    --zc-primary: #1173D4;
    --zc-primary-hover: #2B8AE8;
    --zc-primary-text: #7DBBFA;
    --zc-primary-soft: #1B3550;
    --zc-mine: #1B3550;
    --zc-mine-line: #27496C;
    --zc-mine-quote: #27496C;
    --zc-mention: #FFB37A;
    --zc-danger: #FF8FA8;
    --zc-danger-soft: #4A1E2B;
    --zc-online: #34C47C;
    --zc-flash: #54431C;
    --zc-wave: #6C84A3;
}

.zchat *, .zchat *::before, .zchat *::after { box-sizing: border-box; }
.zchat button, .zchat input, .zchat textarea { font: inherit; color: inherit; }
.zchat a { color: var(--zc-primary-text); }

/* the page fills all the space under the header; its title is in the header */
.zc-page-host { height: var(--zc-page-height, calc(100vh - 65px)); min-height: 320px; overflow: hidden; }
body:has(.zc-page-host) #kt_footer { display: none; }
body:has(.zc-page-host) #kt_wrapper { padding-bottom: 0; }
body:has(.zc-page-host) #kt_content { padding: 0; }
.zchat[data-zchat=page]:not(.zc-single) .zc-list-title h2 { visibility: hidden; }
.zc-file-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .25); }
.zc-file-play svg { width: 44px; height: 44px; }

/* the drawer */
/* the theme moves a closed drawer out by 395px, which leaves a part of this wider one on the screen */
#kt_quick_contact.offcanvas { width: 420px; padding: 0; overflow: hidden; visibility: hidden; transition: right .3s ease, left .3s ease, visibility 0s linear .3s; }
#kt_quick_contact.offcanvas.offcanvas-on { visibility: visible; transition: right .3s ease, left .3s ease, visibility 0s; }
#kt_quick_contact .zchat { height: 100%; }

/* columns */
.zc-list-col { flex: 0 0 330px; width: 330px; display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--zc-line); background: var(--zc-card); }
.zc-thread-col { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; background: var(--zc-ground); }
.zc-side-col { flex: 0 0 310px; width: 310px; display: flex; flex-direction: column; min-height: 0; border-inline-start: 1px solid var(--zc-line); background: var(--zc-card); }

/* one column at a time: the drawer and small screens */
.zc-single .zc-list-col, .zc-single .zc-thread-col, .zc-single .zc-side-col { flex: 1 1 100%; width: 100%; border: 0; }
.zc-single:not(.zc-has-thread) .zc-thread-col { display: none; }
.zc-single.zc-has-thread .zc-list-col { display: none; }
.zc-single.zc-has-panel .zc-thread-col { display: none; }
.zchat .zc-thread-back { display: none; }
.zchat.zc-single .zc-thread-back { display: inline-flex; }

@media (max-width: 991.98px) {
    .zc-page-host { position: fixed; top: var(--zc-vt, 0px); left: 0; right: 0; bottom: auto; height: var(--zc-vh, 100dvh); min-height: 0; z-index: 1060; }
    html:has(.zc-page-host), html:has(.zc-page-host) body { height: 100%; overflow: hidden; overscroll-behavior: none; }
    .zc-keyboard .zc-composer { padding-bottom: 8px; }
    .zchat input, .zchat textarea { font-size: 16px; }
    .zc-icon-btn { width: 44px !important; height: 44px !important; }
    .zc-conv { min-height: 64px; }
}

/* controls */
.zc-icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 0; background: transparent; border-radius: 8px; color: var(--zc-muted); cursor: pointer; padding: 0; }
.zc-icon-btn:hover { background: var(--zc-hover); color: var(--zc-text); }
.zc-icon-btn.zc-on { color: var(--zc-primary-text); }
.zc-icon-btn.zc-danger:hover { background: var(--zc-danger-soft); color: var(--zc-danger); }
.zc-icon-btn svg { width: 18px; height: 18px; }
.zc-btn { border: 0; border-radius: 9px; padding: 7px 14px; cursor: pointer; font-weight: 500; background: var(--zc-soft); color: var(--zc-text); white-space: nowrap; }
.zc-btn:hover { background: var(--zc-hover); }
.zc-btn-primary { background: var(--zc-primary); color: #fff !important; }
.zc-btn-primary:hover { background: var(--zc-primary-hover); }
.zc-btn:disabled { opacity: .55; cursor: not-allowed; }
.zc-btn-danger { color: var(--zc-danger) !important; }
.zc-field { width: 100%; border: 1px solid var(--zc-line-strong); border-radius: 9px; padding: 7px 12px; background: var(--zc-card); color: var(--zc-text); }
.zc-field:focus, .zc-input:focus { outline: 2px solid var(--zc-primary); outline-offset: 1px; }
.zc-muted { color: var(--zc-muted); }
.zc-small { font-size: 12px; }
.zc-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* avatars */
.zc-avatar { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; overflow: hidden; width: 44px; height: 44px; font-size: 16px; }
.zc-avatar.zc-square { border-radius: 12px; background: var(--zc-soft); color: var(--zc-text2); }
.zc-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zc-avatar.zc-sm { width: 32px; height: 32px; font-size: 13px; }
.zc-avatar.zc-md { width: 38px; height: 38px; font-size: 14px; }
.zc-avatar.zc-lg { width: 72px; height: 72px; font-size: 26px; }
.zc-photo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.zc-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.zc-link-btn { border: 0; background: transparent; padding: 2px 0; color: var(--zc-primary-text); cursor: pointer; font-weight: 500; margin: 0; }
.zc-link-btn:hover { text-decoration: underline; }
.zc-link-btn.zc-danger-text { color: var(--zc-danger); }
.zc-avatar-wrap { position: relative; flex: 0 0 auto; display: inline-flex; }
.zc-online-dot { position: absolute; bottom: 0; inset-inline-start: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--zc-online); border: 2px solid var(--zc-card); }
.zc-c0 { background: #E1F0FF; color: #0B5CAD; }
.zc-c1 { background: #DFF6EA; color: #0E7A46; }
.zc-c2 { background: #FFF1D6; color: #8A5A00; }
.zc-c3 { background: #F1E6FF; color: #6A2BB8; }
.zc-c4 { background: #FFE6EC; color: #B3123C; }
.zc-c5 { background: #E0F5F5; color: #0A6E6E; }
.zc-name-c0 { color: #0B5CAD; } .zc-name-c1 { color: #0E7A46; } .zc-name-c2 { color: #8A5A00; }
.zc-name-c3 { color: #6A2BB8; } .zc-name-c4 { color: #B3123C; } .zc-name-c5 { color: #0A6E6E; }
html[data-theme=dark] .zc-name-c0 { color: #7DBBFA; } html[data-theme=dark] .zc-name-c1 { color: #5FD79B; } html[data-theme=dark] .zc-name-c2 { color: #E8BF6A; }
html[data-theme=dark] .zc-name-c3 { color: #C7A3F5; } html[data-theme=dark] .zc-name-c4 { color: #FF9CB4; } html[data-theme=dark] .zc-name-c5 { color: #6FD6D6; }

/* the list */
.zc-list-head { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 10px; }
.zc-list-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 32px; }
.zc-list-title h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--zc-text); flex: 1; min-width: 0; }
.zc-tabs { display: flex; gap: 6px; }
.zc-tab { border: 0; border-radius: 999px; padding: 4px 14px; background: var(--zc-soft); color: var(--zc-text2); cursor: pointer; }
.zc-tab.zc-active { background: var(--zc-primary); color: #fff; font-weight: 500; }
.zc-list-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 8px; }
.zc-conv { width: 100%; display: flex; gap: 10px; align-items: center; border: 0; background: transparent; text-align: start; cursor: pointer; padding: 9px 10px; border-radius: 10px; }
.zc-conv:hover { background: var(--zc-soft); }
.zc-conv.zc-active { background: var(--zc-primary-soft); }
.zc-conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zc-conv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.zc-conv-title { font-weight: 500; color: var(--zc-text); }
.zc-conv-time { flex: 0 0 auto; font-size: 11px; color: var(--zc-muted); }
.zc-conv-preview { font-size: 12px; color: var(--zc-muted); }
.zc-badges { flex: 0 0 auto; display: flex; gap: 4px; align-items: center; color: var(--zc-muted); }
.zc-badges svg { width: 13px; height: 13px; }
.zc-badge { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--zc-primary); color: #fff; font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.zc-badge.zc-muted-badge { background: #7E8299; }
.zc-badge.zc-mention-badge { background: #A33A00; font-weight: 700; padding: 0; }
.zc-section { font-size: 12px; font-weight: 500; color: var(--zc-muted); padding: 12px 10px 4px; }
.zc-empty { text-align: center; color: var(--zc-muted); padding: 32px 16px; }

/* until the data comes */
.zc-skeleton { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--zc-soft) 25%, var(--zc-hover) 50%, var(--zc-soft) 75%); background-size: 200% 100%; animation: zc-shimmer 1.4s linear infinite; }
.zc-skeleton-row { display: flex; gap: 10px; align-items: center; padding: 9px 10px; }
.zc-skeleton-row .zc-conv-main { gap: 7px; }
.zc-skeleton-avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; }
@keyframes zc-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .zc-skeleton { animation: none; } }

/* the banner of the notifications */
.zc-notify-banner { margin: 0 12px 8px; padding: 10px 12px; border-radius: 10px; background: var(--zc-primary-soft); color: var(--zc-text); font-size: 12px; }
.zc-notify-banner div { display: flex; gap: 6px; margin-top: 8px; }
.zc-notify-banner .zc-btn { padding: 4px 12px; font-size: 12px; }

/* the conversation */
.zc-thread-head { flex: 0 0 auto; min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--zc-card); border-bottom: 1px solid var(--zc-line); }
.zc-thread-info { flex: 1; min-width: 0; }
.zc-thread-title { font-weight: 700; color: var(--zc-text); }
.zc-thread-sub { font-size: 12px; color: var(--zc-muted); }
.zc-thread-sub.zc-live { color: var(--zc-online); }
.zc-placeholder { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--zc-muted); padding: 24px; }
.zc-pinned-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 5px 12px; background: var(--zc-card); border-bottom: 1px solid var(--zc-line); }
.zc-pinned-bar button.zc-pinned-open { flex: 1; min-width: 0; border: 0; border-inline-start: 3px solid var(--zc-primary); background: transparent; text-align: start; padding: 0 8px; cursor: pointer; }
.zc-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 18px 14px; overscroll-behavior: contain; }
.zc-sep { display: flex; justify-content: center; margin: 14px 0 8px; }
.zc-sep span { background: var(--zc-card); border: 1px solid var(--zc-line); border-radius: 999px; font-size: 11px; color: var(--zc-muted); padding: 2px 12px; }
.zc-unread-line { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 12px; font-weight: 500; color: var(--zc-primary-text); }
.zc-unread-line::before, .zc-unread-line::after { content: ""; flex: 1; height: 1px; background: var(--zc-primary); }
.zc-system { text-align: center; font-size: 12px; color: var(--zc-muted); margin: 10px 0; }

.zc-msg { display: flex; align-items: flex-end; gap: 6px; margin-top: 3px; border-radius: 12px; transition: background .3s; }
.zc-msg.zc-first { margin-top: 12px; }
.zc-msg.zc-mine { justify-content: flex-start; }
.zc-msg.zc-other { justify-content: flex-end; }
[dir=ltr] .zc-msg { flex-direction: row-reverse; }
.zc-msg.zc-flash { background: var(--zc-flash); }
.zc-bubble { max-width: min(64%, 620px); min-width: 80px; background: var(--zc-card); border: 1px solid var(--zc-line); border-radius: 14px; padding: 7px 11px 4px; word-break: break-word; }
.zc-mine .zc-bubble { background: var(--zc-mine); border-color: var(--zc-mine-line); }
.zc-single .zc-bubble { max-width: 82%; }
.zc-sender { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.zc-forwarded { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--zc-muted); margin-bottom: 3px; }
.zc-forwarded svg { width: 13px; height: 13px; }
.zc-quote { display: block; width: 100%; border: 0; border-inline-start: 3px solid var(--zc-primary); background: var(--zc-soft); border-radius: 6px; padding: 3px 8px; margin-bottom: 5px; text-align: start; cursor: pointer; }
.zc-mine .zc-quote { background: var(--zc-mine-quote); }
.zc-quote b { display: block; font-size: 11px; color: var(--zc-primary-text); }
.zc-quote span { display: block; font-size: 12px; color: var(--zc-text2); max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-text { white-space: pre-wrap; }
.zc-text .zc-mention { color: var(--zc-mention); font-weight: 700; }
.zc-text button.zc-mention { border: 0; background: transparent; padding: 0; cursor: pointer; display: inline; }
.zc-text button.zc-mention:hover { text-decoration: underline; }
.zc-mine .zc-text .zc-mention { color: var(--zc-primary-text); }
.zc-text mark { background: var(--zc-flash); color: inherit; padding: 0 1px; border-radius: 3px; }
.zc-file { display: flex; align-items: center; gap: 8px; border-radius: 8px; padding: 7px; margin: 3px 0; background: var(--zc-soft); text-decoration: none !important; color: var(--zc-text) !important; }
.zc-mine .zc-file { background: var(--zc-mine-quote); }
.zc-file-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px; background: var(--zc-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.zc-file-icon svg { width: 18px; height: 18px; }
.zc-image { position: relative; display: block; width: fit-content; border: 0; padding: 0; background: transparent; cursor: zoom-in; margin: 3px 0; border-radius: 8px; overflow: hidden; max-width: 280px; }
.zc-image img { display: block; max-width: 100%; max-height: 240px; }
/* a narrow bubble (the message actions beside it take room) shrinks the waveform, so the time stays inside */
.zc-voice { display: flex; align-items: center; gap: 8px; width: 240px; max-width: 100%; min-width: 0; margin: 3px 0; }
/* .zchat button gives buttons color: inherit, so the white icon needs the higher specificity */
.zchat .zc-voice-play, .zc-voice-play { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--zc-primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.zc-voice-play svg { width: 16px; height: 16px; }
.zc-wave { flex: 1; min-width: 0; height: 30px; cursor: pointer; }
.zc-voice input[type=range] { display: none; flex: 1; min-width: 0; accent-color: var(--zc-primary); direction: ltr; }
.zc-voice-plain .zc-wave { display: none; }
.zc-voice-plain input[type=range] { display: block; }
.zc-voice-time { flex: 0 0 auto; }
/* the play button is on the outer side of the bubble, so a received voice is the mirror of a sent one */
.zc-other .zc-voice { flex-direction: row-reverse; }
[dir=ltr] .zc-other .zc-voice { flex-direction: row; }
[dir=ltr] .zc-mine .zc-voice { flex-direction: row-reverse; }
.zc-meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 1px; font-size: 11px; color: var(--zc-muted); }
.zc-meta svg { width: 13px; height: 13px; }
.zc-ticks { border: 0; background: transparent; padding: 0; display: inline-flex; align-items: center; gap: 3px; color: var(--zc-muted); cursor: pointer; font-size: 11px; }
.zc-ticks.zc-seen { color: var(--zc-primary-text); }
.zc-ticks svg { width: 17px; }
.zc-acts { display: flex; align-self: center; background: var(--zc-card); border: 1px solid var(--zc-line); border-radius: 10px; padding: 2px; opacity: 0; transition: opacity .12s; }
.zc-acts .zc-icon-btn { width: 28px; height: 28px; }
.zc-acts .zc-icon-btn svg { width: 15px; height: 15px; }
.zc-msg:hover .zc-acts, .zc-msg:focus-within .zc-acts { opacity: 1; }
@media (hover: none) { .zc-acts { display: none; } }

.zc-jump { position: absolute; inset-inline-end: 18px; bottom: 92px; display: flex; align-items: center; gap: 6px; background: var(--zc-card); border: 1px solid var(--zc-line-strong); border-radius: 999px; padding: 6px 13px; cursor: pointer; box-shadow: 0 2px 8px rgba(24, 28, 50, .14); z-index: 3; }
.zc-jump svg { width: 14px; height: 14px; }

/* the composer */
.zc-composer { flex: 0 0 auto; position: relative; background: var(--zc-card); border-top: 1px solid var(--zc-line); padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.zc-context { display: flex; align-items: center; gap: 8px; background: var(--zc-soft); border-inline-start: 3px solid var(--zc-primary); border-radius: 6px; padding: 4px 10px; margin-bottom: 7px; }
.zc-context b { display: block; font-size: 12px; color: var(--zc-primary-text); }
.zc-context span { display: block; font-size: 12px; color: var(--zc-text2); }
.zc-compose-row { display: flex; align-items: flex-end; gap: 6px; }
.zc-input { flex: 1; min-width: 0; border: 0; resize: none; background: transparent; padding: 6px 4px; border-radius: 6px; line-height: 1.7; max-height: 130px; color: var(--zc-text); }
.zc-send { height: 34px; padding: 0 16px; }
.zc-mentions { position: absolute; bottom: calc(100% + 6px); inset-inline-start: 10px; width: 280px; max-width: calc(100% - 20px); max-height: 240px; overflow-y: auto; background: var(--zc-card); border: 1px solid var(--zc-line-strong); border-radius: 12px; box-shadow: 0 8px 24px rgba(24, 28, 50, .16); padding: 5px; z-index: 5; }
.zc-mentions .zc-conv { padding: 6px 8px; min-height: 0; }
.zc-mentions .zc-conv.zc-active { background: var(--zc-soft); }

/* the emoji panel: its common look is in emoji-picker.css (js/Common/EmojiPicker.js); here only its place in the composer */
.zchat .zc-emoji { position: absolute; bottom: calc(100% + 6px); inset-inline-start: 10px; width: 336px; max-width: calc(100% - 20px); z-index: 6; }
.zc-emoji-toggle.zc-on { background: var(--zc-primary-soft); }
.zc-single .zc-emoji { inset-inline: 8px; width: auto; max-width: none; }
.zc-single .zc-emoji-grid button { font-size: 26px; }
/* a message of only a few emoji */
.zc-text.zc-jumbo { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: 30px; line-height: 1.25; padding: 2px 0; letter-spacing: 2px; }
.zc-text.zc-jumbo-1 { font-size: 42px; }
.zc-recording { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 34px; color: var(--zc-danger); font-weight: 500; }
.zc-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--zc-danger); animation: zc-pulse 1.1s infinite; }
@keyframes zc-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .zc-rec-dot { animation: none; } .zc-msg, .zc-acts { transition: none; } }
.zc-drop { position: absolute; inset: 0; z-index: 6; background: rgba(17, 115, 212, .12); border: 2px dashed var(--zc-primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--zc-primary-text); font-weight: 700; pointer-events: none; }

/* the side panel */
.zc-side-head { flex: 0 0 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--zc-line); }
.zc-side-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--zc-text); }
.zc-side-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; }
.zc-person { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.zc-person-main { flex: 1; min-width: 0; }
.zc-tag { font-size: 11px; font-weight: 500; color: var(--zc-primary-text); background: var(--zc-primary-soft); border-radius: 6px; padding: 1px 8px; }
.zc-side-title { display: flex; align-items: center; gap: 6px; font-weight: 700; margin: 12px 0 4px; color: var(--zc-text); }
.zc-side-title svg { width: 16px; height: 13px; }
.zc-quote-box { background: var(--zc-mine); border-radius: 12px; padding: 7px 11px; white-space: pre-wrap; word-break: break-word; }
.zc-row-check { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 9px; cursor: pointer; margin: 0; }
.zc-row-check:hover { background: var(--zc-soft); }
.zc-row-check input { width: 18px; height: 18px; accent-color: var(--zc-primary); flex: 0 0 auto; }
.zc-result { display: block; width: 100%; border: 0; background: transparent; text-align: start; border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.zc-result:hover { background: var(--zc-soft); }

/* dialogs */
.zc-modal-back { position: absolute; inset: 0; z-index: 20; background: rgba(24, 28, 50, .45); display: flex; align-items: center; justify-content: center; padding: 14px; }
.zc-modal { width: 440px; max-width: 100%; max-height: 92%; background: var(--zc-card); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.zc-modal-head { padding: 14px 16px; border-bottom: 1px solid var(--zc-line); }
.zc-modal-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--zc-text); }
.zc-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px; }
.zc-modal-foot { padding: 10px 16px; border-top: 1px solid var(--zc-line); display: flex; justify-content: flex-end; gap: 8px; }
.zc-sheet-back { position: absolute; inset: 0; z-index: 20; background: rgba(24, 28, 50, .45); }
.zc-sheet { position: absolute; bottom: 0; inset-inline: 0; z-index: 21; background: var(--zc-card); border-radius: 18px 18px 0 0; padding: 8px 0 max(14px, env(safe-area-inset-bottom)); }
.zc-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--zc-line-strong); margin: 4px auto 8px; }
.zc-sheet button { width: 100%; height: 50px; display: flex; align-items: center; gap: 14px; border: 0; background: transparent; padding: 0 18px; text-align: start; font-size: 14px; cursor: pointer; }
.zc-sheet button.zc-danger { color: var(--zc-danger); }
.zc-sheet svg { width: 19px; height: 19px; }

/* the badge in the header */
/* the element is a dot of the theme (font-size 0, 8px, a pulse ring, a margin that moves it up); with a count it is a badge on the corner of the icon */
#kt_quick_contact_toggle { position: relative; }
#direct-message-alert.zc-count { position: absolute; top: 1px; inset-inline-end: 0; z-index: 1; margin: 0 !important; width: auto; min-width: 18px; height: 18px; min-height: 18px; padding: 0 4px; border-radius: 9px; font-size: 11px !important; font-weight: 500; line-height: 1; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
#direct-message-alert.zc-count .pulse-ring { display: none; }

/* the walkie-talkie (js/Common/chat.js, walkie): a widget at the bottom of every page, its icon in the header, and its parts in a conversation */
.zw {
    --zc-card: #FFFFFF;
    --zc-soft: #F3F6F9;
    --zc-hover: #E9EEF4;
    --zc-line: #E4E6EF;
    --zc-line-strong: #D5DAE3;
    --zc-text: #181C32;
    --zc-text2: #3F4254;
    --zc-muted: #5E6278;
    --zc-primary: #1173D4;
    --zc-primary-hover: #0D5FB0;
    --zc-primary-text: #0B5CAD;
    --zc-primary-soft: #E1F0FF;
    --zc-online: #1A8754;
    --zw-talk: #D92D4B;
    --zw-talk-soft: #FDE8EC;
    --zw-rx: #1A8754;
    --zw-rx-soft: #E3F5EC;
    --zw-amber: #9A5B00;
    --zw-amber-soft: #FFF1D6;
    --zw-shadow: 0 10px 30px rgba(24, 28, 50, .16), 0 2px 6px rgba(24, 28, 50, .08);
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 20px;
    z-index: 990;
    color: var(--zc-text);
    font-size: 13px;
    line-height: 1.6;
}
html[data-theme=dark] .zw {
    --zc-card: #1E1E2D;
    --zc-soft: #2B2B40;
    --zc-hover: #323248;
    --zc-line: #2B2B40;
    --zc-line-strong: #474761;
    --zc-text: #FFFFFF;
    --zc-text2: #CDCDDE;
    --zc-muted: #A1A5B7;
    --zc-primary-hover: #2B8AE8;
    --zc-primary-text: #7DBBFA;
    --zc-primary-soft: #1B3550;
    --zc-online: #34C47C;
    --zw-talk: #FF5C7A;
    --zw-talk-soft: #4A1E2B;
    --zw-rx: #34C47C;
    --zw-rx-soft: #173A2A;
    --zw-amber: #FFB84D;
    --zw-amber-soft: #54431C;
    --zw-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4);
}
.zw *, .zw *::before, .zw *::after { box-sizing: border-box; }
.zw button, .zw input, .zw select { font: inherit; color: inherit; }
.zw kbd { font: inherit; font-size: 11px; border: 1px solid var(--zc-line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--zc-soft); color: var(--zc-text2); box-shadow: none; }
/* the button to the top of the page goes above the widget */
body:has(.zw:not([hidden])) #kt_scrolltop { bottom: 100px; }

/* the card grows up and away from the corner; the talk button keeps its place at the corner (the end of its row, bottom aligned) */
.zw-card { position: relative; width: 300px; max-width: calc(100vw - 24px); background: var(--zc-card); border: 1px solid var(--zc-line-strong); border-radius: 18px; box-shadow: var(--zw-shadow);
    transition: width .28s cubic-bezier(.2, .9, .3, 1), background-color .2s, border-color .2s, box-shadow .2s; }
.zw-card[data-state=talk] { border-color: var(--zw-talk); }
.zw-card[data-state=rx] { border-color: var(--zw-rx); }
.zw-card[data-state=blocked] { border-color: var(--zw-amber); }
.zw-main { display: flex; align-items: flex-end; justify-content: flex-end; gap: 12px; padding: 12px; }
/* the text is clipped by itself while the card grows, so the shadow of the button is never cut */
.zw-info { flex: 1; min-width: 0; align-self: center; overflow: hidden; display: flex; flex-direction: column; gap: 1px; transition: opacity .18s ease .1s; }
.zw-extra { padding-top: 12px; overflow: hidden; }
.zw-extra > .zw-strip { margin-bottom: 0; }
.zw-extra > .zw-speaker { padding-bottom: 0; }
.zw-i-full, .zw-i-compact { display: grid; place-items: center; }
.zw-i-compact { display: none; }
.zw-badge { display: none; position: absolute; top: -3px; inset-inline-start: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700; line-height: 1; color: #fff; background: var(--zw-rx); box-shadow: 0 0 0 2px var(--zc-card); font-variant-numeric: tabular-nums; }
.zw-badge-amber { background: var(--zw-amber); color: #1E1E2D; }

/* at rest: only the button, smaller, floating; a pointer over it (zw-peek) or a tap on a phone opens the card */
.zw-card.zw-compact:not(.zw-peek) { width: 88px; background: transparent; border-color: transparent; box-shadow: none; }
.zw-card.zw-compact:not(.zw-peek) .zw-info { position: absolute; opacity: 0; visibility: hidden; pointer-events: none; transition: none; }
.zw-card.zw-compact:not(.zw-peek) .zw-extra { display: none; }
.zw-card.zw-compact:not(.zw-peek) .zw-ptt { transform: scale(.78); box-shadow: 0 8px 22px rgba(17, 115, 212, .38), 0 2px 6px rgba(24, 28, 50, .18); }
.zw-card.zw-compact.zw-listening:not(.zw-peek) .zw-ptt { box-shadow: 0 0 0 3px var(--zc-card), 0 0 0 6px var(--zw-rx), 0 8px 22px rgba(24, 28, 50, .28); }
.zw-card.zw-compact[data-state=muted]:not(.zw-peek) .zw-ptt { background: var(--zc-card); color: var(--zc-muted) !important; box-shadow: 0 0 0 1px var(--zc-line-strong), 0 8px 22px rgba(24, 28, 50, .2); }
.zw-card.zw-compact:not(.zw-peek) .zw-i-full { display: none; }
.zw-card.zw-compact:not(.zw-peek) .zw-i-compact { display: grid; }
.zw-card.zw-compact:not(.zw-peek) .zw-badge { display: flex; }
.zw-card.zw-compact:not(.zw-peek) .zw-ptt:hover { transform: scale(.84); }
.zw-ch { display: flex; align-items: center; gap: 6px; max-width: 100%; border: 0; background: none; padding: 0; font-weight: 700; font-size: 13.5px; cursor: pointer; text-align: start; }
.zw-ch svg { width: 16px; height: 16px; flex: 0 0 auto; }
.zw-ch svg:last-child { width: 14px; height: 14px; color: var(--zc-muted); }
.zw-off-air { flex: 0 0 auto; font-size: 10.5px; font-weight: 500; color: var(--zc-muted); background: var(--zc-soft); border-radius: 6px; padding: 0 6px; }
.zw-status { display: flex; align-items: center; gap: 6px; min-height: 22px; font-size: 12px; color: var(--zc-muted); white-space: nowrap; overflow: hidden; }
.zw-status b { color: var(--zc-text); }
.zw-status svg { width: 14px; height: 14px; }
.zw-online { display: inline-flex; align-items: center; gap: 5px; }
.zw-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--zw-rx); display: inline-block; }
.zw-red { color: var(--zw-talk) !important; font-weight: 700; }
.zw-green { color: var(--zw-rx) !important; }
.zw-amber { color: var(--zw-amber) !important; }
.zw-time { font-variant-numeric: tabular-nums; }
.zw-bars { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.zw-bars i { display: block; width: 3px; height: 3px; border-radius: 2px; background: currentColor; transition: height .08s; }

.zw-ptt { position: relative; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--zc-primary); color: #fff !important; box-shadow: 0 4px 12px rgba(17, 115, 212, .35); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .24s cubic-bezier(.2, .9, .3, 1), background .2s, box-shadow .2s; }
.zw-ptt svg { width: 26px; height: 26px; }
.zw-ptt:active { transform: scale(.96); }
.zw-ptt:disabled { cursor: not-allowed; background: var(--zc-soft); color: var(--zc-muted) !important; box-shadow: none; }
.zw-ring { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid transparent; pointer-events: none; }
.zw-card[data-state=talk] .zw-ptt { background: var(--zw-talk); box-shadow: 0 4px 16px rgba(217, 45, 75, .45); transform: scale(1.06); }
.zw-card[data-state=talk] .zw-ring { border-color: var(--zw-talk); animation: zw-pulse 1.1s ease-out infinite; }
.zw-card[data-state=wait] .zw-ptt { background: var(--zw-talk); opacity: .7; }
.zw-card[data-state=rx] .zw-ptt { color: var(--zw-rx) !important; }
.zw-card[data-state=muted] .zw-ptt { background: var(--zc-soft); color: var(--zc-muted) !important; box-shadow: none; }
@keyframes zw-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

.zw-speaker { display: flex; align-items: center; gap: 8px; padding: 0 12px 12px; }
.zw-speaker-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; line-height: 1.3; }
.zw-speaker-main b { font-size: 12.5px; }
.zw-progress { height: 4px; border-radius: 2px; background: var(--zw-rx-soft); overflow: hidden; }
.zw-progress span { display: block; height: 100%; width: 0; background: var(--zw-rx); transition: width .25s linear; }
.zw-strip { margin: 0 12px 12px; border-radius: 10px; padding: 7px 10px; font-size: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--zc-soft); color: var(--zc-muted); }
.zw-strip svg { width: 14px; height: 14px; }
.zw-strip button { margin-inline-start: auto; border: 0; border-radius: 8px; padding: 2px 10px; font-size: 12px; font-weight: 700; cursor: pointer; background: var(--zc-card); color: inherit; }
.zw-strip button + button { margin-inline-start: 0; }
.zw-strip-red { background: var(--zw-talk-soft); color: var(--zw-talk); }
.zw-strip-amber { background: var(--zw-amber-soft); color: var(--zw-amber); }
.zw-hint { font-size: 11px; color: var(--zc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the channels */
.zw-pop { position: absolute; bottom: calc(100% + 10px); inset-inline: 0; max-height: min(460px, 70vh); display: flex; flex-direction: column; background: var(--zc-card); border: 1px solid var(--zc-line-strong); border-radius: 14px; box-shadow: var(--zw-shadow); padding: 8px; }
.zw-pop-title { font-weight: 700; padding: 4px 8px 0; }
.zw-pop-note { font-size: 11.5px; color: var(--zc-muted); padding: 0 8px 6px; }
.zw-pop-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.zw-chan { display: flex; align-items: center; gap: 6px; border-radius: 10px; padding-inline-end: 8px; }
.zw-chan:hover { background: var(--zc-hover); }
.zw-chan.zw-selected { background: var(--zc-primary-soft); }
.zw-chan-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 7px 8px; cursor: pointer; text-align: start; }
.zw-chan-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.zw-chan-main b { font-size: 13px; }
.zw-chan-main small { font-size: 11.5px; color: var(--zc-muted); }
.zw-switch { position: relative; flex: 0 0 auto; width: 34px; height: 20px; margin: 0; cursor: pointer; }
.zw-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.zw-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--zc-line-strong); transition: background .15s; pointer-events: none; }
.zw-switch span::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.zw-switch input:checked + span { background: var(--zw-rx); }
.zw-switch input:checked + span::after { inset-inline-start: 16px; }
.zw-switch input:focus-visible + span { outline: 2px solid var(--zc-primary); outline-offset: 2px; }
.zw-pop-acts { display: flex; gap: 6px; padding: 8px 4px 4px; border-top: 1px solid var(--zc-line); margin-top: 6px; }
.zw-pop-acts button { flex: 1; border: 1px solid var(--zc-line); background: var(--zc-soft); border-radius: 8px; font-size: 12px; padding: 4px 6px; cursor: pointer; white-space: nowrap; }
.zw-pop-acts button:hover { background: var(--zc-hover); }
.zw-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px; font-size: 12px; }
.zw-beep { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; color: var(--zc-text2); }
.zw-beep input { accent-color: var(--zc-primary); }
.zw-link { border: 0; background: none; padding: 0; color: var(--zc-muted); cursor: pointer; text-decoration: underline; }

/* the icon in the header */
.zw-toggle { position: relative; }
/* on: a small green dot on the lower corner, clear of the drawing */
.zw-toggle-dot { position: absolute; bottom: 7px; inset-inline-end: 7px; width: 9px; height: 9px; border-radius: 50%; background: #1A8754; box-shadow: 0 0 0 2px #fff; display: none; pointer-events: none; }
html[data-theme=dark] .zw-toggle-dot { box-shadow: 0 0 0 2px #1E1E2D; }
.zw-toggle.zw-on .zw-toggle-dot { display: block; }

/* in a conversation */
.zc-walkie-holder { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.zc-walkie-holder:empty { display: none; }
/* while typing, the voice and walkie-talkie buttons are hidden; a walkie talk in progress (F8) stays visible */
.zc-compose-row.zc-typing .zc-voice-start,
.zc-compose-row.zc-typing .zc-walkie-holder:not(:has(.zc-walkie-talk, .zc-walkie-wait)) { display: none; }
.zchat .zc-walkie-ptt { color: #fff; background: #1A8754; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.zchat .zc-walkie-ptt:hover { background: #157046; color: #fff; }
.zchat .zc-walkie-ptt.zc-walkie-talk { background: #D92D4B; box-shadow: 0 0 0 4px rgba(217, 45, 75, .25); }
.zchat .zc-walkie-ptt.zc-walkie-wait { background: #D92D4B; opacity: .7; }
.zchat .zc-walkie-ptt:disabled { background: var(--zc-soft); color: var(--zc-muted); cursor: not-allowed; }
.zc-walkie-time { font-size: 12px; font-weight: 700; color: #D92D4B; font-variant-numeric: tabular-nums; }
.zc-walkie-tag { display: inline-flex; align-items: center; gap: 3px; font-weight: 500; color: var(--zc-online); }
.zc-walkie-tag svg, .zc-onair-mark svg { width: 12px; height: 12px; }
.zc-onair-mark { display: inline-flex; color: var(--zc-online); }
.zc-row-check > span > svg { width: 14px; height: 14px; vertical-align: -2px; }

/* phones and tablets: above the bottom bar of css/mobile-nav.css */
@media (max-width: 991.98px) {
    body.mnav-on .zw { bottom: calc(var(--mnav-bar-h, 0px) + var(--mnav-safe-bottom, 0px) + 12px); }
}
/* tablets: no bottom bar; the button at rest is a twin of the floating + (.mnav-top-plus: 56px, 24px from the end, 16px from the bottom), 12px beside it.
   The card has a 1px border and 12px around the 64px button, and 0.875 makes the button 56px (4px less on each side): it is 17px inside the card */
@media (min-width: 768px) and (max-width: 991.98px) {
    body.mnav-on .zw { bottom: calc(var(--mnav-safe-bottom, 0px) - 1px); inset-inline-end: calc(24px + 56px + 12px - 17px); }
    body.mnav-on .zw-card.zw-compact:not(.zw-peek) .zw-ptt { transform: scale(.875); box-shadow: 0 6px 16px rgba(27, 111, 209, .45); }
    body.mnav-on .zw-card.zw-compact.zw-listening:not(.zw-peek) .zw-ptt { box-shadow: 0 0 0 3px var(--zc-card), 0 0 0 5px var(--zw-rx), 0 6px 16px rgba(27, 111, 209, .45); }
    body.mnav-on .zw-card.zw-compact:not(.zw-peek) .zw-ptt:hover { transform: scale(.875); }
    /* the keyboard is open: the + goes, and so does this */
    body.mnav-kb .zw { display: none; }
}
@media (max-width: 575.98px) {
    .zw { inset-inline-end: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .zw-card.zw-compact:not(.zw-peek) { width: 84px; }
    .zw-ptt { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .zw-card[data-state=talk] .zw-ring { animation: none; }
    .zw-card, .zw-ptt, .zw-info { transition: none; }
}
/* a live voice has no length yet: the bar moves */
.zw-progress-live span { width: 35%; animation: zw-live 1.2s ease-in-out infinite alternate; }
@keyframes zw-live { from { margin-inline-start: 0; } to { margin-inline-start: 65%; } }
@media (prefers-reduced-motion: reduce) {
    .zw-progress-live span { animation: none; width: 100%; opacity: .6; }
}
