.chat-share-page {
  --chat-share-page-safe-top: env(safe-area-inset-top, 0px);
  --chat-share-page-safe-right: env(safe-area-inset-right, 0px);
  --chat-share-page-safe-bottom: env(safe-area-inset-bottom, 0px);
  --chat-share-page-safe-left: env(safe-area-inset-left, 0px);
  --chat-share-page-active-safe-bottom: var(--chat-share-page-safe-bottom);
  --chat-share-page-top-padding: 8px;
  --chat-share-page-side-padding: 10px;
  --chat-share-page-bottom-padding: 0px;
  --chat-share-page-layout-viewport-height: var(--app-viewport-height, 100dvh);
  --chat-share-page-visual-viewport-height: var(
    --app-visual-viewport-height,
    var(--chat-share-page-layout-viewport-height)
  );
  --chat-share-page-viewport-height: var(--chat-share-page-layout-viewport-height);
  --chat-share-page-composer-panel-min-height: clamp(96px, 13dvh, 136px);
  --chat-share-page-composer-input-min-height: clamp(60px, 9dvh, 88px);
  --chat-share-page-composer-textarea-padding-y: 5px;
  --chat-share-page-prompt-textarea-min-height: 60px;
  --chat-share-page-prompt-textarea-padding-y: 7px;
  --chat-share-page-prompt-body-padding-bottom: 4px;
  --chat-share-page-prompt-content-gap: 4px;
  --chat-share-page-prompt-footer-gap: 8px;
  --chat-share-page-composer-shell-padding-top: 5px;
  --chat-share-page-composer-shell-padding-side: 8px;
  --chat-share-page-composer-shell-padding-bottom: max(1px, min(var(--chat-share-page-safe-bottom), 3px));
  display: flex;
  flex-direction: column;
  height: var(--chat-share-page-viewport-height);
  min-height: var(--chat-share-page-viewport-height);
  max-height: var(--chat-share-page-viewport-height);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  scroll-padding-bottom: calc(var(--chat-share-page-bottom-padding) + var(--chat-share-page-active-safe-bottom));
  padding:
    calc(var(--chat-share-page-top-padding) + var(--chat-share-page-safe-top))
    max(var(--chat-share-page-side-padding), var(--chat-share-page-safe-right))
    calc(var(--chat-share-page-bottom-padding) + var(--chat-share-page-active-safe-bottom))
    max(var(--chat-share-page-side-padding), var(--chat-share-page-safe-left));
  background:
    linear-gradient(180deg, #f7f9fc 0%, #f2f5fa 100%),
    radial-gradient(circle at top left, rgba(22, 93, 255, 0.08), transparent 30%);
}

:root.app-virtual-keyboard-open .chat-share-page {
  --chat-share-page-viewport-height: var(--chat-share-page-visual-viewport-height);
  --chat-share-page-active-safe-bottom: 0px;
  --chat-share-page-bottom-padding: 0px;
  --chat-share-page-composer-panel-min-height: clamp(96px, 13dvh, 136px);
  --chat-share-page-composer-input-min-height: clamp(60px, 9dvh, 88px);
  --chat-share-page-composer-textarea-padding-y: 5px;
  --chat-share-page-prompt-textarea-min-height: 56px;
  --chat-share-page-prompt-textarea-padding-y: 6px;
  --chat-share-page-prompt-body-padding-bottom: 2px;
  --chat-share-page-prompt-content-gap: 3px;
  --chat-share-page-prompt-footer-gap: 6px;
  --chat-share-page-composer-shell-padding-top: 5px;
  --chat-share-page-composer-shell-padding-side: 8px;
  --chat-share-page-composer-shell-padding-bottom: 0px;
}

.chat-share-page--composer-viewport-compacted {
  --chat-share-page-viewport-height: var(--chat-share-page-visual-viewport-height);
  --chat-share-page-active-safe-bottom: 0px;
  --chat-share-page-bottom-padding: 0px;
  --chat-share-page-composer-panel-min-height: clamp(96px, 13dvh, 136px);
  --chat-share-page-composer-input-min-height: clamp(60px, 9dvh, 88px);
  --chat-share-page-composer-textarea-padding-y: 5px;
  --chat-share-page-prompt-textarea-min-height: 56px;
  --chat-share-page-prompt-textarea-padding-y: 6px;
  --chat-share-page-prompt-body-padding-bottom: 2px;
  --chat-share-page-prompt-content-gap: 3px;
  --chat-share-page-prompt-footer-gap: 6px;
  --chat-share-page-composer-shell-padding-top: 5px;
  --chat-share-page-composer-shell-padding-side: 8px;
  --chat-share-page-composer-shell-padding-bottom: 0px;
}

:root.app-virtual-keyboard-open .chat-share-page__shell,
:root.app-virtual-keyboard-open .chat-share-page__content-layout,
.chat-share-page--composer-viewport-compacted .chat-share-page__shell,
.chat-share-page--composer-viewport-compacted .chat-share-page__content-layout {
  min-height: var(--chat-share-page-viewport-height);
}

:root.app-virtual-keyboard-open .chat-share-page__content-layout,
.chat-share-page--composer-viewport-compacted .chat-share-page__content-layout {
  gap: 6px;
}

.chat-share-page--centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-share-page__shell {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 0 auto;
  min-width: 0;
  min-height: 100%;
  min-height: calc(
    var(--chat-share-page-viewport-height) -
    var(--chat-share-page-safe-top) -
    var(--chat-share-page-active-safe-bottom) -
    var(--chat-share-page-top-padding) -
    var(--chat-share-page-bottom-padding)
  );
  max-width: 1320px;
}

.chat-share-page__panel {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.chat-share-page__panel--focus {
  padding: 0;
}

.chat-share-page__empty-card {
  width: min(560px, 100%);
}

.chat-share-page__lock-card {
  width: min(420px, 100%);
}

.chat-share-page__lock-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.chat-share-page__content-layout {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  height: auto;
  min-height: calc(
    var(--chat-share-page-viewport-height) -
    var(--chat-share-page-safe-top) -
    var(--chat-share-page-active-safe-bottom) -
    var(--chat-share-page-top-padding) -
    var(--chat-share-page-bottom-padding)
  );
}

.chat-share-page__content-layout--with-composer {
  width: 100%;
}

.chat-share-page__prompt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.chat-share-page__conversation-panel,
.chat-share-page__composer-panel {
  min-width: 0;
}

.chat-share-page__conversation-panel {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 10px;
  min-height: clamp(240px, 42dvh, 520px);
  overflow: visible;
  border-radius: 14px;
  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);
}

.chat-share-page__composer-panel {
  display: flex;
  position: relative;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: var(--chat-share-page-composer-panel-min-height);
  width: 100%;
  margin-top: auto;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

.chat-share-page__activity-panel {
  position: relative;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: inset 0 0 0 1px rgba(219, 226, 236, 0.82);
}

.chat-share-page__room-list-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: inset 0 0 0 1px rgba(219, 226, 236, 0.82);
}

.chat-share-page__room-list-panel--floating {
  position: fixed;
  z-index: 1700;
  overflow: hidden;
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(219, 226, 236, 0.9);
  backdrop-filter: blur(18px);
}

.chat-share-page__room-filter-input.ant-input-affix-wrapper {
  width: 100%;
  border-radius: 12px;
  border-color: rgba(191, 204, 220, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(241, 245, 249, 0.78);
}

.chat-share-page__room-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-share-page__room-group {
  display: grid;
  gap: 8px;
}

.chat-share-page__room-group--standalone {
  gap: 0;
}

.chat-share-page__room-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.chat-share-page__room-group-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-share-page__room-group-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.chat-share-page__room-group-meta {
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
}

.chat-share-page__room-group-preview {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chat-share-page__room-group-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat-share-page__room-group-action.ant-btn {
  padding-inline: 6px;
}

.chat-share-page__room-group-list {
  display: grid;
  gap: 8px;
}

.chat-share-page__room-card-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-share-page__room-card-count {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  box-sizing: border-box;
}

.chat-share-page__room-card-count--processing {
  color: #0958d9;
  background: rgba(230, 244, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(145, 213, 255, 0.95);
}

.chat-share-page__room-card-count--unanswered {
  color: #ad6800;
  background: rgba(255, 247, 230, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.95);
}

.chat-share-page__room-card-count--idle {
  color: #64748b;
  background: rgba(241, 245, 249, 0.96);
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.92);
}

.chat-share-page__room-item {
  position: relative;
  width: 100%;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
}

.chat-share-page__room-delete-action {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #dc2626;
  font-size: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(248, 113, 113, 0.26),
    0 6px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.chat-share-page__room-delete-action:hover,
.chat-share-page__room-delete-action:focus-visible {
  background: #dc2626;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(220, 38, 38, 0.18),
    0 8px 16px rgba(220, 38, 38, 0.22);
  transform: translateY(-1px);
}

.chat-share-page__room-item.is-delete-locked .chat-share-page__room-delete-action {
  display: none;
}

.chat-share-page__room-card {
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  padding: 12px 42px 12px 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  box-shadow:
    inset 0 0 0 1px rgba(191, 204, 220, 0.82),
    0 6px 18px rgba(148, 163, 184, 0.08);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.16s ease;
  will-change: transform;
}

.chat-share-page__room-card--active {
  background: linear-gradient(180deg, #dbeafe 0%, #d7ecff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(59, 130, 246, 0.38),
    0 10px 24px rgba(59, 130, 246, 0.16);
}

.chat-share-page__room-card--default {
  background:
    linear-gradient(180deg, #f4fbff 0%, #e3f4ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.22),
    0 8px 20px rgba(14, 165, 233, 0.1);
}

.chat-share-page__room-card--default.chat-share-page__room-card--active {
  background:
    linear-gradient(180deg, #dff7ff 0%, #d2f0ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(8, 145, 178, 0.34),
    0 10px 24px rgba(14, 165, 233, 0.14);
}

.chat-share-page__room-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-share-page__room-card-title {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.chat-share-page__room-card-meta {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.chat-share-page__room-card-preview {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chat-share-page__room-list-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.chat-share-page__create-room-form {
  display: grid;
  gap: 12px;
}

.chat-share-page__create-room-field {
  display: grid;
  gap: 6px;
}

.chat-share-page__create-room-hint {
  font-size: 12px;
  line-height: 1.45;
}

.chat-share-page__source-detail-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.chat-share-page__source-detail-preview {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.chat-share-page__source-room-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-share-page__source-room-chip.ant-btn {
  border-radius: 999px;
}

.chat-share-page__message-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: visible;
  overscroll-behavior: auto;
  padding-right: 0;
}

.chat-share-page__message-list--switching,
.chat-share-page__panel--switching,
.chat-share-page__composer-shell--switching {
  opacity: 0.68;
}

.chat-share-page__composer-shell--switching {
  pointer-events: none;
}

.chat-share-page__panel-switching-indicator {
  position: sticky;
  top: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(191, 204, 220, 0.92),
    0 8px 20px rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(10px);
}

.chat-share-page__panel-switching-indicator--compact {
  margin-bottom: 8px;
}

.chat-share-page__panel-switching-indicator--composer {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  margin: 0;
}

.chat-share-page__conversation-loading-block {
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 240px;
  padding: 24px 12px;
  text-align: center;
}

.chat-share-page__composer-loading-block {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 16px 0;
}

.chat-share-page__search-modal {
  top: 16px;
  padding-bottom: 16px;
}

.chat-share-page__search-modal .ant-modal-content {
  display: flex;
  max-height: min(calc(100dvh - 48px), 720px);
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
}

.chat-share-page__search-modal .ant-modal-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
}

.chat-share-page__search-modal-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.chat-share-page__search-summary {
  display: flex;
  align-items: center;
  min-height: 18px;
}

.chat-share-page__search-results {
  display: grid;
  min-height: 0;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.chat-share-page__search-results--apps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 136px), 1fr));
  align-content: start;
  gap: 10px;
}

.chat-share-page__search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.75);
}

.chat-share-page__search-result-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.chat-share-page__search-result-title {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-share-page__search-result-description {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-share-page__search-result-action.ant-btn {
  flex: 0 0 auto;
}

.chat-share-page__search-app-environment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  min-width: 0;
}

.chat-share-page__search-app-environment .ant-select {
  flex: 0 1 180px;
  min-width: 132px;
  max-width: 100%;
}

.chat-share-page__search-result-action-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.chat-share-page__search-result-tag.ant-tag {
  margin-inline-end: 0;
  color: #334155;
  background: #e2e8f0;
}

.chat-share-page__search-result-action--environment.ant-btn {
  padding-inline: 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

.chat-share-page__search-result-action--environment.ant-btn:disabled,
.chat-share-page__search-result-action--environment.ant-btn.ant-btn-disabled {
  background: #e5e7eb;
  color: #94a3b8;
}

.chat-share-page__app-tile {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 6px;
  min-width: 0;
  width: 100%;
  min-height: 128px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  box-shadow:
    inset 0 0 0 1px rgba(191, 204, 220, 0.8),
    0 6px 18px rgba(148, 163, 184, 0.1);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.chat-share-page__app-tile:disabled,
.chat-share-page__app-tile--disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.chat-share-page__app-tile-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  align-self: start;
  border-radius: 12px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 18px;
}

.chat-share-page__app-tile-title {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.chat-share-page__app-tile-description {
  min-width: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(1.4em * 2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.chat-share-page__app-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  min-width: 0;
}

.chat-share-page__app-tile-meta-label,
.chat-share-page__app-tile-usage {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
}

.chat-share-page__app-tile-meta-label {
  background: #dbeafe;
  color: #1d4ed8;
}

.chat-share-page__app-tile-usage {
  background: #e2e8f0;
  color: #334155;
}

.chat-share-page__search-empty {
  padding: 20px 0 8px;
  text-align: center;
}

.chat-share-page__section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-share-page__section-head .ant-typography {
  margin: 0;
}

.chat-share-page__conversation-panel > .chat-share-page__section-head {
  position: sticky;
  top: calc(var(--chat-share-page-top-padding) * -1);
  z-index: 20;
  margin: -8px -10px 8px;
  padding: 8px 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.32);
  background:
    linear-gradient(180deg, rgba(237, 243, 251, 0.98) 0%, rgba(228, 237, 248, 0.94) 100%);
  backdrop-filter: blur(10px);
}

.chat-share-page__prompt-layout .chat-share-page__section-head,
.chat-share-page__prompt-layout .app-chat-prompt-card,
.chat-share-page__prompt-layout .chat-share-page__response-block {
  padding-inline: 8px;
}

.chat-share-page__section-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: visible;
}

.chat-share-page__section-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  min-width: 0;
  flex-wrap: nowrap;
}

.chat-share-page__conversation-title.ant-typography {
  margin: 0;
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #0f172a;
}

.chat-share-page__header-summary.ant-typography {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  flex: 0 0 auto;
}

.chat-share-page__initial-load-alert.ant-alert {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.96) 0%, rgba(224, 242, 254, 0.94) 100%);
}

.chat-share-page__initial-load-alert .ant-alert-description {
  font-size: 12px;
  line-height: 1.5;
}

.chat-share-page__initial-load-alert.ant-alert .ant-alert-content,
.chat-share-page__initial-load-alert.ant-alert .ant-alert-message,
.chat-share-page__initial-load-alert.ant-alert .ant-alert-description {
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.chat-share-page__initial-load-alert.ant-alert .ant-alert-action {
  margin-left: 0;
}

@media (max-width: 720px) {
  .chat-share-page__initial-load-alert.ant-alert .ant-alert-content {
    width: 100%;
  }

  .chat-share-page__initial-load-alert.ant-alert .ant-alert-action {
    margin-top: 8px;
    margin-left: 0;
    width: 100%;
  }
}

.chat-share-page__live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.chat-share-page__live-dot--connected {
  background: #22c55e;
}

.chat-share-page__live-dot--disconnected {
  background: #ef4444;
}

.chat-share-page__status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: min(100%, 96px);
  min-height: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: #334155;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}

.chat-share-page__status-badge--processing {
  background: rgba(219, 234, 254, 0.92);
}

.chat-share-page__status-badge--warning {
  background: rgba(254, 243, 199, 0.9);
}

.chat-share-page__status-badge--success {
  background: rgba(220, 252, 231, 0.92);
}

.chat-share-page__status-badge--error {
  background: rgba(254, 226, 226, 0.92);
}

.chat-share-page__status-badge--default {
  background: rgba(241, 245, 249, 0.96);
}

.chat-share-page__status-badge-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-share-page__section-action--title-edit.ant-btn {
  flex: 0 0 auto;
}

.chat-share-page__section-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  justify-self: end;
  margin-left: 0;
  white-space: nowrap;
}

.chat-share-page__request-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat-share-page__section-action--icon.ant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  padding-inline: 0;
}

.chat-share-page__section-action--tool.ant-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 36px;
  padding-inline: 12px;
  border-radius: 999px;
  border: 0;
  color: #334155;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.9) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.26),
    0 6px 16px rgba(148, 163, 184, 0.12);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.chat-share-page__section-action--tool.ant-btn .ant-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-inline-end: 0;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(219, 234, 254, 0.92);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.16);
}

