.app-chat-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  max-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(241, 247, 255, 0.98), rgba(230, 240, 252, 0.94));
}

.app-chat-panel .ant-card-body {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 16px;
}

.app-chat-panel__stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  width: 100%;
}

.app-chat-panel__view-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.app-chat-panel__view-switcher .ant-btn {
  border-radius: 999px;
}

.app-chat-panel__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.app-chat-panel__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-chat-panel__meta-row--secondary {
  flex-wrap: wrap;
}

.app-chat-panel__meta-tag.ant-tag {
  margin-inline-end: 0;
  padding-inline: 10px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(191, 219, 254, 0.8);
  color: #1e3a8a;
}

.app-chat-panel__connection-dot {
  display: inline-flex;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
}

.app-chat-panel__connection-dot--connected {
  background: #2563eb;
}

.app-chat-panel__connection-dot--disconnected {
  background: #dc2626;
}

.app-chat-panel__status-copy {
  flex: 1;
}

.app-chat-panel__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 4px 2px;
  overflow-y: auto;
  scrollbar-width: none;
}

.app-chat-panel__messages::-webkit-scrollbar {
  display: none;
}

.app-chat-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  max-width: min(78%, 720px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.app-chat-message--codex {
  align-self: flex-start;
  background: linear-gradient(180deg, #e8f1ff, #f4f8ff);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.app-chat-message--system {
  align-self: center;
  max-width: min(92%, 760px);
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.app-chat-message--user {
  align-self: flex-end;
  background: linear-gradient(180deg, #e9fff3, #f3fff8);
  border: 1px solid rgba(22, 163, 74, 0.18);
}

.app-chat-message__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-chat-message__header-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-chat-message__header-meta .ant-btn {
  color: rgba(71, 85, 105, 0.88);
}

.app-chat-message__body {
  margin: 0;
  white-space: pre-wrap;
}

.app-chat-panel__composer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.16);
}

.app-chat-panel__composer-type {
  width: 100%;
}

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

.app-chat-panel__composer .ant-input-textarea {
  flex: 1;
  min-width: 240px;
}

.app-chat-panel__composer .ant-btn {
  flex: none;
  height: 44px;
  padding-inline: 18px;
  border-radius: 16px;
}

.app-chat-panel__action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.app-chat-panel__action-group .ant-btn {
  border-radius: 999px;
}

.app-chat-panel__action-group--mobile {
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
}

.app-chat-panel__mobile-actions {
  display: inline-flex;
  align-items: center;
}

.app-chat-panel__context-drawer-shell .ant-drawer-content,
.app-chat-panel__context-drawer-shell .ant-drawer-wrapper-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.app-chat-panel__context-drawer-shell .ant-drawer-header,
.app-chat-panel__context-drawer-shell .ant-drawer-header-title,
.app-chat-panel__context-drawer-shell .ant-drawer-extra {
  min-width: 0;
}

.app-chat-panel__context-drawer-shell .ant-drawer-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.app-chat-panel__context-drawer {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
}

.app-chat-panel__context-drawer-tabs {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.app-chat-panel__context-drawer-tabs .ant-tabs-nav {
  flex: 0 0 auto;
  min-width: 0;
}

.app-chat-panel__context-drawer-tabs .ant-tabs-content-holder,
.app-chat-panel__context-drawer-tabs .ant-tabs-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.app-chat-panel__context-drawer-tabs .ant-tabs-tabpane-active {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.app-chat-panel__context-drawer-tabs .ant-tabs-tabpane-hidden {
  display: none;
}

.app-chat-panel__context-drawer-section {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.app-chat-panel__context-drawer-section--editor {
  flex: 1;
  height: 100%;
  min-height: 0;
}

.app-chat-panel__context-drawer-section-head {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
}

.app-chat-panel__context-drawer-space,
.app-chat-panel__context-drawer-radio,
.app-chat-panel__context-drawer-checkbox {
  width: 100%;
  min-width: 0;
}

.app-chat-panel__context-drawer-space.ant-space {
  display: flex;
}

.app-chat-panel__context-drawer-space.ant-space,
.app-chat-panel__context-drawer-space .ant-space-item,
.app-chat-panel__context-drawer-checkbox .ant-checkbox-group,
.app-chat-panel__context-drawer-checkbox .ant-checkbox-wrapper,
.app-chat-panel__context-drawer-checkbox .ant-checkbox + span {
  min-width: 0;
  max-width: 100%;
}

.app-chat-panel__context-drawer-section--participants {
  overflow: hidden;
}

.app-chat-panel__context-drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.app-chat-panel__context-drawer-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.app-chat-panel__context-drawer-card--readonly {
  gap: 6px;
}

.app-chat-panel__context-drawer-collapsible-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-chat-panel__context-drawer-collapsible-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.app-chat-panel__context-drawer-collapsible-summary {
  color: #475569;
  font-size: 12px;
}

.app-chat-panel__context-drawer-collapsible-toggle.ant-btn {
  flex: 0 0 auto;
  padding-inline: 8px;
}

.app-chat-panel__context-drawer-card-copy {
  padding-left: 24px;
}

.app-chat-panel__context-drawer-card-title {
  font-weight: 600;
}

.app-chat-panel__context-drawer-textarea-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
}

.app-chat-panel__context-drawer-textarea {
  height: 100%;
  flex: 1 1 auto;
  min-height: 220px;
  resize: none;
}

.app-chat-panel__context-drawer-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-chat-panel__context-drawer-mobile-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  padding-top: 4px;
}

.app-chat-panel__context-drawer-mobile-actions .ant-btn {
  flex: 1 1 0;
  min-width: 0;
}

.app-chat-panel__error-layout {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.app-chat-panel__error-detail-screen {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
}

.app-chat-panel__error-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-chat-panel__error-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-chat-panel__error-loading,
.app-chat-panel__error-empty {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.app-chat-panel__error-content {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.app-chat-panel__error-list,
.app-chat-panel__error-detail {
  min-height: 0;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.app-chat-panel__error-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  max-height: min(78vh, 1120px);
}

.app-chat-panel__error-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.96));
  cursor: pointer;
}

.app-chat-panel__error-item-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.app-chat-panel__error-item--active {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.app-chat-panel__error-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.app-chat-panel__error-item-message.ant-typography {
  margin: 0;
  color: #475569;
  display: -webkit-box;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.app-chat-panel__error-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.app-chat-panel__error-item-badges .ant-tag {
  margin-inline-end: 0;
  padding-inline: 6px;
  font-size: 10px;
  line-height: 18px;
}

.app-chat-panel__error-detail {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px 24px 24px;
}

.app-chat-panel__error-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
}

.app-chat-panel__error-detail-actions .ant-btn {
  flex: 0 0 auto;
}

.app-chat-panel__error-reference-stage {
  display: grid;
  grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
  gap: 12px;
}

.app-chat-panel__error-reference-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 720px;
  padding-right: 2px;
  overflow-y: auto;
}

.app-chat-panel__error-reference-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  cursor: pointer;
}

.app-chat-panel__error-reference-item-snippet.ant-typography {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.app-chat-panel__error-reference-item--active {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.app-chat-panel__error-reference-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-chat-panel__error-reference-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.app-chat-panel__error-reference-main-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-chat-panel__error-reference-main-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-chat-panel__error-reference-main-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.9);
}

.app-chat-panel__error-reference-main-meta-item .ant-typography:last-child {
  word-break: break-word;
}

.app-chat-panel__error-reference-main-meta-item--wide {
  grid-column: 1 / -1;
}

.app-chat-panel__error-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding-right: 48px;
}

.app-chat-panel__error-detail-header-meta {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.app-chat-panel__error-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-chat-panel__error-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.app-chat-panel__error-summary-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.96));
}

