.app-chat-panel__conversation-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.86);
}

.app-chat-panel__conversation-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.app-chat-panel__conversation-header .ant-typography {
  margin: 0;
  font-size: 13px;
}

.app-chat-panel__conversation-toggle.ant-btn {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
}

.app-chat-panel__conversation-toolbar {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: 24px;
  padding: 0;
  background: transparent;
  overflow: visible;
  pointer-events: none;
}

.app-chat-panel__conversation-toggle.ant-btn {
  pointer-events: auto;
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-chat-panel__conversation-toggle.ant-btn,
.app-chat-panel__conversation-toggle.ant-btn:hover,
.app-chat-panel__conversation-toggle.ant-btn:focus,
.app-chat-panel__conversation-toggle.ant-btn:active,
.app-chat-panel__conversation-toggle.ant-btn-default,
.app-chat-panel__conversation-toggle.ant-btn-default:hover,
.app-chat-panel__conversation-toggle.ant-btn-default:focus,
.app-chat-panel__conversation-toggle.ant-btn-default:active,
.app-chat-panel__conversation-toggle.ant-btn-text,
.app-chat-panel__conversation-toggle.ant-btn-text:hover,
.app-chat-panel__conversation-toggle.ant-btn-text:focus,
.app-chat-panel__conversation-toggle.ant-btn-text:active {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96)),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 38%);
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-header-main,
.app-chat-panel--rooms .app-chat-panel__rooms-share-header-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-header-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  flex: 0 0 auto;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-live-dot--connected {
  background: rgba(34, 197, 94, 0.95);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-status--completed {
  color: #166534;
  background: rgba(220, 252, 231, 0.95);
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-status--attention {
  color: #92400e;
  background: rgba(254, 243, 199, 0.96);
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-status--started,
.app-chat-panel--rooms .app-chat-panel__rooms-share-status--queued {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.96);
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-status--failed,
.app-chat-panel--rooms .app-chat-panel__rooms-share-status--cancelled {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.96);
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-status--neutral {
  color: #475569;
  background: rgba(226, 232, 240, 0.94);
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-summary {
  min-width: 0;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-header-actions,
.app-chat-panel--rooms .app-chat-panel__rooms-share-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-current {
  min-width: 0;
  flex: 1 1 auto;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-action {
  border-radius: 999px;
  color: #334155;
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-filter {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.88);
}

.app-chat-panel--rooms .app-chat-panel__rooms-share-filter--active {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(219, 234, 254, 0.86);
  color: #1d4ed8;
}

@media (max-width: 760px) {
  .app-chat-panel--rooms .app-chat-panel__rooms-share-header-main,
  .app-chat-panel--rooms .app-chat-panel__rooms-share-header-sub {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-chat-panel--rooms .app-chat-panel__rooms-share-summary,
  .app-chat-panel--rooms .app-chat-panel__rooms-share-current {
    white-space: normal;
  }

  .app-chat-panel--rooms .app-chat-panel__rooms-share-header-actions,
  .app-chat-panel--rooms .app-chat-panel__rooms-share-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

.app-chat-panel__messages {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.app-chat-panel__messages-fill-spacer {
  flex: 1 0 0;
  min-height: 0;
  pointer-events: none;
}

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

.app-chat-panel__messages-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(100%, 420px);
  padding: 22px 18px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92)),
    radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 56%);
  box-sizing: border-box;
  color: #475569;
  text-align: center;
}

.app-chat-panel__messages-empty-card strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
}

.app-chat-panel__messages-empty-card span {
  font-size: 12px;
  line-height: 1.5;
}

.app-chat-panel__history-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 4px;
  padding: 0 12px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  transition: max-height 160ms ease, opacity 160ms ease, color 160ms ease;
}

.app-chat-panel__history-loader.is-armed {
  color: #0f172a;
}

.app-chat-panel__history-loader.is-loading {
  color: #1d4ed8;
}

.app-chat-panel__system-status-slot {
  min-height: 0;
  padding: 0;
}

.app-chat-panel__system-status-slot--bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px 8px;
}

.app-chat-panel__system-status {
  display: inline-flex;
  align-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  min-height: 26px;
  margin: 0;
  padding: 6px 8px;
  border-left: 2px solid rgba(59, 130, 246, 0.35);
  background: rgba(248, 250, 252, 0.82);
  transition: opacity 140ms ease;
}

.app-chat-panel__system-status:not(.app-chat-panel__system-status--records) {
  gap: 10px;
  min-height: 30px;
  padding: 7px 10px;
}

.app-chat-panel__system-status--hidden-summary {
  align-items: center;
}

.app-chat-panel__system-status-label {
  flex: 0 0 auto;
  min-width: 30px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.62);
  letter-spacing: 0.04em;
}

.app-chat-panel__system-status .ant-typography {
  margin: 0;
  font-size: 11px;
}

.app-chat-panel__system-status:not(.app-chat-panel__system-status--records) .app-chat-panel__system-status-label {
  min-width: 34px;
  font-size: 11px;
}

.app-chat-panel__system-status:not(.app-chat-panel__system-status--records) .app-chat-panel__system-status-summary-inline {
  font-size: 13px;
  line-height: 1.5;
}

.app-chat-panel__system-status--hidden-summary .app-chat-panel__system-status-summary-inline {
  display: flex;
  align-items: center;
  min-height: 20px;
}

.app-chat-panel__system-status:not(.app-chat-panel__system-status--records) .app-chat-panel__system-status-records-toggle.ant-btn {
  margin-left: auto;
  font-size: 12px;
}

.app-chat-panel__system-status:not(.app-chat-panel__system-status--records) .app-chat-panel__system-status-records-actions {
  margin-left: auto;
}

.app-chat-panel__system-status-dots {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 4px;
}

.app-chat-panel__system-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #60a5fa;
  opacity: 0.35;
  animation: app-chat-message-loading 1.2s ease-in-out infinite;
}