.chat-share-page__section-action--tool.ant-btn .ant-btn-icon .anticon {
  font-size: 13px;
}

.chat-share-page__section-action--tool.ant-btn:hover,
.chat-share-page__section-action--tool.ant-btn:focus-visible {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(219, 234, 254, 0.94) 100%);
  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);
}

.chat-share-page__section-action--tool.ant-btn:hover .ant-btn-icon,
.chat-share-page__section-action--tool.ant-btn:focus-visible .ant-btn-icon {
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.96);
}

.chat-share-page__section-action--tool.ant-btn:active {
  transform: translateY(0);
}

.chat-share-page__section-action--inline.ant-btn {
  height: 28px;
  padding-inline: 8px;
  box-shadow: none;
  background: transparent;
}

.chat-share-page__section-action--inline.ant-btn .ant-btn-icon {
  width: 20px;
  height: 20px;
  background: rgba(226, 232, 240, 0.72);
  color: #475569;
  box-shadow: none;
}

.chat-share-page__section-action--inline.ant-btn:hover,
.chat-share-page__section-action--inline.ant-btn:focus-visible {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.chat-share-page__section-action--inline.ant-btn:hover .ant-btn-icon,
.chat-share-page__section-action--inline.ant-btn:focus-visible .ant-btn-icon {
  background: rgba(219, 234, 254, 0.92);
  color: #1d4ed8;
}

.chat-share-page__tool-button-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.chat-share-page__settings-menu .ant-dropdown-menu {
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.14),
    0 4px 16px rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
}

