:root {
  --bg-page: linear-gradient(138deg, #eff4ff 0%, #f7fbff 46%, #fff7f8 100%);
  --bg-panel: rgba(255, 255, 255, 0.78);
  --bg-panel-strong: rgba(255, 255, 255, 0.94);
  --bg-soft: #f5f8fc;
  --bg-soft-strong: #ebf1f7;
  --bg-soft-accent: #f3f7ff;
  --text-primary: #1b2430;
  --text-secondary: #667389;
  --text-tertiary: #9ba7b8;
  --line: rgba(212, 222, 235, 0.9);
  --line-soft: rgba(227, 234, 242, 0.72);
  --shadow-main: 0 18px 48px rgba(17, 34, 68, 0.08);
  --shadow-soft: 0 10px 28px rgba(17, 34, 68, 0.06);
  --shadow-float: 0 12px 32px rgba(17, 34, 68, 0.07);
  --brand: #4f95ff;
  --brand-dark: #2d63d6;
  --brand-soft: rgba(79, 149, 255, 0.12);
  --accent: #222b36;
  --radius-xl: 20px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --model-rail-width: 236px;
  --sidebar-width: 280px;
  --group-info-width: 264px;
  --sidebar-collapsed-width: 0px;
  --page-padding: 12px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background: #f3f7fc;
  color: var(--text-primary);
}

body {
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(214, 227, 255, 0.8), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 227, 234, 0.65), transparent 20%),
    #f4f7fb;
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding: 56px var(--page-padding) var(--page-padding);
  gap: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(214, 229, 255, 0.78), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 239, 236, 0.74), transparent 22%),
    linear-gradient(180deg, #f5f8fc 0%, #f8fafc 100%);
}