.app-chat-panel__system-status-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.app-chat-panel__system-status-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.app-chat-panel__system-status--records {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  max-height: min(42vh, 360px);
  padding: 8px 10px;
}

.app-chat-panel__system-status-records-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.app-chat-panel__system-status-records-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.app-chat-panel__system-status-records-meta {
  min-width: 0;
  font-size: 11px;
  color: #475569;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-panel__system-status-summary-inline {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 11px;
  line-height: 1.45;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-chat-panel__system-status-records-toggle.ant-btn {
  flex: 0 0 auto;
  padding-inline: 6px;
  color: #1d4ed8;
}

.app-chat-panel__system-status-records-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: nowrap;
}

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

.app-chat-panel__system-status-records-sort-select.ant-select .ant-select-selector {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding-inline: 8px 21px !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 999px !important;
  background: rgba(241, 245, 249, 0.9) !important;
  box-shadow: none !important;
}

.app-chat-panel__system-status-records-sort-select.ant-select .ant-select-selection-item {
  font-size: 11px !important;
  font-weight: 600;
  line-height: 1;
  color: #334155;
}

.app-chat-panel__system-status-records-sort-select.ant-select .ant-select-arrow {
  font-size: 10px;
  color: #64748b;
}

.app-chat-panel__system-status-records-sort-select.ant-select.ant-select-single {
  font-size: 11px !important;
}

.app-chat-panel__system-status-records-sort-select.ant-select .ant-select-selector,
.app-chat-panel__system-status-records-sort-select.ant-select .ant-select-selection-search-input {
  font-size: 11px !important;
}

.app-chat-panel__system-status-records-sort-select--compact.ant-select {
  min-width: 66px;
  max-width: 84px;
}

.app-chat-panel__system-status-records-sort-select--compact.ant-select .ant-select-selector {
  min-height: 24px;
  padding-inline: 7px 20px !important;
}

.app-chat-panel__system-status-records-sort-select--compact.ant-select .ant-select-selection-item,
.app-chat-panel__system-status-records-sort-select--compact.ant-select.ant-select-single,
.app-chat-panel__system-status-records-sort-select--compact.ant-select .ant-select-selector,
.app-chat-panel__system-status-records-sort-select--compact.ant-select .ant-select-selection-search-input {
  font-size: 10px !important;
}

.app-chat-panel__system-status-records-sort-select--compact.ant-select .ant-select-arrow {
  font-size: 9px;
}

.app-chat-panel__system-status-records-toggle--icon-only.ant-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding-inline: 0;
}

.app-chat-panel__system-status-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
}

.app-chat-panel__system-status-filter-segmented.ant-segmented {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
}

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

.app-chat-panel__system-status-filter-segmented.ant-segmented .ant-segmented-item-label {
  padding-inline: 10px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

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

.app-chat-panel__system-status-filter-segmented.ant-segmented .ant-segmented-thumb {
  background: rgba(219, 234, 254, 0.96);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.16);
}

.app-chat-panel__system-status-filter-toggle.ant-btn {
  min-width: 0;
  height: 26px;
  padding-inline: 10px;
  font-size: 11px;
  color: #64748b;
  border-radius: 999px;
  background: transparent;
}

.app-chat-panel__system-status-filter-toggle.ant-btn:hover,
.app-chat-panel__system-status-filter-toggle.ant-btn:focus-visible {
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.96);
}

.app-chat-panel__system-status-filter-toggle--active.ant-btn {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.96);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.16);
}

.app-chat-panel__system-status-filter-cycle.ant-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 30px;
  padding-inline: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.app-chat-panel__system-status-filter-cycle.ant-btn:hover,
.app-chat-panel__system-status-filter-cycle.ant-btn:focus-visible {
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.96);
}

.app-chat-panel__system-status-records-empty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 0;
  font-size: 12px;
  color: #64748b;
}

.app-chat-panel__system-status-records-body {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.app-chat-panel__system-status-records-body--activity-focus {
  gap: 0;
}

.app-chat-panel__system-status-history-loader {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  align-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 2px;
  font-size: 11px;
  color: #475569;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.84));
}

.app-chat-panel__system-status-history-loader > span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
}

.app-chat-panel__system-status-history-loader-button.ant-btn {
  margin-left: auto;
  padding-inline: 6px;
  font-size: 11px;
}

