: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;
  --rise: #ff4d4f;
  --fall: #00c853;
  --skeleton-base: rgba(148, 163, 184, 0.16);
  --skeleton-highlight: rgba(148, 163, 184, 0.32);
  --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: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

/* Skeleton loading */
.skeleton-line,
.skeleton-block,
.skeleton-chip,
.skeleton-rect {
  position: relative;
  display: block;
  background: var(--skeleton-base);
  border-radius: 0.75rem;
  overflow: hidden;
}

.skeleton-line::after,
.skeleton-block::after,
.skeleton-chip::after,
.skeleton-rect::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--skeleton-highlight), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 0.9rem;
  border-radius: 999px;
}

.skeleton-block {
  height: 4.5rem;
}

.skeleton-chip {
  height: 1.1rem;
  border-radius: 999px;
}

.skeleton-rect {
  height: 2rem;
  border-radius: 0.9rem;
}

.skeleton-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skeleton-grid {
  display: grid;
  gap: 0.75rem;
}

.skeleton-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skeleton-card {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-strong);
}

body.light-theme .skeleton-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

@keyframes skeleton-shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

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;
  overflow-y: scroll;
  scrollbar-gutter: stable both-edges;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.light-theme {
  color-scheme: light;
  --bg: #ffffff;
  --bg-card: #ffffff;
  --fg: #1d1d1f;
  --muted: #424245;
  --border: rgba(0, 0, 0, 0.04);
  --accent: #0071e3;
  --accent-contrast: #ffffff;
  --skeleton-base: rgba(0, 0, 0, 0.06);
  --skeleton-highlight: rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 1px 4px rgba(0, 0, 0, 0.04);
  background: #ffffff;
}

body.light-theme .card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.light-theme .ghost-btn {
  background: #ffffff;
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.04);
}

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

body.light-theme .sentiment-main {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.light-theme .sentiment-history {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .sentiment-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

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

body.light-theme::before {
  content: 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(1420px, 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: visible;
  position: relative;
  z-index: 50;
}

/* 手机版：确保hero-card在最上层，覆盖.card的z-index: 0 */
body.terminal-mobile .hero-card {
  z-index: 500 !important;
  position: relative !important;
}

.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;
  position: relative;
  z-index: 50;
}

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

/* 手机版：显示hero-controls，只显示三条杠和补贴按钮 */
body.terminal-mobile .hero-controls,
body:not(.terminal-desktop) .hero-controls {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

/* 桌面版：隐藏手机版控制区域 */
body.terminal-desktop .hero-controls-mobile,
html.terminal-desktop .hero-controls-mobile {
  display: none !important;
}

/* 手机版：显示手机版控制区域 */
body.terminal-mobile .hero-controls-mobile,
body:not(.terminal-desktop) .hero-controls-mobile {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

body.terminal-mobile .hero-controls-mobile .hero-menu-toggle,
body:not(.terminal-desktop) .hero-controls-mobile .hero-menu-toggle {
  transform: translateY(5px);
}

.hero-menu-toggle {
  display: none;
}

/* 手机版：菜单按钮样式 */
body.terminal-mobile .hero-controls-mobile .hero-menu-toggle .icon-bar,
body:not(.terminal-desktop) .hero-controls-mobile .hero-menu-toggle .icon-bar {
  width: 38px !important;
  height: 4px !important;
  margin: 0 auto !important;
}

/* 手机版：显示补贴按钮 */
body.terminal-mobile .hero-controls-mobile .subsidy-btn,
body:not(.terminal-desktop) .hero-controls-mobile .subsidy-btn {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 补贴AI算力按钮 */
.subsidy-btn {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--fg);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.15);
  position: relative;
  z-index: 300;
}

/* 手机版：确保补贴按钮在hero-card之上 */
body.terminal-mobile .subsidy-btn {
  z-index: 10001 !important;
}

.subsidy-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.25);
}

body.light-theme .subsidy-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.light-theme .subsidy-btn:hover {
  background: #ffffff;
  border-color: rgba(10, 132, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 补贴AI算力对话框 */
.subsidy-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.subsidy-modal.hidden {
  display: none;
}

.subsidy-modal.open {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.subsidy-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  max-width: 90%;
  max-height: 85vh;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.subsidy-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subsidy-modal-close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--fg);
}

body.light-theme .subsidy-modal-close {
  color: #5f6b7a;
}

body.light-theme .subsidy-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

.subsidy-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subsidy-modal-text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--fg);
  text-align: center;
}

body.light-theme .subsidy-modal-text {
  color: #1d1d1f;
}

.subsidy-modal-image {
  text-align: center;
  margin-top: 0.5rem;
}

.subsidy-modal-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.2);
}

body.light-theme .subsidy-modal-image img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tea-preview-modal .subsidy-modal-content {
  max-width: min(92vw, 680px);
  max-height: 92vh;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.tea-preview-modal .subsidy-modal-body {
  padding: 0;
  overflow: visible;
}

.tea-preview-modal .subsidy-modal-image {
  margin: 0;
}

.tea-preview-modal .subsidy-modal-image img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  border-radius: 0.85rem;
}

.tea-preview-modal .subsidy-modal-close {
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
}

.tea-preview-modal .subsidy-modal-close:hover {
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
}

/* 桌面版：显示桌面版按钮，隐藏菜单按钮和补贴按钮 */
.hero-controls-desktop {
  display: none;
}

body.terminal-desktop .hero-controls {
  width: 100%;
  align-items: stretch;
}

body.terminal-desktop .hero-controls-desktop {
  display: flex !important;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

/* 桌面版：隐藏菜单按钮和补贴按钮 */
body.terminal-desktop .hero-menu-toggle,
html.terminal-desktop .hero-menu-toggle {
  display: none !important;
}

body.terminal-desktop .subsidy-btn,
html.terminal-desktop .subsidy-btn {
  display: none !important;
}

@media (min-width: 960px) {
  body.terminal-desktop .hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.92fr);
    gap: 1.5rem;
  }
  body.terminal-desktop .hero-controls-desktop {
    align-items: stretch;
  }
}

/* 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(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.1vw, 2.55rem);
}

.sub {
  margin: 0.5rem 0 0;
  color: #7b7b80;
  max-width: none;
  font-size: 1rem;
}

body.light-theme .sub {
  color: #5f636b;
  font-weight: 500;
}

.sub-feature-inline {
  position: absolute;
  top: calc(100% + 1.45rem);
  right: 0;
  display: inline-flex;
  justify-content: flex-end;
  z-index: 740;
}

body.terminal-desktop .sub-feature-inline {
  display: none !important;
}

.feature-shortcut-trigger {
  appearance: none;
  border: 1px solid rgba(159, 18, 57, 0.18);
  background: linear-gradient(180deg, #c41230 0%, #9f1239 100%);
  color: #fff;
  border-radius: 999px;
  padding: 0.48rem 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(196, 18, 48, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.feature-shortcut-trigger:hover,
.feature-shortcut-trigger[aria-expanded="true"] {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(196, 18, 48, 0.32);
  filter: saturate(1.06);
}

.feature-shortcut-trigger:focus-visible,
.feature-shortcut-close:focus-visible,
.feature-shortcut-card:focus-visible {
  outline: 2px solid color-mix(in srgb, #c41230 72%, white 28%);
  outline-offset: 2px;
}

.feature-shortcut-trigger-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.15);
  flex: 0 0 auto;
}

.feature-shortcut-popover {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  width: min(20.5rem, calc(100vw - 3rem));
  padding: 0.9rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-top: 4px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
  z-index: 720;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.feature-shortcut-popover::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  right: 1.3rem;
  width: 0.9rem;
  height: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.985);
  transform: rotate(45deg);
}

.feature-shortcut-popover.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.feature-shortcut-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-shortcut-popover-kicker {
  color: #c41230;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.feature-shortcut-popover-title {
  margin-top: 0.2rem;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.feature-shortcut-close {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
  color: #c41230;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.feature-shortcut-popover-grid {
  display: grid;
  gap: 0.68rem;
}

.feature-shortcut-card {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  padding: 0.88rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #111827;
  display: grid;
  gap: 0.22rem;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  position: relative;
}

.feature-shortcut-card:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 213, 225, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.feature-shortcut-card::after {
  content: ">";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #c41230;
  font-size: 1rem;
  font-weight: 800;
  opacity: 0.72;
}

.feature-shortcut-card-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.96);
  color: #c41230;
  font-size: 0.72rem;
  font-weight: 700;
}

.feature-shortcut-card-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.feature-shortcut-card-desc {
  color: #4b5563;
  font-size: 0.82rem;
  line-height: 1.45;
  padding-right: 1.2rem;
}

body:not(.terminal-desktop) .desktop-klinechat-panel {
  display: none !important;
}

body.light-theme .feature-shortcut-trigger {
  border-color: rgba(159, 18, 57, 0.18);
  box-shadow: 0 12px 28px rgba(196, 18, 48, 0.24);
}

body.light-theme .feature-shortcut-trigger:hover,
body.light-theme .feature-shortcut-trigger[aria-expanded="true"] {
  box-shadow: 0 18px 34px rgba(196, 18, 48, 0.3);
}

body.light-theme .feature-shortcut-popover {
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

body.light-theme .feature-shortcut-popover::before {
  background: rgba(255, 255, 255, 0.985);
  border-color: rgba(148, 163, 184, 0.22);
}

body.light-theme .feature-shortcut-popover-title {
  color: #111827;
}

body.light-theme .feature-shortcut-close {
  border-color: rgba(148, 163, 184, 0.22);
  background: #ffffff;
  color: #c41230;
}

body.light-theme .feature-shortcut-card {
  border-color: rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #111827;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
}

body.light-theme .feature-shortcut-card:hover {
  border-color: rgba(203, 213, 225, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

body.light-theme .feature-shortcut-card-tag {
  background: rgba(241, 245, 249, 0.96);
  color: #c41230;
}

body.light-theme .feature-shortcut-card-desc {
  color: #4b5563;
}

body.terminal-desktop .desktop-command-board {
  width: 100%;
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(135deg, rgba(196, 18, 48, 0.12), rgba(15, 23, 42, 0.22)), rgba(7, 11, 23, 0.56);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.32);
}

body.terminal-desktop .desktop-command-board-head {
  display: grid;
  gap: 0.35rem;
}

body.terminal-desktop .desktop-command-board-kicker {
  color: #ffd7df;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

body.terminal-desktop .desktop-command-board-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

body.terminal-desktop .desktop-command-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

body.terminal-desktop .desktop-shortcut-card {
  min-height: 100%;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.62);
  color: var(--fg);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

body.terminal-desktop .desktop-shortcut-card:hover {
  border-color: rgba(56, 189, 248, 0.26);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.3);
}

body.terminal-desktop .desktop-shortcut-card::after {
  color: rgba(255, 255, 255, 0.52);
}

body.terminal-desktop .desktop-shortcut-card .feature-shortcut-card-tag {
  background: rgba(196, 18, 48, 0.14);
  color: #ffe6ea;
}

body.terminal-desktop .desktop-shortcut-card .feature-shortcut-card-desc {
  color: rgba(226, 232, 240, 0.78);
}

body.light-theme.terminal-desktop .desktop-command-board {
  border-color: rgba(196, 18, 48, 0.12);
  background: linear-gradient(135deg, rgba(196, 18, 48, 0.08), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

body.light-theme.terminal-desktop .desktop-command-board-kicker {
  color: #9f1239;
}

body.light-theme.terminal-desktop .desktop-command-board-title {
  color: #111827;
}

body.light-theme.terminal-desktop .desktop-shortcut-card {
  border-color: rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #111827;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
}

body.light-theme.terminal-desktop .desktop-shortcut-card:hover {
  border-color: rgba(203, 213, 225, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

body.light-theme.terminal-desktop .desktop-shortcut-card .feature-shortcut-card-tag {
  background: rgba(241, 245, 249, 0.96);
  color: #c41230;
}

body.light-theme.terminal-desktop .desktop-shortcut-card .feature-shortcut-card-desc {
  color: #4b5563;
}

@media (max-width: 1160px) {
  body.terminal-desktop .desktop-command-board-grid {
    grid-template-columns: 1fr;
  }
}

body.terminal-desktop .desktop-klinechat-panel-copy {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

body.terminal-desktop .desktop-klinechat-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

body.terminal-desktop .desktop-panel-shortcut {
  min-height: 164px;
}

@media (max-width: 1160px) {
  body.terminal-desktop .desktop-klinechat-panel-grid {
    grid-template-columns: 1fr;
  }
}

body.terminal-mobile .hero-controls-mobile,
body:not(.terminal-desktop) .hero-controls-mobile {
  position: relative;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0;
}

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

.hero-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
}


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;
}

.hero-card {
  padding: 0.7rem 1.3rem;
}

/* 手机版：覆盖.card的z-index，确保hero-card在最上层 */
body.terminal-mobile .card.hero-card,
body.terminal-mobile header.hero.card {
  z-index: 500 !important;
  position: relative !important;
}

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

  .hero-card {
    padding: 0.8rem 1.45rem;
  }
}

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

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

.card h2 {
  font-size: clamp(1.22rem, 1.6vw, 1.38rem);
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.28;
  color: var(--fg);
}

.card h3 {
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.subsection-divider {
  height: 1px;
  width: 100%;
  background: rgba(148, 163, 184, 0.14);
  margin: 0.9rem 0 0.7rem;
}

body.light-theme .subsection-divider {
  background: rgba(0, 0, 0, 0.04);
}

/* 主力运作痕迹：标题与列表间距 + 纵向滚动（约 10 行可视） */
#mainForceContent {
  margin-top: 0.9rem;
  max-height: min(520px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#mainForceHistoryContent .table-scroll {
  max-height: min(520px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#mainForceContent .toplist-table th,
#mainForceHistoryContent .toplist-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

#mainForceContent .toplist-table th:first-child,
#mainForceHistoryContent .toplist-table th:first-child {
  z-index: 6;
}
.card-header h2 .title-sub {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--accent);
  margin-left: 0.35rem;
  white-space: nowrap;
}
#newsAnalysisCard h2 {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}
#newsAnalysisContent {
  margin-top: 0.4rem;
}
#newsAnalysisCard .card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  min-height: 2.2rem;
  margin-bottom: 0;
}
#newsAnalysisCard .card-header > div:last-child {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}
#newsAnalysisCard .news-pane-switch {
  transform: none;
  flex: 0 0 auto;
}
#newsAnalysisCard .card-header h2 {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  text-align: left;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}
.news-pane-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem;
  transform: translateY(-3px);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.news-pane-btn {
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.92);
  border-radius: 10px;
  min-height: 2rem;
  min-width: 3.45rem;
  padding: 0.35rem 1rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.news-pane-btn:hover {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.22);
}
.news-pane-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #22c1ff 0%, #0071e3 70%);
  box-shadow: 0 8px 16px rgba(10, 132, 255, 0.28);
}
body.light-theme .news-pane-switch {
  border-color: rgba(15, 23, 42, 0.12);
  background: #eef2f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
body.light-theme .news-pane-btn {
  color: #5b6474;
}
body.light-theme .news-pane-btn:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}
body.light-theme .news-pane-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #1fa8ff 0%, #1478ff 72%);
  box-shadow: 0 8px 16px rgba(20, 120, 255, 0.24);
}
.news-admin-actions,
.roundtable-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: -0.2rem 0 0.2rem;
}
.news-admin-actions.hidden,
.roundtable-admin-actions.hidden {
  display: none;
}
#aipkRoundtableContent {
  margin-top: 0.35rem;
}
#aipkRoundtableContent .sentiment-content .cn-section-title {
  font-size: 1.22rem;
  font-weight: 760;
  line-height: 1.35;
  margin: 0.72rem 0 0.38rem;
}
.roundtable-more-wrap {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}
.roundtable-more-toggle {
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  border: 1px solid rgba(59, 130, 246, 0.42);
  background: rgba(37, 99, 235, 0.1);
  color: #dbeafe;
  border-radius: 0.8rem;
  padding: 0.52rem 0.8rem;
  font-size: 0.96rem;
  line-height: 1.3;
  font-weight: 760;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.roundtable-more-toggle::after {
  content: '▸';
  font-size: 0.9em;
  opacity: 0.95;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}
.roundtable-more-toggle[aria-expanded='true']::after {
  transform: rotate(90deg);
}
.roundtable-more-toggle:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.7);
  outline-offset: 2px;
}
.roundtable-more-toggle:hover {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(37, 99, 235, 0.2);
}
.roundtable-more-content {
  margin-top: 0.55rem;
}
body.light-theme .roundtable-more-wrap {
  border-top-color: rgba(15, 23, 42, 0.18);
}
body.light-theme .roundtable-more-toggle {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.32);
}
body.light-theme .roundtable-more-toggle:hover {
  background: rgba(37, 99, 235, 0.16);
}
#davpkCard .davpk-tab-panel.hidden {
  display: none;
}
#davpkCard .davpk-tab-panel {
  margin-top: 0;
}
#davpkCard .davpk-panel .card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  min-height: 2.2rem;
  margin-bottom: 0;
}
#davpkCard .davpk-panel .card-header > div:last-child {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}
#davpkCard .davpk-panel .davpk-title-wrap {
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  overflow: hidden;
}
#davpkCard .davpk-panel .card-header h2 {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0;
  text-align: left;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#davpkCard .davpk-panel .card-header h2 .title-sub {
  display: inline-block;
  line-height: 1.1;
  margin-left: 0;
}
#davpkCard .aipk-title-inline-note {
  display: none !important;
}
#davpkCard .davpk-pane-switch {
  transform: none;
  flex: 0 0 auto;
}
#sentimentCard .sentiment-pane-switch {
  transform: none;
  flex: 0 0 auto;
}
#sentimentCard .card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  min-height: 2.2rem;
  margin-bottom: 0;
}
#sentimentCard .card-header > div:last-child {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}
#sentimentCard .sentiment-title-wrap {
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  overflow: hidden;
}
#sentimentCard .sentiment-title-wrap h2 {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  text-align: left;
  line-height: 1.1;
  width: 100%;
  min-width: 0;
}
#sentimentCard .sentiment-title-wrap h2 .sentiment-title-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#sentimentCard [data-sentiment-pane].hidden {
  display: none;
}
#sentimentCard .sentiment-tab-panel {
  margin-top: 0.6rem;
}
#sentimentCard [data-sentiment-pane='sentiment'],
#sentimentCard [data-sentiment-pane='trend'] {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
  padding: 0.8rem 1rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.32);
}
body.light-theme #sentimentCard [data-sentiment-pane='sentiment'],
body.light-theme #sentimentCard [data-sentiment-pane='trend'] {
  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);
}
#sentimentCard [data-sentiment-pane='sentiment'] .sentiment-main:not(.skeleton-card) {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  min-height: 0;
}
body.light-theme #sentimentCard [data-sentiment-pane='sentiment'] .sentiment-main:not(.skeleton-card) {
  background: transparent;
  border: none;
  box-shadow: none;
}
.aipk-title-inline-note {
  margin-left: 0.35rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}
.davpk-ai {
  margin-bottom: 0.85rem;
}
#davpkCard .davpk-ai #aipkContent,
#davpkCard .davpk-ai #aipkRoundtableContent {
  margin-top: 0.6rem;
}
#davpkCard .davpk-panel {
  margin-top: 0;
}
#unusualCard .card-header {
  margin-bottom: 0.85rem;
}
#hotlistCard .unusual-hotlist-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  min-height: 2.2rem;
  margin-bottom: 0;
}
#hotlistCard .unusual-hotlist-switch {
  transform: none;
  flex: 0 0 auto;
}
#hotlistCard .unusual-hotlist-title-wrap {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  overflow: hidden;
}
#hotlistCard .unusual-hotlist-title {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  text-align: left;
  line-height: 1.1;
  width: 100%;
  min-width: 0;
}
#hotlistCard .unusual-hotlist-title #unusualHotlistTitleText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#hotlistCard .unusual-hotlist-title .title-sub,
#hotlistCard .unusual-hotlist-title .pill-note {
  display: inline-block;
  line-height: 1.1;
  margin-left: 0;
}
#hotlistCard .unusual-hotlist-panel {
  margin-top: 0.6rem;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
#hotlistCard [data-unusual-hotlist-pane] {
  margin-top: 0.6rem;
}
#hotlistCard,
#hotlistCard.card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--shadow-strong) !important;
  backdrop-filter: blur(20px) !important;
}
#hotlistCard::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;
}
#hotlistCard [data-unusual-hotlist-pane='hype'],
#hotlistCard [data-unusual-hotlist-pane='hotlist'] {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
#hotlistCard [data-unusual-hotlist-pane='hype'] > #hypeFocusCard,
#hotlistCard [data-unusual-hotlist-pane='hotlist'] > #hotlistGrid {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
#hotlistCard [data-unusual-hotlist-pane='hype'] .table-scroll,
#hotlistCard [data-unusual-hotlist-pane='hotlist'] .table-scroll {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-bottom: 0 !important;
}
#hotlistCard .unusual-hotlist-panel.hidden {
  display: none;
}
#hotlistCard .hype-panel,
#hotlistCard .hotlist-panel,
#hotlistCard .unusual-column,
#hotlistCard .baolei-item,
#hotlistCard .baolei-summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.72rem;
  padding: 0.85rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}
body.light-theme #hotlistCard .hype-panel,
body.light-theme #hotlistCard .hotlist-panel,
body.light-theme #hotlistCard .unusual-column,
body.light-theme #hotlistCard .baolei-item,
body.light-theme #hotlistCard .baolei-summary-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
#hotlistCard .hotlist-panel.hotlist-panel--plain {
  padding-top: 0.85rem;
}
#hotlistCard .hotlist-grid,
#hotlistCard .unusual-grid {
  margin-top: 0;
}
#hotlistCard .baolei-risk-grid {
  margin-top: 0;
  display: grid;
  gap: 0.95rem;
}
#hotlistCard .baolei-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}
#hotlistCard .baolei-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}
#hotlistCard .baolei-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
#hotlistCard .baolei-summary-label {
  font-size: 0.78rem;
  color: var(--muted);
}
#hotlistCard .baolei-summary-download {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  min-height: 1.9rem;
  padding: 0;
  border-radius: 0.46rem;
  border: 1px solid rgba(125, 211, 129, 0.22);
  background: rgba(18, 66, 25, 0.28);
  color: #eefbf0;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
#hotlistCard .baolei-summary-download svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
#hotlistCard .baolei-summary-download:hover {
  transform: translateY(-1px);
  background: rgba(29, 91, 43, 0.38);
}
#hotlistCard .baolei-summary-download:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
body.light-theme #hotlistCard .baolei-summary-download {
  background: rgba(231, 244, 232, 0.96);
  color: #1d5b2b;
  border-color: rgba(29, 91, 43, 0.14);
}
body.light-theme #hotlistCard .baolei-summary-download:hover {
  background: rgba(215, 236, 217, 0.98);
}
#hotlistCard .baolei-summary-value {
  font-size: 1.35rem;
  line-height: 1;
  color: #d8f6db;
}
body.light-theme #hotlistCard .baolei-summary-value {
  color: #0b5d1e;
}
#hotlistCard .baolei-summary-sub {
  font-size: 0.76rem;
  color: var(--muted);
}
#hotlistCard .baolei-note {
  padding: 0.7rem 0.85rem;
  border-radius: 0.68rem;
  background: rgba(11, 93, 30, 0.16);
  color: #d6f5db;
  border: 1px solid rgba(125, 211, 129, 0.25);
}
body.light-theme #hotlistCard .baolei-note {
  background: rgba(165, 214, 167, 0.32);
  color: #15441f;
}
#hotlistCard .baolei-note--helper {
  background: rgba(8, 42, 17, 0.42);
  color: #e7f6e9;
  border-color: rgba(125, 211, 129, 0.16);
}
body.light-theme #hotlistCard .baolei-note--helper {
  background: rgba(216, 236, 217, 0.86);
  color: #1a4d27;
  border-color: rgba(29, 91, 43, 0.12);
}
#hotlistCard .baolei-query-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border-radius: 0.72rem;
  background: rgba(11, 93, 30, 0.1);
  border: 1px solid rgba(125, 211, 129, 0.18);
}
body.light-theme #hotlistCard .baolei-query-card {
  background: rgba(165, 214, 167, 0.18);
  border-color: rgba(15, 23, 42, 0.08);
}
#hotlistCard .baolei-query-input-row {
  display: grid;
  gap: 0.65rem;
}
#hotlistCard .baolei-query-input {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  border-radius: 0.65rem;
  border: 1px solid rgba(125, 211, 129, 0.22);
  background: rgba(7, 24, 11, 0.36);
  color: var(--fg);
  padding: 0.78rem 0.9rem;
  font: inherit;
  line-height: 1.55;
}
body.light-theme #hotlistCard .baolei-query-input {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  color: #102317;
}
#hotlistCard .baolei-query-input::placeholder {
  color: var(--muted);
}
#hotlistCard .baolei-query-token-meta {
  margin-top: -0.1rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}
#hotlistCard .baolei-query-token-meta--inline {
  margin-top: 0;
  display: inline-flex;
  align-items: flex-end;
  min-height: 2.25rem;
  line-height: 1.2;
  white-space: nowrap;
}
#hotlistCard .baolei-query-token-warning {
  color: #f6d365;
}
body.light-theme #hotlistCard .baolei-query-token-warning {
  color: #9a3412;
}
#hotlistCard .baolei-query-file-input {
  display: none;
}
#hotlistCard .baolei-query-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-end;
}
#hotlistCard .baolei-query-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  border: 1px solid rgba(111, 207, 124, 0.24);
  border-radius: 0.72rem;
  background: linear-gradient(180deg, #0f6d25 0%, #0b5d1e 100%);
  color: #effff1;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 140ms ease;
}
#hotlistCard .baolei-query-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(2, 6, 23, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
#hotlistCard .baolei-query-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(2, 6, 23, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#hotlistCard .baolei-query-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  filter: saturate(0.7);
}
#hotlistCard .baolei-query-btn--ghost {
  background: rgba(18, 66, 25, 0.28);
  color: #eefbf0;
  border-color: rgba(125, 211, 129, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.light-theme #hotlistCard .baolei-query-btn--ghost {
  background: rgba(231, 244, 232, 0.96);
  color: #1d5b2b;
  border-color: rgba(29, 91, 43, 0.16);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}
#hotlistCard .baolei-query-hint,
#hotlistCard .baolei-query-lock-text,
#hotlistCard .baolei-query-miss {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}
#hotlistCard .baolei-query-status {
  font-size: 0.8rem;
  line-height: 1.5;
}
#hotlistCard .baolei-query-status--success {
  color: #dff5df;
}
#hotlistCard .baolei-query-status--error {
  color: #f9d1d1;
}
#hotlistCard .baolei-query-status--info,
#hotlistCard .baolei-query-status--muted {
  color: var(--muted);
}
body.light-theme #hotlistCard .baolei-query-status--success {
  color: #1d5b2b;
}
body.light-theme #hotlistCard .baolei-query-status--error {
  color: #a11d1d;
}
#hotlistCard .baolei-query-lock {
  display: grid;
  gap: 0.35rem;
}
#hotlistCard .baolei-query-lock-title,
#hotlistCard .baolei-query-result-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
}
#hotlistCard .baolei-query-result {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem 0.85rem;
  border-radius: 0.68rem;
  border: 1px solid rgba(125, 211, 129, 0.16);
  background: rgba(255, 255, 255, 0.03);
}
#hotlistCard .baolei-query-result--ok {
  background: rgba(97, 166, 94, 0.14);
}
#hotlistCard .baolei-query-result--risk {
  background: rgba(11, 93, 30, 0.12);
}
#hotlistCard .baolei-query-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
#hotlistCard .baolei-query-summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 0.62rem;
  background: rgba(41, 99, 51, 0.28);
  border: 1px solid rgba(111, 207, 124, 0.18);
  color: #eefbf0;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}
body.light-theme #hotlistCard .baolei-query-summary-chip {
  background: rgba(221, 239, 222, 0.95);
  border-color: rgba(29, 91, 43, 0.12);
  color: #1d5b2b;
}
#hotlistCard .baolei-query-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
#hotlistCard .baolei-section {
  display: grid;
  gap: 0.7rem;
}
#hotlistCard .baolei-tabs {
  margin: 0.1rem 0 0.2rem;
  border-bottom-color: rgba(125, 211, 129, 0.14);
}
#hotlistCard .baolei-tab {
  color: rgba(226, 244, 228, 0.76);
  border-bottom-width: 2px;
}
#hotlistCard .baolei-tab:hover {
  color: #effff1;
}
#hotlistCard .baolei-tab.active {
  color: #b7efc2;
  border-bottom-color: #58b66b;
}
body.light-theme #hotlistCard .baolei-tabs {
  border-bottom-color: rgba(29, 91, 43, 0.12);
}
body.light-theme #hotlistCard .baolei-tab {
  color: rgba(29, 91, 43, 0.72);
}
body.light-theme #hotlistCard .baolei-tab:hover {
  color: #174c23;
}
body.light-theme #hotlistCard .baolei-tab.active {
  color: #0b5d1e;
  border-bottom-color: #1f7a35;
}
#hotlistCard .baolei-section--tabbed {
  gap: 0.55rem;
}
#hotlistCard .baolei-section-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.38rem;
}
#hotlistCard .baolei-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}
#hotlistCard .baolei-section-sub {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: left;
  line-height: 1.35;
}
#hotlistCard .baolei-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
#hotlistCard .baolei-list--focus {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#hotlistCard .baolei-item {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}
#hotlistCard .baolei-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}
#hotlistCard .baolei-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
#hotlistCard .baolei-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}
#hotlistCard .baolei-code {
  font-size: 0.8rem;
  color: var(--muted);
}
#hotlistCard .baolei-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
#hotlistCard .baolei-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.52rem;
  border-radius: 0.62rem;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}
