/* Split from website/static/css/pages.css. Keep selector order compatible with the original cascade. */

.history-search {
  display: flex;
  align-items: center;
  background: rgba(25, 27, 35, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 16px;
}

.history-search input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  padding: 0;
  border-radius: 0;
}

.history-search input::placeholder {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}

.history-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 16px 0 12px;
  padding: 4px;
  position: relative;
}

.history-tabs .active-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(50% - 4px);
  margin: 4px;
  background: #ffffff;
  border-radius: 6px;
  transition: transform 0.2s ease;
  z-index: 0;
}

.history-tabs.workspace-active .active-indicator {
  transform: translateX(100%);
}

.history-tabs .tab {
  padding: 10px 0;
  background: transparent;
  color: #ffffff;
  letter-spacing: -0.08px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.history-tabs .tab.active {
  color: #0b0b0b;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  isolation: isolate;
}

#chat_history.active {
  isolation: auto;
}

.page:has(#chat_history.active) {
  z-index: auto;
}

#chat_history .history-list.history-list--menu-open {
  isolation: auto;
  z-index: 6;
}

.history-list.is-motion-replaying [data-motion-role]:not(.is-visible):not(.is-inview) {
  opacity: 0;
}

.history-group {
  display: flex;
  flex-direction: column;
}

.history-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 4px;
  border-bottom: 1px solid #434550;
}

.history-group-text {
  font-size: 12px;
  font-weight: 300;
  line-height: 22px;
  color: #b6b6b6;
}

.history-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.history-menu-anchor {
  position: relative;
  align-self: start;
  z-index: 1;
}

.history-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.workspace-row {
  align-items: flex-start;
  padding: 16px 0;
  gap: 12px;
}

.workspace-row .history-info {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.workspace-logos,
.workspace-model-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.workspace-logo,
.workspace-model-count-chip {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.workspace-model-count-chip {
  width: auto;
  height: auto;
  min-width: 52px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  gap: 8px;
}

.workspace-model-count-value {
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.workspace-logo-badge {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
  min-width: 20px;
  max-width: 24px;
}

.workspace-logo svg,
.workspace-model-count-chip svg {
  display: block;
  flex: none;
  max-width: 100%;
  max-height: 100%;
}

.workspace-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: #fff;
}

.workspace-meta {
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.45);
}

.workspace-row .dot-menu svg circle {
  fill: none;
  stroke: currentColor;
}

.dot-menu {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dot-menu svg {
  width: 4px;
  height: 16px;
  fill: #7d808d;
}

.history-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  overflow: hidden;
}

.history-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  flex: none;
}

.history-text-block {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: #ffffff;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-row.has-search-hits {
  align-items: flex-start;
}

.history-row.has-search-hits .history-info {
  align-items: flex-start;
}

.history-search-hits {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.history-search-hit {
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.history-search-hit:hover,
.history-search-hit:focus-visible {
  color: rgba(255, 255, 255, 0.78);
}

.history-search-hit-role {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.history-search-hit mark {
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  padding: 0;
}

.star {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.16s ease;
}

.star svg {
  width: 24px;
  height: 24px;
  display: block;
  transition: opacity 0.18s ease;
}

.star svg path {
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.star[data-bookmark-state="default"] svg {
  opacity: 0.68;
}

.star[data-bookmark-state="filled"] svg {
  opacity: 1;
}

.star[data-bookmark-state="default"]:hover svg,
.star[data-bookmark-state="default"]:focus-visible svg {
  opacity: 0.84;
}

.star[data-bookmark-state="default"]:active svg,
.star[data-bookmark-state="filled"]:active svg {
  opacity: 1;
}

.star:active {
  transform: scale(0.96);
}

.history-empty {
  padding: 32px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}
.history-menu {
  position: absolute;
  top: 46px;
  left: 0;
  background: rgba(32, 35, 46, 0.98);
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  animation: menuFade 0.18s ease forwards;
  z-index: 10;
}

.menu-option {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 16px;
  cursor: pointer;
  text-align: center;
}

.menu-option + .menu-option {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-option:hover {
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.055);
}

@keyframes menuFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menuFadeUp {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-modal {
  --overlay-footer-scrim-height: calc(var(--footer-dock-nav-min-height, 52px) + env(safe-area-inset-bottom) + 128px);
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding:
    max(16px, env(safe-area-inset-top))
    16px
    calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  transform: translateY(8px) scale(0.98);
}

.history-modal::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--overlay-footer-scrim-height);
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0) 0%, rgba(8, 10, 16, 0.16) 24%, rgba(8, 10, 16, 0.42) 56%, rgba(8, 10, 16, 0.82) 100%);
}

.history-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.modal-card {
  background: #262832;
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  padding: 24px 24px 16px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.history-modal.open .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-question {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.modal-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.modal-btn {
  border: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.modal-btn.primary {
  background: #434550;
  color: #ffffff;
}

.modal-btn.danger {
  background: #b23b3b;
  color: #ffffff;
}

.modal-btn.secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.modal-btn:hover:not(:disabled) {
  transform: scale(0.99);
  opacity: 0.95;
}

.modal-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#chat_history .history-row {
  grid-template-columns: var(--ui-chat-icon-button-size) minmax(0, 1fr) var(--ui-chat-icon-button-size);
  align-items: center;
  column-gap: 8px;
  min-height: var(--ui-chat-row-min-height);
  padding-block: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#chat_history .history-menu-anchor {
  align-self: center;
  justify-self: center;
}

#chat_history .history-info {
  gap: 9px;
}

#chat_history .history-row.menu-open,
#chat_history .workspace-row.menu-open {
  border-color: rgba(255, 255, 255, 0.12);
  will-change: auto;
  z-index: 6;
}

#chat_history .workspace-row {
  align-items: start;
  column-gap: 8px;
  min-height: var(--ui-chat-row-min-height);
  padding-block: 10px;
}

