.app-chat-panel {
  --app-chat-panel-composer-height: clamp(112px, 18dvh, 160px);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(243, 246, 252, 0.98), rgba(235, 240, 248, 0.98)),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 24%);
}

.app-chat-panel--maximized {
  --app-chat-panel-maximized-inset-top: max(12px, env(safe-area-inset-top, 0px));
  --app-chat-panel-maximized-inset-right: max(12px, env(safe-area-inset-right, 0px));
  --app-chat-panel-maximized-inset-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  --app-chat-panel-maximized-inset-left: max(12px, env(safe-area-inset-left, 0px));
  --app-chat-panel-composer-height: clamp(104px, 16dvh, 148px);
  position: fixed;
  inset:
    var(--app-chat-panel-maximized-inset-top)
    var(--app-chat-panel-maximized-inset-right)
    var(--app-chat-panel-maximized-inset-bottom)
    var(--app-chat-panel-maximized-inset-left);
  z-index: 1200;
  width: auto;
  height: auto;
  max-height: none;
  margin: 0;
}

.app-chat-panel--tablet-app {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  border-radius: 0;
  overflow: hidden;
}

.app-chat-panel--tablet-app.ant-card,
.app-chat-panel--tablet-app .ant-card-body,
.app-chat-panel--tablet-app .app-chat-panel__stack,
.app-chat-panel--tablet-app .app-chat-panel__stack--chat,
.app-chat-panel--tablet-app .app-chat-panel__conversation-shell,
.app-chat-panel--tablet-app .app-chat-panel__conversation-main,
.app-chat-panel--tablet-app .app-chat-panel__conversation-view,
.app-chat-panel--tablet-app .app-chat-panel__conversation-view-inner,
.app-chat-panel--tablet-app .app-chat-panel__conversation-empty,
.app-chat-panel--tablet-app .app-chat-panel__conversation-empty-list {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.app-chat-panel--tablet-app .app-chat-panel__stack--chat,
.app-chat-panel--tablet-app .app-chat-panel__conversation-shell,
.app-chat-panel--tablet-app .app-chat-panel__conversation-main,
.app-chat-panel--tablet-app .app-chat-panel__conversation-view,
.app-chat-panel--tablet-app .app-chat-panel__conversation-view-inner {
  flex-basis: 100%;
}

.app-chat-panel__preview-modal.ant-modal {
  z-index: 1400;
  max-width: 100vw;
  margin: 0;
  top: 0;
  padding-bottom: 0;
}

.app-chat-panel__preview-modal.ant-modal .ant-modal-mask {
  z-index: 1399;
}

.app-chat-panel .ant-card-head {
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  overflow: visible;
  background: rgba(247, 249, 252, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.app-chat-panel .ant-card-head-title {
  padding: 10px 0;
  overflow: visible;
  min-width: 0;
}

.app-chat-panel .ant-card-extra {
  padding: 8px 0;
  flex-shrink: 0;
}

.app-chat-panel .ant-card-extra .ant-space {
  gap: 4px !important;
  flex-wrap: nowrap;
}

.app-chat-panel .ant-card-extra .ant-btn,
.app-chat-panel__meta .ant-btn {
  height: 30px;
  padding-inline: 10px;
  border-radius: 10px;
  font-size: 12px;
}

.app-chat-panel .ant-card-extra .ant-btn-icon-only,
.app-chat-panel__meta .ant-btn-icon-only,
.app-chat-message__expand.ant-btn-icon-only,
.app-chat-panel__composer-action-buttons .ant-btn-icon-only {
  width: 30px;
  min-width: 30px;
  padding-inline: 0;
}

.app-chat-panel .ant-card-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  padding: 6px;
  overflow: hidden;
}

.app-chat-panel--maximized .ant-card-body {
  overflow: hidden;
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
}

.app-chat-panel__stack {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.app-chat-panel__stack--chat {
  flex-direction: row;
  align-items: stretch;
  flex: 1 1 auto;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.app-chat-panel__conversation-shell {
  position: relative;
  display: flex;
  flex-direction: row;
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.app-chat-panel__conversation-list {
  display: flex;
  flex-direction: column;
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  min-height: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.72);
}

.app-chat-panel__conversation-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.app-chat-panel__conversation-list-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.app-chat-panel__conversation-list-search {
  padding: 8px 8px 0;
}

.app-chat-panel__conversation-list-search .ant-input-affix-wrapper,
.app-chat-panel__conversation-list-search .ant-input-affix-wrapper:hover,
.app-chat-panel__conversation-list-search .ant-input-affix-wrapper:focus,
.app-chat-panel__conversation-list-search .ant-input-affix-wrapper:focus-within {
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: none;
}

.app-chat-panel__conversation-list-search .ant-input-affix-wrapper {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.app-chat-panel__create-conversation-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-chat-panel__create-conversation-options {
  width: 100%;
}

.app-chat-panel__create-conversation-space {
  display: flex;
  width: 100%;
}

.app-chat-panel__create-conversation-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 10px 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.7);
}

.app-chat-panel__create-conversation-option .ant-radio-wrapper {
  margin-inline-end: 0;
  width: 100%;
}

.app-chat-panel__create-conversation-option-label {
  font-weight: 600;
  color: #0f172a;
}

.app-chat-panel__create-conversation-option-description {
  padding-left: 24px;
  white-space: normal;
}

.app-chat-panel__conversation-list-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  padding: 8px;
  overflow-y: auto;
}

.app-chat-panel__conversation-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-chat-panel__conversation-section-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-chat-panel__conversation-section-items--collapsed-active {
  padding-top: 2px;
}

.app-chat-panel__conversation-section-empty {
  padding: 4px 0 6px;
}

.app-chat-panel__conversation-section-empty .ant-empty {
  margin: 0;
  padding: 18px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.app-chat-panel__conversation-section-empty .ant-empty-description {
  color: #64748b;
  font-size: 12px;
}

.app-chat-panel__conversation-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 2px 2px 0;
}

.app-chat-panel__conversation-section--reorderable {
  position: relative;
  transition: transform 0.18s ease;
}

.app-chat-panel__conversation-section-header--reorderable,
.app-chat-panel__conversation-section-toggle--reorderable {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.app-chat-panel__conversation-section-header-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.app-chat-panel__conversation-section-header--muted {
  margin-top: 6px;
}

.app-chat-panel__conversation-section-header--processing .app-chat-panel__conversation-section-title {
  color: #b45309;
}

.app-chat-panel__conversation-section-header--processing .app-chat-panel__conversation-section-count {
  background: rgba(253, 230, 138, 0.92);
  color: #92400e;
}

.app-chat-panel__conversation-section-header--failed .app-chat-panel__conversation-section-title {
  color: #b91c1c;
}

.app-chat-panel__conversation-section-header--failed .app-chat-panel__conversation-section-count {
  background: linear-gradient(180deg, rgba(254, 202, 202, 0.98), rgba(252, 165, 165, 0.96));
  color: #7f1d1d;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.14);
}

.app-chat-panel__conversation-section-header--unread .app-chat-panel__conversation-section-title {
  color: #1d4ed8;
}

.app-chat-panel__conversation-section-header--unread .app-chat-panel__conversation-section-count {
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.98), rgba(147, 197, 253, 0.96));
  color: #1e3a8a;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
}

.app-chat-panel__conversation-section-header--work .app-chat-panel__conversation-section-title {
  color: #0f766e;
}

.app-chat-panel__conversation-section-header--work .app-chat-panel__conversation-section-count {
  background: linear-gradient(180deg, rgba(204, 251, 241, 0.98), rgba(153, 246, 228, 0.96));
  color: #115e59;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.14);
}

.app-chat-panel__conversation-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1d4ed8;
}

