.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-left: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(23, 32, 42, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #17202a;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(23, 32, 42, 0.08);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 143, 112, 0.34);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(79, 209, 181, 0.34);
  outline-offset: 3px;
}

.theme-toggle-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #182934 50%, #f3efe4 50%);
  box-shadow: inset 0 0 0 1px rgba(23, 32, 42, 0.16);
}

.theme-toggle-text {
  white-space: nowrap;
}

html[data-theme="soft-light"] {
  --ink: #172431;
  --muted: #66746f;
  --paper: #eee9dd;
  --line: #d4cdc0;
  color-scheme: light;
}

html[data-theme="soft-light"] body {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 112, 87, 0.1), transparent 26rem),
    linear-gradient(180deg, #f4efe5 0%, #e7ede6 52%, #f0ebe0 100%);
  color: #172431;
}

html[data-theme="soft-light"] .topbar {
  background: rgba(245, 241, 232, 0.88);
  border-bottom-color: rgba(39, 57, 58, 0.13);
  backdrop-filter: blur(14px);
}

html[data-theme="soft-light"] .brand-mark {
  background: #234a45;
}

html[data-theme="soft-light"] .theme-toggle {
  background: #234a45;
  color: #f7f2e8;
  border-color: rgba(35, 74, 69, 0.28);
  box-shadow: 0 8px 20px rgba(35, 74, 69, 0.16);
}