#hotlistCard .baolei-badge--new {
  background: rgba(11, 93, 30, 0.32);
  border-color: rgba(111, 207, 124, 0.18);
  color: #effff1;
}
#hotlistCard .baolei-badge--up {
  background: rgba(34, 107, 44, 0.28);
  border-color: rgba(125, 211, 129, 0.16);
  color: #eefbf0;
}
#hotlistCard .baolei-badge--flat {
  background: rgba(59, 112, 62, 0.26);
  border-color: rgba(125, 211, 129, 0.16);
  color: #eff9f0;
}
#hotlistCard .baolei-group-chip--potential {
  background: rgba(8, 55, 18, 0.42);
  border-color: rgba(111, 207, 124, 0.16);
  color: #f1fff3;
}
#hotlistCard .baolei-group-chip--st {
  background: rgba(47, 97, 51, 0.34);
  border-color: rgba(125, 211, 129, 0.14);
  color: #effbf1;
}
#hotlistCard .baolei-section-chip--hard {
  background: rgba(19, 73, 28, 0.4);
  border-color: rgba(111, 207, 124, 0.14);
  color: #effff1;
}
#hotlistCard .baolei-section-chip--earnings {
  background: rgba(34, 107, 44, 0.28);
  border-color: rgba(125, 211, 129, 0.14);
  color: #edf9ef;
}
#hotlistCard .baolei-section-chip--capital {
  background: rgba(44, 91, 47, 0.3);
  border-color: rgba(125, 211, 129, 0.14);
  color: #effff1;
}
#hotlistCard .baolei-section-chip--disclosure {
  background: rgba(57, 104, 60, 0.28);
  border-color: rgba(125, 211, 129, 0.14);
  color: #eefaf0;
}
#hotlistCard .baolei-badge--possible-strong {
  background: rgba(9, 74, 24, 0.48);
  border-color: rgba(111, 207, 124, 0.2);
  color: #f3fff4;
}
#hotlistCard .baolei-badge--possible-mid {
  background: rgba(26, 92, 36, 0.38);
  border-color: rgba(125, 211, 129, 0.18);
  color: #f1fff3;
}
#hotlistCard .baolei-badge--possible-watch {
  background: rgba(46, 98, 52, 0.28);
  border-color: rgba(125, 211, 129, 0.16);
  color: #effaf0;
}
#hotlistCard .baolei-level-chip--high {
  background: #0b5d1e;
  border-color: rgba(111, 207, 124, 0.18);
  color: #effff1;
}
#hotlistCard .baolei-level-chip--higher {
  background: #2f7d32;
  border-color: rgba(125, 211, 129, 0.18);
  color: #effff1;
}
#hotlistCard .baolei-level-chip--medium {
  background: #4f9150;
  border-color: rgba(125, 211, 129, 0.18);
  color: #f6fff7;
}
#hotlistCard .baolei-level-chip--watch {
  background: #356f39;
  border-color: rgba(125, 211, 129, 0.18);
  color: #f3fff4;
}
body.light-theme #hotlistCard .baolei-badge--new,
body.light-theme #hotlistCard .baolei-badge--up,
body.light-theme #hotlistCard .baolei-badge--flat,
body.light-theme #hotlistCard .baolei-group-chip--potential,
body.light-theme #hotlistCard .baolei-group-chip--st,
body.light-theme #hotlistCard .baolei-section-chip--hard,
body.light-theme #hotlistCard .baolei-section-chip--earnings,
body.light-theme #hotlistCard .baolei-section-chip--capital,
body.light-theme #hotlistCard .baolei-section-chip--disclosure,
body.light-theme #hotlistCard .baolei-badge--possible-strong,
body.light-theme #hotlistCard .baolei-badge--possible-mid,
body.light-theme #hotlistCard .baolei-badge--possible-watch,
body.light-theme #hotlistCard .baolei-level-chip--high,
body.light-theme #hotlistCard .baolei-level-chip--higher,
body.light-theme #hotlistCard .baolei-level-chip--medium,
body.light-theme #hotlistCard .baolei-level-chip--watch {
  background: rgba(224, 239, 225, 0.96);
  color: #174c23;
  border-color: rgba(29, 91, 43, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
#hotlistCard .baolei-score-box {
  flex: 0 0 auto;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  max-width: 11rem;
}
#hotlistCard .baolei-score-line {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
}
#hotlistCard .baolei-score-label,
#hotlistCard .baolei-score-diff,
#hotlistCard .baolei-meta-row {
  font-size: 0.76rem;
  color: var(--muted);
}
#hotlistCard .baolei-score-label {
  white-space: nowrap;
}
#hotlistCard .baolei-score-diff {
  white-space: nowrap;
}
#hotlistCard .baolei-score {
  font-size: 1.2rem;
  line-height: 1;
  color: #d9f7dd;
}
body.light-theme #hotlistCard .baolei-score {
  color: #0b5d1e;
}
#hotlistCard .baolei-primary {
  font-size: 0.86rem;
  color: #b8eac0;
}
body.light-theme #hotlistCard .baolei-primary {
  color: #1d5b2b;
}
#hotlistCard .baolei-latest {
  font-size: 0.84rem;
  color: var(--fg);
  line-height: 1.55;
}
#hotlistCard .baolei-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
#hotlistCard .baolei-date {
  font-weight: 700;
  color: var(--fg);
}
body.light-theme #hotlistCard .baolei-date {
  color: #174c23;
}
#hotlistCard .baolei-item--compact .baolei-latest {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 960px) {
  #hotlistCard .baolei-summary-strip,
  #hotlistCard .baolei-list,
  #hotlistCard .baolei-list--focus,
  #hotlistCard .baolei-query-result-list {
    grid-template-columns: 1fr;
  }
}
#hotlistCard [data-unusual-hotlist-pane='hype'] #hypeGrid {
  margin-top: 0;
}
#hotlistCard #hypeFocusCard.hype-focus-card {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
#hotlistCard .hype-panel-title,
#hotlistCard .hotlist-title,
#hotlistCard .unusual-title {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0;
}
#hypeFocusCard h2 {
  margin-bottom: 0.6rem;
}
.hotlist-meta {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.hotlist-grid {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  margin-top: 0.4rem;
}
.hotlist-panel {
  flex: 0 0 auto;
  width: max-content;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-strong);
}
.hotlist-panel.skeleton-card {
  width: 280px;
  min-width: 240px;
}
.hotlist-panel--plain {
  padding-top: 1.2rem;
}
body.light-theme .hotlist-panel {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.hotlist-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.hotlist-panel--plain .hotlist-panel-head {
  margin-bottom: 0.9rem;
}
.hotlist-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--fg);
}
.hotlist-tabs {
  margin: 0;
  margin-left: auto;
  flex: 0 0 auto;
}
.hotlist-name {
  font-weight: 600;
}
.hotlist-table {
  min-width: 0;
  width: auto;
}
.hotlist-table th,
.hotlist-table td {
  padding: 0.35rem 0.45rem;
}
.hotlist-color-0 { color: #ef4444; }
.hotlist-color-1 { color: #f59e0b; }
.hotlist-color-2 { color: #22c55e; }
.hotlist-color-3 { color: #14b8a6; }
.hotlist-color-4 { color: #e11d48; }
.hotlist-color-5 { color: #a855f7; }
.hotlist-color-6 { color: #3b82f6; }
.hotlist-color-7 { color: #6366f1; }
.hotlist-color-8 { color: #84cc16; }
body.light-theme .hotlist-color-0 { color: #dc2626; }
body.light-theme .hotlist-color-1 { color: #d97706; }
body.light-theme .hotlist-color-2 { color: #16a34a; }
body.light-theme .hotlist-color-3 { color: #0d9488; }
body.light-theme .hotlist-color-4 { color: #be123c; }
body.light-theme .hotlist-color-5 { color: #7c3aed; }
body.light-theme .hotlist-color-6 { color: #2563eb; }
body.light-theme .hotlist-color-7 { color: #4f46e5; }
body.light-theme .hotlist-color-8 { color: #65a30d; }
.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: #1d1d1f;
  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: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}
body.light-theme .param-help .help-bubble {
  background: #ffffff;
  color: #1d1d1f;
}
.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;
}
#feedbackForm {
  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; }

.feedback-textarea {
  width: 100%;
  min-height: 96px;
  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;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
body.light-theme .feedback-textarea { background: #ffffff; }
.contact-note-inline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.45rem;
}

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: #0071e3;
  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;
}

.ghost-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
  pointer-events: auto;
  box-shadow: none;
}

.ghost-btn.is-disabled:hover {
  border-color: var(--border);
  transform: none;
  box-shadow: none;
}

.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;
}

#marketEnvCard {
  margin-top: -0.08rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.18rem;
}
#sentimentCard {
  /* 与财经新闻解读等栏目保持一致的间距，移除特殊 margin-top */
}
@media (min-width: 768px) {
  #marketEnvCard {
    margin-top: -0.05rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.24rem;
  }
  #sentimentCard {
    /* 与财经新闻解读等栏目保持一致的间距 */
  }
}

@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;
  }
  .battle-card-container {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }
  .view-section {
    grid-column: span 12;
    height: 100%;
  }
  #marketEnvCard,
  #sentimentCard,
	  #toplistCard,
	  #stockToplistCard,
	  #emotionDataCard,
	  #adminPanel {
	    grid-column: span 12;
	  }
	}

@media (min-width: 1024px) {
  body.terminal-desktop #dashboard {
    grid-template-columns: minmax(380px, 0.84fr) minmax(0, 1.16fr);
    gap: 1rem 1.4rem;
  }
  body.terminal-desktop #viewNav {
    grid-column: 1 / -1;
    top: 0.75rem;
  }
  body.terminal-desktop .battle-card-container {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: sticky;
    top: 6.1rem;
  }
  body.terminal-desktop .view-section {
    grid-column: 2;
    min-width: 0;
    margin: 0;
  }
}

.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);
}

.unusual-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.unusual-right-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .unusual-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.unusual-column {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 0.85rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

body.light-theme .unusual-column {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.unusual-title {
  font-size: 1.32rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.unusual-row {
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}

.unusual-row:last-child {
  border-bottom: none;
}

.unusual-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}
.unusual-namewrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.unusual-name {
  font-weight: 700;
}

.unusual-change {
  font-weight: 700;
}
.unusual-meta {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
}
body:not(.light-theme) .unusual-meta {
  color: #e2e8f0;
}

.unusual-sub {
  display: flex;
  justify-content: flex-start;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.9);
}
.unusual-trigger {
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.unusual-badge {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  color: #fff;
  margin-right: 4px;
  position: relative;
  top: -1px;
}
.badge-today {
  background: linear-gradient(135deg, #f97316, #f25c05);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.22);
}
.badge-next {
  background: linear-gradient(135deg, #51a3ff, #2b7cd8);
  box-shadow: 0 4px 12px rgba(43, 124, 216, 0.2);
}
.badge-muted {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}
.unusual-trigger-text {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 700;
  margin-left: 2px;
  display: inline-flex;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
  white-space: normal;
}
body:not(.light-theme) .unusual-trigger-text {
  color: #e5e7eb;
}
.trigger-strong {
  color: #b42318;
}
.unusual-count {
  color: #d9480f;
  font-weight: 700;
}
.unusual-status-line {
  margin-top: 6px;
  font-size: 0.94rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}
body:not(.light-theme) .unusual-status-line {
  color: #e2e8f0;
}
.unusual-status-line .status-icon {
  font-size: 0.95rem;
  line-height: 1;
  align-self: center;
  position: relative;
  top: -2px;
}
.unusual-rule {
  margin-top: 4px;
}
.unusual-status-line .triggered {
  color: #e8590c;
  font-weight: 700;
}

.unusual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.unusual-table th,
.unusual-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  text-align: left;
}
.unusual-table td:first-child {
  font-weight: 700;
}
.unusual-table th:nth-child(n + 2),
.unusual-table td:nth-child(n + 2) {
  text-align: center;
}

.unusual-table thead th {
  color: #e2e8f0;
  font-weight: 800;
  position: sticky;
  top: 0;
  background: rgba(30, 41, 59, 0.96);
  z-index: 1;
  border-bottom: 1px solid rgba(226, 232, 240, 0.18);
}
body.light-theme .unusual-table thead th {
  background: #ffffff;
  color: #1d1d1f;
  border-bottom-color: rgba(148, 163, 184, 0.3);
}

.pct.pos { color: #d9480f; font-weight: 700; }
.pct.neg { color: #2f9e44; font-weight: 700; }
.pct.neu { color: #94a3b8; font-weight: 700; }

.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(0, 0, 0, 0.02);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.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: clamp(1.18rem, 1.6vw, 1.35rem);
  font-weight: 720;
  letter-spacing: -0.006em;
}

/* 调整雷达卡片内帮助浮窗位置，避免被遮挡或溢出 */
#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: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  backdrop-filter: none;
}
body.light-theme .env-card {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #0f172a;
  backdrop-filter: none;
}
body.light-theme .env-card-head { color: #1d1d1f; }
body.light-theme .env-card-head span { color: #6e6e73; }
body.light-theme .env-card-copy { color: #1d1d1f; }

.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.75rem 1.2rem;
}

.env-card-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.98rem;
  border-radius: 1rem;
  padding: 0.8rem 0.95rem;
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(56, 189, 248, 0.12));
  backdrop-filter: blur(18px) saturate(140%);
}
/* label 与值增强对比 */
.env-card-grid span {
  font-size: 0.92rem;
  color: rgba(212, 225, 255, 0.78);
  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;
}
.env-card-grid .mv-prob {
  font-size: 0.7em;
  opacity: 0.9;
  font-weight: 650;
}
.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 div {
  color: #1f2933;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(244, 247, 252, 0.96));
}
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; }
/* 提升“市场风格/仓位建议”可读性 */
.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 {
  margin: 0.4rem 0 0.2rem;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 0 0.15rem;
}
body.light-theme .env-card-meta {
  color: #424245;
}

@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: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}
.sentiment-columns > * {
  width: 100%;
  min-width: 0;
}
.sentiment-columns > .sentiment-report-placeholder,
.sentiment-columns > .sentiment-main.skeleton-card {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

.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;
}
.sentiment-main.skeleton-card.sentiment-report-placeholder {
  min-height: 280px;
}
body.light-theme .sentiment-main {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.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.95);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
  flex: 1;
  overflow: auto;
}
body.light-theme .sentiment-main .sentiment-content {
  color: #424245;
  font-weight: 560;
}
.sentiment-main .sentiment-content h1,
.sentiment-main .sentiment-content h2,
.sentiment-main .sentiment-content h3,
.sentiment-main .sentiment-content h4 {
  margin: 0.35rem 0 0.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.sentiment-main .sentiment-content h1,
.sentiment-main .sentiment-content h2 {
  font-size: 1.28rem;
}
.sentiment-main .sentiment-content h3 {
  font-size: 1.16rem;
}
.sentiment-main .sentiment-content h4 {
  font-size: 1.06rem;
}
.sentiment-main .sentiment-content.sentiment-report-content h2,
.sentiment-main .sentiment-content.sentiment-report-content h3,
.sentiment-main .sentiment-content.sentiment-report-content h4,
.llm-result .sentiment-content.sentiment-report-content h2,
.llm-result .sentiment-content.sentiment-report-content h3,
.llm-result .sentiment-content.sentiment-report-content h4 {
  font-weight: 900;
  line-height: 1.4;
}
.sentiment-main .sentiment-content.sentiment-report-content h2,
.llm-result .sentiment-content.sentiment-report-content h2 {
  font-size: 1.34rem;
}
.sentiment-main .sentiment-content.sentiment-report-content h3,
.llm-result .sentiment-content.sentiment-report-content h3 {
  font-size: 1.22rem;
}
.sentiment-main .sentiment-content.sentiment-report-content h4,
.llm-result .sentiment-content.sentiment-report-content h4 {
  font-size: 1.12rem;
}
.sentiment-main .sentiment-content p {
  margin: 0.4rem 0;
  font-size: 1.02rem;
}
.sentiment-main .sentiment-content ul,
.sentiment-main .sentiment-content ol {
  padding-left: 1.2rem;
  margin: 0.42rem 0 0.36rem;
  list-style-position: outside;
  list-style-type: disc;
}
.sentiment-main .sentiment-content ul ul,
.sentiment-main .sentiment-content ol ul {
  list-style-type: circle;
  margin-top: 0.25rem;
}
.sentiment-main .sentiment-content ol {
  list-style-type: decimal;
}
.sentiment-main .sentiment-content li {
  font-size: 1.02rem;
  font-weight: 560;
  line-height: 1.7;
}
.sentiment-main .sentiment-content li + li {
  margin-top: 0.18rem;
}
.sentiment-main .sentiment-content strong {
  font-weight: 780;
}
.sentiment-main .sentiment-content em {
  color: var(--accent);
  font-style: normal;
}

.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: #ffffff;
  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);
}

.davpk-up {
  color: #ef4444;
  font-weight: 700;
}

.davpk-down {
  color: #22c55e;
  font-weight: 700;
}

.davpk-flat {
  color: #f59e0b;
  font-weight: 700;
}

.davpk-top1 {
  color: #ef4444;
  font-weight: 700;
}

.davpk-top2 {
  color: #f59e0b;
  font-weight: 700;
}

.davpk-top3 {
  color: #3b82f6;
  font-weight: 700;
}

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

.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;
}

.data-download-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

#cycleTable.is-placeholder {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
body.light-theme #cycleTable.is-placeholder {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.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: #f5f5f7; color: #1d1d1f; }

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

.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: #f5f5f7;
}

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

/* 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(0, 0, 0, 0.02);
}

.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;
}

.admin-invite-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  color: var(--fg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.admin-badge.muted {
  color: var(--muted);
}

body.light-theme .admin-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.admin-delete-btn {
  border-color: rgba(248, 113, 113, 0.6);
  color: var(--danger);
}

body.light-theme .admin-delete-btn {
  border-color: rgba(248, 113, 113, 0.55);
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.08);
}

.admin-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-section {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.admin-section h4 {
  margin: 0;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.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.95rem !important;
  font-weight: 500 !important;
  color: var(--accent) !important;
  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.35rem 0 0.55rem;
  padding: 0.32rem 1.5rem 0.2rem;
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #c41230;
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 0.85rem;
  box-shadow: 0 4px 16px rgba(196, 18, 48, 0.25);
}
body.light-theme .tab-nav {
  background: #c41230;
  box-shadow: 0 4px 16px rgba(196, 18, 48, 0.25);
}


.nav-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.2rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
  position: relative;
  text-decoration: none;
}
.nav-btn:active { opacity: 0.75; }
body.light-theme .nav-btn {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.nav-btn:not(.active):hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}
body.light-theme .nav-btn:not(.active):hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.nav-btn.active {
  background: transparent;
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}
body.light-theme .nav-btn.active {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.9);
}
.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;
}

@media (min-width: 1024px) {
  body.terminal-desktop .tab-nav {
    margin: 0.1rem 0 0.15rem;
    padding: 0.9rem;
    gap: 0.7rem;
    flex-wrap: wrap;
    overflow: visible;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(7, 11, 23, 0.82);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.3);
    backdrop-filter: blur(20px);
  }
  body.light-theme.terminal-desktop .tab-nav {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(196, 18, 48, 0.1);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  }
  body.terminal-desktop .nav-btn {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(248, 250, 252, 0.84);
    padding: 0.72rem 0.95rem;
    font-size: 0.96rem;
    line-height: 1.15;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  }
  body.terminal-desktop .nav-btn::after {
    display: none;
  }
  body.terminal-desktop .nav-btn:not(.active):hover {
    color: #ffffff;
    border-bottom-color: transparent;
    border-color: rgba(56, 189, 248, 0.26);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
  }
  body.terminal-desktop .nav-btn.active {
    border-bottom-color: transparent;
    border-color: rgba(196, 18, 48, 0.18);
    background: linear-gradient(180deg, #c41230 0%, #9f1239 100%);
    box-shadow: 0 12px 24px rgba(196, 18, 48, 0.24);
  }
  body.light-theme.terminal-desktop .nav-btn {
    border-color: rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.9);
    color: #3f3f46;
  }
  body.light-theme.terminal-desktop .nav-btn:not(.active):hover {
    color: #111827;
    border-color: rgba(196, 18, 48, 0.18);
    background: #ffffff;
  }
}

.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::placeholder {
  color: rgba(248, 250, 252, 0.62);
}
.llm-input::-webkit-input-placeholder {
  color: rgba(248, 250, 252, 0.62);
}
.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::placeholder,
body.light-theme .llm-input::-webkit-input-placeholder {
  color: rgba(15, 23, 42, 0.45);
}
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);
}

/* Disabled buttons should look disabled (some mobile browsers are subtle otherwise). */
button[disabled],
.ghost-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
  pointer-events: none;
}

#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);
  line-height: 1.75;
}
#conceptAnalysisCard .llm-result {
  margin-top: 0.85rem;
}
/* 概念板块作战地图支持滚动 */
#conceptAnalysisContent {
  /* 手机版：调小显示区域 */
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
}
/* 概念板块分析历史支持滚动 */
#conceptAnalysisHistoryList {
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
}
#conceptAnalysisHistoryDisplay {
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.llm-result .sentiment-content {
  color: rgba(248, 250, 252, 0.95);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
}
.llm-result .sentiment-content h1,
.llm-result .sentiment-content h2,
.llm-result .sentiment-content h3,
.llm-result .sentiment-content h4 {
  margin: 0.35rem 0 0.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.llm-result .sentiment-content h1,
.llm-result .sentiment-content h2 {
  font-size: 1.28rem;
}
.llm-result .sentiment-content h3 {
  font-size: 1.16rem;
}
.llm-result .sentiment-content h4 {
  font-size: 1.06rem;
}
.llm-history .sentiment-content.sentiment-report-content h2,
.llm-history .sentiment-content.sentiment-report-content h3,
.llm-history .sentiment-content.sentiment-report-content h4 {
  font-weight: 900;
  line-height: 1.4;
}
.llm-history .sentiment-content.sentiment-report-content h2 {
  font-size: 1.34rem;
}
.llm-history .sentiment-content.sentiment-report-content h3 {
  font-size: 1.22rem;
}
.llm-history .sentiment-content.sentiment-report-content h4 {
  font-size: 1.12rem;
}
.llm-result .sentiment-content p {
  margin: 0.4rem 0;
  font-size: 1.02rem;
}
.llm-result .sentiment-content .davpk-section-title,
.llm-history .sentiment-content .davpk-section-title {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.llm-result .sentiment-content ul,
.llm-result .sentiment-content ol {
  padding-left: 0.8rem;
  margin: 0.42rem 0 0.36rem;
  list-style-position: outside;
  list-style-type: disc;
}
.llm-result .sentiment-content ul.davpk-index-grid,
.llm-history .sentiment-content ul.davpk-index-grid {
  list-style: none;
  padding-left: 0;
  margin: 0.45rem 0 0.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.6rem;
}
.llm-result .sentiment-content ul.davpk-index-grid li,
.llm-history .sentiment-content ul.davpk-index-grid li {
  margin: 0;
}
.llm-result .sentiment-content ul.davpk-cycle-inline,
.llm-history .sentiment-content ul.davpk-cycle-inline {
  list-style: none;
  padding-left: 0;
  margin: 0.35rem 0 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
}
.llm-result .sentiment-content ul.davpk-cycle-inline li,
.llm-history .sentiment-content ul.davpk-cycle-inline li {
  margin: 0;
}
.llm-result .sentiment-content .davpk-cycle-badge,
.llm-history .sentiment-content .davpk-cycle-badge {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  margin-right: 0.2rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  color: #fff;
}
.llm-result .sentiment-content .davpk-cycle-badge.davpk-cycle-ice,
.llm-history .sentiment-content .davpk-cycle-badge.davpk-cycle-ice {
  background: #16a34a;
  border-color: #16a34a;
}
.llm-result .sentiment-content .davpk-cycle-badge.davpk-cycle-recover,
.llm-history .sentiment-content .davpk-cycle-badge.davpk-cycle-recover {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}
.llm-result .sentiment-content .davpk-cycle-badge.davpk-cycle-diverge,
.llm-history .sentiment-content .davpk-cycle-badge.davpk-cycle-diverge {
  background: #22c55e;
  border-color: #22c55e;
}
.llm-result .sentiment-content .davpk-cycle-badge.davpk-cycle-peak,
.llm-history .sentiment-content .davpk-cycle-badge.davpk-cycle-peak {
  background: #ef4444;
  border-color: #ef4444;
}
.llm-result .sentiment-content .davpk-cycle-badge.davpk-cycle-retreat,
.llm-history .sentiment-content .davpk-cycle-badge.davpk-cycle-retreat {
  background: #22c55e;
  border-color: #22c55e;
}
.llm-result .sentiment-content .davpk-cycle-badge.davpk-cycle-flat,
.llm-history .sentiment-content .davpk-cycle-badge.davpk-cycle-flat {
  background: #f97316;
  border-color: #f97316;
}
.llm-result .sentiment-content ul ul,
.llm-result .sentiment-content ol ul {
  list-style-type: circle;
  margin-top: 0.25rem;
}
.llm-result .sentiment-content ol {
  list-style-type: decimal;
}
.llm-result .sentiment-content li {
  font-size: 1.02rem;
  font-weight: 560;
  line-height: 1.7;
}
.llm-result .sentiment-content li + li {
  margin-top: 0.18rem;
}
.llm-result .sentiment-content strong {
  font-weight: 780;
}
.llm-result .sentiment-content em {
  color: var(--accent);
  font-style: normal;
}

.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);
}

/* ===== K线问盘助手 ===== */
.klinechat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lucky-stock-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2px 0 4px;
  margin-bottom: 0.65rem;
}

.lucky-stock-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78%;
  max-width: 320px;
  padding: 0.95rem 2.1rem;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, #c53030 0%, #8b1c1c 55%, #5b0f0f 100%);
  background-size: 220% 220%;
  animation: lucky-btn-wave 2.4s ease-in-out infinite;
  animation-play-state: running;
  color: #fff4f3;
  font-weight: 850;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.45),
    0 6px 16px rgba(248, 113, 113, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease, filter 180ms ease, box-shadow 220ms ease;
  will-change: transform, filter, box-shadow;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.lucky-stock-btn.loading {
  cursor: wait;
  opacity: 0.82;
  filter: brightness(0.97);
}

.lucky-stock-btn.loading > span,
.lucky-stock-btn.loading .lucky-btn-loading-text {
  animation: lucky-loading-pulse 1s ease-in-out infinite;
}

.lucky-stock-btn.show-result {
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.45),
    0 6px 16px rgba(248, 113, 113, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 1;
  filter: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #c53030 0%, #8b1c1c 55%, #5b0f0f 100%);
  background-size: 220% 220%;
  animation: lucky-btn-wave 2.4s ease-in-out infinite;
  transform: skewX(-8deg);
}

.lucky-stock-btn.show-result > span {
  transform: skewX(8deg);
}

.lucky-stock-btn > span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lucky-stock-btn > span::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 58%);
  transform: scale(0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.lucky-stock-btn.clicked {
  animation: lucky-press 440ms cubic-bezier(0.3, 0.9, 0.4, 1.1) 1, lucky-btn-wave 2.4s ease-in-out infinite;
}

.lucky-stock-btn.clicked > span::after {
  animation: lucky-ripple 480ms ease-out 1;
}

.lucky-stock-btn::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: radial-gradient(circle at 28% 34%, rgba(248, 113, 113, 0.42), transparent 60%),
    radial-gradient(circle at 72% 72%, rgba(127, 29, 29, 0.5), transparent 58%);
  filter: blur(12px);
  opacity: 0.7;
  animation: lucky-glow 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.lucky-stock-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.35) 42%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  background-size: 260% 180%;
  transform: translateX(-140%) skewX(-16deg);
  animation: lucky-shimmer 2.9s ease-in-out infinite;
  opacity: 0.58;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.lucky-stock-btn.show-result::after {
  opacity: 0.62;
  animation: lucky-shimmer 2.9s ease-in-out infinite;
}

.lucky-stock-btn:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.08);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(248, 113, 113, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lucky-stock-btn:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.98);
}

.lucky-stock-btn:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.65);
  outline-offset: 4px;
}

.lucky-stock-btn[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.25);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lucky-stock-btn.locked {
  cursor: default;
  pointer-events: none;
  filter: none;
}

.lucky-stock-btn.show-result[disabled] {
  opacity: 1;
  cursor: default;
  filter: none;
}
.lucky-stock-btn[disabled]:not(.show-result)::before,
.lucky-stock-btn[disabled]:not(.show-result)::after {
  opacity: 0.18;
  animation: none;
}

.lucky-stock-btn.vanish {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.lucky-stock-anim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.36rem;
}

.lucky-stock-flip {
  width: 118px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7f1d1d 0%, #4a0f0f 60%, #2d070a 100%);
  background-size: 260% 220%;
  background-position: -60% 50%;
  border: 1px solid rgba(248, 113, 113, 0.25);
  box-shadow:
    0 12px 26px rgba(2, 6, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(248, 113, 113, 0.1);
  position: relative;
  overflow: hidden;
  animation:
    lucky-flip 1s ease-in-out infinite,
    lucky-flip-flow 1.1s linear infinite;
  animation-play-state: running;
}

.lucky-stock-flip::before {
  content: "";
  position: absolute;
  inset: -6px;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 44%, rgba(255, 255, 255, 0.12) 60%, transparent 74%);
  background-size: 220% 220%;
  animation: lucky-flip-shine 1.2s linear infinite;
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
}

.lucky-stock-flip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 58%),
    radial-gradient(circle at 70% 80%, rgba(248, 113, 113, 0.2), transparent 58%);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: lucky-flip-glow 1s ease-in-out infinite;
  pointer-events: none;
}

.lucky-stock-anim-text {
  font-weight: 760;
  color: rgba(248, 250, 252, 0.9);
  letter-spacing: 0.03em;
}

.lucky-stock-result {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: min(260px, 75%);
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(54, 11, 16, 0.9), rgba(17, 12, 20, 0.85));
  border: 0;
  box-shadow:
    0 18px 40px rgba(2, 6, 23, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.lucky-stock-result::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.22), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(94, 234, 212, 0.08), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
  mix-blend-mode: screen;
}

.lucky-stock-code {
  position: relative;
  z-index: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #fecdd3;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  font-size: 1.12rem;
}