.app-chat-panel__conversation-section-header--muted .app-chat-panel__conversation-section-title {
  color: #64748b;
}

.app-chat-panel__conversation-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(191, 219, 254, 0.9);
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
}

.app-chat-panel__conversation-section-header--muted .app-chat-panel__conversation-section-count {
  background: rgba(226, 232, 240, 0.88);
  color: #475569;
}

.app-chat-panel__conversation-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
  color: #0f172a;
  text-align: left;
}

.app-chat-panel__conversation-section-mobile-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-chat-panel__conversation-section-mobile-header .app-chat-panel__conversation-section-toggle {
  flex: 1 1 auto;
  min-width: 0;
}

.app-chat-panel__conversation-section-toggle-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.app-chat-panel__conversation-section-toggle-actions,
.app-chat-panel__conversation-section-move-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-chat-panel__conversation-section-move-controls {
  flex-shrink: 0;
}

.app-chat-panel__conversation-section-move-activator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  color: #475569;
}

.app-chat-panel__conversation-section-move-activator.is-active {
  background: rgba(191, 219, 254, 0.95);
  color: #1d4ed8;
}

.app-chat-panel__conversation-section-move-button {
  min-width: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.app-chat-panel__conversation-section-move-button:disabled {
  background: rgba(226, 232, 240, 0.52);
  color: rgba(100, 116, 139, 0.72);
}

.app-chat-panel__conversation-section-move-button:not(:disabled):active {
  background: rgba(191, 219, 254, 0.95);
  color: #1d4ed8;
}

.app-chat-panel__conversation-section-toggle-icon,
.app-chat-panel__conversation-section-toggle-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.app-chat-panel__conversation-section-toggle.is-open {
  box-shadow:
    inset 0 0 0 1px rgba(59, 130, 246, 0.18),
    0 10px 24px rgba(59, 130, 246, 0.08);
}

.app-chat-panel__conversation-section-toggle--processing .app-chat-panel__conversation-section-toggle-icon,
.app-chat-panel__conversation-section-toggle--processing .app-chat-panel__conversation-section-title {
  color: #b45309;
}

.app-chat-panel__conversation-section-toggle--failed .app-chat-panel__conversation-section-toggle-icon,
.app-chat-panel__conversation-section-toggle--failed .app-chat-panel__conversation-section-title {
  color: #b91c1c;
}

.app-chat-panel__conversation-section-toggle--unread .app-chat-panel__conversation-section-toggle-icon,
.app-chat-panel__conversation-section-toggle--unread .app-chat-panel__conversation-section-title {
  color: #1d4ed8;
}

.app-chat-panel__conversation-section-toggle--work .app-chat-panel__conversation-section-toggle-icon,
.app-chat-panel__conversation-section-toggle--work .app-chat-panel__conversation-section-title {
  color: #0f766e;
}

.app-chat-panel__conversation-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.app-chat-panel__conversation-item--active {
  border-color: rgba(59, 130, 246, 0.16);
  background: rgba(239, 246, 255, 0.95);
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.08);
}

.app-chat-panel__conversation-item--processing {
  border-color: rgba(245, 158, 11, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.98), rgba(255, 251, 235, 0.98) 32%, rgba(255, 255, 255, 0.99) 72%),
    #fff;
  box-shadow:
    inset 4px 0 0 rgba(245, 158, 11, 0.92),
    0 10px 24px rgba(245, 158, 11, 0.12);
}

.app-chat-panel__conversation-item--failed {
  border-color: rgba(220, 38, 38, 0.16);
  background:
    linear-gradient(90deg, rgba(254, 242, 242, 0.99), rgba(254, 226, 226, 0.98) 32%, rgba(255, 255, 255, 0.99) 72%),
    #fff;
  box-shadow:
    inset 4px 0 0 rgba(220, 38, 38, 0.9),
    0 10px 24px rgba(220, 38, 38, 0.1);
}

.app-chat-panel__conversation-item--unread {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(90deg, rgba(147, 197, 253, 0.98), rgba(219, 234, 254, 0.98) 22%, rgba(239, 246, 255, 0.98) 46%, rgba(255, 255, 255, 0.99) 68%),
    #fff;
  box-shadow:
    inset 4px 0 0 rgba(37, 99, 235, 1),
    0 10px 24px rgba(37, 99, 235, 0.18);
}

.app-chat-panel__conversation-item--unread-section {
  border-color: rgba(37, 99, 235, 0.2);
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 1), rgba(239, 246, 255, 0.99) 40%, rgba(255, 255, 255, 1) 82%),
    #fff;
  box-shadow:
    inset 6px 0 0 rgba(37, 99, 235, 0.96),
    0 14px 30px rgba(37, 99, 235, 0.2);
}

.app-chat-panel__conversation-item--failed-section {
  border-color: rgba(220, 38, 38, 0.2);
  background:
    linear-gradient(135deg, rgba(254, 226, 226, 1), rgba(254, 242, 242, 0.99) 42%, rgba(255, 255, 255, 1) 84%),
    #fff;
  box-shadow:
    inset 6px 0 0 rgba(220, 38, 38, 0.94),
    0 14px 30px rgba(220, 38, 38, 0.14);
}

.app-chat-panel__conversation-item--general {
  opacity: 0.94;
}

.app-chat-panel__conversation-item--unread::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow:
    0 0 0 4px rgba(191, 219, 254, 0.9),
    0 0 12px rgba(37, 99, 235, 0.45);
}

.app-chat-panel__conversation-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.app-chat-panel__conversation-item--unread:hover {
  box-shadow:
    inset 4px 0 0 rgba(37, 99, 235, 1),
    0 14px 30px rgba(37, 99, 235, 0.18);
}

.app-chat-panel__conversation-item--active.app-chat-panel__conversation-item--unread {
  border-color: rgba(29, 78, 216, 0.2);
  background:
    linear-gradient(90deg, rgba(147, 197, 253, 1), rgba(191, 219, 254, 0.99) 24%, rgba(219, 234, 254, 0.99) 46%, rgba(239, 246, 255, 1) 70%),
    #fff;
  box-shadow:
    inset 4px 0 0 rgba(29, 78, 216, 1),
    0 12px 28px rgba(37, 99, 235, 0.22);
}

