.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: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  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: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
  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);
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
  min-height: 0;
}

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

.chat-share-page__conversation-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 10px;
  min-height: 0;
  overflow: hidden;
  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;
  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 {
  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__message-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 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;
}

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

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

.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;
  gap: 12px;
  margin-top: 10px;
}

.chat-share-page__search-app-environment .ant-select {
  min-width: 132px;
}

.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__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: 0;
  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;
  min-width: 0;
  flex-wrap: wrap;
}

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

.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__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: 2px;
}

.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__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;
  gap: 8px;
  min-width: 0;
}

.chat-share-page__settings-item-title {
  display: block;
  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-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--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 {
  color: #475569;
}

.chat-share-page__expand-mode-filter--active.ant-btn {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.98) 0%, rgba(191, 219, 254, 0.94) 100%);
  color: #1d4ed8;
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.28),
    0 8px 18px rgba(96, 165, 250, 0.14);
}

.chat-share-page__expand-mode-filter.ant-btn:hover {
  color: #1d4ed8;
  background: rgba(226, 232, 240, 0.72);
}

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

.chat-share-page__expand-mode-filter.ant-btn .ant-btn-icon {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.96);
}

.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__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__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__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__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__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(176px, 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-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(164px, 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: 10px 12px 9px;
  margin-top: 4px;
}

.chat-share-page__message-tone-label {
  position: absolute;
  top: -9px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.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 {
  right: 12px;
  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 {
  left: 12px;
  background: #e7f7ee;
}


.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: 0;
    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__first-inquiry {
  display: grid;
  gap: 8px;
  padding: 2px 0 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.chat-share-page__first-inquiry-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.chat-share-page__first-inquiry-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.chat-share-page__first-inquiry-menu-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.94);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.chat-share-page__first-inquiry-title.ant-typography {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
}

.chat-share-page__first-inquiry-head .chat-share-page__expand-mode-filter.ant-btn {
  justify-self: end;
  margin-top: 1px;
}

.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-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__composer-topline-actions .app-chat-panel__composer-action-buttons .ant-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding-inline: 0;
  border-radius: 999px;
}

.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__preview-shell,
.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%;
  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-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__request-block > .chat-share-page__message-time {
  justify-self: end;
  padding: 0 0 0 6px;
}

.chat-share-page__response-block > .chat-share-page__message-time {
  justify-self: start;
  padding: 0 6px 0 0;
}

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

.system-chat-page .chat-share-page__composer-panel {
  padding-bottom: max(8px, calc(env(safe-area-inset-bottom, 0px) + 4px));
}

.system-chat-page .chat-share-page__composer-shell.app-chat-panel__composer {
  padding-bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) + 6px));
}

.system-chat-page .system-chat-page__icon-tool-button.ant-btn,
.system-chat-page .system-chat-page__composer-icon-button.ant-btn {
  width: 38px;
  min-width: 38px;
  height: 36px;
  padding-inline: 0;
  border-radius: 12px;
}

.system-chat-page .system-chat-page__icon-tool-button.ant-btn {
  color: #2563eb;
  background: rgba(219, 234, 254, 0.92);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
}

.system-chat-page .system-chat-page__icon-tool-button.ant-btn:hover,
.system-chat-page .system-chat-page__icon-tool-button.ant-btn:focus-visible {
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.96);
}

.system-chat-page .system-chat-page__composer-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.system-chat-page .system-chat-page__composer-icon-button.ant-btn {
  color: #334155;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.92);
}

.system-chat-page .system-chat-page__composer-icon-button--instant.ant-btn {
  color: #b45309;
  background: rgba(255, 247, 237, 0.98);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.58);
}

