body[data-theme='light'] {
  color-scheme: light;
  color: #162033;
  background:
    radial-gradient(circle at 50% -10%, rgba(59, 130, 246, 0.12), transparent 26%),
    linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
}

body[data-theme='light'] .topbar,
body[data-theme='light'] .hero,
body[data-theme='light'] .toolbar,
body[data-theme='light'] .insights-panel,
body[data-theme='light'] .rank-panel,
body[data-theme='light'] .card,
body[data-theme='light'] .empty-state {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 24px 60px rgba(148, 163, 184, 0.18);
}

body[data-theme='light'] .brand-subtitle,
body[data-theme='light'] .hero-subtitle,
body[data-theme='light'] .hero-side-time,
body[data-theme='light'] .hero-metric-label,
body[data-theme='light'] .hero-side-label,
body[data-theme='light'] .rank-intro,
body[data-theme='light'] .rank-note,
body[data-theme='light'] .rank-bar-meta,
body[data-theme='light'] .rank-bar-desc,
body[data-theme='light'] .summary-highlight,
body[data-theme='light'] .summary-who,
body[data-theme='light'] .summary-item,
body[data-theme='light'] .insight-note,
body[data-theme='light'] .insight-list,
body[data-theme='light'] .meta-item,
body[data-theme='light'] .text-control::placeholder,
body[data-theme='light'] .muted-pill,
body[data-theme='light'] .control-label {
  color: #5f6f86 !important;
}

body[data-theme='light'] .title-blue {
  color: #1d4ed8 !important;
}

body[data-theme='light'] .title-white,
body[data-theme='light'] .brand-name,
body[data-theme='light'] .hero-metric strong,
body[data-theme='light'] .repo-link,
body[data-theme='light'] .summary-what,
body[data-theme='light'] .insights-head h2,
body[data-theme='light'] .rank-head h2,
body[data-theme='light'] .rank-bar-title,
body[data-theme='light'] .rank-bar-value,
body[data-theme='light'] .insight-title,
body[data-theme='light'] .insight-content,
body[data-theme='light'] .insight-content strong,
body[data-theme='light'] .preview-copy-title,
body[data-theme='light'] .preview-copy-subtitle,
body[data-theme='light'] .summary-card-label {
  color: #162033 !important;
}

body[data-theme='light'] .page-tab {
  color: #4b5d77 !important;
}

body[data-theme='light'] .page-tab.active,
body[data-theme='light'] .segment-button.active,
body[data-theme='light'] .language-chip.active {
  color: #1d4ed8 !important;
}

body[data-theme='light'] .secondary-button,
body[data-theme='light'] .segment-button,
body[data-theme='light'] .language-chip,
body[data-theme='light'] .hero-side-card,
body[data-theme='light'] .rank-bar-card,
body[data-theme='light'] .pseudo-preview,
body[data-theme='light'] .insight-card,
body[data-theme='light'] .meta-item,
body[data-theme='light'] .topic-pill,
body[data-theme='light'] .search-shell {
  background: rgba(37, 99, 235, 0.04) !important;
}

body[data-theme='light'] .hero-mini-window {
  background: #dde8f7 !important;
}

body[data-theme='light'] .hero-mini-sheet,
body[data-theme='light'] .pseudo-window-sheet {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%) !important;
}

body[data-theme='light'] .select-control,
body[data-theme='light'] .select-control option,
body[data-theme='light'] .search-shell {
  background: #ffffff !important;
  color: #162033 !important;
}

body[data-theme='light'] .text-control {
  color: #162033 !important;
}

body[data-theme='light'] .hero-side-card,
body[data-theme='light'] .insight-card,
body[data-theme='light'] .rank-bar-card,
body[data-theme='light'] .pseudo-preview,
body[data-theme='light'] .meta-item,
body[data-theme='light'] .topic-pill,
body[data-theme='light'] .segmented-control,
body[data-theme='light'] .search-shell {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

body[data-theme='light'] .hero-side-label,
body[data-theme='light'] .summary-card-label,
body[data-theme='light'] .meta-link,
body[data-theme='light'] .rank-bar-value,
body[data-theme='light'] .topic-pill,
body[data-theme='light'] .language-chip,
body[data-theme='light'] .segment-button,
body[data-theme='light'] .segment-button.active,
body[data-theme='light'] .language-chip.active {
  color: #1d4ed8 !important;
}

body[data-theme='light'] .insight-title,
body[data-theme='light'] .insight-content,
body[data-theme='light'] .insight-content strong,
body[data-theme='light'] .rank-bar-title,
body[data-theme='light'] .summary-item,
body[data-theme='light'] .summary-what,
body[data-theme='light'] .secondary-button {
  color: #162033 !important;
}

body[data-theme='light'] .rank-bar-meta,
body[data-theme='light'] .rank-bar-desc,
body[data-theme='light'] .summary-who,
body[data-theme='light'] .summary-highlight,
body[data-theme='light'] .control-label,
body[data-theme='light'] .meta-item {
  color: #5f6f86 !important;
}

body[data-theme='light'] .secondary-button,
body[data-theme='light'] .segment-button,
body[data-theme='light'] .language-chip {
  border-color: rgba(37, 99, 235, 0.28) !important;
}

body[data-theme='light'] .meta-item {
  background: rgba(15, 23, 42, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

body[data-theme='light'] .topic-pill {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.24) !important;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-toggle {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body[data-theme='light'] .theme-toggle {
  background: rgba(37, 99, 235, 0.06);
}

@media (max-width: 1080px) {
  .topbar-right {
    justify-content: space-between;
  }
}