.app-chat-panel__system-execution-record {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(191, 219, 254, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.app-chat-panel__system-execution-record-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.app-chat-panel__system-execution-record-children {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.app-chat-panel__system-execution-record--child {
  position: relative;
  width: calc(100% - 18px);
  margin-left: calc(18px * min(var(--system-execution-indent-level, 1), 3));
  padding-left: 12px;
  border-color: rgba(147, 197, 253, 0.92);
  border-left-width: 4px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.24);
}

.app-chat-panel__system-execution-record--child::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -13px;
  width: 10px;
  height: calc(100% - 32px);
  border-top: 2px solid rgba(96, 165, 250, 0.9);
  border-left: 2px solid rgba(96, 165, 250, 0.9);
  border-top-left-radius: 8px;
  pointer-events: none;
}

.app-chat-panel__system-execution-record-hierarchy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #1d4ed8;
}

.app-chat-panel__system-execution-record-hierarchy::before {
  content: '└';
  font-size: 13px;
  line-height: 1;
  color: #60a5fa;
}

.app-chat-panel__system-execution-record-hierarchy--root::before {
  content: '↳';
}

.app-chat-panel__system-execution-record--collapsed {
  border-color: rgba(148, 163, 184, 0.32);
}

.app-chat-panel__system-execution-record-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.app-chat-panel__system-execution-record-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-chat-panel__system-execution-record-badges {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.app-chat-panel__system-execution-record-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.app-chat-panel__system-execution-record-status-text--compact {
  display: none;
}

.app-chat-panel__system-execution-record-status--mobile-summary {
  display: none;
}

.app-chat-panel__system-execution-record-status--accepted,
.app-chat-panel__system-execution-record-status--queued {
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.72);
}

.app-chat-panel__system-execution-record-status--started {
  color: #1e3a8a;
  background: rgba(191, 219, 254, 0.92);
}

.app-chat-panel__system-execution-record-status--completed {
  color: #15803d;
  background: rgba(217, 249, 157, 0.95);
}

.app-chat-panel__system-execution-record-status--failed,
.app-chat-panel__system-execution-record-status--cancelled {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.92);
}

.app-chat-panel__system-execution-record-status--neutral {
  color: #475569;
  background: rgba(226, 232, 240, 0.92);
}

.app-chat-panel__system-execution-record-status--attention {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.94);
}

.app-chat-panel__system-execution-record-status--prompt {
  color: #7c2d12;
  background: rgba(254, 215, 170, 0.92);
}

.app-chat-panel__system-execution-record-status--unread {
  color: #9a3412;
  background: rgba(254, 215, 170, 0.98);
}

.app-chat-panel__system-execution-record-time {
  flex: 0 0 auto;
  font-size: 11px;
  color: #64748b;
}

.app-chat-panel__system-execution-record-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-panel__system-execution-record-detail {
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-panel__system-execution-record-activity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
  padding: 10px 11px;
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
}

.app-chat-panel__system-execution-record-activity--full {
  width: 100%;
  gap: 10px;
  min-height: 100%;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app-chat-panel__system-execution-record-activity--full .app-chat-activity-checklist,
.app-chat-panel__system-execution-record-activity--full .app-chat-activity-checklist--ticker {
  width: 100%;
}

.app-chat-panel__system-execution-record-activity-focus {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-panel__system-execution-record-activity-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: #1d4ed8;
}

.app-chat-panel__system-execution-record-activity-line {
  font-size: 11px;
  line-height: 1.45;
  color: #334155;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-panel__system-execution-record-activity-line--executor {
  color: #0f766e;
}

.app-chat-panel__system-execution-record-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: center;
  justify-self: end;
  gap: 6px;
}

.app-chat-panel__system-execution-record-action.ant-btn {
  color: #1e3a8a;
}

.app-chat-panel__system-execution-record-action--complete.ant-btn {
  height: 28px;
  padding-inline: 10px;
  border: 1px solid rgba(147, 197, 253, 0.72);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #1d4ed8;
}