.app-chat-panel__conversation-item--active.app-chat-panel__conversation-item--unread-section {
  border-color: rgba(29, 78, 216, 0.92);
  background:
    linear-gradient(135deg, rgba(191, 219, 254, 1), rgba(219, 234, 254, 1) 34%, rgba(239, 246, 255, 1) 66%, rgba(255, 255, 255, 1) 88%),
    #fff;
  box-shadow:
    inset 6px 0 0 rgba(29, 78, 216, 1),
    0 16px 34px rgba(37, 99, 235, 0.24);
}

.app-chat-panel__conversation-item--active.app-chat-panel__conversation-item--processing {
  border-color: rgba(217, 119, 6, 0.58);
  background:
    linear-gradient(90deg, rgba(255, 237, 213, 1), rgba(254, 243, 199, 0.99) 26%, rgba(255, 251, 235, 0.99) 52%, rgba(255, 255, 255, 1) 74%),
    #fff;
  box-shadow:
    inset 4px 0 0 rgba(217, 119, 6, 0.98),
    0 12px 28px rgba(217, 119, 6, 0.16);
}

.app-chat-panel__conversation-item--active.app-chat-panel__conversation-item--failed {
  border-color: rgba(185, 28, 28, 0.46);
  background:
    linear-gradient(90deg, rgba(254, 226, 226, 1), rgba(254, 242, 242, 0.99) 28%, rgba(255, 255, 255, 1) 74%),
    #fff;
  box-shadow:
    inset 4px 0 0 rgba(185, 28, 28, 0.96),
    0 12px 28px rgba(220, 38, 38, 0.14);
}

.app-chat-panel__conversation-item--processing.app-chat-panel__conversation-item--unread {
  border-color: rgba(147, 51, 234, 0.48);
  background:
    linear-gradient(90deg, rgba(237, 233, 254, 0.98), rgba(219, 234, 254, 0.98) 24%, rgba(255, 251, 235, 0.98) 56%, rgba(255, 255, 255, 0.99) 76%),
    #fff;
  box-shadow:
    inset 4px 0 0 rgba(124, 58, 237, 0.94),
    0 12px 28px rgba(124, 58, 237, 0.16);
}

.app-chat-panel__conversation-item-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 8px 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.app-chat-panel__conversation-item-heading {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.app-chat-panel__conversation-item-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
}

.app-chat-panel__conversation-item-title-badge,
.app-chat-panel__conversation-title-badge {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 110px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(204, 251, 241, 0.96);
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.16);
  color: #0f766e;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
}

.app-chat-panel__conversation-item-title,
.app-chat-panel__conversation-item-id,
.app-chat-panel__conversation-item-preview,
.app-chat-panel__conversation-item-time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-chat-panel__conversation-item-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.app-chat-panel__conversation-item-unread-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 999px;
  background: #2563eb;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.16),
    0 0 10px rgba(37, 99, 235, 0.28);
  margin-top: 1px;
}

.app-chat-panel__conversation-item-unread-badge {
  display: inline-flex;
  align-items: center;
  max-width: 92px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.3);
  background: linear-gradient(180deg, rgba(219, 234, 254, 1), rgba(191, 219, 254, 0.96));
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  flex: none;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.14);
}

.app-chat-panel__conversation-item-time {
  flex: none;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.app-chat-panel__conversation-item-id {
  font-size: 10px;
  color: #94a3b8;
}

.app-chat-panel__conversation-item-preview {
  font-size: 11px;
  color: #64748b;
}

.app-chat-panel__conversation-item-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.app-chat-panel__conversation-item--unread .app-chat-panel__conversation-item-title,
.app-chat-panel__conversation-item--unread .app-chat-panel__conversation-item-time,
.app-chat-panel__conversation-item--unread .app-chat-panel__conversation-item-id {
  color: #1d4ed8;
}

.app-chat-panel__conversation-item--unread .app-chat-panel__conversation-item-title-wrap {
  padding: 2px 6px 2px 0;
  background: linear-gradient(90deg, rgba(219, 234, 254, 0.92), rgba(219, 234, 254, 0));
}

.app-chat-panel__conversation-item--unread .app-chat-panel__conversation-item-title {
  font-weight: 700;
}

.app-chat-panel__conversation-item--unread .app-chat-panel__conversation-item-preview {
  color: #1e3a8a;
  font-weight: 600;
}

.app-chat-panel__conversation-item--unread .app-chat-panel__conversation-item-time {
  background: rgba(219, 234, 254, 0.9);
  padding: 2px 6px;
  border-radius: 999px;
}

.app-chat-panel__conversation-item--unread .app-chat-panel__conversation-item-id {
  color: #2563eb;
}

.app-chat-panel__conversation-item-status {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.3;
  color: #0f172a;
  background: rgba(226, 232, 240, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chat-panel__conversation-item-status--queued {
  color: #92400e;
  background: rgba(253, 230, 138, 0.56);
}

.app-chat-panel__conversation-item-status--started {
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.62);
}

.app-chat-panel__conversation-item-status--failed {
  color: #b91c1c;
  background: rgba(254, 202, 202, 0.6);
}

.app-chat-panel__conversation-item-flag {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chat-panel__conversation-item-flag--unread {
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.92);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.app-chat-panel__conversation-item-flag--section {
  color: #475569;
  background: rgba(226, 232, 240, 0.76);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.app-chat-panel__conversation-item-flag--request {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.96);
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.16);
}

.app-chat-panel__conversation-item-actions {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: center;
  gap: 4px;
  padding: 6px 6px 6px 0;
}

.app-chat-panel__conversation-item-actions--recent {
  justify-content: flex-start;
}

.app-chat-panel__conversation-item-folder.ant-btn,
.app-chat-panel__conversation-item-delete.ant-btn {
  flex-shrink: 0;
  width: 32px;
  min-width: 32px;
  height: 32px;
  color: #94a3b8;
  border-radius: 10px;
}

.app-chat-panel__conversation-item-delete.ant-btn {
  margin-right: 0;
}

.app-chat-panel__conversation-item-delete.ant-btn:hover,
.app-chat-panel__conversation-item-delete.ant-btn:focus-visible {
  color: #dc2626;
  background: rgba(254, 226, 226, 0.9);
}

.app-chat-panel__general-section-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-chat-panel__general-section-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.app-chat-panel__conversation-main {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.app-chat-panel__conversation-empty,
.app-chat-panel__conversation-empty-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.app-chat-panel__conversation-empty-body {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

.app-chat-panel__conversation-empty .ant-empty,
.app-chat-panel__conversation-empty-list .ant-empty {
  margin: auto;
}

.app-chat-panel--tablet-app .app-chat-panel__conversation-empty .ant-empty,
.app-chat-panel--tablet-app .app-chat-panel__conversation-empty-list .ant-empty {
  width: 100%;
  max-width: 100%;
}

.app-chat-preview-card--activity {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 12px 12px;
  gap: 4px;
  border-color: rgba(59, 130, 246, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94)),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 34%);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  box-sizing: border-box;
  overflow: visible;
}

.app-chat-preview-card--activity {
  margin-bottom: 0;
}

.app-chat-preview-card__body--activity {
  padding-top: 6px;
}

.app-chat-preview-card__body--activity-summary {
  border-top: 0;
  padding-top: 0;
}

.app-chat-preview-card--activity .app-chat-preview-card__meta,
.app-chat-preview-card--activity .app-chat-preview-card__body,
.app-chat-preview-card--activity .app-chat-panel__preview-rich,
.app-chat-preview-card--activity .previewer-ui__editor,
.app-chat-preview-card--activity .previewer-ui__editor-body {
  min-width: 0;
  max-width: 100%;
}

.app-chat-preview-card__glyph--activity {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.98), rgba(219, 234, 254, 0.94));
}

