:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.7);
  --fg: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-contrast: #031221;
  --border: rgba(148, 163, 184, 0.04);
  --success: #22c55e;
  --danger: #f87171;
  --shadow-strong: 0 24px 60px rgba(2, 6, 23, 0.55);
  --shadow-light: 0 18px 44px rgba(15, 23, 42, 0.08);
  --card-radius: 1.2rem;
  font-family: "SF Pro Display", "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    system-ui, -apple-system, sans-serif;
  letter-spacing: 0.01em;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(99, 102, 241, 0.12), transparent 36%),
    linear-gradient(180deg, #0b1224 0%, #0f172a 50%, #0b1224 100%);
  color: var(--fg);
  min-height: 100vh;
  padding: calc(env(safe-area-inset-top, 1rem) + 0.5rem) 1rem
    calc(env(safe-area-inset-bottom, 1rem) + 1.25rem);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

body.light-theme {
  color-scheme: light;
  --bg: #f2f2f7;
  --bg-card: #ffffff;
  --fg: #111827;
  --muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.035);
  --accent: #0a84ff;
  --accent-contrast: #ffffff;
  --shadow-strong: 0 18px 38px rgba(15, 23, 42, 0.1);
  background: radial-gradient(circle at 12% 14%, rgba(10, 132, 255, 0.08), transparent 34%),
    radial-gradient(circle at 86% 4%, rgba(52, 199, 89, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f2f2f7 58%, #ffffff 100%);
}

body.light-theme .card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

body.light-theme .ghost-btn {
  background: #ffffff;
  color: #111827;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

body.light-theme .env-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 250, 0.95));
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

body.light-theme .sentiment-main {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

body.light-theme .sentiment-history {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .sentiment-card {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15), transparent 50%);
  pointer-events: none;
}

.page-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 1024px) {
  .page-shell {
    width: min(1260px, calc(100% - 2rem));
    gap: 1.4rem;
  }
}

.banner {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), rgba(248, 113, 113, 0.08));
  color: var(--danger);
  box-shadow: var(--shadow-strong);
}

@media (min-width: 960px) {
  .banner {
    position: sticky;
    top: 0.8rem;
    z-index: 40;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.hero-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(14, 165, 233, 0.06)), var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

.hero-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

@media (min-width: 960px) {
  .hero-controls {
    align-items: flex-end;
  }
}

/* Align '当前用户' 与 '输入邀请码' 同行；主题切换单独一行 */
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.compact-row {
  gap: 0.7rem;
  width: 100%;
}

@media (max-width: 480px) {
  .hero-row {
    gap: 0.4rem;
  }
}

.hero-text {
  flex: 1;
  min-width: 240px;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 2.7rem);
}

.sub {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 46rem;
  font-size: 1.05rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.role-chip {
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.14);
}

button.primary,
.ghost-btn {
  min-height: 44px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.3rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: visible;
  z-index: 0;
}

@media (min-width: 1100px) {
  .card {
    padding: 1.45rem;
  }
}

/* 去掉各栏目之间多余的水平分割线，只保留概念分析中间那条分割线 */
#sentimentCard {
  border-bottom: 0;
}
#llmCard,
#stockToplistCard,
#emotionDataCard,
#kronosForecastCard {
  border-top: 0;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), transparent 70%);
  z-index: -1;
}

/* Kronos 预测默认内容卡片：去掉渐变叠加 */
#kronosForecastCard::after {
  background: none;
}

.card h2,
.card h3 {
  margin: 0;
}

.card h2 {
  font-size: 1.3rem;
}

.card h3 {
  font-size: 1.1rem;
}

@media (min-width: 1100px) {
  .card h2 {
    font-size: 1.38rem;
  }
  .card h3 {
    font-size: 1.16rem;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.card-title-with-help {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}
.help-trigger {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.help-trigger:hover {
  border-color: rgba(56, 189, 248, 0.6);
}
body.light-theme .help-trigger {
  background: rgba(0, 0, 0, 0.03);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.08);
}
.help-bubble {
  position: absolute;
  top: 120%;
  right: auto;
  left: 0;
  min-width: 240px;
  max-width: min(320px, 90vw);
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 26px rgba(2, 6, 23, 0.3);
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
  display: none;
  z-index: 15;
}
body.light-theme .help-bubble {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}
.help-bubble.open {
  display: block;
}

.badge {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  font-weight: 600;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.metric-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.metric-grid strong {
  font-size: 1.2rem;
}

.history {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.history span {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  flex: 1 1 120px;
}
body.light-theme .history span { background: rgba(0, 0, 0, 0.06); }

.muted {
  color: #8fa0b8;
  margin-top: 0.25rem;
}

#inviteForm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.input-row {
  display: flex;
  gap: 0.75rem;
}

input {
  flex: 1;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
body.light-theme input { background: #ffffff; }

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(56, 189, 248, 0.3);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
body.light-theme input:focus,
body.light-theme textarea:focus,
body.light-theme select:focus {
  outline-color: rgba(10, 132, 255, 0.4);
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.12);
}

button.primary {
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.28);
}
button.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.32);
}
body.light-theme button.primary {
  background: #0a84ff;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(10, 132, 255, 0.22);
}
body.light-theme button.primary:hover {
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.22);
}

