.shell {
  position: relative;
  isolation: isolate;
  height: 100vh;
  min-height: 100vh;
  min-width: 960px;
  display: grid;
  grid-template-columns: clamp(232px, 19vw, 280px) minmax(0, 1fr);
  overflow: hidden;
  background: #f0f7ff;
}

.sidebar {
  height: 100vh;
  padding: var(--space-5) var(--space-4);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(167, 139, 250, 0.15), rgba(124, 58, 237, 0.1)),
    rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-right: 1px solid var(--color-border-light);
  box-shadow: inset -1px 0 0 rgba(124, 58, 237, 0.2);
}

.nav-list,
.page-stack,
.catalog-list,
.form-grid,
.chat-panel,
.settings-panel,
.bind-entry,
.scroll-panel {
  display: grid;
  gap: 12px;
}

.page-copy p,
.catalog-item p,
.notice,
.empty-state,
.mini-info span,
.inline-hint,
.bind-entry-copy p,
.composer-hint {
  color: #667794;
  line-height: 1.6;
  font-size: 13px;
}

.nav-list {
  gap: 8px;
  align-content: start;
  align-self: start;
}
.nav-item {
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-lg);
  text-align: left;
  background: transparent;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  transition: all 0.2s ease;
}

.nav-item.active {
  background: linear-gradient(135deg,
    rgba(139, 92, 246, 0.12),
    rgba(59, 130, 246, 0.08)
  );
  color: var(--color-primary-500);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-medium);
}

.nav-item:hover:not(.active) {
  background: rgba(139, 92, 246, 0.05);
}

.sidebar-top,
.expert-card-list,
.chat-header-copy,
.chat-header-meta,
.chat-header-stat,
.expert-empty-state,
.starter-prompt-list {
  display: grid;
  gap: 10px;
}

.sidebar-top {
  min-height: 0;
}

.sidebar-expert-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.sidebar-expert-scroll::-webkit-scrollbar {
  width: 4px;
}

.sidebar-expert-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 2px;
}

.sidebar-expert-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.sidebar-expert-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

.sidebar-section {
  display: grid;
  gap: 10px;
  padding: var(--space-4);
  border-radius: 22px;
  border: 1px solid rgba(217, 231, 227, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 250, 0.94));
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.06);
}

.sidebar-section-fill {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.sidebar-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 18px;
}

.sidebar-section-head span,
.sidebar-section-head strong,
.expert-card-kicker,
.expert-card-meta,
.sidebar-session-main span,
.chat-header-kicker,
.chat-header-stat span,
.empty-state-kicker,
.sidebar-inline-action {
  font-size: 12px;
  line-height: 1.5;
}

.sidebar-section-head span,
.expert-card-kicker,
.expert-card-meta,
.sidebar-session-main span,
.chat-header-kicker,
.chat-header-stat span,
.empty-state-kicker {
  color: #6a7b96;
}

.sidebar-inline-action {
  padding: 0;
  background: transparent;
  color: #0f67de;
}

.expert-card {
  width: 100%;
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 252, 0.96)
  );
  color: var(--color-text-primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.expert-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 92, 246, 0.3);
}

.expert-card.active {
  border-color: var(--color-primary-400);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(
    180deg,
    rgba(139, 92, 246, 0.06),
    rgba(59, 130, 246, 0.04)
  );
}

.expert-card strong,
.chat-header-copy h2,
.chat-header-stat strong,
.expert-empty-state strong {
  color: #1f2f49;
}

.sidebar-session-main strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #24374f;
  font-size: 12px;
  line-height: 1.45;
}

.expert-card p,
.chat-header-copy p,
.expert-empty-state p {
  color: #667794;
  font-size: 13px;
  line-height: 1.7;
}

.sidebar-session-card {
  min-height: 32px;
  height: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-session-card:hover {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.sidebar-session-card.active {
  border-color: rgba(139, 92, 246, 0.1);
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.04) 0%,
    rgba(139, 92, 246, 0.025) 50%,
    rgba(139, 92, 246, 0.01) 100%
  );
  box-shadow: var(--shadow-card);
}