.system-chat-page .system-chat-page__composer-icon-button--send.ant-btn {
  box-shadow: none;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.system-chat-page .chat-share-page__composer-topline-actions .app-chat-panel__composer-action-buttons .ant-btn {
  border-radius: 12px;
}

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

.system-chat-page .app-chat-panel__system-status {
  border-radius: 12px;
  border-left-width: 3px;
}

.system-chat-page .chat-share-page__message-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.system-chat-page .chat-share-page__message-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.system-chat-page .chat-share-page__composer-panel {
  position: sticky;
  bottom: 0;
  z-index: 18;
  margin-top: 0;
  padding-top: 6px;
  background: linear-gradient(180deg, rgba(242, 245, 250, 0) 0%, rgba(242, 245, 250, 0.92) 26%, rgba(242, 245, 250, 1) 100%);
}

.system-chat-page .chat-share-page__activity-panel {
  margin-bottom: 0;
}

.system-chat-page .chat-share-page__composer-shell.app-chat-panel__composer {
  border-radius: 18px;
}

.system-chat-page .chat-share-page__composer-entry-row {
  position: relative;
}

.system-chat-page .chat-share-page__composer-input-shell.app-chat-panel__composer-input-shell,
.system-chat-page .chat-share-page__composer-input-shell.app-chat-panel__composer-input-shell .ant-input-textarea,
.system-chat-page .chat-share-page__composer-input-shell textarea.ant-input {
  min-height: 118px !important;
}


.system-chat-page .system-chat-page__title-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.system-chat-page .system-chat-page__ws-indicator {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72);
}

.system-chat-page .system-chat-page__ws-indicator--connected {
  background: #22c55e;
}

.system-chat-page .system-chat-page__ws-indicator--disconnected {
  background: #ef4444;
}

.system-chat-page.chat-share-page {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.system-chat-page.chat-share-page::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.system-chat-page .chat-share-page__conversation-panel {
  overflow: visible;
}

.system-chat-page .chat-share-page__message-list {
  overflow-y: visible;
  max-height: none;
}

.system-chat-page .system-chat-page__composer-icon-button.ant-btn {
  color: #2563eb;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.38);
}

.system-chat-page .system-chat-page__composer-icon-button.ant-btn:hover,
.system-chat-page .system-chat-page__composer-icon-button.ant-btn:focus-visible {
  color: #1d4ed8;
  background: #eff6ff;
}

.system-chat-page .system-chat-page__composer-icon-button--send.ant-btn,
.system-chat-page .system-chat-page__composer-icon-button--instant.ant-btn {
  color: #ffffff;
  background: #2563eb;
  box-shadow: none;
}

.system-chat-page .system-chat-page__composer-icon-button--send.ant-btn:hover,
.system-chat-page .system-chat-page__composer-icon-button--send.ant-btn:focus-visible,
.system-chat-page .system-chat-page__composer-icon-button--instant.ant-btn:hover,
.system-chat-page .system-chat-page__composer-icon-button--instant.ant-btn:focus-visible {
  color: #ffffff;
  background: #1d4ed8;
}

.system-chat-page.chat-share-page {
  height: auto;
  min-height: var(--chat-share-page-viewport-height);
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.system-chat-page.chat-share-page::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.system-chat-page .chat-share-page__shell {
  height: auto;
  min-height: calc(var(--chat-share-page-viewport-height) - var(--chat-share-page-safe-top));
}

.system-chat-page .chat-share-page__prompt-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(var(--chat-share-page-viewport-height) - var(--chat-share-page-safe-top) - 16px);
}

.system-chat-page .chat-share-page__conversation-panel {
  min-height: calc(var(--chat-share-page-viewport-height) - 248px);
  overflow: visible;
  padding-bottom: 18px;
}

.system-chat-page .chat-share-page__conversation-panel > .chat-share-page__section-head {
  top: 0;
}

.system-chat-page .chat-share-page__message-list {
  flex: 0 0 auto;
  min-height: calc(var(--chat-share-page-viewport-height) - 348px);
  overflow: visible;
  scrollbar-width: none;
}

.system-chat-page .chat-share-page__message-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.system-chat-page .chat-share-page__composer-panel {
  position: sticky;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  z-index: 24;
  margin-top: auto;
}

.system-chat-page .chat-share-page__composer-shell {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(203, 213, 225, 0.9);
}

.system-chat-page .chat-share-page__composer-input-shell {
  min-height: 152px;
}

.system-chat-page .chat-share-page__composer-input-shell .ant-input,
.system-chat-page .chat-share-page__composer-input-shell textarea.ant-input {
  min-height: 132px !important;
  padding-top: 14px;
  padding-bottom: 14px;
}

.system-chat-page .chat-share-page__first-inquiry-title.ant-typography {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.system-chat-page__rich-message {
  display: grid;
  gap: 12px;
  width: 100%;
}

.system-chat-page__artifact-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.system-chat-page__message-text.ant-typography {
  white-space: pre-wrap;
}

.system-chat-page__preview-card.app-chat-preview-card,
.system-chat-page .app-chat-preview-card,
.system-chat-page .app-chat-prompt-card {
  max-width: 100%;
  margin: 0;
}

.system-chat-page__preview-card-body,
.system-chat-page .app-chat-preview-card__body,
.system-chat-page .app-chat-panel__preview-rich,
.system-chat-page .app-chat-panel__preview-file {
  overflow: visible;
  max-height: none;
}

.system-chat-page .app-chat-panel__preview-frame {
  min-height: 360px;
}

.system-chat-page .app-chat-panel__preview-rich pre,
.system-chat-page .app-chat-panel__preview-rich code {
  white-space: pre-wrap;
  word-break: break-word;
}

.system-chat-page .chat-share-page__composer-panel {
  position: sticky;
  bottom: 0;
  z-index: 28;
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 0;
  background: linear-gradient(180deg, rgba(242, 245, 250, 0) 0%, rgba(242, 245, 250, 0.82) 22%, rgba(242, 245, 250, 0.98) 42%, rgba(242, 245, 250, 1) 100%);
}

.system-chat-page .chat-share-page__composer-shell {
  border-radius: 24px 24px 0 0;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 -10px 24px rgba(15, 23, 42, 0.06),
    inset 0 0 0 1px rgba(203, 213, 225, 0.92);
}

.system-chat-page .chat-share-page__composer-entry-row {
  margin-top: 10px;
}

.system-chat-page .chat-share-page__composer-input-shell {
  min-height: 168px;
}

.system-chat-page .chat-share-page__composer-input-shell .ant-input,
.system-chat-page .chat-share-page__composer-input-shell textarea.ant-input {
  min-height: 144px !important;
  border-radius: 22px;
}

.system-chat-page .system-chat-page__composer-attach-button.ant-btn {
  width: 42px;
  min-width: 42px;
  padding-inline: 0;
  justify-content: center;
}

.system-chat-page .system-chat-page__composer-attach-button.ant-btn .ant-btn-icon {
  margin-inline-end: 0;
}

.system-chat-page.chat-share-page {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.9) rgba(226, 232, 240, 0.7);
}

.system-chat-page.chat-share-page::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.system-chat-page.chat-share-page::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.92);
}