.chat-share-page__settings-menu .ant-dropdown-menu-item,
.chat-share-page__settings-menu .ant-dropdown-menu-item-disabled {
  min-width: 180px;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  align-items: flex-start;
}

.chat-share-page__settings-menu .ant-dropdown-menu-item .ant-dropdown-menu-title-content,
.chat-share-page__settings-menu .ant-dropdown-menu-item-disabled .ant-dropdown-menu-title-content {
  min-width: 0;
}

.chat-share-page__settings-menu .ant-dropdown-menu-item .ant-dropdown-menu-item-icon {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  margin-inline-end: 10px;
  border-radius: 10px;
  color: #dc2626;
  background: rgba(254, 226, 226, 0.92);
}

.chat-share-page__settings-menu .ant-dropdown-menu-item .ant-dropdown-menu-item-icon .anticon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.chat-share-page__settings-menu .ant-dropdown-menu-item:hover,
.chat-share-page__settings-menu .ant-dropdown-menu-item-active {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.96) 100%);
}

.chat-share-page__settings-menu .ant-dropdown-menu-item-danger:hover,
.chat-share-page__settings-menu .ant-dropdown-menu-item-danger.ant-dropdown-menu-item-active {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98) 0%, rgba(254, 226, 226, 0.92) 100%);
}

.chat-share-page__settings-item {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-share-page__settings-item-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.chat-share-page__settings-item-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-share-page__settings-version-indicator {
  display: inline-flex;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.chat-share-page__settings-version-indicator--latest {
  background: #2563eb;
}

.chat-share-page__settings-version-indicator--unknown {
  background: #94a3b8;
}

.chat-share-page__settings-version-indicator--update-available {
  background: #f59e0b;
}

.chat-share-page__settings-version-indicator--build-required {
  background: #dc2626;
}

.chat-share-page__settings-item-description {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.chat-share-page__settings-item-meta {
  overflow: hidden;
  color: #2563eb;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-share-page__settings-item-meta--detail {
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-share-page__settings-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.chat-share-page__settings-status-badge--latest {
  background: rgba(219, 234, 254, 0.94);
  color: #1d4ed8;
}

.chat-share-page__settings-status-badge--unknown {
  background: rgba(226, 232, 240, 0.92);
  color: #475569;
}

.chat-share-page__settings-status-badge--update-available {
  background: rgba(254, 240, 138, 0.96);
  color: #a16207;
}

.chat-share-page__settings-status-badge--build-required {
  background: rgba(254, 226, 226, 0.96);
  color: #b91c1c;
}

.chat-share-page__settings-item--summary .chat-share-page__settings-item-title {
  color: #1e293b;
}

.chat-share-page__settings-item--token {
  gap: 5px;
}

.chat-share-page__settings-meter {
  position: relative;
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
}

.chat-share-page__settings-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}

.chat-share-page__settings-menu .ant-dropdown-menu-item-danger .chat-share-page__settings-item-title {
  color: #b91c1c;
}

.chat-share-page__settings-placeholder {
  display: block;
  min-height: 16px;
}

.chat-share-page__expand-mode-filter.ant-btn {
  min-width: 34px;
  color: #475569;
  background: transparent;
  box-shadow: none;
  padding-inline: 8px;
}

.chat-share-page__expand-mode-filter--active.ant-btn {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.38);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.chat-share-page__expand-mode-filter.ant-btn:hover,
.chat-share-page__expand-mode-filter.ant-btn:focus-visible {
  color: #1d4ed8;
  background: rgba(226, 232, 240, 0.5);
  box-shadow: none;
  transform: none;
}

.chat-share-page__expand-mode-filter.ant-btn:active {
  transform: none;
}

.chat-share-page__expand-mode-filter.ant-btn .chat-share-page__tool-button-label {
  color: inherit;
}

.chat-share-page__expand-mode-filter.ant-btn {
  min-width: 34px;
}

.chat-share-page__expand-mode-filter.ant-btn .ant-btn-icon {
  color: currentColor;
  background: transparent;
  box-shadow: none;
}

.chat-share-page__expand-mode-filter.ant-btn .anticon {
  font-size: 15px;
}

.chat-share-page__prompt-complete-button.ant-btn {
  padding-inline: 8px;
}

.chat-share-page__response-reply-button.ant-btn {
  color: #1d4ed8;
}

.chat-share-page__previous-question-button.ant-btn {
  color: #475569;
  min-width: 28px;
  padding-inline: 4px;
}

.chat-share-page__previous-question-button.ant-btn:hover,
.chat-share-page__previous-question-button.ant-btn:focus {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.88);
}

.chat-share-page__response-reply-button--active.ant-btn,
.chat-share-page__response-reply-button.ant-btn:hover,
.chat-share-page__response-reply-button.ant-btn:focus {
  color: #1e40af;
  background: rgba(219, 234, 254, 0.88);
}

.chat-share-page__message-headline--inline > .chat-share-page__message-time {
  margin-right: 2px;
}

.chat-share-page__activity-summary-list {
  display: grid;
  gap: 6px;
  gap: 4px;
}

.chat-share-page__activity-summary-item.ant-typography {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.chat-share-page__token-usage-modal .ant-modal-content {
  border-radius: 22px;
}

.chat-share-page__token-usage-modal-body {
  display: grid;
  gap: 14px;
}

.chat-share-page__room-settings-drawer .ant-drawer-header {
  padding: 12px 18px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.chat-share-page__room-settings-drawer .ant-drawer-title {
  font-size: 15px;
  line-height: 1.2;
}

.chat-share-page__room-settings-drawer .ant-drawer-body {
  padding: 0;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.chat-share-page__app-settings-drawer-shell .ant-drawer-content,
.chat-share-page__app-settings-drawer-shell .ant-drawer-wrapper-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(180deg, #f7fafc 0%, #eef3f9 100%),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 26%);
}

.chat-share-page__app-settings-drawer-shell .ant-drawer-header,
.chat-share-page__app-settings-drawer-shell .ant-drawer-header-title,
.chat-share-page__app-settings-drawer-shell .ant-drawer-extra {
  min-width: 0;
}

.chat-share-page__app-settings-drawer-shell .ant-drawer-header {
  border-bottom: 1px solid rgba(196, 210, 226, 0.96);
  padding: 14px 18px;
  background: rgba(248, 250, 252, 0.94);
}

.chat-share-page__app-settings-drawer-shell .ant-drawer-body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.chat-share-page__app-settings-drawer-body,
.chat-share-page__app-settings-drawer-body .shared-app-settings-page {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.chat-share-page__room-settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-share-page__room-settings-shell {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 48px);
  min-width: 0;
  padding: 14px 16px 18px;
}

.chat-share-page__room-settings-tabs {
  min-width: 0;
}

.chat-share-page__room-settings-tabs .ant-tabs-nav {
  margin-bottom: 12px;
  min-width: 0;
}

.chat-share-page__room-settings-tabs .ant-tabs-nav-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.chat-share-page__room-settings-tabs .ant-tabs-nav-list {
  min-width: max-content;
}

.chat-share-page__room-settings-tabs .ant-tabs-tab {
  flex: 0 0 auto;
  padding: 8px 0;
}

.chat-share-page__room-settings-tabs .ant-tabs-content-holder {
  min-width: 0;
  min-height: calc(100vh - 140px);
  overflow-x: hidden;
}

.chat-share-page__room-settings-tabs .ant-tabs-content,
.chat-share-page__room-settings-tabs .ant-tabs-tabpane {
  min-width: 0;
}

.chat-share-page__room-settings-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow-x: hidden;
}

.chat-share-page__room-settings-panel-head {
  display: grid;
  gap: 4px;
}

.chat-share-page__room-settings-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(148, 163, 184, 0.12);
}

.chat-share-page__room-settings-card--status {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: center;
}

.chat-share-page__room-settings-status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-share-page__room-settings-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-share-page__room-settings-runtime-list {
  display: grid;
  gap: 10px;
}

.chat-share-page__room-settings-runtime-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
}

.chat-share-page__room-settings-runtime-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-share-page__process-inspector {
  position: fixed;
  top: 0;
  left: 0;
  width: min(920px, calc(100vw - 24px));
  max-height: min(720px, calc(100dvh - 24px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.chat-share-page__process-inspector--fullscreen {
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 0;
  border-width: 0;
}

.chat-share-page__process-inspector--minimized {
  width: min(380px, calc(100vw - 24px));
  max-height: none;
}

.chat-share-page__process-inspector-drag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(12, 74, 110, 0.96), rgba(30, 64, 175, 0.94)),
    linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(125, 211, 252, 0));
  cursor: grab;
  user-select: none;
}

.chat-share-page__process-inspector-drag:active {
  cursor: grabbing;
}

.chat-share-page__process-inspector-drag-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-share-page__process-inspector-drag-grip {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(71, 85, 105, 0.8) 1.1px, transparent 1.2px) center / 5px 5px,
    rgba(226, 232, 240, 0.85);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
  flex: 0 0 auto;
}

.chat-share-page__process-inspector-drag-text {
  display: grid;
  min-width: 0;
}

.chat-share-page__process-inspector-drag-text .ant-typography {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
}

.chat-share-page__process-inspector-request-id {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(191, 219, 254, 0.96) !important;
}

.chat-share-page__process-inspector-window-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-share-page__process-inspector-window-button.ant-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 23, 42, 0.14);
}