.sidebar-session-main {
  min-width: 0;
  display: grid;
  gap: 2px;
  min-height: 48px;
  height: 100%;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: #20304b;
  border-radius: 16px;
  text-align: left;
  align-content: center;
  transition: all 0.15s ease;
  cursor: pointer;
}

.sidebar-session-main:hover {
  background: rgba(139, 92, 246, 0.04);
}

.sidebar-session-close {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(217, 224, 231, 0.94);
  color: #64748b;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transition: all 0.15s ease;
  cursor: pointer;
}

.sidebar-session-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sidebar-session-close:hover {
  color: var(--ui-color-primary-strong);
  background: #f1f4fb;
  box-shadow: inset 0 0 0 1px rgba(159, 174, 215, 0.96);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 252, 0.96)
  );
  box-shadow: var(--shadow-sm);
}

.chat-header-copy {
  min-width: 0;
}

.chat-header-copy h2 {
  font-size: 22px;
  line-height: 1.2;
}

.chat-header-meta {
  grid-template-columns: repeat(2, minmax(92px, 1fr));
}

.chat-header-stat {
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 226, 241, 0.9);
  text-align: center;
}

.chat-header-stat strong {
  font-size: 18px;
}

.expert-empty-state {
  gap: 12px;
  background: linear-gradient(180deg, #f8fbff, #f2f7ff);
}

.starter-prompt-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.starter-prompt {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(206, 218, 235, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: #22324c;
  text-align: left;
  line-height: 1.6;
}
.main-shell {
  height: 100vh;
  min-height: 0;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.startup-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(90, 176, 255, 0.34), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 50% 78%, rgba(190, 228, 255, 0.36), transparent 38%),
    linear-gradient(145deg, #dff1ff 0%, #edf7ff 42%, #ffffff 100%);
}

.startup-overlay::before,
.startup-overlay::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
}

.startup-overlay::before {
  width: 320px;
  height: 320px;
  top: -64px;
  left: -48px;
  background: rgba(103, 188, 255, 0.24);
}

.startup-overlay::after {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -140px;
  background: rgba(209, 237, 255, 0.7);
}

.startup-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  text-align: center;
  animation: startup-overlay-enter 420ms ease-out both;
}

.startup-overlay.error .startup-overlay-panel {
  width: min(640px, 100%);
}

.startup-overlay-copy {
  width: auto;
  max-width: 100%;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 0;
}