.mode-tabs {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(224, 232, 242, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(17, 34, 68, 0.07);
  z-index: 25;
}

.mode-tab {
  min-width: 92px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mode-tab:hover {
  color: var(--accent);
  background: rgba(244, 248, 255, 0.96);
}

.mode-tab.is-active {
  color: #163153;
  background: linear-gradient(180deg, rgba(240, 246, 255, 0.98), rgba(251, 253, 255, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(198, 217, 246, 0.96),
    0 8px 18px rgba(79, 149, 255, 0.08);
}

.app-shell--mobile-preview {
  justify-content: center;
  align-items: stretch;
  padding-top: 68px;
}

.mobile-preview-stage {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  place-items: center;
}

.mobile-preview-shell {
  width: min(100%, 430px);
  height: min(100%, 820px);
  min-height: 620px;
  padding: 12px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(23, 32, 45, 0.96), rgba(31, 43, 60, 0.96)),
    radial-gradient(circle at top left, rgba(79, 149, 255, 0.3), transparent 34%);
  box-shadow:
    0 26px 70px rgba(18, 40, 74, 0.18),
    0 8px 18px rgba(18, 40, 74, 0.08);
}

.mobile-preview-device {
  height: 100%;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, #f7fafc 0%, #eef4fa 100%),
    radial-gradient(circle at top right, rgba(196, 217, 248, 0.26), transparent 30%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.mobile-preview-status {
  height: 28px;
  flex: 0 0 28px;
  padding: 8px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #223047;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
}

.mobile-preview-status__icons {
  color: #5c6b80;
  font-weight: 600;
}

.mobile-preview-page {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-preview-topbar {
  min-height: 50px;
  padding: 6px 12px 8px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(222, 231, 242, 0.78);
  background: rgba(247, 250, 253, 0.88);
  backdrop-filter: blur(14px);
}

.mobile-preview-topbar__leading,
.mobile-preview-topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-preview-topbar__actions {
  justify-content: flex-end;
}

.mobile-preview-topbar__title {
  min-width: 0;
  text-align: center;
}

.mobile-preview-topbar__title strong,
.mobile-preview-topbar__title span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-preview-topbar__title strong {
  color: #1c2f49;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.mobile-preview-topbar__title span {
  color: #7c8da3;
  font-size: 10px;
  line-height: 14px;
}

.mobile-preview-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #51657f;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(223, 231, 241, 0.84);
}

.mobile-preview-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.mobile-preview-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 14px;
}

.mobile-preview-search-row {
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
}

.mobile-preview-search-row .mobile-preview-search {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 0 1.5px rgba(207, 221, 241, 0.92),
    0 10px 24px rgba(31, 61, 98, 0.05);
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
}

.mobile-preview-search-row .panel-search__icon,
.mobile-preview-search-row .panel-search__icon svg {
  width: 18px;
  height: 18px;
}

.mobile-preview-search-row .panel-search__icon {
  color: #8a98ad;
}

.mobile-preview-search-row .panel-search__input {
  height: 50px;
  color: #233954;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.mobile-preview-search-row .panel-search__input::placeholder {
  color: #9aa8ba;
}

.mobile-preview-search-row .mobile-preview-search-action {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #1f63f2;
  background: rgba(224, 238, 255, 0.92);
}

.mobile-preview-search-row .mobile-preview-search-action svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.mobile-preview-section-title {
  margin: 16px 2px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7c8da3;
  font-size: 12px;
  line-height: 18px;
}

.mobile-preview-section-title strong {
  color: #46617e;
}

.mobile-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-preview-agent-item {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(224, 232, 242, 0.88),
    0 8px 18px rgba(23, 45, 78, 0.04);
}

.mobile-preview-agent-item__avatar,
.mobile-preview-agent-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #1b2430;
  font-size: 13px;
  font-weight: 800;
}

.mobile-preview-agent-item__avatar .history-avatar-chip,
.mobile-preview-agent-item__avatar .history-avatar-collage {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.mobile-preview-agent-item__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-preview-agent-item__meta strong,
.mobile-preview-agent-item__meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-preview-agent-item__meta strong {
  color: #1c2f49;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.mobile-preview-agent-item__meta span {
  color: #7c8da3;
  font-size: 12px;
  line-height: 18px;
}

.mobile-preview-agent-item__arrow {
  color: #9aa8ba;
  transform: rotate(-90deg);
}

.mobile-preview-agent-item__arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.mobile-preview-chat-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 8px 12px 0;
}

.mobile-preview-chat-body .chat-stage {
  height: 100%;
  min-height: 0;
}

.mobile-preview-chat-body .message-list {
  max-height: none;
  padding: 8px 2px 14px;
}

.mobile-preview-chat-body .hero-content {
  height: 100%;
  justify-content: center;
  padding: 0;
}

.hero-content--mobile-home {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  padding: 18px 4px 10px;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}

.mobile-home-avatar {
  width: 58px;
  height: 58px;
  margin: 0 0 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #17426d;
  background:
    linear-gradient(145deg, rgba(125, 191, 255, 0.95), rgba(145, 224, 205, 0.82)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 12px 26px rgba(40, 94, 150, 0.14);
}

.mobile-home-avatar svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.hero-content--mobile-home .hero-title {
  margin: 0 0 8px;
  color: #182d47;
  font-size: 22px;
  line-height: 30px;
  text-align: left;
}

.hero-content--mobile-home .hero-desc {
  margin: 0 0 18px;
  max-width: none;
  color: #63758e;
  font-size: 13px;
  line-height: 21px;
  text-align: left;
}

.suggestion-list--mobile {
  width: 100%;
  gap: 9px;
  align-items: stretch;
}

.suggestion-list--mobile .suggestion-chip {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #263b56;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(224, 232, 242, 0.88),
    0 7px 16px rgba(23, 45, 78, 0.04);
}

.suggestion-list--mobile .suggestion-chip:nth-child(2) {
  background: rgba(246, 249, 252, 0.92);
}

.suggestion-list--mobile .suggestion-chip .icon {
  width: 18px;
  height: 18px;
  color: #2d63d6;
  flex: 0 0 auto;
}

.suggestion-list--mobile .suggestion-text {
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
}

.mobile-preview-composer {
  flex: 0 0 auto;
  position: relative;
  z-index: 8;
  padding: 7px 10px 9px;
  background: rgba(247, 250, 253, 0.94);
}

.mobile-preview-composer__box {
  border-radius: 20px;
  border-color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 32px rgba(23, 45, 78, 0.08),
    0 3px 10px rgba(23, 45, 78, 0.04);
  overflow: visible;
}

.mobile-preview-composer__box--voice {
  border-radius: 22px;
}

.mobile-preview-composer__input {
  min-height: 42px;
  max-height: 78px;
  padding: 12px 16px 2px;
  font-size: 15px;
  line-height: 22px;
  caret-color: #2d63d6;
}

.mobile-preview-composer .composer-input.mobile-preview-composer__input {
  min-height: 42px;
  max-height: 78px;
  padding: 12px 16px 2px;
  font-size: 15px;
  line-height: 22px;
}

.mobile-preview-composer__input::placeholder {
  color: #a8b2c0;
}

.mobile-preview-composer__toolbar {
  min-height: 42px;
  padding: 4px 12px 10px;
  flex-wrap: nowrap;
  border-top: 0;
  gap: 8px;
}

.mobile-preview-composer .composer-toolbar.mobile-preview-composer__toolbar {
  min-height: 42px;
  padding: 4px 12px 10px;
  flex-wrap: nowrap;
  gap: 8px;
}

.mobile-preview-composer__toolbar .composer-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-preview-model-select {
  position: relative;
  max-width: 178px;
}

.mobile-preview-model-switch {
  max-width: 178px;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #51657f;
  background: rgba(246, 249, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(226, 234, 244, 0.88);
}

.mobile-preview-model-switch span,
.mobile-preview-model-switch svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke: currentColor;
}

.mobile-preview-model-switch strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.mobile-preview-model-switch em {
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  color: #8a98aa;
  font-style: normal;
  transform: rotate(-90deg);
}

.mobile-preview-model-switch em svg {
  width: 12px;
  height: 12px;
}

.mobile-preview-model-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: 132px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 14px 32px rgba(23, 45, 78, 0.14),
    inset 0 0 0 1px rgba(226, 234, 244, 0.92);
}

.mobile-preview-model-menu button {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: #31445f;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-align: left;
}

.mobile-preview-model-menu button.is-active {
  color: #2d63d6;
  background: rgba(238, 245, 255, 0.96);
}

.mobile-preview-composer__toolbar .tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.mobile-preview-composer__toolbar .tool-btn .icon {
  width: 20px;
  height: 20px;
}

.mobile-preview-composer .member-strip {
  margin-bottom: 8px;
}

.mobile-preview-composer .mention-menu {
  left: 12px;
  right: 12px;
  bottom: calc(100% + 8px);
  width: auto;
  max-width: none;
}

.mobile-preview-composer__actions {
  flex: 0 0 auto;
  gap: 4px;
  padding-right: 0;
}

.mobile-preview-composer .composer-actions.mobile-preview-composer__actions {
  flex: 0 0 auto;
  gap: 4px;
  padding-right: 0;
}

.mobile-preview-composer__actions .mobile-preview-attach-btn {
  flex: 0 0 auto;
  margin: 0;
}

.mobile-preview-composer-icon,
.mobile-preview-send {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #101820;
  background: transparent;
}

.mobile-preview-composer-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.mobile-preview-send {
  border: 0;
}

.mobile-preview-voice-pad {
  width: 100%;
  min-height: 42px;
  padding: 12px 16px 2px;
  display: grid;
  place-items: center;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
}

.mobile-preview-composer.is-recording {
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(232, 240, 255, 0.96) 100%);
}

.mobile-preview-composer.is-recording .mobile-preview-composer__box {
  min-height: 238px;
  border-radius: 30px 30px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(226, 237, 255, 0.96) 100%);
  box-shadow: 0 -12px 36px rgba(33, 75, 140, 0.12);
}

.mobile-preview-composer.is-recording .mobile-preview-voice-pad {
  min-height: 170px;
  padding: 34px 16px 24px;
  color: #7b8491;
  background: transparent;
  border-bottom: 0;
  align-content: center;
  gap: 34px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.mobile-preview-voice-wave {
  width: min(260px, 72vw);
  height: 22px;
  display: block;
  background: repeating-linear-gradient(
    90deg,
    #2d63d6 0 4px,
    transparent 4px 11px
  );
  border-radius: 999px;
}

.mobile-preview-composer.is-recording .mobile-preview-composer__toolbar {
  display: none;
}

.mobile-preview-content--history .history-panel {
  height: 100%;
}

.mobile-preview-content--history .history-list {
  max-height: none;
}

.mobile-preview-bottom-tabs {
  flex: 0 0 auto;
  height: 66px;
  margin: 0 12px 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(224, 232, 242, 0.86),
    0 10px 26px rgba(28, 55, 92, 0.08);
  backdrop-filter: blur(12px);
}

.mobile-preview-bottom-tabs button {
  min-width: 0;
  height: 52px;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #7f8fa5;
  background: transparent;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.mobile-preview-bottom-tabs button.is-active {
  color: #235ed4;
  background:
    linear-gradient(180deg, rgba(237, 246, 255, 0.96), rgba(222, 235, 255, 0.94)),
    rgba(79, 149, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(187, 214, 255, 0.78),
    0 6px 14px rgba(45, 99, 214, 0.1);
}

.mobile-preview-bottom-tabs svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.mobile-preview-bottom-tabs strong {
  font-size: 11px;
  line-height: 14px;
  font-weight: 750;
}

.mobile-preview-me {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.mobile-preview-me__profile {
  padding: 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(224, 232, 242, 0.88),
    0 8px 18px rgba(23, 45, 78, 0.04);
}

.mobile-preview-me__profile span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mobile-preview-me__profile strong {
  color: #1c2f49;
  font-size: 15px;
  line-height: 22px;
}

.mobile-preview-me__profile em {
  color: #7c8da3;
  font-size: 12px;
  line-height: 18px;
  font-style: normal;
}

.mobile-preview-me__logout {
  margin-top: auto;
  min-height: 44px;
  border-radius: 14px;
  color: #c04b56;
  background: rgba(255, 244, 246, 0.96);
  box-shadow: inset 0 0 0 1px rgba(246, 207, 213, 0.82);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.mobile-group-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-group-info__head,
.mobile-group-info__metric,
.mobile-group-info__actions,
.mobile-group-info__section-head,
.mobile-group-info__members {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(224, 232, 242, 0.88),
    0 8px 18px rgba(23, 45, 78, 0.04);
}

.mobile-group-info__head {
  min-height: 72px;
  padding: 12px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.mobile-group-info__avatar,
.mobile-group-info__avatar .history-avatar-chip,
.mobile-group-info__avatar .history-avatar-collage {
  width: 48px;
  height: 48px;
}

.mobile-group-info__title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-group-info__title em {
  color: #7c8da3;
  font-size: 12px;
  line-height: 18px;
  font-style: normal;
}

.mobile-group-info__title strong {
  color: #1c2f49;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-group-info__metric {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-group-info__metric span,
.mobile-group-info__section-head span {
  color: #7c8da3;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.mobile-group-info__metric strong {
  color: #1c2f49;
  font-size: 18px;
  line-height: 24px;
}

.mobile-group-info__actions {
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-group-info__actions button {
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #31445f;
  background: rgba(246, 249, 252, 0.96);
}

.mobile-group-info__actions button.is-danger {
  color: #c04b56;
  background: rgba(255, 244, 246, 0.96);
}

.mobile-group-info__actions svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.mobile-group-info__actions strong {
  font-size: 13px;
  line-height: 18px;
}

.mobile-group-info__section-head {
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-group-info__section-head button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2d63d6;
  background: rgba(79, 149, 255, 0.1);
}

.mobile-group-info__section-head svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.mobile-group-info__section-head strong {
  font-size: 12px;
  line-height: 18px;
}

.mobile-group-info__members {
  overflow: hidden;
}

.mobile-group-info-member {
  min-height: 54px;
  padding: 8px 10px 8px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(224, 232, 242, 0.74);
}

.mobile-group-info-member:last-child {
  border-bottom: 0;
}

.mobile-group-info-member__avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #1b2430;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.mobile-group-info-member strong {
  min-width: 0;
  color: #31445f;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-group-info-member button {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #9aa8ba;
  background: rgba(246, 249, 252, 0.94);
}

.mobile-group-info-member button:not(:disabled):hover {
  color: #c04b56;
  background: rgba(255, 244, 246, 0.96);
}

.mobile-group-info-member button:disabled {
  opacity: 0.42;
}

.mobile-group-info-member svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.mobile-group-action-sheet {
  position: fixed;
  left: 50%;
  bottom: 28px;
  width: min(398px, calc(100vw - 32px));
  transform: translateX(-50%);
  z-index: 43;
  padding: 8px 14px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.2),
    inset 0 0 0 1px rgba(225, 232, 241, 0.92);
}

.mobile-group-action-sheet > strong {
  display: block;
  margin-bottom: 12px;
  color: #1c2f49;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}

.mobile-group-action-sheet button {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  color: #c04b56;
  background: rgba(255, 244, 246, 0.96);
  box-shadow: inset 0 0 0 1px rgba(246, 207, 213, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.mobile-user-backdrop {
  position: fixed;
  inset: 0;
  z-index: 42;
  background: rgba(15, 23, 42, 0.22);
}

.mobile-user-sheet {
  position: fixed;
  left: 50%;
  bottom: 28px;
  width: min(398px, calc(100vw - 32px));
  transform: translateX(-50%);
  z-index: 43;
  padding: 8px 14px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.2),
    inset 0 0 0 1px rgba(225, 232, 241, 0.92);
}

.mobile-user-sheet__handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(154, 168, 188, 0.42);
}

.mobile-user-sheet__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.mobile-user-sheet__avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #17345c;
  background: linear-gradient(145deg, rgba(125, 191, 255, 0.95), rgba(147, 222, 212, 0.78));
  font-size: 18px;
  font-weight: 800;
}

.mobile-user-sheet__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mobile-user-sheet__identity strong {
  color: #1c2f49;
  font-size: 15px;
  line-height: 22px;
}

.mobile-user-sheet__identity span {
  color: #7c8da3;
  font-size: 12px;
  line-height: 18px;
}

.mobile-user-sheet__info {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(246, 249, 252, 0.96);
  box-shadow: inset 0 0 0 1px rgba(226, 234, 244, 0.88);
}

.mobile-user-sheet__info span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-style: normal;
}

.mobile-user-sheet__info strong {
  color: #7c8da3;
  font-size: 12px;
  line-height: 18px;
}

.mobile-user-sheet__info em {
  min-width: 0;
  color: #24364f;
  font-size: 12px;
  line-height: 18px;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-user-sheet__actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-user-sheet__actions button {
  min-height: 42px;
  border-radius: 14px;
  color: #24364f;
  background: rgba(246, 249, 252, 0.96);
  box-shadow: inset 0 0 0 1px rgba(226, 234, 244, 0.88);
  font-size: 14px;
  font-weight: 600;
}

.mobile-user-sheet__actions button.is-danger {
  color: #c04b56;
  background: rgba(255, 244, 246, 0.96);
}

.model-rail,
.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  padding: 18px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 30px rgba(18, 40, 74, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.24s ease, flex-basis 0.24s ease, padding 0.24s ease, opacity 0.2s ease, margin 0.24s ease;
}

.model-rail {
  width: var(--model-rail-width);
  flex-basis: var(--model-rail-width);
  gap: 18px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(241, 247, 255, 0.95), rgba(247, 250, 255, 0.9)),
    radial-gradient(circle at top left, rgba(111, 170, 255, 0.12), transparent 32%);
  border-color: rgba(218, 229, 246, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 0 0 1px rgba(231, 239, 250, 0.74),
    0 12px 34px rgba(38, 76, 136, 0.05);
}

.sidebar.is-collapsed {
  width: var(--sidebar-collapsed-width);
  flex-basis: var(--sidebar-collapsed-width);
  padding: 0;
  opacity: 0;
  margin-right: -16px;
  pointer-events: none;
}

.history-sidebar {
  gap: 0;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(252, 253, 255, 0.9)),
    radial-gradient(circle at top left, rgba(111, 170, 255, 0.06), transparent 34%);
  border-color: rgba(226, 234, 245, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(235, 241, 248, 0.78),
    0 10px 28px rgba(18, 40, 74, 0.045);
}

.group-info-panel {
  width: var(--group-info-width);
  flex: 0 0 var(--group-info-width);
  padding: 16px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.88)),
    radial-gradient(circle at top right, rgba(111, 170, 255, 0.08), transparent 34%);
  border: 1px solid rgba(226, 234, 245, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(235, 241, 248, 0.72),
    0 10px 28px rgba(18, 40, 74, 0.045);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.group-info-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(227, 234, 242, 0.78);
}

.group-info-panel__avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.group-info-panel__avatar .history-avatar-chip,
.group-info-panel__avatar .history-avatar-collage {
  width: 42px;
  height: 42px;
}

.group-info-panel__avatar .history-avatar-chip {
  border-radius: 14px;
  font-size: 13px;
}

.group-info-panel__avatar .history-avatar-collage {
  border-radius: 14px;
  padding: 3px;
}

.group-info-panel__avatar .history-avatar-mini {
  border-radius: 6px;
  font-size: 9px;
}

.group-info-panel__title {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.group-info-panel__name-row {
  min-width: 0;
}

.group-info-panel__title span,
.group-info-panel__metric span,
.group-info-panel__section-head span {
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 18px;
}

.group-info-panel__title strong {
  color: #143052;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-info-panel__actions {
  position: relative;
  margin-left: auto;
  align-self: center;
  flex: 0 0 auto;
}

.group-info-panel__more {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #3b587a;
  background: rgba(244, 248, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(205, 222, 248, 0.92);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.group-info-panel__more svg {
  width: 18px;
  height: 18px;
}

.group-info-panel__more:hover,
.group-info-panel__more:focus-visible,
.group-info-panel__more[aria-expanded="true"] {
  color: var(--brand-dark);
  background: rgba(236, 245, 255, 1);
  box-shadow:
    inset 0 0 0 1px rgba(150, 194, 255, 0.8),
    0 6px 14px rgba(79, 149, 255, 0.14);
  transform: translateY(-1px);
}

.group-action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 3;
  min-width: 124px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 14px 36px rgba(31, 46, 72, 0.14),
    inset 0 0 0 1px rgba(226, 235, 246, 0.92);
}

.group-action-menu__item {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #253956;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.group-action-menu__item:hover,
.group-action-menu__item:focus-visible {
  background: rgba(243, 247, 253, 0.96);
}

.group-action-menu__item.is-danger {
  color: #c04b56;
}

.group-action-menu__item.is-danger:hover,
.group-action-menu__item.is-danger:focus-visible {
  background: rgba(255, 242, 244, 0.96);
}

.group-action-menu__item .icon,
.group-action-menu__item svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.group-info-panel__metric {
  min-height: 64px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(245, 248, 253, 0.92);
  box-shadow: inset 0 0 0 1px rgba(229, 236, 244, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-info-panel__metric strong {
  color: #143052;
  font-size: 28px;
  line-height: 1;
}

.group-info-panel__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.group-info-panel__add {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-dark);
  background: rgba(244, 248, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(205, 222, 248, 0.9);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.group-info-panel__add:hover {
  background: rgba(236, 245, 255, 1);
  transform: translateY(-1px);
}

.group-info-panel__add .icon,
.group-info-panel__add svg {
  width: 14px;
  height: 14px;
}

.group-info-panel__list {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 94%, rgba(0, 0, 0, 0));
}

.group-info-panel__list::-webkit-scrollbar {
  width: 4px;
}

.group-info-panel__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(178, 190, 207, 0.58);
}

.group-info-member {
  min-height: 50px;
  padding: 8px 8px 8px 10px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(232, 238, 246, 0.86);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.group-info-member:hover {
  background: rgba(248, 251, 255, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(217, 228, 242, 0.94),
    0 8px 18px rgba(55, 92, 148, 0.05);
  transform: translateY(-1px);
}

.group-info-member__avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #1b2430;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.group-info-member__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.group-info-member__meta strong {
  color: var(--accent);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-info-member__meta span {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-info-member__remove {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(102, 115, 137, 0.74);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.group-info-member__remove svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.group-info-member__remove:hover:not(:disabled),
.group-info-member__remove:focus-visible:not(:disabled) {
  background: rgba(255, 240, 242, 0.96);
  color: #c04b56;
}

.group-info-member__remove:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.brand-row,
.sidebar-footer,
.history-row,
.suggestion-chip,
.tool-btn,
.toolbar,
.toggle-chip,
.composer-actions,
.history-label {
  display: flex;
  align-items: center;
}

.brand-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-row--rail {
  margin-bottom: 0;
  padding: 2px 2px 0;
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 2px;
}

.orb {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, #9de4ff 0%, #68cbff 38%, #6caeea 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.orb::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(127, 149, 255, 0.28), transparent 34%),
    radial-gradient(circle at 60% 40%, #5f6a87 0%, #202535 42%, #2f3852 64%, #7f9ddd 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.65),
    inset 0 0 10px rgba(255, 255, 255, 0.18);
}

.orb::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 35%, rgba(255, 255, 255, 0.6), transparent 28%);
  mix-blend-mode: screen;
}

.orb-sm {
  width: 40px;
  height: 40px;
}

.orb-lg {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  box-shadow:
    0 20px 40px rgba(88, 160, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.orb-xs {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #748196;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: rgba(116, 129, 150, 0.1);
  color: var(--accent);
  transform: translateY(-1px);
}

.create-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 14px;
}

.create-row--with-toggle {
  gap: 10px;
}

.create-row--with-toggle .create-btn {
  flex: 1;
}

.create-row__toggle {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-self: center;
}

.panel-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.create-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 13px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(225, 231, 237, 0.72);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.create-btn:hover {
  background: white;
  box-shadow:
    inset 0 0 0 1px rgba(214, 225, 240, 0.95),
    0 8px 20px rgba(16, 32, 64, 0.05);
  transform: translateY(-1px);
}

.create-btn__caret {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-left: auto;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: rgba(102, 115, 137, 0.92);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.create-btn:hover .create-btn__caret {
  background: rgba(116, 129, 150, 0.08);
  color: var(--accent);
}

.create-menu-wrap {
  position: relative;
}

.create-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.1),
    0 2px 6px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(225, 231, 239, 0.92);
  z-index: 5;
}

.create-menu__item {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-align: left;
}

.create-menu__item:hover {
  background: rgba(243, 247, 251, 0.92);
}

.history-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #60718b;
  padding: 0 6px 2px;
}

.history-head--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.history-head span {
  font-size: 14px;
}

.history-head__action {
  margin-left: auto;
}

.panel-search {
  width: 100%;
  min-height: 42px;
  padding: 0 8px 0 12px;
  border-radius: 12px;
  background: rgba(247, 250, 253, 0.94);
  box-shadow: inset 0 0 0 1px rgba(229, 236, 244, 0.92);
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.panel-search__icon {
  width: 16px;
  height: 16px;
  color: #8c98aa;
  display: grid;
  place-items: center;
}

.panel-search__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.panel-search__input {
  width: 100%;
  height: 40px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  line-height: 20px;
}

.panel-search__input::placeholder {
  color: var(--text-tertiary);
}

.panel-search__action {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: rgba(79, 149, 255, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.panel-search__action:hover {
  background: rgba(79, 149, 255, 0.16);
  transform: translateY(-1px);
}

.panel-search__action .icon,
.panel-search__action svg {
  width: 15px;
  height: 15px;
}

.model-panel {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.model-panel__head--stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.panel-search-row--agent {
  grid-template-columns: minmax(0, 1fr) 34px;
  margin-bottom: 12px;
}

.panel-search--agent {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(212, 224, 241, 0.9),
    0 6px 14px rgba(65, 104, 166, 0.04);
}

.model-rail-list {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding-top: 4px;
  padding-right: 4px;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  border-radius: 16px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 92%, rgba(0, 0, 0, 0));
}

.model-rail-list::-webkit-scrollbar {
  width: 4px;
}

.model-rail-list::-webkit-scrollbar-thumb {
  background: rgba(154, 168, 188, 0.45);
  border-radius: 999px;
}

.model-rail-item {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(223, 232, 245, 0.84),
    0 6px 16px rgba(64, 101, 160, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.model-rail-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(203, 221, 245, 0.96),
    0 12px 24px rgba(53, 92, 151, 0.08);
}

.model-rail-item.is-active {
  background: linear-gradient(180deg, rgba(225, 237, 255, 0.98), rgba(241, 247, 255, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(124, 173, 245, 0.94),
    inset 3px 0 0 rgba(63, 127, 228, 0.88),
    0 12px 24px rgba(74, 132, 231, 0.11);
}

.model-rail-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #1d2531;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(32, 53, 91, 0.08);
}

.model-rail-item__avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.model-rail-item__avatar .history-avatar-chip,
.model-rail-item__avatar .history-avatar-collage {
  width: 40px;
  height: 40px;
}

.model-rail-item__avatar .history-avatar-chip {
  border-radius: 14px;
  font-size: 12px;
}

.model-rail-item__avatar .history-avatar-collage {
  border-radius: 14px;
  padding: 3px;
}

.model-rail-item__avatar .history-avatar-mini {
  border-radius: 6px;
  font-size: 9px;
}

.model-tone-0 {
  background: linear-gradient(145deg, rgba(125, 191, 255, 0.92), rgba(74, 121, 255, 0.2));
}

.model-tone-1 {
  background: linear-gradient(145deg, rgba(147, 222, 212, 0.95), rgba(78, 161, 217, 0.18));
}

.model-tone-2 {
  background: linear-gradient(145deg, rgba(255, 208, 171, 0.95), rgba(255, 149, 110, 0.18));
}

.model-tone-3 {
  background: linear-gradient(145deg, rgba(215, 198, 255, 0.95), rgba(143, 167, 255, 0.18));
}

.model-rail-item__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-rail-item__text strong {
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: #143052;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-rail-item__text span {
  font-size: 11px;
  line-height: 18px;
  color: #6780a1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-rail-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(245, 248, 253, 0.92);
  box-shadow: inset 0 0 0 1px rgba(229, 236, 244, 0.9);
}

.active-rail-profile__avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #1d2531;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(32, 53, 91, 0.08);
}

.active-rail-profile__name {
  color: var(--accent);
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.chat-context-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(248, 251, 254, 0.88);
  box-shadow: inset 0 0 0 1px rgba(232, 238, 246, 0.88);
}

.chat-context-card__avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.chat-context-card__avatar .history-avatar-chip,
.chat-context-card__avatar .history-avatar-collage {
  width: 32px;
  height: 32px;
}

.chat-context-card__avatar .history-avatar-chip {
  border-radius: 12px;
  font-size: 11px;
}

.chat-context-card__avatar .history-avatar-collage {
  border-radius: 12px;
  padding: 2px;
}

.chat-context-card__avatar .history-avatar-mini {
  border-radius: 5px;
  font-size: 8px;
}

.chat-context-card__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chat-context-card__meta strong {
  color: var(--accent);
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
}

.chat-context-card__meta span {
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 18px;
}

.history-row {
  gap: 8px;
}

.history-list {
  overflow: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 92%, rgba(0, 0, 0, 0));
}

.history-list::-webkit-scrollbar {
  width: 4px;
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(154, 168, 188, 0.45);
  border-radius: 999px;
}

.panel-empty {
  margin: 8px 2px 0;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(247, 250, 253, 0.9);
  box-shadow: inset 0 0 0 1px rgba(229, 236, 244, 0.82);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.history-context-menu {
  position: fixed;
  min-width: 140px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(225, 231, 239, 0.92);
  z-index: 30;
}

.history-context-menu__item {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c04b56;
  text-align: left;
}

.history-context-menu__item:hover {
  background: rgba(255, 240, 242, 0.92);
}

.history-group {
  margin-bottom: 10px;
}

.history-label {
  gap: 6px;
  font-size: 12px;
  color: #8f9aad;
  padding: 8px 10px 6px;
  letter-spacing: 0.01em;
}

.history-item-shell {
  position: relative;
}

.history-item {
  width: 100%;
  padding: 10px 38px 10px 10px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #667389;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.history-item--plain {
  grid-template-columns: minmax(0, 1fr);
}

.history-item__delete {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #a9b3c3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.history-item-shell:hover .history-item__delete,
.history-item-shell:focus-within .history-item__delete {
  opacity: 1;
  pointer-events: auto;
}

.history-item__delete svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.history-item__delete:hover,
.history-item__delete:focus-visible {
  background: rgba(255, 240, 242, 0.96);
  color: #c04b56;
}

.history-item__avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.history-avatar-chip {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #1b2430;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.history-avatar-collage {
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(225, 232, 241, 0.88),
    0 4px 10px rgba(24, 38, 62, 0.05);
}

.history-avatar-mini {
  min-width: 0;
  min-height: 0;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #1b2430;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.history-item__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.history-item__title {
  font-size: 12px;
  line-height: 18px;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.64);
  color: var(--accent);
  transform: translateX(1px);
}

.history-item.is-active {
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.99), rgba(251, 253, 255, 0.96));
  color: #143052;
  box-shadow:
    inset 0 0 0 1px rgba(207, 220, 238, 0.95),
    0 8px 18px rgba(55, 92, 148, 0.05);
  font-weight: 500;
}

.history-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.model-tone-0 {
  background: linear-gradient(145deg, rgba(125, 191, 255, 0.92), rgba(74, 121, 255, 0.2));
}

.model-tone-1 {
  background: linear-gradient(145deg, rgba(147, 222, 212, 0.95), rgba(78, 161, 217, 0.18));
}

.model-tone-2 {
  background: linear-gradient(145deg, rgba(255, 208, 171, 0.95), rgba(255, 149, 110, 0.18));
}

.model-tone-3 {
  background: linear-gradient(145deg, rgba(215, 198, 255, 0.95), rgba(143, 167, 255, 0.18));
}

.sidebar-footer {
  gap: 8px;
  padding: 14px 6px 2px;
  border-top: 1px solid var(--line-soft);
  color: #748196;
  font-size: 12px;
  transition: color 0.2s ease;
}

.sidebar-footer:hover {
  color: #d35b67;
}

.workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 20px;
  padding: 22px 22px 18px;
  background: var(--bg-page);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 48px rgba(16, 32, 64, 0.05);
  display: flex;
  position: relative;
  overflow: hidden;
}

.workspace.has-runtime-panel {
  gap: 16px;
}

.collapsed-tools {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.runtime-access-toolbar {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.runtime-access-button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(202, 215, 232, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #34445c;
  box-shadow: 0 7px 18px rgba(30, 64, 113, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.runtime-access-button:hover {
  border-color: rgba(111, 155, 220, 0.78);
  background: #fff;
  color: #0f5fc5;
  box-shadow: 0 9px 22px rgba(37, 91, 169, 0.11);
}

.runtime-access-button.is-active {
  border-color: rgba(91, 142, 216, 0.7);
  background: #eef6ff;
  color: #0f5fc5;
  box-shadow: inset 0 0 0 1px rgba(103, 153, 224, 0.1), 0 8px 20px rgba(37, 91, 169, 0.09);
}

.runtime-access-button:focus-visible {
  outline: 2px solid rgba(0, 107, 255, 0.28);
  outline-offset: 2px;
}

.runtime-access-button__icon {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  color: #236bc4;
}

.runtime-access-button__icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.runtime-preview-panel {
  flex: 0 0 min(420px, 44%);
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(207, 218, 233, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(30, 64, 113, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.runtime-preview-panel__header {
  min-height: 62px;
  padding: 12px 13px 12px 14px;
  border-bottom: 1px solid rgba(222, 229, 239, 0.88);
  display: flex;
  align-items: center;
  gap: 10px;
}

.runtime-preview-panel__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf5ff;
  color: #1768c8;
  display: grid;
  place-items: center;
}

.runtime-preview-panel__icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

.runtime-preview-panel__heading {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.runtime-preview-panel__heading strong {
  color: #243248;
  font-size: 14px;
  line-height: 20px;
}

.runtime-preview-panel__heading span {
  color: #8793a7;
  font-size: 11px;
  line-height: 16px;
}

.runtime-preview-panel__badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2c6fbd;
  font-size: 10px;
  line-height: 16px;
  font-weight: 600;
}

.runtime-preview-panel__close {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  color: #77849a;
  display: grid;
  place-items: center;
}

.runtime-preview-panel__close:hover {
  background: #f1f5fa;
  color: #34445c;
}

.runtime-preview-panel__close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.runtime-preview-panel__body {
  flex: 1;
  min-height: 0;
  padding: 14px;
  background: linear-gradient(180deg, #fbfcfe, #f5f8fc);
  display: flex;
  flex-direction: column;
}

.runtime-demo-meta {
  padding: 0 2px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7b879a;
  font-size: 11px;
  line-height: 18px;
}

.runtime-demo-meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.runtime-demo-meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31b779;
  box-shadow: 0 0 0 3px rgba(49, 183, 121, 0.12);
}

.runtime-desktop-demo {
  flex: 1;
  min-height: 320px;
  border: 1px solid rgba(109, 137, 177, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 78% 22%, rgba(137, 198, 255, 0.88), transparent 27%),
    linear-gradient(145deg, #335fa3, #82b4db 58%, #d8d9ef);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 16px 30px rgba(37, 65, 107, 0.16);
  position: relative;
  overflow: hidden;
}

.runtime-desktop-demo__topbar {
  height: 30px;
  padding: 0 12px;
  background: rgba(24, 40, 68, 0.76);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.runtime-desktop-demo__apps {
  position: absolute;
  top: 48px;
  left: 16px;
  display: grid;
  gap: 13px;
}

.runtime-desktop-demo__apps div {
  width: 50px;
  color: #fff;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 10px;
  text-shadow: 0 1px 3px rgba(20, 40, 72, 0.5);
}

.runtime-desktop-demo__apps b {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245, 249, 255, 0.94);
  color: #315a92;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(23, 49, 84, 0.18);
  font-size: 11px;
}

.runtime-desktop-demo__window {
  position: absolute;
  top: 74px;
  left: 82px;
  right: 26px;
  height: 190px;
  border-radius: 11px;
  background: rgba(250, 252, 255, 0.96);
  box-shadow: 0 20px 40px rgba(30, 54, 92, 0.24);
  overflow: hidden;
}

.runtime-desktop-demo__window-bar {
  height: 28px;
  padding: 0 10px;
  border-bottom: 1px solid #e8edf4;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
}

.runtime-desktop-demo__window-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f1a7a7;
}

.runtime-desktop-demo__window-bar i:nth-child(2) { background: #f2ce7a; }
.runtime-desktop-demo__window-bar i:nth-child(3) { background: #7fd09c; }
.runtime-desktop-demo__window-bar span { margin-left: 4px; }

.runtime-desktop-demo__window-content {
  height: calc(100% - 28px);
  padding: 28px 20px;
  color: #536178;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.runtime-desktop-demo__window-content strong { color: #26364d; font-size: 15px; }
.runtime-desktop-demo__window-content span { font-size: 11px; }
.runtime-desktop-demo__window-content small { color: #8290a5; font: 10px/16px ui-monospace, SFMono-Regular, Menlo, monospace; }

.runtime-desktop-demo__dock {
  position: absolute;
  left: 50%;
  bottom: 14px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(243, 248, 255, 0.62);
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.runtime-desktop-demo__dock i {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: linear-gradient(145deg, #f9fbff, #729ad0);
  box-shadow: 0 3px 8px rgba(29, 55, 91, 0.18);
}

.runtime-terminal-demo {
  flex: 1;
  min-height: 320px;
  border: 1px solid #26344b;
  border-radius: 14px;
  background: #0e1626;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
  color: #d7e0ee;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.runtime-terminal-demo__bar {
  min-height: 38px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: #172235;
  display: flex;
  align-items: center;
  gap: 12px;
}

.runtime-terminal-demo__bar > span { display: flex; gap: 5px; }
.runtime-terminal-demo__bar i { width: 8px; height: 8px; border-radius: 50%; background: #ef7474; }
.runtime-terminal-demo__bar i:nth-child(2) { background: #e5bd5e; }
.runtime-terminal-demo__bar i:nth-child(3) { background: #5fc17d; }
.runtime-terminal-demo__bar strong { color: #aab7ca; font: 10px/16px ui-monospace, SFMono-Regular, Menlo, monospace; }

.runtime-terminal-demo pre {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 20px 18px;
  overflow: auto;
  white-space: pre-wrap;
  color: #d7e0ee;
  font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.runtime-terminal-demo__prompt { color: #73d39a; }
.runtime-terminal-demo__path { color: #76a9ef; }
.runtime-terminal-demo__cursor { display: inline-block; width: 7px; height: 14px; background: #d7e0ee; vertical-align: -2px; animation: terminal-cursor-blink 1s steps(1) infinite; }

@keyframes terminal-cursor-blink {
  50% { opacity: 0; }
}

.mobile-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.16);
  border: 0;
  z-index: 9;
}

.collapsed-create-row {
  position: relative;
}

.collapsed-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(16, 32, 64, 0.05);
}

.collapsed-new-chat {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px 0 14px;
  border-radius: 8px;
  border: 1px solid #006bff;
  background: rgba(255, 255, 255, 0.9);
  color: #006bff;
  font-size: 14px;
  line-height: 22px;
  box-shadow: 0 6px 18px rgba(0, 107, 255, 0.08);
  font-weight: 500;
}

.collapsed-new-chat:hover {
  background: #f6faff;
}

.collapsed-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(215, 225, 238, 0.86),
    0 6px 16px rgba(16, 32, 64, 0.05);
  color: #4f5e75;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.collapsed-chip.is-active {
  color: #0f4fb4;
  background: rgba(241, 247, 255, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(173, 201, 244, 0.94),
    0 8px 18px rgba(52, 101, 182, 0.08);
}

.collapsed-new-chat__icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}

.collapsed-new-chat__caret {
  width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: rgba(0, 107, 255, 0.82);
}

.collapsed-new-chat:hover .collapsed-new-chat__caret {
  background: rgba(0, 107, 255, 0.08);
}

.collapsed-new-chat__icon img {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  display: block;
}

.collapsed-new-chat__icon svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
}

.hero-panel {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(151, 201, 255, 0.12), rgba(236, 204, 255, 0.1));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 72px 42px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-panel.is-chat {
  padding-top: 14px;
}

.app-shell--floating {
  --floating-default-width: min(720px, calc(100vw - 32px));
  --floating-window-width: var(--floating-default-width);
  --floating-chat-width: var(--floating-default-width);
  --floating-chat-height: clamp(420px, 68vh, 720px);
  padding-top: 64px;
}

.app-shell--floating .workspace {
  max-width: 940px;
  margin: 0 auto;
  padding: 18px 20px 22px;
  background:
    linear-gradient(180deg, rgba(244, 248, 253, 0.96), rgba(248, 250, 253, 0.98)),
    radial-gradient(circle at top right, rgba(214, 229, 255, 0.52), transparent 30%);
}

.app-shell--floating .collapsed-tools {
  left: 0;
  right: 0;
  top: 0;
  gap: 0;
}

@media (max-width: 479px) {
  .app-shell--floating {
    --floating-default-width: calc(100vw - 24px);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .app-shell--floating {
    --floating-default-width: min(640px, calc(100vw - 32px));
  }
}

@media (min-width: 1281px) and (max-width: 1920px) {
  .app-shell--floating {
    --floating-default-width: min(760px, 52vw);
  }
}

@media (min-width: 1921px) {
  .app-shell--floating {
    --floating-default-width: 820px;
  }
}

.collapsed-tools--floating {
  left: 0;
  right: 0;
  top: 0;
  gap: 0;
  padding: 6px 14px 8px;
  background:
    linear-gradient(180deg, rgba(245, 248, 252, 0.92), rgba(247, 250, 253, 0.84)),
    radial-gradient(circle at top left, rgba(196, 217, 248, 0.12), transparent 40%);
  border-bottom: 1px solid rgba(226, 234, 243, 0.92);
  box-shadow: 0 4px 10px rgba(25, 45, 78, 0.028);
  backdrop-filter: blur(14px);
}

.app-shell--floating .mobile-single-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 34px;
  padding: 0;
}

.app-shell--floating .mobile-single-topbar__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}

.app-shell--floating .mobile-single-topbar__copy {
  min-width: 0;
}

.app-shell--floating .mobile-single-topbar__title,
.app-shell--floating .mobile-single-topbar__subtitle {
  margin: 0;
}

.app-shell--floating .mobile-single-topbar__title {
  color: #24364f;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.app-shell--floating .mobile-single-topbar__subtitle {
  color: #7c8da3;
  font-size: 10px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-shell--floating .mobile-single-topbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 6px;
}

.app-shell--floating .collapsed-toggle-btn--sheet,
.app-shell--floating .collapsed-new-chat--sheet {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(227, 234, 243, 0.84);
  color: #5f738d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.app-shell--floating .collapsed-toggle-btn--sheet:hover,
.app-shell--floating .collapsed-new-chat--sheet:hover {
  background: rgba(255, 255, 255, 0.78);
}

.app-shell--floating .collapsed-toggle-btn--sheet .icon,
.app-shell--floating .collapsed-new-chat--sheet .collapsed-new-chat__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex: 0 0 18px;
}

.app-shell--floating .collapsed-toggle-btn--sheet .icon svg,
.app-shell--floating .collapsed-new-chat--sheet .collapsed-new-chat__icon svg,
.app-shell--floating .collapsed-new-chat--sheet .collapsed-new-chat__icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.app-shell--floating .hero-panel.is-chat {
  padding-top: 58px;
}

.hero-panel--floating {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.94)),
    linear-gradient(135deg, rgba(164, 205, 255, 0.1), rgba(241, 222, 255, 0.08));
  padding: 24px 28px 22px;
}

.hero-panel--floating.hero-panel--floating-entry {
  justify-content: flex-end;
  padding-top: 64px;
}

.hero-panel--floating.hero-panel--floating-chat {
  height: var(--floating-chat-height);
  min-height: 420px;
  padding-top: 18px;
}

.app-shell--floating .hero-content--floating-home {
  flex: 1;
  width: min(100%, var(--floating-chat-width));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  max-width: var(--floating-chat-width);
  min-height: 0;
  padding: 0;
  text-align: left;
}

.app-shell--floating .hero-content--floating-home::before,
.app-shell--floating .hero-content--floating-home::after {
  display: none;
}

.app-shell--floating .hero-content--floating-home .suggestion-list {
  width: 100%;
  margin: 0;
  gap: 8px;
  align-items: stretch;
}

.app-shell--floating .hero-content--floating-home .suggestion-chip {
  width: 100%;
  max-width: none;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(248, 251, 254, 0.92);
  box-shadow: inset 0 0 0 1px rgba(230, 236, 244, 0.92);
}

.app-shell--floating .hero-content--floating-home .suggestion-chip:nth-child(2) {
  background: rgba(245, 249, 253, 0.94);
}

.app-shell--floating .hero-content--floating-home .suggestion-chip:hover {
  transform: translateY(0);
  background: rgba(251, 253, 255, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(221, 230, 241, 0.96),
    0 6px 12px rgba(30, 52, 88, 0.035);
}

.app-shell--floating .hero-content--floating-home .suggestion-chip .icon {
  width: 18px;
  height: 18px;
  color: #6b93d6;
  opacity: 0.9;
}

.app-shell--floating .hero-content--floating-home .suggestion-text {
  color: #334256;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.app-shell.is-requirement-open {
  padding-right: calc(var(--page-padding) + min(420px, 34vw));
}

.requirement-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.requirement-fab {
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(20, 31, 46, 0.08);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 48%),
    linear-gradient(135deg, #1d2531 0%, #2a5d8f 100%);
  color: #fff;
  font-size: 14px;
  line-height: 38px;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 36px rgba(24, 39, 58, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  pointer-events: auto;
}

.requirement-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(24, 39, 58, 0.26);
}

.requirement-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 34vw);
  min-width: 360px;
  border-left: 1px solid rgba(20, 31, 46, 0.08);
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%),
    radial-gradient(circle at top right, rgba(79, 149, 255, 0.08), transparent 34%);
  box-shadow: -18px 0 44px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.requirement-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.requirement-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  background: linear-gradient(135deg, rgba(33, 79, 122, 0.08) 0%, rgba(246, 250, 255, 0) 72%);
}

.requirement-panel-heading {
  min-width: 0;
}

.requirement-panel-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #6c7a90;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.requirement-panel-header h3 {
  margin: 0;
  color: #18202b;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.requirement-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.requirement-panel-drag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36, 88, 140, 0.08);
  color: #5f6f85;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.04em;
}

.requirement-panel-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(237, 242, 247, 0.9);
  color: #607086;
  font-size: 18px;
}

.requirement-panel-close:hover {
  background: #e6edf5;
}

.requirement-panel-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 18px 20px 20px;
}

.requirement-summary-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(225, 233, 244, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 10px 24px rgba(17, 34, 68, 0.045);
}

.requirement-summary-card + .requirement-summary-card {
  margin-top: 14px;
}

.requirement-summary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 18px;
}

.requirement-summary-card h4 {
  margin: 8px 0 6px;
  color: #172235;
  font-size: 16px;
  line-height: 24px;
}

.requirement-summary-text {
  margin: 0 0 12px;
  color: #617087;
  font-size: 12px;
  line-height: 1.7;
}

.requirement-block + .requirement-block {
  margin-top: 14px;
}

.requirement-block strong {
  display: block;
  margin-bottom: 4px;
  color: #213047;
  font-size: 13px;
  line-height: 20px;
}

.requirement-block p {
  margin: 0;
  color: #617087;
  font-size: 12px;
  line-height: 1.7;
}

.is-floating-history {
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 14px;
  width: min(320px, calc(100% - 28px));
  z-index: 12;
  opacity: 0;
  transform: translateX(-14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow:
    0 24px 44px rgba(15, 23, 42, 0.14),
    0 6px 18px rgba(15, 23, 42, 0.06);
}

.is-floating-history.is-floating-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(126, 186, 255, 0.18), transparent 20%),
    radial-gradient(circle at 82% 4%, rgba(238, 205, 255, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 24px 24px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 188, 255, 0.1) 0%, rgba(128, 188, 255, 0) 72%);
  pointer-events: none;
  z-index: -1;
}

.hero-content::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 420px;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 149, 255, 0), rgba(79, 149, 255, 0.18), rgba(79, 149, 255, 0));
  pointer-events: none;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-desc {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.suggestion-chip {
  gap: 8px;
  min-height: 50px;
  width: min(100%, 492px);
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(247, 250, 253, 0.94);
  color: var(--accent);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(232, 238, 246, 0.9);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.suggestion-chip:nth-child(2) {
  background: rgba(241, 245, 250, 0.98);
}

.suggestion-chip .icon {
  color: var(--brand-dark);
}

.suggestion-chip:hover {
  transform: translateY(-1px);
  background: white;
  box-shadow: var(--shadow-soft);
}

.suggestion-text {
  font-size: 16px;
  line-height: 24px;
}

.composer-wrap {
  width: min(100%, 800px);
  margin: 36px auto 0;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.hero-panel.is-chat .composer-wrap {
  margin-top: 16px;
}

.app-shell--floating .chat-stage {
  width: min(100%, var(--floating-chat-width));
  margin: 0 auto;
  padding-top: 0;
}

.app-shell--floating .message-list {
  padding-inline: 6px;
  padding-top: 0;
}

.app-shell--floating .composer-wrap {
  width: min(100%, var(--floating-chat-width));
  margin-top: 22px;
}

.app-shell--floating .hero-panel--floating-chat .composer-wrap {
  margin-top: 14px;
}

.composer {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 18px 44px rgba(18, 38, 72, 0.08),
    0 4px 12px rgba(18, 38, 72, 0.03);
  overflow: visible;
  backdrop-filter: blur(12px);
  position: relative;
}

.composer--floating {
  width: min(100%, var(--floating-window-width));
  height: 56px;
  min-height: 56px;
  margin: 0 auto;
  border-radius: 18px;
  border-color: rgba(180, 205, 240, 0.96);
  box-shadow:
    0 18px 44px rgba(24, 52, 94, 0.09),
    0 4px 14px rgba(24, 52, 94, 0.04);
}

.composer--floating-has-attachments {
  height: 56px;
  min-height: 56px;
}

.composer--floating .composer-image-list {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 8px);
  z-index: 20;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 52px;
  padding: 6px;
  border: 1px solid rgba(220, 229, 240, 0.94);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 14px 28px rgba(24, 52, 94, 0.1),
    0 3px 10px rgba(24, 52, 94, 0.04);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
}

.composer--floating .composer-image-list::-webkit-scrollbar {
  display: none;
}

.composer--floating .composer-image-chip {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  overflow: visible;
  background: rgba(247, 250, 254, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(222, 231, 243, 0.94),
    0 4px 10px rgba(24, 52, 94, 0.04);
}

.composer--floating .composer-image-chip img {
  border-radius: 10px;
}

.composer--floating .composer-image-chip.is-file {
  width: 168px;
  height: 40px;
  flex-basis: 168px;
  gap: 8px;
  padding: 6px 32px 6px 8px;
}

.composer--floating .composer-file-chip__icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 8px;
}

.composer--floating .composer-file-chip__icon svg {
  width: 15px;
  height: 15px;
}

.composer--floating .composer-file-chip__meta {
  gap: 0;
}

.composer--floating .composer-file-chip__meta strong {
  font-size: 12px;
  line-height: 16px;
}

.composer--floating .composer-file-chip__meta span {
  font-size: 10px;
  line-height: 14px;
}

.composer--floating .composer-image-chip__status {
  inset: auto 5px 5px 5px;
  gap: 4px;
  padding: 3px 6px;
  font-size: 10px;
}

.composer--floating .loading-ring {
  width: 10px;
  height: 10px;
}

.composer--floating .composer-image-chip__remove {
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  background: rgba(31, 42, 62, 0.88);
  box-shadow:
    0 3px 8px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.composer--floating .composer-image-chip__remove .icon,
.composer--floating .composer-image-chip__remove svg {
  width: 10px;
  height: 10px;
}

.floating-compare-composer {
  width: min(100%, var(--floating-window-width));
  margin: 0 auto 14px;
  padding: 0 18px 12px;
  border: 1px solid rgba(205, 220, 240, 0.96);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 252, 255, 0.98)),
    radial-gradient(circle at 16% 0%, rgba(86, 132, 226, 0.08), transparent 38%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 36px rgba(24, 52, 94, 0.07),
    0 4px 12px rgba(24, 52, 94, 0.035);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.floating-compare-composer:focus-within {
  border-color: rgba(146, 178, 230, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 42px rgba(24, 52, 94, 0.09),
    0 0 0 3px rgba(67, 87, 214, 0.06);
}

.floating-compare-composer + .composer-wrap {
  margin-top: 0;
}

.floating-compare-composer--compact {
  margin-bottom: 14px;
  padding-bottom: 8px;
}

.floating-compare-composer--compact + .composer-wrap {
  margin-top: 0;
}

.floating-compare-composer--compact .floating-suggest {
  min-height: 48px;
  padding: 8px 0;
}

.floating-suggest {
  min-height: 52px;
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(222, 231, 243, 0.9);
  overflow: hidden;
}

.floating-suggest__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: #243247;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.floating-suggest__brand .orb-sm {
  width: 26px;
  height: 26px;
}

.floating-suggest__divider {
  width: 1px;
  height: 24px;
  flex: 0 0 1px;
  background: rgba(205, 216, 233, 0.92);
}

.floating-suggest__label {
  flex: 0 0 auto;
  color: #66768e;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.floating-suggest__viewport {
  min-width: 0;
  height: 32px;
  flex: 1 1 auto;
  overflow: hidden;
}

.floating-suggest__track {
  display: flex;
  flex-direction: column;
  animation: floating-suggest-roll 9s infinite;
}

.floating-suggest__item {
  width: 100%;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #4658d4 0%, #585fdc 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  color: #fff;
  font-size: 14px;
  line-height: 32px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 16px rgba(69, 84, 216, 0.14);
}

.floating-suggest__item:hover {
  background: linear-gradient(135deg, #3f50cb 0%, #5158d3 100%);
}

.floating-compare-input-row {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 0 0;
}

.floating-compare-input {
  min-width: 0;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  flex: 1 1 auto;
  padding: 6px 2px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  line-height: 24px;
  overflow: hidden;
}

.floating-compare-input::placeholder {
  color: #9aa8ba;
}

.floating-compact-input-row {
  min-height: 42px;
  padding: 7px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-compact-input {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 4px 2px;
  line-height: 22px;
}

.floating-compare-send {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: #eef4fb;
  color: #a8b7cb;
  border-color: rgba(216, 226, 238, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(27, 45, 78, 0.04);
}

.floating-compare-send .icon {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
}

.floating-compare-send.is-active {
  background: linear-gradient(180deg, #5d7cff 0%, #4357d6 100%);
  border-color: rgba(69, 87, 214, 0.78);
  box-shadow:
    0 7px 14px rgba(69, 87, 214, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.floating-compact-send {
  align-self: center;
  margin-top: 0;
}

.floating-compare-toolbar {
  min-height: 38px;
  padding-top: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.floating-compare-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.floating-compare-tool {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2f3b4d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.86;
  transition: background-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.floating-compare-tool:hover {
  background: rgba(238, 244, 251, 0.92);
  opacity: 1;
  transform: translateY(-1px);
}

.floating-compare-tool:focus-visible,
.floating-compare-send:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(67, 87, 214, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.floating-compare-tool .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-compare-separator {
  width: 1px;
  height: 18px;
  background: rgba(216, 225, 238, 0.98);
}

.composer-floating__row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  min-height: 54px;
  padding: 0 8px;
}

.composer-floating__assistant {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.composer-floating__assistant:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(24, 52, 94, 0.08);
}

.composer-floating__assistant .orb-sm {
  width: 32px;
  height: 32px;
}

.composer-floating__plus-wrap {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.composer-floating__plus {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b788d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.composer-floating__plus:hover,
.composer-floating__plus[aria-expanded="true"] {
  background: rgba(237, 244, 252, 0.9);
  color: #344257;
  box-shadow: none;
  transform: translateY(-1px);
}

.composer-floating__plus .icon {
  width: 16px;
  height: 16px;
}

.composer-floating__menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 148px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(220, 229, 240, 0.96);
  box-shadow:
    0 18px 34px rgba(17, 34, 68, 0.13),
    0 4px 12px rgba(17, 34, 68, 0.05);
  backdrop-filter: blur(12px);
  z-index: 18;
}

.composer-floating__menu-item {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2e3a4d;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
}

.composer-floating__menu-item:hover {
  background: rgba(239, 245, 252, 0.94);
}

.composer-floating__menu-item .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.composer-input--floating {
  min-height: 36px;
  max-height: 36px;
  flex: 1;
  padding: 6px 8px 6px 2px;
  font-size: 15px;
  line-height: 24px;
  overflow: hidden;
}

.composer-input--floating::placeholder {
  color: #94a0b2;
}

.composer-floating__actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.composer--floating .send-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex: 0 0 32px;
}

.composer--floating .send-btn.is-transcribe {
  background: rgba(241, 246, 252, 0.9);
  color: #4b5c73;
  cursor: pointer;
  border-color: rgba(218, 228, 241, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.composer--floating .send-btn.is-transcribe:hover {
  background: rgba(232, 240, 250, 0.98);
  transform: translateY(-1px);
}

.composer-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 0;
}

.composer-image-chip {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(244, 248, 252, 0.98);
  box-shadow: inset 0 0 0 1px rgba(228, 235, 243, 0.96);
}

.composer-image-chip.is-file {
  width: 168px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.composer-image-chip.is-uploading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}

.composer-image-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.composer-file-chip__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(233, 240, 248, 0.92);
  color: #587090;
}

.composer-file-chip__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
}

.composer-file-chip__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.composer-file-chip__meta strong,
.composer-file-chip__meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.composer-file-chip__meta strong {
  color: #203147;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.composer-file-chip__meta span {
  color: #7c8ca0;
  font-size: 11px;
  line-height: 16px;
}

.composer-image-chip__status {
  position: absolute;
  inset: auto 8px 8px 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.loading-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  border-top-color: #fff;
  animation: composer-ring-spin 0.8s linear infinite;
}

.composer-image-chip__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
  z-index: 2;
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.composer-image-chip:hover .composer-image-chip__remove,
.composer-image-chip:focus-within .composer-image-chip__remove {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.composer-image-chip__remove:hover {
  background: rgba(17, 24, 39, 0.96);
  transform: scale(1.04);
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.composer-image-chip__remove .icon,
.composer-image-chip__remove svg {
  width: 12px;
  height: 12px;
}

.composer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 149, 255, 0), rgba(79, 149, 255, 0.16), rgba(79, 149, 255, 0));
  pointer-events: none;
}

.composer-input {
  width: 100%;
  min-height: 68px;
  max-height: 180px;
  padding: 18px 18px 4px;
  border: 0;
  resize: none;
  background: transparent;
  outline: none;
  color: var(--accent);
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0.01em;
}

.composer-input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.92;
}

.composer-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 14px;
  align-items: center;
  border-top: 1px solid rgba(237, 241, 245, 0.55);
}

.composer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.member-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px 0;
}

.member-strip__label {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
}

.member-strip__list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 248, 252, 0.94);
  box-shadow: inset 0 0 0 1px rgba(232, 238, 246, 0.9);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
}

.member-chip.is-group {
  background: rgba(240, 246, 255, 0.96);
}

.member-chip--add {
  cursor: pointer;
  color: var(--brand-dark);
  background: rgba(244, 248, 255, 0.98);
}

.member-chip__plus,
.member-chip__remove {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.member-chip__remove {
  padding: 0;
  color: rgba(102, 115, 137, 0.82);
}

.member-chip__remove:hover {
  color: #d35b67;
}

.member-chip__plus svg,
.member-chip__remove svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
}

.member-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(79, 149, 255, 0.7);
}

.toggle-chip {
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(245, 248, 252, 0.94);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(232, 238, 246, 0.9);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.toggle-chip:hover {
  background: rgba(239, 245, 252, 1);
  transform: translateY(-1px);
}

.toggle-chip strong {
  font-size: 14px;
  font-weight: 400;
}

.model-switch-wrap {
  display: inline-flex;
  position: relative;
}

.model-switch {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: fit-content;
  max-width: min(260px, calc(100vw - 96px));
}

.model-trigger {
  width: auto;
  min-width: 0;
  max-width: min(260px, calc(100vw - 96px));
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(220, 228, 239, 0.98),
    0 6px 14px rgba(18, 38, 72, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.group-creator-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 247, 251, 0.42);
  backdrop-filter: blur(6px);
  z-index: 8;
}

.group-creator-card {
  width: min(420px, calc(100vw - 40px));
  max-height: min(78vh, 680px);
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 28px 52px rgba(15, 23, 42, 0.16),
    0 4px 10px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(225, 231, 239, 0.92);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-delete-backdrop,
.group-rename-backdrop,
.member-remove-backdrop,
.group-delete-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(244, 247, 251, 0.42);
  backdrop-filter: blur(6px);
  z-index: 9;
}

.history-delete-card,
.group-rename-card,
.member-remove-card,
.group-delete-card {
  width: min(360px, 100%);
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.16),
    0 4px 10px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(225, 231, 239, 0.92);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-delete-card__head,
.group-rename-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-delete-card__head strong,
.group-rename-card__head strong {
  font-size: 16px;
  line-height: 24px;
}

.history-delete-card__desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 21px;
}

.history-delete-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.group-rename-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.history-delete-card__cancel,
.history-delete-card__confirm {
  min-width: 76px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.history-delete-card__cancel {
  background: #edf1f5;
  color: var(--text-secondary);
}

.history-delete-card__confirm {
  background: #c04b56;
  color: #fff;
}

.history-delete-card__cancel:hover,
.history-delete-card__confirm:hover {
  transform: translateY(-1px);
}

.status-toast {
  position: absolute;
  left: 50%;
  top: 22px;
  z-index: 12;
  min-width: 120px;
  max-width: min(320px, calc(100vw - 40px));
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.13),
    0 2px 6px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(225, 231, 239, 0.92);
  color: var(--accent);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  transform: translateX(-50%);
}

.status-toast--success {
  color: #1f7a4d;
  border-color: rgba(164, 224, 193, 0.96);
  background: rgba(244, 253, 248, 0.98);
}

.status-toast--error {
  color: #c04b56;
  border-color: rgba(246, 195, 201, 0.96);
  background: rgba(255, 247, 248, 0.98);
}

.group-creator-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.group-creator-card__head strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
}

.group-creator-card__head span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
}

.group-creator-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-creator-field__label {
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: var(--accent);
}

.group-creator-field__control {
  position: relative;
}

.group-creator-field__input {
  width: 100%;
  height: 42px;
  padding: 0 58px 0 12px;
  border: 0;
  outline: none;
  border-radius: 12px;
  background: rgba(247, 250, 253, 0.94);
  box-shadow: inset 0 0 0 1px rgba(229, 236, 244, 0.92);
  color: var(--accent);
  font-size: 13px;
  line-height: 20px;
}

.group-creator-field__input:focus {
  box-shadow:
    inset 0 0 0 1px rgba(190, 213, 248, 0.96),
    0 0 0 3px rgba(79, 149, 255, 0.08);
}

.group-creator-field__input::placeholder {
  color: var(--text-tertiary);
}

.group-creator-field__count {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 18px;
}

.group-creator-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.group-creator-card__footer span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
}

.group-creator-confirm {
  min-width: 108px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #edf1f5;
  color: rgba(158, 168, 182, 0.96);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.group-creator-confirm.is-active {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
}

.group-creator-confirm.is-active:hover {
  transform: translateY(-1px);
}

.model-trigger:hover,
.model-trigger.is-open {
  background: rgba(249, 251, 255, 1);
  box-shadow:
    inset 0 0 0 1px rgba(196, 215, 244, 1),
    0 10px 20px rgba(55, 103, 177, 0.07);
  transform: translateY(-1px);
}

.model-trigger .icon {
  width: 14px;
  height: 14px;
  color: #2971ff;
  flex: 0 0 14px;
}

.model-trigger__text {
  width: auto;
  min-width: 0;
  max-width: 210px;
  text-align: left;
  color: #2971ff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.model-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 440px;
  max-width: min(440px, calc(100vw - 48px));
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 52px rgba(15, 23, 42, 0.16),
    0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(225, 231, 239, 0.92);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.member-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 320px;
  max-width: min(320px, calc(100vw - 48px));
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(225, 231, 239, 0.92);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.member-menu__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px 10px;
}

.member-menu__head strong {
  font-size: 14px;
  line-height: 22px;
}

.member-menu__head span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
}

.member-menu__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
}

.member-menu__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(247, 250, 253, 0.94);
  position: relative;
  overflow: hidden;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.member-menu__item:hover {
  background: rgba(241, 246, 252, 1);
  transform: translateY(-1px);
}

.member-menu__item.is-active {
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(119, 176, 255, 0.7),
    0 8px 20px rgba(79, 149, 255, 0.1);
}

.member-menu__item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--brand);
}

.member-menu__checkbox {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(228, 235, 244, 0.9);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(209, 220, 235, 0.94);
}

.member-menu__item.is-active .member-menu__checkbox {
  color: #fff;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 10px rgba(79, 149, 255, 0.24);
}

.member-menu__checkbox svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.member-menu__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.member-menu__text strong {
  width: 100%;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-menu__text span {
  width: 100%;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 18px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-menu__selected-badge {
  padding: 0 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(215, 232, 255, 0.9);
  font-size: 11px;
  line-height: 22px;
  font-weight: 700;
}

.member-menu__empty {
  min-height: 58px;
  padding: 16px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  background: rgba(247, 250, 253, 0.78);
  box-shadow: inset 0 0 0 1px rgba(229, 236, 244, 0.82);
  font-size: 13px;
  line-height: 20px;
}

.model-menu__title {
  padding: 0 18px 8px;
  color: rgba(29, 37, 49, 0.58);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.model-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-menu__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 112px 26px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 10px;
  border-radius: 12px;
  color: #080b10;
  background: transparent;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.model-menu__item:hover {
  background: rgba(244, 246, 249, 0.92);
}

.model-menu__item.is-active {
  background: #f0f0f0;
}

.model-menu__item-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #050505;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.model-menu__item-check svg {
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.2;
}

.model-menu__item.is-active .model-menu__item-check {
  opacity: 1;
  transform: scale(1);
}

.model-menu__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2f66ff 0%, #68a8ff 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(209, 216, 228, 0.94);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.model-menu__item-text {
  min-width: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-menu__item.is-active .model-menu__item-text {
  font-weight: 700;
}

.model-menu__badges {
  display: grid;
  grid-template-columns: 48px 56px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.model-menu__badges span {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c7c7c;
  background: #f6f6f6;
  box-shadow: inset 0 0 0 1px #dedede;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.composer-param-wrap {
  display: inline-flex;
  position: relative;
}

.composer-param-switch {
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #31506f;
  background: rgba(247, 250, 253, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(220, 228, 239, 0.92),
    0 6px 14px rgba(18, 38, 72, 0.03);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.composer-param-switch:hover,
.composer-param-switch.is-open {
  background: rgba(249, 251, 255, 1);
  box-shadow:
    inset 0 0 0 1px rgba(196, 215, 244, 1),
    0 10px 20px rgba(55, 103, 177, 0.07);
  transform: translateY(-1px);
}

.composer-param-switch span {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.composer-param-switch strong {
  color: #7b8794;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.composer-param-switch em {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.composer-param-switch em svg {
  width: 14px;
  height: 14px;
}

.composer-param-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  min-width: 420px;
  max-width: min(640px, calc(100vw - 48px));
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(225, 231, 239, 0.92);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.composer-param-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.composer-param-menu__item {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto 28px;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  padding: 8px;
  border-radius: 12px;
  color: #172235;
  text-align: left;
}

.composer-param-menu__item:hover,
.composer-param-menu__item.is-active {
  background: #f1f3f5;
}

.composer-param-menu__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.composer-param-menu__meta {
  display: grid;
  grid-template-columns: 64px 80px;
  align-items: center;
  gap: 8px;
}

.composer-param-menu__pill {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c7c7c;
  background: #f6f6f6;
  box-shadow: inset 0 0 0 1px #dedede;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.composer-param-menu__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #111827;
}

.composer-actions {
  margin-left: auto;
  gap: 16px;
}

.mention-menu {
  position: absolute;
  left: 18px;
  bottom: 82px;
  width: 250px;
  max-width: min(250px, calc(100vw - 72px));
  padding: 8px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.1),
    0 2px 6px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(225, 231, 239, 0.92);
  z-index: 18;
}

.mention-menu__title {
  padding: 0 14px 6px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
}

.mention-menu__list {
  display: flex;
  flex-direction: column;
}

.mention-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--accent);
  text-align: left;
}

.mention-menu__item:hover {
  background: rgba(243, 247, 251, 0.92);
}

.mention-menu__item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(79, 149, 255, 0.66);
}

.toolbar-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 2px;
}

.toolbar {
  gap: 4px;
}

.tool-btn {
  display: grid;
  place-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  color: #2d3442;
  opacity: 0.9;
  position: relative;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.tool-btn:hover {
  background: var(--bg-soft-strong);
  opacity: 1;
  transform: translateY(-1px);
}

.tool-btn[data-tooltip]:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 8px;
  background: #1d2531;
  color: #fff;
  white-space: nowrap;
  font-size: 14px;
  line-height: 22px;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.tool-btn[data-tooltip]:hover::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1d2531;
  z-index: 2;
}

.tool-separator {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.send-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #edf1f5;
  color: rgba(195, 205, 220, 0.82);
  display: grid;
  place-items: center;
  cursor: default;
  opacity: 0.96;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(214, 223, 234, 0.7);
}

.send-btn.is-active {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 8px 18px rgba(79, 149, 255, 0.28);
  border-color: rgba(54, 108, 230, 0.7);
}

.send-btn.is-active:hover {
  background: linear-gradient(180deg, #5aa0ff 0%, #346ce6 100%);
  transform: translateY(-1px);
}

.send-btn.is-loading {
  background: linear-gradient(180deg, #4f95ff 0%, #2d63d6 100%);
  color: #fff;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 10px 22px rgba(79, 149, 255, 0.28);
  border-color: rgba(54, 108, 230, 0.72);
}

.send-btn.is-loading:hover {
  transform: translateY(-1px);
}

.send-btn.is-loading .icon {
  animation: sendPulse 1s ease-in-out infinite;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  color: currentColor;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
}

.icon img {
  display: block;
  max-width: none;
}

.icon-fill svg {
  stroke: none;
  fill: currentColor;
}

.icon-asset,
.icon-phone-asset,
.icon-attachment-asset,
.icon-mic-asset,
.icon-send-asset {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.icon-asset img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.icon-attachment-asset img,
.icon-phone-asset img {
  position: absolute;
}

.icon-attachment-asset img {
  inset: 1.38px 2.63px 1.38px 2.63px;
  width: 14.74px;
  height: 17.24px;
}

.icon-send-asset img {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13.997px;
  height: 14px;
}

.icon-phone-base {
  inset: 0.41px 0.2px 0.41px 0.2px;
  width: 19.59px;
  height: 19.18px;
}

.icon-phone-stroke {
  inset: 2.51px 2.52px 2.89px 2.88px;
  width: 14.6px;
  height: 13.0px;
}

.icon-mic-asset img {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
}

.tool-btn .icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
}

.send-btn .icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-stage {
  flex: 1;
  min-height: 0;
  width: min(100%, 820px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.conversation-hint {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(247, 250, 253, 0.96);
  box-shadow: inset 0 0 0 1px rgba(232, 238, 246, 0.9);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.message-list {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: auto;
  padding: 8px 12px 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

.scroll-bottom-btn {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  color: #5d6a80;
  border: 1px solid rgba(218, 226, 236, 0.92);
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease, background-color 0.18s ease;
  z-index: 2;
}

.scroll-bottom-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.scroll-bottom-btn:hover {
  background: #fff;
  color: var(--brand-dark);
}

.message-list::-webkit-scrollbar {
  width: 6px;
}

.message-list::-webkit-scrollbar-thumb {
  background: rgba(154, 168, 188, 0.38);
  border-radius: 999px;
}

.message {
  width: 100%;
}

.message--system {
  display: flex;
  justify-content: center;
}

.message-system-badge {
  width: fit-content;
  max-width: 520px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(241, 246, 252, 0.96);
  box-shadow: inset 0 0 0 1px rgba(225, 233, 243, 0.9);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.message--user {
  display: flex;
  justify-content: flex-end;
}

.message-user-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding-bottom: 20px;
}

.message-user-bubble {
  width: fit-content;
  max-width: 560px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef3f7 0%, #eaf0f5 100%);
  color: #1d2531;
  font-size: 16px;
  line-height: 28px;
  box-shadow: inset 0 0 0 1px rgba(228, 235, 242, 0.9);
  letter-spacing: 0.01em;
}

.message-user-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.message-user-images img {
  width: 136px;
  height: 136px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.message-user-file {
  min-width: 0;
  max-width: 220px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(220, 228, 238, 0.92);
}

.message-user-file__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #61768f;
}

.message-user-file__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
}

.message-user-file__name {
  min-width: 0;
  color: #2e4057;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-user-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(144.34deg, rgba(224, 194, 255, 0.6) 4.09%, rgba(151, 224, 255, 0.6) 92.28%);
  overflow: hidden;
}

.message-user-avatar__icon {
  position: relative;
  width: 16.8px;
  height: 16.8px;
  display: block;
}

.message-user-avatar__icon img {
  position: absolute;
  inset: 1.58px 2.1px;
  width: 12.6px;
  height: 13.65px;
  display: block;
  max-width: none;
}

.message--assistant {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 4px;
}

.message--assistant.has-error .message-assistant-name {
  color: #d35b67;
}

.message-assistant-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
  padding-left: 2px;
  margin-bottom: 2px;
  max-width: 760px;
}

.message-assistant-head__meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.message-assistant-name {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-assistant-footer {
  max-width: 760px;
  margin: 8px 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.message-copy-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  box-shadow: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.message-copy-btn:hover {
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.message-copy-btn.is-copied {
  color: #2f9a5f;
}

.message-copy-btn:focus-visible {
  outline: 2px solid rgba(79, 149, 255, 0.35);
  outline-offset: 3px;
}

.message-copy-btn .icon,
.message-copy-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.message-token-usage {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.message-token-help {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #748198;
  background: rgba(240, 244, 249, 0.92);
  box-shadow: inset 0 0 0 1px rgba(220, 229, 240, 0.92);
  font-size: 11px;
  font-weight: 700;
  cursor: help;
}

.message-token-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 128px;
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #334155;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(225, 233, 244, 0.92),
    0 12px 30px rgba(21, 37, 62, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 3;
}

.message-token-usage:hover .message-token-popover,
.message-token-help:focus-visible + .message-token-popover {
  opacity: 1;
  transform: translateY(0);
}

.reasoning-card {
  max-width: 760px;
  margin: 0 0 8px 26px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.reasoning-card__toggle {
  width: auto;
  min-height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: var(--text-tertiary);
  text-align: left;
}

.reasoning-card__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reasoning-card__badge {
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}

.reasoning-card__title {
  flex: 0 0 auto;
  color: #2a3443;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.reasoning-card__summary {
  min-width: 0;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reasoning-card__arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--text-tertiary);
  transition: transform 0.18s ease;
}

.reasoning-card__arrow svg {
  width: 14px;
  height: 14px;
  display: block;
  stroke: currentColor;
}

.reasoning-card.is-expanded .reasoning-card__arrow {
  transform: rotate(180deg);
}

.reasoning-card__body {
  margin-top: 8px;
  padding: 0;
  color: #586475;
  font-size: 13px;
  line-height: 21px;
}

.reasoning-card__body .message-assistant-body {
  max-width: none;
  padding-left: 18px;
  color: #586475;
}

.reasoning-card__body .message-assistant-body::before {
  left: 2px;
  background: linear-gradient(180deg, rgba(126, 138, 156, 0.22), rgba(126, 138, 156, 0));
}

.reasoning-card.is-streaming .reasoning-card__badge {
  background: rgba(79, 149, 255, 0.14);
}

.agent-process {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 8px;
}

.reasoning-card__body .agent-process {
  margin-bottom: 0;
}

.agent-process-card {
  border-radius: 10px;
  background: rgba(248, 250, 253, 0.96);
  box-shadow: inset 0 0 0 1px rgba(224, 231, 241, 0.92);
  overflow: hidden;
}

.agent-process-card[open] {
  background: rgba(255, 255, 255, 0.98);
}

.agent-process-card__summary {
  min-height: 42px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #344154;
  cursor: pointer;
  list-style: none;
}

.agent-process-card__summary::-webkit-details-marker {
  display: none;
}

.agent-process-card__mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(79, 149, 255, 0.1);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.agent-process-card--tool_call .agent-process-card__mark {
  background: rgba(30, 139, 122, 0.1);
  color: #116b60;
}

.agent-process-card--tool_result .agent-process-card__mark {
  background: rgba(139, 111, 30, 0.11);
  color: #7a5b0f;
}

.agent-process-card--planning .agent-process-card__mark {
  background: rgba(82, 96, 214, 0.1);
  color: #3f4bb4;
}

.agent-process-card--context .agent-process-card__mark {
  background: rgba(92, 119, 143, 0.12);
  color: #496172;
}

.agent-process-card--verification .agent-process-card__mark {
  background: rgba(31, 132, 84, 0.1);
  color: #16724b;
}

.agent-process-card--handoff .agent-process-card__mark {
  background: rgba(142, 84, 171, 0.1);
  color: #794996;
}

.agent-process-card--action .agent-process-card__mark {
  background: rgba(188, 82, 54, 0.1);
  color: #9c4229;
}

.agent-process-card--summary .agent-process-card__mark {
  background: rgba(42, 94, 155, 0.1);
  color: #2d5d93;
}

.agent-process-card__meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.agent-process-card__title {
  color: #243145;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.agent-process-card__desc {
  color: #748094;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-process-card__status {
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(101, 113, 133, 0.08);
  color: #657185;
  font-size: 11px;
  line-height: 20px;
  font-weight: 600;
}

.agent-process-card__body {
  margin: 0 12px 12px 46px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(244, 247, 251, 0.9);
  color: #536174;
  font-size: 13px;
  line-height: 21px;
}

.agent-process-card__body .message-assistant-body {
  max-width: none;
  padding-left: 16px;
  color: #536174;
}

.agent-process-card__body .message-assistant-body::before {
  left: 1px;
  background: linear-gradient(180deg, rgba(126, 138, 156, 0.18), rgba(126, 138, 156, 0));
}

.message-assistant-body {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 22px;
  white-space: normal;
  max-width: 760px;
  padding-left: 26px;
  position: relative;
  letter-spacing: 0.01em;
}

.message-assistant-body.is-streaming::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(79, 149, 255, 0.7);
  vertical-align: -3px;
  animation: streamCaret 0.9s ease-in-out infinite;
}

.message-assistant-body::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(79, 149, 255, 0.18), rgba(79, 149, 255, 0));
}

.message-assistant-body p {
  margin: 0 0 10px;
}

.message-assistant-body p:last-child {
  margin-bottom: 0;
}

.message-assistant-body strong {
  font-weight: 600;
}

.message-assistant-body em {
  font-style: italic;
}

.message-assistant-body del {
  color: #7b8797;
}

.message-assistant-body code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(239, 243, 248, 0.96);
  color: #25415f;
  font-size: 12px;
  line-height: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.message-assistant-body a {
  color: var(--brand-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 99, 214, 0.28);
}

.message-assistant-body a:hover {
  border-bottom-color: rgba(45, 99, 214, 0.68);
}

.message-assistant-body .rich-h1,
.message-assistant-body .rich-h2,
.message-assistant-body .rich-h3 {
  margin: 0 0 12px;
  color: #1d2531;
}

.message-assistant-body .rich-h1 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.message-assistant-body .rich-h2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  padding-top: 4px;
}

.message-assistant-body .rich-h3 {
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.message-assistant-body .rich-ol,
.message-assistant-body .rich-ul {
  margin: 0 0 14px 0;
  padding-left: 20px;
}

.message-assistant-body .rich-ol li,
.message-assistant-body .rich-ul li {
  margin-bottom: 8px;
  line-height: 22px;
}

.message-assistant-body .rich-blockquote {
  margin: 0 0 14px;
  padding: 4px 0 4px 14px;
  border-left: 3px solid rgba(79, 149, 255, 0.32);
  color: #5d697b;
}

.message-assistant-body .rich-blockquote p:last-child {
  margin-bottom: 0;
}

.message-assistant-body .rich-hr {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid rgba(220, 228, 238, 0.96);
}

.message-assistant-body .rich-code {
  margin: 0 0 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1726;
  box-shadow: inset 0 0 0 1px rgba(27, 36, 48, 0.18);
}

.message-assistant-body .rich-code__lang {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(230, 236, 246, 0.72);
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.message-assistant-body .rich-code__body {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
}

.message-assistant-body .rich-code__body code {
  display: block;
  padding: 0;
  background: transparent;
  color: #e8eef9;
  font-size: 12px;
  line-height: 20px;
  white-space: pre;
}

.message-assistant-body .rich-table-wrap {
  margin: 0 0 14px;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(226, 233, 242, 0.96);
  background: rgba(250, 252, 255, 0.95);
}

.message-assistant-body .rich-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
}

.message-assistant-body .rich-table th,
.message-assistant-body .rich-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(229, 235, 243, 0.96);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 20px;
}

.message-assistant-body .rich-table th {
  background: rgba(243, 247, 252, 0.98);
  color: #334155;
  font-weight: 600;
}

.message-assistant-body .rich-table tr:last-child td {
  border-bottom: 0;
}

.message-loading-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
  padding-left: 26px;
  margin-top: 2px;
}

.message-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a9b4c5;
  animation: pulse 1.2s infinite ease-in-out;
}

.message-loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.message-loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes composer-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floating-suggest-roll {
  0%,
  24% {
    transform: translateY(0);
  }

  33%,
  57% {
    transform: translateY(-32px);
  }

  66%,
  90% {
    transform: translateY(-64px);
  }

  100% {
    transform: translateY(-96px);
  }
}

@keyframes sendPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes streamCaret {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 721px) {
  .workspace.has-runtime-access .hero-panel.is-chat {
    padding-top: 54px;
  }

  .hero-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero-panel::before,
  .hero-panel::after {
    display: none;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    padding-top: 60px;
    gap: 12px;
  }

  .sidebar {
    width: 260px;
    flex-basis: 260px;
  }

  .model-rail {
    width: 216px;
    flex-basis: 216px;
  }

  .group-info-panel {
    width: 236px;
    flex-basis: 236px;
  }

  .workspace {
    padding: 16px;
  }

  .hero-panel {
    padding: 48px 20px 18px;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .runtime-preview-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    width: min(420px, calc(100% - 32px));
  }
}

@media (max-width: 720px) {
  .runtime-access-toolbar,
  .runtime-preview-panel {
    display: none;
  }

  .workspace.has-runtime-panel {
    gap: 0;
  }

  .app-shell.is-requirement-open {
    padding-right: 8px;
  }

  .requirement-dock {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .requirement-panel {
    width: 100vw;
    min-width: 0;
  }

  .app-shell {
    padding: calc(56px + env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px));
    gap: 10px;
    overflow: auto;
  }

  .app-shell--multi {
    height: 100dvh;
    min-height: 100dvh;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }

  .mode-tabs {
    top: 10px;
    width: calc(100% - 16px);
    max-width: 240px;
  }

  .mode-tab {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
  }

  .model-rail,
  .group-info-panel,
  .sidebar {
    padding: 12px;
    border-radius: 14px;
    max-height: none;
  }

  .group-info-panel {
    display: none;
  }

  .workspace {
    padding: 10px;
    border-radius: 14px;
    min-height: calc(100dvh - 170px);
  }

  .workspace--mobile-hidden {
    display: none;
  }

  .model-rail.is-mobile-panel,
  .history-sidebar.is-mobile-panel,
  .sidebar.is-mobile-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(56px + env(safe-area-inset-top, 0px));
    bottom: 0;
    z-index: 12;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow:
      0 24px 44px rgba(15, 23, 42, 0.14),
      0 6px 18px rgba(15, 23, 42, 0.06);
  }

  .model-rail.is-mobile-panel.is-mobile-open,
  .history-sidebar.is-mobile-panel.is-mobile-open,
  .sidebar.is-mobile-panel.is-mobile-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .model-rail.is-mobile-page {
    width: 100%;
    flex: 1 1 auto;
    max-height: none;
    height: calc(100dvh - 74px - max(8px, env(safe-area-inset-bottom, 0px)));
    min-height: calc(100dvh - 74px - max(8px, env(safe-area-inset-bottom, 0px)));
    border-radius: 16px;
    overflow: hidden;
  }

  .app-shell--multi .model-panel {
    flex: 1 1 auto;
    min-height: 0;
  }

  .app-shell--multi .model-rail-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 0;
  }

  .collapsed-tools {
    left: 10px;
    top: 10px;
    gap: 10px;
    z-index: 8;
  }

  .collapsed-tools--mobile-multi,
  .collapsed-tools--multi-mobile {
    left: 0;
    right: 0;
    top: 0;
    gap: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 14px 8px;
    background:
      linear-gradient(180deg, rgba(245, 248, 252, 0.92), rgba(247, 250, 253, 0.84)),
      radial-gradient(circle at top left, rgba(196, 217, 248, 0.12), transparent 40%);
    border-bottom: 1px solid rgba(226, 234, 243, 0.92);
    box-shadow: 0 4px 10px rgba(25, 45, 78, 0.028);
    backdrop-filter: blur(14px);
  }

  .app-shell--single .collapsed-tools,
  .app-shell--multi .collapsed-tools {
    left: 0;
    right: 0;
    top: 0;
    gap: 0;
  }

  .app-shell--multi .hero-panel {
    padding-top: 68px;
    padding-left: 14px;
    padding-right: 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .app-shell--multi .hero-panel.is-chat {
    padding-top: 58px;
  }

  .app-shell--multi .hero-panel::before,
  .app-shell--multi .hero-panel::after {
    display: none;
  }

  .app-shell--multi .hero-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    width: 100%;
    padding: 0;
  }

  .app-shell--multi .suggestion-list {
    margin: 0;
    flex: 1;
    justify-content: center;
    gap: 8px;
    align-items: stretch;
  }

  .app-shell--multi .suggestion-chip {
    width: 100%;
    max-width: none;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(248, 251, 254, 0.92);
    box-shadow: inset 0 0 0 1px rgba(230, 236, 244, 0.92);
  }

  .app-shell--multi .suggestion-chip:nth-child(2) {
    background: rgba(245, 249, 253, 0.94);
  }

  .app-shell--multi .suggestion-chip .icon {
    width: 18px;
    height: 18px;
    color: #6b93d6;
    opacity: 0.9;
  }

  .app-shell--multi .suggestion-chip:hover {
    transform: translateY(0);
    background: rgba(251, 253, 255, 0.98);
    box-shadow:
      inset 0 0 0 1px rgba(221, 230, 241, 0.96),
      0 6px 12px rgba(30, 52, 88, 0.035);
  }

  .app-shell--multi .suggestion-text {
    color: #334256;
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
  }

  .app-shell--multi .composer-wrap {
    width: 100%;
    max-width: none;
    margin-top: 14px;
  }

  .app-shell--multi .composer {
    border-radius: 18px;
    border-color: rgba(220, 229, 240, 0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      0 14px 26px rgba(23, 45, 78, 0.07),
      0 2px 8px rgba(23, 45, 78, 0.03);
  }

  .app-shell--multi .composer::before {
    background: linear-gradient(90deg, rgba(103, 151, 230, 0), rgba(103, 151, 230, 0.18), rgba(103, 151, 230, 0));
  }

  .app-shell--multi .composer-toolbar {
    padding: 10px 12px 14px;
  }

  .collapsed-tools--single-mobile {
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 14px 8px;
    justify-content: stretch;
    background:
      linear-gradient(180deg, rgba(245, 248, 252, 0.92), rgba(247, 250, 253, 0.84)),
      radial-gradient(circle at top left, rgba(196, 217, 248, 0.12), transparent 40%);
    border-bottom: 1px solid rgba(226, 234, 243, 0.92);
    box-shadow: 0 4px 10px rgba(25, 45, 78, 0.028);
    backdrop-filter: blur(14px);
  }

  .mobile-single-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 34px;
    padding: 0;
  }

  .mobile-single-topbar__leading {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
  }

  .mobile-single-topbar__brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
  }

  .mobile-single-topbar__avatar {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
  }

  .mobile-single-topbar__avatar .history-avatar-chip,
  .mobile-single-topbar__avatar .history-avatar-collage {
    width: 28px;
    height: 28px;
    box-shadow: none;
  }

  .mobile-single-topbar__avatar .history-avatar-mini {
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.95);
  }

  .mobile-single-topbar__copy {
    min-width: 0;
  }

  .mobile-single-topbar__title,
  .mobile-single-topbar__subtitle {
    margin: 0;
  }

  .mobile-single-topbar__title {
    color: #24364f;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
  }

  .mobile-single-topbar__subtitle {
    color: #7c8da3;
    font-size: 10px;
    line-height: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-single-topbar__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 6px;
    padding-right: 2px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .collapsed-toggle-btn--sheet {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: #5f738d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .collapsed-tools--single-mobile .collapsed-toggle-btn--sheet {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 0 0 1px rgba(227, 234, 243, 0.84);
  }

  .collapsed-tools--single-mobile .collapsed-toggle-btn--sheet:hover {
    background: rgba(255, 255, 255, 0.78);
  }

  .collapsed-toggle-btn--sheet .icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: 0 0 18px;
  }

  .collapsed-toggle-btn--sheet .icon svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .mobile-single-topbar__actions .collapsed-toggle-btn--sheet,
  .mobile-single-topbar__actions .collapsed-new-chat--sheet {
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
  }

  .mobile-single-topbar__actions .collapsed-toggle-btn--sheet:hover,
  .mobile-single-topbar__actions .collapsed-new-chat--sheet:hover {
    background: rgba(255, 255, 255, 0.78);
  }

  .collapsed-new-chat--sheet {
    width: 32px;
    height: 32px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: #5f738d;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .collapsed-new-chat--sheet:hover {
    background: transparent;
  }

  .collapsed-new-chat--sheet .collapsed-new-chat__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: 0 0 18px;
  }

  .collapsed-new-chat--sheet .collapsed-new-chat__icon img {
    width: 18px;
    height: 18px;
    display: block;
  }

  .collapsed-new-chat--sheet .collapsed-new-chat__icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
  }

  .app-shell--single .sidebar.is-mobile-panel {
    top: calc(env(safe-area-inset-top, 0px) + 52px);
    bottom: 0;
    height: auto;
    width: 80%;
    right: auto;
    padding-top: 14px;
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(238, 232, 225, 0.96);
    border-radius: 0 18px 18px 0;
    box-shadow:
      0 24px 44px rgba(42, 28, 16, 0.12),
      0 6px 18px rgba(42, 28, 16, 0.05);
  }

  .app-shell--single .sidebar.is-mobile-panel,
  .app-shell--multi .history-sidebar.is-mobile-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-shell--single .sidebar.is-mobile-panel .brand-row {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(241, 236, 230, 0.96);
  }

  .app-shell--single .sidebar.is-mobile-panel .history-panel {
    height: 100%;
    min-height: 0;
  }

  .app-shell--single .sidebar.is-mobile-panel .history-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    padding-bottom: 0;
  }

  .app-shell--multi .history-sidebar.is-mobile-panel {
    top: calc(env(safe-area-inset-top, 0px) + 52px);
    bottom: 0;
    height: auto;
    width: 80%;
    right: auto;
    padding-top: 14px;
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(224, 232, 242, 0.96);
    border-radius: 0 18px 18px 0;
    box-shadow:
      0 24px 44px rgba(18, 40, 74, 0.12),
      0 6px 18px rgba(18, 40, 74, 0.05);
  }

  .app-shell--multi .history-sidebar.is-mobile-panel .brand-row {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(230, 236, 244, 0.96);
  }

  .brand-row--history-mobile {
    margin-bottom: 14px;
  }

  .history-sidebar__brand-avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
  }

  .history-sidebar__brand-avatar .history-avatar-chip,
  .history-sidebar__brand-avatar .history-avatar-collage {
    width: 32px;
    height: 32px;
    box-shadow: none;
  }

  .app-shell--multi .history-sidebar.is-mobile-panel .history-panel {
    height: 100%;
    min-height: 0;
    gap: 10px;
  }

  .app-shell--multi .history-sidebar.is-mobile-panel .history-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    padding-bottom: 0;
  }

  .app-shell--single .sidebar.is-mobile-panel .history-head,
  .app-shell--multi .history-sidebar.is-mobile-panel .history-head {
    padding-left: 4px;
    padding-right: 4px;
  }

  .app-shell--single .sidebar.is-mobile-panel .history-item,
  .app-shell--multi .history-sidebar.is-mobile-panel .history-item {
    padding-left: 8px;
    padding-right: 8px;
  }

  .collapsed-new-chat {
    padding: 0 12px;
  }

  .hero-panel {
    padding: 28px 12px 12px;
    border-radius: 16px;
  }

  .app-shell--single .hero-panel {
    padding-top: 68px;
    padding-left: 14px;
    padding-right: 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .app-shell--single .hero-panel.is-chat {
    padding-top: 58px;
  }

  .app-shell--multi .hero-panel {
    padding-top: 68px;
    padding-left: 14px;
    padding-right: 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .app-shell--multi .hero-panel.is-chat {
    padding-top: 58px;
  }

  .app-shell--multi .hero-panel::before,
  .app-shell--multi .hero-panel::after {
    display: none;
  }

  .app-shell--single .hero-panel::before {
    display: none;
  }

  .app-shell--single .hero-panel::after {
    display: none;
  }

  .brand-row {
    margin-bottom: 14px;
  }

  .history-panel {
    gap: 8px;
  }

  .history-list,
  .model-rail-list {
    max-height: 220px;
    padding-bottom: 4px;
  }

  .app-shell--single .hero-content,
  .app-shell--multi .hero-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    width: 100%;
    padding: 0;
  }

  .app-shell--single .suggestion-list,
  .app-shell--multi .suggestion-list {
    margin: 0;
    flex: 1;
    justify-content: center;
    gap: 8px;
    align-items: stretch;
  }

  .app-shell--single .suggestion-chip,
  .app-shell--multi .suggestion-chip {
    width: 100%;
    max-width: none;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(248, 251, 254, 0.92);
    box-shadow: inset 0 0 0 1px rgba(230, 236, 244, 0.92);
  }

  .app-shell--single .suggestion-chip:nth-child(2),
  .app-shell--multi .suggestion-chip:nth-child(2) {
    background: rgba(245, 249, 253, 0.94);
  }

  .app-shell--single .suggestion-chip .icon,
  .app-shell--multi .suggestion-chip .icon {
    width: 18px;
    height: 18px;
    color: #6b93d6;
    opacity: 0.9;
  }

  .app-shell--single .suggestion-chip:hover,
  .app-shell--multi .suggestion-chip:hover {
    transform: translateY(0);
    background: rgba(251, 253, 255, 0.98);
    box-shadow:
      inset 0 0 0 1px rgba(221, 230, 241, 0.96),
      0 6px 12px rgba(30, 52, 88, 0.035);
  }

  .app-shell--single .suggestion-text,
  .app-shell--multi .suggestion-text {
    color: #334256;
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
  }

  .app-shell--single .composer-wrap,
  .app-shell--multi .composer-wrap {
    width: 100%;
    max-width: none;
    margin-top: 14px;
  }

  .app-shell--single .composer,
  .app-shell--multi .composer {
    border-radius: 18px;
    border-color: rgba(220, 229, 240, 0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      0 14px 26px rgba(23, 45, 78, 0.07),
      0 2px 8px rgba(23, 45, 78, 0.03);
  }

  .app-shell--single .composer::before,
  .app-shell--multi .composer::before {
    background: linear-gradient(90deg, rgba(103, 151, 230, 0), rgba(103, 151, 230, 0.18), rgba(103, 151, 230, 0));
  }

  .app-shell--single .composer-toolbar,
  .app-shell--multi .composer-toolbar {
    padding: 10px 12px 14px;
  }

  .app-shell--floating .composer-wrap {
    width: min(100%, var(--floating-default-width));
    max-width: var(--floating-default-width);
  }

  .app-shell--floating .composer--floating {
    width: min(100%, var(--floating-default-width));
    border-radius: 18px;
  }

  .app-shell--floating .floating-compare-composer {
    width: min(100%, var(--floating-default-width));
    margin-bottom: 10px;
    padding: 0 12px 8px;
    border-radius: 18px;
  }

  .app-shell--floating .floating-compare-composer--compact {
    margin-bottom: 10px;
    padding-bottom: 7px;
  }

  .app-shell--floating .floating-suggest {
    min-height: 46px;
    padding: 8px 0;
    gap: 8px;
  }

  .app-shell--floating .floating-suggest__brand span {
    display: none;
  }

  .app-shell--floating .floating-suggest__brand .orb-sm {
    width: 24px;
    height: 24px;
  }

  .app-shell--floating .floating-suggest__divider {
    height: 22px;
  }

  .app-shell--floating .floating-suggest__label {
    font-size: 13px;
    line-height: 20px;
  }

  .app-shell--floating .floating-suggest__item {
    padding: 0 12px;
    font-size: 13px;
  }

  .app-shell--floating .floating-compare-input-row {
    min-height: 40px;
    padding-top: 4px;
  }

  .app-shell--floating .floating-compare-input {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    font-size: 14px;
    line-height: 22px;
  }

  .app-shell--floating .floating-compact-input-row {
    min-height: 38px;
    padding-top: 5px;
  }

  .app-shell--floating .floating-compact-input {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
  }

  .app-shell--floating .floating-compare-send {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    flex-basis: 30px;
  }

  .app-shell--floating .floating-compare-toolbar {
    min-height: 36px;
  }

  .app-shell--floating .floating-compare-toolbar__actions {
    gap: 8px;
  }

  .hero-title {
    font-size: 18px;
    line-height: 28px;
  }

  .hero-desc,
  .suggestion-text,
  .composer-input {
    font-size: 14px;
    line-height: 22px;
  }

  .composer-toolbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 12px;
  }

  .composer-meta {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
  }

  .composer-actions {
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
  }

  .toolbar-cluster {
    flex: 0 0 auto;
    gap: 8px;
    padding-right: 0;
  }

  .toolbar {
    flex-wrap: nowrap;
  }

  .suggestion-chip {
    width: 100%;
  }

  .chat-stage,
  .composer-wrap {
    width: 100%;
  }

  .chat-stage {
    min-height: 0;
  }

  .composer-wrap {
    margin-top: 12px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .composer {
    border-radius: 16px;
  }

  .composer-input {
    min-height: 56px;
    max-height: 140px;
    padding: 14px 14px 2px;
  }

  .model-switch-wrap,
  .model-switch {
    width: 100%;
  }

  .model-switch {
    width: 100%;
    max-width: none;
  }

  .model-trigger {
    width: 100%;
    max-width: none;
  }

  .model-menu {
    width: 100%;
    max-width: none;
  }

  .mention-menu {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  .group-creator-card {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 32px);
    padding: 14px;
  }

  .group-creator-list {
    max-height: 42vh;
  }

  .message-user-bubble {
    max-width: calc(100% - 32px);
  }

  .composer-image-chip {
    width: 64px;
    height: 64px;
  }

  .message-user-images img {
    width: 108px;
    height: 108px;
  }

  .message-assistant-body,
  .message-loading-dots {
    padding-left: 0;
  }

  .message-assistant-footer {
    margin-left: 0;
  }

  .reasoning-card {
    margin-left: 0;
  }

  .reasoning-card__meta {
    flex-wrap: wrap;
  }

  .message-assistant-body::before {
    display: none;
  }

  .scroll-bottom-btn {
    left: 50%;
    bottom: 14px;
  }
}