.system-chat-page.chat-share-page::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.6);
}

.system-chat-page .chat-share-page__composer-panel {
  position: sticky;
  bottom: 0;
  z-index: 28;
  padding-top: 14px;
}

.system-chat-page .chat-share-page__composer-shell {
  border-radius: 20px 20px 0 0;
}

.system-chat-page .system-chat-page__reply-reference {
  margin-bottom: 10px;
  border-radius: 16px;
}

.system-chat-page .chat-share-page__composer-entry-row {
  margin-top: 0;
}

.system-chat-page__omitted-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 2px;
  color: #64748b;
}

.system-chat-page__omitted-divider-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.18) 0%, rgba(148, 163, 184, 0.7) 50%, rgba(148, 163, 184, 0.18) 100%);
}

.system-chat-page__omitted-divider-text {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.system-chat-page .chat-share-page__prompt-layout {
  min-height: calc(var(--chat-share-page-viewport-height) - var(--chat-share-page-safe-top) - 16px);
}

.system-chat-page .chat-share-page__conversation-panel {
  min-height: calc(var(--chat-share-page-viewport-height) - 220px);
}

.system-chat-page .chat-share-page__composer-panel {
  position: static;
  bottom: auto;
  z-index: auto;
  margin-top: 14px;
  padding-top: 0;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  background: transparent;
}

.system-chat-page .chat-share-page__composer-shell {
  border-radius: 22px;
  padding: 12px;
}

.system-chat-page.chat-share-page {
  --chat-share-page-top-padding: 0px;
}

.system-chat-page .chat-share-page__shell {
  min-height: calc(var(--chat-share-page-viewport-height) - var(--chat-share-page-safe-top));
}

.system-chat-page .chat-share-page__prompt-layout {
  gap: 6px;
  min-height: calc(var(--chat-share-page-viewport-height) - var(--chat-share-page-safe-top));
}

.system-chat-page .chat-share-page__conversation-panel {
  min-height: calc(var(--chat-share-page-viewport-height) - 190px);
}

.system-chat-page .chat-share-page__composer-panel {
  margin-top: 4px;
}

.system-chat-page .chat-share-page__prompt-layout {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--chat-share-page-viewport-height) - var(--chat-share-page-safe-top));
}