.status {
  min-height: 1rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

.ghost-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--fg);
  border-radius: 0.75rem;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

.ghost-btn.secondary {
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--muted);
}

.ghost-btn:hover {
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.28);
}

.ghost-btn.small {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
}

.auth-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

#dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#dashboard.hidden {
  display: none;
}

@media (min-width: 1024px) {
  #dashboard {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
  }
  #viewNav {
    grid-column: 1 / -1;
    position: sticky;
    top: 0.75rem;
    z-index: 25;
  }
  .view-section {
    grid-column: span 12;
    height: 100%;
  }
  #marketEnvCard,
  #sentimentCard,
  #llmCard,
  #toplistCard,
  #stockToplistCard,
  #emotionDataCard,
  #kronosForecastCard,
  #adminPanel {
    grid-column: span 12;
  }
}

.concept-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* 概念板块雷达：明日重点机会 · 风险 */
.concept-radar-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 768px) {
  .concept-radar-grid {
    grid-template-columns: 1fr;
  }
}

.concept-radar-column {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(10px);
}

body.light-theme .concept-radar-column {
  /* 浅色模式下采用与 env-card 一致的白色磨砂卡片风格 */
  color: #1f2933;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 252, 0.98));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(160%) blur(12px);
}

.concept-radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding: 0.25rem 0.55rem;
  border-radius: 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.4);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.6);
}

body.light-theme .concept-radar-header {
  background: rgba(15, 23, 42, 0.04);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.concept-radar-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.concept-radar-sub {
  font-size: 0.8rem;
}

.concept-radar-list {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.concept-radar-list.compact {
  gap: 0.25rem;
}

.concept-radar-item {
  padding: 0.35rem 0.1rem;
  border-radius: 0.4rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.concept-radar-item:last-child {
  border-bottom: none;
}

body.light-theme .concept-radar-item {
  background: transparent;
}

.concept-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.concept-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}

.concept-line {
  font-size: 0.88rem;
  margin-top: 0.15rem;
  line-height: 1.4;
}

.concept-line-main {
  color: rgba(226, 232, 240, 0.85);
}

.concept-line-sub {
  color: rgba(156, 163, 175, 0.85);
}

body.light-theme .concept-name {
  color: #111827;
}
body.light-theme .concept-line-main {
  color: #4b5563;
}
body.light-theme .concept-line-sub {
  color: #767e8c;
}

.concept-change {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.9);
  white-space: nowrap;
}
.concept-change.up {
  color: #f87171;
}
.concept-change.down {
  color: #34d399;
}
body.light-theme .concept-change {
  color: #9ca3af;
}
body.light-theme .concept-change.up {
  color: #dc2626;
}
body.light-theme .concept-change.down {
  color: #15803d;
}

.concept-radar-empty {
  margin: 0.2rem 0 0;
}

.concept-radar-column.radar-opportunity .concept-radar-title {
  color: #ef4444;
}

.concept-radar-column.radar-defense .concept-radar-title {
  color: #fb923c;
}

.concept-radar-column.radar-risk .concept-radar-title {
  color: #4ade80;
}

/* “明日重点机会&风险”标题：与其他卡片标题保持一致 */
#conceptRadarCard .card-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

/* 调整雷达卡片内帮助浮窗位置，避免被遮挡或溢出 */
#conceptRadarCard .help-bubble {
  top: 115%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  max-width: min(360px, 92vw);
  z-index: 80;
}