.startup-overlay-copy h1 {
  margin: 0;
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 800;
  background-image: linear-gradient(135deg, #9fd4ff 0%, #bdd7ff 45%, #d8c5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 48px rgba(139, 182, 255, 0.18);
}

.startup-overlay-brand-line {
  width: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.startup-overlay-brand-copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 8px;
  text-align: left;
}

.startup-overlay-mark-shell {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.startup-overlay-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.startup-overlay-tagline {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #7ea2d9;
}

.startup-overlay-body {
  width: min(500px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 34px;
}

.startup-overlay-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(128, 174, 223, 0.18);
}

.startup-overlay-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #69bcff 0%, #3f8cff 100%);
  box-shadow: 0 0 18px rgba(63, 140, 255, 0.28);
  transition: width 240ms ease;
}

.startup-overlay-status {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.startup-overlay-status strong {
  color: #1f426d;
  font-size: 16px;
  line-height: 1.5;
}

.startup-overlay-status span {
  color: #67819f;
  font-size: 13px;
  line-height: 1.7;
}

.startup-overlay-actions {
  justify-content: center;
}

@keyframes startup-overlay-enter {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.session-add {
  border: none;
  background: transparent;
  padding: 0;
  color: #0a4f9d;
}

@media (max-width: 1100px) {
  .chat-header {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-header-meta,
  .starter-prompt-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sidebar-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .starter-prompt-list {
    grid-template-columns: 1fr;
  }
}



.sidebar-section.compact {
  padding: 12px;
  gap: 10px;
  border-radius: 16px;
}

.sidebar-section-copy {
  min-width: 0;
  display: grid;
  gap: 0;
}

.sidebar-section-label {
  color: #77879c;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.sidebar-section-title {
  color: #1f2f49;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.page-copy.compact {
  gap: 4px;
}

.page-copy.compact h2 {
  font-size: 16px;
  line-height: 1.3;
}

.chat-panel {
  gap: 10px;
}

.chat-header.compact {
  padding: 10px 12px;
  gap: 12px;
  align-items: flex-start;
}

.chat-header-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chat-header-summary {
  color: #667794;
  font-size: 12px;
  line-height: 1.6;
}


.page-copy.compact p {
  max-width: 720px;
}

.experts-overview-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(209, 220, 236, 0.92);
  background: linear-gradient(135deg, rgba(247, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
  overflow: hidden;
}

.experts-overview-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: inherit;
  background: linear-gradient(180deg, #0f7bff 0%, #8fbfff 100%);
}

.experts-overview-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.experts-overview-copy span {
  color: #6a7b96;
  font-size: 12px;
  line-height: 1.5;
}

.experts-overview-copy strong {
  color: #1f2f49;
}

.experts-overview-copy strong {
  font-size: 15px;
  line-height: 1.45;
}

.experts-switcher-trigger {
  border-radius: 999px;
}

.button-chevron {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 180ms ease, opacity 180ms ease;
  opacity: 0.78;
}

.home-chat-header {
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(246, 249, 255, 0.94));
}

.home-empty-state {
  gap: 12px;
  background:
    radial-gradient(circle at top right, rgba(15, 123, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fbff, #f4f8ff);
}

.experts-overview-bar {
  overflow: visible;
}

.experts-switcher {
  position: relative;
  flex: 0 0 auto;
}

.experts-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  justify-content: space-between;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  border: 1px solid rgba(209, 220, 236, 0.92);
  box-shadow: 0 12px 24px rgba(35, 52, 82, 0.08);
}

.experts-switcher-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.experts-chevron {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  opacity: 0.7;
}

.experts-chevron.open {
  transform: rotate(225deg);
}

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

.chat-header-tag {
  padding: 7px 10px;
  border-radius: 999px;
}

.expert-empty-state {
  gap: 10px;
  padding: 14px;
}

.starter-prompt-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.starter-prompt {
  min-height: 44px;
  padding: 10px 12px;
}

.expert-empty-state-douyin {
  gap: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 10%, rgba(61, 220, 255, 0.08), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(255, 77, 141, 0.06), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f6f9fc 100%);
}

.expert-empty-state-douyin .douyin-brief-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(207, 221, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(23, 31, 46, 0.08);
}

.expert-empty-state-douyin .douyin-brief-logo {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(61, 220, 255, 0.95), rgba(61, 220, 255, 0) 44%),
    linear-gradient(315deg, rgba(255, 77, 141, 0.95), rgba(255, 77, 141, 0) 48%),
    #111827;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.expert-empty-state-douyin .douyin-brief-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.expert-empty-state-douyin .douyin-brief-copy strong {
  color: #101827;
  font-size: 18px;
  line-height: 1.35;
}

.expert-empty-state-douyin .douyin-guide-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.64fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.expert-empty-state-douyin .douyin-video-preview-card,
.expert-empty-state-douyin .douyin-guide-card,
.expert-empty-state-douyin .douyin-guide-footer {
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.68);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.expert-empty-state-douyin .douyin-video-preview-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 12px;
}

.expert-empty-state-douyin .douyin-video-frame {
  position: relative;
  width: min(100%, 210px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(61, 220, 255, 0.2), transparent 30%),
    linear-gradient(325deg, rgba(255, 77, 141, 0.28), transparent 36%),
    linear-gradient(180deg, #101827, #1d2939);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.expert-empty-state-douyin .douyin-video-topbar,
.expert-empty-state-douyin .douyin-video-caption,
.expert-empty-state-douyin .douyin-video-progress {
  position: absolute;
  left: 12px;
  right: 12px;
}

.expert-empty-state-douyin .douyin-video-topbar {
  top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  line-height: 1.4;
}

.expert-empty-state-douyin .douyin-video-play {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  margin: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    -6px 0 0 rgba(61, 220, 255, 0.5),
    6px 0 0 rgba(255, 77, 141, 0.45);
}

.expert-empty-state-douyin .douyin-video-play::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 19px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #101827;
}

.expert-empty-state-douyin .douyin-video-caption {
  bottom: 32px;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.expert-empty-state-douyin .douyin-video-caption span {
  color: #3ddcff;
  font-size: 11px;
  line-height: 1.4;
}

.expert-empty-state-douyin .douyin-video-caption strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
}

.expert-empty-state-douyin .douyin-video-progress {
  bottom: 14px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.expert-empty-state-douyin .douyin-video-progress span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ddcff, #ff4d8d);
}

.expert-empty-state-douyin .douyin-shot-strip {
  width: min(100%, 210px);
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.3fr 0.9fr;
  gap: 5px;
}

.expert-empty-state-douyin .douyin-shot-strip span {
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 24, 39, 0.14);
}

.expert-empty-state-douyin .douyin-shot-strip span:nth-child(2) {
  background: rgba(61, 220, 255, 0.58);
}

.expert-empty-state-douyin .douyin-shot-strip span:nth-child(4) {
  background: rgba(255, 77, 141, 0.5);
}

.expert-empty-state-douyin .douyin-guide-card {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.64));
  box-shadow: none;
}