#chat_history .workspace-row .history-menu-anchor,
#chat_history .workspace-row .workspace-star {
  align-self: start;
  justify-self: center;
  margin-top: 0;
}

#chat_history .workspace-row .history-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

#chat_history .workspace-title {
  order: 0;
}

#chat_history .workspace-logos {
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

#chat_history .workspace-model-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  order: 1;
}

#chat_history .workspace-model-count-chip {
  height: auto;
  min-height: 22px;
  min-width: 38px;
  padding: 0 6px;
  border-radius: var(--ui-chat-control-radius);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
}

#chat_history .workspace-logo {
  width: var(--ui-chat-icon-button-size);
  height: var(--ui-chat-icon-button-size);
  flex: 0 0 var(--ui-chat-icon-button-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#chat_history .workspace-model-count-chip .workspace-logo {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

#chat_history .workspace-logo svg {
  width: var(--ui-chat-icon-size);
  height: var(--ui-chat-icon-size);
}

#chat_history .workspace-model-count-chip .workspace-logo svg {
  width: 13px;
  height: 13px;
}

#chat_history .workspace-model-count-value {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

#chat_history .dot-menu {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8f93a3;
  transition: transform 0.15s ease, opacity 0.15s ease,
    background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#chat_history .dot-menu:hover,
#chat_history .history-row.menu-open .dot-menu {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f2f3f8;
}

#chat_history .dot-menu:active {
  transform: scale(0.97);
}

#chat_history .dot-menu:focus-visible {
  outline: none;
  border-color: rgba(110, 201, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(110, 201, 255, 0.18);
}

#chat_history .dot-menu svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
}

#chat_history .history-menu {
  position: fixed;
  top: var(--history-menu-top, 0px);
  left: var(--history-menu-left, 0px);
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 148px;
  padding: 5px;
  border-radius: 13px;
  background: rgba(32, 35, 46, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  z-index: 7;
}

#chat_history .history-menu.history-menu--drop-up {
  animation-name: menuFadeUp;
}

#chat_history .history-menu.open {
  display: flex;
}

#chat_history .menu-option {
  font-size: 12px;
  font-weight: 500;
  padding: var(--ui-chat-menu-item-pad-y) var(--ui-chat-menu-item-pad-x);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: calc(var(--ui-chat-control-radius) + 2px);
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease;
}

#chat_history .menu-option + .menu-option {
  border-top: none;
}

#chat_history .menu-option:hover {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.055);
}

#chat_history .menu-option:active {
  opacity: 0.9;
}

#chat_history .menu-option[data-action="delete"] {
  color: #ff405d;
}

#chat_history .history-menu-icon {
  width: var(--ui-chat-menu-icon-size);
  height: var(--ui-chat-menu-icon-size);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

#chat_history .history-menu-icon svg {
  width: var(--ui-chat-menu-icon-size);
  height: var(--ui-chat-menu-icon-size);
  display: block;
}

#chat_history .history-menu-label {
  line-height: 1.2;
}

#chat_history .history-modal,
#profile .history-modal {
  background: rgba(7, 9, 14, 0.6);
}

#chat_history .history-modal .modal-card,
#profile .history-modal .modal-card {
  background: linear-gradient(180deg, rgba(30, 34, 44, 0.98), rgba(22, 25, 34, 0.98));
  border-radius: 18px;
  width: 100%;
  max-width: 330px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.045);
  gap: 14px;
  backdrop-filter: blur(12px);
}

#chat_history .history-modal-header,
#profile .history-modal-header,
#profile-transactions .history-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#chat_history .history-modal-heading,
#profile .history-modal-heading,
#profile-transactions .history-modal-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

#chat_history .modal-question,
#profile .modal-question,
#profile-transactions .modal-question {
  font-size: 16px;
  line-height: 22px;
}