.app-chat-activity-card__title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.app-chat-activity-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.app-chat-activity-card__request-id.ant-typography {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chat-activity-card__summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(191, 219, 254, 0.52);
}

.app-chat-activity-card__summary-label.ant-typography {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
}

.app-chat-message__activity-status.ant-typography {
  display: block;
  margin: 0;
  width: 100%;
  font-size: 12px;
  line-height: 1.5;
  color: #0f172a;
  font-weight: 600;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-preview-card--activity .app-chat-preview-card__header {
  padding: 0;
  align-items: flex-start;
}

.app-chat-activity-checklist-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.app-chat-activity-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.app-chat-activity-checklist--ticker {
  gap: 4px;
}

.app-chat-activity-checklist__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.app-chat-activity-checklist__title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.app-chat-activity-checklist__title {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.app-chat-activity-checklist__summary {
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.app-chat-activity-checklist__legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 10px;
  white-space: nowrap;
}

.app-chat-activity-checklist__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.app-chat-activity-checklist__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}

.app-chat-activity-checklist__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  font-size: 13px;
  line-height: 1;
}

.app-chat-activity-checklist__item--complete .app-chat-activity-checklist__icon {
  color: #16a34a;
}

.app-chat-activity-checklist__item--current .app-chat-activity-checklist__icon {
  color: #2563eb;
}

.app-chat-activity-checklist__item--pending .app-chat-activity-checklist__icon {
  color: #94a3b8;
}

.app-chat-activity-checklist__item--error .app-chat-activity-checklist__icon {
  color: #dc2626;
}

.app-chat-activity-checklist__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-chat-activity-checklist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.app-chat-activity-checklist__label {
  min-width: 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.app-chat-activity-checklist__state {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-chat-activity-checklist__item--current .app-chat-activity-checklist__state {
  color: #2563eb;
}

.app-chat-activity-checklist__item--complete .app-chat-activity-checklist__state {
  color: #15803d;
}

.app-chat-activity-checklist__item--error .app-chat-activity-checklist__state {
  color: #b91c1c;
}

.app-chat-activity-ticker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.92);
}

.app-chat-activity-ticker__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.app-chat-activity-ticker__label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.app-chat-activity-ticker__body {
  margin: 0;
  color: #0f172a;
  font: 12px/1.5 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-activity-checklist-stack__request-tree {
  margin-top: 2px;
}

.app-chat-embedded-request-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: rgba(239, 246, 255, 0.82);
}

.app-chat-embedded-request-tree__title {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.app-chat-embedded-request-tree__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.app-chat-panel__conversation-view,
.app-chat-panel__conversation-view-inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.app-chat-panel__conversation-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  background: rgba(248, 250, 252, 0.92);
}

.app-chat-panel__resource-strip {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.app-chat-panel__resource-strip-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  padding: 8px 12px 0;
  max-height: min(32vh, 240px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.app-chat-panel__resource-strip-list::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .app-chat-activity-checklist__header,
  .app-chat-activity-checklist__row {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-chat-activity-checklist__legend {
    white-space: normal;
  }
}

.app-chat-panel__resource-chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.app-chat-panel__resource-chip-main {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.app-chat-panel__resource-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  background: rgba(226, 232, 240, 0.9);
  color: #1e293b;
  font-size: 12px;
}

.app-chat-panel__resource-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-chat-panel__resource-chip-meta {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-chat-panel__title-input {
  width: min(240px, 48vw);
}

.app-chat-panel__title-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  position: relative;
  z-index: 5;
}

.app-chat-panel__title-copy {
  display: flex;
  flex: 1;
  min-width: 0;
}

.app-chat-panel__title-copy .ant-typography {
  margin: 0;
}

.app-chat-panel__title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.app-chat-panel__title-heading {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}

.app-chat-panel__title-heading-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.app-chat-panel__title-heading-main {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.app-chat-panel__title-heading .ant-typography {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-chat-panel__title-heading-copy .ant-typography {
  width: 100%;
}

.app-chat-panel__title-edit-button.ant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex: 0 0 auto;
}

.app-chat-panel__title-cluster {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: -2px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.92), rgba(37, 99, 235, 0.92));
  color: #eff6ff;
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.14);
  flex: 0 0 auto;
  overflow: visible;
  z-index: 6;
}

.app-chat-panel__title-cluster-button,
.app-chat-panel__title-cluster-mini {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.app-chat-panel__title-cluster-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-size: 17px;
}

.app-chat-panel__title-cluster-button.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.app-chat-panel__title-cluster-mini {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: #ffffff;
  color: #334155;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.72);
  z-index: 7;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.app-chat-panel__title-cluster-mini.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.app-chat-panel__title-cluster-mini--chat {
  top: 50%;
  left: 50%;
}

.app-chat-panel__title-cluster-mini--runtime {
  top: 50%;
  left: 50%;
}

.app-chat-panel__title-cluster-mini--error {
  top: 50%;
  left: 50%;
}

.app-chat-panel__title-cluster.is-open .app-chat-panel__title-cluster-mini {
  opacity: 1;
  pointer-events: auto;
}

.app-chat-panel__title-cluster.is-open .app-chat-panel__title-cluster-mini--chat {
  transform: translate(calc(-50% + 48px), calc(-50% + 0px)) scale(1);
}

.app-chat-panel__title-cluster.is-open .app-chat-panel__title-cluster-mini--runtime {
  transform: translate(calc(-50% + 38px), calc(-50% + 28px)) scale(1);
}

.app-chat-panel__title-cluster.is-open .app-chat-panel__title-cluster-mini--error {
  transform: translate(calc(-50% + 4px), calc(-50% + 48px)) scale(1);
}

@media (max-width: 900px) {
  .app-chat-panel__title-row {
    gap: 4px;
  }
}

.app-chat-panel--maximized .app-chat-panel__stack,
.app-chat-panel--maximized .app-chat-panel__conversation-shell {
  height: 100%;
}

.app-chat-panel--maximized .app-chat-panel__messages {
  padding-bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 10px));
  scroll-padding-bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 10px));
}

.app-chat-panel--maximized .app-chat-panel__system-status-slot--bottom {
  padding-bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) + 4px));
}

.app-chat-panel--rooms {
  background: transparent;
}