.expert-empty-state-douyin .douyin-guide-label {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.expert-empty-state-douyin .douyin-guide-intro {
  margin: 0;
  color: #64748b;
}

.expert-empty-state-douyin .douyin-guide-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.expert-empty-state-douyin .douyin-guide-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.expert-empty-state-douyin .douyin-route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.expert-empty-state-douyin .douyin-guide-route-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.58);
}

.expert-empty-state-douyin .douyin-guide-route-card.host {
  border-color: rgba(61, 220, 255, 0.24);
}

.expert-empty-state-douyin .douyin-guide-route-card.visual {
  border-color: rgba(255, 77, 141, 0.22);
}

.expert-empty-state-douyin .douyin-guide-route-badge {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.035);
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.expert-empty-state-douyin .douyin-guide-route-title {
  color: #101827;
  font-size: 13px;
  line-height: 1.35;
}

.expert-empty-state-douyin .douyin-guide-route-detail {
  margin: 0;
}

.expert-empty-state-douyin .douyin-guide-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.expert-empty-state-douyin .douyin-guide-step {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.expert-empty-state-douyin .douyin-guide-step-index {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.expert-empty-state-douyin .douyin-guide-step-copy {
  min-width: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.expert-empty-state-douyin .douyin-guide-continue {
  margin: 0;
}

.expert-empty-state-douyin .douyin-guide-footer {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.expert-empty-state-douyin .starter-prompt-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expert-empty-state-douyin .douyin-starter-prompt {
  display: grid;
  gap: 5px;
  min-height: 74px;
  border: 0;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}

.expert-empty-state-douyin .starter-prompt-title {
  color: #101827;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.expert-empty-state-douyin .starter-prompt-desc {
  color: #4b5f7a;
  font-size: 12px;
  line-height: 1.5;
}

.message-card {
  padding: 14px;
}

.composer-skill-badge {
  max-width: 220px;
}

.composer-field textarea {
  min-height: 68px;
  max-height: 144px;
  padding: 10px 12px;
}

.composer-footer {
  align-items: center;
  gap: 10px;
}

.skill-trigger {
  width: 34px;
  height: 34px;
}

.skill-trigger.text-trigger {
  width: auto;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.skill-chip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-submit {
  min-width: 96px;
  padding: 10px 16px;
}

@media (max-width: 1100px) {
  .chat-header.compact {
    flex-direction: column;
    align-items: stretch;
  }

  .experts-overview-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-header-actions {
    justify-content: flex-start;
  }

  .expert-empty-state-douyin .douyin-guide-grid {
    grid-template-columns: 1fr;
  }

  .expert-empty-state-douyin .douyin-video-frame,
  .expert-empty-state-douyin .douyin-shot-strip {
    width: min(100%, 180px);
  }
}

@media (max-width: 720px) {
  .chat-header-summary {
    display: none;
  }

  .expert-empty-state-douyin .douyin-brief-card {
    grid-template-columns: 1fr;
  }

  .expert-empty-state-douyin .douyin-route-list,
  .expert-empty-state-douyin .douyin-guide-step-list,
  .expert-empty-state-douyin .starter-prompt-list {
    grid-template-columns: 1fr;
  }

  .composer-submit {
    width: 100%;
  }
}

@media (max-height: 860px) {
  .shell {
    grid-template-columns: 192px minmax(0, 1fr);
  }

  .sidebar,
  .main-shell {
    padding: 14px;
    gap: 10px;
  }

  .nav-item {
    height: 38px;
  }

  .panel {
    padding: 14px;
  }

  .chat-header.compact {
    padding: 8px 10px;
  }

  .chat-header-copy h2 {
    font-size: 20px;
  }

  .expert-empty-state {
    padding: 12px;
  }

  .message-card {
    padding: 12px;
  }

  .composer-shell {
    padding: 8px;
  }

  .composer-field textarea {
    min-height: 56px;
    max-height: 120px;
  }
}

:root {
  color: var(--ui-color-text);
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 93, 252, 0.12), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.08), transparent 24%),
    linear-gradient(180deg, #F9F7FF 0%, #F5F0FF 100%);
  font-family: var(--font-sans);
}

body {
  background:
    radial-gradient(circle at top left, rgba(109, 93, 252, 0.1), transparent 24%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.06), transparent 22%),
    linear-gradient(180deg, var(--ui-color-canvas) 0%, var(--ui-color-canvas-strong) 100%);
  color: var(--ui-color-text);
}

button {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ui-color-primary), var(--ui-color-primary-strong));
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.18);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