#chat_history .modal-desc,
#profile .modal-desc,
#profile-transactions .modal-desc {
  margin: 0;
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.58);
}

#chat_history .history-modal-close,
#profile .history-modal-close,
#profile-transactions .history-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease;
}

#chat_history .history-modal-close:hover,
#profile .history-modal-close:hover,
#profile-transactions .history-modal-close:hover {
  transform: scale(0.99);
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.07);
}

#chat_history .history-modal-close svg,
#profile .history-modal-close svg,
#profile-transactions .history-modal-close svg {
  width: 13px;
  height: 13px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

#chat_history .history-modal-body,
#profile .history-modal-body,
#profile-transactions .history-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#chat_history .history-modal-body--compact,
#profile .history-modal-body--compact,
#profile-transactions .history-modal-body--compact {
  gap: 8px;
}

#chat_history .history-modal-label,
#profile .history-modal-label,
#profile-transactions .history-modal-label {
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.52);
}

#chat_history .history-modal .modal-input,
#profile .history-modal .modal-input,
#profile-transactions .history-modal .modal-input {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
}

#chat_history .history-modal .modal-input:focus,
#profile .history-modal .modal-input:focus,
#profile-transactions .history-modal .modal-input:focus {
  border-color: rgba(124, 188, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(33, 183, 255, 0.12);
}

#chat_history .history-modal-actions,
#profile .history-modal-actions,
#profile-transactions .history-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
}

#chat_history .history-modal-actions--single .modal-btn,
#profile .history-modal-actions--single .modal-btn,
#profile-transactions .history-modal-actions--single .modal-btn {
  width: 100%;
}

#chat_history .history-modal .modal-btn,
#profile .history-modal .modal-btn,
#profile-transactions .history-modal .modal-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 13px;
  padding: 10px 12px;
  width: 100%;
}

#chat_history .history-modal .modal-btn.primary,
#chat_history .history-modal .modal-btn.danger,
#profile .history-modal .modal-btn.primary,
#profile .history-modal .modal-btn.danger,
#profile-transactions .history-modal .modal-btn.primary,
#profile-transactions .history-modal .modal-btn.danger {
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
}

#chat_history .history-modal .modal-btn.secondary,
#profile .history-modal .modal-btn.secondary,
#profile-transactions .history-modal .modal-btn.secondary {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.85);
}

#profile .history-modal .modal-card,
#profile-transactions .history-modal .modal-card {
  width: min(520px, calc(100vw - 32px));
  max-width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 18px;
  gap: 16px;
  border-radius: 22px;
  overflow: hidden;
}

#chat_history .history-workspace-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#chat_history .history-workspace-option {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease,
    background 0.2s ease, border-color 0.2s ease;
}

#chat_history .history-workspace-option:hover:not(:disabled) {
  transform: scale(0.99);
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.06);
}

#chat_history .history-workspace-option:active:not(:disabled) {
  transform: scale(0.97);
}

#chat_history .history-workspace-option.is-current,
#chat_history .history-workspace-option:disabled {
  cursor: default;
  opacity: 0.88;
  border-color: rgba(124, 188, 255, 0.24);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(87, 102, 255, 0.08));
}

#chat_history .history-workspace-option-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#chat_history .history-workspace-option-title {
  font-size: 14px;
  line-height: 19px;
  font-weight: 500;
  color: #fff;
}

#chat_history .history-workspace-option-subtitle {
  font-size: 11px;
  line-height: 15px;
  color: rgba(255, 255, 255, 0.52);
}

#chat_history .history-workspace-option-badge {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: #d7ebff;
}

.start-chat-card {
  --app-motion-fixed-transform: translateX(-50%) scale(1);
  position: fixed;
  left: 50%;
  bottom: calc(var(--footer-floating-cta-bottom) + env(safe-area-inset-bottom));
  max-width: 560px;
  width: 94%;
  margin: 0;
  border: 1px solid rgba(12, 15, 24, 0.06);
  border-radius: 14px;
  background: #ffffff;
  color: #0f131b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transform: var(--app-motion-fixed-transform);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
  z-index: 9;
}

.start-chat-card:hover {
  --app-motion-fixed-transform: translateX(-50%) scale(0.99);
  background: #eceff5;
  transform: var(--app-motion-fixed-transform);
  opacity: 0.95;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.start-chat-card:active {
  --app-motion-fixed-transform: translateX(-50%) scale(0.97);
  transform: var(--app-motion-fixed-transform);
  background: #e5e9f1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.start-chat-icon svg {
  width: 24px;
  height: 24px;
  color: currentColor;
}

.start-chat-card:focus-visible {
  outline: none;
  border-color: rgba(130, 194, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(124, 188, 255, 0.14), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.start-chat-text {
  font-size: 16px;
  font-weight: 600;
}