.chat-share-page__process-inspector-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.chat-share-page__process-inspector-summary {
  display: grid;
  gap: 12px;
  padding: 14px 18px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.chat-share-page__process-inspector-summary .ant-typography {
  margin: 0;
}

.chat-share-page__process-inspector-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-share-page__process-inspector-summary-head-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.chat-share-page__process-inspector-summary-toggle.ant-btn {
  border-radius: 999px;
  color: rgba(30, 41, 59, 0.92);
  background: rgba(226, 232, 240, 0.72);
  flex: 0 0 auto;
}

.chat-share-page__process-inspector-sections {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 12px;
  padding: 14px 18px 18px;
  min-height: 0;
  overflow: auto;
}

.chat-share-page__process-inspector-sections--fullscreen {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
  grid-auto-flow: dense;
  padding:
    14px
    max(18px, env(safe-area-inset-right, 0px))
    18px
    max(18px, env(safe-area-inset-left, 0px));
}

.chat-share-page__process-inspector-sections--fullscreen.chat-share-page__process-inspector-sections--log-collapsed,
.chat-share-page__process-inspector-sections--fullscreen.chat-share-page__process-inspector-sections--checklist-collapsed.chat-share-page__process-inspector-sections--narratives-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.chat-share-page__process-inspector-sections--fullscreen .chat-share-page__process-inspector-section--checklist,
.chat-share-page__process-inspector-sections--fullscreen .chat-share-page__process-inspector-section--narratives,
.chat-share-page__process-inspector-sections--fullscreen .chat-share-page__process-inspector-section--log {
  grid-column: auto;
  grid-row: auto;
}

.chat-share-page__process-inspector-sections--fullscreen.chat-share-page__process-inspector-sections--log-collapsed
  .chat-share-page__process-inspector-section--checklist,
.chat-share-page__process-inspector-sections--fullscreen.chat-share-page__process-inspector-sections--log-collapsed
  .chat-share-page__process-inspector-section--narratives,
.chat-share-page__process-inspector-sections--fullscreen.chat-share-page__process-inspector-sections--log-collapsed
  .chat-share-page__process-inspector-section--log,
.chat-share-page__process-inspector-sections--fullscreen.chat-share-page__process-inspector-sections--checklist-collapsed.chat-share-page__process-inspector-sections--narratives-collapsed
  .chat-share-page__process-inspector-section--log {
  grid-column: 1;
  grid-row: auto;
}

.chat-share-page__process-inspector-sections--fullscreen.chat-share-page__process-inspector-sections--checklist-collapsed:not(.chat-share-page__process-inspector-sections--narratives-collapsed)
  .chat-share-page__process-inspector-section--narratives,
.chat-share-page__process-inspector-sections--fullscreen.chat-share-page__process-inspector-sections--narratives-collapsed:not(.chat-share-page__process-inspector-sections--checklist-collapsed)
  .chat-share-page__process-inspector-section--checklist {
  grid-column: 1 / -1;
  grid-row: auto;
}

.chat-share-page__process-inspector-section {
  display: grid;
  gap: 8px;
  min-height: 0;
  align-content: start;
}

.chat-share-page__process-inspector-section--checklist,
.chat-share-page__process-inspector-section--narratives {
  grid-column: 1;
}

.chat-share-page__process-inspector-section--log {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.chat-share-page__process-inspector-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-share-page__process-inspector-section-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.chat-share-page__process-inspector-checklist,
.chat-share-page__process-inspector-narratives,
.chat-share-page__process-inspector-log {
  display: grid;
  gap: 0;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.chat-share-page__process-inspector-summary-table {
  display: grid;
  gap: 0;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.chat-share-page__process-inspector-table-row,
.chat-share-page__process-inspector-narrative,
.chat-share-page__process-inspector-log-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
}

.chat-share-page__process-inspector-check-item {
  display: grid;
  grid-template-columns: minmax(0, 132px) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
}

.chat-share-page__process-inspector-table-row + .chat-share-page__process-inspector-table-row,
.chat-share-page__process-inspector-narrative + .chat-share-page__process-inspector-narrative,
.chat-share-page__process-inspector-log-line + .chat-share-page__process-inspector-log-line {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.chat-share-page__process-inspector-check-item + .chat-share-page__process-inspector-check-item {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.chat-share-page__process-inspector-table-label {
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
}

.chat-share-page__process-inspector-table-value {
  min-width: 0;
  line-height: 1.55;
  word-break: break-word;
}

.chat-share-page__process-inspector-table-value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 12px;
}

.chat-share-page__process-inspector-check-title {
  min-width: 0;
}

.chat-share-page__process-inspector-check-note {
  min-width: 0;
  line-height: 1.45;
}

.chat-share-page__process-inspector-log {
  background: rgba(2, 6, 23, 0.96);
  border-color: rgba(30, 41, 59, 0.98);
  min-height: 0;
  align-content: start;
  overflow: auto;
}

.chat-share-page__process-inspector-log-line {
  grid-template-columns: 34px minmax(0, 1fr);
  color: rgba(226, 232, 240, 0.96);
  font-size: 12px;
  line-height: 1.55;
}

.chat-share-page__process-inspector-log-index {
  color: rgba(125, 211, 252, 0.88);
  font-variant-numeric: tabular-nums;
}

.chat-share-page__process-inspector-log-text {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 960px) {
  .chat-share-page__process-inspector {
    width: min(100vw - 16px, 720px);
    max-height: min(100dvh - 16px, 760px);
  }

  .chat-share-page__process-inspector-sections {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-share-page__process-inspector-section--checklist,
  .chat-share-page__process-inspector-section--narratives,
  .chat-share-page__process-inspector-section--log {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .chat-share-page__process-inspector {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 18px;
  }

  .chat-share-page__process-inspector-drag {
    align-items: flex-start;
    padding: 12px;
  }

  .chat-share-page__process-inspector-drag-copy {
    width: 100%;
  }

  .chat-share-page__process-inspector-window-actions {
    flex: 0 0 auto;
  }

  .chat-share-page__process-inspector-summary {
    gap: 10px;
    padding: 12px;
  }

  .chat-share-page__process-inspector-sections {
    gap: 14px;
    padding: 12px;
  }

  .chat-share-page__process-inspector-summary-head,
  .chat-share-page__process-inspector-section-head {
    align-items: flex-start;
  }

  .chat-share-page__process-inspector-section-head {
    gap: 10px;
  }

  .chat-share-page__process-inspector-section-head .ant-typography {
    flex: 1 1 auto;
    min-width: 0;
  }

  .chat-share-page__process-inspector-section-head-actions {
    align-self: stretch;
  }

  .chat-share-page__process-inspector-table-row,
  .chat-share-page__process-inspector-narrative {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 10px;
  }

  .chat-share-page__process-inspector-check-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    padding: 10px;
  }

  .chat-share-page__process-inspector-check-item .ant-tag,
  .chat-share-page__process-inspector-summary-toggle.ant-btn {
    justify-self: flex-start;
  }

  .chat-share-page__process-inspector-summary-toggle.ant-btn {
    margin-top: 2px;
  }

  .chat-share-page__process-inspector-log {
    max-height: min(38dvh, 320px);
  }

  .chat-share-page__process-inspector-log-line {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
  }
}

.chat-share-page__process-inspector-minimized {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 14px;
}

.chat-share-page__process-inspector-minimized-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.chat-share-page__process-inspector-minimized-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.chat-share-page__process-inspector-minimized-time {
  min-width: 0;
}

.chat-share-page__process-inspector-minimized-log {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-share-page__process-inspector-minimized-button.ant-btn {
  border-radius: 999px;
  flex: 0 0 auto;
}

.chat-share-page__room-settings-checkbox-group {
  display: grid;
  gap: 10px;
}

.chat-share-page__room-settings-checkbox-group .ant-checkbox-wrapper {
  width: 100%;
}

.chat-share-page__room-settings-toggle-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 18px;
  background: rgba(239, 246, 255, 0.92);
}

.chat-share-page__token-usage-select-row {
  display: grid;
  gap: 8px;
}

.chat-share-page__token-usage-select-row .ant-typography {
  min-width: 0;
}

.chat-share-page__token-usage-share-url-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chat-share-page__token-usage-share-url {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.chat-share-page__token-usage-copy-button.ant-btn {
  flex: 0 0 auto;
  color: #475569;
}

.chat-share-page__token-usage-copy-button.ant-btn:hover,
.chat-share-page__token-usage-copy-button.ant-btn:focus-visible {
  color: #1d4ed8;
}

.chat-share-page__token-usage-token-meta {
  min-height: 20px;
}

.chat-share-page__token-usage-summary-list {
  display: grid;
  gap: 12px;
}

.chat-share-page__token-usage-overview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.9);
}

.chat-share-page__token-usage-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chat-share-page__token-usage-overview-label {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.chat-share-page__token-usage-overview-value {
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.chat-share-page__token-usage-summary-copy {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.chat-share-page__token-usage-meter-card {
  display: grid;
  gap: 8px;
}

.chat-share-page__token-usage-meter-legend {
  display: grid;
  gap: 8px;
}

.chat-share-page__token-usage-meter-row {
  display: grid;
  grid-template-columns: auto 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.chat-share-page__token-usage-meter-label,
.chat-share-page__token-usage-meter-value,
.chat-share-page__token-usage-meter-dot {
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.chat-share-page__token-usage-meter-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.chat-share-page__token-usage-meter-value {
  margin-left: auto;
  text-align: left;
}

.chat-share-page__token-usage-meter-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.95);
  overflow: hidden;
}

.chat-share-page__token-usage-meter-track--merged {
  height: 12px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.chat-share-page__token-usage-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  height: 100%;
  border-radius: inherit;
}

.chat-share-page__token-usage-meter-fill--overall {
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
  z-index: 1;
}

.chat-share-page__token-usage-meter-fill--7d {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  z-index: 2;
}

.chat-share-page__token-usage-meter-fill--5h {
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
  z-index: 3;
}

.chat-share-page__token-usage-reset-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.chat-share-page__token-usage-reset-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.9);
}

.chat-share-page__token-usage-reset-card--primary {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.55);
}

.chat-share-page__token-usage-reset-label {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.chat-share-page__token-usage-reset-value {
  color: #0f172a;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.chat-share-page__token-usage-reset-value--compact {
  font-size: 18px;
}

.chat-share-page__token-usage-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chat-share-page__token-usage-metric {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.95);
}

.chat-share-page__token-usage-metric-label {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.chat-share-page__token-usage-metric-value {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.2;
}

.chat-share-page__token-usage-empty {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .chat-share-page__token-usage-overview-head,
  .chat-share-page__token-usage-reset-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-share-page__token-usage-overview-head {
    display: grid;
  }

  .chat-share-page__token-usage-meter-row {
    grid-template-columns: auto 38px minmax(0, 1fr);
    gap: 8px;
  }
}

.chat-share-page__composer-file-input {
  display: none;
}

.chat-share-page__scroll-jump {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 150px);
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.chat-share-page__scroll-jump .ant-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
}

.chat-share-page__program-modal .fullscreen-preview-modal__shell,
.chat-share-page__program-modal .fullscreen-preview-modal__content {
  background: #020617;
}

.chat-share-page__server-command-drawer-shell .ant-drawer-content,
.chat-share-page__server-command-drawer-shell .ant-drawer-wrapper-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(180deg, #f7fafc 0%, #eef3f9 100%),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 26%);
}

.chat-share-page__server-command-drawer-shell .ant-drawer-header,
.chat-share-page__server-command-drawer-shell .ant-drawer-header-title,
.chat-share-page__server-command-drawer-shell .ant-drawer-extra {
  min-width: 0;
}

.chat-share-page__server-command-drawer-shell .ant-drawer-header {
  border-bottom: 1px solid rgba(196, 210, 226, 0.96);
  padding: 14px 18px;
  background: rgba(248, 250, 252, 0.94);
}

.chat-share-page__server-command-drawer-shell .ant-drawer-body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.chat-share-page__server-command-drawer-body {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.chat-share-page__server-command-drawer-body .server-command-page {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.chat-share-page__program-modal-content {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.chat-share-page__program-app-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.chat-share-page__program-app-shell--surface {
  padding: 0;
  background: linear-gradient(180deg, #f7fafc 0%, #eef3f9 100%);
}

.chat-share-page__program-app-loading {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.chat-share-page__program-app-shell > *,
.chat-share-page__program-app-shell .ant-card,
.chat-share-page__program-app-shell .ant-card-body,
.chat-share-page__program-app-shell .chat-type-management-page,
.chat-share-page__program-app-shell .shared-app-settings-page,
.chat-share-page__program-app-shell .server-command-page,
.chat-share-page__program-app-shell .text-memo-widget {
  min-width: 0;
  min-height: 0;
}

.chat-share-page__program-app-shell > *,
.chat-share-page__program-app-shell .ant-card,
.chat-share-page__program-app-shell .ant-card-body,
.chat-share-page__program-app-shell .chat-type-management-page,
.chat-share-page__program-app-shell .shared-app-settings-page,
.chat-share-page__program-app-shell .server-command-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.chat-share-page__program-modal .app-chat-panel__preview-frame {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 0;
}

.chat-share-page__program-modal--system-chat-room .fullscreen-preview-modal__shell,
.chat-share-page__program-modal--system-chat-room .fullscreen-preview-modal__content {
  padding-top: env(safe-area-inset-top, 0px);
}

.chat-share-page__program-app-shell--system-chat-room .app-chat-panel--variant-system-chat.app-chat-panel--rooms-shared.ant-card,
.chat-share-page__program-app-shell--system-chat-room .app-chat-panel--variant-system-chat.app-chat-panel--rooms-shared .ant-card-body,
.chat-share-page__program-app-shell--system-chat-room .app-chat-panel--variant-system-chat.app-chat-panel--rooms-shared .app-chat-panel__stack,
.chat-share-page__program-app-shell--system-chat-room .app-chat-panel--variant-system-chat.app-chat-panel--rooms-shared .app-chat-panel__stack--chat,
.chat-share-page__program-app-shell--system-chat-room .app-chat-panel--variant-system-chat.app-chat-panel--rooms-shared .app-chat-panel__conversation-main,
.chat-share-page__program-app-shell--system-chat-room .app-chat-panel--variant-system-chat.app-chat-panel--rooms-shared .app-chat-panel__conversation-empty {
  min-height: 0;
  height: 100%;
}

.chat-share-page__program-app-shell--system-chat-room .app-chat-panel--variant-system-chat.app-chat-panel--rooms-shared .app-chat-panel__composer {
  padding-bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) + 6px));
}

@media (max-width: 768px) {
  .chat-share-page__room-list-panel {
    gap: 10px;
  }

  .chat-share-page__room-list-panel--floating {
    border-radius: 16px;
  }

  .chat-share-page__server-command-drawer-shell .ant-drawer-header {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }

  .chat-share-page__app-settings-drawer-shell .ant-drawer-header {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }

  .chat-share-page__program-app-shell--system-chat-room {
    padding: 0;
  }

  .chat-share-page__program-app-shell--system-chat-room .app-chat-panel--variant-system-chat.app-chat-panel--rooms-shared .app-chat-panel__composer {
    padding-bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  }
}

.chat-share-page__program-minimized {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: env(safe-area-inset-left, 0px);
  z-index: 1605;
  width: min(240px, calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 24px));
  padding: 8px 8px 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(18px);
  touch-action: none;
}

.chat-share-page__program-minimized-drag {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-bottom: 8px;
  color: #e2e8f0;
  cursor: grab;
  user-select: none;
}

.chat-share-page__program-minimized-drag:active {
  cursor: grabbing;
}

.chat-share-page__program-minimized-drag-grip {
  width: 20px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(148, 163, 184, 0.9) 1.2px, transparent 1.4px) 0 0 / 6px 6px;
  opacity: 0.85;
  flex: 0 0 auto;
}

.chat-share-page__program-minimized-title {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-share-page__program-minimized-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-share-page__program-minimized-button.ant-btn {
  flex: 1 1 auto;
  height: 32px;
  padding-inline: 10px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  font-size: 12px;
}

.chat-share-page__program-minimized-icon.ant-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  color: #cbd5e1;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.72);
}

.chat-share-page__program-minimized-close.ant-btn {
  color: #f1f5f9;
}

@media (max-width: 767px) {
  .chat-share-page__scroll-jump {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 150px);
  }

  .chat-share-page__search-results--apps {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 116px), 1fr));
    gap: 8px;
  }

  .chat-share-page__app-tile {
    min-height: 136px;
    padding: 10px;
    border-radius: 14px;
  }

  .chat-share-page__app-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 16px;
  }

  .chat-share-page__app-tile-title {
    font-size: 12px;
    line-height: 1.3;
  }

  .chat-share-page__app-tile-description {
    font-size: 10px;
    min-height: calc(1.35em * 2);
    line-height: 1.35;
  }

  .chat-share-page__app-tile-meta {
    gap: 4px;
  }

  .chat-share-page__app-tile-meta-label,
  .chat-share-page__app-tile-usage {
    min-height: 20px;
    padding-inline: 7px;
    font-size: 10px;
  }

  .chat-share-page__search-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-share-page__search-result-action.ant-btn {
    justify-self: start;
    padding-inline: 0;
  }

  .chat-share-page__search-result-action-group {
    justify-content: flex-start;
  }

  .chat-share-page__search-result-action--environment.ant-btn {
    padding-inline: 10px;
  }

  .chat-share-page__program-minimized {
    width: min(220px, calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 24px));
    padding: 8px;
  }

  .chat-share-page__program-minimized-button.ant-btn {
    min-width: 0;
  }
}