.app-chat-panel--rooms .ant-card-head {
  min-height: 0;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.app-chat-panel--rooms .ant-card-head-wrapper {
  min-height: 0;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
}

.app-chat-panel--rooms .ant-card-head-title {
  display: block;
  min-width: 0;
  padding: 0;
}

.app-chat-panel--rooms .ant-card-extra {
  padding: 0;
}

.app-chat-panel--rooms .ant-card-extra .ant-space {
  gap: 8px !important;
}

.app-chat-panel--rooms .ant-card-body {
  padding: 0;
}

.app-chat-panel--rooms.ant-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-chat-panel--rooms .app-chat-panel__stack {
  gap: 0;
}

.app-chat-panel--rooms .ant-card-extra .ant-btn,
.app-chat-panel--rooms .app-chat-panel__mobile-actions .ant-btn,
.app-chat-panel--rooms .app-chat-panel__conversation-list-header-actions .ant-btn {
  border-radius: 999px;
}

.app-chat-panel--rooms .ant-card-extra .ant-btn {
  height: 32px;
  padding-inline: 10px;
  border: 0;
  color: #334155;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.26),
    0 6px 16px rgba(148, 163, 184, 0.12);
}

.app-chat-panel--rooms .ant-card-extra .ant-btn .anticon {
  color: #2563eb;
}

.app-chat-panel--rooms .ant-card-extra .ant-btn:hover,
.app-chat-panel--rooms .ant-card-extra .ant-btn:focus-visible {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.32),
    0 8px 18px rgba(96, 165, 250, 0.16);
}

.app-chat-panel--rooms .ant-card-extra .ant-btn:hover,
.app-chat-panel--rooms .ant-card-extra .ant-btn:focus-visible,
.app-chat-panel--rooms .app-chat-panel__mobile-actions .ant-btn:hover,
.app-chat-panel--rooms .app-chat-panel__mobile-actions .ant-btn:focus-visible {
  transform: translateY(-1px);
}

.app-chat-panel--rooms .app-chat-panel__rooms-header-actions .ant-btn {
  width: 36px;
  min-width: 36px;
  padding-inline: 0;
}

.app-chat-panel--rooms .app-chat-panel__rooms-title-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: wrap;
  margin-top: 6px;
}

.app-chat-panel--rooms .app-chat-panel__conversation-shell {
  gap: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-chat-panel--rooms .app-chat-panel__conversation-list {
  flex-basis: 300px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  border-right: 0;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(244, 248, 253, 0.98), rgba(235, 241, 248, 0.96)),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 26%);
  box-shadow:
    inset 0 0 0 1px rgba(196, 210, 226, 0.96),
    0 8px 24px rgba(148, 163, 184, 0.12);
}

.app-chat-panel--rooms .app-chat-panel__conversation-list-header {
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: transparent;
}

.app-chat-panel--rooms .app-chat-panel__conversation-list-header-actions .ant-space {
  gap: 8px !important;
}

.app-chat-panel--rooms .app-chat-panel__conversation-list-header-actions .ant-btn {
  width: 36px;
  min-width: 36px;
  height: 32px;
  padding-inline: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.24),
    0 6px 16px rgba(148, 163, 184, 0.12);
}

.app-chat-panel--rooms .app-chat-panel__conversation-list-header-actions .ant-btn:hover,
.app-chat-panel--rooms .app-chat-panel__conversation-list-header-actions .ant-btn:focus-visible {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.32),
    0 8px 18px rgba(96, 165, 250, 0.16);
  transform: translateY(-1px);
}

.app-chat-panel--rooms .app-chat-panel__conversation-list-header-actions .ant-btn .anticon {
  color: #2563eb;
}

.app-chat-panel--rooms .app-chat-panel__conversation-list-header-actions .ant-btn.ant-btn-dangerous .anticon {
  color: #dc2626;
}

.app-chat-panel--rooms .app-chat-panel__conversation-list-search .ant-input-affix-wrapper,
.app-chat-panel--rooms .app-chat-panel__conversation-list-search .ant-input-affix-wrapper:hover,
.app-chat-panel--rooms .app-chat-panel__conversation-list-search .ant-input-affix-wrapper:focus,
.app-chat-panel--rooms .app-chat-panel__conversation-list-search .ant-input-affix-wrapper:focus-within {
  min-height: 38px;
  border-color: rgba(196, 210, 226, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.03),
    0 6px 18px rgba(148, 163, 184, 0.08);
}

.app-chat-panel--rooms .app-chat-panel__conversation-list-search {
  padding: 10px 10px 0;
}

.app-chat-panel--rooms .app-chat-panel__conversation-list-body {
  padding: 10px;
  gap: 4px;
}

.app-chat-panel--rooms .app-chat-panel__conversation-main {
  gap: 0;
  flex: 1 1 100%;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.app-chat-panel--rooms .app-chat-panel__conversation-view {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.app-chat-panel--rooms .app-chat-panel__conversation-view-inner {
  flex: 1 0 auto;
  min-height: 100%;
  overflow: visible;
}

.app-chat-panel__conversation-list-drawer-shell .ant-drawer-content,
.app-chat-panel__conversation-list-drawer-shell .ant-drawer-header {
  background:
    linear-gradient(180deg, rgba(244, 248, 253, 0.98), rgba(235, 241, 248, 0.96)),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 26%);
}

.app-chat-panel__conversation-list-drawer-shell .ant-drawer-header {
  border-bottom: 1px solid rgba(196, 210, 226, 0.96);
}

.app-chat-panel__conversation-list-drawer-shell .ant-drawer-body {
  padding: 10px;
}

.app-chat-panel__conversation-list-drawer .app-chat-panel__conversation-list {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(196, 210, 226, 0.96),
    0 10px 28px rgba(148, 163, 184, 0.14);
}

.app-chat-panel--rooms .app-chat-panel__conversation-empty,
.app-chat-panel--rooms .app-chat-panel__conversation-empty-list {
  background: transparent;
}

.app-chat-panel--rooms .app-chat-panel__conversation-loading {
  border-radius: 14px;
  background: rgba(237, 243, 251, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(196, 210, 226, 0.9),
    0 8px 24px rgba(148, 163, 184, 0.12);
}

.app-chat-panel--rooms .app-chat-panel__messages {
  flex: 1 1 auto;
  min-height: 100%;
  gap: 2px;
  padding: 1px 0 0;
  border-radius: 0;
  background: linear-gradient(180deg, #edf3fb 0%, #e4edf8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(196, 210, 226, 0.96),
    0 8px 24px rgba(148, 163, 184, 0.12);
  overflow: visible;
}

.app-chat-panel--rooms .app-chat-panel__messages-empty,
.app-chat-panel--rooms .app-chat-panel__conversation-empty {
  padding: 8px;
}

.app-chat-panel--rooms .app-chat-panel__conversation-empty--shared {
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.app-chat-panel--rooms .app-chat-panel__conversation-empty--shared .app-chat-panel__conversation-empty-body {
  padding: 18px;
}

.app-chat-panel--rooms .app-chat-panel__messages-empty-card {
  border-radius: 14px;
  border: 1px solid rgba(196, 210, 226, 0.92);
  background: rgba(248, 250, 252, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.app-chat-panel--rooms .app-chat-message-group {
  margin: 0;
  padding: 10px 8px;
  border-radius: 18px;
  border-color: rgba(196, 210, 226, 0.92);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94)),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.06), transparent 42%);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.09);
}

.app-chat-panel--rooms .app-chat-message-group__header {
  gap: 4px;
}

.app-chat-panel--rooms .app-chat-panel__system-status-slot--bottom {
  margin: 0;
  padding: 0;
}

.app-chat-panel--rooms .app-chat-panel__system-status,
.app-chat-panel--rooms .app-chat-panel__system-status--records {
  padding: 2px 0 0;
  border-radius: 0;
  border: 0;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: inset 0 0 0 1px rgba(219, 226, 236, 0.82);
}

.app-chat-panel--rooms .app-chat-panel__system-status--records {
  max-height: none;
}

.app-chat-panel--rooms .app-chat-panel__system-status-records-body {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

.app-chat-panel--rooms .app-chat-panel__system-status-records-header {
  min-height: 32px;
}

.app-chat-panel--rooms .app-chat-panel__system-status-records-actions {
  gap: 4px;
}

.app-chat-panel--rooms .app-chat-panel__system-status-records-sort-select.ant-select {
  min-width: 84px;
  max-width: 104px;
}

.app-chat-panel--rooms .app-chat-panel__system-status-records-sort-select.ant-select .ant-select-selector {
  min-height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.92)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(196, 210, 226, 0.92),
    0 6px 18px rgba(148, 163, 184, 0.08) !important;
}

.app-chat-panel--rooms .app-chat-panel__system-status-filter-group {
  gap: 4px;
  padding: 2px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.24),
    0 6px 16px rgba(148, 163, 184, 0.12);
}

