.app-shell {
  display: flex;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
}
.sidebar {
  width: 217px;
  flex-shrink: 0;
  background: #f3f6ec;
  border-right: 1px solid #e0e6d9;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.inbox-layout {
  display: grid;
  grid-template-columns: 293px minmax(300px, 1fr) 236px;
  flex: 1;
  min-height: 0;
  margin: 0 30px 25px;
  border: 1px solid #e0e6da;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 6px #52633d03;
}
.conversation-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #e5eadf;
}
.chat-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.profile-pane {
  background: #fdfef9;
  border-left: 1px solid #e5eadf;
  overflow: auto;
  scrollbar-width: thin;
}
.topbar,
.page-heading {
  flex-shrink: 0;
}
.profile-toggle {
  display: none !important;
}
@media (min-width: 1700px) {
  .inbox-layout {
    grid-template-columns: 340px minmax(380px, 1fr) 285px;
  }
  .sidebar {
    width: 240px;
  }
  .row-top strong {
    font-size: 13px;
  }
  .row-preview {
    font-size: 12px;
  }
  .message-text {
    font-size: 13px;
  }
  .message-bubble {
    padding: 14px 17px;
  }
  .message {
    max-width: 78%;
  }
  .chat-person strong {
    font-size: 15px;
  }
  .profile-data {
    font-size: 12px;
  }
  .profile-identity h2 {
    font-size: 16px;
  }
}
@media (max-width: 1330px) {
  .sidebar {
    width: 190px;
  }
  .brand {
    padding-left: 22px;
  }
  .workspace {
    margin-left: 12px;
    margin-right: 12px;
  }
  .workspace small {
    font-size: 8px;
  }
  .inbox-layout {
    grid-template-columns: 265px minmax(280px, 1fr) 205px;
    margin: 0 20px 20px;
  }
  .page-heading,
  .topbar {
    padding-left: 23px;
    padding-right: 23px;
  }
  .list-tabs {
    gap: 12px;
  }
  .composer-hint span:last-child {
    display: none;
  }
  .chat-header {
    padding: 15px;
  }
  .profile-section {
    margin-left: 14px;
    margin-right: 14px;
  }
  .channel-grid {
    gap: 12px;
  }
  .channel-card {
    padding: 18px;
  }
}
@media (max-width: 1150px) {
  .inbox-layout {
    grid-template-columns: 275px minmax(280px, 1fr);
  }
  .profile-pane {
    display: none;
  }
  .profile-pane.visible {
    display: block;
    position: absolute;
    right: 20px;
    top: 190px;
    bottom: 20px;
    width: 250px;
    z-index: 10;
    box-shadow: -8px 0 25px #304e2315;
    border: 1px solid #dfe5d8;
    border-radius: 8px;
  }
  .profile-toggle {
    display: inline-flex !important;
  }
  .sidebar {
    width: 185px;
  }
  .page-heading {
    height: 112px;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .channel-card {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 8px 14px;
  }
  .channel-card > .channel-icon {
    grid-row: span 2;
    margin: 0;
  }
  .channel-card h2 {
    margin: 0;
  }
  .channel-card p,
  .channel-card details,
  .channel-card .button {
    grid-column: 1/-1;
  }
  .channel-card .button {
    justify-self: start;
  }
  .channel-status {
    justify-self: start;
  }
  .topbar-right {
    gap: 12px;
  }
  .connection-state {
    display: none;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 66px;
    align-items: center;
  }
  .brand {
    padding: 23px 0;
  }
  .brand > span:last-child,
  .workspace,
  .nav-caption,
  .nav-item > span:not(:first-child),
  .sidebar-channel,
  .demo-card,
  .operator > div,
  .sidebar-bottom #logout {
    display: none;
  }
  .sidebar nav {
    padding: 0 8px;
    width: 100%;
    margin-top: 17px;
  }
  .nav-item {
    font-size: 0;
    gap: 0;
    padding: 13px;
    justify-content: center;
  }
  .nav-item .icon {
    width: 20px;
    height: 20px;
  }
  .sidebar-bottom {
    width: 100%;
  }
  .operator {
    padding: 20px 0;
    justify-content: center;
  }
  .inbox-layout {
    grid-template-columns: 255px minmax(260px, 1fr);
    margin: 0 14px 14px;
  }
  .page-heading,
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }
  .topbar {
    height: 54px;
  }
  .page-heading {
    height: 100px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading .eyebrow {
    font-size: 7px;
  }
  .chat-header {
    padding: 15px 12px;
  }
  .chat-person {
    gap: 7px;
  }
  .chat-person strong {
    font-size: 11px;
  }
  .chat-person .avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .chat-actions {
    gap: 3px;
  }
  .resolve-button {
    font-size: 8px;
    padding: 6px;
  }
  .chat-actions > .icon-button {
    width: 24px;
  }
  .messages {
    padding: 20px 15px;
  }
  .composer-area {
    padding: 10px 12px;
  }
  .composer-bottom .text-button {
    font-size: 8px;
  }
  .clients-table th:nth-child(2),
  .clients-table td:nth-child(2) {
    display: none;
  }
  .secondary-page {
    margin: 0 14px 14px;
    padding: 18px;
  }
}
@media (max-width: 640px) {
  .app-shell {
    min-height: 480px;
  }
  .sidebar {
    width: 54px;
  }
  .logo-mark {
    width: 32px;
    height: 34px;
    font-size: 30px;
  }
  .brand {
    padding: 17px 0;
  }
  .sidebar nav {
    padding: 0 5px;
  }
  .nav-item {
    padding: 10px;
  }
  .operator-avatar {
    width: 27px;
    height: 27px;
  }
  .topbar {
    height: 48px;
    padding: 0 13px;
  }
  .breadcrumb {
    font-size: 9px;
    gap: 7px;
  }
  .breadcrumb > strong {
    display: none;
  }
  .topbar-right .header-avatar {
    display: none;
  }
  .mode-badge {
    font-size: 8px;
  }
  .page-heading {
    height: 93px;
    padding: 14px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading p {
    font-size: 9px;
  }
  .page-heading > .button {
    font-size: 0;
    padding: 9px;
    min-height: 32px;
  }
  .page-heading > .button .icon {
    width: 14px;
    height: 14px;
  }
  .inbox-layout {
    display: flex;
    margin: 0 9px 9px;
  }
  .conversation-pane {
    width: 100%;
    border: 0;
  }
  .chat-pane {
    display: none;
    width: 100%;
  }
  .inbox-layout.mobile-chat .conversation-pane {
    display: none;
  }
  .inbox-layout.mobile-chat .chat-pane {
    display: flex;
  }
  .mobile-back {
    display: flex !important;
    flex-shrink: 0;
  }
  .chat-person .avatar {
    display: none;
  }
  .chat-person strong {
    font-size: 12px;
  }
  .chat-header {
    gap: 5px;
    min-height: 68px;
  }
  .chat-meta {
    font-size: 8px;
  }
  .chat-actions {
    margin-left: auto;
  }
  .messages {
    padding: 18px 14px;
  }
  .message {
    max-width: 92%;
  }
  .message-text {
    font-size: 12px;
  }
  .composer-tabs {
    gap: 12px;
  }
  .composer-tabs > span {
    display: none;
  }
  .composer textarea {
    min-height: 60px;
    font-size: 12px;
  }
  .composer-hint {
    font-size: 7px;
  }
  .profile-pane.visible {
    top: 144px;
    right: 9px;
    bottom: 9px;
    width: calc(100% - 72px);
  }
  .page-heading h1 > span {
    font-size: 10px;
  }
  .clients-table td {
    padding: 14px 6px;
    font-size: 10px;
  }
  .clients-table th {
    padding: 10px 6px;
    font-size: 9px;
  }
  .clients-table th:nth-child(4),
  .clients-table td:nth-child(4) {
    display: none;
  }
  .client-name {
    gap: 7px;
    font-size: 10px;
  }
  .client-name .avatar {
    width: 25px;
    height: 25px;
    font-size: 9px;
  }
  .client-channel {
    font-size: 0;
  }
  .secondary-page {
    margin: 0 9px 9px;
    padding: 12px;
  }
  .section-intro {
    font-size: 11px;
  }
  .channel-card p {
    font-size: 11px;
  }
  .setup-note {
    font-size: 10px;
    padding: 12px;
  }
  .toast {
    font-size: 11px;
    width: max-content;
    max-width: 88vw;
  }
}
.mobile-back {
  display: none;
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