.lucky-stock-name {
  position: relative;
  z-index: 1;
  font-weight: 820;
  color: #fff;
  font-size: 1.04rem;
  max-width: 19ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.lucky-stock-result.reveal {
  animation: lucky-card 420ms cubic-bezier(0.25, 0.9, 0.3, 1.05) 1;
}

.lucky-stock-hint {
  display: block;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.35;
  max-width: min(520px, 92%);
  white-space: nowrap;
  color: rgba(248, 250, 252, 0.82) !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  margin-top: 6px;
  z-index: 2;
}

body.light-theme .lucky-stock-hint {
  color: rgba(15, 23, 42, 0.82) !important;
  text-shadow: none;
}

.lucky-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  overflow: hidden;
}

.lucky-inline-code {
  font-family: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  font-size: inherit;
  color: #fff4f3;
  text-shadow: none;
  white-space: nowrap;
}

.lucky-inline-name {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  color: #fff4f3;
  text-shadow: none;
  white-space: nowrap;
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lucky-btn-loading-text {
  font-weight: 780;
  letter-spacing: 0.02em;
}

@keyframes lucky-press {
  0% {
    transform: translateY(0) scale(1);
    filter: brightness(1.02);
  }
  40% {
    transform: translateY(1px) scale(0.98);
    filter: brightness(0.95);
  }
  80% {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.12);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1.02);
  }
}

@keyframes lucky-ripple {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  40% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes lucky-loading-pulse {
  0% {
    opacity: 0.8;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
  100% {
    opacity: 0.8;
    transform: translateY(0);
  }
}

@keyframes lucky-glow {
  0% {
    transform: scale(0.99);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.01);
    opacity: 0.85;
  }
  100% {
    transform: scale(0.99);
    opacity: 0.5;
  }
}

@keyframes lucky-shimmer {
  0% {
    transform: translateX(-140%) skewX(-16deg);
    opacity: 0.55;
  }
  60% {
    transform: translateX(140%) skewX(-16deg);
    opacity: 0.6;
  }
  100% {
    transform: translateX(140%) skewX(-16deg);
    opacity: 0;
  }
}

@keyframes lucky-flip {
  0% {
    transform: translateY(1px) scale(0.98);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-1px) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(1px) scale(0.98);
    opacity: 0.7;
  }
}

@keyframes lucky-flip-flow {
  0% {
    background-position: -60% 50%;
  }
  100% {
    background-position: 160% 50%;
  }
}

@keyframes lucky-flip-shine {
  0% {
    transform: translateX(-120%) skewX(-12deg);
    opacity: 0;
  }
  35% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(120%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes lucky-flip-glow {
  0% {
    transform: scale(0.99);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.01);
    opacity: 0.85;
  }
  100% {
    transform: scale(0.99);
    opacity: 0.62;
  }
}

@keyframes lucky-card {
  0% {
    transform: translateY(6px) scale(0.96);
    opacity: 0;
  }
  55% {
    transform: translateY(-2px) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes lucky-btn-wave {
  0% {
    background-position: 0% 50%;
    filter: brightness(0.96);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.12);
  }
  100% {
    background-position: 0% 50%;
    filter: brightness(0.96);
  }
}

@media (min-width: 720px) {
  .lucky-stock-btn {
    width: 72%;
    max-width: 300px;
  }
  .lucky-stock-result {
    width: min(240px, 50%);
  }
  .lucky-stock-hint {
    max-width: min(260px, 60%);
  }
}

.klinechat-ready-title {
  font-weight: 750;
  font-size: 1.06rem;
  letter-spacing: 0.2px;
}

.klinechat-ready {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.klinechat-ready .ready-item {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 650;
  color: rgba(248, 250, 252, 0.92);
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.25);
}
.klinechat-ready .ready-item-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.klinechat-ready .ready-item-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.3;
}
.klinechat-ready .ready-item.ready {
  border-color: transparent;
}
.klinechat-ready .ready-item.not-ready {
  border-color: transparent;
}

.klinechat-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.klinechat-status {
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  /* show ~3 lines by default */
  max-height: 68px;
  overflow-y: auto;
  background: transparent;
  color: rgba(248, 250, 252, 0.92);
  box-shadow: none;
}

.klinechat-status-panel {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.klinechat-status-panel summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.88rem;
  line-height: 1.25;
  color: rgba(248, 250, 252, 0.85);
  list-style: none;
}
.klinechat-status-panel summary::-webkit-details-marker {
  display: none;
}
.klinechat-status-panel summary::before {
  content: "▾";
  display: inline-block;
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.8);
}
.klinechat-status-panel:not([open]) summary::before {
  content: "▸";
}
.klinechat-status-panel:not([open]) .klinechat-status {
  display: none;
}

.light-theme .klinechat-ready .ready-item {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid transparent;
  color: rgba(15, 23, 42, 0.88);
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.06);
}
.light-theme .klinechat-ready .ready-item-meta {
  color: rgba(51, 65, 85, 0.78);
}

body.light-theme .klinechat-status {
  border: none;
  background: transparent;
  color: rgba(15, 23, 42, 0.92);
  box-shadow: none;
}

body.light-theme .klinechat-status-panel {
  border: none;
}
body.light-theme .klinechat-status-panel summary {
  color: rgba(15, 23, 42, 0.82);
}
body.light-theme .klinechat-status-panel summary::before {
  color: rgba(15, 23, 42, 0.35);
}

.klinechat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#klineChatRef1,
#klineChatRef2,
#klineChatRef3 {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.08);
  color: #dbeafe;
  box-shadow: none;
}

#klineChatRef1:hover,
#klineChatRef2:hover,
#klineChatRef3:hover {
  background: rgba(96, 165, 250, 0.12);
  box-shadow: none;
}

body.light-theme #klineChatRef1,
body.light-theme #klineChatRef2,
body.light-theme #klineChatRef3 {
  color: #1e3a8a;
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: none;
}

body.light-theme #klineChatRef1:hover,
body.light-theme #klineChatRef2:hover,
body.light-theme #klineChatRef3:hover {
  background: #dbeafe;
  border-color: #2563eb;
  box-shadow: none;
}

#klineChatHistoryPanel {
  margin-top: 30px;
}

@media (max-width: 720px) {
  .klinechat-input-grid {
    grid-template-columns: 1fr;
  }
  .klinechat-status {
    max-height: 66px;
  }
}

/* News section spacing */
.news-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#newsAnalysisContent .sentiment-content,
.news-section .sentiment-content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  line-height: 1.6;
  font-size: 1.05rem;
}
#newsAnalysisContent .sentiment-content h1,
#newsAnalysisContent .sentiment-content h2,
#newsAnalysisContent .sentiment-content h3,
#newsAnalysisContent .sentiment-content h4,
.news-section .sentiment-content h1,
.news-section .sentiment-content h2,
.news-section .sentiment-content h3,
.news-section .sentiment-content h4 {
  margin: 0.35rem 0 0.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
#newsAnalysisContent .sentiment-content h1,
#newsAnalysisContent .sentiment-content h2,
.news-section .sentiment-content h1,
.news-section .sentiment-content h2 {
  font-size: 1.28rem;
}
#newsAnalysisContent .sentiment-content h3,
.news-section .sentiment-content h3 {
  font-size: 1.16rem;
}
#newsAnalysisContent .sentiment-content h4,
.news-section .sentiment-content h4 {
  font-size: 1.06rem;
}
#newsAnalysisContent .sentiment-content p,
.news-section .sentiment-content p {
  margin: 0.4rem 0;
  font-size: 1.02rem;
}
#newsAnalysisContent .sentiment-content ul,
#newsAnalysisContent .sentiment-content ol,
.news-section .sentiment-content ul,
.news-section .sentiment-content ol {
  padding-left: 1.2rem;
  margin: 0.42rem 0 0.36rem;
  list-style-position: outside;
  list-style-type: disc;
}
#newsAnalysisContent .sentiment-content ul ul,
#newsAnalysisContent .sentiment-content ol ul,
.news-section .sentiment-content ul ul,
.news-section .sentiment-content ol ul {
  padding-left: 0.4rem;
  margin-top: 0.08rem;
}
#newsAnalysisContent .sentiment-content li,
.news-section .sentiment-content li {
  font-size: 1.02rem;
  font-weight: 560;
  line-height: 1.7;
}
#newsAnalysisContent .sentiment-content li + li,
.news-section .sentiment-content li + li {
  margin-top: 0.18rem;
}
#newsAnalysisContent .sentiment-content strong,
.news-section .sentiment-content strong {
  font-weight: 780;
}
#newsAnalysisContent .sentiment-content em,
.news-section .sentiment-content em {
  color: var(--accent);
  font-style: normal;
}

.news-us-market-panel {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.topic-report-directory-shell,
.topic-report-detail-shell {
  --topic-report-surface: linear-gradient(180deg, rgba(10, 18, 32, 0.96), rgba(8, 15, 28, 0.9));
  --topic-report-surface-strong: radial-gradient(circle at top right, rgba(74, 144, 164, 0.24), transparent 34%), linear-gradient(180deg, rgba(11, 24, 39, 0.98), rgba(8, 15, 28, 0.94));
  --topic-report-surface-soft: rgba(16, 25, 41, 0.88);
  --topic-report-outline: rgba(133, 167, 194, 0.18);
  --topic-report-outline-strong: rgba(94, 160, 180, 0.34);
  --topic-report-shadow: 0 20px 40px rgba(2, 6, 23, 0.28);
  --topic-report-title: rgba(245, 248, 255, 0.98);
  --topic-report-text: rgba(225, 232, 241, 0.92);
  --topic-report-muted: rgba(180, 194, 211, 0.76);
  --topic-report-accent: #e2b55d;
  --topic-report-accent-soft: rgba(226, 181, 93, 0.16);
  --topic-report-accent-cool: #78c9c7;
  --topic-report-serif: "IBM Plex Serif", "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --topic-report-sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 0.84rem;
  font-family: var(--topic-report-sans);
}

.topic-report-hero,
.topic-report-section,
.topic-report-version-section,
.topic-report-directory-head,
.topic-report-detail-head,
.topic-report-directory-card,
.topic-report-state-panel,
.topic-report-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.12rem;
  border: 1px solid var(--topic-report-outline);
  background: var(--topic-report-surface);
  box-shadow: var(--topic-report-shadow);
}

.topic-report-hero::before,
.topic-report-section::before,
.topic-report-version-section::before,
.topic-report-directory-head::before,
.topic-report-detail-head::before,
.topic-report-directory-card::before,
.topic-report-state-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(90deg, transparent, rgba(120, 201, 199, 0.06), transparent);
  pointer-events: none;
}

.topic-report-hero,
.topic-report-section {
  margin: 0;
  padding: 0.88rem 0.96rem;
}

.topic-report-directory-head,
.topic-report-detail-head {
  padding: 0.96rem 1rem;
  background: var(--topic-report-surface-strong);
  border-color: var(--topic-report-outline-strong);
}

.topic-report-directory-hero {
  gap: 0.92rem;
}

.topic-report-directory-kicker,
.topic-report-detail-kicker,
.topic-report-kicker {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--topic-report-accent-cool);
}

.topic-report-headline,
.topic-report-directory-title,
.topic-report-detail-title {
  position: relative;
  z-index: 1;
  margin-top: 0.36rem;
  font-family: var(--topic-report-serif);
  font-size: 1.18rem;
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--topic-report-title);
}

.topic-report-conclusion,
.topic-report-dossier-focus,
.topic-report-detail-highlight {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  padding-left: 0.72rem;
  border-left: 2px solid var(--topic-report-accent);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.72;
  color: var(--topic-report-text);
}

.topic-report-summary,
.topic-report-directory-desc,
.topic-report-directory-lead,
.topic-report-detail-desc,
.topic-report-detail-empty,
.topic-report-detail-loading {
  position: relative;
  z-index: 1;
  margin: 0.44rem 0 0;
  font-size: 0.78rem;
  line-height: 1.66;
  color: var(--topic-report-muted);
}

.topic-report-directory-lead {
  padding: 0.72rem 0.84rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(226, 181, 93, 0.16);
  background: rgba(12, 20, 33, 0.52);
  color: var(--topic-report-text);
}

.topic-report-directory-list,
.topic-report-version-list {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
}

.topic-report-directory-metrics,
.topic-report-detail-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.46rem;
  margin-top: 0.66rem;
}

.topic-report-directory-metric,
.topic-report-detail-fact {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.54rem 0.62rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(133, 167, 194, 0.16);
  background: rgba(9, 17, 28, 0.46);
}

.topic-report-directory-metric strong,
.topic-report-detail-fact strong {
  font-size: 0.84rem;
  line-height: 1.12;
  color: var(--topic-report-title);
}

.topic-report-directory-metric span,
.topic-report-detail-fact span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--topic-report-muted);
}

.topic-report-directory-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.54rem;
  text-align: left;
  padding: 0.82rem 0.92rem 0.86rem 0.96rem;
  color: var(--topic-report-title);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.topic-report-directory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 201, 199, 0.36);
  box-shadow: 0 24px 40px rgba(2, 6, 23, 0.32);
}

.topic-report-directory-card.is-featured {
  border-color: rgba(226, 181, 93, 0.28);
  background: radial-gradient(circle at right top, rgba(226, 181, 93, 0.14), transparent 34%), var(--topic-report-surface-strong);
}

.topic-report-directory-card:disabled {
  cursor: default;
  opacity: 0.76;
  transform: none;
  box-shadow: none;
}

.topic-report-directory-card-top,
.topic-report-detail-toolbar,
.topic-report-dossier-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.topic-report-dossier-rail {
  align-items: flex-start;
}

.topic-report-dossier-rail-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.topic-report-dossier-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.topic-report-directory-flag,
.topic-report-directory-cta {
  display: inline-flex;
  align-items: center;
  min-height: 1.42rem;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.topic-report-directory-flag {
  background: var(--topic-report-accent-soft);
  border: 1px solid rgba(226, 181, 93, 0.18);
  color: var(--topic-report-accent);
}

.topic-report-directory-cta {
  border: 1px solid rgba(120, 201, 199, 0.22);
  background: rgba(9, 17, 28, 0.54);
  color: var(--topic-report-accent-cool);
}

.topic-report-dossier-type,
.topic-report-dossier-marker,
.topic-report-detail-docno,
.topic-report-version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.3rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(10, 19, 32, 0.62);
  border: 1px solid rgba(133, 167, 194, 0.14);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--topic-report-muted);
}

.topic-report-dossier-marker {
  color: var(--topic-report-accent);
  border-color: rgba(226, 181, 93, 0.18);
}

.topic-report-directory-card-title {
  font-family: var(--topic-report-serif);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--topic-report-title);
}

.topic-report-directory-card-summary {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--topic-report-muted);
}

.topic-report-directory-card-meta {
  font-size: 0.62rem;
  line-height: 1.56;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--topic-report-muted);
}

.topic-report-directory-card-badges,
.topic-report-directory-card-tags,
.topic-report-detail-tags,
.topic-report-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.topic-report-badge-row {
  margin-top: 0.56rem;
}

.topic-report-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.32rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(133, 167, 194, 0.18);
  background: rgba(9, 17, 28, 0.56);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--topic-report-text);
}

.topic-report-badge.tone-primary {
  color: rgba(216, 244, 243, 0.98);
  border-color: rgba(120, 201, 199, 0.26);
  background: rgba(39, 108, 121, 0.2);
}

.topic-report-badge.tone-good {
  color: rgba(225, 246, 230, 0.98);
  border-color: rgba(110, 207, 137, 0.24);
  background: rgba(33, 95, 53, 0.2);
}

.topic-report-badge.tone-risk {
  color: rgba(255, 229, 229, 0.98);
  border-color: rgba(239, 124, 124, 0.24);
  background: rgba(122, 35, 35, 0.22);
}

.topic-report-directory-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.24rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(133, 167, 194, 0.16);
  background: rgba(9, 17, 28, 0.48);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--topic-report-text);
}

.topic-report-directory-empty,
.topic-report-directory-loading {
  padding: 0.86rem 0.92rem;
  border-radius: 1rem;
  border: 1px dashed rgba(133, 167, 194, 0.22);
  background: rgba(9, 17, 28, 0.44);
  font-size: 0.76rem;
  line-height: 1.62;
  color: var(--topic-report-muted);
}

.topic-report-back-btn {
  align-self: flex-start;
  margin: 0;
  border: 1px solid rgba(133, 167, 194, 0.22);
  border-radius: 999px;
  background: rgba(9, 17, 28, 0.62);
  color: var(--topic-report-title);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.42rem 0.74rem;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.topic-report-back-btn:hover {
  border-color: rgba(120, 201, 199, 0.3);
  background: rgba(10, 19, 32, 0.78);
  transform: translateY(-1px);
}

.topic-report-detail-cover {
  gap: 0.58rem;
}

.topic-report-detail-highlight {
  margin-top: 0.54rem;
  background: rgba(9, 17, 28, 0.4);
  padding-top: 0.02rem;
  padding-bottom: 0.02rem;
}

.topic-report-state-panel {
  padding: 0.86rem 0.92rem;
}

.topic-report-state-title {
  font-family: var(--topic-report-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--topic-report-title);
}

.topic-report-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 0.46rem;
  margin-top: 0.6rem;
}

.topic-report-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  padding: 0.56rem 0.62rem;
}

.topic-report-stat-card strong {
  font-size: 0.82rem;
  line-height: 1.1;
  color: var(--topic-report-title);
}

.topic-report-stat-card span {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--topic-report-muted);
}

.topic-report-version-section {
  margin: 0 0 0.88rem;
  padding: 0.88rem 0.96rem;
}

.topic-report-version-card {
  position: relative;
  padding: 0.72rem 0.78rem 0.74rem 0.9rem;
  border-radius: 0.96rem;
  border: 1px solid rgba(133, 167, 194, 0.14);
  background: rgba(9, 17, 28, 0.46);
}

.topic-report-version-card::before {
  content: "";
  position: absolute;
  left: 0.52rem;
  top: 0.82rem;
  bottom: 0.82rem;
  width: 2px;
  border-radius: 999px;
  background: rgba(120, 201, 199, 0.2);
}

.topic-report-version-card.is-current {
  border-color: rgba(226, 181, 93, 0.26);
  background: rgba(24, 22, 16, 0.52);
}

.topic-report-version-card.is-current::before {
  background: var(--topic-report-accent);
}

.topic-report-version-head {
  position: relative;
  z-index: 1;
  margin-bottom: 0.34rem;
}

.topic-report-version-meta,
.topic-report-version-change {
  position: relative;
  z-index: 1;
  font-size: 0.64rem;
  line-height: 1.56;
  color: var(--topic-report-muted);
}

.topic-report-version-summary {
  position: relative;
  z-index: 1;
  margin-top: 0.28rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--topic-report-text);
}

.topic-report-section-title {
  position: relative;
  z-index: 1;
  margin-bottom: 0.66rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: var(--topic-report-title);
}

.topic-report-mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 0.54rem;
}

.topic-report-mapping-card {
  position: relative;
  z-index: 1;
  border-radius: 0.94rem;
  border: 1px solid rgba(133, 167, 194, 0.14);
  background: rgba(9, 17, 28, 0.54);
  padding: 0.64rem 0.72rem;
}

.topic-report-mapping-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
}

.topic-report-mapping-top strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--topic-report-title);
}

.topic-report-mapping-top span,
.topic-report-mapping-meta {
  font-size: 0.64rem;
  line-height: 1.5;
  color: var(--topic-report-muted);
}

.topic-report-mapping-evidence {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  line-height: 1.56;
  color: var(--topic-report-text);
}

.topic-report-body {
  margin-top: 0;
  padding: 0.86rem 0.94rem;
  border-radius: 1.12rem;
  border: 1px solid var(--topic-report-outline);
  background: rgba(9, 17, 28, 0.56);
  box-shadow: var(--topic-report-shadow);
}

.topic-report-body > :first-child {
  margin-top: 0;
}

.topic-report-body > :last-child {
  margin-bottom: 0;
}

body.light-theme .topic-report-directory-shell,
body.light-theme .topic-report-detail-shell {
  --topic-report-surface: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 239, 230, 0.96));
  --topic-report-surface-strong: radial-gradient(circle at top right, rgba(94, 160, 180, 0.14), transparent 34%), linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(244, 237, 227, 0.98));
  --topic-report-surface-soft: rgba(255, 249, 239, 0.94);
  --topic-report-outline: rgba(122, 138, 156, 0.18);
  --topic-report-outline-strong: rgba(94, 160, 180, 0.26);
  --topic-report-shadow: 0 20px 38px rgba(148, 163, 184, 0.18);
  --topic-report-title: rgba(26, 34, 46, 0.96);
  --topic-report-text: rgba(44, 55, 69, 0.92);
  --topic-report-muted: rgba(88, 102, 120, 0.82);
  --topic-report-accent-soft: rgba(226, 181, 93, 0.14);
}

body.light-theme .topic-report-directory-lead,
body.light-theme .topic-report-directory-metric,
body.light-theme .topic-report-detail-fact,
body.light-theme .topic-report-directory-cta,
body.light-theme .topic-report-dossier-type,
body.light-theme .topic-report-dossier-marker,
body.light-theme .topic-report-detail-docno,
body.light-theme .topic-report-version-badge,
body.light-theme .topic-report-directory-tag,
body.light-theme .topic-report-back-btn,
body.light-theme .topic-report-body,
body.light-theme .topic-report-mapping-card,
body.light-theme .topic-report-version-card {
  background: rgba(255, 252, 247, 0.82);
  border-color: rgba(122, 138, 156, 0.16);
}

/* Topic report redesign v20260328 */
.topic-report-directory-shell,
.topic-report-detail-shell {
  --topic-report-paper: #151d29;
  --topic-report-paper-soft: #1b2533;
  --topic-report-paper-alt: #101722;
  --topic-report-line: rgba(133, 154, 181, 0.2);
  --topic-report-line-strong: rgba(148, 176, 204, 0.34);
  --topic-report-ink: rgba(244, 247, 251, 0.97);
  --topic-report-subtle: rgba(185, 197, 213, 0.82);
  --topic-report-accent: #c49a4b;
  --topic-report-accent-soft: rgba(196, 154, 75, 0.14);
  --topic-report-accent-ink: #dfbe7b;
  --topic-report-kicker: #7aa9b8;
  --topic-report-shadow: 0 22px 44px rgba(2, 8, 20, 0.32);
  gap: 0.92rem;
  font-family: var(--topic-report-sans);
}

body.light-theme .topic-report-directory-shell,
body.light-theme .topic-report-detail-shell {
  --topic-report-paper: #fcfaf6;
  --topic-report-paper-soft: #f5efe4;
  --topic-report-paper-alt: #efe6d8;
  --topic-report-line: rgba(76, 95, 119, 0.2);
  --topic-report-line-strong: rgba(76, 98, 123, 0.34);
  --topic-report-ink: rgba(23, 33, 47, 0.97);
  --topic-report-subtle: rgba(89, 101, 116, 0.86);
  --topic-report-accent: #b88731;
  --topic-report-accent-soft: rgba(184, 135, 49, 0.12);
  --topic-report-accent-ink: #8e671f;
  --topic-report-kicker: #567f8e;
  --topic-report-shadow: 0 18px 36px rgba(122, 134, 149, 0.16);
}

.topic-report-hero,
.topic-report-section,
.topic-report-article-section,
.topic-report-version-section,
.topic-report-directory-head,
.topic-report-detail-head,
.topic-report-directory-card,
.topic-report-state-panel,
.topic-report-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--topic-report-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--topic-report-paper);
  box-shadow: var(--topic-report-shadow);
}

body.light-theme .topic-report-hero,
body.light-theme .topic-report-section,
body.light-theme .topic-report-article-section,
body.light-theme .topic-report-version-section,
body.light-theme .topic-report-directory-head,
body.light-theme .topic-report-detail-head,
body.light-theme .topic-report-directory-card,
body.light-theme .topic-report-state-panel,
body.light-theme .topic-report-stat-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
    var(--topic-report-paper);
}

.topic-report-hero::before,
.topic-report-section::before,
.topic-report-article-section::before,
.topic-report-version-section::before,
.topic-report-directory-head::before,
.topic-report-detail-head::before,
.topic-report-directory-card::before,
.topic-report-state-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025));
  pointer-events: none;
}

body.light-theme .topic-report-hero::before,
body.light-theme .topic-report-section::before,
body.light-theme .topic-report-article-section::before,
body.light-theme .topic-report-version-section::before,
body.light-theme .topic-report-directory-head::before,
body.light-theme .topic-report-detail-head::before,
body.light-theme .topic-report-directory-card::before,
body.light-theme .topic-report-state-panel::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(90deg, rgba(88, 104, 126, 0.04), transparent 20%, transparent 80%, rgba(88, 104, 126, 0.04));
}

.topic-report-hero,
.topic-report-section,
.topic-report-article-section,
.topic-report-version-section,
.topic-report-state-panel {
  margin: 0;
  padding: 1rem 1.08rem;
}

.topic-report-directory-head,
.topic-report-detail-head {
  padding: 1.06rem 1.14rem 1.12rem;
  border-color: var(--topic-report-line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(180deg, var(--topic-report-paper-soft), var(--topic-report-paper));
}

body.light-theme .topic-report-directory-head,
body.light-theme .topic-report-detail-head {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 40%),
    linear-gradient(180deg, var(--topic-report-paper-soft), var(--topic-report-paper));
}

.topic-report-directory-head::after,
.topic-report-detail-head::after,
.topic-report-section::after,
.topic-report-article-section::after,
.topic-report-version-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--topic-report-accent), rgba(122, 169, 184, 0.72), transparent 78%);
  opacity: 0.8;
}

.topic-report-directory-hero {
  gap: 0.92rem;
}

.topic-report-directory-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.topic-report-directory-kicker,
.topic-report-detail-kicker,
.topic-report-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--topic-report-kicker);
}

.topic-report-headline,
.topic-report-directory-title,
.topic-report-detail-title {
  position: relative;
  z-index: 1;
  margin-top: 0.34rem;
  font-family: var(--topic-report-serif);
  letter-spacing: 0.01em;
  color: var(--topic-report-ink);
}

.topic-report-directory-title {
  font-size: 1.46rem;
  font-weight: 740;
  line-height: 1.16;
}

.topic-report-detail-title,
.topic-report-headline {
  font-size: 1.7rem;
  font-weight: 760;
  line-height: 1.16;
}

.topic-report-directory-stamp,
.topic-report-detail-docno,
.topic-report-version-badge,
.topic-report-dossier-type,
.topic-report-dossier-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 1.72rem;
  padding: 0.18rem 0.68rem;
  border-radius: 0.68rem;
  border: 1px solid var(--topic-report-line);
  background: rgba(9, 17, 28, 0.16);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--topic-report-subtle);
}

body.light-theme .topic-report-directory-stamp,
body.light-theme .topic-report-detail-docno,
body.light-theme .topic-report-version-badge,
body.light-theme .topic-report-dossier-type,
body.light-theme .topic-report-dossier-marker {
  background: rgba(255, 255, 255, 0.72);
}

.topic-report-dossier-marker,
.topic-report-version-card.is-current .topic-report-version-badge {
  border-color: rgba(196, 154, 75, 0.32);
  color: var(--topic-report-accent-ink);
}

.topic-report-directory-desc,
.topic-report-summary,
.topic-report-detail-desc,
.topic-report-detail-empty,
.topic-report-detail-loading {
  position: relative;
  z-index: 1;
  margin: 0.5rem 0 0;
  max-width: 52rem;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--topic-report-subtle);
}

.topic-report-directory-lead {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.82rem;
  padding: 0.86rem 0.92rem;
  border-radius: 0.92rem;
  border: 1px solid var(--topic-report-line);
  background:
    linear-gradient(90deg, var(--topic-report-accent-soft), transparent 48%),
    rgba(7, 14, 22, 0.18);
}

body.light-theme .topic-report-directory-lead {
  background:
    linear-gradient(90deg, var(--topic-report-accent-soft), transparent 48%),
    rgba(255, 255, 255, 0.7);
}

.topic-report-directory-lead-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--topic-report-accent-ink);
}

.topic-report-directory-lead-text {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.78;
  color: var(--topic-report-ink);
}

.topic-report-directory-metrics,
.topic-report-detail-facts,
.topic-report-stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.54rem;
}

.topic-report-directory-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.72rem;
}

.topic-report-detail-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.82rem;
}

.topic-report-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.58rem;
}

.topic-report-directory-metric,
.topic-report-detail-fact,
.topic-report-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.7rem 0.78rem;
  border-radius: 0.62rem;
  border: 1px solid var(--topic-report-line);
  background: rgba(5, 11, 19, 0.18);
}

body.light-theme .topic-report-directory-metric,
body.light-theme .topic-report-detail-fact,
body.light-theme .topic-report-stat-card {
  background: rgba(255, 255, 255, 0.78);
}

.topic-report-directory-metric strong,
.topic-report-detail-fact strong,
.topic-report-stat-card strong {
  font-size: 1.08rem;
  line-height: 1.2;
  color: var(--topic-report-ink);
}

.topic-report-directory-metric span,
.topic-report-detail-fact span,
.topic-report-stat-card span {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--topic-report-subtle);
}

.topic-report-directory-list,
.topic-report-version-list {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.topic-report-dossier,
.topic-report-directory-card {
  width: 100%;
  appearance: none;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.94rem;
  text-align: left;
  padding: 1rem 1.08rem;
  color: inherit;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.topic-report-directory-card:hover {
  transform: translateY(-2px);
  border-color: var(--topic-report-line-strong);
  box-shadow: 0 24px 42px rgba(2, 8, 20, 0.34);
}

body.light-theme .topic-report-directory-card:hover {
  box-shadow: 0 18px 30px rgba(122, 134, 149, 0.22);
}

.topic-report-directory-card.is-featured {
  border-color: rgba(196, 154, 75, 0.3);
  background:
    linear-gradient(90deg, var(--topic-report-accent-soft), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--topic-report-paper);
}

.topic-report-directory-card:disabled {
  cursor: default;
  opacity: 0.74;
  transform: none;
  box-shadow: none;
}

.topic-report-dossier-index {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 4.3rem;
  padding-top: 0.72rem;
  border-radius: 0.96rem;
  border: 1px solid var(--topic-report-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 62%),
    var(--topic-report-paper-soft);
  font-family: var(--topic-report-serif);
  font-size: 1.72rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--topic-report-accent-ink);
}

body.light-theme .topic-report-dossier-index {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent 62%),
    var(--topic-report-paper-soft);
}