button.secondary {
  background: rgba(255, 255, 255, 0.94);
  color: #284843;
  box-shadow: inset 0 0 0 1px var(--ui-color-border);
}

.brand-mark {
  width: 38px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(82, 162, 250, 0.9), rgba(109, 208, 191, 0.72));
  box-shadow: 0 10px 22px rgba(86, 155, 224, 0.2);
}

.brand-mark {
  display: none;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name-primary {
  background-image: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.brand-name-secondary {
  background-image: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
}

.brand-divider {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.92), rgba(45, 212, 191, 0.78));
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.14);
}

.nav-list {
  gap: 10px;
}

/* 分类卡片网格布局 */

/* 分类列表布局 - 垂直可展开列表 */
.expert-category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.expert-category-item {
  border-radius: 14px;
  background: linear-gradient(135deg,
    rgba(235, 240, 255, 0.9),
    rgba(245, 240, 255, 0.9)
  );
  border: 1px solid rgba(109, 93, 252, 0.15);
  box-shadow: 0 4px 12px rgba(109, 93, 252, 0.08);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.expert-category-item:hover {
  border-color: rgba(109, 93, 252, 0.25);
  box-shadow: 0 8px 20px rgba(109, 93, 252, 0.12);
}

.expert-category-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  box-shadow: none;
  user-select: none;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.expert-category-header:hover {
  background: linear-gradient(135deg,
    rgba(235, 240, 255, 0.95),
    rgba(245, 240, 255, 0.95)
  );
  box-shadow: none;
  transform: none;
}

.expert-category-header:disabled {
  cursor: default;
  opacity: 0.58;
}

.expert-category-header:disabled:hover {
  background: transparent;
}

.expert-category-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6D5DFC;
}