.app-chat-panel--rooms .app-chat-panel__system-status-filter-segmented.ant-segmented {
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.24),
    0 6px 16px rgba(148, 163, 184, 0.12);
}

.app-chat-panel--rooms .app-chat-panel__system-status-filter-toggle.ant-btn,
.app-chat-panel--rooms .app-chat-panel__system-status-filter-cycle.ant-btn {
  height: 32px;
  padding-inline: 10px;
  color: #334155;
}

.app-chat-panel--rooms .app-chat-panel__system-status-filter-toggle.ant-btn:hover,
.app-chat-panel--rooms .app-chat-panel__system-status-filter-toggle.ant-btn:focus-visible,
.app-chat-panel--rooms .app-chat-panel__system-status-filter-cycle.ant-btn:hover,
.app-chat-panel--rooms .app-chat-panel__system-status-filter-cycle.ant-btn:focus-visible {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.94));
}

.app-chat-panel--rooms .app-chat-panel__system-status-filter-toggle--active.ant-btn {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.28),
    0 8px 18px rgba(96, 165, 250, 0.14);
}

.app-chat-panel--rooms .app-chat-panel__system-status-filter-segmented.ant-segmented .ant-segmented-item {
  min-height: 32px;
}

.app-chat-panel--rooms .app-chat-panel__system-status-filter-segmented.ant-segmented .ant-segmented-item-label {
  padding-inline: 10px;
  color: #475569;
}

.app-chat-panel--rooms .app-chat-panel__system-status-filter-segmented.ant-segmented .ant-segmented-item-selected .ant-segmented-item-label {
  color: #1d4ed8;
}

.app-chat-panel--rooms .app-chat-panel__system-status-filter-segmented.ant-segmented .ant-segmented-thumb {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.94));
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.app-chat-panel--rooms .app-chat-panel__composer {
  gap: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.app-chat-panel--rooms .app-chat-panel__composer-topline,
.app-chat-panel--rooms .app-chat-panel__composer-input-shell,
.app-chat-panel--rooms .app-chat-panel__composer-attachment-strip {
  padding-inline: 0;
}

.app-chat-panel--rooms .app-chat-panel__composer-topline,
.app-chat-panel--rooms .app-chat-panel__composer-input-shell,
.app-chat-panel--rooms .app-chat-panel__composer-attachment-strip,
.app-chat-panel--rooms .app-chat-panel__composer-queued-list {
  border-radius: 0;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: inset 0 0 0 1px rgba(219, 226, 236, 0.82);
}

.app-chat-panel--rooms .app-chat-panel__composer-topline {
  align-items: center;
  gap: 2px;
  min-height: 28px;
  padding: 0;
}

.app-chat-panel--rooms .app-chat-panel__composer-actions {
  margin-left: auto;
}

.app-chat-panel--rooms .app-chat-panel__composer-action-buttons {
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-chat-panel--rooms .app-chat-panel__composer-utility-buttons .ant-btn,
.app-chat-panel--rooms .app-chat-panel__composer-action-buttons .ant-btn {
  min-width: 32px;
  height: 28px;
  padding-inline: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.26),
    0 6px 16px rgba(148, 163, 184, 0.12);
}

.app-chat-panel--rooms .app-chat-panel__composer-utility-buttons .ant-btn .anticon,
.app-chat-panel--rooms .app-chat-panel__composer-action-buttons .ant-btn .anticon {
  color: #2563eb;
}

.app-chat-panel--rooms .app-chat-panel__composer-utility-buttons .ant-btn.ant-btn-icon-only,
.app-chat-panel--rooms .app-chat-panel__composer-action-buttons .ant-btn.ant-btn-icon-only {
  width: 32px;
  padding-inline: 0;
}

.app-chat-panel--rooms .app-chat-panel__composer-utility-buttons .ant-btn:hover,
.app-chat-panel--rooms .app-chat-panel__composer-utility-buttons .ant-btn:focus-visible,
.app-chat-panel--rooms .app-chat-panel__composer-action-buttons .ant-btn:hover,
.app-chat-panel--rooms .app-chat-panel__composer-action-buttons .ant-btn:focus-visible {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.32),
    0 8px 18px rgba(96, 165, 250, 0.16);
  transform: translateY(-1px);
}

.app-chat-panel--rooms .app-chat-panel__composer-type {
  flex: 1 1 180px;
}

.app-chat-panel--rooms .app-chat-panel__composer-type .ant-select {
  width: 100%;
}

.app-chat-panel--rooms .app-chat-panel__composer-type .ant-select-selector {
  min-height: 28px;
  padding-inline: 10px !important;
  border: 0 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.92)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(196, 210, 226, 0.92),
    0 6px 18px rgba(148, 163, 184, 0.08);
}

.app-chat-panel--rooms .app-chat-panel__composer-type .ant-select-selection-item,
.app-chat-panel--rooms .app-chat-panel__composer-type .ant-select-selection-placeholder {
  line-height: 26px !important;
}

.app-chat-panel--rooms .app-chat-panel__composer-attachment-strip {
  width: auto;
  margin: 0;
  padding: 0;
}