@media (max-width: 767px) {
  .app-chat-panel__system-execution-record-tree,
  .app-chat-panel__system-execution-record-children {
    gap: 6px;
  }

  .app-chat-panel__system-status-slot--bottom {
    gap: 8px;
    padding: 0 10px 10px;
  }

  .app-chat-panel__system-status--records {
    gap: 10px;
    padding: 10px 11px;
    max-height: min(46vh, 400px);
  }

  .app-chat-panel__system-status-records-header {
    align-items: center;
    gap: 10px;
  }

  .app-chat-panel__system-status-records-heading {
    gap: 7px 8px;
  }

  .app-chat-panel__system-status-records-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .app-chat-panel__system-status-records-toggle.ant-btn {
    min-height: 32px;
    padding-inline: 10px;
  }

  .app-chat-panel__system-status-records-toggle--icon-only.ant-btn {
    width: 32px;
    min-width: 32px;
    padding-inline: 0;
  }

  .app-chat-panel__system-execution-record {
    gap: 8px;
    padding: 9px 10px;
    border-radius: 14px;
  }

  .app-chat-panel__system-execution-record--child {
    width: calc(100% - 14px);
    margin-left: calc(14px * min(var(--system-execution-indent-level, 1), 2));
    padding-left: 10px;
  }

  .app-chat-panel__system-execution-record--child::before {
    top: 14px;
    left: -11px;
    width: 8px;
    height: calc(100% - 28px);
  }

  .app-chat-panel__system-execution-record-hierarchy {
    font-size: 10px;
  }

  .app-chat-panel__system-execution-record-main {
    gap: 6px;
  }

  .app-chat-panel__system-execution-record-row {
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
  }

  .app-chat-panel__system-execution-record-badges {
    flex-wrap: wrap;
    gap: 3px;
  }

  .app-chat-panel__system-execution-record-status {
    max-width: 100%;
    padding: 2px 7px;
    font-size: 10px;
  }

  .app-chat-panel__system-execution-record-status--desktop-only {
    display: none;
  }

  .app-chat-panel__system-execution-record-status--mobile-summary {
    display: inline-flex;
    min-width: 0;
    max-width: min(100%, 96px);
  }

  .app-chat-panel__system-execution-record-status--mobile-summary .app-chat-panel__system-execution-record-status-text--compact {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-chat-panel__system-execution-record-status-text--full {
    display: none;
  }

  .app-chat-panel__system-execution-record-status-text--compact {
    display: inline;
  }

  .app-chat-panel__system-execution-record-time {
    padding-top: 0;
    font-size: 10px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .app-chat-panel__system-execution-record-text {
    line-height: 1.55;
  }

  .app-chat-panel__system-execution-record-detail {
    line-height: 1.5;
  }

  .app-chat-panel__system-execution-record-activity {
    padding: 9px 10px;
    gap: 3px;
  }

  .app-chat-panel__system-execution-record-activity--full {
    padding: 0;
    gap: 8px;
  }

  .app-chat-panel__system-execution-record-activity-title,
  .app-chat-panel__system-execution-record-activity-line {
    font-size: 10px;
  }

  .app-chat-panel__system-execution-record-actions {
    align-self: center;
    justify-self: stretch;
    padding-top: 0;
  }

  .app-chat-panel__system-execution-record-action.ant-btn {
    min-width: 30px;
    height: 30px;
  }

  .app-chat-panel__system-execution-record-action--complete.ant-btn {
    min-width: 0;
    padding-inline: 9px;
    font-size: 10px;
  }

  .app-chat-panel__system-status-summary-inline {
    font-size: 11px;
  }

  .app-chat-panel__system-status:not(.app-chat-panel__system-status--records) {
    gap: 8px;
    min-height: 28px;
    padding: 6px 8px;
  }

  .app-chat-panel__system-status:not(.app-chat-panel__system-status--records) .app-chat-panel__system-status-label {
    min-width: 32px;
    font-size: 10px;
  }

  .app-chat-panel__system-status:not(.app-chat-panel__system-status--records) .app-chat-panel__system-status-summary-inline {
    font-size: 12px;
  }

  .app-chat-panel__system-status:not(.app-chat-panel__system-status--records) .app-chat-panel__system-status-records-toggle.ant-btn {
    margin-left: auto;
    font-size: 11px;
  }

  .app-chat-panel__system-status:not(.app-chat-panel__system-status--records) .app-chat-panel__system-status-records-actions {
    margin-left: auto;
  }

  .app-chat-panel__system-status-records-actions {
    gap: 6px;
  }

  .app-chat-panel__system-status-filter-cycle.ant-btn {
    height: 28px;
    padding-inline: 7px;
    font-size: 10px;
  }

  .app-chat-panel__system-status-records-sort-select.ant-select {
    min-width: 58px;
  }

  .app-chat-panel__system-status-records-sort-select.ant-select .ant-select-selection-item,
  .app-chat-panel__system-status-records-sort-select.ant-select.ant-select-single,
  .app-chat-panel__system-status-records-sort-select.ant-select .ant-select-selector,
  .app-chat-panel__system-status-records-sort-select.ant-select .ant-select-selection-search-input {
    font-size: 10px !important;
  }

  .app-chat-panel__system-status-filter-segmented.ant-segmented {
    max-width: min(100%, 210px);
  }

  .app-chat-panel__system-status-filter-segmented.ant-segmented .ant-segmented-item {
    min-width: 0;
  }

  .app-chat-panel__system-status-filter-segmented.ant-segmented .ant-segmented-item-label {
    padding-inline: 8px;
    font-size: 10px;
    white-space: nowrap;
  }
}

.app-chat-panel__system-records {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-chat-panel__system-record {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.82);
}

.app-chat-panel__system-record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.app-chat-panel__system-record-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.app-chat-panel__system-record-label {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.app-chat-panel__system-record-status,
.app-chat-panel__system-record-time {
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
}

@media (min-width: 820px) and (max-width: 1366px) {
  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 10px 12px;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-main {
    gap: 6px;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-row {
    align-items: flex-start;
    gap: 8px;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-badges {
    gap: 4px;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-status--desktop-only {
    display: none;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-status--mobile-summary {
    display: inline-flex;
    min-width: 0;
    max-width: min(100%, 112px);
  }

  .app-chat-panel--ipad-readable
    .app-chat-panel__system-execution-record-status--mobile-summary
    .app-chat-panel__system-execution-record-status-text--compact {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-status-text--full {
    display: none;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-status-text--compact {
    display: inline;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-status-summary-inline {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: clip;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-status:not(.app-chat-panel__system-status--records) {
    align-items: flex-start;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-status--hidden-summary {
    align-items: center;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-status:not(.app-chat-panel__system-status--records) .app-chat-panel__system-status-records-toggle.ant-btn,
  .app-chat-panel--ipad-readable .app-chat-panel__system-status:not(.app-chat-panel__system-status--records) .app-chat-panel__system-status-records-actions {
    align-self: center;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-detail {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-activity-title,
  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-activity-line {
    font-size: 11.5px;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-activity-focus {
    font-size: 13px;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-action.ant-btn {
    min-width: 28px;
    height: 28px;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-action--complete.ant-btn {
    min-width: 0;
    padding-inline: 9px;
    font-size: 10px;
  }

  .app-chat-panel--ipad-readable .app-chat-panel__system-execution-record-actions {
    align-self: center;
    justify-self: end;
  }
}

.app-chat-panel__system-record-id {
  min-width: 0;
  max-width: 44%;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
  text-align: right;
  word-break: break-all;
}

.app-chat-panel__system-record-request {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #0f172a;
  font-weight: 600;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767px) {
  .app-chat-panel__system-record {
    gap: 10px;
    padding: 11px;
  }

  .app-chat-panel__system-record-label,
  .app-chat-panel__system-record-status,
  .app-chat-panel__system-record-time {
    font-size: 11px;
  }

  .app-chat-panel__system-record-id {
    font-size: 10px;
  }

  .app-chat-panel__system-record-request {
    font-size: 12px;
  }
}

.app-chat-message {
  --app-chat-message-fade-end: rgba(248, 250, 252, 0.96);
  gap: 4px;
  width: fit-content;
  max-width: min(72%, 560px);
  min-width: 0;
  padding: 8px 11px;
  border-radius: 0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  align-self: flex-start;
  margin-left: 0;
  margin-right: 56px;
}

.app-chat-message-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: flex-start;
}

.app-chat-message-stack--user {
  align-items: flex-end;
}

.app-chat-message-stack__previews {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.app-chat-message-stack--artifact-only {
  gap: 0;
}

.app-chat-message-stack--artifact-only .app-chat-message-stack__previews {
  gap: 10px;
}

.app-chat-message--codex {
  --app-chat-message-fade-end: rgba(248, 251, 255, 0.96);
  margin-left: 8px;
  margin-right: 64px;
  background: linear-gradient(180deg, #edf4ff, #f8fbff);
}

.app-chat-message--system-inline {
  --app-chat-message-fade-end: rgba(241, 245, 249, 0.96);
  margin-left: 8px;
  margin-right: 64px;
  border-left: 2px solid rgba(59, 130, 246, 0.32);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
}

.app-chat-message--activity {
  --app-chat-message-fade-end: rgba(240, 249, 255, 0.96);
  margin-left: 8px;
  margin-right: 64px;
  border-left: 2px solid rgba(14, 116, 144, 0.3);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(236, 254, 255, 0.92));
}

.app-chat-message__header-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.app-chat-message__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.app-chat-message__header .ant-typography {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}

.app-chat-message__header-meta > .ant-typography:first-child {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-chat-message__header-action {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  margin-left: auto;
  flex: none;
}

.app-chat-message__header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
}

.app-chat-message__header-action--complete.ant-btn {
  color: #15803d;
}

.app-chat-message__header-action--complete.ant-btn:hover,
.app-chat-message__header-action--complete.ant-btn:focus {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
}

.app-chat-message__header-meta .ant-typography {
  font-size: 11px;
  white-space: nowrap;
}

.app-chat-message__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  font-size: 10px;
  white-space: nowrap;
}

.app-chat-message__status--retrying {
  color: #0369a1;
}

.app-chat-message__status--failed {
  color: #b91c1c;
}

.app-chat-message__retry.ant-btn,
.app-chat-message__cancel.ant-btn {
  height: 22px;
  padding-inline: 4px;
  margin-left: 2px;
}

.app-chat-message__retry.ant-btn {
  color: #b91c1c;
}

.app-chat-message__retry.ant-btn:hover,
.app-chat-message__retry.ant-btn:focus {
  color: #991b1b;
}

.app-chat-message__retry--icon-only.ant-btn {
  min-width: 22px;
  padding-inline: 2px;
}

.app-chat-message__delete.ant-btn {
  min-width: 22px;
  padding-inline: 2px;
}

.app-chat-message__queue-promote.ant-btn {
  color: #d97706;
}

.app-chat-message__queue-promote.ant-btn:hover,
.app-chat-message__queue-promote.ant-btn:focus {
  color: #b45309;
}

.app-chat-message--user {
  --app-chat-message-fade-end: rgba(238, 252, 244, 0.96);
  align-self: flex-end;
  margin-left: 64px;
  margin-right: 8px;
  background: linear-gradient(180deg, #dff7ea, #eefcf4);
}

.app-chat-message--user .app-chat-message__body,
.app-chat-message--user .app-chat-message__expand {
  text-align: right;
}

.app-chat-message__body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-message__block {
  white-space: pre-wrap;
}

.app-chat-message__block + .app-chat-message__block {
  margin-top: 4px;
}

.app-chat-message__block--spacer {
  min-height: calc(1.45em * 0.7);
}

.app-chat-message__block--image {
  white-space: normal;
}

.app-chat-message__inline-image {
  display: block;
  width: min(100%, 560px);
  margin-top: 2px;
}

.app-chat-message__body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-chat-message__body--collapsed {
  position: relative;
  max-height: calc(1.45em * 6);
  overflow: hidden;
  padding-bottom: 16px;
}

.app-chat-message__body--collapsed::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--app-chat-message-fade-end) 78%);
  pointer-events: none;
}

.app-chat-message__body--system-status {
  color: #475569;
}

.app-chat-activity-overview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-chat-activity-overview__section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-chat-activity-overview__title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.app-chat-activity-overview__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-chat-activity-overview__line {
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-activity-overview__line--executor {
  color: #0f766e;
}

.app-chat-message__request-detail {
  width: 100%;
  margin-top: 2px;
  color: #7f1d1d;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-preview-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: none;
  padding: 4px 0 6px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  box-sizing: border-box;
  overflow: clip;
  height: auto;
}

.app-chat-preview-card--collapsed {
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-chat-message-stack--codex .app-chat-preview-card,
.app-chat-message-stack--system .app-chat-preview-card {
  margin-left: 0;
  margin-right: 0;
}

.app-chat-message-stack--user .app-chat-preview-card {
  margin-left: 0;
  margin-right: 0;
}

.app-chat-message-stack--artifact-only .app-chat-preview-card {
  margin-left: 0;
  margin-right: 0;
}

.app-chat-preview-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 6px 8px;
}

.app-chat-preview-card__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 2px;
  min-width: fit-content;
  flex: 0 0 auto;
  margin-left: auto;
}

.app-chat-preview-card--collapsed .app-chat-preview-card__header {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.app-chat-preview-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.app-chat-preview-card__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #475569;
  background: rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  font-size: 12px;
}

.app-chat-preview-card__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.app-chat-preview-card__label,
.app-chat-preview-card__kind,
.app-chat-preview-card__label.ant-typography,
.app-chat-preview-card__kind.ant-typography {
  margin: 0;
  max-width: 100%;
}

.app-chat-preview-card__label,
.app-chat-preview-card__label.ant-typography {
  font-size: 12px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chat-preview-card__kind,
.app-chat-preview-card__kind.ant-typography {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chat-preview-card__toggle.ant-btn {
  height: 20px;
  min-width: 20px;
  padding: 0;
  flex: 0 0 auto;
}

.app-chat-preview-card__action.ant-btn {
  height: 22px;
  min-width: 22px;
  padding: 0;
  color: #475569;
}

.app-chat-preview-card--ranked-link {
  gap: 0;
}

.app-chat-preview-card__glyph--ranked-link {
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.72);
}

.app-chat-preview-card__body--ranked-link {
  padding: 8px;
}

.app-chat-preview-card__ranked-link-anchor {
  display: block;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
  text-decoration: none;
}

.app-chat-preview-card__ranked-link-anchor:hover {
  text-decoration: underline;
}

.app-chat-preview-card__open-link.ant-btn {
  height: 24px;
  padding-inline: 6px;
}

.app-chat-preview-card__glyph--prompt {
  color: var(--app-theme-prompt);
  background: var(--app-theme-prompt-soft);
}

.app-chat-preview-card__body--prompt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 8px 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}

.app-chat-preview-card__body--prompt-collapsed {
  display: none;
}

.app-chat-preview-card--prompt,
.app-chat-preview-card--structured {
  width: min(100%, 720px);
  min-width: 0;
  max-width: 100%;
}

.app-chat-preview-card__body--structured {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}

.app-chat-preview-card__description.ant-typography {
  margin: 0;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-chat-prompt-card__description.ant-typography {
  margin: 0;
  font-size: 12px;
  color: #334155;
}

.app-chat-prompt-card__context {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
}

.app-chat-prompt-card__context-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.app-chat-prompt-card__context-text {
  font-size: 12px;
  line-height: 1.5;
  color: #0f172a;
  word-break: break-word;
}

.app-chat-prompt-card__result.ant-typography {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--app-theme-prompt-border) 58%, white);
  border-radius: 12px;
  background: color-mix(in srgb, var(--app-theme-prompt-soft) 52%, white);
  font-size: 11px;
  line-height: 1.5;
  color: var(--app-theme-prompt);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-prompt-card__options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-chat-prompt-card__option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.app-chat-prompt-card__option:hover {
  border-color: var(--app-theme-prompt-border);
  background: color-mix(in srgb, var(--app-theme-prompt-soft) 48%, white);
}

.app-chat-prompt-card__option:disabled {
  cursor: not-allowed;
}

.app-chat-prompt-card__option--readonly,
.app-chat-prompt-card__option--readonly:hover {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.92);
  box-shadow: none;
  transform: none;
}

.app-chat-prompt-card__option--readonly .app-chat-prompt-card__option-label.ant-typography,
.app-chat-prompt-card__option--readonly .app-chat-prompt-card__option-description {
  color: #64748b;
}

.app-chat-prompt-card__option--selected {
  border-color: var(--app-theme-prompt-border);
  background: var(--app-theme-prompt-selected);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-theme-prompt-border) 44%, white);
}

.app-chat-prompt-card__option-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.app-chat-prompt-card__option-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding-top: 1px;
}

.app-chat-prompt-card__option-body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.app-chat-prompt-card__option-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.app-chat-prompt-card__option-label.ant-typography {
  margin: 0;
  min-width: 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-prompt-card__option-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.app-chat-prompt-card__option-state {
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-theme-prompt-soft) 44%, white);
  color: var(--app-theme-prompt);
  font-size: 10px;
  line-height: 1.5;
}

.app-chat-prompt-card__option-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 10px;
  line-height: 1.5;
}

.app-chat-prompt-card__option-description {
  color: #475569;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-prompt-card__option-preview-hint {
  display: inline-flex;
  margin-top: 2px;
  color: var(--app-theme-accent-strong);
  font-size: 11px;
  font-weight: 600;
}

.app-chat-prompt-card__option-preview-inline {
  margin-top: 6px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 640px) {
  .app-chat-prompt-card__option-headline {
    flex-direction: column;
  }

  .app-chat-prompt-card__option-meta {
    justify-content: flex-start;
  }
}

.app-chat-prompt-card__preview-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.8);
  box-sizing: border-box;
}

.app-chat-prompt-card__preview-body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: min(420px, 70vh);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.app-chat-prompt-card__stepper {
  margin-bottom: 8px;
}

.app-chat-prompt-card__step-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-chat-prompt-card__step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.app-chat-prompt-card__step-kicker.ant-typography {
  display: block;
  margin: 0 0 2px;
  color: var(--app-theme-prompt);
  font-size: 11px;
  line-height: 1.4;
}

.app-chat-prompt-card__step-title.ant-typography {
  display: block;
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-prompt-card__optional-pill {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
  font-size: 10px;
  line-height: 1.4;
}

.app-chat-prompt-card__preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 32px;
  padding: 6px 8px 0;
}

.app-chat-prompt-card__preview-title.ant-typography {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #334155;
  font-size: 11px;
}

.app-chat-prompt-card__preview-tool.ant-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.66);
}

.app-chat-prompt-card__preview-tool.ant-btn:hover,
.app-chat-prompt-card__preview-tool.ant-btn:focus-visible {
  color: #fff;
  background: rgba(15, 23, 42, 0.84);
}

.app-chat-prompt-card__preview-image,
.app-chat-prompt-card__preview-frame {
  display: block;
  width: 100%;
  min-height: 144px;
  border: 0;
  background: #fff;
}

.app-chat-prompt-card__preview-image--compact,
.app-chat-prompt-card__preview-shell .app-chat-prompt-card__preview-frame {
  min-height: 144px;
  max-height: 180px;
  object-fit: cover;
}

.app-chat-prompt-card__preview-markdown {
  padding: 6px 10px 8px;
  max-height: 180px;
  overflow: auto;
}

.app-chat-prompt-card__preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 144px;
  padding: 10px;
  color: #64748b;
  font-size: 11px;
  text-align: center;
  background: rgba(248, 250, 252, 0.9);
}

.app-chat-prompt-card__preview-placeholder--loading {
  gap: 8px;
}

.app-chat-prompt-card__radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  border: 1px solid rgba(100, 116, 139, 0.45);
  border-radius: 999px;
  background: #fff;
}

.app-chat-prompt-card__radio > span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.app-chat-prompt-card__checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  border: 1px solid rgba(100, 116, 139, 0.45);
  border-radius: 4px;
  background: #fff;
}

.app-chat-prompt-card__checkbox > span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: transparent;
}

.app-chat-prompt-card__option--selected .app-chat-prompt-card__radio {
  border-color: color-mix(in srgb, var(--app-theme-prompt-border) 84%, white);
}

.app-chat-prompt-card__option--selected .app-chat-prompt-card__radio > span {
  background: var(--app-theme-prompt);
}

.app-chat-prompt-card__option--selected .app-chat-prompt-card__checkbox {
  border-color: color-mix(in srgb, var(--app-theme-prompt-border) 84%, white);
}

.app-chat-prompt-card__option--selected .app-chat-prompt-card__checkbox > span {
  background: var(--app-theme-prompt);
}

.app-chat-prompt-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.app-chat-prompt-card__footer-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.app-chat-prompt-card__free-text {
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  gap: 6px;
}

.app-chat-prompt-card__free-text-label.ant-typography {
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.4;
}

.app-chat-prompt-card__free-text-hint.ant-typography {
  margin: 0;
  color: #78716c;
  font-size: 11px;
  line-height: 1.4;
}

.app-chat-prompt-card__free-text .ant-input {
  border-radius: 12px;
  font-size: 12px;
}

.app-chat-prompt-card__free-text .ant-input:focus,
.app-chat-prompt-card__free-text .ant-input:focus-within {
  border-color: rgba(13, 148, 136, 0.55);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.app-chat-prompt-card__summary {
  flex: 1 1 auto;
  min-width: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-chat-prompt-card__summary-detail {
  display: block;
  margin-top: 4px;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-chat-prompt-card__context,
.app-chat-prompt-card__description.ant-typography,
.app-chat-prompt-card__result.ant-typography,
.app-chat-prompt-card__stepper,
.app-chat-prompt-card__step-panel,
.app-chat-prompt-card__options,
.app-chat-prompt-card__free-text,
.app-chat-prompt-card__footer {
  min-width: 0;
  max-width: 100%;
}

.app-chat-prompt-card__submitted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  color: #0f766e;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chat-prompt-card__selection-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(42vw, 220px);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chat-prompt-card__collapse-toggle.ant-btn {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  color: #475569;
}

.app-chat-prompt-card__collapse-toggle.ant-btn:hover,
.app-chat-prompt-card__collapse-toggle.ant-btn:focus-visible {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.7);
}

.app-chat-preview-card--prompt .app-chat-preview-card__header {
  flex-wrap: nowrap;
  align-items: center;
}

.app-chat-preview-card--prompt .app-chat-preview-card__meta {
  min-width: 0;
  flex: 1 1 auto;
}

.app-chat-preview-card--prompt .app-chat-preview-card__actions {
  flex: 0 0 auto;
  min-width: fit-content;
  flex-wrap: nowrap;
  margin-left: auto;
}

.app-chat-prompt-card__preview-modal.ant-modal {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.98)),
    radial-gradient(circle at top, rgba(13, 148, 136, 0.12), transparent 34%);
}