.topic-report-dossier-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
}

.topic-report-directory-card-top,
.topic-report-dossier-topline,
.topic-report-detail-toolbar,
.topic-report-dossier-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.topic-report-dossier-rail {
  align-items: flex-start;
}

.topic-report-dossier-rail-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.topic-report-directory-flag,
.topic-report-directory-cta,
.topic-report-badge,
.topic-report-directory-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.66rem;
  padding: 0.14rem 0.58rem;
  border-radius: 0.62rem;
  border: 1px solid var(--topic-report-line);
  background: rgba(5, 11, 19, 0.18);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

body.light-theme .topic-report-directory-flag,
body.light-theme .topic-report-directory-cta,
body.light-theme .topic-report-badge,
body.light-theme .topic-report-directory-tag {
  background: rgba(255, 255, 255, 0.76);
}

.topic-report-directory-flag,
.topic-report-badge.tone-primary {
  border-color: rgba(196, 154, 75, 0.28);
  background: var(--topic-report-accent-soft);
  color: var(--topic-report-accent-ink);
}

.topic-report-directory-cta {
  color: var(--topic-report-kicker);
}

.topic-report-badge.tone-good {
  border-color: rgba(92, 173, 122, 0.24);
  background: rgba(70, 143, 92, 0.16);
  color: #88d7a2;
}

body.light-theme .topic-report-badge.tone-good {
  color: #2d7a44;
}

.topic-report-badge.tone-risk {
  border-color: rgba(207, 106, 106, 0.24);
  background: rgba(160, 57, 57, 0.16);
  color: #f1a7a7;
}

body.light-theme .topic-report-badge.tone-risk {
  color: #a43e3e;
}

.topic-report-directory-card-title {
  min-width: 0;
  font-family: var(--topic-report-serif);
  font-size: 1.12rem;
  font-weight: 760;
  line-height: 1.32;
  color: var(--topic-report-ink);
}

.topic-report-dossier-focus,
.topic-report-conclusion,
.topic-report-detail-highlight {
  position: relative;
  z-index: 1;
  margin-top: 0.08rem;
  padding: 0.18rem 0 0.18rem 0.82rem;
  border-left: 3px solid var(--topic-report-accent);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.76;
  color: var(--topic-report-ink);
}

.topic-report-detail-highlight {
  margin-top: 0.74rem;
  padding: 0.88rem 0.96rem 0.88rem 1.06rem;
  border-radius: 0.94rem;
  background:
    linear-gradient(90deg, var(--topic-report-accent-soft), transparent 50%),
    rgba(5, 11, 19, 0.16);
}

body.light-theme .topic-report-detail-highlight {
  background:
    linear-gradient(90deg, var(--topic-report-accent-soft), transparent 50%),
    rgba(255, 255, 255, 0.78);
}

.topic-report-directory-card-summary {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--topic-report-subtle);
}

.topic-report-directory-card-meta,
.topic-report-version-meta,
.topic-report-version-change {
  font-size: 0.84rem;
  line-height: 1.62;
  letter-spacing: 0.03em;
  color: var(--topic-report-subtle);
}

.topic-report-directory-card-tags,
.topic-report-detail-tags,
.topic-report-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.topic-report-badge-row {
  margin-top: 0.64rem;
}

.topic-report-back-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  align-self: flex-start;
  margin: 0;
  border: 1.5px solid rgba(184, 135, 49, 0.34);
  border-radius: 0.82rem;
  background:
    linear-gradient(180deg, rgba(184, 135, 49, 0.16), rgba(184, 135, 49, 0.04)),
    rgba(5, 11, 19, 0.24);
  box-shadow: 0 10px 24px rgba(5, 11, 19, 0.12);
  color: var(--topic-report-ink);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.68rem 1.08rem;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

body.light-theme .topic-report-back-btn {
  border-color: rgba(184, 135, 49, 0.32);
  background:
    linear-gradient(180deg, rgba(196, 154, 75, 0.12), rgba(196, 154, 75, 0.04)),
    rgba(255, 255, 255, 0.96);
  color: rgba(23, 33, 47, 0.98);
  box-shadow: 0 12px 26px rgba(145, 110, 41, 0.1);
}

.topic-report-back-btn:hover {
  border-color: rgba(184, 135, 49, 0.44);
  background:
    linear-gradient(180deg, rgba(184, 135, 49, 0.22), rgba(184, 135, 49, 0.08)),
    rgba(5, 11, 19, 0.28);
  box-shadow: 0 14px 28px rgba(5, 11, 19, 0.16);
  color: var(--topic-report-accent-ink);
  transform: none;
}

.topic-report-detail-cover {
  gap: 0.6rem;
}

.topic-report-state-title {
  position: relative;
  z-index: 1;
  font-family: var(--topic-report-serif);
  font-size: 1rem;
  font-weight: 760;
  color: var(--topic-report-ink);
}

.topic-report-section-title {
  position: relative;
  z-index: 1;
  margin-bottom: 0.78rem;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: var(--topic-report-ink);
}

.topic-report-section-title::after {
  content: none;
}

.topic-report-meta-section .topic-report-detail-summary-strip {
  margin-top: 0;
}

.topic-report-meta-section .topic-report-detail-tags {
  margin-top: 0.82rem;
}

.topic-report-detail-summary-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.54rem;
  margin-top: 0.82rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.topic-report-detail-summary-strip::-webkit-scrollbar {
  height: 8px;
}

.topic-report-detail-summary-strip::-webkit-scrollbar-thumb {
  background: rgba(120, 138, 160, 0.24);
  border-radius: 999px;
}

.topic-report-detail-summary-card {
  flex: 0 0 8.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.76rem 0.82rem;
  border-radius: 0.62rem;
  border: 1px solid var(--topic-report-line);
  background: rgba(5, 11, 19, 0.16);
}

body.light-theme .topic-report-detail-summary-card {
  background: rgba(255, 255, 255, 0.82);
}

.topic-report-detail-summary-card span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--topic-report-subtle);
}

.topic-report-detail-summary-card strong {
  font-size: 1.08rem;
  line-height: 1.24;
  color: var(--topic-report-ink);
}

.topic-report-detail-summary-card.tone-stat {
  background:
    linear-gradient(180deg, rgba(122, 169, 184, 0.08), rgba(122, 169, 184, 0)),
    rgba(5, 11, 19, 0.16);
}

body.light-theme .topic-report-detail-summary-card.tone-stat {
  background:
    linear-gradient(180deg, rgba(122, 169, 184, 0.08), rgba(122, 169, 184, 0)),
    rgba(255, 255, 255, 0.82);
}

.topic-report-meta-chip-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.topic-report-meta-chip {
  border: 1px solid var(--topic-report-line);
  background: rgba(5, 11, 19, 0.18);
}

body.light-theme .topic-report-meta-chip {
  background: rgba(255, 255, 255, 0.78);
}

.topic-report-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.topic-report-meta-chip {
  color: var(--topic-report-subtle);
}

.topic-report-empty-note,
.topic-report-mapping-note {
  position: relative;
  z-index: 1;
  margin-top: 0.7rem;
  padding: 0.78rem 0.88rem;
  border-radius: 0.78rem;
  border: 1px solid var(--topic-report-line);
  background: rgba(5, 11, 19, 0.14);
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--topic-report-subtle);
}

body.light-theme .topic-report-empty-note,
body.light-theme .topic-report-mapping-note {
  background: rgba(255, 255, 255, 0.78);
}

.topic-report-mapping-note .topic-report-body {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.topic-report-reading-section {
  scroll-margin-top: 1.2rem;
}

.topic-report-reading-section.is-important {
  border-color: rgba(196, 154, 75, 0.28);
  background:
    linear-gradient(180deg, rgba(196, 154, 75, 0.08), rgba(196, 154, 75, 0)),
    var(--topic-report-paper);
}

body.light-theme .topic-report-reading-section.is-important {
  background:
    linear-gradient(180deg, rgba(196, 154, 75, 0.08), rgba(196, 154, 75, 0)),
    var(--topic-report-paper);
}

.topic-report-mapping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
}

.topic-report-mapping-card,
.topic-report-version-card {
  position: relative;
  z-index: 1;
  border-radius: 0.92rem;
  border: 1px solid var(--topic-report-line);
  background: rgba(5, 11, 19, 0.16);
}

body.light-theme .topic-report-mapping-card,
body.light-theme .topic-report-version-card {
  background: rgba(255, 255, 255, 0.8);
}

.topic-report-mapping-card {
  padding: 0.76rem 0.82rem;
}

.topic-report-mapping-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.52rem;
}

.topic-report-mapping-top strong {
  font-size: 1rem;
  font-weight: 760;
  color: var(--topic-report-ink);
}

.topic-report-mapping-top span,
.topic-report-mapping-meta {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--topic-report-subtle);
}

.topic-report-mapping-evidence {
  margin-top: 0.34rem;
  font-size: 0.96rem;
  line-height: 1.78;
  color: var(--topic-report-ink);
}

.topic-report-body {
  margin-top: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.96rem;
  border: 1px solid var(--topic-report-line);
  background: #131b26;
  box-shadow: none;
}

body.light-theme .topic-report-body {
  background: #fffdf9;
}

.topic-report-article-section {
  background: #18212d;
}

body.light-theme .topic-report-article-section {
  background: #fffefb;
}

.topic-report-article-section::before,
.topic-report-article-section::after {
  display: none;
}

.topic-report-body,
.topic-report-body p,
.topic-report-body li,
.topic-report-body blockquote {
  color: var(--topic-report-ink);
}

.topic-report-body p,
.topic-report-body li {
  font-family: var(--topic-report-serif);
  font-size: 1.08rem;
  line-height: 1.92;
}

.topic-report-body p + p,
.topic-report-body p + ul,
.topic-report-body p + ol,
.topic-report-body ul + p,
.topic-report-body ol + p {
  margin-top: 0.76rem;
}

.topic-report-body ul,
.topic-report-body ol {
  margin: 0.76rem 0 0;
  padding-left: 1.4rem;
}

.topic-report-body li + li {
  margin-top: 0.3rem;
}

.topic-report-body strong {
  color: var(--topic-report-ink);
  font-weight: 760;
}

.topic-report-body h1,
.topic-report-body h2,
.topic-report-body h3 {
  margin: 1rem 0 0.56rem;
  font-family: var(--topic-report-serif);
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.92;
  color: var(--topic-report-ink);
}

.topic-report-body blockquote {
  margin: 0.86rem 0;
  padding: 0.7rem 0.82rem;
  border-left: 3px solid var(--topic-report-accent);
  background: var(--topic-report-accent-soft);
}

.topic-report-version-section {
  margin: 0 0 0.92rem;
}

.topic-report-version-card {
  padding: 0.8rem 0.88rem 0.82rem 1rem;
  border-radius: 0.68rem;
}

.topic-report-version-card::before {
  content: "";
  position: absolute;
  left: 0.52rem;
  top: 0.82rem;
  bottom: 0.82rem;
  width: 2px;
  border-radius: 999px;
  background: rgba(122, 169, 184, 0.28);
}

.topic-report-version-card.is-current {
  border-color: rgba(196, 154, 75, 0.3);
  background:
    linear-gradient(90deg, var(--topic-report-accent-soft), transparent 48%),
    rgba(5, 11, 19, 0.16);
}

body.light-theme .topic-report-version-card.is-current {
  background:
    linear-gradient(90deg, var(--topic-report-accent-soft), transparent 48%),
    rgba(255, 255, 255, 0.84);
}

.topic-report-version-card.is-current::before {
  background: var(--topic-report-accent);
}

.topic-report-version-head {
  position: relative;
  z-index: 1;
  margin-bottom: 0.34rem;
}

.topic-report-version-summary {
  position: relative;
  z-index: 1;
  margin-top: 0.28rem;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--topic-report-ink);
}

.topic-report-directory-empty,
.topic-report-directory-loading {
  padding: 1rem 1.08rem;
  border-radius: 0.68rem;
  border: 1px dashed var(--topic-report-line-strong);
  background: rgba(5, 11, 19, 0.12);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--topic-report-subtle);
}

body.light-theme .topic-report-directory-empty,
body.light-theme .topic-report-directory-loading {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .topic-report-detail-facts,
  .topic-report-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-report-mapping-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topic-report-directory-head,
  .topic-report-detail-head,
  .topic-report-section,
  .topic-report-article-section,
  .topic-report-version-section,
  .topic-report-state-panel {
    padding: 0.9rem 0.96rem;
  }

  .topic-report-directory-heading,
  .topic-report-directory-card-top,
  .topic-report-dossier-topline,
  .topic-report-detail-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topic-report-directory-lead {
    grid-template-columns: 1fr;
    gap: 0.44rem;
  }

  .topic-report-directory-metrics,
  .topic-report-detail-facts,
  .topic-report-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-report-dossier,
  .topic-report-directory-card {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .topic-report-dossier-index {
    width: 4.2rem;
    min-height: 3.8rem;
  }

  .topic-report-directory-title {
    font-size: 1.28rem;
  }

  .topic-report-detail-title,
  .topic-report-headline {
    font-size: 1.46rem;
  }

  .topic-report-detail-summary-card {
    flex-basis: 7.8rem;
  }
}

.news-us-market-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.news-us-market-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-us-market-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.news-us-market-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.news-us-market-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  color: rgba(191, 219, 254, 0.92);
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.24);
}

.news-us-market-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
}

.news-us-index-card,
.news-us-list-card {
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(8px);
}

.news-us-index-card {
  padding: 0.32rem 0.78rem 0.34rem;
}

.news-us-index-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.52rem;
}

.news-us-index-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--fg);
}

.news-us-index-code {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.78);
}

.news-us-index-price {
  font-size: 1.04rem;
  font-weight: 780;
  line-height: 1.15;
  color: var(--fg);
}

.news-us-index-quote-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
}

.news-us-index-change,
.news-us-mover-pct {
  font-weight: 700;
}

.news-us-index-change {
  font-size: 0.96rem;
  line-height: 1;
  white-space: nowrap;
}

.news-us-market-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
}

.news-us-list-card {
  padding: 0.78rem 0.82rem 0.84rem;
}

.news-us-index-panel {
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
}

.news-us-list-card h4 {
  margin: 0 0 0.62rem;
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 760;
  color: var(--fg);
}

.news-us-index-list {
  display: flex;
  flex-direction: column;
  gap: 0.56rem;
}

.news-us-mover-list {
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
}

.news-us-mover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.news-us-mover-name {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 620;
  color: rgba(241, 245, 249, 0.96);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-us-mover-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.news-us-mover-price {
  font-size: 0.88rem;
  color: rgba(191, 219, 254, 0.9);
}

.news-us-mover-pct {
  font-size: 0.92rem;
}

.news-us-market-empty {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
}

.news-us-index-change.tone-up,
.news-us-mover-pct.tone-up {
  color: #f87171;
}

.news-us-index-change.tone-down,
.news-us-mover-pct.tone-down {
  color: #34d399;
}

.news-us-index-change.tone-flat,
.news-us-mover-pct.tone-flat {
  color: rgba(226, 232, 240, 0.72);
}

body.light-theme .news-us-market-title,
body.light-theme .news-us-index-name,
body.light-theme .news-us-list-card h4 {
  color: #0f172a;
}

body.light-theme .news-us-index-card,
body.light-theme .news-us-list-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.2);
}

body.light-theme .news-us-index-panel {
  background: transparent;
  border: none;
}

body.light-theme .news-us-index-code {
  color: rgba(100, 116, 139, 0.88);
}

body.light-theme .news-us-index-price {
  color: #0f172a;
}

body.light-theme .news-us-mover-name {
  color: #0f172a;
}

body.light-theme .news-us-mover-price {
  color: #334155;
}

body.light-theme .news-us-market-empty,
body.light-theme .news-us-index-change.tone-flat,
body.light-theme .news-us-mover-pct.tone-flat {
  color: rgba(100, 116, 139, 0.82);
}

@media (min-width: 900px) {
  .news-us-market-grid {
    grid-template-columns: minmax(260px, 1.05fr) repeat(3, minmax(0, 1fr));
  }
}

.news-link-inline {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #2563eb;
  text-decoration: underline;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.news-link-inline:active {
  opacity: 0.7;
}

.news-link-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.news-link-popup.open {
  display: flex;
}

.news-link-popup-panel {
  width: min(520px, 92vw);
  max-height: 80vh;
  background: #0f172a;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-link-popup-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.4rem;
  cursor: pointer;
}

.news-link-popup-title {
  font-size: 1rem;
  font-weight: 700;
}

.news-link-popup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.news-link-popup-item {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
}

.news-link-popup-item:active {
  opacity: 0.75;
}

body.light-theme .news-link-popup-panel {
  background: #ffffff;
  color: #111827;
}

body.light-theme .news-link-popup-close {
  color: #111827;
}

body.light-theme .news-link-popup-item {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  color: #111827;
}

.hype-summary-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hype-summary-popup.open {
  display: flex;
}

.hype-summary-popup-panel {
  width: min(560px, 92vw);
  max-height: 82vh;
  background: #0f172a;
  border-radius: 16px;
  padding: 14px 48px 16px 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.hype-summary-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.hype-summary-popup-title {
  font-size: 1rem;
  font-weight: 700;
}

.hype-summary-popup-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #cbd5f5;
  overflow-y: auto;
  white-space: pre-wrap;
}

body.light-theme .hype-summary-popup-panel {
  background: #ffffff;
  color: #111827;
}

body.light-theme .hype-summary-popup-close {
  color: #111827;
}

body.light-theme .hype-summary-popup-text {
  color: #334155;
}

.hype-topic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 130, 246, 0.65);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.9));
  color: #eff6ff;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding: 4px 12px;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.26);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.hype-topic-btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 7px rgba(37, 99, 235, 0.22);
}

.hype-topic-btn.is-disabled,
.hype-topic-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}


.hype-topic-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  z-index: 1220;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hype-topic-popup.open {
  display: flex;
}

.hype-topic-popup-panel {
  width: min(760px, 95vw);
  max-height: 86vh;
  background: #0f172a;
  border-radius: 16px;
  padding: 14px 18px 14px 14px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.hype-topic-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.hype-topic-popup-title {
  font-size: 1.22rem;
  font-weight: 700;
}

.hype-topic-popup-sub {
  font-size: 1.03rem;
  color: #94a3b8;
}

.hype-topic-popup-list {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hype-topic-item {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.6);
}

.hype-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.hype-topic-row-main {
  font-size: 1.08rem;
  color: #e2e8f0;
}

.hype-topic-code {
  color: #94a3b8;
}

.hype-topic-name {
  font-weight: 700;
}

.hype-topic-price {
  color: #f8fafc;
}

.hype-topic-pct {
  font-weight: 700;
}

.hype-topic-pct.pos {
  color: #ef4444;
}

.hype-topic-pct.neg {
  color: #22c55e;
}

.hype-topic-pct.neu {
  color: #94a3b8;
}

.hype-topic-cap {
  color: #cbd5f5;
}

.hype-topic-row-tags {
  margin-top: 4px;
}

.hype-topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  color: #fdba74;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.hype-topic-reason {
  color: #a1a1aa;
  font-size: 1.04rem;
  line-height: 1.62;
}

body.light-theme .hype-topic-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: rgba(37, 99, 235, 0.7);
  color: #eff6ff;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.2);
}

body.light-theme .hype-topic-popup-panel {
  background: #ffffff;
  color: #111827;
}

body.light-theme .hype-topic-popup-close {
  color: #111827;
}

body.light-theme .hype-topic-popup-sub {
  color: #64748b;
}

body.light-theme .hype-topic-item {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(148, 163, 184, 0.28);
}

body.light-theme .hype-topic-row-main {
  color: #111827;
}

body.light-theme .hype-topic-code {
  color: #64748b;
}

body.light-theme .hype-topic-cap {
  color: #334155;
}

body.light-theme .hype-topic-chip {
  border-color: rgba(234, 88, 12, 0.35);
  color: #c2410c;
}

body.light-theme .hype-topic-reason {
  color: #475569;
}

.concept-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0.5rem;
  margin: 0.06rem 0.12rem;
  border-radius: 0.28rem;
  border: 1px solid rgba(56, 189, 248, 0.26);
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
  font-weight: 680;
  font-size: 0.93em;
  cursor: pointer;
  transition: all 0.12s ease;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}
.concept-tag:hover,
.concept-tag:focus-visible {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.55);
  outline: none;
}
body.light-theme .concept-tag {
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.22);
  color: #0b6bc9;
}
body.light-theme .concept-tag:hover,
body.light-theme .concept-tag:focus-visible {
  background: rgba(10, 132, 255, 0.18);
  border-color: rgba(10, 132, 255, 0.45);
}

.concept-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 1rem;
}
.concept-overlay.open {
  display: flex;
}
.concept-overlay-panel {
  width: min(560px, 96vw);
  background: rgba(2, 6, 23, 0.96);
  color: #e2e8f0;
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-strong);
  padding: 0.85rem 0.9rem 0.9rem;
  position: relative;
  max-height: 75vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
body.light-theme .concept-overlay-panel {
  background: #ffffff;
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}
.concept-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.18);
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.concept-overlay-close:hover {
  background: rgba(56, 189, 248, 0.35);
}
body.light-theme .concept-overlay-close {
  background: rgba(0, 0, 0, 0.08);
}
body.light-theme .concept-overlay-close:hover {
  background: rgba(10, 132, 255, 0.18);
}
.concept-overlay-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.concept-overlay-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.concept-overlay-header h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0.005em;
}
.concept-overlay-meta {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.concept-overlay-body {
  margin-top: 0.4rem;
  flex: 1;
}
.concept-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.concept-detail-list li {
  display: block;
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 0.35rem;
}
body.light-theme .concept-detail-list li {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}
.concept-section-card {
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.12);
}
body.light-theme .concept-section-card {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}
.concept-detail-label {
  color: var(--muted);
  font-weight: 680;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}
.concept-overlay-actions {
  margin-top: 0.65rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}
.concept-detail-value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.35rem;
  line-height: 1.5;
  word-break: break-word;
}
.concept-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--fg);
  font-weight: 650;
  font-size: 0.92rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}
.concept-chip.ghost {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
  color: var(--accent);
}
.concept-chip.stat-chip {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.24);
  gap: 0.25rem;
}
.concept-stat-number {
  font-weight: 760;
}
.concept-stat-number.concept-stat-up {
  color: var(--rise);
}
.concept-stat-number.concept-stat-down {
  color: var(--fall);
}
body.light-theme .concept-chip {
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.2);
  color: #0f172a;
}
body.light-theme .concept-chip.ghost {
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.2);
  color: #0071e3;
}
body.light-theme .concept-chip.stat-chip {
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.24);
}
.concept-chip.muted {
  color: var(--muted);
  border-style: dashed;
  background: rgba(148, 163, 184, 0.08);
}

.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: 700;              /* keep width stable */
}

.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: #fcfdff;
  color: #031128;
  border-color: rgba(5, 16, 36, 0.06);
}

.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: #ffffff;
  color: #08162b;
  border-color: rgba(5, 16, 36, 0.05);
}
body.light-theme .toplist-table tbody tr:nth-child(even) td {
  background: #f5f8ff;
}

.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 {
  background: #fcfdff;
  color: #031128;
}
body.light-theme .toplist-table td:first-child {
  background: #ffffff;
  color: #08162b;
}
body.light-theme .toplist-table tbody tr:nth-child(even) td:first-child {
  background: #f5f8ff;
}

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

#hotlistCard .toplist-table {
  width: max-content;
  min-width: 0;
  table-layout: auto;
}
#hotlistCard .toplist-table th,
#hotlistCard .toplist-table td {
  padding: 0.35rem 0.45rem;
  white-space: nowrap;
  font-size: 0.96rem;
}
#hotlistCard .change-up {
  color: var(--danger);
}
#hotlistCard .change-down {
  color: var(--success);
}

.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);
}
body.light-theme .llm-result .sentiment-content {
  color: #0a152a;
  font-weight: 560;
}
.panorama-table-wrapper {
  max-height: 60vh;
  overflow-y: auto;
}
/* 概念板块作战地图历史列表支持滚动 */
#panoramaHistoryList {
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
}
#panoramaHistoryContent .table-scroll {
  max-height: 65vh;
  overflow-y: auto;
  overflow-x: auto;
  display: block;
}
.emotion-charts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#limitUpCard .card-header.limitup-title,
#mainThemeRelayCard .card-header.limitup-title {
  margin-top: 0.35rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.3rem;
}
#limitUpCard .card-header.limitup-title h2,
#mainThemeRelayCard .card-header.limitup-title h2 {
  font-size: clamp(1.26rem, 1.6vw, 1.4rem);
  font-weight: 745;
  letter-spacing: -0.006em;
}
#limitUpCard .card-header.limitup-title .pill-note,
#mainThemeRelayCard .card-header.limitup-title .pill-note {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--accent) !important;
  margin-left: 0.4rem;
}

.limitup-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
}

.limitup-tab {
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 0.56rem 1.2rem;
  font-size: 1.12rem;
  font-weight: 800;
  min-width: 7.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.limitup-tab.active {
  background: rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.9);
  color: #ffffff;
}

body.light-theme .limitup-tab {
  background: #f1f5f9;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.16);
}

body.light-theme .limitup-tab.active {
  background: #dbe8ff;
  border-color: rgba(59, 130, 246, 0.75);
  color: #0f172a;
}

.limitup-tab-panel.hidden {
  display: none;
}

.limitup-ai-title {
  font-size: 1.24rem;
  font-weight: 760;
}

.limitup-ai-latest .sentiment-main {
  margin-top: 0.2rem;
}

.limitup-ai-empty {
  text-align: center;
  padding: 0.8rem 0.6rem;
}
.limitup-metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 0.9rem;
}
.limitup-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 0 1 auto;
  min-width: max-content;
}
.limitup-metric-label {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.limitup-metric-value {
  font-size: 1.45rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  white-space: nowrap;
}
.limitup-metric-value small {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.limitup-metric-delta.up {
  color: var(--rise);
}
.limitup-metric-delta.down {
  color: var(--fall);
}
.limitup-metric-delta.flat {
  color: var(--muted);
}
.limitup-sector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 1.4rem;
}
.limitup-sector-chip {
  border-radius: 0.75rem;
  padding: 0.25rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.24);
  color: rgba(226, 232, 240, 0.92);
  transition: transform 0.12s ease, box-shadow 0.16s ease;
}
.limitup-sector-dot {
  font-size: 1.2rem;
  line-height: 1;
  color: currentColor;
}
.limitup-sector-name,
.limitup-sector-count {
  font-size: 1rem;
  font-weight: 600;
}
.limitup-sector-count {
  font-size: 1.2rem;
}
.limitup-sector-sep,
.limitup-sector-dot {
  opacity: 0.9;
  font-weight: 600;
  font-size: 1.1rem;
}
.limitup-sector-chip.rank-1 {
  background: #c81e4a;
  border-color: #c81e4a;
  color: #fff;
  box-shadow: 0 8px 16px rgba(200, 30, 74, 0.4);
}
.limitup-sector-chip.rank-2 {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
  box-shadow: 0 8px 16px rgba(217, 119, 6, 0.35);
}
.limitup-sector-chip.rank-3 {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
  box-shadow: 0 8px 16px rgba(234, 88, 12, 0.38);
}
.limitup-sector-clickable {
  cursor: pointer;
}
.limitup-sector-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(56, 189, 248, 0.3);
}
.limitup-sector-count {
  color: inherit;
}
.limitup-sector-sep {
  opacity: 0.85;
  font-weight: 600;
  font-size: 1rem;
}
body.light-theme .limitup-sector-chip {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
  color: #1e293b;
}
body.light-theme .limitup-sector-chip.rank-1 {
  background: #c81e4a;
  border-color: #c81e4a;
  color: #fff;
}
body.light-theme .limitup-sector-chip.rank-2 {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}
body.light-theme .limitup-sector-chip.rank-3 {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}
.limitup-gem {
  margin: 1rem 0 0.75rem;
}
.limitup-gem-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  padding: 0.85rem 0.75rem;
  background: rgba(15, 23, 42, 0.45);
  box-shadow: var(--shadow-light);
}
.limitup-gem-head {
  margin: 0 0 0.6rem;
}
.limitup-gem-title {
  color: #0f3fa8;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
body.light-theme .limitup-gem-title {
  color: #0f3fa8;
}
.limitup-gem-empty {
  color: var(--muted);
  font-size: 0.9rem;
}
body.light-theme .limitup-gem-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}
.limitup-ladder {
  margin: 0.85rem 0 0.9rem;
}
.limitup-ladder-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  padding: 0.85rem 0.75rem;
  background: rgba(15, 23, 42, 0.35);
  box-shadow: var(--shadow-light);
}
body.light-theme .limitup-ladder-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}
#limitUpCard .limitup-ladder-title {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f3fa8;
}
.limitup-ladder-note {
  font-size: 0.98rem;
  font-weight: 600;
  margin-left: 0.35rem;
}
.limitup-ladder-note.up {
  color: var(--rise);
}
.limitup-ladder-note.down {
  color: var(--fall);
}
.limitup-ladder-note.flat {
  color: var(--muted);
}
.limitup-ladder-group + .limitup-ladder-group {
  margin-top: 0.45rem;
}
.limitup-ladder-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}
.limitup-ladder-group-title::after {
  content: "：";
}
.limitup-ladder-items {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.limitup-ladder-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  padding: 0.05rem 0;
  min-width: 0;
}
.limitup-ladder-item.stale {
  opacity: 0.38;
}
.limitup-ladder-name {
  font-weight: 600;
  font-size: 1rem;
}
.limitup-ladder-sector {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.2;
  margin-left: 0;
}
.limitup-ladder-sector.rank-1 {
  color: #c81e4a;
}
.limitup-ladder-sector.rank-2 {
  color: #d97706;
}
.limitup-ladder-sector.rank-3 {
  color: #ea580c;
}
.limitup-ladder-fail {
  margin-right: 0;
  font-weight: 800;
  color: var(--rise);
  font-size: 1.35rem;
  line-height: 1;
}
.limitup-ladder-group {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  column-gap: 0.25rem;
  row-gap: 0.05rem;
  align-items: start;
}
.limitup-section-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  padding: 0.85rem 0.75rem;
  background: rgba(15, 23, 42, 0.45);
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-light);
}
body.light-theme .limitup-section-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}
.limitup-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.limitup-section-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.limitup-section-dot {
  font-size: 1rem;
  color: var(--muted);
}
.limitup-section-head h3 {
  font-size: 1.35rem;
}
.limitup-section-title .rank-1,
.limitup-table td.rank-1 {
  color: #c81e4a;
  font-weight: 700;
}
.limitup-section-title .rank-2,
.limitup-table td.rank-2 {
  color: #d97706;
  font-weight: 700;
}
.limitup-section-title .rank-3,
.limitup-table td.rank-3 {
  color: #ea580c;
  font-weight: 700;
}
.limitup-section-summary {
  margin: 0.35rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.limitup-section-count {
  font-weight: 600;
  font-size: 1rem;
}
.limitup-table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
}
.limitup-table {
  width: max-content;
  min-width: 1280px;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: auto;
  --lu-col1-width: 1px;
  --lu-col2-width: 1px;
}
.limitup-table th,
.limitup-table td {
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.35rem 0.3rem;
  vertical-align: top;
  white-space: nowrap;
  word-break: keep-all;
  min-width: 88px;
}
.limitup-table th {
  text-align: center;
}
.limitup-table td.left {
  text-align: left;
}
.limitup-table td:first-child,
.limitup-table td:nth-child(2) {
  font-weight: 700;
}
.limitup-table th:first-child,
.limitup-table td:first-child {
  position: sticky;
  left: 0;
  min-width: var(--lu-col1-width);
  width: var(--lu-col1-width);
  text-align: left;
  z-index: 5;
  background: rgba(15, 23, 42, 0.55);
}
.limitup-table th:nth-child(2),
.limitup-table td:nth-child(2) {
  position: sticky;
  left: var(--lu-col1-width);
  min-width: var(--lu-col2-width);
  width: var(--lu-col2-width);
  text-align: left;
  z-index: 4;
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 1px 0 0 rgba(148, 163, 184, 0.14);
}
.limitup-table th:first-child {
  z-index: 9;
}
.limitup-table th:nth-child(2) {
  z-index: 8;
}
.limitup-table tbody tr:nth-child(even) td:nth-child(2) {
  background: rgba(15, 23, 42, 0.46);
}
.limitup-streak-highlight {
  color: #b91c1c;
  font-weight: 700;
}
body.light-theme .limitup-table th,
body.light-theme .limitup-table td {
  border-color: rgba(15, 23, 42, 0.1);
}
body.light-theme .limitup-table th:first-child {
  background: #fcfdff;
}
body.light-theme .limitup-table td:first-child {
  background: #ffffff;
}
body.light-theme .limitup-table th:nth-child(2) {
  background: #fcfdff;
}
body.light-theme .limitup-table td:nth-child(2) {
  background: #ffffff;
}
body.light-theme .limitup-table tbody tr:nth-child(even) td:nth-child(2) {
  background: #f8fafc;
}
.limitup-table th {
  font-weight: 600;
  background: rgba(148, 163, 184, 0.12);
}
body.light-theme .limitup-table th {
  background: rgba(15, 23, 42, 0.05);
}
.limitup-stock-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  position: relative;
}
.limitup-stock-code {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: "SFMono-Regular", "JetBrains Mono", "Fira Mono", "Menlo", monospace;
}
.limitup-stock-name-text {
  font-size: 1.02rem;
  color: var(--fg);
}
.limitup-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.limitup-tag {
  border-radius: 8px;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  background: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}