.chat-share-page__request-block,
.chat-share-page__response-block {
  display: grid;
  gap: 10px;
  padding: 0;
}

.chat-share-page__message-time {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 100%;
}

.chat-share-page__message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-share-page__message-headline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-share-page__message-headline--inline {
  justify-content: flex-start;
  margin-bottom: 6px;
}

.chat-share-page__message-tone {
  position: relative;
  width: fit-content;
  max-width: min(82%, 920px);
  border: 1px solid #dbe2ec;
  border-radius: 14px;
  padding: 12px 12px 9px;
  margin-top: 4px;
}

.chat-share-page__message-tone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.chat-share-page__message-tone-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.chat-share-page__message-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.chat-share-page__message-tone-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 999px;
}

.chat-share-page__message-tone-time {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.chat-share-page__message-tone--question {
  margin-left: auto;
  margin-right: 4px;
  background: linear-gradient(180deg, #dcecff 0%, #cfe3ff 100%);
  border-color: #b8d2fb;
  border-bottom-right-radius: 6px;
}

.chat-share-page__message-tone--question .chat-share-page__message-tone-label {
  margin-left: auto;
  background: #e7f1ff;
}

.chat-share-page__message-tone--answer {
  margin-right: auto;
  background: linear-gradient(180deg, #e3f7ec 0%, #d4f0e1 100%);
  border-color: #b9dcc8;
  border-bottom-left-radius: 6px;
}

.chat-share-page__message-tone--answer .chat-share-page__message-tone-label {
  background: #e7f7ee;
}

.chat-share-page__message-action-button.ant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  color: #475569;
}

.chat-share-page__message-action-button.ant-btn.ant-btn-dangerous {
  color: #dc2626;
}


.chat-share-page__response-block {
  display: grid;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.chat-share-page__response-block:first-child {
  border-top: 0;
}
.chat-share-page__message-body.ant-typography {
  margin-bottom: 0;
  color: #0f172a;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-share-page__request-block .app-chat-preview-card,
.chat-share-page__response-block .app-chat-preview-card {
  margin-top: 2px;
}

.chat-share-page__message-divider {
  height: 1px;
  margin: 8px 0;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.9), rgba(148, 163, 184, 0.15));
}

.chat-share-page__prompt-list,
.chat-share-page__resource-list {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.chat-share-page__resource-card-body {
  overflow: hidden;
}

@media (max-width: 720px) {
  .chat-share-page__composer-input-shell textarea.ant-input {
    font-size: 19px;
    line-height: 1.6;
  }

  :root.app-virtual-keyboard-open .chat-share-page__conversation-panel {
    min-height: clamp(112px, 22dvh, 240px);
  }

  .chat-share-page {
    --chat-share-page-top-padding: 6px;
    --chat-share-page-side-padding: 6px;
    --chat-share-page-bottom-padding: 0px;
  }

  .chat-share-page__conversation-panel > .chat-share-page__section-head {
    top: calc(var(--chat-share-page-top-padding) * -1);
    margin: -8px -8px 8px;
    padding-inline: 8px;
  }

  .chat-share-page__conversation-panel,
  .chat-share-page__composer-panel {
    padding-inline: 8px;
  }

  .chat-share-page__composer-panel {
    padding-inline: 0;
  }

  .chat-share-page__message-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-share-page__section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
  }

  .chat-share-page__section-actions {
    width: auto;
    justify-content: flex-end;
    justify-self: end;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .chat-share-page__section-action--tool.ant-btn {
    width: 34px;
    min-width: 34px;
    padding-inline: 0;
    justify-content: center;
  }

  .chat-share-page__section-action--tool.ant-btn .ant-btn-icon {
    width: 24px;
    height: 24px;
  }

  .chat-share-page__tool-button-label {
    display: none;
  }

  .chat-share-page__composer-shell.app-chat-panel__composer {
    padding:
      var(--chat-share-page-composer-shell-padding-top)
      var(--chat-share-page-composer-shell-padding-side)
      var(--chat-share-page-composer-shell-padding-bottom);
    border-radius: 12px;
  }

  .chat-share-page__composer-entry-row {
    align-items: flex-end;
  }

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

  .chat-share-page .app-chat-preview-card__actions,
  .chat-share-page .app-chat-preview-card--prompt .app-chat-preview-card__actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .chat-share-page .app-chat-prompt-card__selection-pill {
    max-width: 100%;
  }
}

.chat-share-page__omission {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.chat-share-page__omission--collapsed {
  padding-block: 10px;
}

.chat-share-page__omission--after {
  padding-top: 12px;
}

.chat-share-page__omission--empty {
  padding-block: 10px;
}

.chat-share-page__omission-label.ant-typography {
  margin: 0;
  flex: 0 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(71, 85, 105, 0.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.chat-share-page__omission-line {
  flex: 1 1 auto;
  min-width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.5), rgba(148, 163, 184, 0.08));
  opacity: 1;
}


.chat-share-page__conversation-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 -10px 8px;
  padding: 2px 10px 0;
}

.chat-share-page__conversation-toolbar {
  position: sticky;
  top: var(--chat-share-page-conversation-toolbar-top, 52px);
  z-index: 18;
  background: transparent;
  backdrop-filter: none;
}

.chat-share-page__conversation-toolbar-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  max-width: 100%;
}

.chat-share-page__conversation-toolbar-button.ant-btn {
  min-width: 34px;
  height: 34px;
  padding-inline: 8px;
  color: #475569;
  background: transparent;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
  backdrop-filter: none;
}

.chat-share-page__conversation-toolbar-button.ant-btn .ant-btn-icon {
  color: currentColor;
  background: transparent;
  box-shadow: none;
}

.chat-share-page__conversation-toolbar-button.ant-btn:hover,
.chat-share-page__conversation-toolbar-button.ant-btn:focus-visible {
  color: #0f172a;
  background: transparent;
  border-color: rgba(100, 116, 139, 0.34);
  box-shadow: none;
}

.chat-share-page__conversation-toolbar-button.ant-btn:active {
  background: transparent;
  border-color: rgba(71, 85, 105, 0.42);
  box-shadow: none;
  transform: none;
}

.chat-share-page__conversation-toolbar-button.ant-btn:disabled,
.chat-share-page__conversation-toolbar-button.ant-btn:disabled:hover,
.chat-share-page__conversation-toolbar-button.ant-btn:disabled:focus-visible {
  color: rgba(100, 116, 139, 0.68);
  background: transparent;
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

.chat-share-page__conversation-toolbar .chat-share-page__conversation-toolbar-button.ant-btn .chat-share-page__tool-button-label {
  color: inherit;
}

.chat-share-page__bundle-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.chat-share-page__collapsible-text {
  display: grid;
  gap: 6px;
}

.chat-share-page__message-body--collapsed.ant-typography {
  max-height: calc(1.7em * 8);
  overflow: hidden;
}

.chat-share-page__collapse-toggle.ant-btn {
  justify-self: flex-start;
  padding-inline: 0;
  color: #2563eb;
}


.chat-share-page__conversation-panel {
  width: 100%;
}

.chat-share-page__composer-panel {
  align-self: stretch;
  width: 100%;
}

.chat-share-page__composer-shell.app-chat-panel__composer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  padding:
    var(--chat-share-page-composer-shell-padding-top)
    var(--chat-share-page-composer-shell-padding-side)
    var(--chat-share-page-composer-shell-padding-bottom);
  border: 0;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(219, 226, 236, 0.82),
    0 10px 28px rgba(148, 163, 184, 0.12);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

:root.app-standalone-mode .chat-share-page__composer-shell.app-chat-panel__composer {
  padding-bottom: max(2px, min(var(--chat-share-page-safe-bottom), 4px));
}

:root.app-virtual-keyboard-open .chat-share-page__composer-shell.app-chat-panel__composer {
  gap: 4px;
  padding-bottom: var(--chat-share-page-composer-shell-padding-bottom);
}

.chat-share-page--composer-viewport-compacted .chat-share-page__composer-shell.app-chat-panel__composer {
  gap: 4px;
  padding-bottom: var(--chat-share-page-composer-shell-padding-bottom);
}

.chat-share-page__composer-topline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.chat-share-page__composer-type-readonly {
  flex: 1 1 180px;
  min-width: 0;
}

.chat-share-page__composer-utility-button.ant-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-share-page__composer-utility-button.ant-btn .anticon {
  font-size: 16px;
}

.chat-share-page__composer-attachment-menu.ant-dropdown-menu {
  min-width: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.16);
}

.chat-share-page__composer-attachment-menu .ant-dropdown-menu-item {
  margin: 0;
  border-radius: 0;
}

.chat-share-page__composer-attachment-dropdown {
  display: inline-flex;
}

.chat-share-page__composer-attachment-menu-model {
  padding: 6px 4px;
}

.chat-share-page__composer-attachment-model-item {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.chat-share-page__composer-attachment-model-title {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.chat-share-page__composer-attachment-model-select {
  width: 100%;
}

.chat-share-page__composer-attachment-model-select.ant-select {
  width: 100%;
}

.chat-share-page__composer-attachment-model-token {
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.chat-share-page__composer-attachment-model-token--session {
  color: #64748b;
}

.chat-share-page__composer-entry-row {
  display: flex;
  align-items: stretch;
  flex: 0 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
}

.chat-share-page__composer-topline .app-chat-panel__composer-utility-buttons,
.chat-share-page__composer-topline-actions {
  flex: 0 0 auto;
}

.chat-share-page__composer-input-shell.app-chat-panel__composer-input-shell {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--chat-share-page-composer-input-min-height);
  width: 100%;
  max-width: none;
}

.chat-share-page__composer-input-shell.app-chat-panel__composer-input-shell .ant-input-textarea {
  display: block;
  flex: 1 1 auto;
  height: 100%;
  min-height: var(--chat-share-page-composer-input-min-height);
}

.chat-share-page__composer-input-shell textarea.ant-input {
  font-size: 16px;
  line-height: 1.45;
  height: 100% !important;
  min-height: var(--chat-share-page-composer-input-min-height) !important;
  max-height: none !important;
  padding-top: var(--chat-share-page-composer-textarea-padding-y);
  padding-bottom: var(--chat-share-page-composer-textarea-padding-y);
  border-radius: 20px;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  resize: none;
}

.chat-share-page .app-chat-prompt-card__free-text .ant-input {
  min-height: var(--chat-share-page-prompt-textarea-min-height);
  line-height: 1.45;
  padding-top: var(--chat-share-page-prompt-textarea-padding-y);
  padding-bottom: var(--chat-share-page-prompt-textarea-padding-y);
}

.chat-share-page .app-chat-prompt-card__free-text .ant-input-textarea {
  min-height: var(--chat-share-page-prompt-textarea-min-height);
}

.chat-share-page .app-chat-prompt-card__free-text .ant-input-textarea textarea.ant-input {
  min-height: var(--chat-share-page-prompt-textarea-min-height) !important;
  height: auto !important;
}

.chat-share-page__composer-input-shell textarea.ant-input:hover,
.chat-share-page__composer-input-shell textarea.ant-input:focus,
.chat-share-page__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);
}

.chat-share-page__composer-input-shell--sending textarea.ant-input,
.chat-share-page__composer-input-shell--sending textarea.ant-input:hover,
.chat-share-page__composer-input-shell--sending textarea.ant-input:focus,
.chat-share-page__composer-input-shell--sending textarea.ant-input:focus-visible {
  color: rgba(71, 85, 105, 0.92);
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(241, 245, 249, 0.96);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: wait;
}

.chat-share-page__composer-panel .app-chat-panel__composer-attachment-strip {
  position: static;
  width: 100%;
  margin: 0;
}

.chat-share-page__reply-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.92);
  color: #1e3a8a;
}