.env-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.env-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.env-card {
  border: none;
  border-radius: 1.4rem;
  padding: 1.35rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.94));
  box-shadow: 0 26px 52px rgba(2, 6, 23, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  backdrop-filter: saturate(160%) blur(16px);
}
body.light-theme .env-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 252, 0.98));
  border: none;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: #0f172a;
  backdrop-filter: saturate(160%) blur(12px);
}
body.light-theme .env-card-head { color: #0f172a; }
body.light-theme .env-card-head span { color: #6e6e73; }
body.light-theme .env-card-copy { color: #1c1c1e; }

.env-card h4 {
  margin: 0;
  font-size: 1.18rem;
}

.env-card-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

.env-card-head span {
  font-size: 0.8rem;
  color: var(--muted);
}

.env-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 1.15rem;
}

.env-card-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: rgba(250, 252, 255, 0.9);
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(10px);
}
/* label 与值增强对比 */
.env-card-grid span {
  font-size: 0.92rem;
  color: rgba(188, 206, 247, 0.9);
  letter-spacing: 0.03em;
}

/* 数值内部彩色 span 继承父级字号，保持与其它数值一致 */
.env-card-grid strong span {
  font-size: inherit;
}
.env-card-grid strong {
  font-size: 1.18rem;
  color: #6ee7ff;
}

/* 市场环境综述数值颜色映射（与文字规则一致） */
.env-card-grid strong.mv-red,
.env-card-grid .mv-red {
  color: #ef4444;
}
.env-card-grid strong.mv-green,
.env-card-grid .mv-green {
  color: #22c55e;
}
.env-card-grid strong.mv-orange,
.env-card-grid .mv-orange {
  color: #f97316;
}
.env-card-grid strong.mv-light-red,
.env-card-grid .mv-light-red {
  color: #fb7185;
}
.env-card-grid strong.mv-light-green,
.env-card-grid .mv-light-green {
  color: #6ee7b7;
}
.env-card-grid .mv-green-num {
  color: #22c55e;
}
.env-card-grid .mv-red-num {
  color: #ef4444;
}
.mv-spacer {
  display: inline-block;
  width: 6px;
}
.mv-slash {
  color: rgba(148, 163, 184, 0.9);
  font-weight: 600;
}
body.light-theme .mv-slash {
  color: rgba(107, 114, 128, 0.9);
  font-weight: 600;
}
/* Light theme: keep the same vivid colors for key metrics */
body.light-theme .env-card-grid strong.mv-red,
body.light-theme .env-card-grid .mv-red { color: #ef4444; }
body.light-theme .env-card-grid strong.mv-green,
body.light-theme .env-card-grid .mv-green { color: #16a34a; }
body.light-theme .env-card-grid strong.mv-orange,
body.light-theme .env-card-grid .mv-orange { color: #f97316; }
body.light-theme .env-card-grid strong.mv-light-red,
body.light-theme .env-card-grid .mv-light-red { color: #fb7185; }
body.light-theme .env-card-grid strong.mv-light-green,
body.light-theme .env-card-grid .mv-light-green { color: #22c55e; }
/* Light theme: labels inside overview card should be clearly legible */
body.light-theme .env-card-grid div { color: #1f2933; }
body.light-theme .env-card-grid strong { color: #0a5ad8; }
body.light-theme .env-card-grid span { color: rgba(56, 71, 97, 0.85); }
body.light-theme .env-card h4 { color: #111827; }
body.light-theme .env-card-grid div {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.env-card-grid strong {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.99);
}
/* 提升“市场风格/仓位建议”可读性 */
.env-card-grid div[data-label="市场风格"] strong,
.env-card-grid div[data-label="仓位建议"] strong {
  color: #0ea5e9;
}
body.light-theme .env-card-grid div[data-label="市场风格"] strong,
body.light-theme .env-card-grid div[data-label="仓位建议"] strong {
  color: #0a5cb5;
}

.env-card-copy {
  color: rgba(248, 250, 252, 0.85);
  font-size: 0.92rem;
  line-height: 1.4;
}

.env-card-meta {
  text-align: right;
  font-size: 0.95rem;
  color: var(--muted);
  padding-right: 0.25rem;
}

@media (max-width: 900px) {
  .env-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.env-card-meta span {
  color: var(--muted);
}

.sentiment-columns {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.sentiment-main {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.3rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.45);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
body.light-theme .sentiment-main {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.sentiment-main h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
}

.sentiment-main .sentiment-meta {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.sentiment-main .sentiment-meta span {
  font-weight: 600;
}

.sentiment-main .sentiment-content {
  color: rgba(248, 250, 252, 0.88);
  font-size: 1.05rem;
  line-height: 1.6;
  flex: 1;
  overflow: auto;
}
body.light-theme .sentiment-main .sentiment-content {
  color: rgba(17, 24, 39, 0.9);
}

.sentiment-history {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.35);
  padding: 0.8rem 1rem;
}
body.light-theme .sentiment-history {
  background: #f7f9fc;
  border-color: rgba(0, 0, 0, 0.06);
}

.sentiment-history summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

.history-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.sentiment-history select {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  color: var(--fg);
  appearance: none;
}
/* Light theme: make selector light, readable */
body.light-theme .sentiment-history select {
  background: #ffffff;
  color: #111827;
  border-color: rgba(0, 0, 0, 0.12);
}

.llm-history-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.llm-history-button {
  width: 100%;
  text-align: left;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
  color: var(--fg);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.llm-history-button:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.llm-history-button strong {
  font-size: 0.9rem;
}

.llm-history-button span {
  font-size: 0.8rem;
  color: var(--muted);
}

body.light-theme .llm-history-button {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

.emotion-chart {
  margin-top: 0.75rem; /* slightly larger spacing per design */
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.4);
  padding: 0.5rem 0.3rem 0.6rem;
  cursor: pointer;
  position: relative;
}
body.light-theme .emotion-chart {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.emotion-chart h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.emotion-chart canvas {
  width: 100%;
  height: 220px;
  display: block;
}

.emotion-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.3rem;
  border-radius: 0.4rem;
  background: transparent;
  font-size: 0.8rem;
}
body.light-theme .legend-item { background: transparent; }

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.emotion-chart.fullscreen {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: #0f172a;
  z-index: 999;
}

.emotion-chart.fullscreen canvas {
  height: calc(100% - 1.5rem);
}

.emotion-table-block {
  margin-top: 1.25rem;
}

.table-scroll {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  position: relative;
  background: rgba(15, 23, 42, 0.28);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.32);
}
body.light-theme .table-scroll {
  border-color: rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: var(--shadow-light);
}

/* 概念分析 / 个股筛选：列表外层去掉圆角矩形框 */
#toplistCard .table-scroll,
#stockToplistCard .table-scroll {
  border-radius: 0;
  border-width: 0;
  background: transparent;
  box-shadow: none;
}

.emotion-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.emotion-table th,
.emotion-table td {
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 0.55rem 0.7rem; /* increase spacing for readability */
  text-align: center;
  font-size: 0.9rem;
}

.emotion-table th {
  background: rgba(15, 23, 42, 0.55);
  font-weight: 600;
}
body.light-theme .emotion-table th { background: #f2f2f7; color: #1c1c1e; }

.emotion-table td {
  background: rgba(15, 23, 42, 0.55);
}
body.light-theme .emotion-table td {
  background: #f2f2f7;
}

.emotion-table .label-cell {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  min-width: 5.8rem; /* reduce width so内容更紧凑 */
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(15, 23, 42, 0.9);
}
body.light-theme .emotion-table .label-cell {
  background: #ffffff;
}

.emotion-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
}
body.light-theme .emotion-table th:first-child {
  background: #f2f2f7;
}

.intraday-table th,
.intraday-table td {
  width: 5em;
  min-width: 5em;
  max-width: 5em;
}

/* Deprecated per metric-unified theme: keep for legacy but will be overridden below */
.val-pos { color: #22c55e; }
.val-neg { color: #f87171; }

/* Unified per-metric colors for emotion tables (applies to both cycle and intraday) */
.emotion-table tr.metric-red-ratio td,
.emotion-table tr.metric-limit-up-total td,
.emotion-table tr.metric-red-total td,
.emotion-table tr.metric-prev-limit td {
  color: #ef4444; /* red */
}
.emotion-table tr.metric-rise-fall td,
.emotion-table tr.metric-prev-cont td {
  color: #f97316; /* orange */
}
.emotion-table tr.metric-cont-success td,
.emotion-table tr.metric-cont-boards td {
  color: #a855f7; /* purple */
}
.emotion-table tr.metric-broken-rate td,
.emotion-table tr.metric-limit-down-total td,
.emotion-table tr.metric-green-total td,
.emotion-table tr.metric-prev-broken td {
  color: #22c55e; /* green */
}

.table-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem; /* more breathing space between tables */
}

.table-stack .table-scroll {
  border-radius: 1rem;
}

.concept-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.concept-controls label {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  color: var(--muted);
  gap: 0.2rem;
  flex: 1 1 160px;
  min-width: 140px;
}

.concept-controls select {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.4rem 0.8rem;
  color: var(--fg);
  min-width: 140px;
}

body.light-theme .concept-controls select {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.concept-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.concept-item:last-child {
  border-bottom: none;
}

.concept-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.concept-item strong {
  font-size: 1.05rem;
}

.concept-tag {
  font-size: 0.75rem;
  color: var(--muted);
}

.concept-change {
  font-size: 1rem;
  min-width: 70px;
  text-align: right;
}

.intraday {
  margin-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 1rem;
}

.intraday-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.intraday-chart {
  margin: 0.5rem 0 0.75rem;
}

.intraday-chart canvas {
  width: 100%;
  height: 120px;
  display: block;
}

.emotion-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.trend-block {
  margin-top: 1rem;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

body.light-theme .trend-block {
  background: rgba(15, 23, 42, 0.05);
}

.trend-block canvas {
  width: 100%;
  height: 120px;
  display: block;
}

.delta-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  font-size: 0.8rem;
}

.delta-pill.change-down {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.concept-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.score-meter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.score-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.score-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.score-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.9));
  width: 0%;
  transition: width 0.4s ease;
}

.score-fill.empty {
  opacity: 0.35;
}

.score-fill.secondary {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.85));
}

.risk-tag {
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid transparent;
  color: var(--fg);
}

.risk-low {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.risk-mid {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(96, 165, 250, 0.4);
  color: #93c5fd;
}

.risk-high {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: var(--danger);
}

.risk-unknown {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--muted);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.admin-form input,
.admin-form select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
  color: var(--fg);
}

body.light-theme .admin-form input,
body.light-theme .admin-form select {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-invite {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.8rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-invite strong {
  letter-spacing: 0.08em;
}

.admin-invite small {
  color: var(--muted);
  font-size: 0.75rem;
}

.change-up {
  color: var(--success);
}

.change-down {
  color: var(--danger);
}

@media (max-width: 640px) {
  body {
    padding: 1rem;
  }
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-meta {
    flex-wrap: wrap;
    width: 100%;
  }
  .role-chip {
    align-self: flex-start;
  }
  .hero-controls {
    align-items: stretch;
  }
  .hero-row {
    width: 100%;
  }
  .status-chip {
    width: 100%;
  }
  .input-row {
    flex-direction: column;
  }
  button.primary {
    width: 100%;
  }
  .concept-controls {
    flex-direction: column;
  }
  .hero-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .history {
    gap: 0.35rem 0.5rem;
  }
  .concept-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .concept-change {
    text-align: left;
    min-width: 0;
  }
  .concept-metrics {
    gap: 0.35rem;
  }
  .concept-item {
    padding: 1rem;
  }
}
.pill-note {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-left: 0.4rem;
}
.data-note {
  margin-left: 0.25rem;
}
/* Light theme: accent small text更柔和一些，避免过度抢眼 */
body.light-theme .pill-note {
  color: #0071e3;   /* iOS link blue */
  opacity: 0.9;     /* slight soften */
}

/* Logic descriptions under tabs: match concept analysis accent color but keep normal size */
.logic-desc {
  color: var(--accent);
  margin: 0 0 0.4rem 0;
}
body.light-theme .logic-desc {
  color: #0071e3;  /* align with .pill-note in light theme */
  opacity: 0.9;
}

.tab-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0.4rem 0 1.1rem;
  padding: 0.35rem 1.8rem 0.25rem;
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 0.9rem;
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.45);
}
body.light-theme .tab-nav {
  background: rgba(247, 249, 252, 0.96);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}


.nav-btn {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(248, 250, 252, 0.78);
  padding: 0.5rem 0.3rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.nav-btn:active { opacity: 0.75; }
body.light-theme .nav-btn { color: #4b5563; }

.nav-btn:not(.active):hover {
  color: rgba(248, 250, 252, 0.85);
  border-bottom-color: rgba(148, 163, 184, 0.45);
}
body.light-theme .nav-btn:not(.active):hover {
  color: #1f2937;
  border-bottom-color: rgba(15, 23, 42, 0.25);
}

.nav-btn.active {
  background: transparent;
  color: #0ea5e9;
  border-bottom-color: rgba(14, 165, 233, 0.85);
  box-shadow: none;
}
body.light-theme .nav-btn.active {
  color: #0a5cb5;
  border-bottom-color: rgba(10, 92, 181, 0.85);
}
.nav-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: currentColor;
  transition: width 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  transform: translateX(-50%);
}
.nav-btn.active::after {
  width: calc(100% + 1.6rem);
  opacity: 1;
}
.small {
  font-size: 0.85rem;
}
.llm-body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.llm-input {
  width: 100%;
  min-height: 110px; /* reduce one visible row */
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(59, 80, 120, 0.32);
  color: var(--fg);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  resize: vertical;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.06), 0 18px 44px rgba(2, 6, 23, 0.35);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.llm-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(59, 80, 120, 0.45);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15), 0 22px 58px rgba(2, 6, 23, 0.5);
}

@media (min-width: 1024px) {
  .llm-input {
    min-height: 140px;
  }
}

body.light-theme .llm-input {
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  border-color: rgba(10, 132, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.06), 0 10px 26px rgba(15, 23, 42, 0.1);
}
body.light-theme .llm-input:focus {
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.14), 0 18px 32px rgba(15, 23, 42, 0.17);
}

.llm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ghost-btn.primary.solid {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

#llmSubmit {
  min-height: 34px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.llm-result {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
  padding: 0.8rem 1rem;
  min-height: 60px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.32);
}

.llm-history {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
}

.llm-history summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

.llm-history-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* 指数情绪区：历史研判 summary 与下方卡片拉开一点距离 */
#sentimentHistoryPanel {
  margin-top: 0.75rem;
}
#sentimentHistoryDisplay {
  margin-top: 0.75rem;
}


/* Simplified, scrollable tabs (latest + history) */
.toplist-tabs {
  display: block;
  white-space: nowrap;           /* no wrap */
  overflow-x: auto;              /* horizontal scroll */
  -webkit-overflow-scrolling: touch;
  margin: 0.25rem 0 0.5rem;
}

.toplist-tab {
  display: inline-block;         /* inline for nowrap row */
  border: none;
  background: transparent;
  color: var(--fg);
  padding: 0.3rem 0.6rem;      /* slightly larger click area */
  font-weight: 700;
  font-size: 1.05rem;            /* larger labels */
  cursor: pointer;
  border-bottom: 2px solid transparent; /* underline style */
  margin-right: 0.2rem;
}
.toplist-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 800;              /* active bolder */
}

.toplist-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.toplist-table th,
.toplist-table td {
  border: 1px solid rgba(148, 163, 184, 0.08);
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  text-align: right;
  line-height: 1.5;
}
.toplist-table .nowrap { white-space: nowrap; }
/* Header labels: show full text, no truncation */
.toplist-table th .th-label {
  display: inline-block;
  white-space: nowrap;
}
.toplist-table th {
  background: rgba(15, 23, 42, 0.55);
  text-align: center;
}
.toplist-table th.sorted {
  color: var(--accent);
}
.toplist-table th .sort-indicator {
  margin-left: 0.2rem;
  font-size: 0.7em;
  opacity: 0.85;
}
body.light-theme .toplist-table th { background: #f2f2f7; color: #1c1c1e; }

.toplist-table td {
  background: rgba(15, 23, 42, 0.55);
}
.toplist-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.48);
}
body.light-theme .toplist-table td {
  background: #f2f2f7;
}
body.light-theme .toplist-table tbody tr:nth-child(even) td {
  background: #eef1f8;
}

.toplist-table th:first-child,
.toplist-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: rgba(15, 23, 42, 0.55);
  text-align: center;
}
 .toplist-table th:first-child {
  z-index: 4;
 }
/* 交替行的首列保持与整行一致的底色 */
.toplist-table tbody tr:nth-child(even) td:first-child {
  background: rgba(15, 23, 42, 0.48);
}

.toplist-table.panorama-table th,
.toplist-table.panorama-table td {
  white-space: nowrap;
}
body.light-theme .toplist-table th:first-child,
body.light-theme .toplist-table td:first-child {
  background: #f2f2f7;
}
body.light-theme .toplist-table tbody tr:nth-child(even) td:first-child {
  background: #eef1f8;
}

/* 名称列居中显示（通常为第 2 列） */
.toplist-table th:nth-child(2),
.toplist-table td:nth-child(2) {
  text-align: center;
}

.llm-history-entry {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.65rem 0.75rem;
  background: rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.llm-history-entry strong {
  font-size: 0.95rem;
}

body.light-theme .llm-history,
body.light-theme .llm-result,
body.light-theme .llm-history-entry {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}
.panorama-table-wrapper {
  max-height: 60vh;
  overflow-y: auto;
}
#panoramaHistoryContent .table-scroll {
  max-height: 65vh;
  overflow-y: auto;
  overflow-x: auto;
  display: block;
}
.emotion-charts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