.limitup-tag.neutral {
  background: rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
}
body.light-theme .limitup-tag {
  background: rgba(15, 23, 42, 0.08);
  color: #1f2937;
}
body.light-theme .limitup-tag.neutral {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.limitup-info-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.85);
  cursor: pointer;
  position: relative;
  background: transparent;
  margin-left: 0.2rem;
}
.limitup-info-dot:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.45);
  outline-offset: 2px;
}
.limitup-info-dot:hover,
.limitup-info-dot:focus-visible {
  border-color: rgba(56, 189, 248, 0.8);
  color: rgba(56, 189, 248, 0.9);
}
.limitup-info-bubble {
  position: absolute;
  top: 0;
  left: calc(100% + 12px);
  transform: none;
  min-width: 280px;
  max-width: min(520px, 80vw);
  max-height: 72vh;
  overflow-y: auto;
  overflow-x: hidden;
  word-break: break-word;
  white-space: normal;
  background: rgba(2, 6, 23, 0.95);
  color: #e2e8f0;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.82rem;
  line-height: 1.6;
  font-weight: 400;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 2000;
}
.limitup-info-dot:hover .limitup-info-bubble,
.limitup-info-dot:focus-visible .limitup-info-bubble {
  opacity: 1;
  visibility: visible;
}
body.light-theme .limitup-info-bubble {
  background: #ffffff;
  color: #1f2937;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

@media (max-width: 900px) {
  .limitup-info-bubble {
    position: fixed;
    left: 4vw;
    right: 4vw;
    top: auto;
    bottom: 16px;
    max-width: none;
    max-height: 60vh;
    transform: none;
  }
}

/* ========== 作战卡片（移动端重新设计） ========== */
.battle-card-container {
  /* 与财经新闻解读的外层背景框一致 */
  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;
  margin: 0 0 1.5rem;
}

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

.battle-card-container::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;
}

.battle-card-content {
  /* 与财经新闻解读的内层矩形背景框一致 */
  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);
  position: relative;
  overflow: visible;
  margin-top: 0.85rem;
}

.battle-card-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem; /* 与内层背景框的 margin-top 对应 */
  padding-bottom: 0;
  border-bottom: none; /* 标题在外层背景框内，不需要底部边框 */
  z-index: 1;
}

.battle-card-title {
  margin: 0;
  font-size: clamp(1.22rem, 1.6vw, 1.38rem);
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.28;
  color: var(--fg);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}

.battle-card-time {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--accent) !important;
  margin-left: 0.4rem;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  display: inline;
  vertical-align: baseline;
}

.battle-fund-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
}
.battle-fund-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.battle-fund-label {
  font-weight: 650;
  color: var(--fg);
}
.battle-fund-main {
  font-weight: 750;
  color: var(--fg);
}
.battle-fund-delta {
  font-size: 0.88rem;
  font-weight: 650;
  margin-left: 0.35rem;
}
.battle-fund-delta.fund-up {
  color: #ef4444;
}
.battle-fund-delta.fund-down {
  color: #10b981;
}
.battle-fund-delta.fund-flat {
  color: var(--fg-muted);
}

.battle-gauge-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.battle-gauge-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center; /* 相对于情绪分数仪表板上下居中 */
}

/* 手机版：右侧内容区域，包含仓位建议/操作建议和summary-box */
.battle-right-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 三列均分 */
  grid-template-rows: auto auto;
  gap: 0.75rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .battle-gauge-row {
    gap: 3.5rem;
    align-items: center; /* 相对于情绪分数仪表板上下居中 */
  }
  .battle-gauge-container {
    width: 300px;
    height: 300px;
  }
  .battle-summary-box {
    gap: 0.85rem;
  }
  .battle-summary-item {
    padding: 0.9rem 1.1rem;
  }
  body.terminal-desktop .battle-card-container {
    padding: 1.15rem;
  }
  body.terminal-desktop .battle-card-content {
    padding: 0.9rem;
  }
  body.terminal-desktop .battle-gauge-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  body.terminal-desktop .battle-gauge-wrapper::before {
    width: 220px;
    height: 220px;
  }
  body.terminal-desktop .battle-gauge-container {
    width: min(220px, 100%);
    height: min(220px, 100vw);
  }
  body.terminal-desktop .battle-right-content {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  body.terminal-desktop .battle-advice-position-box {
    grid-column: 1;
    grid-row: auto;
    gap: 0.6rem;
  }
  body.terminal-desktop .battle-position-simple,
  body.terminal-desktop .battle-advice-simple-inline,
  body.terminal-desktop .battle-summary-item {
    padding: 0.8rem 0.9rem;
  }
  body.terminal-desktop .battle-right-content .battle-summary-box {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }
}

.battle-gauge-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex-shrink: 0;
  min-width: 0;
  align-items: center;
  position: relative;
  /* 添加微妙的背景光晕效果 */
}

.battle-gauge-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* 仓位建议和操作建议作为summary-item的样式（仅手机版） */
.battle-position-item .battle-position-inline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.battle-position-bar-inline {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.battle-position-fill-inline {
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s ease;
}

.battle-position-fill-inline[data-position="0"],
.battle-position-fill-inline[data-position="1"],
.battle-position-fill-inline[data-position="2"],
.battle-position-fill-inline[data-position="3"] {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.battle-position-fill-inline[data-position="4"],
.battle-position-fill-inline[data-position="5"],
.battle-position-fill-inline[data-position="6"] {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.battle-position-fill-inline[data-position="7"],
.battle-position-fill-inline[data-position="8"],
.battle-position-fill-inline[data-position="9"],
.battle-position-fill-inline[data-position="10"] {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.battle-advice-item .battle-advice-value-inline {
  font-size: 1.05rem; /* 调大字体 */
  font-weight: 700;
}

.battle-advice-value-inline.advice-buy {
  color: #dc2626; /* 红色 - 买入 */
}

.battle-advice-value-inline.advice-sell {
  color: #16a34a; /* 绿色 - 卖出 */
}

.battle-advice-value-inline.advice-other {
  color: #d97706; /* 橙色 - 其他 */
}

.battle-gauge-container {
  position: relative;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 添加精致的容器阴影 */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
  border-radius: 50%;
  /* 添加微妙的背景渐变 */
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.02) 0%, transparent 60%);
}

.battle-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  /* 移除粗糙的 drop-shadow，改为在容器上使用更精致的阴影 */
}

.battle-gauge-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.1); /* 增强可见度（从0.04提升到0.1） */
  stroke-width: 21;
  transition: stroke-opacity 0.3s ease;
}

.battle-gauge-bg-inner {
  fill: none;
  stroke: rgba(148, 163, 184, 0.05); /* 增强可见度（从0.015提升到0.05） */
  stroke-width: 15;
  transition: stroke-opacity 0.3s ease;
}

.battle-gauge-progress {
  fill: none;
  stroke-width: 21;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  /* 使用更精细的发光效果 */
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.15)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.battle-gauge-progress-inner {
  fill: none;
  stroke-width: 13; /* 手机版：调细一点点（从15减小到13） */
  stroke-linecap: round;
  stroke-opacity: 0.35;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 小屏版：保持原有的内圈粗细 */
.small-app .battle-gauge-progress-inner {
  stroke-width: 15;
}

.battle-gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

.battle-gauge-score {
  display: block;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  /* 移除 opacity，颜色由 JavaScript 动态设置 */
  margin-bottom: 0.45rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
}

.battle-gauge-label {
  display: block;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* 手机版：仓位建议和操作建议单独区域（第一列） */
.battle-advice-position-box {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.battle-position-simple {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem; /* 完全透明的背景框，只为了保持间距 */
  background: transparent; /* 完全透明 */
  border: none; /* 无边框 */
  border-radius: 10px; /* 保持圆角，但不可见 */
}

.battle-position-simple-label {
  font-size: 1.15rem; /* 调大字体 */
  font-weight: 700;
  color: var(--fg);
}

.battle-position-simple-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
}

.battle-position-bar-simple {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.battle-position-fill-simple {
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s ease;
}

.battle-position-fill-simple[data-position="0"],
.battle-position-fill-simple[data-position="1"],
.battle-position-fill-simple[data-position="2"],
.battle-position-fill-simple[data-position="3"] {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.battle-position-fill-simple[data-position="4"],
.battle-position-fill-simple[data-position="5"],
.battle-position-fill-simple[data-position="6"] {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.battle-position-fill-simple[data-position="7"],
.battle-position-fill-simple[data-position="8"],
.battle-position-fill-simple[data-position="9"],
.battle-position-fill-simple[data-position="10"] {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.battle-advice-simple-inline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1rem; /* 完全透明的背景框，只为了保持间距 */
  background: transparent; /* 完全透明 */
  border: none; /* 无边框 */
  border-radius: 10px; /* 保持圆角，但不可见 */
}

.battle-advice-simple-inline-label {
  font-size: 1.15rem; /* 与仓位建议保持一致 */
  color: var(--fg); /* 与仓位建议对齐，使用var(--fg)而不是var(--muted) */
  font-weight: 700; /* 与仓位建议保持一致 */
}

.battle-advice-simple-inline-value {
  font-size: 1.05rem; /* 与仓位建议对齐（从1.2rem改为1.05rem） */
  font-weight: 600; /* 与仓位建议对齐（从700改为600） */
  color: var(--fg); /* 与仓位建议对齐 */
}

/* 操作建议中最后两个字的颜色 */
.battle-advice-simple-inline-value .advice-buy {
  color: #dc2626; /* 红色 - 买入 */
}

.battle-advice-simple-inline-value .advice-sell {
  color: #16a34a; /* 绿色 - 卖出 */
}

.battle-advice-simple-inline-value .advice-other {
  color: #d97706; /* 橙色 - 其他所有 */
}

/* 手机版：summary-box在第二列和第三列 */
.battle-right-content .battle-summary-box {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 两列 */
  grid-template-rows: repeat(2, auto); /* 两行 */
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .battle-summary-box {
    grid-template-columns: repeat(2, 1fr); /* 小屏幕改为两列 */
    grid-template-rows: repeat(3, auto); /* 三行 */
    gap: 0.65rem;
  }
}

.battle-summary-item {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.battle-summary-item:hover {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.battle-summary-label {
  font-size: 0.98rem; /* 调大一点点 */
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.battle-summary-value {
  font-size: 1.12rem; /* 调大一点点 */
  font-weight: 600;
  color: var(--fg);
  line-height: 1.6;
}

.battle-emotion-section {
  margin-top: 1rem;
}

.battle-emotion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
}

.battle-emotion-item {
  padding: 0.14rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 0;
}

/* 手机版宽屏：情绪数据固定 7 列；小平板沿用原布局 */
@media (min-width: 1100px) {
  .battle-emotion-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .battle-emotion-item {
    flex: initial;
    width: 100%;
  }
}

.battle-emotion-label {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.battle-emotion-label-delta {
  margin-left: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.battle-emotion-value {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
}

.battle-emotion-value.value-red {
  color: #ef4444;
}

.battle-emotion-value.value-green {
  color: #22c55e;
}

.battle-emotion-delta {
  font-size: 0.9rem;
  font-weight: 700;
}

.battle-emotion-label-delta.delta-up {
  color: #ef4444;
}

.battle-emotion-label-delta.delta-down {
  color: #22c55e;
}

.battle-emotion-label-delta.delta-flat {
  color: var(--fg-muted);
}

.battle-emotion-delta.delta-up {
  color: #ef4444;
}

.battle-emotion-delta.delta-down {
  color: #22c55e;
}

.battle-emotion-delta.delta-flat {
  color: var(--fg-muted);
}

.battle-summary-value.trend-up { color: var(--rise); }
.battle-summary-value.trend-down { color: var(--fall); }

/* 手机版：情绪周期与预判和指数短期趋势颜色规则（与小屏版对齐） */
.battle-summary-value.mv-red {
  color: #ef4444;
}

.battle-summary-value.mv-green {
  color: #22c55e;
}

.battle-summary-value.mv-orange {
  color: #f97316;
}

.battle-summary-value.mv-light-red {
  color: #fb7185;
}

.battle-summary-value.mv-light-green {
  color: #6ee7b7;
}

body.light-theme .battle-summary-value.mv-red {
  color: #ef4444;
}

body.light-theme .battle-summary-value.mv-green {
  color: #16a34a;
}

body.light-theme .battle-summary-value.mv-orange {
  color: #f97316;
}

body.light-theme .battle-summary-value.mv-light-red {
  color: #fb7185;
}

body.light-theme .battle-summary-value.mv-light-green {
  color: #22c55e;
}

.battle-summary-value .prob-text {
  font-size: 0.7em !important;
  opacity: 0.8;
  display: inline-block;
}

.battle-style-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(167, 139, 250, 0.18) 100%);
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c7d2fe;
}

.battle-position-section {
  margin-top: 0.6rem;
  width: 100%;
}

.battle-position-label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.battle-position-bar {
  width: 100%;
  height: 10px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.battle-position-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}

.battle-position-fill[data-position="0"],
.battle-position-fill[data-position="1"],
.battle-position-fill[data-position="2"],
.battle-position-fill[data-position="3"] {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.battle-position-fill[data-position="4"],
.battle-position-fill[data-position="5"],
.battle-position-fill[data-position="6"] {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.battle-position-fill[data-position="7"],
.battle-position-fill[data-position="8"],
.battle-position-fill[data-position="9"],
.battle-position-fill[data-position="10"] {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.battle-advice-simple {
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(167, 139, 250, 0.12) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.battle-advice-simple-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.battle-advice-simple-value {
  font-weight: 800;
  margin-left: 0.4rem;
  font-size: 0.95rem;
  color: var(--fg);
}

.battle-advice-simple-value.advice-buy {
  color: #ef4444; /* 红色 - 买入 */
}

.battle-advice-simple-value.advice-sell {
  color: #22c55e; /* 绿色 - 卖出 */
}

.battle-advice-simple-value.advice-other {
  color: #f59e0b; /* 橙色 - 其他所有 */
}

.battle-concepts-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.battle-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 0.65rem;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.4rem;
}

.battle-section-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, #60a5fa 0%, #a78bfa 100%);
  border-radius: 3px;
  align-self: center;
}

.battle-section-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.battle-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}

.battle-concept-card {
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.battle-concept-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-1px);
}

.battle-concept-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.72);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.battle-concept-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.battle-concept-chip {
  display: inline-block;
  padding: 0.26rem 0.6rem;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 650;
  color: #cfe4ff;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.28);
  white-space: nowrap;
}

.battle-concept-chip.main { background: rgba(236, 72, 153, 0.15); border-color: rgba(236, 72, 153, 0.25); color: #fecdd3; }
.battle-concept-chip.benefit { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.25); color: #bbf7d0; }
.battle-concept-chip.risk { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.26); color: #fde68a; }

.battle-concept-desc {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #e5e7eb;
}

/* 板块关注详细显示样式 */
.battle-concept-detail {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.battle-concept-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.battle-concept-group-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.1rem;
  margin-top: 0.5rem;
  position: relative;
  padding-bottom: 0.1rem;
}

.battle-concept-group-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0.25;
}

.battle-concept-group-title:first-child {
  margin-top: 0;
}

.battle-concept-group-title.mainline,
.battle-concept-group-title.news {
  color: #ef4444;
}

.battle-concept-group-title.mainline::after,
.battle-concept-group-title.news::after {
  background-color: #ef4444;
}

.battle-concept-group-title.rotation,
.battle-concept-group-title.trial {
  color: #f97316;
}

.battle-concept-group-title.rotation::after,
.battle-concept-group-title.trial::after {
  background-color: #f97316;
}

/* 四个板块内容区域的统一样式 */
.battle-concept-group-title + div {
  font-size: 1.02rem;
}

.battle-concept-group-title + div .concept-tag {
  font-size: 1.02rem;
  padding: 0.1rem 0.5rem;
  margin: 0.06rem 0.12rem;
  line-height: 1.4;
  border-radius: 0.28rem;
  font-weight: 680;
}

.battle-concept-group-title + div .battle-concept-info-btn {
  width: 16px;
  height: 16px;
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.battle-concept-group-title + div .battle-concept-field-label,
.battle-concept-group-title + div .battle-concept-field-value {
  font-size: 1.02rem;
}

.battle-concept-group-title + div .battle-news-sep {
  font-size: 1.02rem;
}

.battle-concept-item {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.battle-concept-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  line-height: 1.6;
}

.battle-concept-inline-field {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
  font-size: 0.88rem;
}

.battle-concept-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  position: relative;
}

.battle-concept-name .concept-tag {
  position: relative;
}

.battle-concept-info-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: inline-block;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.85);
  cursor: pointer;
  position: relative;
  background: transparent;
  margin-left: 0.3rem;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1;
  vertical-align: middle;
  text-align: center;
}

.battle-concept-info-btn:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.45);
  outline-offset: 2px;
}

.battle-concept-info-btn:hover,
.battle-concept-info-btn:focus-visible {
  border-color: rgba(56, 189, 248, 0.8);
  color: rgba(56, 189, 248, 0.9);
  transform: scale(1.1);
}

.battle-concept-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.battle-concept-field-label {
  font-weight: 600;
  color: var(--muted);
  display: inline;
  margin-right: 0.2rem;
}

.battle-concept-field-value {
  color: var(--fg);
  display: inline;
}

/* 涨停强势板块样式 */
.battle-limitup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.battle-limitup-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.battle-limitup-sep {
  color: var(--muted);
  margin: 0 0.2rem;
}

.battle-limitup-count {
  color: var(--muted);
  font-weight: 600;
}

/* 新闻相关板块样式 */
.battle-news-section {
  margin-top: 0.6rem;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
}

.battle-news-section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.battle-news-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  flex-shrink: 0;
}

.battle-news-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.battle-news-sep {
  color: var(--muted);
  margin: 0 0.1rem;
}

/* 概念信息弹出框样式 */
.battle-concept-info-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.battle-concept-info-popup.open {
  opacity: 1;
  visibility: visible;
}

.battle-concept-info-popup-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 90%;
  max-height: 80vh;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.battle-concept-info-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 1;
}

.battle-concept-info-popup-close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--fg);
}

.battle-concept-info-popup-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fg);
  max-height: calc(80vh - 3rem);
}

.battle-concept-popup-item {
  margin: 0;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.battle-concept-popup-item:last-child {
  margin-bottom: 0;
}

.assistant-popup-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.battle-concept-popup-label {
  font-weight: 700;
  color: var(--fg);
  display: inline;
  margin-right: 0.3rem;
}

.battle-concept-popup-value {
  font-weight: 400;
  color: var(--fg);
  opacity: 0.9;
  display: inline;
}

.battle-concept-popup-title-row {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.battle-concept-popup-title-row .battle-concept-popup-label {
  font-weight: 800;
  font-size: 1.05rem;
}

.battle-concept-popup-title-row .battle-concept-popup-value {
  font-weight: 800;
  font-size: 1.05rem;
  opacity: 1;
}

.battle-concept-popup-list-item {
  padding-left: 1rem;
  position: relative;
}

.battle-concept-popup-list-item::before {
  content: '•';
  position: absolute;
  left: 0.3rem;
  color: var(--muted);
  font-weight: bold;
}

body.light-theme .battle-concept-popup-label {
  color: var(--fg);
}

body.light-theme .battle-concept-popup-value {
  color: var(--fg);
  opacity: 0.85;
}

.battle-concept-info-popup-body .concept-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 0.2rem;
}

.battle-concept-info-popup-body .concept-tag:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

/* 浅色主题样式 */
body.light-theme .battle-concept-item {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .battle-news-section {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .battle-concept-info-popup-content {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.light-theme .battle-concept-info-popup-body .concept-tag {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #2563eb;
}

body.light-theme .battle-concept-info-popup-body .concept-tag:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.battle-paths-section {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}

.battle-path-item {
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid;
  border-radius: 8px;
}

.battle-path-item.path-up {
  border-color: var(--rise);
  background: rgba(239, 68, 68, 0.05);
}

.battle-path-item.path-down {
  border-color: var(--fall);
  background: rgba(34, 197, 94, 0.05);
}

.battle-path-item.path-neutral {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.05);
}

.battle-path-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.25rem;
}

.battle-path-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0;
}

.battle-path-text {
  color: var(--fg);
}

.battle-path-item.path-up .battle-path-text,
.battle-path-item.path-up .battle-path-prob {
  color: #dc2626; /* 更深的红色 */
}

.battle-path-item.path-neutral .battle-path-text,
.battle-path-item.path-neutral .battle-path-prob {
  color: #d97706; /* 更深的橙色 */
}

.battle-path-item.path-down .battle-path-text,
.battle-path-item.path-down .battle-path-prob {
  color: #16a34a; /* 更深的绿色 */
}

.battle-path-separator {
  margin: 0 0.15rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.08rem;
}

.battle-path-prob {
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
}

.battle-path-desc {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--fg);
}

.battle-path-desc strong {
  font-weight: 700;
  color: var(--fg);
}

.battle-path-desc p {
  margin: 0.4rem 0;
}

.battle-path-desc p:last-child {
  margin-bottom: 0;
}

.battle-one-sentence-section {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.battle-one-sentence {
  padding: 0.9rem;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(167, 139, 250, 0.05) 100%);
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  font-size: 1.08rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--fg);
  position: relative;
}

.battle-one-sentence.alt {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(14, 165, 233, 0.12));
  border-color: rgba(52, 211, 153, 0.3);
}

.battle-structure {
  margin-top: 1rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-radius: 12px;
}

.battle-structure-preview {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.battle-structure-full {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #e5e7eb;
}

.battle-collapse {
  margin-top: 0.3rem;
}

.battle-collapse summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
  user-select: none;
}

.battle-card-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.battle-expand-btn {
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.74rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  cursor: pointer;
}
.battle-expand-btn:hover {
  border-color: rgba(96, 165, 250, 0.6);
}

.battle-concept-grid.collapsed {
  max-height: 140px;
  overflow: hidden;
}

.battle-concept-suggestion {
  margin-top: 1.2rem;
  position: relative;
  z-index: 1;
}

.battle-detail-content {
  margin-top: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--fg);
}

.battle-detail-content h1,
.battle-detail-content h2,
.battle-detail-content h3,
.battle-detail-content h4 {
  margin: 0.35rem 0 0.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.battle-detail-content h1,
.battle-detail-content h2 {
  font-size: 1.28rem;
}

.battle-detail-content h3 {
  font-size: 1.16rem;
}

.battle-detail-content h4 {
  font-size: 1.06rem;
}

.battle-detail-content strong {
  font-weight: 700;
  color: var(--fg);
}

.battle-detail-content em {
  font-style: italic;
  color: var(--accent);
}

.battle-detail-content p {
  margin: 0 0 0.5rem 0;
}

.battle-detail-content p:last-child {
  margin-bottom: 0;
}

.battle-detail-content ul,
.battle-detail-content ol {
  padding-left: 0.8rem;
  margin: 0.42rem 0 0.36rem;
  list-style-position: outside;
  list-style-type: disc;
}

.battle-detail-content ul ul,
.battle-detail-content ol ul {
  list-style-type: circle;
  margin-top: 0.25rem;
}

.battle-detail-content ol {
  list-style-type: decimal;
}

.battle-detail-content li {
  font-size: 1.02rem;
  font-weight: 560;
  line-height: 1.7;
}

.battle-detail-content li + li {
  margin-top: 0.18rem;
}

.battle-detail-content.hidden {
  display: none;
}

body.light-theme .battle-card-container {
  /* 与财经新闻解读的外层背景框一致 */
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

body.light-theme .battle-card-content {
  /* 与财经新闻解读的内层矩形背景框一致 */
  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);
}

body.light-theme .battle-card-title {
  color: #0f172a;
}

body.light-theme .battle-card-time {
  color: #0071e3 !important;
  opacity: 0.9;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

body.light-theme .battle-gauge-bg {
  stroke: rgba(15, 23, 42, 0.08);
}

body.light-theme .battle-gauge-bg-inner {
  stroke: rgba(15, 23, 42, 0.06);
}

body.light-theme .battle-gauge-score {
  /* 颜色由 JavaScript 动态设置，移除固定颜色和透明度 */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.light-theme .battle-gauge-label {
  color: rgba(15, 23, 42, 0.6);
}

body.light-theme .battle-summary-item {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.1);
}

body.light-theme .battle-emotion-item {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .battle-emotion-value {
  color: #0f172a;
}

body.light-theme .battle-emotion-value.value-red {
  color: #ef4444;
}

body.light-theme .battle-emotion-value.value-green {
  color: #16a34a;
}

body.light-theme .battle-summary-item:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.15);
}

body.light-theme .battle-summary-value {
  color: #0f172a;
}

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

body.light-theme .battle-concept-card:hover {
  background: rgba(15, 23, 42, 0.04);
}

body.light-theme .battle-path-item {
  background: rgba(15, 23, 42, 0.02);
}

body.light-theme .battle-path-text {
  color: #030712;
}

body.light-theme .battle-path-desc {
  color: #030712;
}

body.light-theme .battle-path-desc strong {
  color: #030712;
}

body.light-theme .battle-one-sentence {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.06) 0%, rgba(167, 139, 250, 0.04) 100%);
  border-color: rgba(96, 165, 250, 0.15);
  color: #030712;
}

body.light-theme .battle-detail-content {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
  color: #030712;
}

body.light-theme .battle-detail-content strong {
  color: #030712;
}

body.light-theme .battle-advice-simple {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(167, 139, 250, 0.12) 100%);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.light-theme .battle-advice-simple-value.advice-buy {
  color: #dc2626; /* 红色 - 买入 */
}

body.light-theme .battle-advice-simple-value.advice-sell {
  color: #16a34a; /* 绿色 - 卖出 */
}

body.light-theme .battle-advice-simple-value.advice-other {
  color: #d97706; /* 橙色 - 其他所有 */
}

/* 浅色模式下操作建议内联样式的颜色 */
body.light-theme .battle-advice-simple-inline-value .advice-buy {
  color: #dc2626; /* 红色 - 买入 */
}

body.light-theme .battle-advice-simple-inline-value .advice-sell {
  color: #16a34a; /* 绿色 - 卖出 */
}

body.light-theme .battle-advice-simple-inline-value .advice-other {
  color: #d97706; /* 橙色 - 其他所有 */
}

body.light-theme .battle-position-bar {
  background: rgba(15, 23, 42, 0.1);
}