.expert-category-icon svg {
  width: 18px;
  height: 18px;
}

.expert-category-title {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.expert-category-name {
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #4A5568;
  text-align: left;
  line-height: 1.2;
}

.expert-category-toggle {
  margin-left: auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: #6D5DFC;
}

.expert-category-toggle.expanded {
  transform: rotate(180deg);
}

.expert-category-content {
  position: static;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.62),
    rgba(245, 240, 255, 0.58)
  );
  border-top: 1px solid rgba(109, 93, 252, 0.12);
  box-shadow: none;
  margin-top: 0;
}

.expert-category-experts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.expert-category-expert-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px 6px 28px;
  border-radius: 10px;
  border: 1px solid rgba(109, 93, 252, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: #4A5568;
  cursor: pointer;
  box-shadow: none;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.expert-category-expert-item:hover {
  background: rgba(109, 93, 252, 0.05);
  border-color: rgba(109, 93, 252, 0.2);
  box-shadow: none;
  transform: none;
}

.expert-category-expert-item.active {
  color: #5b4fe8;
  background: rgba(109, 93, 252, 0.1);
  border-color: rgba(109, 93, 252, 0.24);
}

.expert-category-expert-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expert-category-expert-icon svg {
  width: 100%;
  height: 100%;
  color: inherit !important;
  fill: inherit !important;
  stroke: inherit !important;
}

.expert-category-expert-name {
  font-size: 13px;
  font-weight: 500;
  color: #4A5568;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 分类卡片 */



.expert-category-icon {
  font-size: 14px;
  line-height: 1;
}

.expert-category-name {
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #4A5568;
  text-align: left;
  line-height: 1.2;
}

.main-shell.settings-main-shell {
  padding-top: 8px;
  gap: 0;
}

.panel,
.catalog-item {
  background: #fff;
}

.panel {
  border-radius: 24px;
  border-color: rgba(219, 220, 232, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  box-shadow: var(--ui-shadow-panel);
}

.chat-panel {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px 22px 22px;
  overflow: hidden;
}

.conversation-new-session {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(191, 203, 216, 0.96);
  background: #ffffff;
  color: var(--ui-color-primary-strong);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.08);
}

.conversation-new-session:hover:not(:disabled) {
  border-color: rgba(13, 148, 136, 0.24);
  background: #f5f5fb;
}

.conversation-new-session-plus {
  font-size: 18px;
  line-height: 1;
}

.sidebar-new-session {
  width: 100%;
}

.home-microcopy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  min-height: 42px;
  padding: 5px 8px 5px 7px;
  border-radius: 999px;
  border: 1px solid rgba(214, 224, 236, 0.86);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 8px 18px rgba(35, 52, 82, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-microcopy-icon-shell {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}

.home-microcopy-icon {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.72);
}

.home-microcopy-icon-beam {
  position: absolute;
  inset: 3px -2px -2px 3px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
}

.home-microcopy-icon svg {
  width: 19px;
  height: 19px;
}

.home-microcopy-body {
  min-width: 0;
  display: grid;
  align-items: center;
}

.home-microcopy-title {
  min-width: 0;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-microcopy-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.96);
}

.home-microcopy-status::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.home-microcopy-status.brand {
  color: #2563eb;
  background: rgba(239, 246, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.82);
}

.empty-state {
  border-radius: 24px;
  border-style: solid;
  border-color: rgba(216, 219, 229, 0.94);
  background:
    radial-gradient(circle at top right, rgba(109, 93, 252, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(251, 251, 253, 0.98), rgba(245, 245, 249, 0.96));
}

@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-shell,
  .sidebar {
    padding: 16px;
  }

  .chat-panel {
    padding: 16px;
  }

  .conversation-new-session {
    width: 100%;
  }

  .home-microcopy {
    max-width: 100%;
  }

  .home-microcopy-status {
    display: none;
  }
}