.system-chat-page .chat-share-page__conversation-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.system-chat-page .chat-share-page__composer-panel {
  margin-top: auto;
}

.system-chat-page.chat-share-page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  scrollbar-gutter: stable;
  touch-action: pan-y;
}

.system-chat-page .chat-share-page__shell,
.system-chat-page .chat-share-page__prompt-layout,
.system-chat-page .chat-share-page__conversation-panel,
.system-chat-page .chat-share-page__composer-panel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


.system-chat-page.chat-share-page {
  height: var(--chat-share-page-viewport-height);
  min-height: var(--chat-share-page-viewport-height);
  max-height: var(--chat-share-page-viewport-height);
  overflow-x: hidden;
  overflow-y: auto;
}

.system-chat-page .chat-share-page__shell {
  display: flex;
  flex: 1 1 auto;
  min-height: 100%;
}

.system-chat-page .chat-share-page__prompt-layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 100%;
}

.system-chat-page .chat-share-page__conversation-panel {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.system-chat-page .chat-share-page__message-list {
  flex: 0 0 auto;
  min-height: 0;
}

.system-chat-page .chat-share-page__composer-panel {
  flex: 0 0 auto;
  margin-top: auto;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
}


.system-chat-page .chat-share-page__shell {
  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)
  );
}

.system-chat-page .chat-share-page__prompt-layout {
  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)
  );
  gap: 4px;
}

.system-chat-page .chat-share-page__conversation-panel {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 10px;
}

.system-chat-page .chat-share-page__composer-panel {
  margin-top: auto;
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
}


.system-chat-page .chat-share-page__composer-panel {
  position: static;
  flex: 0 0 auto;
  margin-top: 6px;
  padding-top: 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  background: transparent;
}

.system-chat-page .chat-share-page__composer-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 10px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.06),
    inset 0 0 0 1px rgba(203, 213, 225, 0.92);
}

.system-chat-page .chat-share-page__composer-topline {
  margin-bottom: 0;
}

.system-chat-page .chat-share-page__composer-entry-row {
  margin-top: 0;
}

.system-chat-page .chat-share-page__composer-input-shell {
  min-height: 156px;
}

.system-chat-page .chat-share-page__composer-input-shell .ant-input,
.system-chat-page .chat-share-page__composer-input-shell textarea.ant-input {
  min-height: 132px !important;
  border-radius: 18px;
}


.system-chat-page {
  height: auto !important;
  min-height: var(--chat-share-page-viewport-height) !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.system-chat-page .chat-share-page__shell {
  height: auto !important;
  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)
  ) !important;
}

.system-chat-page .chat-share-page__prompt-layout {
  display: flex !important;
  flex-direction: column !important;
  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)
  ) !important;
  height: auto !important;
  gap: 6px !important;
}

.system-chat-page .chat-share-page__conversation-panel {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  min-height: clamp(240px, 42dvh, 520px) !important;
  height: auto !important;
  overflow: visible !important;
}

.system-chat-page .chat-share-page__message-list {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  overflow: visible !important;
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 0 !important;
}

.system-chat-page .chat-share-page__composer-panel {
  position: static !important;
  flex: 0 0 auto !important;
  margin-top: 6px !important;
  padding-top: 0 !important;
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
}

.system-chat-page .chat-share-page__composer-shell {
  position: static !important;
}
