.crm-dialogs-page{padding:20px 24px;min-width:0}
.crm-dialogs-page[hidden],.crm-notifications-page[hidden]{display:none}
.crm-dialogs-frame{height:calc(100dvh - 96px);min-height:260px;min-width:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border-card);border-radius:16px;overflow:hidden;box-shadow:var(--shadow-sm)}
.crm-dialogs-loading{padding:24px;color:var(--text-3);font-size:13px;line-height:1.5}
.crm-dialogs-count{min-width:19px;height:19px;margin-left:auto;display:flex;align-items:center;justify-content:center;padding:0 5px;border-radius:10px;background:#fff;color:var(--violet-600);font-size:10px;font-weight:700;line-height:1}
.sidebar.collapsed .crm-dialogs-count{display:none}
.crm-dialogs-active #_topbar-search-wrap,.crm-dialogs-active #_sync-label,.crm-dialogs-active #_sync-btn,.crm-dialogs-active .topbar__primary{display:none!important}
.crm-dialogs-frame .support-shell,.crm-dialogs-frame .support-thread,.crm-dialogs-frame .support-message-text{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif}
.crm-dialogs-frame button,.crm-dialogs-frame textarea{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif}
.crm-dialogs-frame .support-shell{height:100%;max-height:100%;border-radius:0;border:0;box-shadow:none}
.crm-dialogs-frame .support-message{border-radius:14px 14px 14px 4px;background:#eaf4fb}
.crm-dialogs-frame .support-message-admin{border-radius:14px 14px 4px 14px;background:#e9defb}
.crm-dialogs-frame .support-message-bot{border-radius:14px 14px 4px 14px;background:#f3f2f6}
.crm-dialogs-frame .support-message-text{font-size:14px;line-height:1.65}
.crm-dialogs-frame .support-primary,.crm-dialogs-frame .support-filters button[aria-pressed=true]{background:var(--violet-600);border-color:var(--violet-600)}
.crm-dialogs-frame .support-thread-title,.crm-dialogs-frame .support-preview-target{color:var(--violet-700)}
.crm-notifications-page{padding:24px 32px;max-width:840px}
.crm-settings-card{padding:24px;margin-bottom:20px}
.crm-settings-card h2{font-size:18px;line-height:1.4;margin:0 0 12px;color:var(--text)}
.crm-settings-card p{font-size:13px;line-height:1.65;color:var(--text-2);margin:0 0 14px;overflow-wrap:anywhere}
.crm-settings-card .crm-settings-note{font-size:12px;color:var(--text-3)}
.crm-settings-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}
.crm-settings-actions .btn{min-height:42px;justify-content:center;white-space:normal;text-align:center;line-height:1.4}
.crm-settings-actions .btn:disabled{opacity:.5;cursor:default}
.crm-settings-card .crm-settings-status{color:var(--violet-700);margin-bottom:0}
.crm-settings-status:empty{display:none}
.crm-install-steps{padding-left:20px;margin:16px 0 0;color:var(--text-2);font-size:13px;line-height:1.7}
.crm-install-steps li{padding-left:4px;margin-bottom:8px}
.crm-settings-actions button:focus{outline:none}
.crm-settings-actions button:focus-visible{outline:2px solid var(--violet-400);outline-offset:2px}
@media(max-width:768px){
  .crm-dialogs-page{padding:8px}
  .crm-dialogs-frame{height:calc(100dvh - 68px);min-height:180px;border-radius:12px}
  .crm-notifications-page{padding:16px 12px}
  .crm-settings-card{padding:18px 16px}
  .crm-settings-actions{align-items:stretch;flex-direction:column}
  .crm-settings-actions .btn{width:100%}
  .crm-dialogs-active .topbar__title{font-size:16px}
}
@media(max-height:500px){.crm-dialogs-frame{min-height:0}.crm-dialogs-page{padding-top:4px;padding-bottom:4px}.crm-dialogs-frame{height:calc(100dvh - 60px)}}