/* 浅色模式下的仪表盘优化 */
body.light-theme .battle-gauge-container {
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
}

body.light-theme .battle-gauge-wrapper::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
}

body.light-theme .battle-gauge-bg {
  stroke: rgba(15, 23, 42, 0.12);
}

body.light-theme .battle-gauge-bg-inner {
  stroke: rgba(15, 23, 42, 0.06);
}

body.light-theme .battle-gauge-progress {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.08)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.06));
}

body.light-theme .battle-gauge-container {
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.06)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.03));
}

body.light-theme .battle-section-title {
  color: #0f172a;
}

@media (max-width: 520px) {
  .battle-gauge-row { flex-direction: column; align-items: center; }
  .battle-gauge-container { width: 130px; height: 130px; }
  .battle-concept-grid { grid-template-columns: 1fr; }
  .battle-paths-section { grid-template-columns: 1fr; }
}


/* Mobile viewport guards: keep scrollable areas from expanding the page width. */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .tab-nav {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overscroll-behavior-x: contain;
  }

  .battle-card-container,
  .battle-card-content,
  .battle-gauge-section,
  .battle-gauge-row,
  .battle-right-content,
  .battle-right-content .battle-summary-box,
  .battle-summary-item {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .battle-card-container {
    overflow: hidden;
  }

  .battle-card-content {
    overflow: hidden;
  }

  .battle-gauge-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    justify-items: center;
  }

  .battle-right-content {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .battle-advice-position-box,
  .battle-right-content .battle-summary-box {
    grid-column: 1;
    grid-row: auto;
  }

  .battle-right-content .battle-summary-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .battle-summary-label,
  .battle-summary-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* 抽屉菜单样式（手机版） */
.icon-btn {
  position: relative;
  width: 58px;
  height: 32px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6.5px;
  cursor: pointer;
  transform: translateY(0);
  transition: opacity 0.2s ease;
  z-index: 300;
}

.icon-btn:hover {
  opacity: 0.8;
}

.icon-btn .icon-bar {
  display: block;
  width: 26px;
  height: 2.9px;
  border-radius: 3px;
  background: #9f1239;
  transition: background 0.2s ease;
}

body.light-theme .icon-btn .icon-bar {
  background: #9f1239;
}

.menu-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  z-index: 999;
  backdrop-filter: blur(2px);
}

.menu-panel.hidden {
  display: none;
}

.menu-panel .menu-drawer {
  width: min(420px, 65vw);
  max-width: 90vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1rem;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow-y: auto;
}

.menu-panel.open .menu-drawer {
  transform: translateX(0);
}

.menu-panel.open {
  display: flex;
}

.drawer-section {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.drawer-section:last-child {
  border-bottom: none;
}

.drawer-title {
  margin: 0;
  font-weight: 700;
  color: var(--fg);
  font-size: 0.95rem;
}

.drawer-hint.strong {
  color: var(--fg);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.drawer-hint {
  margin: 0 0 0.5rem 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

body.light-theme .drawer-hint {
  color: #1d2841;
  font-weight: 500;
}

.drawer-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.drawer-input-group .ghost-btn {
  margin-top: 0;
}

/* 抽屉输入框样式 - 与 K线问盘助手对齐 */
.drawer-input-group input {
  width: 100%;
  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;
  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;
}

.drawer-input-group input::placeholder {
  color: rgba(248, 250, 252, 0.62);
}

.drawer-input-group input::-webkit-input-placeholder {
  color: rgba(248, 250, 252, 0.62);
}

.drawer-input-group 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);
}

.ghost-btn.block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.drawer-footer {
  margin: 1rem 0 0;
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

/* 抽屉中的 role-chip 样式 */
.drawer-section .role-chip-drawer {
  display: inline-block;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.1);
}

body.light-theme .drawer-section .role-chip-drawer {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Light theme drawer */
body.light-theme .menu-panel {
  background: rgba(0, 0, 0, 0.15);
}

body.light-theme .menu-panel .menu-drawer {
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

body.light-theme .drawer-section {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .drawer-title {
  color: #0f172a;
}

body.light-theme .drawer-hint.strong {
  color: #0f172a;
}

body.light-theme .drawer-hint {
  color: #5f6b7a;
}

/* 浅色模式 - 抽屉输入框 */
body.light-theme .drawer-input-group 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 .drawer-input-group input::placeholder,
body.light-theme .drawer-input-group input::-webkit-input-placeholder {
  color: rgba(15, 23, 42, 0.45);
}

body.light-theme .drawer-input-group 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);
}

/* 浅色模式 - 抽屉 block 按钮统一（强制覆盖） */
body.light-theme .drawer-section .ghost-btn.block {
  background: #ffffff !important;
  color: #081225 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .drawer-section .ghost-btn.block.secondary {
  border-color: rgba(148, 163, 184, 0.5) !important;
  color: var(--muted) !important;
}

body.light-theme .drawer-section .ghost-btn.small.block {
  background: #ffffff !important;
  color: #081225 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .drawer-section .ghost-btn.block:hover {
  border-color: rgba(56, 189, 248, 0.6) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.28) !important;
}

body.light-theme .drawer-section .ghost-btn.block.game-launch-btn {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.35) !important;
}

body.light-theme .drawer-section .ghost-btn.block.game-launch-btn:hover {
  border-color: #f87171 !important;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.45) !important;
}

body.light-theme .drawer-section .ghost-btn.primary.solid {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

body.light-theme .drawer-section .ghost-btn.primary.solid:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.35);
}

body.light-theme .drawer-footer {
  color: #0f172a;
}

/* 抽屉底部茶文字和图片 */
.drawer-tea-text {
  margin: 1rem 0 0.75rem 0;
  color: var(--fg);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

body.light-theme .drawer-tea-text {
  color: #0f172a;
}

.drawer-tea-image {
  margin: 0.5rem 0 0;
  text-align: center;
}

.drawer-tea-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.2);
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

body.light-theme .drawer-tea-image img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.drawer-tea-image img:active {
  transform: scale(0.98);
}

/* 抽屉按钮样式 - 与 K线问盘助手对齐，强制统一所有 block 按钮 */
.drawer-section .ghost-btn.block {
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0.55rem 1.2rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-radius: 0.75rem !important;
  border: 1px solid var(--border) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: var(--fg) !important;
  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) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-top: 0.25rem;
  margin-bottom: 0;
  box-sizing: border-box;
}

/* 统一 secondary 按钮样式 */
.drawer-section .ghost-btn.block.secondary {
  border-color: rgba(148, 163, 184, 0.5) !important;
  color: var(--muted) !important;
}

/* 统一 small.block 按钮样式（覆盖 small 类的样式） */
.drawer-section .ghost-btn.small.block {
  min-height: 44px !important;
  height: 44px !important;
  font-size: 0.9rem !important;
  padding: 0.55rem 1.2rem !important;
}

/* hover 效果统一 */
.drawer-section .ghost-btn.block:hover {
  border-color: rgba(56, 189, 248, 0.6) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.28) !important;
}

.drawer-section .ghost-btn.block.game-launch-btn {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.35) !important;
}

.drawer-section .ghost-btn.block.game-launch-btn:hover {
  border-color: #f87171 !important;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.45) !important;
}

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

.drawer-section .ghost-btn.primary.solid:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.35);
}
.unusual-pred-item {
  margin-bottom: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(248, 250, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 16px rgba(15, 23, 42, 0.04);
}
body.light-theme .unusual-pred-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}
.unusual-pred-item:last-child {
  margin-bottom: 0;
}

.unusual-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.45rem 0.55rem;
}
body.light-theme .unusual-box {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06);
}

.unusual-list-scroll {
  max-height: none;
  overflow: visible;
}
.unusual-multi-block {
  margin-top: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  vertical-align: middle;
}

.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-btn:hover {
  color: var(--fg);
  border-color: rgba(100, 116, 139, 0.6);
}

.share-btn:active {
  transform: translateY(1px);
}

.share-btn-placeholder {
  visibility: hidden;
  pointer-events: none;
}

/* ===== TTS 语音播报按钮 ===== */
.tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  margin-top: -2px;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
  font-size: 0;
  line-height: 1;
  flex-shrink: 0;
}

.battle-card-title .battle-tts-btn {
  position: relative;
  top: 4px;
  margin-top: 0;
}

.tts-btn .tts-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: transparent;
  transition: all 0.2s ease;
}

.tts-btn .tts-label {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.tts-btn.active .tts-indicator {
  border-color: #ef4444;
  background: #ef4444;
}

.tts-btn.active .tts-label {
  color: #ef4444;
}

.tts-btn.loading .tts-indicator {
  border-color: #ef4444;
  background: #ef4444;
  animation: tts-pulse 1s ease-in-out infinite;
}

@keyframes tts-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.tts-btn:hover {
  border-color: rgba(100, 116, 139, 0.6);
}

.tts-btn:active {
  transform: translateY(1px);
}

/* ===== Stock assistant ===== */
.assistant-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.assistant-ready {
  font-size: 0.96rem;
  color: #cbd5e1;
  font-weight: 600;
}

.assistant-ready .muted {
  margin-left: 0.35rem;
  font-weight: 600;
  color: #e2e8f0;
}

#assistantResultMeta {
  color: #cbd5e1;
  font-weight: 600;
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.assistant-left,
.assistant-right {
  min-width: 0;
}

.assistant-panel {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  background: rgba(15, 23, 42, 0.35);
}

.assistant-panel summary {
  cursor: pointer;
  font-weight: 600;
}

.assistant-panel-body {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.assistant-section {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(15, 23, 42, 0.25);
}

.assistant-section-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color, #e2e8f0);
}

.assistant-body input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  background: transparent;
}

.assistant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.assistant-row.assistant-row-nowrap {
  flex-wrap: nowrap;
}

.assistant-row label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #c9d4e3;
}

.assistant-row input,
.assistant-row select {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  color: inherit;
  font-size: 0.85rem;
}

.assistant-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}

.assistant-actions #assistantConfigSummary {
  grid-column: 1 / -1;
  min-height: 1.2rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.assistant-concept-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.35rem;
  background: rgba(148, 163, 184, 0.08);
}

.assistant-concept-controls.hidden {
  display: none;
}

.assistant-concept-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
}

.assistant-market-item {
  font-size: 0.86rem;
  font-weight: 600;
  color: #9fb0c7;
}

.assistant-execute {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#assistantHistoryPanel {
  margin-bottom: 0.9rem;
}

.assistant-result {
  display: grid;
  gap: 0.6rem;
}

.assistant-result-table-wrapper {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.2);
  max-height: calc(20 * 2.2rem + 2.6rem);
  overflow-y: auto;
}

.assistant-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: fixed;
}

.assistant-result-table thead th {
  text-align: left;
  padding: 0.5rem 0.85rem;
  color: var(--text-muted, #94a3b8);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  white-space: nowrap;
}

.assistant-result-table tbody td {
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.assistant-result-table tbody tr:nth-child(even) {
  background: rgba(148, 163, 184, 0.08);
}

.assistant-result-table tbody tr:last-child td {
  border-bottom: none;
}

.assistant-result-table .col-code {
  width: 4rem;
  text-align: left;
}

.assistant-result-table .col-change {
  width: 4.6rem;
  text-align: left;
}

.assistant-result-table .col-price {
  width: 4.2rem;
  text-align: left;
}

.assistant-result-table .col-name {
  width: 7.4rem;
}

.assistant-result-table .col-concept {
  width: 6.4rem;
}

.assistant-result-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.assistant-row.assistant-row-search input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.6rem;
}

#assistantConceptClear,
#assistantSaveConfig,
#assistantLoadConfig,
#assistantResetConfig {
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: none;
}

#assistantConceptClear:hover,
#assistantSaveConfig:hover,
#assistantLoadConfig:hover,
#assistantResetConfig:hover {
  transform: none;
  box-shadow: none;
}

#assistantSaveConfig,
#assistantLoadConfig,
#assistantResetConfig {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  text-align: center;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

#assistantSaveConfig:hover,
#assistantLoadConfig:hover,
#assistantResetConfig:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}

#assistantSaveConfig:active,
#assistantLoadConfig:active,
#assistantResetConfig:active {
  transform: translateY(1px) scale(0.985);
}

#assistantSaveConfig.is-feedback-ok,
#assistantLoadConfig.is-feedback-ok,
#assistantResetConfig.is-feedback-ok {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.18);
  color: #d1fae5;
}

#assistantSaveConfig.is-feedback-warn,
#assistantLoadConfig.is-feedback-warn,
#assistantResetConfig.is-feedback-warn {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

body.light-theme #assistantSaveConfig:hover,
body.light-theme #assistantLoadConfig:hover,
body.light-theme #assistantResetConfig:hover {
  border-color: rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.08);
}

body.light-theme #assistantSaveConfig.is-feedback-ok,
body.light-theme #assistantLoadConfig.is-feedback-ok,
body.light-theme #assistantResetConfig.is-feedback-ok {
  color: #065f46;
  background: rgba(16, 185, 129, 0.12);
}

body.light-theme #assistantSaveConfig.is-feedback-warn,
body.light-theme #assistantLoadConfig.is-feedback-warn,
body.light-theme #assistantResetConfig.is-feedback-warn {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
}

.assistant-panel .muted,
#assistantConfigSummary {
  color: #7f90a6;
  font-weight: 600;
}

#assistantRunBtn {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.assistant-result-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-result-change {
  font-weight: 600;
  color: rgba(148, 163, 184, 0.9);
}

.assistant-result-change.up {
  color: #f87171;
}

.assistant-result-change.down {
  color: #34d399;
}

.assistant-result-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(15, 23, 42, 0.28);
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin: 0.35rem 0 0.5rem;
  padding: 0.3rem 0.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.16);
}

.assistant-result-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.assistant-result-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.assistant-result-metric .metric-value {
  color: var(--text-color, #e2e8f0);
  font-weight: 600;
}

.assistant-result-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: 0.83rem;
  color: var(--text-muted, #94a3b8);
}

.assistant-result-meta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem;
  align-items: center;
}

.assistant-result-meta-row .meta-label {
  color: var(--text-muted, #8b9bb4);
}

.assistant-actions-row {
  margin-top: 0.4rem;
}

.assistant-reason {
  margin-top: 0.35rem;
}

.assistant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.assistant-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.75rem;
  color: var(--text-muted, #cbd5f5);
  background: rgba(148, 163, 184, 0.08);
}

.assistant-tag.group {
  border-color: rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

.param-group {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0.6rem;
  margin-bottom: 0.6rem;
}

.param-group summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-color, #f1f5f9);
}

.param-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.18rem 0;
}

.param-item.disabled .param-toggle,
.param-item.disabled .param-fields {
  opacity: 0.9;
}

.param-item.disabled .param-toggle {
  opacity: 1;
  color: var(--text-color, #e2e8f0);
}

.param-label {
  min-width: 8rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-color, #e2e8f0);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.param-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.param-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.param-help .help-trigger {
  width: 16px;
  height: 16px;
  font-size: 0.68rem;
  line-height: 1;
}

.param-help .help-bubble {
  top: 130%;
  left: auto;
  right: 0;
  min-width: 220px;
  z-index: 30;
  background: rgba(15, 23, 42, 0.96);
  font-size: 0.9rem;
}

.param-fields {
  font-size: 0.86rem;
  color: #9fb0c7;
}

.param-fields input {
  font-size: 0.84rem;
  padding: 0.18rem 0.45rem;
  height: 1.45rem;
  border-radius: 6px;
  margin-top: 0.08rem;
}

.param-fields .muted {
  color: #9aa9bd;
  font-weight: 600;
}

.param-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.param-fields input {
  width: 5.2rem;
}

body.light-theme .assistant-panel,
body.light-theme .assistant-section,
body.light-theme .assistant-result-card {
  background: #f8fafc;
}

body.light-theme .assistant-panel,
body.light-theme .assistant-section,
body.light-theme .assistant-result-card,
body.light-theme .assistant-concept-list,
body.light-theme .param-group {
  border-color: rgba(148, 163, 184, 0.35);
}

body.light-theme .assistant-result-table-wrapper {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
}

body.light-theme .assistant-result-table thead th {
  background: #f1f5ff;
  border-bottom-color: rgba(148, 163, 184, 0.35);
}

body.light-theme .assistant-result-table tbody tr:nth-child(even) {
  background: #f5f7ff;
}

body.light-theme .assistant-result-change {
  color: #9ca3af;
}

body.light-theme .assistant-result-change.up {
  color: #dc2626;
}

body.light-theme .assistant-result-change.down {
  color: #15803d;
}

body.light-theme .assistant-concept-item {
  border-color: rgba(148, 163, 184, 0.4);
  background: #ffffff;
}

body.light-theme .assistant-section-title,
body.light-theme .param-group summary,
body.light-theme .param-label {
  color: #111827;
}

body.light-theme .param-item.disabled .param-toggle {
  color: #111827;
}

body.light-theme .assistant-row label {
  color: #334155;
}

body.light-theme .assistant-panel .muted,
body.light-theme #assistantConfigSummary {
  color: #334155;
}

body.light-theme .param-fields {
  color: #475569;
}

body.light-theme .param-fields .muted {
  color: #334155;
}

body.light-theme .assistant-concept-list {
  background: #f8fafc;
}

body.light-theme .toggle-row {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
}

body.light-theme .assistant-row input,
body.light-theme .assistant-row select {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
}

body.light-theme .assistant-ready {
  color: #1f2937;
}

body.light-theme .assistant-ready .muted,
body.light-theme #assistantResultMeta {
  color: #0f172a;
}

body.light-theme .assistant-market-item {
  color: #475569;
}

/* === 炒什么？四象限卡片 === */
.hype-focus-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  overflow-x: hidden;
}
.hype-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0.4rem;
  align-items: start;
}
.hype-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hype-panel {
  background: linear-gradient(150deg, rgba(17, 24, 39, 0.9), rgba(30, 41, 59, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.hype-panel-title {
  font-weight: 800;
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: #f8fafc;
  letter-spacing: 0.5px;
}
.hype-panel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hype-panel-title .hype-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 6px;
}
.hype-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
}
.hype-item.hype-item-calendar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hype-item.hype-item-calendar .hype-calendar-date {
  flex: 0 0 auto;
}
.hype-item.hype-item-calendar .hype-calendar-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hype-item.hype-item-calendar .hype-calendar-sep {
  margin: 2px 0;
}
.hype-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: #e2e8f0;
}
.hype-title.hype-title-metrics {
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 4px;
}
.hype-title.hype-title-primary {
  font-size: 1.08rem;
}
.hype-title.hype-title-primary .hype-metric {
  font-size: inherit;
}
.hype-title.hype-title-primary .hype-pct {
  font-size: inherit;
}
.hype-title.hype-title-primary .hype-rank {
  font-size: inherit;
  height: 24px;
  min-width: 32px;
  padding: 0 6px;
  line-height: 1;
}
.hype-panel#hypeFryPanel .hype-title,
.hype-panel#hypeCalendarPanel .hype-title {
  font-size: 1.08rem;
  justify-content: flex-start;
  gap: 6px;
}
.hype-panel#hypeFryPanel .hype-title .hype-rank {
  font-size: inherit;
  height: 24px;
  min-width: 32px;
  padding: 0 6px;
  line-height: 1;
}
.hype-title.hype-mainforce-line {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font-size: 1.08rem;
}
.hype-title.hype-mainforce-line .hype-rank {
  font-size: inherit;
  height: 24px;
  min-width: 32px;
  padding: 0 6px;
  line-height: 1;
}
.hype-title.hype-mainforce-line .hype-pct {
  font-size: inherit;
}
.hype-title.hype-mainforce-line .hype-name {
  font-weight: 700;
}
.hype-title.hype-mainforce-line .hype-inflow {
  font-size: inherit;
  font-weight: 700;
}
.hype-title.hype-mainforce-line .hype-inflow.pos {
  color: #ef4444;
}
.hype-title.hype-mainforce-line .hype-inflow.neg {
  color: #22c55e;
}
.hype-title.hype-mainforce-line .hype-inflow.neu {
  color: #94a3b8;
}
.hype-title.hype-mainforce-line .hype-change .hype-pct.pos {
  color: #ef4444;
}
.hype-title.hype-mainforce-line .hype-change .hype-pct.neg {
  color: #22c55e;
}
.hype-sub.hype-sub-line .hype-pct {
  font-size: inherit;
  font-weight: 400;
}
.hype-sub.hype-fry-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.hype-theme-strong {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
  font-weight: 700;
  line-height: 1.2;
}
.hype-sub.hype-calendar-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.hype-calendar-themes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.hype-calendar-date {
  display: grid;
  grid-auto-rows: min-content;
  row-gap: 2px;
  align-items: start;
  min-width: 58px;
  white-space: normal;
}
.hype-calendar-date-main {
  font-weight: 700;
  font-size: 1.12rem;
  color: #f8fafc;
  display: block;
}
.hype-calendar-date-year {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 400;
  display: block;
  text-align: right;
  width: 100%;
}
.hype-calendar-sep {
  width: 1px;
  height: 32px;
  background: rgba(148, 163, 184, 0.45);
  align-self: stretch;
}
.hype-pct.fry.pos {
  color: #ef4444;
}
.hype-pct.fry.neg {
  color: #22c55e;
}
.hype-name {
  font-weight: 700;
}
.hype-metric {
  font-size: 1rem;
  color: #cbd5f5;
  font-weight: 600;
}
.hype-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 6px;
  margin-right: 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
}
.hype-rank.top1 {
  background: #ef4444;
  border-color: rgba(239, 68, 68, 0.9);
  color: #fff;
}
.hype-rank.top2 {
  background: #f59e0b;
  border-color: rgba(245, 158, 11, 0.9);
  color: #fff;
}
.hype-rank.top3 {
  background: #3b82f6;
  border-color: rgba(59, 130, 246, 0.9);
  color: #fff;
}
.hype-sub {
  font-size: 1rem;
  color: #94a3b8;
  margin-top: 4px;
}
.hype-sub.hype-sub-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-weight: 400;
}
.hype-limitup {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.85);
  color: #fecaca;
  font-weight: 700;
  line-height: 1.2;
}
.hype-meta {
  font-size: 1rem;
  color: #cbd5f5;
  margin-top: 4px;
}
.hype-desc {
  font-size: 1rem;
  color: #a1a1aa;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.hype-pct {
  font-size: 0.76rem;
  font-weight: 700;
}
.hype-pct.pos {
  color: #f97316;
}
.hype-pct.neg {
  color: #22c55e;
}
.hype-pct.neu {
  color: #94a3b8;
}
.hype-pct.concept.pos {
  color: #ef4444;
}
.hype-pct.concept.neg {
  color: #22c55e;
}

body.light-theme .hype-focus-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.9));
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
body.light-theme .hype-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.85));
  border-color: rgba(148, 163, 184, 0.25);
}
body.light-theme .hype-title {
  color: #0f172a;
}
body.light-theme .hype-panel-title {
  color: #0f172a;
}
body.light-theme .hype-panel-title .hype-time {
  color: #64748b;
}
body.light-theme .hype-item {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.25);
}
body.light-theme .hype-sub,
body.light-theme .hype-desc {
  color: #475569;
}
body.light-theme .hype-metric {
  color: #475569;
}
body.light-theme .hype-theme-strong {
  border-color: rgba(234, 88, 12, 0.35);
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}
body.light-theme .hype-calendar-date-main {
  color: #0f172a;
}
body.light-theme .hype-calendar-date-year {
  color: #64748b;
}
body.light-theme .hype-calendar-sep {
  background: rgba(148, 163, 184, 0.6);
}
body.light-theme .hype-meta {
  color: #334155;
}
body.light-theme .hype-limitup {
  border-color: rgba(239, 68, 68, 0.9);
  color: #b91c1c;
}
body.light-theme .hype-rank {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border-color: rgba(59, 130, 246, 0.4);
}
body.light-theme .hype-rank.top1 {
  background: #ef4444;
  border-color: rgba(239, 68, 68, 0.9);
  color: #fff;
}
body.light-theme .hype-rank.top2 {
  background: #f59e0b;
  border-color: rgba(245, 158, 11, 0.9);
  color: #fff;
}
body.light-theme .hype-rank.top3 {
  background: #3b82f6;
  border-color: rgba(59, 130, 246, 0.9);
  color: #fff;
}

.nav-btn,
.news-pane-btn,
.toplist-tab,
.limitup-tab {
  -webkit-tap-highlight-color: transparent;
}

.nav-btn:focus,
.news-pane-btn:focus,
.toplist-tab:focus,
.limitup-tab:focus,
.nav-btn:focus-visible,
.news-pane-btn:focus-visible,
.toplist-tab:focus-visible,
.limitup-tab:focus-visible {
  outline: none;
  box-shadow: none;
}

.diagnosis-lock-tip {
  margin-bottom: 0.75rem;
  padding: 0.62rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-weight: 600;
}

.diagnosis-header-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.62rem;
  margin-top: 0.58rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--muted);
}

.diagnosis-header-hints span {
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
}

.diagnosis-header-hints span + span::before {
  content: "·";
  margin-right: 0.55rem;
  color: #9aa8bc;
}

.diagnosis-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.92rem;
}

.diagnosis-input-row input {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.2);
}

.diagnosis-input-row button {
  min-width: 108px;
  min-height: 42px;
  border-radius: 12px;
}

.diagnosis-progress-panel {
  margin-top: 0.78rem;
  padding: 0.45rem 0.65rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.16);
}

#diagnosisCard .diagnosis-input-row,
#diagnosisCard #diagnosisSubmitStatus,
#diagnosisCard .diagnosis-progress-panel,
#diagnosisCard #diagnosisResultWrap .diagnosis-score-card,
#diagnosisCard #opDiagnosisResultWrap .diagnosis-score-card {
  width: min(720px, 52%);
  max-width: 100%;
  min-width: 360px;
}

#diagnosisCard .klinechat-status {
  max-height: 98px;
  padding-right: 0.2rem;
}

.diagnosis-progress-line {
  position: relative;
  padding: 0.12rem 0 0.12rem 0.95rem;
}

.diagnosis-progress-line::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.52rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.85);
}

.diagnosis-progress-tip {
  margin: 0.42rem 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--muted);
}

.diagnosis-score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  align-items: center;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin: 0.9rem 0 0.75rem;
}

.diagnosis-block-title {
  margin: 0.72rem 0 0.36rem;
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 740;
  color: rgba(248, 250, 252, 0.94);
}

.diagnosis-score-main {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.diagnosis-score-level {
  font-weight: 700;
  text-align: right;
  color: #1f2937;
}

.diagnosis-score-level.tone-danger {
  color: #16a34a;
}

.diagnosis-score-level.tone-warn {
  color: #f59e0b;
}

.diagnosis-score-level.tone-neutral {
  color: #2563eb;
}

.diagnosis-score-level.tone-good {
  color: #ef4444;
}

.diagnosis-score-level.tone-great {
  color: #b91c1c;
}

.diagnosis-score-counts {
  grid-column: 1 / span 2;
  color: #94a3b8;
  font-size: 0.92rem;
}

.diagnosis-score-card.risk-high,
.diagnosis-score-card.tone-card-danger {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.diagnosis-score-card.risk-warn,
.diagnosis-score-card.tone-card-warn {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.1);
}

.diagnosis-score-card.risk-good,
.diagnosis-score-card.tone-card-good {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
}

.diagnosis-score-card.risk-neutral,
.diagnosis-score-card.tone-card-neutral {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
}

.diagnosis-score-card.tone-card-great {
  border-color: rgba(185, 28, 28, 0.55);
  background: rgba(220, 38, 38, 0.16);
}

.diagnosis-coverage {
  margin: 0.45rem 0 0.25rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.diagnosis-group {
  margin-top: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 0.1rem 0.7rem 0.55rem;
}

.diagnosis-group summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.28;
  padding: 0.45rem 0 0.35rem;
}

.diagnosis-indicator-row {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto minmax(70px, auto);
  gap: 0.45rem;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
}

.diagnosis-indicator-key {
  font-size: 0.92rem;
  line-height: 1.3;
  color: #e2e8f0;
}

.diagnosis-indicator-value {
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 600;
  text-align: right;
}

.diagnosis-indicator-badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  justify-self: center;
  border: 1px solid transparent;
}

.diagnosis-indicator-badge.status-red {
  background: #16a34a;
  border-color: rgba(22, 163, 74, 0.5);
}

.diagnosis-indicator-badge.status-yellow {
  background: #f59e0b;
  border-color: rgba(245, 158, 11, 0.5);
}

.diagnosis-indicator-badge.status-green {
  background: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
}

.diagnosis-indicator-badge.status-gray {
  background: #94a3b8;
  border-color: rgba(148, 163, 184, 0.5);
}

body.light-theme .diagnosis-score-counts {
  color: #475569;
}

body.light-theme .diagnosis-indicator-key {
  color: #0f172a;
}

body.light-theme .diagnosis-header-hints {
  color: #5f6f84;
}

body.light-theme .diagnosis-input-row input {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.96);
}

body.light-theme .diagnosis-progress-panel {
  background: rgba(248, 250, 252, 0.88);
  border-color: rgba(148, 163, 184, 0.24);
}

body.light-theme .diagnosis-block-title {
  color: #0f172a;
}

body.light-theme .diagnosis-score-level.tone-neutral {
  color: #1d4ed8;
}

@media (max-width: 680px) {
  .diagnosis-input-row {
    grid-template-columns: 1fr;
  }

  .diagnosis-input-row button {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  #diagnosisCard .diagnosis-input-row,
  #diagnosisCard #diagnosisSubmitStatus,
  #diagnosisCard .diagnosis-progress-panel,
  #diagnosisCard #diagnosisResultWrap .diagnosis-score-card,
  #diagnosisCard #opDiagnosisResultWrap .diagnosis-score-card {
    width: 100%;
    min-width: 0;
  }
}

.member-pane-switch {
  margin-top: 0;
}

#diagnosisCard .card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  min-height: 2.2rem;
  margin-bottom: 0;
}

#diagnosisCard .card-header > .member-pane-heading-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 2.2rem;
  text-align: left;
}

#diagnosisCard .card-header h2 {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  margin: 0;
  text-align: left;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0;
}

