/* Explicit hidden state wins over component display rules. */
.offline-v55-status[hidden],.sidebar [data-chat-unread][hidden]{display:none!important}
.request-file-icon img:focus-visible,button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--teal,#1e9c89);outline-offset:3px}
.request-image-preview{display:block;width:auto;max-width:100%;height:auto;max-height:72dvh;object-fit:contain;margin:0 auto}
.request-file-icon img{cursor:zoom-in}
body[data-design-system] .chat-dialog-head>div:first-of-type{min-width:110px;flex:1 1 180px}
body[data-design-system] .chat-dialog-head>div:last-of-type{flex:0 1 auto;display:flex;flex-wrap:wrap;gap:4px}
body[data-design-system] .chat-dialog-head h3{white-space:normal;overflow-wrap:anywhere}
@media(min-width:781px) and (max-width:1100px){body[data-design-system] .chat-workspace{--chat-left:230px!important}body[data-design-system] .chat-dialog-head{flex-wrap:wrap}body[data-design-system] .chat-dialog-head>div:last-of-type{margin-left:auto}}
body[data-design-system] .desk-request-link{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;min-width:150px}
body[data-design-system] .desk-table-wrap{max-width:100%;overflow:auto}
body[data-design-system] .desk-table th,body[data-design-system] .desk-table td{overflow:visible}
body[data-design-system] .desk-table [data-label="SLA"]{white-space:normal;min-width:100px}
body[data-design-system] .desk-table [data-label="Статус"]{white-space:normal;min-width:112px}
.chat-messages>.chat-loading{position:static;min-height:36px}

/* UI37: menus stay inside the request card at mobile widths. */
.desk-actions-menu{position:relative}.desk-actions-menu>.desk-primary-actions{right:0!important;left:auto!important;max-width:min(340px,calc(100vw - 32px))!important;min-width:0!important;box-sizing:border-box}.desk-actions-menu .desk-transition-actions{flex-wrap:wrap}.desk-actions-menu button{white-space:normal;overflow-wrap:anywhere}

.toast{z-index:900000!important}.offline-v55-status{z-index:900010}