.app-chat-prompt-card__preview-modal--light-surface .fullscreen-preview-modal__shell,
.app-chat-prompt-card__preview-modal--light-surface .fullscreen-preview-modal__content,
.app-chat-prompt-card__preview-modal--light-surface .ant-modal-content {
  background: #f8fafc;
}

.app-chat-prompt-card__preview-modal--light-surface .fullscreen-preview-modal__header {
  border-bottom-color: rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.94);
}

.app-chat-prompt-card__preview-modal--light-surface .fullscreen-preview-modal__title,
.app-chat-prompt-card__preview-modal--light-surface .fullscreen-preview-modal__meta {
  color: #0f172a;
}

.app-chat-prompt-card__preview-modal--light-surface .fullscreen-preview-modal__icon-button.ant-btn {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.92);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.app-chat-prompt-card__preview-modal--light-surface .fullscreen-preview-modal__icon-button.ant-btn:hover,
.app-chat-prompt-card__preview-modal--light-surface .fullscreen-preview-modal__icon-button.ant-btn:focus-visible {
  color: #020617;
  background: rgba(203, 213, 225, 0.96);
}

.app-chat-prompt-card__preview-modal-surface {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0;
}

.app-chat-prompt-card__preview-modal .app-chat-prompt-card__preview-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
}