#diagnosisCard .card-header h2 .member-pane-heading-main {
  font-size: 1em;
  font-weight: 760;
  color: var(--fg);
}

#diagnosisCard .card-header h2 .member-pane-heading-sub {
  font-size: 0.8em;
  font-weight: 520;
  color: var(--muted);
  align-self: flex-end;
}

#diagnosisCard .member-pane-switch {
  transform: none;
  flex: 0 0 auto;
}

#diagnosisCard .member-tab-panel {
  margin-top: 0.4rem;
}

#diagnosisCard .member-tab-panel.hidden {
  display: none !important;
}

#diagnosisCard .member-tab-panel[data-member-pane="battle_plan"] {
  width: 100%;
  max-width: 100%;
  margin-top: 0.4rem !important;
}

#diagnosisCard .member-tab-panel[data-member-pane="limitup_review"] {
  width: 100%;
  max-width: 100%;
  margin-top: 0.4rem !important;
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] {
  width: 100%;
  max-width: 100%;
  margin-top: 0.4rem !important;
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] .member-rt-header {
  margin-bottom: 0 !important;
  align-items: baseline;
  gap: 0.5rem;
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] .member-rt-header h3 {
  margin: 0 !important;
  font-size: 1.08rem;
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] #memberThemeRelayMeta.muted {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-size: 0.9rem;
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] .member-limitup-battle-map-content {
  margin-top: 0 !important;
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] .member-theme-relay-review-content {
  display: grid;
  gap: 0.48rem;
  margin-top: 0;
  margin-bottom: 0;
}

.member-theme-relay-date-row,
.member-theme-relay-tab-row,
.member-theme-relay-chip-row,
.member-theme-relay-stock-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.member-theme-relay-review-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.member-theme-relay-review-title strong {
  font-size: 1rem;
}

.member-theme-relay-review-title span {
  color: var(--muted);
  font-size: 0.83rem;
}

.member-theme-relay-date-chip,
.member-theme-relay-tab,
.member-theme-relay-signal-chip,
.member-theme-relay-stock-pill {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--fg);
  border-radius: 999px;
}

.member-theme-relay-date-chip,
.member-theme-relay-tab {
  padding: 0.34rem 0.82rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.member-theme-relay-date-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.member-theme-relay-date-row::-webkit-scrollbar {
  display: none;
}

.member-theme-relay-date-chip {
  flex: 0 0 auto;
}

.member-theme-relay-date-chip.active,
.member-theme-relay-tab.active {
  background: linear-gradient(135deg, #ffedd5, #fde68a);
  border-color: rgba(217, 119, 6, 0.26);
  color: #9a3412;
}

.member-theme-relay-summary-card,
.member-theme-relay-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.member-theme-relay-summary-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
}

.member-theme-relay-summary-card strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.94rem;
}

.member-theme-relay-summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.member-theme-relay-highlight-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.member-theme-relay-highlight {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.member-theme-relay-highlight.strong {
  color: #166534;
  background: rgba(187, 247, 208, 0.72);
}

.member-theme-relay-highlight.info {
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.72);
}

.member-theme-relay-highlight.weak {
  color: #b45309;
  background: rgba(254, 240, 138, 0.74);
}

.member-theme-relay-summary-card span {
  white-space: nowrap;
  color: #b45309;
  font-size: 0.88rem;
  font-weight: 700;
}

.member-theme-relay-card-list {
  display: grid;
  gap: 0.75rem;
}

.member-theme-relay-card {
  padding: 0.95rem 1rem;
}

.member-theme-relay-card.strong {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.98));
}

.member-theme-relay-card.medium {
  border-color: rgba(245, 158, 11, 0.2);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.98));
}

.member-theme-relay-card.weak {
  border-color: rgba(239, 68, 68, 0.18);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.98));
}

.member-theme-relay-card.relay {
  border-color: rgba(59, 130, 246, 0.18);
}

.member-theme-relay-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
}

.member-theme-relay-card-head h4,
.member-theme-relay-sector-link {
  margin: 0;
  font-size: 1rem;
  font-weight: 760;
}

.member-theme-relay-sector-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
}

.member-theme-relay-card-head p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.member-theme-relay-score,
.member-theme-relay-level {
  flex: 0 0 auto;
  text-align: right;
}

.member-theme-relay-score strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1;
}

.member-theme-relay-score span,
.member-theme-relay-level {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.member-theme-relay-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.45rem;
  padding: 0.36rem 0.7rem;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.75);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.member-theme-relay-meta-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.member-theme-relay-block,
.member-theme-relay-lane {
  display: grid;
  gap: 0.38rem;
  margin-top: 0.72rem;
}

.member-theme-relay-block label,
.member-theme-relay-lane label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.member-theme-relay-signal-chip {
  padding: 0.28rem 0.68rem;
  font-size: 0.8rem;
}

.member-theme-relay-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.82rem;
}

.member-theme-relay-stock-pill small,
.member-theme-relay-stock-pill em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.76rem;
}

.member-theme-relay-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.member-theme-relay-foot {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.84rem;
}

.member-theme-relay-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.member-theme-relay-raw-details {
  margin-top: 0.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.member-theme-relay-raw-details > summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 700;
  color: #475569;
  list-style: none;
}

.member-theme-relay-raw-details > summary::-webkit-details-marker {
  display: none;
}

.member-theme-relay-raw-details[open] > summary {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.member-theme-relay-raw-details .member-limitup-battle-map-summary,
.member-theme-relay-raw-details .member-limitup-battle-map-table-shell,
.member-theme-relay-raw-details > p {
  margin: 0.8rem;
}

@media (max-width: 680px) {
  .member-theme-relay-review-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .member-theme-relay-summary-card,
  .member-theme-relay-card-head {
    flex-direction: column;
  }

  .member-theme-relay-score,
  .member-theme-relay-level {
    text-align: left;
  }

  .member-theme-relay-grid {
    grid-template-columns: 1fr;
  }

  .member-theme-relay-stock-pill small {
    display: none;
  }
}

#diagnosisCard .member-tab-panel[data-member-pane="limitup_review"] .battle-plan-header.member-rt-header,
#diagnosisCard .member-tab-panel[data-member-pane="ai_review"] .battle-plan-header.member-rt-header {
  margin-top: 0.4rem !important;
}

#diagnosisCard .member-tab-panel[data-member-pane="limitup_review"] .member-rt-header,
#diagnosisCard .member-tab-panel[data-member-pane="ai_review"] .member-rt-header {
  margin-bottom: 0.45rem !important;
  align-items: baseline;
  gap: 0.5rem;
}

#diagnosisCard .member-tab-panel[data-member-pane="limitup_review"] .member-rt-header h3,
#diagnosisCard .member-tab-panel[data-member-pane="ai_review"] .member-rt-header h3 {
  margin: 0 !important;
  font-size: 1.08rem;
}

#diagnosisCard .member-tab-panel[data-member-pane="limitup_review"] #memberLimitUpReviewMeta.muted,
#diagnosisCard .member-tab-panel[data-member-pane="ai_review"] #memberAiReviewMeta.muted {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-size: 0.9rem;
}

#diagnosisCard .member-tab-panel[data-member-pane="limitup_review"] .member-realtime-limitup-content,
#diagnosisCard .member-tab-panel[data-member-pane="ai_review"] .member-realtime-limitup-content {
  margin-top: 0.35rem !important;
}

.battle-plan-header {
  margin-top: 0.4rem;
}

.battle-plan-header h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.member-rt-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-bottom: 0.45rem;
}

.member-rt-header h3 {
  margin: 0;
}

#memberRealtimeLimitUpMeta {
  margin: 0;
  font-size: 0.9rem;
  white-space: nowrap;
}

.member-rt-tabs {
  margin-bottom: 0.45rem;
}

.member-limitup-review-date-wrap {
  margin: 0 0 0.45rem;
}

.member-limitup-review-date-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.1);
  color: inherit;
  padding: 0.36rem 0.5rem;
  cursor: pointer;
  text-align: left;
}

.member-limitup-review-date-toggle:hover {
  border-color: rgba(148, 163, 184, 0.44);
  background: rgba(15, 23, 42, 0.16);
}

.member-limitup-review-date-label {
  margin: 0;
  font-size: 0.84rem;
}

.member-limitup-review-date-arrow {
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.18s ease;
}

.member-limitup-review-date-toggle.expanded .member-limitup-review-date-arrow {
  color: #fbbf24;
}

.member-limitup-review-date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-top: 0.3rem;
}

.member-limitup-review-date-chip {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.26);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.16rem 0.58rem;
  font-size: 0.8rem;
  line-height: 1.3;
  cursor: pointer;
}

.member-limitup-review-date-chip:hover {
  border-color: rgba(148, 163, 184, 0.52);
  color: #e2e8f0;
}

.member-limitup-review-date-chip.active {
  color: #fef3c7;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(245, 158, 11, 0.2);
  font-weight: 700;
}

.member-rt-count {
  margin-left: 0.28rem;
  font-size: 0.78em;
  opacity: 0.8;
}

.member-realtime-limitup-content {
  margin-top: 0.35rem;
}

.member-limitup-review-sort-tip {
  margin: 0 0 0.72rem 0 !important;
  font-size: 0.9rem;
  line-height: 1.35;
}

.member-limitup-battle-map-shell {
  margin: 0 0 0.72rem;
  padding: 0.62rem;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0) 54%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.12));
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
}

.member-limitup-battle-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.46rem;
  margin-bottom: 0.3rem;
}

.member-limitup-battle-map-toolbar h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.member-limitup-battle-map-content {
  margin-top: 0.42rem;
}

.member-limitup-battle-map-summary {
  display: grid;
  grid-template-columns: minmax(165px, 0.75fr) repeat(4, minmax(220px, 1fr));
  gap: 0.42rem;
  margin: 0 0 0.52rem;
  overflow-x: auto;
  padding-bottom: 0.08rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.member-limitup-battle-map-summary-item {
  margin: 0;
  border-radius: 7px;
  padding: 0.34rem 0.62rem;
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.05rem;
}

.member-limitup-battle-map-summary-item strong {
  font-size: 0.84rem;
  letter-spacing: 0.28px;
  opacity: 0.95;
}

.member-limitup-battle-map-summary-item > span:not(.member-limitup-battle-map-sector-list) {
  font-weight: 700;
}

.member-limitup-battle-map-sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.member-limitup-battle-map-empty {
  color: var(--muted);
}

.member-limitup-battle-map-sector-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.2);
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.22;
  padding: 0.18rem 0.58rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.member-limitup-battle-map-sector-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.9);
  background: rgba(56, 189, 248, 0.16);
  box-shadow: 0 1px 8px rgba(56, 189, 248, 0.2);
}

.member-limitup-battle-map-sector-chip:active {
  transform: translateY(0);
}

.member-limitup-battle-map-sector-chip:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.92);
  outline-offset: 1px;
}

.member-limitup-battle-map-sector-chip.active {
  border-color: rgba(231, 179, 73, 0.62);
  background: rgba(251, 191, 36, 0.18);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(231, 179, 73, 0.18);
}

.member-limitup-battle-map-summary-item.judge {
  border: 1px solid rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.22);
}

.member-limitup-battle-map-summary-item.leaders {
  border: 1px solid rgba(249, 115, 22, 0.34);
  background: rgba(249, 115, 22, 0.2);
}

.member-limitup-battle-map-summary-item.rising {
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.18);
}

.member-limitup-battle-map-summary-item.weakening {
  border: 1px solid rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.18);
}

.member-limitup-battle-map-summary-item.fermenting {
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: rgba(99, 102, 241, 0.18);
}

.member-limitup-battle-map-table-shell {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.2);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.member-limitup-battle-map-table-shell.dragging {
  cursor: grabbing;
}

.member-limitup-battle-map-table {
  --battle-map-col-width: 10.5em;
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.member-limitup-battle-map-table th,
.member-limitup-battle-map-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.36rem 0.42rem;
  text-align: center;
  vertical-align: top;
  font-size: 0.78rem;
}

.member-limitup-battle-map-table th:last-child,
.member-limitup-battle-map-table td:last-child {
  border-right: none;
}

.member-limitup-battle-map-table th {
  white-space: nowrap;
  font-size: 0.74rem;
  background: rgba(15, 23, 42, 0.34);
}

.member-limitup-battle-map-table th.slot-head {
  width: 2.1rem;
  background: rgba(37, 99, 235, 0.26);
}

.member-limitup-battle-map-table th.latest-day .member-limitup-battle-map-day {
  color: #f8fafc;
}

.member-limitup-battle-map-day {
  display: inline-block;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.member-limitup-battle-map-table td.slot {
  font-weight: 700;
  white-space: nowrap;
  background: rgba(37, 99, 235, 0.2);
}

.member-limitup-battle-map-table th:not(.slot-head),
.member-limitup-battle-map-table td:not(.slot) {
  width: var(--battle-map-col-width);
  min-width: var(--battle-map-col-width);
  max-width: var(--battle-map-col-width);
}

.member-limitup-battle-map-card {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.22);
  padding: 0.34rem 0.38rem;
  min-height: 5.45rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.member-limitup-battle-map-table td:not(.slot) > .member-limitup-battle-map-card {
  width: 100%;
}

.member-limitup-battle-map-card.focus {
  border-color: rgba(232, 181, 76, 0.68);
  background: rgba(251, 191, 36, 0.14);
  box-shadow: inset 0 0 0 1px rgba(232, 181, 76, 0.16), 0 0 0 1px rgba(232, 181, 76, 0.14);
}

.member-limitup-battle-map-sector-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  text-align: left;
  align-self: stretch;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  transition: color 0.15s ease, transform 0.15s ease;
}

.member-limitup-battle-map-sector-text {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-limitup-battle-map-sector-btn:hover {
  color: #7dd3fc;
  transform: translateY(-1px);
}

.member-limitup-battle-map-sector-btn:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.9);
  outline-offset: 1px;
}

.member-limitup-battle-map-sector-btn.underlined {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #fbbf24;
}

.member-limitup-battle-map-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.24rem;
}

.member-limitup-battle-map-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  border-radius: 999px;
  padding: 0 0.44rem;
  color: #fff;
  font-size: 0.68rem;
  line-height: 1.9;
  white-space: nowrap;
}

.member-limitup-battle-map-metrics {
  margin-top: 0.26rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  font-size: 0.76rem;
}

.member-limitup-battle-map-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 0.15rem;
  line-height: 1.25;
}

.member-limitup-battle-map-metric-label {
  color: rgba(226, 232, 240, 0.9);
}

.member-limitup-battle-map-metric-value {
  font-weight: 700;
  white-space: nowrap;
}

.member-limitup-battle-map-reason-row {
  margin-top: 0.28rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.member-limitup-battle-map-reason-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
  color: #bae6fd;
  font-size: 0.68rem;
  line-height: 1.45;
  white-space: nowrap;
}

.member-limitup-battle-map-card:hover {
  border-color: rgba(96, 165, 250, 0.88);
}

.member-limitup-battle-map-arrow-up { color: #dc2626; }
.member-limitup-battle-map-arrow-down { color: #16a34a; }
.member-limitup-battle-map-arrow-flat { color: #64748b; }

body.light-theme .member-limitup-battle-map-shell {
  border-color: rgba(59, 130, 246, 0.28);
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(96, 165, 250, 0.2), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

body.light-theme .member-limitup-battle-map-card {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.86);
}

body.light-theme .member-limitup-battle-map-card.focus {
  border-color: rgba(217, 151, 31, 0.56);
  background: rgba(254, 243, 199, 0.72);
}

body.light-theme .member-limitup-battle-map-sector-chip {
  border-color: rgba(148, 163, 184, 0.52);
  background: rgba(255, 255, 255, 0.86);
}

body.light-theme .member-limitup-battle-map-sector-chip.active {
  border-color: rgba(217, 151, 31, 0.52);
  background: rgba(254, 243, 199, 0.84);
}

body.light-theme .member-limitup-battle-map-sector-btn {
  color: #0f172a;
}

body.light-theme .member-limitup-battle-map-sector-btn:hover {
  color: #0369a1;
}

body.light-theme .member-limitup-battle-map-sector-btn.underlined {
  color: #b45309;
}

body.light-theme .member-limitup-battle-map-table-shell {
  background: rgba(255, 255, 255, 0.7);
}

body.light-theme .member-limitup-battle-map-table th {
  background: rgba(241, 245, 249, 0.92);
}

body.light-theme .member-limitup-battle-map-table th.slot-head {
  background: rgba(219, 234, 254, 0.95);
}

body.light-theme .member-limitup-battle-map-table td.slot {
  background: rgba(219, 234, 254, 0.76);
}

body.light-theme .member-limitup-battle-map-metric-row {
  border-top-color: rgba(148, 163, 184, 0.26);
}

body.light-theme .member-limitup-battle-map-metric-label {
  color: #334155;
}

body.light-theme .member-limitup-battle-map-summary-item.judge {
  border-color: rgba(59, 130, 246, 0.24);
}

body.light-theme .member-limitup-battle-map-summary-item.leaders {
  border-color: rgba(249, 115, 22, 0.24);
}

body.light-theme .member-limitup-battle-map-summary-item.rising {
  border-color: rgba(239, 68, 68, 0.22);
}

body.light-theme .member-limitup-battle-map-summary-item.weakening {
  border-color: rgba(34, 197, 94, 0.22);
}

body.light-theme .member-limitup-battle-map-summary-item.fermenting {
  border-color: rgba(99, 102, 241, 0.22);
}

body.light-theme .member-limitup-battle-map-reason-chip {
  border-color: rgba(10, 132, 255, 0.24);
  background: rgba(10, 132, 255, 0.1);
  color: #0f4c81;
}

body.light-theme .member-limitup-battle-map-table th.latest-day .member-limitup-battle-map-day {
  color: #0f172a;
}

@media (max-width: 720px) {
  .member-limitup-battle-map-summary {
    grid-template-columns: minmax(135px, 0.75fr) repeat(4, minmax(180px, 1fr));
  }
}

.member-limitup-battle-map-popup {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.56);
}

.member-limitup-battle-map-popup.open {
  display: flex;
}

.member-limitup-battle-map-popup-panel {
  width: min(1040px, calc(100vw - 1.2rem));
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.42);
  padding: 0.7rem 0.76rem 0.9rem;
  position: relative;
}

.member-limitup-battle-map-popup-close {
  position: absolute;
  right: 0.56rem;
  top: 0.44rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: rgba(148, 163, 184, 0.12);
  color: inherit;
  cursor: pointer;
}

.member-limitup-battle-map-popup-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.18rem;
  padding-right: 2rem;
}

.member-limitup-battle-map-popup-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.member-limitup-battle-map-popup-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.member-limitup-battle-map-popup-summary {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.member-limitup-battle-map-popup-primary-grid,
.member-limitup-battle-map-popup-assessment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 0.55rem;
}

.member-limitup-battle-map-popup-section {
  display: grid;
  gap: 0.42rem;
  padding: 0.68rem 0.76rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.32);
}

.member-limitup-battle-map-popup-section-head {
  display: grid;
  gap: 0.42rem;
}

.member-limitup-battle-map-popup-section-title {
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.member-limitup-battle-map-popup-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.42rem;
}

.member-limitup-battle-map-popup-metric-card {
  display: grid;
  gap: 0.18rem;
  padding: 0.48rem 0.56rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  min-width: 0;
}

.member-limitup-battle-map-popup-metric-label {
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.25;
}

.member-limitup-battle-map-popup-metric-value {
  color: #f8fafc;
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 700;
  word-break: break-word;
}

.member-limitup-battle-map-popup-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.member-limitup-battle-map-popup-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.26);
  background: rgba(14, 165, 233, 0.12);
  color: #dbeafe;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 700;
}

.member-limitup-battle-map-popup-chip--category,
.member-limitup-battle-map-popup-chip--quality,
.member-limitup-battle-map-popup-chip--tag {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
}

.member-limitup-battle-map-popup-chip--role,
.member-limitup-battle-map-popup-chip--focus,
.member-limitup-battle-map-popup-chip--bias {
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(34, 197, 94, 0.12);
  color: #dcfce7;
}

.member-limitup-battle-map-popup-chip-row--tags {
  padding-top: 0.1rem;
}

.member-limitup-battle-map-popup-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.42rem;
}

.member-limitup-battle-map-popup-decision-card {
  display: grid;
  gap: 0.18rem;
  padding: 0.5rem 0.56rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
}

.member-limitup-battle-map-popup-decision-label {
  color: #94a3b8;
  font-size: 0.71rem;
  line-height: 1.25;
  font-weight: 700;
}

.member-limitup-battle-map-popup-decision-value {
  color: #f8fafc;
  font-size: 0.84rem;
  line-height: 1.48;
  font-weight: 700;
}

.member-limitup-battle-map-popup-decision-note {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.74rem;
  line-height: 1.58;
}

.member-limitup-battle-map-popup-summary-list {
  display: grid;
  gap: 0.38rem;
  margin: 0;
}

.member-limitup-battle-map-popup-summary-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.member-limitup-battle-map-popup-summary-label {
  margin: 0;
  color: #94a3b8;
  font-size: 0.74rem;
  line-height: 1.5;
  font-weight: 700;
}

.member-limitup-battle-map-popup-summary-value {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.8rem;
  line-height: 1.62;
  font-weight: 600;
}

.member-limitup-battle-map-popup-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.member-limitup-battle-map-popup-stat {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.1);
  font-size: 0.76rem;
  line-height: 1.35;
}

.member-limitup-battle-map-popup-reason {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.member-limitup-battle-map-popup-headline {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.7;
  font-weight: 650;
}

.member-limitup-battle-map-popup-structure-note {
  margin: 0;
  padding: 0.56rem 0.62rem;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(14, 165, 233, 0.08);
  color: #dbeafe;
  font-size: 0.78rem;
  line-height: 1.62;
}

.member-limitup-battle-map-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.member-limitup-battle-map-popup-note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.42rem;
}

.member-limitup-battle-map-popup-note-card {
  padding: 0.54rem 0.58rem;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.08);
}

.member-limitup-battle-map-popup-note-card .member-theme-relay-compact-note {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.member-limitup-battle-map-popup-match {
  display: grid;
  gap: 0.38rem;
}

.member-limitup-battle-map-popup-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.member-limitup-battle-map-popup-table-tip {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.member-limitup-battle-map-popup-table-shell {
  width: 100%;
  max-height: calc(100vh - 14rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
}

.member-limitup-battle-map-popup-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.member-limitup-battle-map-popup-table th,
.member-limitup-battle-map-popup-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.34rem 0.42rem;
  font-size: 0.78rem;
  text-align: left;
  white-space: nowrap;
}

.member-limitup-battle-map-popup-table th {
  position: sticky;
  top: 0;
  background: rgba(30, 41, 59, 0.95);
  z-index: 1;
  cursor: pointer;
}

.member-limitup-battle-map-popup-table th .th-label {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
}

.member-limitup-battle-map-popup-table th .sort-indicator {
  font-size: 0.75em;
  opacity: 0.85;
}

.member-limitup-battle-map-popup-table th.sorted {
  color: #38bdf8;
}

.member-limitup-battle-map-popup-table td.left {
  text-align: left;
}

.member-limitup-battle-map-popup-table td.center {
  text-align: center;
}

body.light-theme .member-limitup-battle-map-popup-panel {
  border-color: rgba(148, 163, 184, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

body.light-theme .member-limitup-battle-map-popup-close {
  border-color: rgba(148, 163, 184, 0.48);
  background: rgba(148, 163, 184, 0.14);
}

body.light-theme .member-limitup-battle-map-popup-stat {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.08);
}

body.light-theme .member-limitup-battle-map-popup-section {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.9);
}

body.light-theme .member-limitup-battle-map-popup-section-title {
  color: #0f172a;
}

body.light-theme .member-limitup-battle-map-popup-metric-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.94);
}

body.light-theme .member-limitup-battle-map-popup-metric-label {
  color: #64748b;
}

body.light-theme .member-limitup-battle-map-popup-metric-value {
  color: #0f172a;
}

body.light-theme .member-limitup-battle-map-popup-chip {
  border-color: rgba(14, 165, 233, 0.2);
  background: rgba(14, 165, 233, 0.08);
  color: #075985;
}

body.light-theme .member-limitup-battle-map-popup-chip--category,
body.light-theme .member-limitup-battle-map-popup-chip--quality,
body.light-theme .member-limitup-battle-map-popup-chip--tag {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(241, 245, 249, 0.88);
  color: #334155;
}

body.light-theme .member-limitup-battle-map-popup-chip--role,
body.light-theme .member-limitup-battle-map-popup-chip--focus,
body.light-theme .member-limitup-battle-map-popup-chip--bias {
  border-color: rgba(34, 197, 94, 0.18);
  background: rgba(220, 252, 231, 0.84);
  color: #166534;
}

body.light-theme .member-limitup-battle-map-popup-reason {
  color: #475569;
}

body.light-theme .member-limitup-battle-map-popup-headline {
  color: #0f172a;
}

body.light-theme .member-limitup-battle-map-popup-decision-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.94);
}

body.light-theme .member-limitup-battle-map-popup-decision-label {
  color: #64748b;
}

body.light-theme .member-limitup-battle-map-popup-decision-value {
  color: #0f172a;
}

body.light-theme .member-limitup-battle-map-popup-decision-note {
  color: #475569;
}

body.light-theme .member-limitup-battle-map-popup-summary-label {
  color: #64748b;
}

body.light-theme .member-limitup-battle-map-popup-summary-value {
  color: #0f172a;
}

body.light-theme .member-limitup-battle-map-popup-structure-note {
  border-color: rgba(14, 165, 233, 0.16);
  background: rgba(239, 246, 255, 0.92);
  color: #0f172a;
}

body.light-theme .member-limitup-battle-map-popup-note-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.92);
}

body.light-theme .member-limitup-battle-map-popup-table th {
  background: rgba(241, 245, 249, 0.96);
}

@media (max-width: 720px) {
  .member-limitup-battle-map-popup-primary-grid,
  .member-limitup-battle-map-popup-assessment-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-limitup-battle-map-popup-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-limitup-battle-map-popup-note-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-limitup-battle-map-popup-decision-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-limitup-battle-map-popup-summary-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.12rem;
  }

  .member-limitup-battle-map-popup-panel {
    width: min(1000px, calc(100vw - 0.5rem));
    max-height: calc(100vh - 0.6rem);
    padding: 0.7rem 0.62rem 0.72rem;
  }

  .member-limitup-battle-map-popup-table-shell {
    max-height: calc(100vh - 18rem);
  }
}

#memberLimitUpReviewContent .member-limitup-review-sort-tip + .limitup-section-card {
  margin-top: 0 !important;
}

.member-realtime-limitup-table-shell {
  width: 100%;
  max-height: 50rem;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}

.member-realtime-limitup-table {
  min-width: 1200px;
}

.member-realtime-limitup-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  cursor: pointer;
}

.member-realtime-limitup-table th .th-label {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.member-realtime-limitup-table td {
  white-space: nowrap;
}

.member-realtime-limitup-table td.limitup-streak-highlight {
  color: #b91c1c;
  font-weight: 700;
}

.member-realtime-limitup-table td.left {
  text-align: left;
}

.member-realtime-limitup-table td:first-child,
.member-realtime-limitup-table td:nth-child(2),
.member-realtime-limitup-table td:last-child {
  text-align: left;
}

.member-realtime-limitup-table th[data-sort-key="reason_type"] {
  text-align: left;
}

.member-realtime-limitup-table th[data-sort-key="reason_type"] .th-label {
  justify-content: flex-start;
}

.member-realtime-limitup-table td:first-child,
.member-realtime-limitup-table td:nth-child(2) {
  font-weight: 700;
}

.member-realtime-limitup-table th:first-child,
.member-realtime-limitup-table td:first-child {
  position: sticky;
  left: 0;
  min-width: var(--rt-code-col-width, auto);
  width: var(--rt-code-col-width, auto);
  text-align: left;
  z-index: 5;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 1px 0 0 rgba(148, 163, 184, 0.12);
}

.member-realtime-limitup-table th:nth-child(2),
.member-realtime-limitup-table td:nth-child(2) {
  position: sticky;
  left: var(--rt-code-col-width, 0px);
  min-width: var(--rt-name-col-width, auto);
  width: var(--rt-name-col-width, auto);
  text-align: left;
  z-index: 4;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 1px 0 0 rgba(148, 163, 184, 0.14);
}

.member-realtime-limitup-table th:first-child {
  top: 0;
  z-index: 9;
}

.member-realtime-limitup-table th:nth-child(2) {
  top: 0;
  z-index: 8;
}

.member-realtime-limitup-table tbody tr:nth-child(even) td:nth-child(2) {
  background: rgba(15, 23, 42, 0.48);
}

#memberBattlePlanMeta {
  margin: 0;
  font-size: 0.9rem;
}

#memberBattlePlanSummary {
  margin-top: 0.72rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.member-stored-feed {
  display: grid;
  gap: 0.96rem;
  margin-top: 0.55rem;
}

.member-stored-feed-head {
  display: flex;
  align-items: center;
  gap: 0.28rem 0.56rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem !important;
}

.member-stored-feed-head h3 {
  margin: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.member-stored-feed-head p {
  margin: 0;
  white-space: nowrap;
}

.member-option-warroom {
  display: grid;
  gap: 0.82rem;
}

.member-option-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.member-option-tab {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  border-radius: 12px;
  padding: 0.44rem 0.82rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.member-option-tab.active {
  border-color: rgba(249, 115, 22, 0.24);
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.98), rgba(255, 247, 237, 0.98));
  color: #9a3412;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.12);
}

.member-option-hero {
  display: grid;
  gap: 0.74rem;
  padding: 1rem 1.04rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0) 42%),
    radial-gradient(120% 130% at 0% 100%, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0) 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.member-option-eyebrow {
  margin: 0;
  color: #9a3412;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-option-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.36;
}

.member-option-summary {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.6;
}

.member-option-subsummary {
  margin: -0.18rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.member-option-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.member-option-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.16rem 0.68rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.2;
}