.app-chat-panel--rooms .app-chat-panel__composer-attachment-chip {
  border-radius: 12px;
  border-color: rgba(196, 210, 226, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.08);
}

.app-chat-panel--rooms .app-chat-panel__composer-input-shell {
  min-height: clamp(38px, 6dvh, 52px);
  padding: 0;
}

.app-chat-panel--rooms .app-chat-panel__composer-input-shell--autosize {
  min-height: auto;
}

.app-chat-panel--rooms .app-chat-panel__composer-input-shell textarea.ant-input {
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 14px;
  line-height: 1.25;
  border-radius: 16px;
  border-color: rgba(196, 210, 226, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.app-chat-panel--rooms .app-chat-panel__composer-input-shell textarea.ant-input:hover,
.app-chat-panel--rooms .app-chat-panel__composer-input-shell textarea.ant-input:focus,
.app-chat-panel--rooms .app-chat-panel__composer-input-shell textarea.ant-input:focus-visible {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow:
    0 0 0 2px rgba(191, 219, 254, 0.55),
    inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.app-chat-panel--rooms .app-chat-panel__composer-input-shell--autosize textarea.ant-input {
  height: auto;
  min-height: 38px;
}

.app-chat-panel--rooms .app-chat-panel__composer-actions .ant-btn-primary {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 10px 20px rgba(96, 165, 250, 0.16);
}

@media (max-width: 768px) {
  .app-chat-panel--rooms .app-chat-panel__conversation-list {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-right: 0;
  }

  .app-chat-panel--rooms .app-chat-panel__conversation-main {
    padding: 0;
  }

  .app-chat-panel--rooms .app-chat-panel__messages,
  .app-chat-panel--rooms .app-chat-panel__composer,
  .app-chat-panel--rooms .app-chat-panel__resource-strip,
  .app-chat-panel--rooms .app-chat-panel__system-status,
  .app-chat-panel--rooms .app-chat-panel__system-status--records {
    border-radius: 0;
  }

  .app-chat-panel--rooms .app-chat-panel__composer {
    gap: 0;
  }

  .app-chat-panel--rooms .app-chat-panel__composer-topline {
    min-height: 24px;
    gap: 2px;
    padding: 0;
  }

  .app-chat-panel--rooms .app-chat-panel__composer-utility-buttons .ant-btn,
  .app-chat-panel--rooms .app-chat-panel__composer-action-buttons .ant-btn {
    min-width: 28px;
    height: 24px;
  }

  .app-chat-panel--rooms .app-chat-panel__composer-utility-buttons .ant-btn:not(.ant-btn-icon-only),
  .app-chat-panel--rooms .app-chat-panel__composer-action-buttons .ant-btn:not(.ant-btn-icon-only) {
    padding-inline: 8px;
  }

  .app-chat-panel--rooms .app-chat-panel__composer-utility-buttons .ant-btn.ant-btn-icon-only,
  .app-chat-panel--rooms .app-chat-panel__composer-action-buttons .ant-btn.ant-btn-icon-only {
    width: 28px;
    padding-inline: 0;
  }

  .app-chat-panel--rooms .app-chat-panel__composer-type .ant-select-selector {
    min-height: 24px;
    padding-inline: 8px !important;
  }

  .app-chat-panel--rooms .app-chat-panel__composer-type .ant-select-selection-item,
  .app-chat-panel--rooms .app-chat-panel__composer-type .ant-select-selection-placeholder {
    line-height: 22px !important;
  }

  .app-chat-panel--rooms .app-chat-panel__composer-input-shell {
    min-height: 34px;
  }

  .app-chat-panel--rooms .app-chat-panel__composer-input-shell textarea.ant-input {
    min-height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 1.2;
  }
}

.app-chat-panel--maximized .app-chat-panel__composer {
  padding-bottom: 0;
}

.app-chat-panel--maximized .app-chat-panel__composer-input-shell {
  min-height: clamp(44px, 6.5dvh, 56px);
}

.app-chat-panel--maximized .app-chat-panel__composer textarea.ant-input {
  height: clamp(44px, 6.5dvh, 56px);
  min-height: clamp(44px, 6.5dvh, 56px);
  padding-top: 6px;
  padding-bottom: 4px;
}

@media (max-width: 760px) {
  .app-chat-panel--maximized {
    --app-chat-panel-maximized-inset-top: env(safe-area-inset-top, 0px);
    --app-chat-panel-maximized-inset-right: env(safe-area-inset-right, 0px);
    --app-chat-panel-maximized-inset-bottom: env(safe-area-inset-bottom, 0px);
    --app-chat-panel-maximized-inset-left: env(safe-area-inset-left, 0px);
  }
}

:root.app-virtual-keyboard-open .app-chat-panel--maximized {
  --app-chat-panel-maximized-inset-bottom: 0px;
}

:root.app-virtual-keyboard-open .app-chat-panel--maximized .ant-card-body {
  padding-bottom: 0;
}

:root.app-virtual-keyboard-open .app-chat-panel--maximized .app-chat-panel__composer {
  padding-bottom: 0;
}

:root.app-virtual-keyboard-open .app-chat-panel--maximized .app-chat-panel__composer textarea.ant-input {
  padding-bottom: 6px;
}

@media (max-width: 768px) {
  .app-chat-panel__conversation-shell {
    flex-direction: column;
  }

  .app-chat-panel__conversation-list {
    width: 100%;
    min-width: 0;
    border-right: 0;
  }

  .app-chat-panel__conversation-main {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .app-chat-panel .app-chat-panel__conversation-header .ant-typography {
    font-size: 14px;
  }

  .app-chat-panel .app-chat-panel__system-status .ant-typography {
    font-size: 12px;
  }

  .app-chat-panel .app-chat-message {
    max-width: min(74%, 680px);
    padding: 10px 13px;
  }

  .app-chat-panel .app-chat-message__header .ant-typography {
    font-size: 14px;
  }

  .app-chat-panel .app-chat-message__header-meta .ant-typography {
    font-size: 13px;
  }

  .app-chat-panel .app-chat-message__body.ant-typography {
    font-size: 11px !important;
    line-height: 1.65;
  }

  .app-chat-panel .app-chat-message__status {
    font-size: 12px;
  }

  .app-chat-panel .app-chat-message__preview-meta .ant-typography {
    font-size: 13px;
  }

  .app-chat-panel .app-chat-panel__composer .ant-input-textarea textarea {
    font-size: 15px;
    line-height: 1.5;
  }

  .app-chat-panel .app-chat-panel__composer-type .ant-select-selector,
  .app-chat-panel .app-chat-panel__conversation-item-title {
    font-size: 13px;
  }

  .app-chat-panel .app-chat-panel__conversation-item-preview {
    font-size: 12px;
  }
}

@media (min-width: 768px) and (max-width: 1366px) {
  .app-chat-panel .app-chat-panel__title-copy .ant-typography,
  .app-chat-panel .app-chat-panel__conversation-header .ant-typography {
    font-size: 15px;
  }

  .app-chat-panel .app-chat-message__header .ant-typography {
    font-size: 16px;
  }

  .app-chat-panel .app-chat-panel__conversation-section-title,
  .app-chat-panel .app-chat-panel__conversation-section-count,
  .app-chat-panel .app-chat-panel__conversation-item-time,
  .app-chat-panel .app-chat-panel__conversation-item-id,
  .app-chat-panel .app-chat-panel__conversation-item-status,
  .app-chat-panel .app-chat-panel__conversation-item-flag,
  .app-chat-panel .app-chat-panel__conversation-item-unread-badge,
  .app-chat-panel .app-chat-panel__history-loader,
  .app-chat-panel .app-chat-panel__system-status .ant-typography,
  .app-chat-panel .app-chat-message__header-meta .ant-typography,
  .app-chat-panel .app-chat-message__status,
  .app-chat-panel .app-chat-message__request-detail,
  .app-chat-panel .app-chat-preview-card__kind,
  .app-chat-panel .app-chat-preview-card__kind.ant-typography,
  .app-chat-panel .app-chat-panel__composer-queue-order,
  .app-chat-panel .app-chat-panel__composer-attachment-pending-label,
  .app-chat-panel .app-chat-panel__resource-chip,
  .app-chat-panel .app-chat-panel__resource-strip-filter,
  .app-chat-panel .app-chat-panel__resource-strip-empty.ant-typography,
  .app-chat-panel .app-chat-panel__busy-overlay span {
    font-size: 14px;
  }

  .app-chat-panel .app-chat-panel__conversation-item-title,
  .app-chat-panel .app-chat-panel__composer-type .ant-select-selector,
  .app-chat-panel .app-chat-panel__composer .ant-btn,
  .app-chat-panel .app-chat-panel__composer-actions .ant-typography,
  .app-chat-panel .app-chat-panel__composer-attachment-name,
  .app-chat-panel .app-chat-preview-card__label,
  .app-chat-panel .app-chat-preview-card__label.ant-typography {
    font-size: 14px;
  }

  .app-chat-panel .app-chat-preview-card__ranked-link-anchor {
    font-size: 13px;
  }

  .app-chat-panel .app-chat-panel__conversation-item-preview,
  .app-chat-panel .app-chat-message__header-meta,
  .app-chat-panel .app-chat-message__header-meta strong,
  .app-chat-panel .app-chat-message__header-meta > span,
  .app-chat-panel .app-chat-panel__composer-queue-text,
  .app-chat-panel .app-chat-panel__composer-queue-more,
  .app-chat-panel .app-chat-panel__preview-modal-close-label {
    font-size: 15px;
  }

  .app-chat-panel .app-chat-message__body,
  .app-chat-panel .app-chat-message__body.ant-typography {
    font-size: 14px !important;
    line-height: 1.6;
  }

  .app-chat-panel .app-chat-panel__composer .ant-input-textarea textarea,
  .app-chat-panel .app-chat-panel__composer textarea.ant-input {
    font-size: 19px;
    line-height: 1.6;
  }

.app-chat-panel .app-chat-panel__composer-input-shell,
.app-chat-panel .app-chat-panel__composer textarea.ant-input {
  min-height: 0;
}
}

@media (min-width: 820px) and (max-width: 1366px) {
  .app-chat-panel .app-chat-panel__conversation-section-title,
  .app-chat-panel .app-chat-panel__conversation-section-count,
  .app-chat-panel .app-chat-panel__conversation-item-time,
  .app-chat-panel .app-chat-panel__conversation-item-id,
  .app-chat-panel .app-chat-panel__conversation-item-status,
  .app-chat-panel .app-chat-panel__conversation-item-flag,
  .app-chat-panel .app-chat-panel__conversation-item-unread-badge {
    font-size: 11px;
  }

  .app-chat-panel .app-chat-panel__conversation-item-title {
    font-size: 11px;
  }

  .app-chat-panel .app-chat-panel__conversation-item-preview {
    font-size: 12px;
  }

  .app-chat-panel .app-chat-panel__composer .ant-input-textarea textarea,
  .app-chat-panel .app-chat-panel__composer textarea.ant-input {
    font-size: 16px;
  }

  .app-chat-panel--ipad-readable .app-chat-message__body,
  .app-chat-panel--ipad-readable .app-chat-message__body.ant-typography,
  .app-chat-panel--ipad-readable .app-chat-message__block,
  .app-chat-panel--ipad-readable .app-chat-message__block .ant-typography,
  .app-chat-panel--ipad-readable .app-chat-message__block span,
  .app-chat-panel--ipad-readable .app-chat-message__block a {
    font-size: 15px !important;
    line-height: 1.6;
  }

  .app-chat-panel--ipad-readable .app-chat-message__header .ant-typography,
  .app-chat-panel--ipad-readable .app-chat-panel__composer .ant-input-textarea textarea,
  .app-chat-panel--ipad-readable .app-chat-panel__composer textarea.ant-input {
    font-size: 16px;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__conversation-section-title,
  .app-chat-panel--ipad-readable .app-chat-panel__conversation-item-time,
  .app-chat-panel--ipad-readable .app-chat-panel__conversation-item-id,
  .app-chat-panel--ipad-readable .app-chat-panel__conversation-item-status,
  .app-chat-panel--ipad-readable .app-chat-panel__conversation-item-flag,
  .app-chat-panel--ipad-readable .app-chat-panel__conversation-item-unread-badge,
  .app-chat-panel--ipad-readable .app-chat-panel__history-loader,
  .app-chat-panel--ipad-readable .app-chat-panel__system-status .ant-typography,
  .app-chat-panel--ipad-readable .app-chat-message__header-meta .ant-typography,
  .app-chat-panel--ipad-readable .app-chat-message__status,
  .app-chat-panel--ipad-readable .app-chat-message__request-detail,
  .app-chat-panel--ipad-readable .app-chat-preview-card__kind,
  .app-chat-panel--ipad-readable .app-chat-preview-card__kind.ant-typography,
  .app-chat-panel--ipad-readable .app-chat-panel__composer-queue-order,
  .app-chat-panel--ipad-readable .app-chat-panel__composer-attachment-pending-label,
  .app-chat-panel--ipad-readable .app-chat-panel__resource-chip,
  .app-chat-panel--ipad-readable .app-chat-panel__resource-strip-filter,
  .app-chat-panel--ipad-readable .app-chat-panel__resource-strip-empty.ant-typography,
  .app-chat-panel--ipad-readable .app-chat-panel__busy-overlay span {
    font-size: 14px;
  }

}

@media (min-width: 768px) and (pointer: fine) {
  .app-chat-panel .app-chat-message__body,
  .app-chat-panel .app-chat-message__body.ant-typography {
    font-size: 13px !important;
  }
}

@media (min-width: 768px) and (max-width: 1366px) and (pointer: fine) {
  .app-chat-panel .app-chat-message__body,
  .app-chat-panel .app-chat-message__body.ant-typography {
    font-size: 16px !important;
  }
}