html[data-theme="soft-light"] .theme-toggle-dot {
  background: linear-gradient(135deg, #ffe0c9 50%, #315b9b 50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

html[data-theme="soft-light"] .hero,
html[data-theme="soft-light"] .health-section,
html[data-theme="soft-light"] .how-it-works {
  color: #172431;
}

html[data-theme="soft-light"] .subtitle,
html[data-theme="soft-light"] .steps p,
html[data-theme="soft-light"] .health-grid span,
html[data-theme="soft-light"] .run-meta span {
  color: #596863;
}

html[data-theme="soft-light"] .health-grid {
  background: rgba(255, 252, 246, 0.72);
  border-color: rgba(45, 65, 63, 0.14);
  box-shadow: 0 16px 38px rgba(50, 54, 49, 0.08);
}

html[data-theme="soft-light"] .schedule-note {
  background: #fff2e4;
}

html[data-theme="soft-light"] .scope-note {
  background: rgba(255, 252, 246, 0.64);
}

html[data-theme="soft-light"] .scanner,
html[data-theme="soft-light"] .etf-section {
  color: #1d2b32;
  background:
    linear-gradient(180deg, rgba(229, 237, 228, 0.96), rgba(236, 230, 218, 0.96));
}

html[data-theme="soft-light"] .feature-menu,
html[data-theme="soft-light"] .market-bulletin-shell,
html[data-theme="soft-light"] .weight50-section {
  color: #193038;
  background: linear-gradient(145deg, rgba(250, 247, 239, 0.94), rgba(224, 237, 228, 0.92));
  border-color: rgba(31, 71, 67, 0.18);
  box-shadow: 0 20px 48px rgba(57, 63, 54, 0.12);
}

html[data-theme="soft-light"] .feature-menu header p,
html[data-theme="soft-light"] .feature-menu header span,
html[data-theme="soft-light"] .feature-arrow,
html[data-theme="soft-light"] .market-bulletin-kicker,
html[data-theme="soft-light"] .market-bulletin-date,
html[data-theme="soft-light"] .market-bulletin-title-wrap em,
html[data-theme="soft-light"] .weight50-head p,
html[data-theme="soft-light"] .weight50-head span,
html[data-theme="soft-light"] .weight50-legend,
html[data-theme="soft-light"] .weight-count span {
  color: #5c756f;
}

html[data-theme="soft-light"] .feature-card {
  color: #173031;
  background: rgba(255, 252, 246, 0.78);
  border-color: rgba(34, 79, 73, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="soft-light"] .feature-card:hover {
  border-color: rgba(0, 143, 112, 0.36);
  box-shadow: 0 16px 30px rgba(65, 72, 59, 0.13);
}

html[data-theme="soft-light"] .feature-card-icon {
  background: rgba(35, 74, 69, 0.1);
}

html[data-theme="soft-light"] .feature-card-copy small,
html[data-theme="soft-light"] .feature-card-copy em {
  color: #3f5e58;
}

html[data-theme="soft-light"] .page-fold-controls button,
html[data-theme="soft-light"] .menu-fold button,
html[data-theme="soft-light"] .back-to-menu {
  color: #1c3c39;
  background: rgba(255, 252, 246, 0.82);
  border-color: rgba(34, 79, 73, 0.18);
}

html[data-theme="soft-light"] .page-fold-controls button:hover,
html[data-theme="soft-light"] .menu-fold button:hover,
html[data-theme="soft-light"] .back-to-menu:hover {
  background: #dbece2;
  border-color: rgba(0, 143, 112, 0.28);
}

html[data-theme="soft-light"] .regime-panel,
html[data-theme="soft-light"] .regime-market,
html[data-theme="soft-light"] .channel-panel {
  color: #1b2d35;
  background: rgba(255, 252, 246, 0.82);
  border-color: rgba(37, 66, 69, 0.15);
  box-shadow: 0 16px 40px rgba(55, 61, 54, 0.1);
}

html[data-theme="soft-light"] .regime-market > header {
  background: rgba(226, 236, 226, 0.72);
}

html[data-theme="soft-light"] .regime-title small,
html[data-theme="soft-light"] .regime-market header small,
html[data-theme="soft-light"] .regime-values small,
html[data-theme="soft-light"] .regime-name small {
  color: #63756f;
}

html[data-theme="soft-light"] .regime-row {
  border-bottom-color: rgba(37, 66, 69, 0.11);
}

html[data-theme="soft-light"] .regime-row:hover {
  background: rgba(223, 235, 224, 0.55);
}

html[data-theme="soft-light"] .regime-bar {
  background: #d2d9d3;
  box-shadow: inset 0 1px 2px rgba(45, 57, 54, 0.18);
}

html[data-theme="soft-light"] .result-panel,
html[data-theme="soft-light"] .etf-panel {
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(37, 66, 69, 0.12);
  box-shadow: 0 16px 38px rgba(55, 61, 54, 0.1);
}

html[data-theme="soft-light"] .panel-head,
html[data-theme="soft-light"] .etf-panel-head {
  border-bottom-color: rgba(37, 66, 69, 0.13);
}

html[data-theme="soft-light"] th {
  background: #e8e2d6;
  color: #697570;
}

html[data-theme="soft-light"] td {
  border-bottom-color: #e4ded2;
}

html[data-theme="soft-light"] tbody tr:hover {
  background: #fffaf1;
}

html[data-theme="soft-light"] .market-tabs,
html[data-theme="soft-light"] .industry-filter,
html[data-theme="soft-light"] .demo-note {
  background: #e8e2d6;
}

html[data-theme="soft-light"] .search,
html[data-theme="soft-light"] .etf-category-select,
html[data-theme="soft-light"] select {
  background: #fffaf1;
  border-color: rgba(31, 71, 67, 0.2);
  color: #172431;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="soft-light"] .search input::placeholder {
  color: #87938d;
}

html[data-theme="soft-light"] .market-bulletin-title-wrap strong,
html[data-theme="soft-light"] .market-bulletin-card-head strong,
html[data-theme="soft-light"] .market-bulletin-card-text,
html[data-theme="soft-light"] .market-bulletin-links span,
html[data-theme="soft-light"] .weight-balance footer b,
html[data-theme="soft-light"] .weight-sector > header b,
html[data-theme="soft-light"] .weight-tile {
  color: #183038;
}

html[data-theme="soft-light"] .market-bulletin-card,
html[data-theme="soft-light"] .market-bulletin-lead,
html[data-theme="soft-light"] .market-bulletin-links a,
html[data-theme="soft-light"] .market-bulletin-evidence-chips span,
html[data-theme="soft-light"] .market-bulletin-signal-board span,
html[data-theme="soft-light"] .weight50-summary,
html[data-theme="soft-light"] .weight50-controls > div,
html[data-theme="soft-light"] .weight-sector {
  background: rgba(255, 252, 246, 0.78);
  border-color: rgba(34, 79, 73, 0.14);
}

html[data-theme="soft-light"] .market-bulletin-links small,
html[data-theme="soft-light"] .market-bulletin-evidence-chips b {
  color: #007c65;
}

html[data-theme="soft-light"] .weight50-controls button {
  color: #567069;
}

html[data-theme="soft-light"] .weight50-controls button.selected {
  background: #dcebe2;
  color: #173031;
}

html[data-theme="soft-light"] .weight-tile.sun {
  color: #3e241d;
  background: linear-gradient(145deg, #fff0e8, #f6d5c6);
  border-color: rgba(217, 83, 49, 0.22);
}

html[data-theme="soft-light"] .weight-tile.moon {
  color: #1f334a;
  background: linear-gradient(145deg, #eaf0f8, #d5e0ef);
  border-color: rgba(49, 91, 155, 0.22);
}

html[data-theme="soft-light"] .weight-tile-top em,
html[data-theme="soft-light"] .weight-tile > small,
html[data-theme="soft-light"] .weight-tile > i {
  color: rgba(29, 45, 51, 0.62);
}

html[data-theme="soft-light"] .etf-metric,
html[data-theme="soft-light"] .etf-overview {
  color: #173031;
  background: rgba(255, 252, 246, 0.78);
  border-color: rgba(34, 79, 73, 0.16);
}

html[data-theme="soft-light"] .etf-metric small,
html[data-theme="soft-light"] .etf-metric i,
html[data-theme="soft-light"] .etf-overview small,
html[data-theme="soft-light"] .etf-overview span {
  color: #61766f;
}

html[data-theme="soft-light"] .etf-overview > div,
html[data-theme="soft-light"] .weight-bar {
  background: #cdd9d4;
}

/* Softer daylight pass: keep the page bright enough to read, but away from pure white. */
html[data-theme="soft-light"] {
  --ink: #182a2c;
  --muted: #63736f;
  --paper: #dfe6dd;
  --line: #bccbc3;
}

html[data-theme="soft-light"] body {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 112, 87, 0.07), transparent 25rem),
    radial-gradient(circle at 82% 18%, rgba(75, 139, 129, 0.09), transparent 27rem),
    linear-gradient(180deg, #dfe7de 0%, #cfdcd6 48%, #d9dfd3 100%);
  color: #182a2c;
}

html[data-theme="soft-light"] .topbar {
  background: rgba(221, 230, 222, 0.92);
  border-bottom-color: rgba(32, 62, 59, 0.18);
}

html[data-theme="soft-light"] .health-grid,
html[data-theme="soft-light"] .scope-note {
  background: rgba(229, 235, 226, 0.78);
  border-color: rgba(32, 62, 59, 0.15);
}

html[data-theme="soft-light"] .scanner,
html[data-theme="soft-light"] .etf-section {
  background: linear-gradient(180deg, rgba(207, 220, 214, 0.96), rgba(217, 223, 211, 0.96));
}

html[data-theme="soft-light"] .feature-menu,
html[data-theme="soft-light"] .market-bulletin-shell,
html[data-theme="soft-light"] .weight50-section {
  background: linear-gradient(145deg, rgba(224, 232, 222, 0.94), rgba(197, 216, 209, 0.93));
  border-color: rgba(31, 74, 69, 0.22);
  box-shadow: 0 20px 48px rgba(36, 55, 51, 0.14);
}

html[data-theme="soft-light"] .feature-card,
html[data-theme="soft-light"] .market-bulletin-card,
html[data-theme="soft-light"] .market-bulletin-lead,
html[data-theme="soft-light"] .market-bulletin-links a,
html[data-theme="soft-light"] .market-bulletin-evidence-chips span,
html[data-theme="soft-light"] .market-bulletin-signal-board span,
html[data-theme="soft-light"] .weight50-summary,
html[data-theme="soft-light"] .weight50-controls > div,
html[data-theme="soft-light"] .weight-sector,
html[data-theme="soft-light"] .etf-metric,
html[data-theme="soft-light"] .etf-overview {
  background: rgba(223, 232, 224, 0.82);
  border-color: rgba(34, 79, 73, 0.18);
}

html[data-theme="soft-light"] .regime-panel,
html[data-theme="soft-light"] .regime-market,
html[data-theme="soft-light"] .channel-panel,
html[data-theme="soft-light"] .result-panel,
html[data-theme="soft-light"] .etf-panel {
  background: rgba(222, 230, 222, 0.9);
  border-color: rgba(37, 66, 69, 0.18);
  box-shadow: 0 16px 40px rgba(36, 55, 51, 0.12);
}

html[data-theme="soft-light"] .regime-market > header,
html[data-theme="soft-light"] .market-tabs,
html[data-theme="soft-light"] .industry-filter,
html[data-theme="soft-light"] .demo-note,
html[data-theme="soft-light"] th {
  background: #cddad2;
}

html[data-theme="soft-light"] .page-fold-controls button,
html[data-theme="soft-light"] .menu-fold button,
html[data-theme="soft-light"] .back-to-menu,
html[data-theme="soft-light"] .search,
html[data-theme="soft-light"] .etf-category-select,
html[data-theme="soft-light"] select {
  background: rgba(231, 237, 229, 0.86);
  border-color: rgba(31, 71, 67, 0.24);
  color: #182a2c;
}

html[data-theme="soft-light"] tbody tr:hover,
html[data-theme="soft-light"] .regime-row:hover {
  background: rgba(205, 218, 210, 0.7);
}

html[data-theme="soft-light"] .theme-toggle {
  background: #254d47;
  color: #eef5ed;
}

html[data-theme="soft-light"] .market-bulletin {
  color: #183038;
}

html[data-theme="soft-light"] .market-bulletin-shell {
  color: #183038;
}

html[data-theme="soft-light"] .market-bulletin-shell[open] {
  border-color: rgba(31, 74, 69, 0.28);
}

html[data-theme="soft-light"] .market-bulletin-kicker,
html[data-theme="soft-light"] .market-bulletin-card-head p {
  color: #2f8176;
}

html[data-theme="soft-light"] .market-bulletin-title-wrap strong,
html[data-theme="soft-light"] .market-bulletin-card-head strong {
  color: #102832;
}

html[data-theme="soft-light"] .market-bulletin-title-wrap em,
html[data-theme="soft-light"] .market-bulletin-card-text,
html[data-theme="soft-light"] .market-bulletin-lead p,
html[data-theme="soft-light"] .market-bulletin-links span,
html[data-theme="soft-light"] .market-bulletin-evidence-chips span,
html[data-theme="soft-light"] .market-bulletin-signal-board span {
  color: #375750;
}

html[data-theme="soft-light"] .market-bulletin-date {
  background: rgba(87, 112, 109, 0.24);
  border-color: rgba(57, 87, 82, 0.22);
  color: #365550;
}

html[data-theme="soft-light"] .market-bulletin-toggle {
  background: rgba(255, 117, 84, 0.12);
  border-color: rgba(255, 117, 84, 0.28);
  color: #c45d48;
}

html[data-theme="soft-light"] .market-bulletin-lead,
html[data-theme="soft-light"] .market-bulletin-card,
html[data-theme="soft-light"] .market-bulletin-links a,
html[data-theme="soft-light"] .market-bulletin-evidence-chips span,
html[data-theme="soft-light"] .market-bulletin-signal-board span {
  background: rgba(218, 229, 220, 0.76);
  border-color: rgba(39, 83, 77, 0.2);
}

html[data-theme="soft-light"] .market-bulletin-lead span {
  background: rgba(255, 117, 84, 0.15);
  color: #c95f49;
}

html[data-theme="soft-light"] .market-bulletin-links a {
  color: #1f3e3c;
}

html[data-theme="soft-light"] .market-bulletin-links a:hover {
  color: #102832;
  border-color: rgba(255, 117, 84, 0.38);
}

html[data-theme="soft-light"] .market-bulletin-links small,
html[data-theme="soft-light"] .market-bulletin-evidence-chips b {
  color: #007c65;
}

.health-summary-toggle {
  display: none;
}

.health-section.health-collapsible {
  margin-bottom: 38px;
}

.health-section.health-collapsible .health-summary-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 78px;
  padding: 18px 22px;
  border: 1px solid rgba(216, 213, 204, 0.9);
  border-radius: 18px;
  background: rgba(250, 248, 243, 0.72);
  color: #17202a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(23, 32, 42, 0.06);
}

.health-summary-toggle span,
.health-summary-toggle b,
.health-summary-toggle strong,
.health-summary-toggle em,
.health-summary-toggle i {
  display: block;
}

.health-summary-toggle b {
  margin-bottom: 6px;
  color: #6a756f;
  font: 800 11px/1.2 monospace;
  letter-spacing: .22em;
}

.health-summary-toggle strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.health-summary-toggle em {
  color: #65717d;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.health-summary-toggle i {
  min-width: 58px;
  padding: 9px 13px;
  border: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 999px;
  background: rgba(23, 32, 42, 0.06);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.health-section.health-collapsible:not(.health-open) .health-heading,
.health-section.health-collapsible:not(.health-open) .health-grid,
.health-section.health-collapsible:not(.health-open) .schedule-note,
.health-section.health-collapsible:not(.health-open) .scope-note {
  display: none;
}

.health-section.health-collapsible.health-open .health-summary-toggle {
  margin-bottom: 18px;
}

html[data-theme="soft-light"] .health-section.health-collapsible .health-summary-toggle {
  background: rgba(224, 232, 222, 0.82);
  border-color: rgba(31, 74, 69, 0.2);
  color: #183038;
  box-shadow: 0 14px 32px rgba(36, 55, 51, 0.08);
}

html[data-theme="soft-light"] .health-section.health-collapsible .health-summary-toggle b,
html[data-theme="soft-light"] .health-section.health-collapsible .health-summary-toggle em {
  color: #5f756f;
}

html[data-theme="soft-light"] .health-section.health-collapsible .health-summary-toggle i {
  background: rgba(39, 83, 77, 0.1);
  border-color: rgba(39, 83, 77, 0.2);
  color: #254d47;
}

html[data-theme="soft-light"] .weight-sector > header > strong.sun {
  color: #c46a55;
}

html[data-theme="soft-light"] .weight-sector > header > strong.moon {
  color: #5b7fae;
}

html[data-theme="soft-light"] .weight-tile.sun {
  color: #2d2420;
  background: linear-gradient(145deg, rgba(238, 214, 202, 0.84), rgba(225, 203, 193, 0.9));
  border-color: rgba(203, 109, 83, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

html[data-theme="soft-light"] .weight-tile.moon {
  color: #1f2c3b;
  background: linear-gradient(145deg, rgba(210, 220, 231, 0.86), rgba(196, 210, 224, 0.92));
  border-color: rgba(91, 127, 174, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html[data-theme="soft-light"] .weight-tile-top em,
html[data-theme="soft-light"] .weight-tile > small,
html[data-theme="soft-light"] .weight-tile > i {
  color: rgba(37, 58, 60, 0.68);
}

html[data-theme="soft-light"] .weight-tile:hover {
  border-color: rgba(31, 74, 69, 0.32);
  box-shadow: 0 12px 24px rgba(36, 55, 51, 0.12);
  filter: saturate(0.96);
}

html[data-theme="soft-light"] .weight50-legend i.sun {
  background: #c46a55;
}

html[data-theme="soft-light"] .weight50-legend i.moon {
  background: #6f8fb8;
}

html[data-theme="soft-light"] .weight-count.sun small,
html[data-theme="soft-light"] .weight-count.sun strong,
html[data-theme="soft-light"] .weight-balance > div:first-child b {
  color: #d36f5d;
}

html[data-theme="soft-light"] .weight-count.moon small,
html[data-theme="soft-light"] .weight-count.moon strong,
html[data-theme="soft-light"] .weight-balance > div:first-child span {
  color: #6e8faf;
}

html[data-theme="soft-light"] .weight-bar {
  background: linear-gradient(90deg, #d9b9ad, #c0cedb);
  box-shadow: inset 0 1px 3px rgba(58, 72, 72, 0.2);
}

html[data-theme="soft-light"] .weight-bar i {
  background: linear-gradient(90deg, #cc6453, #df8a76);
  box-shadow: none;
}

/* Keep TW50 and US50 on one visual system in soft-light mode. */
html[data-theme="soft-light"] .weight50-section,
html[data-theme="soft-light"] .us-core-section {
  color: #edf5f5;
  background:
    radial-gradient(circle at 88% 0, rgba(89, 133, 166, 0.18), transparent 34%),
    linear-gradient(145deg, #21383d, #253a47 55%, #293847);
  border-color: rgba(184, 210, 221, 0.2);
  box-shadow: 0 22px 52px rgba(36, 55, 65, 0.2);
}

html[data-theme="soft-light"] .weight50-head h2,
html[data-theme="soft-light"] .us-head h2,
html[data-theme="soft-light"] .weight-balance footer b,
html[data-theme="soft-light"] .us-balance footer b,
html[data-theme="soft-light"] .weight-sector > header b,
html[data-theme="soft-light"] .us-sector > header b,
html[data-theme="soft-light"] .us-all-view > header b {
  color: #f2f7f6;
}

html[data-theme="soft-light"] .weight50-head p,
html[data-theme="soft-light"] .us-head p {
  color: #91bdc5;
}

html[data-theme="soft-light"] .weight50-head span,
html[data-theme="soft-light"] .us-head span,
html[data-theme="soft-light"] .weight50-legend,
html[data-theme="soft-light"] .us-legend,
html[data-theme="soft-light"] .weight-count span,
html[data-theme="soft-light"] .us-count span,
html[data-theme="soft-light"] .weight-balance footer,
html[data-theme="soft-light"] .us-balance footer,
html[data-theme="soft-light"] .weight-sector header small,
html[data-theme="soft-light"] .us-sector header small,
html[data-theme="soft-light"] .us-all-view header small,
html[data-theme="soft-light"] .weight50-note,
html[data-theme="soft-light"] .us-note {
  color: #a8bdbc;
}

html[data-theme="soft-light"] .weight50-summary,
html[data-theme="soft-light"] .us-summary,
html[data-theme="soft-light"] .weight50-controls > div,
html[data-theme="soft-light"] .us-controls > div,
html[data-theme="soft-light"] .weight-sector,
html[data-theme="soft-light"] .us-sector,
html[data-theme="soft-light"] .us-all-view,
html[data-theme="soft-light"] .us-time-strip span {
  background: rgba(11, 27, 35, 0.36);
  border-color: rgba(210, 231, 234, 0.12);
}

html[data-theme="soft-light"] .weight50-controls button,
html[data-theme="soft-light"] .us-controls button {
  color: #a9bfbd;
}

html[data-theme="soft-light"] .weight50-controls button.selected,
html[data-theme="soft-light"] .us-controls button.selected {
  color: #f4f8f7;
  background: #35606a;
  box-shadow: 0 3px 10px rgba(5, 17, 22, 0.28);
}

html[data-theme="soft-light"] .weight-tile.sun,
html[data-theme="soft-light"] .us-tile.sun {
  color: #fff7f3;
  background: linear-gradient(145deg, #84473f, #54343a);
  border-color: rgba(255, 148, 119, 0.3);
}

html[data-theme="soft-light"] .weight-tile.moon,
html[data-theme="soft-light"] .us-tile.moon {
  color: #f3f7fc;
  background: linear-gradient(145deg, #3e648c, #31465f);
  border-color: rgba(145, 190, 235, 0.3);
}

html[data-theme="soft-light"] .weight-tile-top em,
html[data-theme="soft-light"] .weight-tile > small,
html[data-theme="soft-light"] .weight-tile > i,
html[data-theme="soft-light"] .us-tile em,
html[data-theme="soft-light"] .us-tile > small,
html[data-theme="soft-light"] .us-tile > i {
  color: rgba(245, 250, 250, 0.72);
}

html[data-theme="soft-light"] .us-time-strip small { color: #9bb5b4; }
html[data-theme="soft-light"] .us-time-strip b { color: #eef6f5; }

/* Soft-light signal summary: keep the scanner palette airy and the figures legible. */
html[data-theme="soft-light"] .scanner .signal-card,
html[data-theme="soft-light"] .scanner .coverage {
  color: #21343a;
  border-color: rgba(39, 83, 77, 0.18);
  box-shadow: 0 12px 28px rgba(48, 67, 61, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

html[data-theme="soft-light"] .scanner .sun-card {
  background: linear-gradient(145deg, rgba(255, 241, 231, 0.96), rgba(241, 215, 202, 0.94));
  border-color: rgba(201, 103, 76, 0.28);
}

html[data-theme="soft-light"] .scanner .moon-card {
  background: linear-gradient(145deg, rgba(233, 240, 247, 0.97), rgba(207, 220, 232, 0.94));
  border-color: rgba(82, 120, 157, 0.28);
}

html[data-theme="soft-light"] .scanner .coverage {
  background: linear-gradient(145deg, rgba(239, 244, 235, 0.97), rgba(215, 226, 216, 0.94));
}

html[data-theme="soft-light"] .scanner .signal-card:hover,
html[data-theme="soft-light"] .scanner .signal-card.active {
  border-color: rgba(39, 83, 77, 0.38);
  box-shadow: 0 15px 32px rgba(48, 67, 61, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="soft-light"] .scanner .signal-icon {
  color: #21343a;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(39, 83, 77, 0.1);
}

html[data-theme="soft-light"] .scanner .signal-card small,
html[data-theme="soft-light"] .scanner .signal-card i,
html[data-theme="soft-light"] .scanner .coverage small,
html[data-theme="soft-light"] .scanner .coverage span {
  color: #596e6a;
}

html[data-theme="soft-light"] .scanner .sun-card strong { color: #ad4e36; }
html[data-theme="soft-light"] .scanner .moon-card strong { color: #355e8c; }
html[data-theme="soft-light"] .scanner .coverage strong { color: #244f49; }

/* Soft-light regime map: keep every drill-down layer readable on a light canvas. */
html[data-theme="soft-light"] .regime-map {
  color: #183038;
}

html[data-theme="soft-light"] .regime-breadcrumb {
  color: #5f756f;
  background: rgba(217, 228, 219, 0.68);
  border-bottom-color: rgba(37, 66, 69, 0.14);
}

html[data-theme="soft-light"] .regime-breadcrumb button {
  color: #234f49;
}

html[data-theme="soft-light"] .regime-breadcrumb button:hover {
  color: #a94f3b;
}

html[data-theme="soft-light"] .regime-map-detail {
  color: #183038;
}

html[data-theme="soft-light"] .regime-detail-head b,
html[data-theme="soft-light"] .regime-stock-columns h4 {
  color: #102832;
}

html[data-theme="soft-light"] .regime-detail-head small,
html[data-theme="soft-light"] .regime-detail-head span {
  color: #5b706b;
}

html[data-theme="soft-light"] .regime-detail-head button {
  color: #234f49;
  background: rgba(231, 237, 229, 0.86);
  border-color: rgba(31, 71, 67, 0.22);
}

html[data-theme="soft-light"] .regime-detail-head button:hover {
  color: #a94f3b;
  background: rgba(237, 228, 217, 0.92);
  border-color: rgba(201, 103, 76, 0.34);
}

html[data-theme="soft-light"] .regime-subtitle {
  color: #254d47;
}

html[data-theme="soft-light"] .regime-map-card,
html[data-theme="soft-light"] .regime-industry-row,
html[data-theme="soft-light"] .regime-stock-columns section {
  color: #183038;
  background: rgba(224, 232, 222, 0.88);
  border-color: rgba(34, 79, 73, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

html[data-theme="soft-light"] .regime-map-card:hover,
html[data-theme="soft-light"] .regime-map-card.active,
html[data-theme="soft-light"] .regime-industry-row:hover,
html[data-theme="soft-light"] .regime-industry-row.active {
  color: #102832;
  background: rgba(213, 226, 216, 0.96);
  border-color: rgba(31, 74, 69, 0.32);
  box-shadow: 0 12px 24px rgba(36, 55, 51, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

html[data-theme="soft-light"] .regime-stock-columns section+section {
  border-color: rgba(91, 127, 174, 0.22);
}

html[data-theme="soft-light"] .regime-map-card strong,
html[data-theme="soft-light"] .regime-industry-row strong,
html[data-theme="soft-light"] .regime-stock span,
html[data-theme="soft-light"] .regime-stock span b {
  color: #102832;
}

html[data-theme="soft-light"] .regime-map-card small,
html[data-theme="soft-light"] .regime-industry-row small,
html[data-theme="soft-light"] .regime-stock small,
html[data-theme="soft-light"] .regime-values small,
html[data-theme="soft-light"] .regime-stock-columns p {
  color: #5f756f;
}

html[data-theme="soft-light"] .regime-stock {
  color: #183038;
  border-top-color: rgba(37, 66, 69, 0.12);
}

html[data-theme="soft-light"] .regime-stock:hover {
  color: #a94f3b;
  background: rgba(255, 248, 238, 0.48);
}

html[data-theme="soft-light"] .regime-stock em.up {
  color: #b6533d;
}

html[data-theme="soft-light"] .regime-stock em.down {
  color: #426da1;
}

html[data-theme="soft-light"] .regime-stock-columns h4 b {
  color: #244f49;
  background: rgba(39, 83, 77, 0.1);
}

html[data-theme="soft-light"] .regime-map-card.bull>em,
html[data-theme="soft-light"] .regime-industry-row.bull>em {
  color: #b6533d;
  background: rgba(201, 103, 76, 0.14);
}

html[data-theme="soft-light"] .regime-map-card.bear>em,
html[data-theme="soft-light"] .regime-industry-row.bear>em {
  color: #426da1;
  background: rgba(91, 127, 174, 0.14);
}

html[data-theme="soft-light"] .regime-map-card.even>em,
html[data-theme="soft-light"] .regime-industry-row.even>em {
  color: #4f625e;
  background: rgba(39, 83, 77, 0.1);
}

/* Final soft-light polish: lower brightness and normalize ETF readability. */
html[data-theme="soft-light"] {
  --ink: #14272b;
  --muted: #536762;
  --paper: #d2ded7;
  --line: #adbfba;
}

html[data-theme="soft-light"] body {
  background:
    radial-gradient(circle at 18% 0%, rgba(174, 106, 83, 0.07), transparent 24rem),
    radial-gradient(circle at 84% 16%, rgba(39, 83, 77, 0.1), transparent 28rem),
    linear-gradient(180deg, #d4ded7 0%, #c7d5cf 48%, #d4d8cc 100%);
  color: #14272b;
}

html[data-theme="soft-light"] .topbar {
  background: rgba(209, 221, 214, 0.94);
  border-bottom-color: rgba(26, 55, 54, 0.22);
}

html[data-theme="soft-light"] .subtitle,
html[data-theme="soft-light"] .etf-heading > div > p:last-child,
html[data-theme="soft-light"] .demo-note,
html[data-theme="soft-light"] .channel-note,
html[data-theme="soft-light"] .scope-note,
html[data-theme="soft-light"] .health-grid span,
html[data-theme="soft-light"] .steps p {
  color: #536762;
}

html[data-theme="soft-light"] .scanner,
html[data-theme="soft-light"] .etf-section {
  color: #14272b;
  background: linear-gradient(180deg, rgba(202, 215, 208, 0.97), rgba(211, 217, 205, 0.96));
}

html[data-theme="soft-light"] .scanner .summary-row,
html[data-theme="soft-light"] .etf-metrics {
  color: #14272b;
}

html[data-theme="soft-light"] .etf-heading h2,
html[data-theme="soft-light"] .etf-panel h3,
html[data-theme="soft-light"] .panel-head h2,
html[data-theme="soft-light"] .result-panel,
html[data-theme="soft-light"] .etf-panel {
  color: #14272b;
}

html[data-theme="soft-light"] .etf-heading .eyebrow,
html[data-theme="soft-light"] .etf-date small,
html[data-theme="soft-light"] .etf-overview small,
html[data-theme="soft-light"] .etf-metric small,
html[data-theme="soft-light"] .etf-metric i,
html[data-theme="soft-light"] .etf-overview span {
  color: #526a65;
}

html[data-theme="soft-light"] .etf-date strong,
html[data-theme="soft-light"] .etf-metric strong,
html[data-theme="soft-light"] .etf-overview strong {
  color: #0f252b;
}

html[data-theme="soft-light"] .etf-date span,
html[data-theme="soft-light"] .etf-badge,
html[data-theme="soft-light"] .etf-overview small em,
html[data-theme="soft-light"] .etf-regime-tools > p b {
  color: #007c65;
}

html[data-theme="soft-light"] .etf-badge {
  background: rgba(0, 124, 101, 0.1);
  border-color: rgba(0, 124, 101, 0.22);
}

html[data-theme="soft-light"] .etf-metric,
html[data-theme="soft-light"] .etf-overview {
  color: #14272b;
  background: linear-gradient(145deg, rgba(219, 228, 219, 0.95), rgba(201, 216, 209, 0.94));
  border-color: rgba(31, 74, 69, 0.2);
  box-shadow: 0 12px 28px rgba(36, 55, 51, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

html[data-theme="soft-light"] .etf-metric.sun.active,
html[data-theme="soft-light"] .etf-metric.sun:hover {
  background: linear-gradient(145deg, rgba(238, 214, 202, 0.94), rgba(220, 199, 189, 0.96));
  border-color: rgba(182, 83, 61, 0.32);
}

html[data-theme="soft-light"] .etf-metric.moon.active,
html[data-theme="soft-light"] .etf-metric.moon:hover {
  background: linear-gradient(145deg, rgba(214, 222, 231, 0.95), rgba(195, 209, 222, 0.96));
  border-color: rgba(66, 109, 161, 0.3);
}

html[data-theme="soft-light"] .etf-metric > span {
  color: #14272b;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(31, 74, 69, 0.1);
}

html[data-theme="soft-light"] .etf-metric.sun strong {
  color: #ad4e36;
}

html[data-theme="soft-light"] .etf-metric.moon strong {
  color: #355e8c;
}

html[data-theme="soft-light"] .etf-overview > div {
  background: #b9c8c4;
  box-shadow: inset 0 1px 3px rgba(43, 61, 60, 0.18);
}

html[data-theme="soft-light"] .etf-overview p {
  color: #526a65;
}

html[data-theme="soft-light"] .etf-panel,
html[data-theme="soft-light"] .result-panel {
  background: rgba(218, 227, 218, 0.94);
  border-color: rgba(37, 66, 69, 0.18);
  box-shadow: 0 16px 36px rgba(36, 55, 51, 0.11);
}

html[data-theme="soft-light"] .etf-panel-head,
html[data-theme="soft-light"] .panel-head {
  background: rgba(207, 219, 211, 0.72);
  border-bottom-color: rgba(37, 66, 69, 0.16);
}

html[data-theme="soft-light"] .demo-note,
html[data-theme="soft-light"] .result-panel .demo-note,
html[data-theme="soft-light"] .etf-panel .demo-note {
  color: #405a55;
  background: rgba(202, 215, 208, 0.92);
  border-top: 1px solid rgba(37, 66, 69, 0.14);
}

html[data-theme="soft-light"] .market-tabs,
html[data-theme="soft-light"] .industry-filter,
html[data-theme="soft-light"] .etf-regime-tabs {
  background: rgba(194, 209, 203, 0.9);
  border-color: rgba(37, 66, 69, 0.16);
}

html[data-theme="soft-light"] .market-tabs button,
html[data-theme="soft-light"] .etf-regime-tabs button {
  color: #405a55;
}

html[data-theme="soft-light"] .market-tabs button.selected,
html[data-theme="soft-light"] .etf-regime-tabs button.active {
  color: #102832;
  background: rgba(232, 238, 230, 0.96);
}

html[data-theme="soft-light"] .industry-filter button,
html[data-theme="soft-light"] .etf-categories button {
  color: #405a55;
  background: rgba(232, 238, 230, 0.88);
  border-color: rgba(37, 66, 69, 0.18);
}

html[data-theme="soft-light"] .industry-filter button b {
  color: #5f756f;
}

html[data-theme="soft-light"] .industry-filter button:hover,
html[data-theme="soft-light"] .industry-filter button.active,
html[data-theme="soft-light"] .etf-categories button.active {
  color: #eef6f5;
  background: #274f4a;
  border-color: #274f4a;
}

html[data-theme="soft-light"] .industry-filter button:hover b,
html[data-theme="soft-light"] .industry-filter button.active b {
  color: rgba(238, 246, 245, 0.78);
}

html[data-theme="soft-light"] .search,
html[data-theme="soft-light"] .etf-regime-tools > label,
html[data-theme="soft-light"] .etf-category-select,
html[data-theme="soft-light"] select {
  color: #14272b;
  background: rgba(232, 238, 230, 0.92);
  border-color: rgba(31, 71, 67, 0.24);
}

html[data-theme="soft-light"] .search input,
html[data-theme="soft-light"] .etf-regime-tools input {
  color: #14272b;
}

html[data-theme="soft-light"] .search input::placeholder,
html[data-theme="soft-light"] .etf-regime-tools input::placeholder {
  color: #71827e;
}

html[data-theme="soft-light"] th {
  color: #52625f;
  background: #c9d5cf;
}

html[data-theme="soft-light"] td {
  border-bottom-color: rgba(37, 66, 69, 0.13);
}

html[data-theme="soft-light"] tbody tr:hover {
  background: rgba(232, 238, 230, 0.66);
}

html[data-theme="soft-light"] .empty,
html[data-theme="soft-light"] .trigger-label,
html[data-theme="soft-light"] .stock-name small,
html[data-theme="soft-light"] .industry,
html[data-theme="soft-light"] .etf-management-tag {
  color: #536762;
}

html[data-theme="soft-light"] .etf-regime-drawer {
  color: #14272b;
  background: rgba(214, 224, 216, 0.96);
  border-color: rgba(31, 74, 69, 0.22);
}

html[data-theme="soft-light"] .etf-drawer-head small,
html[data-theme="soft-light"] .etf-regime-tools > p,
html[data-theme="soft-light"] .etf-no-match,
html[data-theme="soft-light"] .etf-group-toggle > span:first-child small,
html[data-theme="soft-light"] .etf-group-detail p {
  color: #536762;
}

html[data-theme="soft-light"] .etf-collapse {
  color: #234f49;
  background: rgba(232, 238, 230, 0.86);
  border-color: rgba(31, 74, 69, 0.22);
}

html[data-theme="soft-light"] .etf-regime-group {
  background: rgba(224, 232, 222, 0.88);
  border-color: rgba(34, 79, 73, 0.18);
}

html[data-theme="soft-light"] .etf-group-toggle {
  color: #14272b;
}

html[data-theme="soft-light"] .etf-group-detail {
  border-top-color: rgba(37, 66, 69, 0.13);
}

html[data-theme="soft-light"] .etf-group-detail section+section {
  border-left-color: rgba(91, 127, 174, 0.2);
}

html[data-theme="soft-light"] .etf-group-detail h4 {
  color: #102832;
}

html[data-theme="soft-light"] .etf-group-detail h4 b {
  color: #244f49;
  background: rgba(39, 83, 77, 0.1);
}

html[data-theme="soft-light"] .etf-group-detail a {
  color: #183038;
  border-top-color: rgba(37, 66, 69, 0.12);
}

html[data-theme="soft-light"] .etf-group-detail a:hover {
  color: #a94f3b;
}

html[data-theme="soft-light"] .etf-group-detail a em {
  color: #526a65;
}

html[data-theme="soft-light"] .etf-no-match {
  border-color: rgba(37, 66, 69, 0.2);
}

/* Soft-light channel scanner: align channel overview cards with the traditional scanner. */
html[data-theme="soft-light"] .feature-section-nav strong {
  color: #45625d;
}

html[data-theme="soft-light"] .strategy-summary-row {
  color: #14272b;
}

html[data-theme="soft-light"] .metric-card {
  color: #21343a;
  background: linear-gradient(145deg, rgba(239, 244, 235, 0.97), rgba(215, 226, 216, 0.94));
  border-color: rgba(39, 83, 77, 0.18);
  box-shadow: 0 12px 28px rgba(48, 67, 61, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

html[data-theme="soft-light"] button.metric-card:hover,
html[data-theme="soft-light"] button.metric-card.active {
  border-color: rgba(39, 83, 77, 0.38);
  box-shadow: 0 15px 32px rgba(48, 67, 61, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="soft-light"] .metric-card small {
  color: #596e6a;
}

html[data-theme="soft-light"] .metric-card strong {
  color: #244f49;
}

html[data-theme="soft-light"] .metric-card i,
html[data-theme="soft-light"] .metric-card span:not(.channel-dot):not(.channel-x) {
  color: #596e6a;
}

html[data-theme="soft-light"] .yellow-metric {
  background: linear-gradient(145deg, rgba(255, 241, 231, 0.96), rgba(241, 215, 202, 0.94));
  border-color: rgba(201, 103, 76, 0.28);
}

html[data-theme="soft-light"] .yellow-metric strong {
  color: #ad4e36;
}

html[data-theme="soft-light"] .blue-metric {
  background: linear-gradient(145deg, rgba(233, 240, 247, 0.97), rgba(207, 220, 232, 0.94));
  border-color: rgba(82, 120, 157, 0.28);
}

html[data-theme="soft-light"] .blue-metric strong {
  color: #355e8c;
}

html[data-theme="soft-light"] .x-metric {
  background: linear-gradient(145deg, rgba(231, 235, 232, 0.97), rgba(205, 215, 211, 0.94));
  border-color: rgba(63, 78, 82, 0.24);
}

html[data-theme="soft-light"] .x-metric strong,
html[data-theme="soft-light"] .x-metric .channel-x {
  color: #223136;
}

html[data-theme="soft-light"] .total-metric {
  background: linear-gradient(145deg, rgba(225, 235, 226, 0.97), rgba(205, 219, 211, 0.94));
  border-color: rgba(39, 83, 77, 0.2);
}

html[data-theme="soft-light"] .metric-card .channel-dot {
  box-shadow: 0 0 0 1px rgba(20, 39, 43, 0.08);
}

html[data-theme="soft-light"] .channel-panel .panel-head {
  background: rgba(207, 219, 211, 0.72);
}

html[data-theme="soft-light"] .channel-industry-filter button em {
  color: #5f756f;
}

html[data-theme="soft-light"] .channel-regime-summary article {
  color: #183038;
  background: rgba(224, 232, 222, 0.88);
  border-color: rgba(34, 79, 73, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

html[data-theme="soft-light"] .channel-regime-summary header small,
html[data-theme="soft-light"] .channel-regime-summary p small {
  color: #5f756f;
}

html[data-theme="soft-light"] .channel-regime-summary p {
  color: #405a55;
}

html[data-theme="soft-light"] .channel-mix-bar {
  background: #b9c8c4;
  box-shadow: inset 0 1px 3px rgba(43, 61, 60, 0.18);
}

/* Soft-light final tuning: softer sage tone, compact ETF unavailable block, stronger regime badges. */
html[data-theme="soft-light"] {
  --paper: #cbd8d1;
  --line: #a9bbb5;
  --muted: #4f625e;
}

html[data-theme="soft-light"] body {
  background:
    radial-gradient(circle at 18% 0%, rgba(152, 102, 80, 0.055), transparent 24rem),
    radial-gradient(circle at 84% 16%, rgba(58, 86, 80, 0.08), transparent 28rem),
    linear-gradient(180deg, #ccd9d2 0%, #bfcec8 48%, #cdd2c7 100%);
}

html[data-theme="soft-light"] .scanner,
html[data-theme="soft-light"] .etf-section {
  background: linear-gradient(180deg, rgba(195, 208, 202, 0.98), rgba(205, 212, 201, 0.97));
}

html[data-theme="soft-light"] .feature-menu,
html[data-theme="soft-light"] .market-bulletin-shell,
html[data-theme="soft-light"] .regime-panel,
html[data-theme="soft-light"] .result-panel,
html[data-theme="soft-light"] .channel-panel,
html[data-theme="soft-light"] .etf-panel {
  border-color: rgba(31, 64, 60, 0.2);
}

html[data-theme="soft-light"] .regime-title .legend-sun {
  color: #a94f3b;
  background: rgba(221, 138, 112, 0.22);
  border-color: rgba(189, 93, 68, 0.38);
}

html[data-theme="soft-light"] .regime-title .legend-moon {
  color: #355e8c;
  background: rgba(128, 158, 192, 0.24);
  border-color: rgba(66, 109, 161, 0.34);
}

html[data-theme="soft-light"] .regime-title .regime-legend em {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-weight: 900;
}

html[data-theme="soft-light"] .etf-unavailable {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 0 18px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 13px 16px;
  color: #1f3435;
  background: rgba(220, 226, 214, 0.92);
  border: 1px solid rgba(143, 113, 76, 0.24);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(50, 60, 52, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

html[data-theme="soft-light"] .etf-unavailable > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding-right: 16px;
  border-right: 1px solid rgba(143, 113, 76, 0.18);
}

html[data-theme="soft-light"] .etf-unavailable > div b {
  color: #9f5f25;
  font-size: 17px;
}

html[data-theme="soft-light"] .etf-unavailable > div span {
  color: #5b665d;
  font-size: 11px;
}

html[data-theme="soft-light"] .etf-unavailable article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 5px 0;
  border-top: 0;
  border-bottom: 1px solid rgba(78, 93, 88, 0.1);
}

html[data-theme="soft-light"] .etf-unavailable article:last-child {
  border-bottom: 0;
}

html[data-theme="soft-light"] .etf-unavailable article strong {
  color: #15313a;
  font: 850 12px/1.2 monospace;
}

html[data-theme="soft-light"] .etf-unavailable article span {
  color: #4f5f5b;
  font-size: 11px;
}

@media (max-width: 760px) {
  html[data-theme="soft-light"] .etf-unavailable {
    grid-template-columns: 1fr;
  }

  html[data-theme="soft-light"] .etf-unavailable > div {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(143, 113, 76, 0.18);
  }
}

@media (max-width: 680px) {
  .theme-toggle {
    flex: 0 0 auto;
    min-height: 34px;
    margin-left: auto;
    padding: 7px 10px;
    font-size: 11px;
  }

  .theme-toggle-dot {
    width: 12px;
    height: 12px;
  }

  .topbar .theme-toggle + .page-fold-controls,
  .topbar .page-fold-controls {
    width: 100%;
  }

  .health-section.health-collapsible .health-summary-toggle {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .health-summary-toggle strong {
    font-size: 19px;
  }

  .health-summary-toggle i {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  html[data-theme="soft-light"] .scanner .signal-card,
  html[data-theme="soft-light"] .scanner .coverage {
    min-height: 108px;
    padding: 17px;
  }

  html[data-theme="soft-light"] .scanner .signal-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
  }

  html[data-theme="soft-light"] .scanner .signal-icon {
    width: 48px;
    height: 48px;
    font-size: 25px;
  }

  html[data-theme="soft-light"] .scanner .signal-card strong {
    font-size: 23px;
  }
}

@media (max-width: 390px) {
  .theme-toggle-text {
    max-width: 34px;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: none;
  }
}

/* Industry capital treemap in soft-light mode. */
html[data-theme="soft-light"] .regime-treemap-hint span{color:#31544e;background:rgba(225,234,225,.88);border-color:rgba(39,83,77,.17)}
html[data-theme="soft-light"] .regime-tile{color:#172c31;border-color:rgba(39,75,73,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.46),0 10px 24px rgba(40,61,57,.11)}
html[data-theme="soft-light"] .regime-tile.bull{background:linear-gradient(145deg,#ead0c4,#d8b7ad)}
html[data-theme="soft-light"] .regime-tile.bear{background:linear-gradient(145deg,#cfdae5,#b9cbdc)}
html[data-theme="soft-light"] .regime-tile.even{background:linear-gradient(145deg,#cedbd5,#bbc9c5)}
html[data-theme="soft-light"] .regime-tile:before{background:radial-gradient(circle at 92% 0,rgba(255,255,255,.42),transparent 45%)}
html[data-theme="soft-light"] .regime-tile:hover,html[data-theme="soft-light"] .regime-tile:focus-visible{border-color:rgba(31,74,69,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.58),0 16px 30px rgba(40,61,57,.16)}
html[data-theme="soft-light"] .regime-tile-head strong{color:#152d33}
html[data-theme="soft-light"] .regime-tile-head small,html[data-theme="soft-light"] .regime-tile-signal small,html[data-theme="soft-light"] .regime-tile-money span{color:#536c67}
html[data-theme="soft-light"] .regime-tile>em{color:#294c47;background:rgba(255,255,255,.28);border-color:rgba(39,83,77,.1)}
html[data-theme="soft-light"] .regime-tile.bull .regime-tile-signal b{color:#9f4937}
html[data-theme="soft-light"] .regime-tile.bear .regime-tile-signal b{color:#365e8a}
html[data-theme="soft-light"] .regime-tile.even .regime-tile-signal b{color:#31544e}
html[data-theme="soft-light"] .regime-tile-money strong{color:#17353a}
html[data-theme="soft-light"] .regime-tile>.regime-bar{background:rgba(65,83,80,.18);box-shadow:inset 0 1px 2px rgba(45,57,54,.13)}

/* Industry capital map: soft-light glass-tech treatment */
html[data-theme="soft-light"] .regime-panel{--regime-glow:rgba(49,127,121,.12);--regime-line:rgba(41,105,100,.14)}
html[data-theme="soft-light"] .regime-layout-tabs{border-color:rgba(48,104,99,.2);background:rgba(233,241,237,.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.66)}
html[data-theme="soft-light"] .regime-layout-tabs button{color:#5b716e}
html[data-theme="soft-light"] .regime-layout-tabs button.selected{color:#173d3b;background:linear-gradient(135deg,rgba(177,218,210,.86),rgba(196,218,215,.92));box-shadow:inset 0 0 0 1px rgba(40,104,98,.17),0 4px 12px rgba(52,82,77,.1)}
html[data-theme="soft-light"] .regime-tile{border-color:rgba(57,111,106,.23);backdrop-filter:blur(13px) saturate(108%);-webkit-backdrop-filter:blur(13px) saturate(108%);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 0 24px rgba(87,151,142,.07),0 11px 25px rgba(40,61,57,.12)}
html[data-theme="soft-light"] .regime-tile.bull{background:linear-gradient(145deg,rgba(239,215,205,.92),rgba(218,190,184,.88) 68%,rgba(192,216,211,.82))}
html[data-theme="soft-light"] .regime-tile.bear{background:linear-gradient(145deg,rgba(215,227,237,.94),rgba(187,207,225,.9) 68%,rgba(191,218,216,.84))}
html[data-theme="soft-light"] .regime-tile.even{background:linear-gradient(145deg,rgba(217,232,226,.94),rgba(191,211,205,.9) 68%,rgba(185,214,211,.84))}
html[data-theme="soft-light"] .regime-tile:after{background:linear-gradient(115deg,rgba(255,255,255,.32),transparent 30%,transparent 72%,var(--regime-glow));box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
html[data-theme="soft-light"] .regime-tile:hover,html[data-theme="soft-light"] .regime-tile:focus-visible{border-color:rgba(39,112,105,.48);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),inset 0 0 28px rgba(74,149,140,.1),0 15px 30px rgba(46,73,68,.16)}

/* Keep industry tiles in the same dark capital-map family as TW50 / US50. */
html[data-theme="soft-light"] .regime-layout-tabs{border-color:rgba(210,231,234,.12);background:rgba(11,27,35,.36);box-shadow:none}
html[data-theme="soft-light"] .regime-layout-tabs button{color:#a9bfbd}
html[data-theme="soft-light"] .regime-layout-tabs button.selected{color:#f4f8f7;background:#35606a;box-shadow:0 3px 10px rgba(5,17,22,.28)}
html[data-theme="soft-light"] .regime-tile{color:#f5f7f4;border-color:rgba(255,255,255,.18);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 24px rgba(20,34,43,.22)}
html[data-theme="soft-light"] .regime-tile.bull{background:linear-gradient(145deg,#84473f,#54343a);border-color:rgba(255,148,119,.3)}
html[data-theme="soft-light"] .regime-tile.bear{background:linear-gradient(145deg,#3e648c,#31465f);border-color:rgba(145,190,235,.3)}
html[data-theme="soft-light"] .regime-tile.even{background:linear-gradient(145deg,#3a4a55,#2c3944);border-color:rgba(198,218,221,.22)}
html[data-theme="soft-light"] .regime-tile:after{background:linear-gradient(120deg,rgba(255,255,255,.07),transparent 34%,transparent);box-shadow:none}
html[data-theme="soft-light"] .regime-tile-head strong,
html[data-theme="soft-light"] .regime-tile-money strong{color:#f4f8f7}
html[data-theme="soft-light"] .regime-tile-head small,
html[data-theme="soft-light"] .regime-tile-signal small,
html[data-theme="soft-light"] .regime-tile-money span{color:rgba(245,250,250,.72)}
html[data-theme="soft-light"] .regime-tile>em{color:#f5f8f7;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.08)}
html[data-theme="soft-light"] .regime-tile.bull .regime-tile-signal b{color:#ffad94}
html[data-theme="soft-light"] .regime-tile.bear .regime-tile-signal b{color:#b4d2f1}
html[data-theme="soft-light"] .regime-tile.even .regime-tile-signal b{color:#dce6e8}
html[data-theme="soft-light"] .regime-tile:hover,
html[data-theme="soft-light"] .regime-tile:focus-visible{border-color:rgba(255,255,255,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 14px 28px rgba(20,34,43,.28)}

/* Fine-industry stock capital map in soft-light mode keeps the darker capital-map language. */
html[data-theme="soft-light"] .regime-detail-view-tabs{border-color:rgba(210,231,234,.12);background:rgba(11,27,35,.36)}
html[data-theme="soft-light"] .regime-detail-view-tabs button{color:#a9bfbd}
html[data-theme="soft-light"] .regime-detail-view-tabs button.selected{color:#f4f8f7;background:#35606a;box-shadow:0 3px 10px rgba(5,17,22,.28)}
html[data-theme="soft-light"] .regime-stock-map-summary span{color:#f4f8f7;background:rgba(22,39,48,.86);border-color:rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 22px rgba(20,34,43,.16)}
html[data-theme="soft-light"] .regime-stock-map-summary small{color:rgba(245,250,250,.7)}
html[data-theme="soft-light"] .regime-stock-map-summary b{color:#f4f8f7}
html[data-theme="soft-light"] .regime-stock-map-summary b.sun{color:#ffad94}
html[data-theme="soft-light"] .regime-stock-tile{color:#f5f7f4;border-color:rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 24px rgba(20,34,43,.22)}
html[data-theme="soft-light"] .regime-stock-tile.sun{background:linear-gradient(145deg,#84473f,#54343a);border-color:rgba(255,148,119,.3)}
html[data-theme="soft-light"] .regime-stock-tile.moon{background:linear-gradient(145deg,#3e648c,#31465f);border-color:rgba(145,190,235,.3)}
html[data-theme="soft-light"] .regime-stock-tile:after{background:linear-gradient(120deg,rgba(255,255,255,.07),transparent 34%,transparent)}
html[data-theme="soft-light"] .regime-stock-tile:hover,
html[data-theme="soft-light"] .regime-stock-tile:focus-visible{border-color:rgba(255,255,255,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 14px 28px rgba(20,34,43,.28)}
html[data-theme="soft-light"] .stock-tile-head b,
html[data-theme="soft-light"] .regime-stock-tile footer b{color:#f4f8f7}
html[data-theme="soft-light"] .stock-tile-head em,
html[data-theme="soft-light"] .regime-stock-tile>small,
html[data-theme="soft-light"] .regime-stock-tile footer span{color:rgba(245,250,250,.72)}
html[data-theme="soft-light"] .regime-stock-tile .stock-feature{color:#f4f8f7;background:rgba(8,25,35,.34);border-color:rgba(255,255,255,.22)}
html[data-theme="soft-light"] .regime-stock .stock-feature{color:#24423e;background:#dce9e5;border-color:#b9d0c9}
html[data-theme="soft-light"] .regime-stock-tile.sun>strong,
html[data-theme="soft-light"] .regime-stock-tile>small i.up{color:#ffad94}
html[data-theme="soft-light"] .regime-stock-tile.moon>strong,
html[data-theme="soft-light"] .regime-stock-tile>small i.down{color:#b4d2f1}
html[data-theme="soft-light"] .regime-stock-map-empty{color:#49625d;border-color:rgba(43,74,70,.22)}
html[data-theme="soft-light"] .regime-dual-filter{background:rgba(227,235,226,.78);border-color:rgba(47,82,77,.16)}
html[data-theme="soft-light"] .regime-dual-filter-body small{color:#56706b}
html[data-theme="soft-light"] .regime-filter-unit>small{color:#405c58}
html[data-theme="soft-light"] .regime-dual-filter-body [role=group]{background:rgba(40,68,66,.08)}
html[data-theme="soft-light"] .regime-dual-filter-body button{color:#405c58;border-color:rgba(42,73,69,.14)}
html[data-theme="soft-light"] .regime-dual-filter-body button.selected{color:#fff;background:#35606a;border-color:#35606a}
html[data-theme="soft-light"] .regime-tile-channel{color:#e8f0ee;border-top-color:rgba(255,255,255,.16)}
html[data-theme="soft-light"] .regime-search-scope{color:#31544e;background:rgba(225,234,225,.9);border-color:rgba(39,83,77,.2)}
html[data-theme="soft-light"] .regime-search-scope.selected{color:#fff;background:#356b68;border-color:#356b68}
html[data-theme="soft-light"] .search-market-pill{color:#315f57}
html[data-theme="soft-light"] .channel-cycle-pill{background:rgba(8,25,35,.34)}
html[data-theme="soft-light"] .regime-dual-toggle{color:#17343a;background:#e5ede6;border-color:rgba(43,77,72,.2)}
html[data-theme="soft-light"] .regime-dual-toggle span{color:#55706a}
@media(max-width:620px){html[data-theme="soft-light"] .regime-dual-filter-body{background:#edf2ec;border-color:rgba(43,77,72,.18)}}

html[data-theme="soft-light"] details.etf-unavailable {
  display: block;
  padding: 0;
}
html[data-theme="soft-light"] .etf-unavailable > summary {
  min-height: 56px;
  padding: 12px 16px;
}
html[data-theme="soft-light"] .etf-unavailable > summary b {
  color: #93541f;
}
html[data-theme="soft-light"] .etf-unavailable > summary small,
html[data-theme="soft-light"] .etf-unavailable > summary em {
  color: #586961;
}
html[data-theme="soft-light"] .etf-unavailable-list {
  display: block !important;
  padding: 0 16px 9px;
  border-top: 1px solid rgba(143, 113, 76, 0.18);
}

/* Final contrast pass for the collapsible bulletin and the 50-stock regime summaries. */
html[data-theme="soft-light"] .market-bulletin-summary {
  color: #183038;
}
html[data-theme="soft-light"] .market-bulletin-title-wrap em {
  color: #385951;
}
html[data-theme="soft-light"] .market-bulletin-card-text {
  color: #284943;
}
html[data-theme="soft-light"] .market-bulletin-evidence-chips span {
  color: #31534d;
}
html[data-theme="soft-light"] .regime-labels b,
html[data-theme="soft-light"] .secondary-observation span {
  color: #edf5f5;
}
html[data-theme="soft-light"] .regime-labels span {
  color: #ff9b84;
}
html[data-theme="soft-light"] .regime-labels em {
  color: #a8c8ed;
}

/* Keep collapsed-state guidance legible on the pale soft-light background. */
html[data-theme="soft-light"] .fold-message {
  color: #315b55;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(32, 76, 70, 0.12);
}

html[data-theme="soft-light"] .data-overview-toggle {
  color: #285f57;
  background: rgba(58, 128, 113, 0.13);
  border-color: rgba(39, 101, 90, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

/* Taiwan 50 capital tiles stay dark in soft-light mode; keep every inner label readable. */
html[data-theme="soft-light"] .weight50-section .weight-tile .weight-tile-top b {
  color: #fffaf6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

html[data-theme="soft-light"] .weight50-section .weight-tile .weight-tile-top em {
  color: rgba(235, 246, 247, 0.88);
  font-weight: 850;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

html[data-theme="soft-light"] .weight50-section .weight-tile .weight-feature {
  color: rgba(226, 242, 239, 0.92);
  background: rgba(5, 19, 24, 0.26);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="soft-light"] .weight50-section .weight-tile > strong {
  color: rgba(245, 250, 249, 0.94);
}

html[data-theme="soft-light"] .weight50-section .weight-tile > strong > span,
html[data-theme="soft-light"] .weight50-section .weight-tile .regime-mini {
  color: rgba(245, 250, 249, 0.88);
  font-weight: 850;
}

html[data-theme="soft-light"] .weight50-section .weight-tile.sun .regime-mini {
  color: #ffd1c2;
}

html[data-theme="soft-light"] .weight50-section .weight-tile.moon .regime-mini {
  color: #cbe1fb;
}

html[data-theme="soft-light"] .weight50-section .weight-tile > small,
html[data-theme="soft-light"] .weight50-section .weight-tile > i {
  color: rgba(248, 252, 251, 0.94) !important;
  font-weight: 850 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

html[data-theme="soft-light"] .weight50-section .weight-tile .channel-pill.x {
  color: #ffc0b4;
  background: rgba(129, 35, 29, 0.34);
  border-color: rgba(255, 143, 121, 0.42);
}

html[data-theme="soft-light"] .weight50-section .weight-tile .channel-pill.yellow {
  color: #ffe59b;
  background: rgba(255, 211, 76, 0.22);
  border-color: rgba(255, 224, 123, 0.45);
}

html[data-theme="soft-light"] .weight50-section .weight-tile .channel-pill.blue {
  color: #c8e4ff;
  background: rgba(92, 168, 245, 0.22);
  border-color: rgba(157, 207, 255, 0.42);
}

html[data-theme="soft-light"] .weight50-section .weight-tile .channel-pill b {
  color: inherit;
}

/* Keep the Chat*小P module as a branded glass card in soft-light mode. */
html[data-theme="soft-light"] .feature-card.chatp {
  color: #153336;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(221, 243, 239, 0.54) 42%, rgba(118, 178, 180, 0.28));
  border-color: rgba(53, 126, 122, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 16px 32px rgba(52, 83, 84, 0.15);
}

html[data-theme="soft-light"] .feature-card.chatp .feature-card-copy strong {
  color: #17333a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="soft-light"] .feature-card.chatp .feature-card-icon {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(67, 128, 134, 0.2);
  box-shadow: 0 10px 24px rgba(55, 88, 91, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Soft-light keeps the whole module menu in a matte-glass language. */
html[data-theme="soft-light"] .feature-card {
  color: #17333a;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(224, 243, 238, 0.5) 42%, rgba(130, 172, 169, 0.24));
  border-color: rgba(53, 126, 122, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 15px 30px rgba(52, 83, 84, 0.12);
  backdrop-filter: blur(14px) saturate(1.08);
}

html[data-theme="soft-light"] .feature-card:after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 30%, transparent 68%, rgba(91, 171, 181, 0.14));
  opacity: 0.78;
}

html[data-theme="soft-light"] .feature-card:hover,
html[data-theme="soft-light"] .feature-card:focus-visible {
  border-color: rgba(37, 122, 116, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 22px 42px rgba(45, 78, 80, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

html[data-theme="soft-light"] .feature-card:active {
  box-shadow: inset 0 2px 10px rgba(50, 78, 76, 0.14), 0 11px 22px rgba(45, 78, 80, 0.14);
}

html[data-theme="soft-light"] .feature-card-icon {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(37, 91, 87, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 17px rgba(57, 88, 88, 0.1);
}

html[data-theme="soft-light"] .feature-card-copy strong {
  color: #17333a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="soft-light"] .feature-card-copy em {
  color: #315a55;
  text-shadow: none;
}

/* Strong frosted-glass module menu for soft-light mode. */
html[data-theme="soft-light"] .feature-menu {
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.62), transparent 22rem),
    radial-gradient(circle at 82% 12%, rgba(111, 190, 181, 0.2), transparent 24rem),
    linear-gradient(145deg, rgba(239, 247, 239, 0.9), rgba(203, 226, 217, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 56px rgba(54, 80, 78, 0.18);
}

html[data-theme="soft-light"] .feature-menu:before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.5), transparent 28%, transparent 66%, rgba(95, 170, 167, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 54px);
  opacity: 0.72;
}

html[data-theme="soft-light"] .feature-card {
  color: #15313a;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(232, 248, 243, 0.58) 40%, rgba(152, 191, 184, 0.28));
  border-color: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), inset 0 -18px 42px rgba(255, 255, 255, 0.2), 0 18px 38px rgba(54, 80, 78, 0.14);
  backdrop-filter: blur(20px) saturate(1.16);
}

html[data-theme="soft-light"] .feature-card:after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22) 18%, transparent 43%, rgba(75, 166, 160, 0.1) 72%, rgba(255, 255, 255, 0.32));
  opacity: 0.86;
}

html[data-theme="soft-light"] .feature-card:hover,
html[data-theme="soft-light"] .feature-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -18px 42px rgba(255, 255, 255, 0.22), 0 28px 52px rgba(45, 78, 80, 0.22), 0 0 0 1px rgba(54, 137, 130, 0.08);
}

html[data-theme="soft-light"] .feature-card:active {
  box-shadow: inset 0 4px 16px rgba(50, 78, 76, 0.14), 0 12px 24px rgba(45, 78, 80, 0.15);
}

html[data-theme="soft-light"] .feature-card-icon {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.32));
  border-color: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 10px 20px rgba(57, 88, 88, 0.12);
}

html[data-theme="soft-light"] .feature-card-copy strong {
  color: #142e38;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="soft-light"] .feature-card-copy em {
  color: #294e55;
}

html[data-theme="soft-light"] .feature-card.chatp {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(226, 250, 245, 0.6) 38%, rgba(132, 196, 191, 0.32));
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 22px 46px rgba(47, 87, 87, 0.18), 0 0 26px rgba(102, 190, 181, 0.12);
}

/* Restore non-glass feature cards in soft-light mode. Keep at file end. */
html[data-theme="soft-light"] .feature-menu{background:linear-gradient(145deg,rgba(221,233,225,.94),rgba(200,218,211,.94));box-shadow:0 18px 44px rgba(60,83,78,.14)}
html[data-theme="soft-light"] .feature-menu:before{content:none}
html[data-theme="soft-light"] .feature-card{background:rgba(238,246,240,.64);border-color:rgba(65,105,98,.2);box-shadow:0 10px 24px rgba(65,91,86,.12);backdrop-filter:none;color:#102d33}
html[data-theme="soft-light"] .feature-card:after{content:none}
html[data-theme="soft-light"] .feature-card:hover,html[data-theme="soft-light"] .feature-card:focus-visible{transform:translateY(-4px);border-color:rgba(47,104,98,.38);box-shadow:0 14px 30px rgba(65,91,86,.16)}
html[data-theme="soft-light"] .feature-card:active{transform:translateY(-1px) scale(.995)}
html[data-theme="soft-light"] .feature-card-icon{background:rgba(255,255,255,.42);border:0;box-shadow:none}
html[data-theme="soft-light"] .feature-card-copy strong,html[data-theme="soft-light"] .feature-card.chatp .feature-card-copy strong{color:#102d33;text-shadow:none}
html[data-theme="soft-light"] .feature-card-copy em{color:#315f59;text-shadow:none}
html[data-theme="soft-light"] .feature-card.chatp{background:rgba(238,246,240,.64);border-color:rgba(65,105,98,.2);box-shadow:0 10px 24px rgba(65,91,86,.12);backdrop-filter:none}
html[data-theme="soft-light"] .feature-card.chatp .feature-card-icon{background:rgba(255,255,255,.9);border-color:rgba(67,128,134,.2);box-shadow:0 10px 24px rgba(55,88,91,.18)}

/* Keep pre-market and after-market collapsed summaries visually consistent in soft-light mode. */
html[data-theme="soft-light"] .pre-market-shell,
html[data-theme="soft-light"] .market-bulletin-shell,
html[data-theme="soft-light"] .weekly-outlook-shell {
  border-color: rgba(64, 101, 94, 0.2);
  background:
    linear-gradient(135deg, rgba(226, 237, 229, 0.94), rgba(204, 222, 214, 0.94)),
    #d7e4dc;
  box-shadow: 0 16px 36px rgba(48, 75, 70, 0.12);
}

html[data-theme="soft-light"] .pre-market-kicker,
html[data-theme="soft-light"] .market-bulletin-kicker,
html[data-theme="soft-light"] .weekly-outlook-kicker {
  color: #2a7c73;
  opacity: 1;
  text-shadow: none;
}

html[data-theme="soft-light"] .pre-market-title-wrap strong,
html[data-theme="soft-light"] .market-bulletin-title-wrap strong,
html[data-theme="soft-light"] .weekly-outlook-title strong {
  color: #09232a;
}

html[data-theme="soft-light"] .pre-market-title-wrap em,
html[data-theme="soft-light"] .market-bulletin-title-wrap em,
html[data-theme="soft-light"] .weekly-outlook-title em {
  color: #355f59;
}

html[data-theme="soft-light"] .pre-market-count,
html[data-theme="soft-light"] .market-bulletin-date,
html[data-theme="soft-light"] .weekly-outlook-range {
  border-color: rgba(60, 91, 86, 0.18);
  background: rgba(83, 109, 105, 0.5);
  color: #244b47;
}

html[data-theme="soft-light"] .pre-market-toggle,
html[data-theme="soft-light"] .market-bulletin-toggle,
html[data-theme="soft-light"] .weekly-outlook-toggle {
  border-color: rgba(172, 88, 67, 0.24);
  background: rgba(255, 117, 84, 0.12);
  color: #a44735;
}

/* Collapsed briefing summaries should wrap naturally instead of ending with a clipped ellipsis. */
.pre-market-summary,
.market-bulletin-summary,
.weekly-outlook-summary {
  align-items: start;
}

.pre-market-title-wrap em,
.market-bulletin-title-wrap em {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

html[data-theme="soft-light"] .pre-market-area-badge {
  background: rgba(255, 255, 255, 0.44);
  color: #09232a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

html[data-theme="soft-light"] .pre-market-card.taiwan > .pre-market-area-badge {
  background: rgba(255, 117, 84, 0.13);
}

/* Unified briefing summary metadata: pre-market, after-market and week-ahead share one date pill system. */
.pre-market-summary,
.market-bulletin-summary,
.weekly-outlook-summary {
  align-items: center;
}

.pre-market-update,
.market-bulletin-date,
.weekly-outlook-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 38px;
  max-width: min(34vw, 360px);
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(154, 217, 206, 0.22);
  background: rgba(10, 24, 34, 0.5);
  color: #c8e2dc;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

html[data-theme="soft-light"] .pre-market-update,
html[data-theme="soft-light"] .market-bulletin-date,
html[data-theme="soft-light"] .weekly-outlook-range {
  border-color: rgba(56, 88, 82, 0.2);
  background: rgba(78, 105, 100, 0.3);
  color: #244b47;
}

@media (max-width: 900px) {
  .pre-market-summary,
  .market-bulletin-summary,
  .weekly-outlook-summary {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 0 6px !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
  }

  .pre-market-kicker,
  .market-bulletin-kicker,
  .weekly-outlook-kicker,
  .pre-market-count {
    display: none;
  }

  .pre-market-title-wrap,
  .market-bulletin-title-wrap,
  .weekly-outlook-title {
    grid-column: 1 / 2;
    grid-row: 1;
    min-width: 0;
  }

  .pre-market-title-wrap strong,
  .market-bulletin-title-wrap strong,
  .weekly-outlook-title strong {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 17px !important;
    line-height: 1.05 !important;
  }

  html[data-reading="large"] .pre-market-title-wrap strong,
  html[data-reading="large"] .market-bulletin-title-wrap strong,
  html[data-reading="large"] .weekly-outlook-title strong {
    font-size: 19px !important;
  }

  .pre-market-title-wrap em,
  .market-bulletin-title-wrap em,
  .weekly-outlook-title em {
    display: none !important;
  }

  .pre-market-toggle,
  .market-bulletin-toggle,
  .weekly-outlook-toggle {
    grid-column: 3 / 4;
    grid-row: 1;
    align-self: center;
    min-width: 42px !important;
    min-height: 26px !important;
    padding: 4px 8px !important;
    font-size: 0.68rem !important;
  }

  .pre-market-update,
  .market-bulletin-date,
  .weekly-outlook-range {
    display: inline-flex;
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    max-width: 150px;
    min-height: 24px;
    overflow: hidden;
    padding: 4px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.56rem;
    line-height: 1;
  }
}

@media (max-width: 520px) {
  .pre-market-briefing,
  .market-bulletin,
  .weekly-outlook {
    margin: 10px auto !important;
  }

  .pre-market-shell,
  .market-bulletin-shell,
  .weekly-outlook-shell {
    border-radius: 18px !important;
  }

  .pre-market-count {
    display: none !important;
  }

  .pre-market-update,
  .market-bulletin-date,
  .weekly-outlook-range {
    max-width: 124px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