.app-chat-panel__error-detail-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.app-chat-panel__error-detail-line.ant-typography {
  margin: 0;
}

.app-chat-panel__error-tabs .ant-tabs-content-holder,
.app-chat-panel__error-tabs .ant-tabs-content,
.app-chat-panel__error-tabs .ant-tabs-tabpane {
  min-height: 0;
}

.app-chat-panel__error-tab-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-chat-panel__error-tabs .previewer-ui {
  height: auto;
}

.app-chat-panel__error-tabs .previewer-ui__body.previewer-ui__scroll {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.app-chat-panel__error-detail-modal .ant-modal {
  max-width: calc(100vw - 32px);
}

.app-chat-panel__error-detail-modal .ant-modal-content {
  padding: 20px;
}

.app-chat-panel__error-detail--modal {
  padding: 0;
}

.app-chat-panel__error-detail--expanded {
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.app-chat-panel__error-reference-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.88);
}

.app-chat-panel__error-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.app-chat-panel__error-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.app-chat-panel__error-preview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.app-chat-panel__error-preview-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-chat-panel__error-preview-frame-wrap {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.8), rgba(255, 255, 255, 0.96));
}

.app-chat-panel__error-preview-frame {
  width: 100%;
  height: 460px;
  border: 0;
  background: #ffffff;
}