.member-option-badge.is-action {
  border-color: rgba(234, 88, 12, 0.18);
  background: rgba(255, 237, 213, 0.92);
  color: #9a3412;
}

.member-option-badge.is-actionable,
.member-option-badge.is-bullish {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(254, 226, 226, 0.94);
  color: #b91c1c;
}

.member-option-badge.is-observe_only,
.member-option-badge.is-medium,
.member-option-badge.is-date {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(254, 249, 195, 0.96);
  color: #a16207;
}

.member-option-badge.is-no_trade,
.member-option-badge.is-neutral,
.member-option-badge.is-low,
.member-option-badge.is-anchor {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(241, 245, 249, 0.96);
  color: #475569;
}

.member-option-badge.is-bearish,
.member-option-badge.is-high {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(209, 250, 229, 0.94);
  color: #047857;
}

.member-option-metric-grid {
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-option-metric {
  display: grid;
  gap: 0.2rem;
  min-height: 4.4rem;
  padding: 0.72rem 0.78rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.member-option-metric-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.3;
}

.member-option-metric-value {
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
}

.member-option-grid {
  display: grid;
  gap: 0.82rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-option-panel {
  display: grid;
  gap: 0.68rem;
  padding: 0.9rem 0.96rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.member-option-panel-head {
  display: grid;
  gap: 0.14rem;
}

.member-option-panel-kicker {
  margin: 0;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.member-option-panel h5 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 790;
  line-height: 1.32;
}

.member-option-detail-grid,
.member-option-plan-grid {
  display: grid;
  gap: 0.56rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-option-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.member-option-mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.14rem 0.58rem;
  border-radius: 11px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(239, 246, 255, 0.92);
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 740;
  line-height: 1.2;
}

.member-option-detail-row,
.member-option-plan-item {
  display: grid;
  gap: 0.14rem;
  padding: 0.62rem 0.66rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.92);
}

.member-option-plan-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.96));
  border-color: rgba(251, 191, 36, 0.18);
}

.member-option-detail-label,
.member-option-plan-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.32;
}

.member-option-detail-value,
.member-option-plan-value {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.member-option-risk-list {
  margin: 0;
  padding-left: 1rem;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.58;
}

.member-option-risk-list li + li {
  margin-top: 0.36rem;
}

.member-option-panel-body {
  gap: 0.78rem;
}

.member-option-raw-details {
  display: grid;
  gap: 0.66rem;
}

.member-option-raw-summary {
  cursor: pointer;
  list-style: none;
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 780;
}

.member-option-raw-summary::-webkit-details-marker {
  display: none;
}

.member-option-raw-summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.4rem;
  transition: transform 0.2s ease;
}

.member-option-raw-details[open] .member-option-raw-summary::before {
  transform: rotate(90deg);
}

.member-option-body-content {
  color: #1e293b;
  font-size: 0.9rem;
  line-height: 1.68;
}

.member-option-body-content h2,
.member-option-body-content h3,
.member-option-body-content h4 {
  margin: 0 0 0.42rem;
  color: #0f172a;
  line-height: 1.36;
}

.member-option-body-content p {
  margin: 0.34rem 0;
}

.member-option-skeleton-block {
  height: 4.4rem;
}

.member-option-skeleton-panel {
  height: 10.6rem;
}

.member-option-skeleton-body {
  height: 12.4rem;
}

.member-multi-ai-box {
  margin-top: 0.5rem;
  padding: 0.45rem 0.58rem;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.08);
}

.member-multi-ai-box p {
  margin: 0.14rem 0;
}

.member-battle-plan-sectors {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.72rem;
  width: 100%;
  max-width: 100%;
}

#memberBattlePlanHistoryPanel,
#memberBattlePlanHistoryDetail {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.member-battle-sector {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 0.68rem 0.82rem;
  background: rgba(15, 23, 42, 0.12);
}

.member-battle-sector-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.member-battle-sector-title {
  font-weight: 760;
}

.member-battle-sector-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.member-battle-sector-logic {
  margin: 0.3rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.4;
}

.member-battle-stocks {
  display: grid;
  gap: 0.5rem;
}

.member-battle-stock {
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 0.48rem 0.58rem;
}

.member-battle-stock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.22rem;
}

.member-battle-stock-code {
  font-weight: 720;
}

.member-battle-stock-votes {
  color: var(--muted);
  font-size: 0.82rem;
}

.member-battle-stock-line {
  margin: 0.14rem 0;
  font-size: 0.88rem;
  line-height: 1.38;
}

body.light-theme .member-battle-sector {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.3);
}

body.light-theme .member-battle-stock {
  border-color: rgba(148, 163, 184, 0.32);
}

body.light-theme .member-multi-ai-box {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.32);
}

body.light-theme .member-realtime-limitup-table-shell {
  border-color: rgba(148, 163, 184, 0.32);
}

body.light-theme .member-realtime-limitup-table th:nth-child(2) {
  background: #fcfdff;
  color: #031128;
}

body.light-theme .member-realtime-limitup-table th:first-child {
  background: #fcfdff;
  color: #031128;
}

body.light-theme .member-realtime-limitup-table td:nth-child(2) {
  background: #ffffff;
  color: #08162b;
  box-shadow: 1px 0 0 rgba(5, 16, 36, 0.08);
}

body.light-theme .member-realtime-limitup-table td:first-child {
  background: #ffffff;
  color: #08162b;
  box-shadow: 1px 0 0 rgba(5, 16, 36, 0.08);
}

body.light-theme .member-realtime-limitup-table tbody tr:nth-child(even) td:nth-child(2) {
  background: #f5f8ff;
}

body.light-theme .member-realtime-limitup-table td.limitup-streak-highlight {
  color: #b91c1c;
}

body.light-theme .member-option-hero,
body.light-theme .member-option-panel,
body.light-theme .member-option-metric {
  border-color: rgba(148, 163, 184, 0.24);
}

body.light-theme .member-option-detail-row,
body.light-theme .member-option-plan-item {
  border-color: rgba(148, 163, 184, 0.18);
}

body.light-theme .member-option-mini-chip {
  border-color: rgba(59, 130, 246, 0.16);
  background: rgba(239, 246, 255, 0.96);
}

body.light-theme .member-limitup-review-date-chip {
  background: #ffffff;
  color: #1e293b;
  border-color: rgba(148, 163, 184, 0.42);
}

body.light-theme .member-limitup-review-date-chip:hover {
  border-color: rgba(59, 130, 246, 0.45);
  color: #0f172a;
}

body.light-theme .member-limitup-review-date-chip.active {
  color: #b45309;
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.16);
}

body.light-theme .member-limitup-review-date-toggle {
  border-color: rgba(148, 163, 184, 0.42);
  background: #ffffff;
}

body.light-theme .member-limitup-review-date-toggle:hover {
  border-color: rgba(59, 130, 246, 0.42);
  background: #f8fbff;
}

body.light-theme .member-limitup-review-date-arrow {
  color: #64748b;
}

body.light-theme .member-limitup-review-date-toggle.expanded .member-limitup-review-date-arrow {
  color: #b45309;
}

@media (max-width: 680px) {
  .member-option-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-option-grid,
  .member-option-detail-grid,
  .member-option-plan-grid {
    grid-template-columns: 1fr;
  }

  .member-option-hero,
  .member-option-panel {
    padding: 0.88rem 0.9rem;
  }
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] .battle-plan-header.member-rt-header {
  margin-top: 0 !important;
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] .member-rt-header {
  margin-bottom: 0 !important;
  gap: 0.5rem;
  align-items: baseline;
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] .member-rt-header h3 {
  margin: 0 !important;
  font-size: 1.08rem;
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] .member-rt-header p {
  margin: 0 !important;
  font-size: 0.9rem;
}

#diagnosisCard .member-tab-panel[data-member-pane="theme_relay"] .member-theme-relay-review-content {
  display: grid;
  gap: 0.48rem;
  margin-top: 0;
}

#memberThemeRelayShell {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

#memberThemeRelayContent {
  order: 1;
}

#memberThemeRelayReviewContent {
  order: 2;
}

#memberThemeRelayReplayContent {
  order: 3;
}

#memberThemeRelayCycleContent {
  order: 4;
}

.member-theme-relay-extra-content {
  display: grid;
  gap: 0.48rem;
}

.member-theme-relay-report-shell {
  display: grid;
  gap: 0.8rem;
}

#memberThemeRelayReviewContent > .member-theme-relay-report-shell,
#memberThemeRelayReplayContent > .member-theme-relay-report-shell,
#memberThemeRelayCycleContent > .member-theme-relay-report-shell {
  padding: 0.92rem 0.96rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.member-theme-relay-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.member-theme-relay-report-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  color: #475569;
  background: rgba(241, 245, 249, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.73rem;
  line-height: 1;
  font-weight: 700;
}

.member-theme-relay-report-titlebar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  min-height: 32px;
  padding: 0.02rem 0 0.32rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.member-theme-relay-report-titlebar strong {
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 800;
}

.member-theme-relay-report-titlebar span {
  display: none;
}

.member-theme-relay-report-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.member-theme-relay-extra-grid,
.member-theme-cycle-grid {
  display: grid;
  gap: 0.62rem;
  grid-template-columns: 1fr;
}

.member-theme-relay-dual-grid,
.member-theme-cycle-metrics {
  display: grid;
  gap: 0.56rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-theme-relay-stat-card {
  display: grid;
  gap: 0.28rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 7px;
  padding: 0.56rem 0.62rem;
  background: rgba(255, 255, 255, 0.92);
}

.member-theme-relay-stat-card strong,
.member-theme-cycle-card strong {
  color: #111827;
  font-size: 0.96rem;
  line-height: 1.4;
  font-weight: 800;
}

.member-theme-relay-stat-card p,
.member-theme-cycle-card p {
  margin: 0;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.58;
}

.member-theme-relay-inline-label {
  color: #0f172a;
  font-weight: 700;
}

.member-theme-relay-path-shell {
  display: grid;
  gap: 0.56rem;
}

.member-theme-relay-path-levels,
.member-theme-relay-success-list,
.member-theme-cycle-reasons {
  display: grid;
  gap: 0.48rem;
}

.member-theme-relay-path-level {
  display: grid;
  gap: 0.18rem;
  padding: 0.56rem 0.62rem;
  border-radius: 7px;
  background: rgba(239, 246, 255, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.member-theme-relay-path-level-head,
.member-theme-relay-success-head,
.member-theme-cycle-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.member-theme-relay-path-level-head span,
.member-theme-relay-success-head span,
.member-theme-cycle-card-head span {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.4;
}

.member-theme-relay-path-step-row {
  display: grid;
  gap: 0.36rem;
}

.member-theme-relay-path-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.56rem;
  color: #111827;
  font-size: 0.84rem;
  line-height: 1.45;
}

.member-theme-relay-path-step em,
.member-theme-relay-success-rate {
  font-style: normal;
  font-weight: 700;
  color: #0f172a;
}

.member-theme-relay-chip-row.member-theme-relay-result-row {
  gap: 0.4rem;
}

.member-theme-relay-result-chip,
.member-theme-cycle-day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 700;
  color: #0f172a;
  background: rgba(226, 232, 240, 0.82);
}

.member-theme-relay-result-chip[data-tone="positive"],
.member-theme-cycle-day-chip[data-tone="positive"] {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.92);
}

.member-theme-relay-result-chip[data-tone="negative"],
.member-theme-cycle-day-chip[data-tone="negative"] {
  color: #166534;
  background: rgba(220, 252, 231, 0.92);
}

.member-theme-relay-result-chip[data-tone="neutral"],
.member-theme-cycle-day-chip[data-tone="neutral"] {
  color: #b45309;
  background: rgba(254, 243, 199, 0.92);
}

.member-theme-cycle-card {
  display: grid;
  gap: 0.52rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 7px;
  background: rgba(239, 246, 255, 0.88);
  padding: 0.56rem 0.62rem;
}

.member-theme-cycle-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.member-theme-cycle-track-item {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: #1f2937;
  font-size: 0.74rem;
  line-height: 1;
}

.member-theme-cycle-track-item small {
  font-size: 0.68rem;
  color: #64748b;
}

.member-theme-cycle-calendar-shell {
  overflow-x: auto;
}

.member-theme-cycle-calendar {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 620px;
}

.member-theme-cycle-calendar th,
.member-theme-cycle-calendar td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.42rem 0.32rem;
  text-align: center;
  vertical-align: middle;
}

.member-theme-cycle-calendar th:first-child,
.member-theme-cycle-calendar td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(248, 250, 252, 0.98);
  text-align: left;
}

.member-theme-cycle-calendar th {
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.3;
  font-weight: 700;
}

.member-theme-cycle-calendar td strong {
  color: #111827;
  font-size: 0.8rem;
  line-height: 1.3;
}

.member-theme-cycle-calendar td small {
  display: block;
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.66rem;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .member-theme-relay-dual-grid,
  .member-theme-cycle-metrics {
    grid-template-columns: 1fr;
  }
}

.member-theme-relay-report-block,
.member-theme-relay-raw-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 7px;
  background: rgba(239, 246, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.24);
  padding: 0.62rem;
  box-shadow: none;
}

.member-theme-relay-report-block {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  min-height: 100%;
  border-radius: 16px;
  padding: 0.88rem 0.92rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.99));
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.member-theme-relay-report-hero {
  border-color: rgba(15, 23, 42, 0.08);
}

.member-theme-relay-hero-top,
.member-theme-relay-card-headline,
.member-theme-relay-sector-main,
.member-theme-relay-raw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.member-theme-relay-kicker,
.member-theme-relay-card-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #475569;
}

.member-theme-relay-hero-top h4 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #111827;
  font-weight: 780;
}

.member-theme-relay-bias-pill,
.member-theme-relay-side-tag,
.member-theme-relay-stage-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.16rem 0.52rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.member-theme-relay-bias-pill[data-tone="positive"],
.member-theme-relay-side-tag[data-tone="positive"],
.member-theme-relay-stage-tag[data-tone="positive"] {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.member-theme-relay-bias-pill[data-tone="negative"],
.member-theme-relay-side-tag[data-tone="negative"],
.member-theme-relay-stage-tag[data-tone="negative"] {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.member-theme-relay-bias-pill[data-tone="neutral"],
.member-theme-relay-side-tag[data-tone="neutral"],
.member-theme-relay-stage-tag[data-tone="neutral"] {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.member-theme-relay-stage-tag[data-stage-name="启动"] {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.member-theme-relay-stage-tag[data-stage-name="加速"] {
  background: rgba(249, 115, 22, 0.16);
  color: #c2410c;
}

.member-theme-relay-stage-tag[data-stage-name="分歧"] {
  background: rgba(20, 184, 166, 0.16);
  color: #0f766e;
}

.member-theme-relay-stage-tag[data-stage-name="高潮"] {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

.member-theme-relay-stage-tag[data-stage-name="退潮"] {
  background: rgba(100, 116, 139, 0.18);
  color: #475569;
}

.member-theme-relay-stage-tag[data-stage-name="待确认发酵"],
.member-theme-relay-stage-tag[data-stage-name="发酵"] {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.member-theme-relay-stage-tag[data-stage-name="承接分化"],
.member-theme-relay-stage-tag[data-stage-name="承分"] {
  background: rgba(14, 165, 233, 0.16);
  color: #0369a1;
}

.member-theme-relay-stage-tag[data-stage-name="良性分歧"],
.member-theme-relay-stage-tag[data-stage-name="良歧"] {
  background: rgba(20, 184, 166, 0.16);
  color: #0f766e;
}

.member-theme-relay-stage-tag[data-stage-name="强分歧"],
.member-theme-relay-stage-tag[data-stage-name="强歧"] {
  background: rgba(217, 119, 6, 0.16);
  color: #b45309;
}

.member-theme-relay-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin-top: 0.56rem;
  color: #111827;
  font-size: 0.82rem;
  line-height: 1.4;
}

.member-theme-relay-hero-grid,
.member-theme-relay-focus-grid,
.member-theme-relay-compact-grid,
.member-theme-relay-data-grid,
.member-theme-relay-overview-strip,
.member-theme-cycle-calendar-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
  gap: 0.62rem;
}

.member-theme-relay-hero-grid,
.member-theme-relay-focus-grid {
  margin-top: 0.7rem;
}

.member-theme-relay-sector-card {
  display: grid;
  align-content: start;
  gap: 0.54rem;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 14px;
  padding: 0.78rem 0.82rem;
  background: rgba(239, 246, 255, 0.86);
  min-width: 0;
  width: 100%;
  min-height: 172px;
}

.member-theme-relay-sector-card[data-tone="positive"] {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(254, 242, 242, 0.92);
}

.member-theme-relay-sector-card[data-tone="negative"] {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(240, 253, 244, 0.92);
}

.member-theme-relay-sector-card[data-tone="neutral"] {
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(255, 247, 237, 0.94);
}

.member-theme-relay-sector-title,
.member-theme-relay-link-btn {
  border: 0;
  padding: 0;
  background: transparent;
}

.member-theme-relay-sector-title {
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.36;
  font-weight: 780;
  text-align: left;
}

.member-theme-relay-sector-card[data-tone="positive"] .member-theme-relay-sector-title {
  color: #b91c1c;
}

.member-theme-relay-sector-card[data-tone="negative"] .member-theme-relay-sector-title {
  color: #15803d;
}

.member-theme-relay-sector-card[data-tone="neutral"] .member-theme-relay-sector-title {
  color: #92400e;
}

.member-theme-relay-reason-list,
.member-theme-relay-guard-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.28rem;
}

.member-theme-relay-reason-list li,
.member-theme-relay-guard-list li {
  color: #111827;
  font-size: 0.84rem;
  line-height: 1.58;
}

.member-theme-relay-link-btn {
  justify-self: start;
  color: #0f172a;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.member-theme-relay-secondary-note {
  display: grid;
  align-content: center;
  gap: 0.42rem;
  padding: 0.82rem 0.88rem;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  background: rgba(248, 250, 252, 0.86);
  min-width: 0;
  min-height: 172px;
}

.member-theme-relay-section-head {
  display: grid;
  gap: 0.24rem;
  min-height: 54px;
  align-content: start;
  padding-bottom: 0.18rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.member-theme-relay-section-head strong,
.member-theme-relay-raw-head strong {
  color: #111827;
  font-size: 0.96rem;
  line-height: 1.35;
}

.member-theme-relay-section-head p,
.member-theme-relay-raw-head p {
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.48;
}

.member-theme-relay-section-head-primary p {
  font-weight: 700;
}

.member-theme-relay-plan-card {
  display: grid;
  gap: 0.62rem;
  margin-top: 0;
}

.member-theme-relay-plan-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0.58rem;
  align-items: start;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 14px;
  padding: 0.66rem 0.72rem;
  background: rgba(239, 246, 255, 0.86);
  min-height: 92px;
}

.member-theme-relay-plan-row[data-tone="positive"] {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(254, 242, 242, 0.92);
}

.member-theme-relay-plan-row[data-tone="negative"] {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(240, 253, 244, 0.92);
}

.member-theme-relay-plan-row[data-tone="neutral"] {
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(255, 247, 237, 0.94);
}

.member-theme-relay-plan-label {
  display: flex;
  align-items: center;
  color: #1f2937;
  font-size: 0.98rem;
  line-height: 1.24;
  font-weight: 800;
}

.member-theme-relay-plan-row[data-tone="positive"] .member-theme-relay-plan-label {
  color: #991b1b;
}

.member-theme-relay-plan-row[data-tone="negative"] .member-theme-relay-plan-label {
  color: #166534;
}

.member-theme-relay-plan-row[data-tone="neutral"] .member-theme-relay-plan-label {
  color: #9a3412;
}

.member-theme-relay-plan-body {
  display: grid;
  gap: 0.46rem;
  min-width: 0;
}

.member-theme-relay-stock-line {
  display: grid;
  gap: 0.18rem;
  border-left: 3px solid rgba(107, 114, 128, 0.26);
  padding-left: 0.56rem;
  min-height: 52px;
  align-content: start;
}

.member-theme-relay-stock-line[data-tone="positive"] {
  border-left-color: rgba(220, 38, 38, 0.42);
}

.member-theme-relay-stock-line[data-tone="negative"] {
  border-left-color: rgba(22, 163, 74, 0.42);
}

.member-theme-relay-stock-line[data-tone="neutral"] {
  border-left-color: rgba(245, 158, 11, 0.42);
}

.member-theme-relay-stock-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
}

.member-theme-relay-stock-main strong {
  color: #111827;
  font-size: 0.94rem;
  line-height: 1.4;
}

.member-theme-relay-stock-main span,
.member-theme-relay-stock-reason,
.member-theme-relay-empty {
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.52;
}

.member-theme-relay-stock-reason {
  word-break: break-word;
}

.member-theme-relay-guard-list {
  margin-top: 0.58rem;
  padding-left: 0;
  list-style: none;
  gap: 0.42rem;
}

.member-theme-relay-guard-item {
  margin: 0;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 7px;
  background: rgba(240, 253, 244, 0.92);
  padding: 0.5rem 0.62rem;
  color: #111827;
  font-size: 0.84rem;
  line-height: 1.58;
}

.member-theme-relay-evidence-tip {
  padding-bottom: 0.72rem;
}

.member-theme-relay-raw-panel {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.member-theme-relay-report-grid .member-theme-relay-report-block {
  height: auto;
}

.member-theme-relay-report-grid > .member-theme-relay-report-block:nth-child(3) .member-theme-relay-plan-row {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.38rem;
}

.member-theme-relay-report-grid > .member-theme-relay-report-block:nth-child(3) .member-theme-relay-plan-label {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  white-space: normal;
  word-break: keep-all;
}

.member-theme-relay-raw-head {
  margin-bottom: 0.78rem;
}

.member-theme-relay-raw-panel .member-limitup-battle-map-summary,
.member-theme-relay-raw-panel .member-limitup-battle-map-table-shell,
.member-theme-relay-raw-panel > p {
  margin: 0;
}

.member-theme-relay-raw-panel .member-limitup-battle-map-summary {
  margin-bottom: 0;
  padding-bottom: 0.96rem;
}

.member-theme-relay-raw-panel .member-limitup-battle-map-table-shell {
  margin-top: 0;
}

@media (min-width: 900px) {
  .member-theme-relay-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-theme-relay-report-grid > .member-theme-relay-report-block:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1180px) {
  .member-theme-relay-report-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .member-theme-relay-report-grid > .member-theme-relay-report-block:first-child {
    grid-column: span 5;
  }

  .member-theme-relay-report-grid > .member-theme-relay-report-block:nth-child(2) {
    grid-column: span 4;
  }

  .member-theme-relay-report-grid > .member-theme-relay-report-block:nth-child(3) {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .member-theme-relay-report-block,
  .member-theme-relay-raw-panel {
    padding: 0.78rem;
    border-radius: 12px;
  }

  .member-theme-relay-raw-panel {
    padding: 0;
    border-radius: 0;
  }

  .member-theme-relay-report-titlebar {
    padding-inline: 0;
  }

  .member-theme-relay-hero-top,
  .member-theme-relay-card-headline,
  .member-theme-relay-sector-main,
  .member-theme-relay-raw-head {
    flex-direction: column;
  }

  .member-theme-relay-plan-row {
    grid-template-columns: 1fr;
    gap: 0.42rem;
    min-height: 0;
  }

  .member-theme-relay-report-grid > .member-theme-relay-report-block:nth-child(3) .member-theme-relay-plan-row {
    grid-template-columns: 1fr;
  }

  .member-theme-relay-plan-label {
    font-size: 0.82rem;
  }
}

.member-theme-relay-report-summary {
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.68;
}

.member-theme-relay-report-section {
  display: grid;
  gap: 0.68rem;
}

.member-theme-relay-note-stack {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.62rem;
}

.member-theme-relay-overview-item,
.member-theme-relay-review-card,
.member-theme-cycle-calendar-row {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.member-theme-relay-overview-item {
  display: grid;
  align-content: start;
  gap: 0.22rem;
  padding: 0.76rem 0.82rem;
  min-width: 0;
  width: 100%;
}

.member-theme-relay-overview-item[data-tone="positive"] {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.98));
}

.member-theme-relay-overview-item[data-tone="negative"] {
  border-color: rgba(34, 197, 94, 0.22);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.98));
}

.member-theme-relay-overview-item[data-tone="neutral"] {
  border-color: rgba(249, 115, 22, 0.18);
}

.member-theme-relay-overview-label {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 700;
}

.member-theme-relay-overview-item strong {
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.42;
}

.member-theme-relay-overview-item p {
  margin: 0;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.5;
}

.member-theme-relay-review-card {
  display: grid;
  align-content: start;
  gap: 0.58rem;
  padding: 0.82rem 0.88rem;
  min-width: 0;
  min-height: 230px;
}

.member-theme-relay-review-card[data-tone="positive"] {
  border-color: rgba(239, 68, 68, 0.18);
}

.member-theme-relay-review-card[data-tone="negative"] {
  border-color: rgba(34, 197, 94, 0.18);
}

.member-theme-relay-review-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 52px;
}

.member-theme-relay-review-card-head strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.4;
}

.member-theme-relay-review-summary {
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.62;
}

.member-theme-relay-card-meta {
  display: grid;
  gap: 0.34rem;
  align-content: start;
}

.member-theme-relay-card-meta > span {
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 700;
}

.member-theme-relay-evidence-panel {
  display: grid;
  gap: 0.42rem;
  padding: 0.72rem 0.78rem;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.88);
  min-width: 0;
  min-height: 100%;
  width: 100%;
}

.member-theme-relay-evidence-label {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
}

.member-theme-relay-evidence-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.36rem;
}

.member-theme-relay-evidence-panel p {
  margin: 0;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.54;
}

.member-theme-relay-compact-note {
  margin: 0;
  padding: 0.58rem 0.64rem;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px dashed rgba(148, 163, 184, 0.32);
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.56;
}

.member-theme-relay-compact-note strong {
  color: #0f172a;
}

.member-theme-relay-mini-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  align-items: stretch;
  gap: 0.46rem;
}

.member-theme-cycle-card .member-theme-cycle-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  align-items: stretch;
  gap: 0.46rem;
}

.member-theme-relay-mini-metric {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
  padding: 0.56rem 0.6rem;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.16);
  align-content: start;
  min-height: 76px;
}

.member-theme-relay-mini-metric span {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 700;
}

.member-theme-relay-mini-metric strong {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.member-theme-relay-mini-metric em {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.35;
  font-style: normal;
}

.member-theme-relay-path-level .member-theme-relay-mini-metrics,
.member-theme-relay-success-list .member-theme-relay-mini-metrics {
  justify-content: flex-start;
}

.member-theme-cycle-card {
  gap: 0.66rem;
  padding: 0.84rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  min-height: 100%;
}

.member-theme-cycle-track {
  gap: 0.42rem;
}

.member-theme-cycle-track-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.74);
  color: #0f172a;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 800;
}

.member-theme-cycle-track-item[data-tone="positive"] {
  background: rgba(254, 226, 226, 0.96);
  color: #b91c1c;
}

.member-theme-cycle-track-item[data-tone="negative"] {
  background: rgba(220, 252, 231, 0.96);
  color: #166534;
}

.member-theme-cycle-track-item[data-tone="neutral"] {
  background: rgba(254, 243, 199, 0.96);
  color: #b45309;
}

.member-theme-cycle-calendar-list {
  display: grid;
  gap: 0.68rem;
}

.member-theme-cycle-calendar-row {
  display: grid;
  gap: 0.7rem;
  padding: 0.82rem 0.88rem;
  align-content: start;
}

.member-theme-cycle-calendar-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
}

.member-theme-cycle-calendar-row-title {
  min-width: 0;
}

.member-theme-cycle-calendar-day {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.58rem 0.62rem;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
  align-content: start;
  min-height: 92px;
}

.member-theme-cycle-calendar-day[data-tone="positive"] {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(254, 242, 242, 0.94);
}

.member-theme-cycle-calendar-day[data-tone="negative"] {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(240, 253, 244, 0.94);
}

.member-theme-cycle-calendar-day[data-tone="neutral"] {
  border-color: rgba(249, 115, 22, 0.18);
}

.member-theme-cycle-calendar-date {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 700;
}

.member-theme-cycle-calendar-day strong {
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.2;
}

.member-theme-cycle-calendar-day em {
  color: #475569;
  font-size: 0.72rem;
  line-height: 1.3;
  font-style: normal;
}

.member-theme-cycle-calendar-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.member-theme-cycle-calendar-markers .member-theme-relay-empty {
  font-size: 0.72rem;
  line-height: 1.3;
}

.member-theme-relay-calendar-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.member-theme-relay-calendar-scroll:active {
  cursor: grabbing;
}

.member-theme-relay-calendar-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.member-theme-relay-calendar-table th,
.member-theme-relay-calendar-table td {
  white-space: nowrap;
}

.member-theme-relay-calendar-table th:first-child,
.member-theme-relay-calendar-table td:first-child {
  min-width: 90px;
}

.member-theme-relay-calendar-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.member-theme-relay-calendar-cell strong,
.member-theme-relay-calendar-cell span {
  display: inline;
}

@media (min-width: 900px) {
  .member-theme-relay-review-card {
    min-height: 250px;
  }
}

@media (max-width: 640px) {
  #memberThemeRelayReviewContent > .member-theme-relay-report-shell,
  #memberThemeRelayReplayContent > .member-theme-relay-report-shell,
  #memberThemeRelayCycleContent > .member-theme-relay-report-shell {
    padding: 0.82rem 0.86rem 0.9rem;
    border-radius: 14px;
  }

  .member-theme-relay-focus-grid,
  .member-theme-relay-compact-grid,
  .member-theme-relay-data-grid,
  .member-theme-relay-overview-strip,
  .member-theme-cycle-calendar-days {
    grid-template-columns: 1fr;
  }

  .member-theme-relay-review-card-head,
  .member-theme-cycle-calendar-row-head {
    flex-direction: column;
  }

  .member-theme-relay-mini-metrics,
  .member-theme-cycle-card .member-theme-cycle-metrics,
  .member-theme-relay-path-level .member-theme-relay-mini-metrics {
    gap: 0.38rem;
  }

  .member-theme-relay-review-card {
    min-height: 0;
  }
}