.app-chat-prompt-card__preview-modal .app-chat-prompt-card__preview-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #0f172a;
}

.app-chat-prompt-card__preview-modal .app-chat-prompt-card__preview-markdown {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  padding: 20px 18px 18px;
  background: #f8fafc;
}

.app-chat-prompt-card__preview-modal .app-chat-prompt-card__preview-markdown .markdown-preview,
.app-chat-prompt-card__preview-modal .app-chat-prompt-card__preview-markdown code {
  color: #0f172a;
}

.app-chat-prompt-card__preview-modal--light-surface .app-chat-panel__preview-rich--markdown {
  height: 100%;
  max-height: none;
  padding: 20px 18px 28px;
  background: #f8fafc;
}

.app-chat-prompt-card__preview-modal--light-surface .app-chat-panel__preview-rich--markdown .markdown-preview,
.app-chat-prompt-card__preview-modal--light-surface .app-chat-panel__preview-rich--markdown code,
.app-chat-prompt-card__preview-modal--light-surface .app-chat-panel__preview-rich--markdown .ant-typography {
  color: #0f172a;
}

.app-chat-prompt-card__preview-code {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.app-chat-prompt-card__preview-code .previewer-ui__editor,
.app-chat-prompt-card__preview-code .previewer-ui__editor-body {
  height: 100%;
  width: 100%;
}

.app-chat-prompt-card__preview-zoom-stage {
  width: 100%;
  height: 100%;
  background: #0b1220;
}

.app-chat-prompt-card__preview-zoom-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.app-chat-prompt-card__preview-zoom-content .app-chat-prompt-card__preview-image,
.app-chat-prompt-card__preview-zoom-content .app-chat-prompt-card__preview-frame {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  object-fit: contain;
}

.app-chat-prompt-card__preview-zoom-content .app-chat-prompt-card__preview-frame {
  pointer-events: none;
  background: #fff;
}

.app-chat-prompt-card__preview-modal .app-chat-prompt-card__preview-placeholder {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