.chat-share-page__reply-reference-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.chat-share-page__reply-reference-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.chat-share-page__reply-reference-text {
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-share-page__reply-reference-clear.ant-btn {
  color: #1d4ed8;
  flex: 0 0 auto;
}

.chat-share-page__previous-question-modal {
  display: grid;
  gap: 12px;
}

.chat-share-page__previous-question-modal-dialog {
  top: max(72px, calc(env(safe-area-inset-top, 0px) + 56px));
  padding-bottom: 16px;
}

.chat-share-page__previous-question-modal-dialog .ant-modal-content {
  max-height: min(
    calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 96px),
    720px
  );
  border-radius: 20px;
  overflow: hidden;
}

.chat-share-page__previous-question-modal-dialog .ant-modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-share-page__previous-question-modal-section {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.chat-share-page__previous-question-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-share-page__previous-question-modal-section + .chat-share-page__previous-question-modal-section {
  border-top: 1px solid #e5eaf1;
}

.chat-share-page__previous-question-modal-text.ant-typography {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.chat-share-page__composer-topline-actions .app-chat-panel__composer-action-buttons .ant-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding-inline: 0;
  border-radius: 10px;
}

.chat-share-page__composer-panel .app-chat-panel__composer-utility-buttons .ant-btn {
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding-inline: 0;
  border-radius: 10px;
}

.chat-share-page__resource-card {
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fff;
}

.chat-share-page .app-chat-prompt-card,
.chat-share-page .app-chat-preview-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.chat-share-page .app-chat-preview-card {
  gap: 2px;
  padding: 2px 0 4px;
}

.chat-share-page .app-chat-prompt-card__header,
.chat-share-page .app-chat-prompt-card__body,
.chat-share-page .app-chat-prompt-card__content,
.chat-share-page .app-chat-prompt-card__options,
.chat-share-page .app-chat-prompt-card__option,
.chat-share-page .app-chat-prompt-card__option-head,
.chat-share-page .app-chat-prompt-card__option-body,
.chat-share-page .app-chat-prompt-card__option-preview-inline,
.chat-share-page .app-chat-prompt-card__preview-shell,
.chat-share-page .app-chat-prompt-card__preview-toolbar,
.chat-share-page .app-chat-prompt-card__preview-body,
.chat-share-page .app-chat-prompt-card__preview-image,
.chat-share-page .app-chat-prompt-card__preview-frame,
.chat-share-page .app-chat-prompt-card__preview-markdown,
.chat-share-page .app-chat-prompt-card__summary,
.chat-share-page .app-chat-prompt-card__submitted {
  width: 100%;
  inline-size: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.chat-share-page .app-chat-prompt-card__header,
.chat-share-page .app-chat-prompt-card__body {
  padding-inline: 6px;
}

.chat-share-page .app-chat-prompt-card__body {
  gap: var(--chat-share-page-prompt-content-gap);
  padding-bottom: var(--chat-share-page-prompt-body-padding-bottom);
}

.chat-share-page .app-chat-prompt-card__content,
.chat-share-page .app-chat-prompt-card__options,
.chat-share-page .app-chat-prompt-card__summary,
.chat-share-page .app-chat-prompt-card__submitted {
  gap: var(--chat-share-page-prompt-content-gap);
}

.chat-share-page .app-chat-prompt-card__free-text {
  gap: var(--chat-share-page-prompt-content-gap);
}

.chat-share-page .app-chat-prompt-card__footer {
  gap: var(--chat-share-page-prompt-footer-gap);
}

.chat-share-page .app-chat-prompt-card__preview-body,
.chat-share-page .app-chat-preview-card__body--structured,
.chat-share-page .app-chat-prompt-card__option-preview-inline,
.chat-share-page .app-chat-prompt-card__preview-shell,
.chat-share-page .app-chat-prompt-card__preview-image,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-table,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-table-scroll,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-image,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-video,
.chat-share-page .app-chat-prompt-card__preview-body .codex-diff-previewer,
.chat-share-page .app-chat-prompt-card__preview-body .codex-diff-previewer__diff-body,
.chat-share-page .app-chat-prompt-card__preview-body .codex-diff-previewer__diff-list,
.chat-share-page .app-chat-prompt-card__preview-body .previewer-ui,
.chat-share-page .app-chat-prompt-card__preview-body .previewer-ui__body,
.chat-share-page .app-chat-prompt-card__preview-body .previewer-ui__editor,
.chat-share-page .app-chat-prompt-card__preview-body .previewer-ui__editor-body,
.chat-share-page .app-chat-prompt-card__preview-body > *,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview,
.chat-share-page .app-chat-prompt-card__preview-body .previewer-ui__editor-body > *,
.chat-share-page .app-chat-prompt-card__preview-body .codex-diff-previewer__diff-list > * {
  width: 100%;
  inline-size: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.chat-share-page .app-chat-prompt-card__preview-body,
.chat-share-page .app-chat-preview-card__body--structured,
.chat-share-page .app-chat-prompt-card__option-preview-inline,
.chat-share-page .app-chat-prompt-card__preview-shell,
.chat-share-page .app-chat-prompt-card__preview-image {
  contain: layout;
}

.chat-share-page .app-chat-message-group__body,
.chat-share-page .app-chat-message-group__activity,
.chat-share-page .app-chat-message-group__activity-stack,
.chat-share-page .app-chat-message-group__activity-children,
.chat-share-page .app-chat-message-group__activity-item,
.chat-share-page .app-chat-preview-card__body,
.chat-share-page .app-chat-preview-card__body--prompt,
.chat-share-page .app-chat-preview-card__body--structured,
.chat-share-page .app-chat-prompt-card__stepper,
.chat-share-page .app-chat-prompt-card__step-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.chat-share-page .app-chat-message-group__body,
.chat-share-page .app-chat-message-group__activity,
.chat-share-page .app-chat-message-group__activity-stack,
.chat-share-page .app-chat-message-group__activity-children,
.chat-share-page .app-chat-message-group__activity-item,
.chat-share-page .app-chat-preview-card__body,
.chat-share-page .app-chat-preview-card__body--prompt,
.chat-share-page .app-chat-preview-card__body--structured {
  overflow-x: hidden;
}

.chat-share-page .app-chat-prompt-card__option-preview-inline,
.chat-share-page .app-chat-prompt-card__preview-shell,
.chat-share-page .app-chat-prompt-card__preview-scroll,
.chat-share-page .app-chat-prompt-card__preview-scroll-inner,
.chat-share-page .app-chat-prompt-card__preview-body,
.chat-share-page .app-chat-prompt-card__preview-image {
  overflow-x: hidden;
}

.chat-share-page .app-chat-prompt-card__preview-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-table-scroll,
.chat-share-page .app-chat-prompt-card__preview-body .codex-diff-previewer__diff-body,
.chat-share-page .app-chat-prompt-card__preview-body .previewer-ui__editor-body,
.chat-share-page .app-chat-prompt-card__preview-body .codex-diff-previewer__diff-list {
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown,
.chat-share-page .app-chat-prompt-card__preview-body .previewer-ui__editor-body {
  max-height: min(420px, 70vh);
}

.chat-share-page .app-chat-prompt-card__preview-image,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-image,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-video {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.chat-share-page .app-chat-prompt-card__description.ant-typography,
.chat-share-page .app-chat-prompt-card__preview-title.ant-typography,
.chat-share-page .app-chat-prompt-card__context-text,
.chat-share-page .app-chat-prompt-card__summary,
.chat-share-page .app-chat-prompt-card__summary-detail {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-share-page .app-chat-message-group__body .app-chat-panel__preview-rich .previewer-ui__editor-body,
.chat-share-page .app-chat-message-group__body .app-chat-panel__preview-rich--markdown,
.chat-share-page .app-chat-message-group__body .app-chat-panel__preview-table-scroll,
.chat-share-page .app-chat-message-group__body .app-chat-message__preview-text {
  max-width: 100%;
  max-height: min(420px, 70vh);
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview,
.chat-share-page .app-chat-message-group__body .app-chat-panel__preview-rich--markdown .markdown-preview,
.chat-share-page .app-chat-message-group__body .app-chat-panel__preview-rich--markdown .markdown-preview > *,
.chat-share-page .app-chat-message-group__body .previewer-ui__editor-body > *,
.chat-share-page .app-chat-message-group__body .codex-diff-previewer__diff-list > * {
  max-width: 100%;
}

.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview > *,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview .ant-typography,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview p,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview ul,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview ol,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview li,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview h1,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview h2,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview h3,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview h4,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview h5,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview h6 {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview ul,
.chat-share-page .app-chat-prompt-card__preview-body .app-chat-panel__preview-rich--markdown .markdown-preview ol {
  margin-inline: 0;
  padding-inline-start: 18px;
}

.chat-share-page .app-chat-preview-card__header,
.chat-share-page .app-chat-preview-card--prompt .app-chat-preview-card__header {
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px 6px;
}

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

.chat-share-page .app-chat-preview-card__actions,
.chat-share-page .app-chat-preview-card--prompt .app-chat-preview-card__actions {
  width: auto;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 0;
}

.chat-share-page .app-chat-preview-card__open-link.ant-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding-inline: 0;
}

.chat-share-page .app-chat-preview-card__body {
  padding: 0 6px 6px;
}

.chat-share-page__section-head--compact {
  margin-bottom: 8px;
}