.app-chat-panel__error-preview-card--stage {
  padding: 0;
  border: 0;
  background: transparent;
}

.app-chat-panel__error-preview-frame--stage {
  height: min(78vh, 980px);
}

.app-chat-panel__error-preview-url.ant-typography {
  margin: 0;
  word-break: break-all;
}

.app-chat-panel__error-source-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.82);
}

.app-chat-panel__error-source-preview pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
  font-family:
    'JetBrains Mono', 'SFMono-Regular', 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

@media (max-width: 1280px) {
  .app-chat-panel__error-content {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  }

  .app-chat-panel__error-reference-stage {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .app-chat-panel__error-content,
  .app-chat-panel__error-reference-stage,
  .app-chat-panel__error-reference-main-meta,
  .app-chat-panel__error-summary-strip,
  .app-chat-panel__error-detail-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-chat-panel__error-list {
    max-height: none;
  }

  .app-chat-panel__error-preview-frame--stage {
    height: min(62vh, 720px);
  }
}

.app-chat-panel__error-detail-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-chat-panel__error-detail-block pre {
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .app-chat-panel {
    position: static;
    height: 100%;
    max-height: 100%;
  }
}

@media (max-width: 768px) {
  .app-chat-panel {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .app-chat-panel.ant-card .ant-card-head {
    padding: 0 16px;
  }

  .app-chat-panel.ant-card .ant-card-body {
    padding: 12px;
  }

  .app-chat-message {
    max-width: 92%;
  }

  .app-chat-panel__meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-chat-message__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-chat-panel__error-toolbar,
  .app-chat-panel__error-item-top,
  .app-chat-panel__error-reference-main-top,
  .app-chat-panel__view-switcher {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-chat-panel__error-detail-header {
    align-items: flex-start;
    padding-right: 52px;
  }

  .app-chat-panel__error-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-chat-panel__error-detail-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-chat-panel__error-reference-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-chat-panel__error-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-chat-panel__error-detail-actions {
    top: 16px;
    right: 16px;
  }

  .app-chat-panel__error-detail-actions .ant-btn {
    width: auto;
  }

  .app-chat-panel__error-preview-grid {
    grid-template-columns: 1fr;
  }

  .app-chat-panel__error-preview-frame {
    height: 320px;
  }

  .app-chat-panel__error-preview-frame--stage {
    height: 420px;
  }

  .app-chat-panel__composer {
    align-items: stretch;
    flex-direction: column;
  }

  .app-chat-panel__action-group {
    gap: 6px;
    padding: 5px;
  }

  .app-chat-panel__action-group--mobile {
    gap: 8px;
    padding: 5px;
  }

  .app-chat-panel__mobile-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .app-chat-panel__action-group--mobile .ant-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }

  .app-chat-panel__context-drawer {
    flex: 1;
    gap: 12px;
  }

  .app-chat-panel__context-drawer-shell .ant-drawer-header {
    padding-inline: 14px;
  }

  .app-chat-panel__context-drawer-shell .ant-drawer-body {
    padding: 12px 14px 14px;
  }

  .app-chat-panel__context-drawer-tabs .ant-tabs-nav {
    margin-bottom: 12px;
  }

  .app-chat-panel__context-drawer-tabs .ant-tabs-nav-wrap,
  .app-chat-panel__context-drawer-tabs .ant-tabs-nav-list {
    min-width: 0;
  }

  .app-chat-panel__context-drawer-tabs .ant-tabs-tab {
    padding: 8px 0;
  }

  .app-chat-panel__context-drawer-section {
    padding: 12px;
    border-radius: 16px;
  }

  .app-chat-panel__context-drawer-section--editor {
    flex: 1;
  }

  .app-chat-panel__context-drawer-textarea-shell {
    min-height: 0;
  }

  .app-chat-panel__context-drawer-textarea {
    min-height: 320px;
  }

  .app-chat-panel__context-drawer-mobile-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 2px);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.96) 18%, rgba(248, 250, 252, 0.99));
  }
}
