:root {
  --gs-bg: #fff7fa;
  --gs-bg-strong: #ffeaf1;
  --gs-surface: #ffffff;
  --gs-surface-soft: #fff9fb;
  --gs-border: #f1d7df;
  --gs-border-strong: #e9becb;
  --gs-text: #19131f;
  --gs-muted: #736575;
  --gs-faint: #9a8b9d;
  --gs-primary: #ff2f78;
  --gs-primary-dark: #e0185f;
  --gs-primary-soft: #fff0f5;
  --gs-green: #18b67c;
  --gs-green-soft: #e9fbf4;
  --gs-yellow: #f6b73c;
  --gs-shadow: 0 18px 48px rgba(229, 24, 95, .10);
  --gs-shadow-sm: 0 10px 30px rgba(229, 24, 95, .08);
  --gs-container: 1480px;
  --gs-radius: 18px;
  --gs-font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sl-radius-sm: 8px;
  --sl-radius-md: 12px;
  --sl-radius-lg: 16px;
  --sl-radius-xl: 20px;
  --sl-shadow-sm: 0 10px 28px rgba(15, 23, 42, .08);
  --sl-shadow-md: 0 18px 48px rgba(15, 23, 42, .12);
  --sl-space-xs: 4px;
  --sl-space-sm: 8px;
  --sl-space-md: 12px;
  --sl-space-lg: 16px;
  --sl-space-xl: 24px;
  --sl-muted-text: #736575;
  --sl-card-border: rgba(148, 163, 184, .18);
  --sl-transition-fast: 160ms;
  --sl-transition-normal: 200ms;
  --sl-ease-standard: cubic-bezier(.2, .8, .2, 1);
  --sl-focus-ring: 0 0 0 3px rgba(59, 130, 246, .24), 0 0 0 1px rgba(96, 165, 250, .58);
  --sl-hover-lift: translateY(-1px);
}

/* P64: ranking daily score changes */
.p69-watchlist-alert-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.p64-ranking-changes {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 16px;
  background: rgba(15, 23, 42, .58);
}

.p64-ranking-changes__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.p64-ranking-changes__head h2 { margin: 2px 0 0; font-size: 22px; }
.p64-ranking-changes__head > span { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.p64-ranking-change-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p64-ranking-change-column {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(2, 6, 23, .32);
}

.p64-ranking-change-column h3 { margin: 0 0 8px; color: #cbd5e1; font-size: 14px; }
.p64-ranking-change-column > div { display: grid; gap: 6px; }
.p64-ranking-change-column a {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, .62);
  text-decoration: none;
}

.p64-ranking-change-column a:hover,
.p64-ranking-change-column a:focus-visible { background: rgba(30, 41, 59, .86); outline: none; }
.p64-ranking-change-column a > span { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 10px; }
.p64-ranking-change-column strong { min-width: 0; overflow-wrap: anywhere; }
.p64-ranking-change-column b { flex: 0 0 auto; white-space: nowrap; }
.p64-ranking-change-column small { color: #94a3b8; line-height: 1.4; overflow-wrap: anywhere; }
.p64-ranking-change-column.is-up b { color: #fca5a5; }
.p64-ranking-change-column.is-down b { color: #86efac; }

@media (max-width: 760px) {
  .p64-ranking-changes { width: calc(100% - 20px); margin-bottom: 14px; padding: 13px; }
  .p64-ranking-changes__head { align-items: stretch; flex-direction: column; gap: 5px; }
  .p64-ranking-changes__head h2 { font-size: 20px; }
  .p64-ranking-changes__head > span { white-space: normal; }
  .p64-ranking-change-grid { grid-template-columns: 1fr; gap: 9px; }
  .p64-ranking-change-column { padding: 10px; }
  .p64-ranking-change-column a { padding: 8px 9px; }
  .p64-ranking-change-column a:nth-child(n + 4) { display: none; }
}

/* P62: quieter navigation badge and explicit watchlist actions */
.p61-nav-badge {
  min-width: 17px;
  height: 17px;
  margin-left: 4px;
  padding: 0 4px;
  border: 1px solid rgba(248, 113, 113, .34);
  background: rgba(248, 113, 113, .11);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  box-shadow: none;
}

.p62-watchlist-hint {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, .11);
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}

.p64-market-entry {
  display: inline-flex;
  min-height: 40px;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .32);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.p64-market-entry:hover,
.p64-market-entry:focus-visible {
  border-color: rgba(56, 189, 248, .4);
  color: #bae6fd;
  outline: none;
}

.p62-hint-mobile { display: none; }
.p59-summary-grid button,
.p59-controls select { min-height: 44px; }

.p62-stock-name-link {
  display: flex;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  padding: 4px 6px;
  transition: color .16s ease, background .16s ease;
}

.p62-stock-name-link strong span {
  color: #7dd3fc;
  transition: transform .16s ease;
}

.p62-stock-name-link:hover,
.p62-stock-name-link:focus-visible {
  background: rgba(56, 189, 248, .09);
  color: #bae6fd;
  outline: none;
}

.p62-stock-name-link:hover strong span { display: inline-block; transform: translateX(3px); }
.p62-card-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.p62-view-stock,
.p59-watch-card .wl-remove {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 8px 12px;
  text-decoration: none;
}

.p62-view-stock {
  border: 1px solid rgba(56, 189, 248, .3);
  background: rgba(14, 116, 144, .13);
  color: #bae6fd;
  font-weight: 800;
}

.p62-view-stock:hover,
.p62-view-stock:focus-visible { background: rgba(14, 116, 144, .24); }
.p59-watch-card .wl-remove {
  border-color: rgba(148, 163, 184, .22);
  background: transparent;
  color: #94a3b8;
}

.p59-watch-card .wl-remove:hover,
.p59-watch-card .wl-remove:focus-visible {
  border-color: rgba(248, 113, 113, .35);
  color: #fca5a5;
}

.p59-watch-card .wl-alert-settings label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
}

@media (max-width: 760px) {
  .p62-hint-desktop { display: none; }
  .p62-hint-mobile { display: inline; }
  .p62-watchlist-hint { margin-top: 10px; padding-top: 8px; }
  .p59-watch-card > footer { gap: 8px; }
  .p62-card-actions { width: 100%; }
  .p62-view-stock { flex: 1 1 auto; }
  .p59-watch-card .wl-remove { flex: 0 0 auto; }
  .p59-watch-card .wl-alert-settings label { flex: 1 1 130px; }
}

/* P61: in-site watchlist alert center */
.p61-nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 4px;
  padding: 0 4px;
  border: 1px solid rgba(248, 113, 113, .34);
  border-radius: 999px;
  background: rgba(248, 113, 113, .11);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.p61-home-alerts,
.p61-watchlist-alerts {
  border: 1px solid rgba(248, 113, 113, 0.24);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.14), rgba(15, 23, 42, 0.92));
  border-radius: 18px;
  padding: 20px;
}

.p61-alert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.p61-alert-head h2 { margin: 2px 0 0; }
.p61-alert-head small { color: #94a3b8; }
.p61-alert-head > a,
.p61-hide-today {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
}

.p61-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.p61-summary-chips span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  font-size: 13px;
}

.p61-home-alert-list,
.p61-watch-alert-list {
  display: grid;
  gap: 8px;
}

.p61-home-alert-list a,
.p61-watch-alert-list button {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(150px, 1fr);
  gap: 8px 14px;
  align-items: center;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  text-align: left;
  text-decoration: none;
}

.p61-watch-alert-list button { cursor: pointer; }
.p61-home-alert-list .is-positive span,
.p61-watch-alert-list .is-positive span { color: #fca5a5; }
.p61-home-alert-list .is-negative span,
.p61-watch-alert-list .is-negative span { color: #86efac; }
.p61-home-alert-list .is-warning span,
.p61-watch-alert-list .is-warning span { color: #fde68a; }
.p61-watch-alert-list small {
  grid-column: 1 / -1;
  color: #94a3b8;
  overflow-wrap: anywhere;
}

.p61-alert-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.p61-alert-empty { margin: 14px 0 0; color: #cbd5e1; }
.p61-alert-empty small { color: #94a3b8; }
.p61-watchlist-alerts { margin: 0 0 20px; }
.p59-watch-card.is-alert-target {
  outline: 2px solid rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.12);
}

@media (max-width: 767px) {
  .p61-nav-badge {
    min-width: 16px;
    height: 16px;
    margin-left: 3px;
    padding: 0 3px;
    font-size: 9px;
  }

  .p61-home-alerts,
  .p61-watchlist-alerts { padding: 15px; border-radius: 14px; }
  .p61-alert-head { gap: 10px; }
  .p61-alert-head h2 { font-size: 20px; }
  .p61-hide-today,
  .p61-alert-head > a { flex: 0 0 auto; min-height: 40px; font-size: 12px; }
  .p61-summary-chips { margin-top: 12px; }
  .p61-home-alert-list a,
  .p61-watch-alert-list button {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 52px;
    overflow-wrap: anywhere;
  }
  .p61-watch-alert-list small { grid-column: auto; }
  .p61-alert-cta { width: 100%; }
}

/* P35 stock hero hierarchy: score first, metadata second */
.stock-analysis-page .sa-summary-v2 {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
}

.stock-analysis-page .sa-hero-score-core {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
}

.stock-analysis-page .sa-summary-v2 .sa-score-big {
  min-width: 0;
  min-height: clamp(190px, 25vw, 270px);
  padding: clamp(20px, 3vw, 34px);
}

.stock-analysis-page .sa-summary-v2 .sa-score-big strong {
  font-size: clamp(96px, 15vw, 168px);
  line-height: .84;
  letter-spacing: 0;
}

.stock-analysis-page .sa-summary-v2 .sa-score-big span {
  font-size: clamp(17px, 2.5vw, 24px);
  color: #e2e8f0;
}

.stock-analysis-page .sa-score-change-stack {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 180px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  background: rgba(15, 23, 42, .62);
  padding: 16px;
  color: #cbd5e1;
}

.stock-analysis-page .sa-score-change-stack span {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 950;
  line-height: 1;
}

.stock-analysis-page .sa-score-change-stack b {
  color: #94a3b8;
  font-size: 26px;
  line-height: 1.2;
}

.stock-analysis-page .sa-score-change-stack strong {
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
}

.stock-analysis-page .sa-hero-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 14px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding-top: 14px;
}

.stock-analysis-page .sa-hero-stock-meta h1 {
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.08;
  font-weight: 900;
}

.stock-analysis-page .sa-summary-v2 .sa-price-row {
  margin-top: 8px;
  gap: 10px;
}

.stock-analysis-page .sa-summary-v2 .sa-price-row strong {
  font-size: clamp(24px, 3vw, 42px);
}

.stock-analysis-page .sa-summary-v2 .sa-price-row span {
  font-size: clamp(14px, 2vw, 17px);
}

.stock-analysis-page .sa-hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.stock-analysis-page .sa-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #e2e8f0;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.stock-analysis-page .sa-hero-badge.is-risk-low,
.stock-analysis-page .sa-hero-badge.is-data-complete,
.stock-analysis-page .sa-hero-badge.is-data-full_3y {
  border-color: rgba(34, 197, 94, .36);
  color: #bbf7d0;
}

.stock-analysis-page .sa-hero-badge.is-risk-high {
  border-color: rgba(248, 113, 113, .36);
  color: #fecaca;
}

.stock-analysis-page .sa-hero-badge.is-risk-medium,
.stock-analysis-page .sa-hero-badge.is-data-partial,
.stock-analysis-page .sa-hero-badge.is-data-recent_only,
.stock-analysis-page .sa-hero-badge.is-data-insufficient {
  border-color: rgba(250, 204, 21, .34);
  color: #fef3c7;
}

.stock-analysis-page .sa-watch-actions--secondary {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.stock-analysis-page .sa-watch-actions--secondary .sa-watch-btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 850;
  opacity: .86;
}

.stock-analysis-page .is-hidden-in-hero {
  display: none !important;
}

@media (max-width: 820px) {
  .stock-analysis-page .sa-hero-score-core,
  .stock-analysis-page .sa-hero-meta-row {
    grid-template-columns: 1fr;
  }
  .stock-analysis-page .sa-score-change-stack {
    min-height: 120px;
  }
  .stock-analysis-page .sa-hero-badge-row,
  .stock-analysis-page .sa-watch-actions--secondary {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .stock-analysis-page .sa-summary-v2 {
    padding: 16px;
  }
  .stock-analysis-page .sa-summary-v2 .sa-score-big {
    min-height: 176px;
  }
  .stock-analysis-page .sa-summary-v2 .sa-score-big strong {
    font-size: clamp(82px, 25vw, 112px);
  }
  .stock-analysis-page .sa-score-change-stack span {
    font-size: 25px;
  }
  .stock-analysis-page .sa-watch-actions--secondary {
    width: 100%;
  }
  .stock-analysis-page .sa-watch-actions--secondary .sa-watch-btn {
    flex: 1 1 120px;
  }
}

/* StockLab homepage v2: dark fintech experience. */
body.michelle-theme.home-page {
  --sl-bg: #071019;
  --sl-panel: rgba(13, 24, 37, 0.88);
  --sl-panel-strong: #101d2c;
  --sl-line: rgba(148, 163, 184, 0.2);
  --sl-text: #eef6ff;
  --sl-muted: #94a3b8;
  --sl-faint: #64748b;
  --sl-cyan: #34d8ff;
  --sl-green: #22c55e;
  --sl-red: #fb7185;
  --sl-amber: #f59e0b;
  --sl-violet: #8b5cf6;
  color: var(--sl-text);
  background:
    radial-gradient(circle at 18% 0%, rgba(52, 216, 255, 0.2), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(160deg, #050b12 0%, #071019 44%, #0e1726 100%) !important;
}

.sl-app {
  min-height: 100vh;
  color: var(--sl-text);
}

.sl-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--sl-line);
  background: rgba(5, 11, 18, 0.88);
  backdrop-filter: blur(18px);
}

.sl-header__inner,
.sl-main {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
}

.sl-header__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.sl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sl-text) !important;
}

.sl-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sl-cyan), var(--sl-green));
  color: #04111d;
  font-weight: 950;
}

.sl-brand__word {
  display: grid;
  gap: 2px;
}

.sl-brand__word strong {
  font-size: 22px;
  line-height: 1;
}

.sl-brand__word small,
.sl-nav a,
.sl-mini-search input,
.sl-section__head span,
.sl-market-state small,
.sl-live-card p,
.sl-stock-rank-card p,
.sl-heat-card small,
.sl-plan small,
.sl-plan li {
  color: var(--sl-muted);
}

.sl-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
}

.sl-nav a {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  font-weight: 850;
  white-space: nowrap;
}

.sl-nav a:hover,
.sl-nav a.is-active {
  color: var(--sl-cyan) !important;
  border-bottom-color: var(--sl-cyan);
}

.sl-mini-search input {
  width: 240px;
  height: 40px;
  border: 1px solid var(--sl-line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  padding: 0 12px;
  outline: none;
}

.sl-main {
  padding: 34px 0 72px;
}

.sl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 28px;
  align-items: stretch;
  min-height: 560px;
}

.sl-hero__copy,
.sl-hero__panel,
.sl-section,
.sl-stock-rank-card,
.sl-heat-card,
.sl-heat-motion,
.sl-plan {
  border: 1px solid var(--sl-line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(13, 24, 37, 0.74));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.sl-hero__copy {
  padding: clamp(28px, 5vw, 72px);
  border-radius: 8px;
  overflow: hidden;
}

.sl-eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 0 0 18px;
  padding: 0 12px;
  border: 1px solid rgba(52, 216, 255, 0.35);
  border-radius: 999px;
  color: var(--sl-cyan);
  background: rgba(52, 216, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.sl-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--sl-text);
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.06;
  font-weight: 950;
}

.sl-lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: 22px;
  line-height: 1.7;
  font-weight: 750;
}

.sl-hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 34px;
}

.sl-hero-search input {
  min-height: 60px;
  border: 1px solid rgba(52, 216, 255, 0.28);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--sl-text);
  padding: 0 18px;
  outline: none;
  font-size: 16px;
}

.sl-hero-search button,
.sl-plan button {
  min-height: 60px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--sl-cyan), var(--sl-green));
  color: #04111d;
  font-weight: 950;
  cursor: pointer;
}

.sl-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.sl-hero-metrics div,
.sl-market-state,
.sl-live-card {
  border: 1px solid var(--sl-line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.42);
  padding: 16px;
}

.sl-hero-metrics strong {
  display: block;
  color: var(--sl-cyan);
  font-size: 30px;
  line-height: 1;
}

.sl-hero-metrics span {
  color: var(--sl-muted);
  font-size: 13px;
}

.sl-hero__panel {
  display: grid;
  gap: 16px;
  align-content: start;
  border-radius: 8px;
  padding: 18px;
}

.sl-market-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sl-market-badge span {
  color: var(--sl-muted);
  font-weight: 800;
}

.sl-market-badge strong {
  font-size: 34px;
}

.sl-market-badge.is-bull strong,
.is-buy strong {
  color: var(--sl-green);
}

.sl-market-badge.is-warm strong {
  color: var(--sl-amber);
}

.sl-market-badge.is-bear strong,
.is-sell strong {
  color: var(--sl-red);
}

.sl-market-state p {
  color: #dbeafe;
  font-weight: 750;
}

.sl-institutional {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.sl-institutional div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sl-live-card span {
  color: var(--sl-muted);
  font-size: 13px;
}

.sl-live-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.sl-score-line {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.sl-score-line b {
  color: var(--sl-green);
  font-size: 36px;
}

.sl-score-line i,
.sl-prob-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.sl-score-line i::before,
.sl-prob-track i {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sl-cyan), var(--sl-green));
}

.sl-score-line i::before {
  width: 100%;
}

.sl-section {
  margin-top: 28px;
  border-radius: 8px;
  padding: 24px;
}

.sl-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.sl-section__head h2 {
  margin: 0;
  color: var(--sl-text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.sl-section__head a {
  color: var(--sl-cyan) !important;
  font-weight: 900;
}

.sl-top-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sl-stock-rank-card {
  position: relative;
  min-height: 240px;
  display: grid;
  align-content: start;
  gap: 12px;
  border-radius: 8px;
  padding: 18px;
  color: var(--sl-text) !important;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.sl-stock-rank-card:hover,
.sl-heat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 216, 255, 0.55);
}

.sl-rank {
  color: var(--sl-cyan);
  font-weight: 950;
}

.sl-stock-rank-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sl-stock-rank-card h3 {
  margin: 0 0 2px;
  color: var(--sl-text);
  font-size: 20px;
}

.sl-stock-rank-card__head span {
  color: var(--sl-muted);
}

.sl-stock-rank-card__head strong {
  color: var(--sl-green);
  font-size: 38px;
  line-height: 1;
}

.sl-prob-row {
  display: flex;
  justify-content: space-between;
  color: var(--sl-muted);
}

.sl-prob-row b {
  color: var(--sl-cyan);
}

.sl-prob-track i {
  display: block;
}

.sl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-tags em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 9px;
  background: rgba(52, 216, 255, 0.1);
  color: var(--sl-cyan);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.sl-heat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.sl-heat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sl-heat-card {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  border-radius: 8px;
  padding: 16px;
  color: var(--sl-text) !important;
}

.sl-heat-card strong {
  font-size: 34px;
  line-height: 1;
}

.sl-heat-card.is-hot {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.34), rgba(15, 23, 42, 0.9));
}

.sl-heat-card.is-warm {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.32), rgba(15, 23, 42, 0.9));
}

.sl-heat-card.is-flat {
  background: linear-gradient(145deg, rgba(52, 216, 255, 0.22), rgba(15, 23, 42, 0.9));
}

.sl-heat-card.is-cold {
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.26), rgba(15, 23, 42, 0.9));
}

.sl-heat-motion {
  position: relative;
  min-height: 276px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.sl-orbit {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(52, 216, 255, 0.14);
  border-radius: 999px;
  animation: sl-spin 18s linear infinite;
}

.sl-orbit i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(18px + (var(--score) - 50) * 0.45px);
  height: calc(18px + (var(--score) - 50) * 0.45px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--sl-green), rgba(52, 216, 255, 0.25));
  transform: rotate(calc(var(--i) * 60deg)) translateX(118px);
  box-shadow: 0 0 28px rgba(52, 216, 255, 0.34);
}

@keyframes sl-spin {
  to { transform: rotate(360deg); }
}

.sl-heat-motion__center {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  border: 1px solid rgba(52, 216, 255, 0.3);
  background: rgba(2, 6, 23, 0.75);
  text-align: center;
}

.sl-heat-motion__center strong {
  color: var(--sl-cyan);
  font-size: 42px;
  line-height: 1;
}

.sl-heat-motion__center span,
.sl-heat-motion__center small {
  color: var(--sl-muted);
}

.sl-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sl-plan {
  border-radius: 8px;
  padding: 22px;
}

.sl-plan.is-pro {
  border-color: rgba(52, 216, 255, 0.5);
}

.sl-plan h3 {
  margin: 0 0 12px;
  color: var(--sl-text);
}

.sl-plan > strong {
  display: block;
  color: var(--sl-cyan);
  font-size: 30px;
}

.sl-plan ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.sl-plan li::before {
  content: "??;
  color: var(--sl-green);
  margin-right: 8px;
}

.sl-plan button {
  width: 100%;
  min-height: 44px;
}

.sl-empty {
  width: min(760px, calc(100% - 40px));
  margin: 80px auto;
  padding: 24px;
  border: 1px solid var(--sl-line);
  border-radius: 8px;
  background: var(--sl-panel);
  color: var(--sl-muted);
}

@media (max-width: 1120px) {
  .sl-header__inner {
    grid-template-columns: 1fr auto;
  }
  .sl-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .sl-hero,
  .sl-heat-layout {
    grid-template-columns: 1fr;
  }
  .sl-top-grid,
  .sl-heat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sl-header__inner,
  .sl-main {
    width: min(100% - 28px, 1440px);
  }
  .sl-mini-search {
    display: none;
  }
  .sl-hero-search,
  .sl-hero-metrics,
  .sl-top-grid,
  .sl-heat-grid,
  .sl-plan-grid {
    grid-template-columns: 1fr;
  }
  .sl-hero h1 {
    font-size: 42px;
  }
  .sl-section__head {
    display: grid;
    align-items: start;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--gs-bg);
}

body.michelle-theme,
body.michelle-theme.bg-slate-950,
body.michelle-theme.home-page {
  margin: 0;
  min-height: 100vh;
  color: var(--gs-text);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 47, 120, .10), transparent 31%),
    radial-gradient(circle at 96% 20%, rgba(255, 150, 185, .18), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fff7fa 46%, #ffedf4 100%) !important;
  font-family: var(--gs-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

body.michelle-theme a {
  color: inherit;
  text-decoration: none;
}

body.michelle-theme img,
body.michelle-theme svg {
  display: block;
}

body.michelle-theme button,
body.michelle-theme input,
body.michelle-theme select,
body.michelle-theme textarea {
  font: inherit;
}

.gs-app {
  min-height: 100vh;
}

.gs-container {
  width: min(var(--gs-container), calc(100% - 96px));
  margin: 0 auto;
}

.gs-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(241, 215, 223, .9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(32, 20, 35, .04);
}

.gs-header__inner {
  width: min(var(--gs-container), calc(100% - 80px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
}

.gs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.gs-brand__mark {
  width: 34px;
  height: 34px;
  color: var(--gs-primary);
}

.gs-brand__word {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.gs-brand__name {
  font-size: 29px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.gs-brand__tagline {
  color: #4f4554;
  font-size: 14px;
  white-space: nowrap;
}

.gs-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  min-width: 0;
}

.gs-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 68px;
  padding: 0 4px;
  color: #17131d;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.gs-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.gs-nav a:hover,
.gs-nav a.is-active {
  color: var(--gs-primary);
}

.gs-nav a.is-active::after {
  background: var(--gs-primary);
}

.gs-header__search {
  position: relative;
  width: min(290px, 22vw);
}

.gs-header__search input,
.gs-search-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--gs-border);
  border-radius: 9px;
  background: rgba(255, 255, 255, .92);
  color: var(--gs-text);
  padding: 0 14px 0 40px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.gs-header__search input:focus,
.gs-search-input:focus,
body.michelle-theme input:focus,
body.michelle-theme select:focus,
body.michelle-theme textarea:focus {
  border-color: rgba(255, 47, 120, .55);
  box-shadow: 0 0 0 4px rgba(255, 47, 120, .11);
}

.gs-header__search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #8e8292;
}

.gs-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  background: linear-gradient(135deg, #ff2f78 0%, #ff1768 100%);
  color: #fff !important;
  font-weight: 900;
  box-shadow: 0 13px 26px rgba(255, 47, 120, .24);
  cursor: pointer;
}

.gs-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.gs-btn--ghost {
  background: #fff;
  color: var(--gs-text) !important;
  border: 1px solid var(--gs-border);
  box-shadow: 0 10px 26px rgba(54, 38, 57, .06);
}

.gs-btn--tiny {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
  box-shadow: none;
}

.gs-page {
  padding: 32px 0 62px;
}

.gs-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(600px, 1.08fr);
  gap: 38px;
  align-items: center;
  min-height: 520px;
}

.gs-hero__copy {
  position: relative;
  z-index: 2;
  padding: 28px 0;
}

.gs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px 15px;
  border: 1px solid #ffc7d8;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--gs-primary);
  font-size: 14px;
  font-weight: 800;
}

.gs-hero h1 {
  margin: 0;
  max-width: 590px;
  color: var(--gs-text);
  font-size: clamp(48px, 5.1vw, 76px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: 0;
}

.gs-hero h1 .hot {
  color: var(--gs-primary);
}

.gs-hero__lead {
  max-width: 580px;
  margin: 26px 0 0;
  color: #4b4651;
  font-size: 18px;
  line-height: 2;
  font-weight: 600;
}

.gs-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin: 34px 0;
}

.gs-metric {
  display: grid;
  grid-template-columns: 34px auto;
  gap: 10px;
  align-items: center;
  padding-right: 24px;
  border-right: 1px solid var(--gs-border);
}

.gs-metric:last-child {
  border-right: 0;
}

.gs-metric__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gs-primary);
}

.gs-metric strong {
  display: block;
  color: var(--gs-primary);
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
}

.gs-metric span {
  color: var(--gs-muted);
  font-size: 13px;
}

.gs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gs-arrow-visual {
  position: absolute;
  right: 8px;
  bottom: 42px;
  width: 280px;
  height: 230px;
  color: rgba(255, 47, 120, .26);
  pointer-events: none;
}

.gs-dashboard {
  position: relative;
  z-index: 2;
  border: 1px solid var(--gs-border);
  border-radius: 17px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--gs-shadow);
  overflow: hidden;
}

.gs-dashboard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--gs-border);
}

.gs-dashboard__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.gs-dashboard__icon,
.gs-feature__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff3f7, #ffe6ef);
  color: var(--gs-primary);
}

.gs-dashboard__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gs-muted);
  font-size: 13px;
}

.gs-dashboard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) .95fr;
  gap: 14px;
  padding: 16px;
}

.gs-panel,
.gs-card,
.gs-feature,
.gs-stock-card,
.gs-news-card,
.gs-legacy-card {
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--gs-shadow-sm);
}

.gs-panel {
  padding: 18px;
}

.gs-panel h3,
.gs-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.gs-index-value {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 12px;
}

.gs-index-value strong {
  color: var(--gs-primary);
  font-size: 35px;
  line-height: 1;
  font-weight: 950;
}

.gs-up {
  color: var(--gs-green) !important;
}

.gs-rise {
  color: var(--gs-primary) !important;
}

.gs-down {
  color: var(--gs-green) !important;
}

.gs-chart {
  width: 100%;
  height: 180px;
  margin-top: 14px;
}

.gs-chart text {
  fill: #8c8091;
  font-size: 11px;
}

.gs-chart .line {
  fill: none;
  stroke: var(--gs-primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gs-chart .area {
  fill: url(#gsAreaGradient);
}

.gs-chart .bar-up {
  fill: #ff8bb4;
}

.gs-chart .bar-down {
  fill: #98dec4;
}

.gs-dashboard__side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.gs-prob-card {
  padding: 18px;
}

.gs-prob-card strong {
  display: inline-flex;
  align-items: baseline;
  color: var(--gs-primary);
  font-size: 46px;
  line-height: 1;
  font-weight: 950;
}

.gs-prob-card strong span {
  margin-left: 5px;
  font-size: 22px;
}

.gs-progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8ee;
}

.gs-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff2f78, #ff6da0);
}

.gs-prob-card--green strong {
  color: var(--gs-green);
}

.gs-prob-card--green .gs-progress i {
  background: var(--gs-green);
}

.gs-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gs-score-card {
  min-height: 96px;
  padding: 18px;
}

.gs-score-card strong {
  color: var(--gs-primary);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.gs-score-card .ok {
  color: var(--gs-green);
  font-size: 38px;
}

.gs-dashboard__lists {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 14px;
}

.gs-list {
  padding: 16px;
}

.gs-list__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.gs-list__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
}

.gs-list__head a {
  color: var(--gs-primary);
  font-size: 12px;
  font-weight: 900;
}

.gs-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 5px 0;
  color: #2a2230;
}

.gs-list-row small {
  color: var(--gs-faint);
  margin-left: 8px;
}

.gs-list-row strong {
  color: var(--gs-green);
  font-size: 13px;
}

.gs-section {
  margin-top: 28px;
}

.gs-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.gs-section__head h2 {
  margin: 0;
  color: var(--gs-text);
  font-size: 28px;
  font-weight: 950;
}

.gs-section__head p {
  margin: 4px 0 0;
  color: var(--gs-muted);
  font-weight: 600;
}

.gs-section__link {
  color: var(--gs-primary) !important;
  font-weight: 900;
}

.gs-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gs-feature {
  min-height: 138px;
  padding: 20px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
}

.gs-feature__icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
}

.gs-feature h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 950;
}

.gs-feature p {
  margin: 0 0 8px;
  color: var(--gs-muted);
}

.gs-feature a {
  color: var(--gs-primary);
  font-size: 14px;
  font-weight: 900;
}

.gs-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 38px;
  align-items: start;
}

.gs-stocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gs-stock-card {
  padding: 18px;
}

.gs-stock-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.gs-stock-card h3 span {
  margin-left: 8px;
  color: var(--gs-muted);
  font-size: 14px;
  font-weight: 700;
}

.gs-stock-card__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 12px;
}

.gs-stock-card__price strong {
  color: var(--gs-primary);
  font-size: 25px;
  font-weight: 950;
}

.gs-stock-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gs-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 6px;
  background: #fff0f5;
  color: var(--gs-primary);
  font-size: 12px;
  font-weight: 850;
}

.gs-tag--muted {
  background: #f5f2f5;
  color: #665b69;
}

.gs-news-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gs-border);
}

.gs-news-tabs button {
  min-width: 98px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--gs-muted);
  font-weight: 900;
  cursor: pointer;
}

.gs-news-tabs button.is-active {
  border-color: var(--gs-border);
  border-bottom-color: #fff;
  color: var(--gs-primary);
  background: #fff6fa;
}

.gs-news-card {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.gs-news-card + .gs-news-card {
  margin-top: 12px;
}

.gs-news-card time {
  color: var(--gs-faint);
  font-size: 13px;
}

.gs-news-card h3 {
  margin: 6px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 900;
}

.gs-news-thumb {
  width: 100px;
  height: 76px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 47, 120, .88), rgba(255, 148, 185, .88)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.2) 0 7px, transparent 7px 14px);
}

.gs-empty,
.gs-loading,
.gs-error {
  width: min(680px, calc(100% - 40px));
  margin: 80px auto;
  padding: 24px;
  border: 1px solid var(--gs-border);
  border-radius: 18px;
  background: #fff;
  color: var(--gs-muted);
  text-align: center;
  box-shadow: var(--gs-shadow-sm);
}

.gs-stock-page,
.gs-plain-page {
  padding: 28px 0 62px;
}

.gs-page-title {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

.gs-page-title h1 {
  margin: 0;
  color: var(--gs-text);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.12;
  font-weight: 950;
}

.gs-page-title p {
  margin: 0;
  color: var(--gs-muted);
  font-weight: 650;
}

.gs-stock-summary {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.gs-summary-main {
  padding: 24px;
}

.gs-summary-main__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.gs-summary-main h1 {
  margin: 6px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  font-weight: 950;
}

.gs-score-ring {
  width: 126px;
  height: 126px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gs-primary) calc(var(--p, 0) * 1%), #f0e8ee 0);
}

.gs-score-ring__inner {
  width: 94px;
  height: 94px;
  border-radius: inherit;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--gs-primary);
  font-size: 31px;
  font-weight: 950;
}

.gs-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.gs-stat {
  padding: 16px;
  border: 1px solid var(--gs-border);
  border-radius: 14px;
  background: var(--gs-surface-soft);
}

.gs-stat span {
  display: block;
  color: var(--gs-muted);
  font-size: 13px;
  font-weight: 800;
}

.gs-stat strong {
  display: block;
  margin-top: 7px;
  color: var(--gs-text);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.gs-ai-card {
  padding: 24px;
}

.gs-ai-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.gs-ai-card p {
  margin: 0;
  color: #3f3844;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
}

.gs-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.gs-chart-card,
.gs-factor-card {
  padding: 22px;
  margin-top: 18px;
}

.gs-chart-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.gs-segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--gs-border);
  border-radius: 999px;
  background: var(--gs-surface-soft);
}

.gs-segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
  color: var(--gs-muted);
  font-weight: 900;
  cursor: pointer;
}

.gs-segmented button.is-active {
  background: var(--gs-primary);
  color: #fff;
}

.gs-chart-wrap {
  display: grid;
  gap: 11px;
}

.gs-chart-wrap [data-chart] {
  min-height: 120px;
  border: 1px solid var(--gs-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.gs-factor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gs-factor {
  padding: 18px;
  border: 1px solid var(--gs-border);
  border-radius: 16px;
  background: var(--gs-surface-soft);
}

.gs-factor__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.gs-factor h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 950;
}

.gs-factor strong {
  color: var(--gs-primary);
  font-size: 24px;
}

.gs-factor p {
  margin: 10px 0 0;
  color: var(--gs-muted);
  font-weight: 650;
}

.gs-chart-card--dark {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #1e293b;
}

.gs-chart-card--dark h2,
.gs-chart-card--dark p {
  color: #e5e7eb;
}

.gs-chart-card--dark .gs-segmented {
  border-color: #334155;
  background: #111827;
}

.gs-chart-card--dark .gs-segmented button {
  color: #cbd5e1;
}

.gs-chart-card--dark .gs-segmented button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff2f78, #8b5cf6);
}

.gs-chart-wrap--pro [data-chart] {
  border-color: #1e293b;
  background: #111827;
}

.gs-ohlc-box {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #111827;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 800;
  overflow-x: auto;
  white-space: nowrap;
}

.gs-intent-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.gs-intent-box div,
.gs-backtest-box {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--gs-border);
  border-radius: 12px;
  background: var(--gs-surface-soft);
}

.gs-intent-box b,
.gs-backtest-box b {
  color: var(--gs-text);
}

.gs-intent-box span,
.gs-backtest-box span {
  color: var(--gs-muted);
  font-weight: 750;
}

.gs-factor-grid--analysis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gs-factor--wide {
  display: grid;
  align-content: start;
  gap: 12px;
}

.gs-factor__summary {
  color: #3f3844 !important;
  font-weight: 850 !important;
}

.gs-factor__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gs-factor__cols div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--gs-border);
  border-radius: 10px;
  background: #fff;
}

.gs-factor__cols b {
  color: var(--gs-text);
  font-size: 13px;
}

.gs-factor__cols span {
  color: var(--gs-muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.55;
}

.gs-backtest-box {
  margin-top: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.gs-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.gs-feature-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 220px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.gs-feature-card h2,
.gs-home-search h1 {
  margin: 0 0 8px;
  color: var(--gs-text);
  font-size: 26px;
  font-weight: 950;
}

.gs-feature-card p,
.gs-home-search p {
  margin: 0;
  color: var(--gs-muted);
  font-weight: 700;
}

.gs-home-search {
  display: grid;
  gap: 18px;
  padding: 26px;
  margin-top: 18px;
}

.gs-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
}

.gs-form input,
.gs-form select,
body.michelle-theme input,
body.michelle-theme select,
body.michelle-theme textarea {
  min-height: 40px;
  border: 1px solid var(--gs-border);
  border-radius: 9px;
  background: #fff;
  color: var(--gs-text);
  padding: 8px 11px;
  outline: none;
}

body.michelle-theme table,
.score-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  color: var(--gs-text);
  background: #fff;
}

body.michelle-theme th,
.score-table th {
  background: #fff4f8;
  color: var(--gs-muted);
  font-size: 13px;
  font-weight: 950;
  text-align: left;
}

body.michelle-theme th,
body.michelle-theme td,
.score-table th,
.score-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gs-border);
}

body.michelle-theme tbody tr:hover,
.score-table tbody tr:hover {
  background: #fff8fb;
}

.page-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.score-panel {
  margin: 0;
}

.score-panel-inner,
.widget,
.score-table-wrap,
.gs-legacy-card {
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--gs-shadow-sm);
}

.score-panel-inner {
  padding: 26px;
}

.score-panel-title {
  margin: 0 0 8px;
  color: var(--gs-text);
  font-size: 32px;
  font-weight: 950;
}

.score-panel-meta,
.score-panel-empty,
.score-panel-legend {
  color: var(--gs-muted);
}

.score-panel-err {
  color: #b42355;
  font-weight: 850;
}

.score-panel button,
.widget button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--gs-primary), #ff5f98);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 47, 120, .16);
}

.score-panel label {
  display: grid;
  gap: 6px;
  color: var(--gs-muted);
  font-size: 13px;
  font-weight: 850;
}

.widgets-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.widget {
  padding: 18px;
}

.widget-h {
  margin-bottom: 10px;
  color: var(--gs-text);
  font-size: 18px;
  font-weight: 950;
}

.score-table-wrap {
  overflow-x: auto;
}

.site-header {
  background: transparent;
}

.dev-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .gs-header__inner {
    grid-template-columns: 1fr auto;
  }

  .gs-nav {
    grid-column: 1 / -1;
    order: 4;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .gs-nav a {
    min-height: 42px;
  }

  .gs-header__search {
    width: min(360px, 42vw);
  }

  .gs-hero {
    grid-template-columns: 1fr;
  }

  .gs-dashboard__grid,
  .gs-dashboard__lists,
  .gs-stock-summary,
  .gs-content-grid {
    grid-template-columns: 1fr;
  }

  .gs-feature-grid,
  .gs-stocks,
  .gs-factor-grid,
  .gs-factor-grid--analysis,
  .gs-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gs-container,
  .gs-header__inner {
    width: min(100% - 28px, var(--gs-container));
  }

  .gs-header__inner {
    gap: 12px;
    padding: 10px 0;
  }

  .gs-brand__name {
    font-size: 23px;
  }

  .gs-brand__tagline,
  .gs-header__search {
    display: none;
  }

  .gs-header__actions .gs-btn {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }

  .gs-page {
    padding-top: 18px;
  }

  .gs-hero h1 {
    font-size: 44px;
  }

  .gs-dashboard__grid,
  .gs-mini-grid,
  .gs-feature-grid,
  .gs-stocks,
  .gs-factor-grid,
  .gs-factor-grid--analysis,
  .gs-entry-grid,
  .gs-summary-grid {
    grid-template-columns: 1fr;
  }

  .gs-feature {
    grid-template-columns: 58px 1fr;
  }

  .gs-feature__icon {
    width: 56px;
    height: 56px;
  }

  .gs-news-card {
    grid-template-columns: 1fr;
  }

  .gs-news-thumb {
    width: 100%;
    height: 110px;
  }

  .gs-arrow-visual {
    opacity: .45;
  }

  .gs-factor__cols,
  .gs-backtest-box {
    grid-template-columns: 1fr;
  }
}

/* Final homepage override: keep the redesigned landing page dark even after legacy styles. */
body.michelle-theme.home-page:has(.sl-app),
body.michelle-theme.home-page {
  color: var(--sl-text, #eef6ff);
  background:
    radial-gradient(circle at 18% 0%, rgba(52, 216, 255, 0.2), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(160deg, #050b12 0%, #071019 44%, #0e1726 100%) !important;
}

/* Homepage v3: professional navy-black fintech palette and Taiwan heat colors. */
body.michelle-theme.home-page {
  --sl-bg: #0f172a;
  --sl-bg-2: #111827;
  --sl-panel: rgba(15, 23, 42, 0.92);
  --sl-panel-2: rgba(30, 41, 55, 0.9);
  --sl-line: rgba(148, 163, 184, 0.28);
  --sl-text: #f8fafc;
  --sl-muted: #cbd5e1;
  --sl-faint: #94a3b8;
  --sl-blue: #38bdf8;
  --sl-blue-2: #60a5fa;
  --sl-red: #ef4444;
  --sl-red-2: #fb923c;
  --sl-green: #22c55e;
  --sl-green-2: #16a34a;
  --sl-amber: #f59e0b;
  background:
    radial-gradient(circle at 18% -8%, rgba(56, 189, 248, 0.18), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(239, 68, 68, 0.16), transparent 28%),
    linear-gradient(160deg, #020617 0%, #0f172a 48%, #111827 100%) !important;
}

.sl-header {
  background: rgba(2, 6, 23, 0.9);
  border-bottom-color: rgba(148, 163, 184, 0.22);
}

.sl-brand__mark {
  background: linear-gradient(135deg, var(--sl-blue), var(--sl-blue-2));
  color: #020617;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.3);
}

.sl-nav a:hover,
.sl-nav a.is-active,
.sl-section__head a,
.sl-rank,
.sl-prob-row b,
.sl-heat-motion__center strong {
  color: var(--sl-blue) !important;
}

.sl-login-link,
.sl-register-link,
.sl-btn-secondary,
.sl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 900;
  white-space: nowrap;
}

.sl-login-link,
.sl-btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--sl-text) !important;
  background: rgba(15, 23, 42, 0.72);
}

.sl-register-link,
.sl-btn-primary,
.sl-hero-search button,
.sl-plan button {
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #020617 !important;
  background: linear-gradient(135deg, #38bdf8, #93c5fd);
  box-shadow: 0 14px 36px rgba(56, 189, 248, 0.22);
}

.sl-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sl-hero {
  gap: 24px;
}

.sl-hero__copy,
.sl-hero__panel,
.sl-section,
.sl-stock-rank-card,
.sl-heat-card,
.sl-heat-motion,
.sl-plan {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    linear-gradient(180deg, rgba(30, 41, 55, 0.92), rgba(15, 23, 42, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.sl-hero__copy {
  background:
    linear-gradient(130deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 55, 0.82)),
    radial-gradient(circle at 78% 12%, rgba(56, 189, 248, 0.2), transparent 32%);
}

.sl-hero h1 {
  max-width: 900px;
  letter-spacing: 0;
}

.sl-lead {
  color: #dbeafe;
}

.sl-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.sl-eyebrow {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.1);
}

.sl-hero-search input,
.sl-mini-search input {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.76);
  color: var(--sl-text);
}

.sl-market-badge.is-bull strong,
.is-buy strong {
  color: var(--sl-red);
}

.sl-market-badge.is-warm strong {
  color: var(--sl-amber);
}

.sl-market-badge.is-bear strong,
.is-sell strong {
  color: var(--sl-green);
}

.sl-stock-rank-card {
  min-height: 258px;
}

.sl-stock-rank-card__head strong {
  font-size: 52px;
  color: #f87171;
  text-shadow: 0 0 24px rgba(239, 68, 68, 0.24);
}

.sl-stock-rank-card.is-elite {
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 20px 62px rgba(127, 29, 29, 0.25);
}

.sl-stock-rank-card.is-elite .sl-stock-rank-card__head strong {
  color: #ff6b6b;
}

.sl-stock-rank-card.is-strong .sl-stock-rank-card__head strong {
  color: #fb923c;
}

.sl-stock-rank-card.is-watch .sl-stock-rank-card__head strong {
  color: #38bdf8;
}

.sl-stock-rank-card.is-risk .sl-stock-rank-card__head strong {
  color: #22c55e;
}

.sl-prob-track i,
.sl-score-line i::before {
  background: linear-gradient(90deg, #38bdf8, #f97316, #ef4444);
}

.sl-tags em {
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
}

.sl-heat-section {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94)),
    radial-gradient(circle at 18% 14%, rgba(239, 68, 68, 0.16), transparent 30%);
}

.sl-heat-card {
  min-height: 142px;
  border-width: 1px;
}

.sl-heat-card strong {
  font-size: 42px;
}

.sl-heat-card.is-surge {
  border-color: rgba(248, 113, 113, 0.72);
  background:
    linear-gradient(145deg, rgba(239, 68, 68, 0.78), rgba(127, 29, 29, 0.78)),
    linear-gradient(180deg, rgba(30, 41, 55, 0.9), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 0 1px rgba(254, 202, 202, 0.16), 0 0 34px rgba(239, 68, 68, 0.28);
  animation: sl-hot-pulse 2.4s ease-in-out infinite;
}

.sl-heat-card.is-rise {
  border-color: rgba(251, 146, 60, 0.58);
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.66), rgba(124, 45, 18, 0.72)),
    linear-gradient(180deg, rgba(30, 41, 55, 0.9), rgba(15, 23, 42, 0.9));
}

.sl-heat-card.is-neutral {
  border-color: rgba(148, 163, 184, 0.34);
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.96), rgba(15, 23, 42, 0.9));
}

.sl-heat-card.is-fall {
  border-color: rgba(34, 197, 94, 0.5);
  background:
    linear-gradient(145deg, rgba(22, 163, 74, 0.68), rgba(20, 83, 45, 0.78)),
    linear-gradient(180deg, rgba(30, 41, 55, 0.9), rgba(15, 23, 42, 0.9));
}

@keyframes sl-hot-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.16); }
}

.sl-orbit {
  border-color: rgba(248, 113, 113, 0.2);
}

.sl-orbit i {
  background: radial-gradient(circle, #f97316, rgba(239, 68, 68, 0.3));
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.32);
}

.sl-orbit i.is-surge {
  background: radial-gradient(circle, #fecaca 0%, #ef4444 42%, rgba(239, 68, 68, 0.2) 72%);
}

.sl-orbit i.is-rise {
  background: radial-gradient(circle, #fed7aa 0%, #f97316 48%, rgba(249, 115, 22, 0.18) 74%);
}

.sl-orbit i.is-neutral {
  background: radial-gradient(circle, #cbd5e1 0%, #64748b 55%, rgba(100, 116, 139, 0.16) 76%);
}

.sl-orbit i.is-fall {
  background: radial-gradient(circle, #bbf7d0 0%, #22c55e 48%, rgba(34, 197, 94, 0.16) 76%);
}

.sl-heat-motion__center {
  background: rgba(2, 6, 23, 0.82);
  border-color: rgba(248, 113, 113, 0.28);
}

.sl-plan {
  position: relative;
  overflow: hidden;
}

.sl-plan.is-lite,
.sl-plan.is-pro {
  border-color: rgba(56, 189, 248, 0.45);
}

.sl-plan.is-pro {
  background:
    linear-gradient(180deg, rgba(30, 41, 55, 0.96), rgba(15, 23, 42, 0.94)),
    radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.2), transparent 36%);
  box-shadow: 0 24px 80px rgba(56, 189, 248, 0.16);
}

.sl-plan-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  font-size: 12px;
  font-weight: 900;
}

.sl-plan > strong {
  color: #f8fafc;
  font-size: 34px;
}

.sl-plan.is-lite > strong,
.sl-plan.is-pro > strong {
  color: #7dd3fc;
}

.sl-plan li::before {
  color: #38bdf8;
}

@media (max-width: 1180px) {
  .sl-header-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
  }
}

/* Stock analysis page v1. */
body.stock-analysis-page {
  --sa-bg: #020617;
  --sa-bg-2: #0f172a;
  --sa-panel: rgba(15, 23, 42, 0.94);
  --sa-panel-2: rgba(30, 41, 55, 0.86);
  --sa-line: rgba(148, 163, 184, 0.26);
  --sa-text: #f8fafc;
  --sa-muted: #cbd5e1;
  --sa-faint: #94a3b8;
  --sa-blue: #38bdf8;
  --sa-red: #ef4444;
  --sa-green: #22c55e;
  --sa-amber: #f59e0b;
  margin: 0;
  min-height: 100vh;
  color: var(--sa-text);
  background:
    radial-gradient(circle at 16% -6%, rgba(56, 189, 248, 0.16), transparent 32%),
    radial-gradient(circle at 86% 4%, rgba(239, 68, 68, 0.12), transparent 28%),
    linear-gradient(160deg, #020617 0%, #0f172a 50%, #111827 100%);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.sa-app a {
  color: inherit;
  text-decoration: none;
}

.sa-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--sa-line);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
}

.sa-header__inner,
.sa-main {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
}

.sa-header__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.sa-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sa-text);
  font-size: 22px;
  font-weight: 950;
}

.sa-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #020617;
  background: linear-gradient(135deg, #38bdf8, #93c5fd);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.28);
}

.sa-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
}

.sa-nav a {
  color: var(--sa-muted);
  font-weight: 850;
  white-space: nowrap;
}

.sa-nav a:hover {
  color: var(--sa-blue);
}

.sa-search input {
  width: 220px;
  min-height: 40px;
  border: 1px solid var(--sa-line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.78);
  color: var(--sa-text);
  padding: 0 12px;
  outline: none;
}

.sa-main {
  padding: 28px 0 72px;
}

.sa-summary,
.sa-chart-card,
.sa-factor-section,
.sa-upgrade,
.sa-empty,
.sa-warning {
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(30, 41, 55, 0.92), rgba(15, 23, 42, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.sa-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 430px;
  gap: 18px;
  padding: 22px;
}

.sa-summary__main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.sa-eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 0 11px;
  margin: 0 0 12px;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.sa-summary h1 {
  margin: 0;
  color: var(--sa-text);
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.05;
  font-weight: 950;
}

.sa-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-top: 18px;
}

.sa-price-row strong {
  font-size: 34px;
}

.sa-price-row span {
  font-size: 18px;
  font-weight: 950;
}

.is-up {
  color: var(--sa-red) !important;
}

.is-down {
  color: var(--sa-green) !important;
}

.sa-price-row small,
.sa-ai-line span,
.sa-section-head p,
.sa-factor p,
.sa-upgrade p,
.sa-upgrade span {
  color: var(--sa-muted);
}

.sa-watch-btn {
  align-self: start;
  min-height: 42px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
  padding: 0 16px;
  font-weight: 950;
  cursor: pointer;
}

.sa-watch-btn.is-share {
  border-color: rgba(226, 232, 240, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
}

.sa-score-panel {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(220px, 1fr);
  gap: 14px;
}

.sa-score-big,
.sa-prob-cards div,
.sa-ai-line {
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.38);
  padding: 16px;
}

.sa-score-big {
  position: relative;
  display: grid;
  align-content: center;
  text-align: center;
}

.sa-score-big span,
.sa-score-big small,
.sa-prob-cards span {
  color: var(--sa-faint);
  font-size: 13px;
  font-weight: 850;
}

.sa-score-big strong {
  color: #f87171;
  font-size: 74px;
  line-height: 0.95;
  text-shadow: 0 0 28px rgba(239, 68, 68, 0.25);
}

.sa-score-big.is-warm strong {
  color: var(--sa-amber);
}

.sa-score-big.is-risk strong {
  color: var(--sa-green);
}

.sa-prob-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sa-prob-cards strong {
  display: block;
  margin-top: 8px;
  color: var(--sa-blue);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.sa-operation-card,
.sa-model-horizon,
.sa-market-weight-card,
.sa-validation-card {
  grid-column: 1 / -1;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  background: rgba(15, 23, 42, .58);
  padding: 14px 16px;
}

.sa-operation-card span,
.sa-model-horizon span {
  display: block;
  color: var(--sa-faint);
  font-size: 13px;
  font-weight: 850;
}

.sa-operation-card strong {
  display: block;
  margin-top: 6px;
  color: #f7d774;
  font-size: 22px;
}

.sa-operation-card p {
  margin: 8px 0 0;
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.6;
}

.sa-operation-card.is-risk strong { color: #fb923c; }
.sa-operation-card.is-bull strong { color: #f87171; }
.sa-operation-card.is-warm strong { color: #f7d774; }

.sa-market-weight-card {
  grid-column: 1 / -1;
  padding: 14px 16px;
}

.sa-market-weight-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.sa-market-weight-head span {
  color: var(--sa-faint);
  font-size: 13px;
  font-weight: 850;
}

.sa-market-weight-head strong {
  color: #86efac;
  font-size: 26px;
}

.sa-market-weight-card.is-negative .sa-market-weight-head strong {
  color: #fca5a5;
}

.sa-market-weight-head b {
  color: #f8fafc;
  font-size: 16px;
}

.sa-market-weight-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #cbd5e1;
  font-size: 14px;
}

.sa-risk-filter {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, .2);
}

.sa-risk-filter > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sa-risk-filter span {
  color: var(--sa-faint);
  font-size: 13px;
  font-weight: 850;
}

.sa-risk-filter strong {
  color: #86efac;
  font-size: 22px;
}

.sa-risk-filter.is-medium strong { color: #facc15; }
.sa-risk-filter.is-high strong { color: #fca5a5; }

.sa-risk-filter b {
  color: #e2e8f0;
  font-size: 13px;
}

.sa-risk-filter p {
  margin: 8px 0 0;
  color: #e2e8f0;
  line-height: 1.55;
}

.sa-validation-card {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-left: 3px solid #60a5fa;
}

.sa-validation-card.is-pass {
  border-left-color: #4ade80;
}

.sa-validation-card.is-fail {
  border-left-color: #f87171;
}

.sa-validation-card span {
  display: block;
  color: var(--sa-faint);
  font-size: 13px;
  font-weight: 850;
}

.sa-validation-card strong {
  display: block;
  margin-top: 6px;
  color: #e2e8f0;
  font-size: 17px;
}

.sa-validation-card p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 14px;
}

.sa-model-horizon {
  padding: 10px 14px;
  background: rgba(247, 215, 116, .08);
}

.sa-model-horizon span {
  color: rgba(248, 250, 252, .84);
}

.sa-ai-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.sa-ai-line b {
  color: #fca5a5;
}

.sa-chart-card,
.sa-factor-section,
.sa-upgrade {
  margin-top: 22px;
  padding: 22px;
}

.sa-chart-head,
.sa-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.sa-chart-head h2,
.sa-section-head h2,
.sa-upgrade h2 {
  margin: 0;
  color: var(--sa-text);
  font-size: 30px;
  font-weight: 950;
}

.sa-chart-head p,
.sa-section-head p {
  margin: 4px 0 0;
}

.sa-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--sa-line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.48);
}

.sa-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sa-muted);
  padding: 0 16px;
  font-weight: 950;
  cursor: pointer;
}

.sa-tabs button.is-active {
  background: linear-gradient(135deg, #38bdf8, #93c5fd);
  color: #020617;
}

.sa-range-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}

.sa-chart-actions {
  display: none;
}

.sa-history-actions {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 10px;
}

.sa-history-jump {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #dbeafe;
  font-weight: 800;
  cursor: pointer;
}

.sa-history-jump:hover {
  border-color: rgba(56, 189, 248, .52);
  color: #f8fafc;
}

.sa-kline-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin: 8px 0 10px;
}

.sa-kline-toolbar button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(15, 23, 42, .62);
  color: #cbd5e1;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.sa-kline-toolbar button.is-active {
  border-color: rgba(56, 189, 248, .62);
  background: rgba(14, 165, 233, .18);
  color: #f8fafc;
}

.sa-kline-toolbar button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.sa-kline-diagnostic {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 9px 12px;
  border: 1px dashed rgba(56, 189, 248, .36);
  border-radius: 10px;
  background: rgba(15, 23, 42, .52);
  color: #bfdbfe;
  font-size: .78rem;
  line-height: 1.5;
}

.sa-kline-diagnostic strong {
  color: #f8fafc;
}

.sa-range-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #cbd5e1;
  font-weight: 800;
  cursor: pointer;
}

.sa-range-tabs button.is-active {
  border-color: rgba(56, 189, 248, .58);
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
}

.sa-ohlc {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--sa-line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.56);
  color: #e2e8f0;
  padding: 10px 12px;
  overflow-x: auto;
  white-space: nowrap;
  font-weight: 850;
}

.sa-chart-stack {
  display: grid;
  gap: 10px;
}

.sa-chart {
  min-height: 120px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}

.sa-chart.price {
  min-height: 420px;
}

.sa-factor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sa-factor {
  display: grid;
  gap: 14px;
  border: 1px solid var(--sa-line);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.38);
  padding: 18px;
}

.sa-factor__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sa-factor h3 {
  margin: 0;
  color: var(--sa-text);
  font-size: 20px;
  font-weight: 950;
}

.sa-factor__head strong {
  color: var(--sa-blue);
  font-size: 24px;
}

.sa-factor__cols {
  display: grid;
  gap: 10px;
}

.sa-factor__cols div {
  display: grid;
  gap: 7px;
}

.sa-factor__cols b {
  color: var(--sa-text);
}

.sa-factor__cols span {
  color: var(--sa-muted);
  line-height: 1.55;
}

.sa-factor__cols .is-plus {
  color: #fecaca;
}

.sa-factor__cols .is-minus {
  color: #bbf7d0;
}

.sa-upgrade {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 18px;
  align-items: center;
}

.sa-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sa-upgrade article {
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.4);
  padding: 18px;
}

.sa-upgrade h3 {
  margin: 0 0 8px;
  color: var(--sa-text);
}

.sa-upgrade article strong {
  display: block;
  color: #7dd3fc;
  font-size: 28px;
}

.sa-upgrade button {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #38bdf8, #93c5fd);
  color: #020617;
  font-weight: 950;
}

.sa-empty,
.sa-warning {
  margin: 80px auto;
  padding: 22px;
  color: var(--sa-muted);
}

.sa-warning {
  margin: 0 0 18px;
  color: #fde68a;
}

@media (max-width: 1180px) {
  .sa-header__inner,
  .sa-summary,
  .sa-upgrade {
    grid-template-columns: 1fr;
  }
  .sa-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .sa-score-panel,
  .sa-factor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sa-header__inner,
  .sa-main {
    width: min(100% - 28px, 1440px);
  }
  .sa-search {
    display: none;
  }
  .sa-score-panel,
  .sa-factor-grid,
  .sa-upgrade-grid {
    grid-template-columns: 1fr;
  }
  .sa-chart-head,
  .sa-section-head,
  .sa-summary__main {
    display: grid;
  }
}

/* Stock analysis polish: unified deep navy fintech system */
.stock-analysis-page .sa-header,
.stock-analysis-page .sa-summary,
.stock-analysis-page .sa-chart-card,
.stock-analysis-page .sa-factor,
.stock-analysis-page .sa-upgrade {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.46);
}

.stock-analysis-page .sa-summary h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.stock-analysis-page .sa-price-row strong {
  font-size: clamp(30px, 4vw, 54px);
}

.stock-analysis-page .is-up,
.stock-analysis-page .sa-trend-stat.is-up strong,
.stock-analysis-page .sa-trend-table .is-up {
  color: #ff5252 !important;
}

.stock-analysis-page .is-down,
.stock-analysis-page .sa-trend-stat.is-down strong,
.stock-analysis-page .sa-trend-table .is-down {
  color: #00d26a !important;
}

.stock-analysis-page .sa-score-big {
  min-width: 210px;
  padding: 24px;
  border: 1px solid rgba(255, 82, 82, 0.28);
  background: radial-gradient(circle at 50% 18%, rgba(255, 82, 82, 0.22), rgba(15, 23, 42, 0.92) 58%);
}

.stock-analysis-page .sa-score-big strong {
  font-size: clamp(78px, 9vw, 122px);
  line-height: 0.86;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 82, 82, 0.38);
}

.stock-analysis-page .sa-score-big span,
.stock-analysis-page .sa-score-big small,
.stock-analysis-page .sa-factor__head h3,
.stock-analysis-page .sa-section-head p,
.stock-analysis-page .sa-chart-head p {
  color: #cbd5e1;
}

.stock-analysis-page .sa-prob-cards strong {
  font-size: clamp(28px, 3vw, 42px);
}

.stock-analysis-page .sa-watch-btn,
.stock-analysis-page .sa-tabs button.is-active,
.stock-analysis-page .sa-upgrade button {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.stock-analysis-page .sa-chart-stack {
  background: #0b1120;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.stock-analysis-page .sa-ohlc {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.2);
}

.stock-analysis-page .sa-factor-grid {
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stock-analysis-page .sa-factor {
  border-radius: 8px;
}

.stock-analysis-page .sa-factor__head strong {
  font-size: clamp(34px, 4vw, 54px);
  color: #f8fafc;
  letter-spacing: 0;
}

.stock-analysis-page .sa-factor h3 {
  font-size: 24px;
}

.stock-analysis-page .sa-factor p {
  font-size: 16px;
  line-height: 1.75;
}

.stock-analysis-page .sa-factor__cols span {
  font-size: 15px;
  line-height: 1.55;
}

.sa-institutional-trend {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.sa-chip-flow-panel,
.sa-chip-data-status {
  margin-top: 18px;
}

.sa-chip-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sa-chip-flow-grid article,
.sa-chip-data-status article {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
}

.sa-chip-flow-grid article > span,
.sa-chip-data-status span {
  display: block;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.sa-chip-flow-grid small,
.sa-chip-data-status small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.78rem;
}

.sa-chip-flow-grid p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 0;
  color: #334155;
  font-size: 0.88rem;
}

.sa-chip-flow-grid strong,
.sa-chip-data-status strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.sa-chip-flow-grid .is-up {
  color: #0f766e;
}

.sa-chip-flow-grid .is-down {
  color: #b42318;
}

.sa-chip-flow-grid .is-flat {
  color: #475569;
}

.sa-score-note {
  display: block;
  margin-top: 6px;
  max-width: 220px;
  color: #64748b;
  line-height: 1.45;
}

.sa-score-delta {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  line-height: 1.35;
}

.sa-score-delta.is-up { color: #15803d; }
.sa-score-delta.is-down { color: #b91c1c; }
.sa-score-delta.is-flat { color: #64748b; }

.sa-score-animate {
  animation: scoreSoftPulse 720ms ease-out 1;
}

@keyframes scoreSoftPulse {
  0% { transform: translateY(2px); opacity: .72; }
  100% { transform: translateY(0); opacity: 1; }
}

.sa-chip-data-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.sa-chip-data-status strong {
  display: block;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .sa-chip-flow-grid,
  .sa-chip-data-status {
    grid-template-columns: 1fr;
  }
}

.sa-trend-summary {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.6;
}

.sa-trend-summary.is-buy {
  border-color: rgba(255, 82, 82, 0.32);
  box-shadow: inset 3px 0 0 #ff5252;
}

.sa-trend-summary.is-sell {
  border-color: rgba(0, 210, 106, 0.32);
  box-shadow: inset 3px 0 0 #00d26a;
}

.sa-trend-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.sa-trend-stat {
  padding: 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.sa-trend-stat span,
.sa-trend-stat small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.sa-trend-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  color: #e2e8f0;
}

.sa-trend-table {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.sa-trend-table__head,
.sa-trend-table__row {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
}

.sa-trend-table__head {
  background: rgba(51, 65, 85, 0.78);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
}

.sa-trend-table__row {
  background: rgba(15, 23, 42, 0.66);
  color: #cbd5e1;
  font-size: 13px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

@media (max-width: 760px) {
  .sa-trend-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-trend-table__head,
  .sa-trend-table__row {
    grid-template-columns: 1.3fr repeat(4, minmax(58px, 1fr));
    min-width: 520px;
  }

  .sa-trend-table {
    overflow-x: auto;
  }
}

/* Ranking and market pages */
.rk-main,
.mk-main {
  display: grid;
  gap: 22px;
}

.rk-hero,
.rk-table-card,
.mk-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

.rk-hero {
  padding: clamp(28px, 5vw, 52px);
}

.rk-hero h1 {
  margin: 8px 0;
  color: #f8fafc;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
}

.rk-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.rk-table-card,
.mk-card {
  padding: 20px;
}

.rk-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rk-table-head h2,
.mk-card h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 24px;
}

.rk-table-head span {
  color: #93c5fd;
  font-weight: 800;
}

.rk-table-note {
  max-width: 720px;
  margin: 6px 0 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.55;
}

.rk-table {
  display: grid;
  gap: 10px;
}

.rk-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1.3fr) 120px 130px minmax(220px, 1.4fr);
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rk-row:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(30, 41, 59, 0.92);
}

.rk-row.is-elite,
.rk-row.is-strong {
  border-color: rgba(255, 82, 82, 0.28);
  box-shadow: inset 3px 0 0 #ff5252;
}

.rk-row.is-risk {
  box-shadow: inset 3px 0 0 #00d26a;
}

.rk-rank {
  color: #93c5fd;
  font-size: 22px;
  font-weight: 950;
}

.rk-name b,
.rk-score b,
.rk-prob b {
  display: block;
  color: #f8fafc;
  font-size: 22px;
}

.rk-score b {
  color: #ffb4b4;
  font-size: 34px;
}

.rk-score-stack {
  display: grid;
  gap: 4px;
}

.rk-mini-score b {
  display: block;
  color: #f8fafc;
  font-size: 20px;
}

.rk-mini-score small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

.rk-name small,
.rk-score small,
.rk-prob small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.rk-ai {
  color: #cbd5e1;
  line-height: 1.55;
}

.rk-empty {
  padding: 24px;
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 8px;
}

.mk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.mk-wide {
  grid-column: span 1;
}

.mk-trend svg {
  display: block;
  width: 100%;
  min-height: 260px;
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.14), rgba(2, 6, 23, 0.92) 62%);
}

.mk-stats {
  display: grid;
  gap: 12px;
}

.mk-stats div,
.mk-inst div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.mk-stats span,
.mk-inst span {
  color: #94a3b8;
}

.mk-stats strong,
.mk-inst strong {
  color: #f8fafc;
  font-size: 24px;
}

.mk-inst {
  display: grid;
  gap: 10px;
}

.mk-inst p {
  margin: 6px 0 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.mk-updated {
  margin: -4px 0 12px;
  color: #93c5fd;
  font-weight: 850;
}

.mk-bars {
  display: grid;
  gap: 14px;
}

.mk-bars div {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  gap: 12px;
  align-items: center;
  color: #cbd5e1;
}

.mk-bars i {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5252, #fb923c);
}

.mk-bars .is-down i {
  background: linear-gradient(90deg, #00d26a, #22c55e);
}

.mk-trend-section {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.mk-chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}

.mk-chart-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  font-weight: 850;
  cursor: pointer;
}

.mk-chart-tabs button.is-active {
  border-color: rgba(56, 189, 248, 0.62);
  background: rgba(14, 165, 233, 0.18);
  color: #f8fafc;
}

.mk-trend-chart .rk-empty {
  margin-top: 10px;
}

.mk-dashboard {
  gap: 20px;
}

.mk-hero {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96)),
    #07111f;
}

.mk-index-grid--three,
.mk-trend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mk-index-card-v2 {
  display: grid;
  gap: 14px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.94));
}

.mk-index-card-v2 header,
.mk-card-head,
.mk-index-card-v2 footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mk-index-card-v2 header span,
.mk-card-head span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mk-index-card-v2 h2,
.mk-card-head h2 {
  margin: 4px 0 0;
  color: #f8fafc;
  font-size: 24px;
}

.mk-status-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #e2e8f0;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mk-status-badge.is-verified {
  border-color: rgba(148, 163, 184, 0.34);
  color: #f8fafc;
}

.mk-status-badge.is-snapshot,
.mk-status-badge.is-snapshot_only,
.mk-status-badge.is-partial,
.mk-status-badge.is-stale {
  border-color: rgba(251, 191, 36, 0.36);
  color: #fde68a;
}

.mk-status-badge.is-warning {
  border-color: rgba(249, 115, 22, 0.42);
  color: #fdba74;
}

.mk-status-badge.is-failed,
.mk-status-badge.is-missing,
.mk-status-badge.is-not_connected {
  border-color: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.mk-index-number strong {
  display: block;
  color: #f8fafc;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.mk-index-number b {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 18px;
}

.mk-index-card-v2.is-up .mk-index-number b,
.mk-trend-meta .is-up,
.mk-inst .is-up strong {
  color: #ff8a8a;
}

.mk-index-card-v2.is-down .mk-index-number b,
.mk-trend-meta .is-down,
.mk-inst .is-down strong {
  color: #2fd17c;
}

.mk-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mk-mini-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.58);
}

.mk-mini-grid span,
.mk-index-card-v2 footer,
.mk-trend-meta small {
  color: #94a3b8;
  font-size: 13px;
}

.mk-mini-grid strong {
  color: #f8fafc;
  font-size: 16px;
}

.mk-trend-card {
  min-width: 0;
}

.mk-trend-meta {
  display: grid;
  gap: 5px;
  margin: 14px 0 8px;
}

.mk-trend-meta strong {
  color: #f8fafc;
  font-size: 28px;
}

.mk-trend-meta span {
  font-weight: 900;
}

.mk-chart-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  margin-top: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  color: #e2e8f0;
  font-weight: 900;
  text-align: center;
}

.mk-chart-empty small {
  display: block;
  max-width: 260px;
  color: #94a3b8;
  font-weight: 700;
  line-height: 1.5;
}

.mk-market-lower {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.mk-market-read {
  color: #e2e8f0;
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .rk-row {
    grid-template-columns: 54px 1fr 92px;
  }

  .rk-prob,
  .rk-ai {
    grid-column: 2 / -1;
  }

  .mk-grid {
    grid-template-columns: 1fr;
  }

  .mk-index-grid--three,
  .mk-trend-grid {
    grid-template-columns: 1fr;
  }

  .mk-trend svg {
    min-height: 240px;
  }
}

/* Watchlist drag/drop and toast */
.wl-drop-zone {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 16px 18px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.94));
  color: #dbeafe;
  box-shadow: 0 20px 54px rgba(2, 6, 23, 0.5);
  opacity: 0.72;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.wl-drop-zone b {
  color: #f8fafc;
  font-size: 15px;
}

.wl-drop-zone span {
  color: #93c5fd;
  font-size: 13px;
}

body.is-watch-dragging .wl-drop-zone,
.wl-drop-zone.is-over {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255, 82, 82, 0.54);
  box-shadow: 0 0 0 1px rgba(255, 82, 82, 0.18), 0 26px 70px rgba(255, 82, 82, 0.18);
}

.wl-drop-zone.is-over {
  background: radial-gradient(circle at 50% 0%, rgba(255, 82, 82, 0.2), rgba(15, 23, 42, 0.98) 58%);
}

.wl-toast-stack {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 44px));
}

.wl-toast {
  padding: 13px 15px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.46);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.wl-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.wl-toast.is-error {
  border-color: rgba(0, 210, 106, 0.44);
}

.wl-toast.is-warn {
  border-color: rgba(251, 191, 36, 0.5);
}

.wl-login-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.wl-login-modal.is-open {
  display: grid;
}

.wl-login-modal__panel {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid rgba(214, 178, 94, 0.32);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(10, 16, 28, 0.98));
  color: #f8fafc;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.46);
}

.wl-login-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  cursor: pointer;
}

.wl-login-modal__eyebrow {
  margin: 0 0 8px;
  color: #d6b25e;
  font-size: 13px;
  letter-spacing: 0;
}

.wl-login-modal h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0;
}

.wl-login-modal p {
  color: #cbd5e1;
  line-height: 1.7;
}

.wl-login-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.wl-login-modal__actions a,
.wl-login-modal__actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(214, 178, 94, 0.42);
  text-decoration: none;
  cursor: pointer;
}

.wl-login-modal__actions a {
  background: #d6b25e;
  color: #08111f;
  font-weight: 800;
}

.wl-login-modal__actions button {
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
}

.wl-add-form {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  max-width: 560px;
}

.wl-add-form input {
  flex: 1;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.52);
  color: #f8fafc;
  padding: 0 14px;
  outline: none;
}

.wl-add-form button,
.wl-remove {
  min-height: 44px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #f8fafc;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.sl-search-error {
  display: block;
  margin: 8px 0 0;
  color: #fecaca;
  font-size: 13px;
  font-weight: 800;
}

.sl-updated-at {
  display: block;
  margin-top: 8px;
  color: #93c5fd !important;
  font-weight: 800;
}

.sl-heat-card.is-surge,
.sl-heat-card.is-rise {
  background: radial-gradient(circle at 30% 0%, rgba(255, 172, 92, 0.42), rgba(255, 45, 45, 0.32) 36%, rgba(127, 29, 29, 0.72) 100%) !important;
  border-color: rgba(255, 120, 72, 0.78) !important;
  box-shadow: 0 0 0 1px rgba(255, 82, 82, 0.28), 0 20px 48px rgba(255, 45, 45, 0.2) !important;
}

.sl-heat-card.is-surge {
  animation: heatPulse 2.2s ease-in-out infinite;
}

.sl-heat-card.is-fall {
  background: radial-gradient(circle at 30% 0%, rgba(34, 197, 94, 0.28), rgba(6, 78, 59, 0.72) 100%) !important;
  border-color: rgba(0, 210, 106, 0.5) !important;
}

.sl-heat-card em {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.14);
  color: #fff7ed;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

@keyframes heatPulse {
  0%, 100% { transform: translateY(0); filter: brightness(1); }
  50% { transform: translateY(-2px); filter: brightness(1.16); }
}

.wl-remove {
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}

.wl-row .rk-name {
  text-decoration: none;
}

.sa-data-notice {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.34), rgba(15, 23, 42, 0.94));
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.38);
}

.sa-data-notice h2 {
  margin: 0 0 6px;
  color: #fef3c7;
  font-size: 22px;
}

.sa-data-notice p,
.sa-data-notice small {
  margin: 0;
  color: #fde68a;
}

.sa-data-notice button {
  min-height: 44px;
  border: 1px solid rgba(251, 191, 36, 0.48);
  border-radius: 8px;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #111827;
  padding: 0 16px;
  font-weight: 950;
  cursor: pointer;
}

.sa-accuracy-panel {
  align-items: stretch;
}

.sa-accuracy-panel.is-complete {
  border-color: rgba(34, 197, 94, .4);
  background: linear-gradient(135deg, rgba(20, 83, 45, .3), rgba(15, 23, 42, .94));
}

.sa-accuracy-panel.is-complete h2,
.sa-accuracy-panel.is-complete p,
.sa-accuracy-panel.is-complete small {
  color: #bbf7d0;
}

.sa-accuracy-score {
  border-left: 1px solid rgba(251, 191, 36, .28);
  max-width: 48%;
  padding-left: 18px;
}

.sa-accuracy-score strong {
  color: #f8fafc;
  display: block;
  margin-bottom: 6px;
}

.sa-accuracy-score ul {
  color: #fecaca;
  margin: 8px 0 0;
  padding-left: 18px;
}

[data-watch-symbol] {
  cursor: grab;
}

[data-watch-symbol]:active {
  cursor: grabbing;
}

.sl-heat-entry,
.sl-watch-entry {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.sl-heat-entry-card,
.sl-image-drop-inline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  padding: 24px;
  color: #f8fafc;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(239, 68, 68, 0.2), transparent 34%);
  box-shadow: 0 22px 72px rgba(2, 6, 23, 0.34);
}

.sl-heat-entry-card strong,
.sl-image-drop-inline strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 950;
}

.sl-heat-entry-card p,
.sl-image-drop-inline p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.sl-heat-entry-card > span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
}

.sl-image-drop-inline {
  border-style: dashed;
  cursor: copy;
}

.sl-image-drop-inline.is-over {
  border-color: rgba(248, 113, 113, 0.72);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.18), 0 26px 80px rgba(239, 68, 68, 0.18);
}

.sa-watch-actions {
  align-self: start;
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.sa-watch-btn.is-added {
  background: rgba(15, 23, 42, 0.82);
  color: #bae6fd;
  box-shadow: none;
}

.sa-alert-picker {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.42);
  padding: 12px;
}

.sa-alert-toggle {
  min-height: 36px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: #dbeafe;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.sa-alert-picker label,
.wl-alert-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.45;
}

.sa-alert-picker input,
.wl-alert-settings input {
  accent-color: #38bdf8;
}

.sa-total-score-chip {
  min-width: 150px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.22);
  padding: 12px 14px;
  text-align: right;
}

.sa-total-score-chip span {
  display: block;
  color: #fecaca;
  font-size: 12px;
  font-weight: 900;
}

.sa-total-score-chip strong {
  display: block;
  color: #f8fafc;
  font-size: 26px;
  line-height: 1.1;
}

.sa-ai-line span {
  font-size: 16px;
  line-height: 1.7;
}

.sa-ai-line b {
  font-size: 18px;
  line-height: 1.5;
}

.wl-row {
  grid-template-columns: 72px minmax(180px, 1.2fr) 110px 120px auto;
}

.wl-row-actions {
  display: flex;
  justify-content: flex-end;
}

.wl-alert-settings,
.wl-alert-list,
.wl-alert-empty {
  grid-column: 2 / -1;
}

.wl-alert-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wl-alert-list {
  display: grid;
  gap: 10px;
}

.wl-alert {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  padding: 12px;
}

.wl-alert.is-good {
  border-color: rgba(248, 113, 113, 0.34);
}

.wl-alert.is-risk {
  border-color: rgba(34, 197, 94, 0.34);
}

.wl-alert b {
  color: #f8fafc;
}

.wl-alert span,
.wl-alert-empty {
  color: #cbd5e1;
  line-height: 1.65;
}

.wl-detect-panel {
  margin-top: 14px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.86);
  padding: 14px;
}

.wl-detect-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #f8fafc;
  margin-bottom: 12px;
}

.wl-detect-panel__head button,
.wl-detect-add {
  min-height: 38px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.76);
  color: #dbeafe;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.wl-detect-list {
  display: grid;
  gap: 8px;
}

.wl-detect-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 10px;
  color: #e2e8f0;
}

.wl-detect-list b,
.wl-detect-list small {
  display: block;
}

.wl-detect-list small {
  color: #94a3b8;
  margin-top: 3px;
}

.wl-detect-add {
  width: 100%;
  margin-top: 12px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
}

@media (max-width: 1180px) {
  .stock-analysis-page .sa-factor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .stock-analysis-page .sa-factor-grid,
  .wl-row {
    grid-template-columns: 1fr;
  }

  .wl-alert-settings,
  .wl-alert-list,
  .wl-alert-empty {
    grid-column: 1 / -1;
  }

  .sa-total-score-chip {
    width: 100%;
    text-align: left;
  }
}

.rk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.rk-tabs button {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  padding: 0 16px;
  font-weight: 950;
  cursor: pointer;
}

.rk-tabs button.is-active {
  border-color: rgba(56, 189, 248, 0.52);
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
}

.rk-table-card.is-hidden {
  display: none;
}

.rk-row .is-up b {
  color: #fca5a5;
}

.rk-row .is-down b {
  color: #86efac;
}

.hm-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}

.hm-toolbar div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-toolbar button {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  padding: 0 14px;
  font-weight: 950;
  cursor: pointer;
}

.hm-toolbar button.is-active,
#hmBack {
  border-color: rgba(56, 189, 248, 0.52);
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
}

.hm-toolbar span {
  color: #93c5fd;
  font-weight: 850;
}

.hm-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
}

.hm-treemap {
  min-height: 660px;
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  grid-auto-rows: minmax(34px, 1fr);
  grid-auto-flow: dense;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 5px;
  background: #020617;
  overflow: hidden;
}

.hm-tile {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  padding: 9px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.hm-tile:hover {
  z-index: 3;
  transform: scale(1.018);
  filter: brightness(1.12);
}

.hm-tile span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.hm-tile strong {
  font-size: 24px;
  line-height: 1;
}

.hm-tile small {
  color: rgba(248, 250, 252, 0.82);
  font-weight: 850;
}

.hm-tile.is-limit-up { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.hm-tile.is-up { background: linear-gradient(135deg, #f97316, #b91c1c); }
.hm-tile.is-flat { background: linear-gradient(135deg, #64748b, #334155); }
.hm-tile.is-down { background: linear-gradient(135deg, #14b8a6, #15803d); }
.hm-tile.is-limit-down { background: linear-gradient(135deg, #22c55e, #064e3b); }

.hm-tile.is-group span {
  font-size: 18px;
}

.hm-side {
  align-self: stretch;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
}

.hm-side h2 {
  margin: 0 0 8px;
  color: #f8fafc;
}

.hm-side p {
  color: #cbd5e1;
  line-height: 1.7;
}

.hm-page-v2 {
  --hm-paper: #f8fafc;
  --hm-ink: #0f172a;
  --hm-muted: #64748b;
  background: #f1f5f9;
  color: var(--hm-ink);
}

.hm-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 0 max(22px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.hm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hm-ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 950;
}

.hm-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #ef4444, #2563eb);
  color: #fff;
}

.hm-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hm-topbar nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 850;
}

.hm-shell {
  width: min(1440px, calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.hm-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 900;
}

.hm-hero-v2,
.hm-control-panel,
.hm-map-card,
.hm-notes article,
.hm-footer {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.hm-hero-v2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.hm-hero-v2 h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: 0;
}

.hm-hero-v2 p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.hm-live-card {
  display: grid;
  gap: 6px;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 14px;
  background: #f0f9ff;
}

.hm-live-card span {
  color: #0369a1;
  font-size: 12px;
  font-weight: 950;
}

.hm-live-card strong {
  color: #0f172a;
  font-size: 18px;
}

.hm-control-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
}

.hm-limit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-limit-tabs button,
.hm-filter-note button {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  padding: 0 15px;
  font-weight: 950;
  cursor: pointer;
}

.hm-limit-tabs button.is-active,
.hm-filter-note button {
  border-color: #ef4444;
  background: #fff1f2;
  color: #b91c1c;
}

.hm-filter-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hm-filter-note span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
}

.hm-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.hm-map-card {
  padding: 18px;
}

.hm-map-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.hm-map-head h2 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 26px;
}

.hm-map-head p {
  margin: 0;
  color: #64748b;
}

.hm-scale {
  display: grid;
  grid-template-columns: repeat(5, 54px);
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.hm-scale span {
  min-height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.hm-treemap-v2 {
  min-height: 720px;
  border-color: #cbd5e1;
  border-radius: 8px;
  background: #e2e8f0;
}

.hm-treemap-v2 .hm-tile {
  border-color: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.hm-treemap-v2 .hm-tile.is-group span {
  font-size: clamp(18px, 1.6vw, 28px);
}

.hm-treemap-v2 .hm-tile.is-group strong {
  font-size: clamp(28px, 3.8vw, 68px);
}

.hm-notes {
  display: grid;
  gap: 14px;
}

.hm-notes article {
  padding: 18px;
}

.hm-notes h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 19px;
}

.hm-notes p,
.hm-notes li {
  color: #475569;
  line-height: 1.75;
}

.hm-notes ul {
  margin: 0;
  padding-left: 20px;
}

.hm-footer {
  width: min(1440px, calc(100% - 44px));
  margin: 0 auto 32px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: #475569;
}

.hm-footer div {
  display: grid;
  gap: 4px;
}

.hm-footer strong {
  color: #0f172a;
}

.hm-footer nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hm-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 850;
}

.hm-scale .is-limit-up,
.hm-tile.is-limit-up { background: #b91c1c; }
.hm-scale .is-up,
.hm-tile.is-up { background: #ef4444; }
.hm-scale .is-flat,
.hm-tile.is-flat { background: #94a3b8; }
.hm-scale .is-down,
.hm-tile.is-down { background: #059669; }
.hm-scale .is-limit-down,
.hm-tile.is-limit-down { background: #065f46; }

.hm-debug,
.hm-scale-panel {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.hm-debug {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hm-debug div {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.hm-debug span {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.hm-debug strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 950;
}

.hm-scale-panel {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.hm-scale-panel span {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.hm-industries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.hm-industry-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.hm-industry-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 16px;
  background: #f8fafc;
}

.hm-industry-card h2 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 22px;
}

.hm-industry-card p {
  margin: 0;
  color: #64748b;
  font-weight: 850;
}

.hm-industry-map {
  min-height: 280px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(28px, 1fr);
  grid-auto-flow: dense;
  gap: 3px;
  padding: 5px;
  background: #e2e8f0;
}

.hm-stock-tile {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  padding: 7px;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hm-stock-tile:hover {
  z-index: 2;
  transform: scale(1.025);
  filter: brightness(1.08);
}

.hm-stock-tile b,
.hm-stock-tile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-stock-tile b {
  font-size: 14px;
  font-weight: 950;
}

.hm-stock-tile strong {
  font-size: 22px;
  line-height: 1;
}

.hm-stock-tile small {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 850;
}

.hm-empty-group {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 120px;
  color: #64748b;
  font-weight: 850;
}

.hm-scale-panel .is-limit-up,
.hm-stock-tile.is-limit-up { background: #7f1d1d; }
.hm-scale-panel .is-hot,
.hm-stock-tile.is-hot { background: #dc2626; }
.hm-scale-panel .is-up,
.hm-stock-tile.is-up { background: #fca5a5; color: #7f1d1d; }
.hm-scale-panel .is-flat,
.hm-stock-tile.is-flat { background: #94a3b8; }
.hm-scale-panel .is-down,
.hm-stock-tile.is-down { background: #86efac; color: #064e3b; }
.hm-scale-panel .is-cold,
.hm-stock-tile.is-cold { background: #16a34a; }
.hm-scale-panel .is-limit-down,
.hm-stock-tile.is-limit-down { background: #064e3b; }

.mk-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.mk-index-card-v2 {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: #128bf2;
  color: #fff;
  box-shadow: 0 22px 64px rgba(2, 6, 23, 0.28);
}

.mk-index-card-v2 header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 8px;
}

.mk-index-card-v2 header span,
.mk-index-card-v2 header small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.mk-index-card-v2 h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.mk-index-number {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  padding: 0 16px 10px;
}

.mk-index-number strong {
  font-size: 34px;
  line-height: 1;
}

.mk-index-number b {
  color: #fecaca;
}

.mk-index-card-v2.is-down .mk-index-number b {
  color: #86efac;
}

.mk-index-card-v2 svg {
  width: 100%;
  height: 230px;
  display: block;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 80px 100%,
    linear-gradient(0deg, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 100% 52px;
}

.mk-index-card-v2 footer {
  padding: 9px 14px 13px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .mk-index-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hm-debug,
  .hm-industries,
  .hm-scale-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .hm-hero-v2,
  .hm-dashboard {
    grid-template-columns: 1fr;
  }

  .hm-control-panel,
  .hm-map-head,
  .hm-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .hm-board {
    grid-template-columns: 1fr;
  }

  .hm-treemap {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.sl-heat-section--treemap {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96)),
    linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9)) !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.sl-heat-head {
  align-items: flex-end;
}

.sl-heat-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.sl-heat-meta b {
  color: #f8fafc;
  font-size: 16px;
}

.sl-heat-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0 14px;
  color: #cbd5e1;
}

.sl-heat-toolbar span,
.sl-heat-toolbar strong,
.sl-heat-toolbar a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 900;
}

.sl-heat-toolbar span {
  color: #93c5fd;
}

.sl-heat-toolbar a {
  margin-left: auto;
  border-color: rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
  text-decoration: none;
}

.sl-heat-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: stretch;
}

.sl-heat-treemap {
  min-height: 520px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(58px, 1fr);
  grid-auto-flow: dense;
  gap: 4px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 4px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9), 0 26px 72px rgba(0, 0, 0, 0.34);
}

.sl-heat-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  padding: 12px;
  color: #f8fafc;
  text-decoration: none;
  isolation: isolate;
  animation: heatTileIn 0.5s ease both;
  animation-delay: var(--tile-delay);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.sl-heat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%);
  opacity: 0.58;
}

.sl-heat-tile:hover {
  z-index: 3;
  transform: translateY(-2px) scale(1.012);
  filter: brightness(1.08);
}

.sl-heat-tile.is-limit-up,
.sl-heat-tile.is-hot {
  background: linear-gradient(135deg, #ff3b30 0%, #b91c1c 58%, #7f1d1d 100%);
  box-shadow: inset 0 0 0 1px rgba(254, 202, 202, 0.2), 0 0 26px rgba(239, 68, 68, 0.28);
}

.sl-heat-tile.is-up {
  background: linear-gradient(135deg, #f97316 0%, #dc2626 60%, #7f1d1d 100%);
}

.sl-heat-tile.is-flat {
  background: linear-gradient(135deg, #64748b 0%, #334155 62%, #1e293b 100%);
}

.sl-heat-tile.is-down {
  background: linear-gradient(135deg, #14b8a6 0%, #15803d 62%, #14532d 100%);
}

.sl-heat-tile.is-cold,
.sl-heat-tile.is-limit-down {
  background: linear-gradient(135deg, #22c55e 0%, #047857 55%, #064e3b 100%);
  box-shadow: inset 0 0 0 1px rgba(187, 247, 208, 0.16);
}

.sl-heat-tile.is-leader {
  border-color: rgba(254, 202, 202, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 34px rgba(255, 59, 48, 0.34);
  animation-name: heatTileIn, heatLeaderPulse;
  animation-duration: 0.5s, 2.4s;
  animation-delay: var(--tile-delay), 0.6s;
  animation-iteration-count: 1, infinite;
}

.sl-heat-tile__name {
  color: rgba(248, 250, 252, 0.92);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}

.sl-heat-tile__change {
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.sl-heat-tile.is-leader .sl-heat-tile__name {
  font-size: 28px;
}

.sl-heat-tile.is-leader .sl-heat-tile__change {
  font-size: 64px;
}

.sl-heat-tile:nth-child(n+9) .sl-heat-tile__change {
  font-size: 24px;
}

.sl-heat-tile:nth-child(n+13) .sl-heat-tile__name,
.sl-heat-tile:nth-child(n+13) em {
  display: none;
}

.sl-heat-tile small,
.sl-heat-tile em,
.sl-heat-tile b {
  color: rgba(248, 250, 252, 0.86);
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.sl-heat-tile em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-heat-tile b {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(2, 6, 23, 0.26);
  font-size: 12px;
}

.sl-heat-focus {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
}

.sl-heat-focus span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.sl-heat-focus strong {
  color: #f8fafc;
  font-size: 24px;
  line-height: 1.15;
}

.sl-heat-focus b {
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.sl-heat-focus b.is-down,
.sl-heat-focus b.is-cold,
.sl-heat-focus b.is-limit-down {
  color: #86efac;
}

.sl-heat-focus b.is-up,
.sl-heat-focus b.is-hot,
.sl-heat-focus b.is-limit-up {
  color: #fecaca;
}

.sl-heat-focus small {
  color: #cbd5e1;
  font-weight: 800;
}

.sl-heat-legend {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.sl-heat-legend span {
  min-height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.sl-heat-legend .is-limit-up,
.sl-heat-legend .is-hot {
  background: #b91c1c;
}

.sl-heat-legend .is-up {
  background: #f97316;
}

.sl-heat-legend .is-flat {
  background: #64748b;
}

.sl-heat-legend .is-down {
  background: #15803d;
}

.sl-heat-legend .is-cold,
.sl-heat-legend .is-limit-down {
  background: #064e3b;
}

@keyframes heatTileIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heatLeaderPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

@media (max-width: 980px) {
  .sl-heat-board {
    grid-template-columns: 1fr;
  }

  .sl-heat-treemap {
    min-height: 460px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .sl-heat-toolbar a {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .sl-heat-meta {
    justify-items: start;
  }

  .sl-heat-treemap {
    min-height: 520px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(66px, 1fr);
  }

  .sl-heat-tile {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
    padding: 10px;
  }

  .sl-heat-tile.is-leader {
    grid-column: span 4 !important;
  }

  .sl-heat-tile.is-leader .sl-heat-tile__name {
    font-size: 22px;
  }

  .sl-heat-tile.is-leader .sl-heat-tile__change {
    font-size: 46px;
  }

  .sl-heat-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* P57 stock HERO 2.0 */
.stock-analysis-page .sa-summary-v2 {
  grid-template-columns: minmax(250px, 1.08fr) minmax(230px, 1fr) minmax(230px, 1fr) !important;
  align-items: stretch;
  gap: 14px;
}

.stock-analysis-page .sa-hero-score-core {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 12px;
}

.stock-analysis-page .sa-summary-v2 .sa-score-big {
  min-height: clamp(118px, 14vw, 154px);
  padding: clamp(14px, 2vw, 22px);
}

.stock-analysis-page .sa-summary-v2 .sa-score-big strong {
  font-size: clamp(56px, 8.5vw, 96px) !important;
  line-height: 0.9;
}

.stock-analysis-page .sa-summary-v2 .sa-score-big span {
  font-size: clamp(14px, 1.8vw, 18px);
}

.stock-analysis-page .sa-score-change-stack {
  min-height: 150px;
  padding: 12px;
  gap: 6px;
}

.stock-analysis-page .sa-hero-change-reasons,
.stock-analysis-page .sa-hero-score-structure {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.64);
}

.stock-analysis-page .sa-hero-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.stock-analysis-page .sa-hero-panel-title span {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
}

.stock-analysis-page .sa-hero-panel-title strong {
  color: #86efac;
  font-size: 16px;
  white-space: nowrap;
}

.stock-analysis-page .sa-hero-change-reasons.is-negative .sa-hero-panel-title strong {
  color: #fca5a5;
}

.stock-analysis-page .sa-hero-score-route {
  margin: 14px 0 10px;
  color: #e2e8f0;
  font-size: 20px;
  font-weight: 900;
}

.stock-analysis-page .sa-hero-change-reasons ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stock-analysis-page .sa-hero-change-reasons li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.stock-analysis-page .sa-hero-change-reasons li span {
  color: #86efac;
  font-weight: 950;
}

.stock-analysis-page .sa-hero-change-reasons.is-negative li span {
  color: #fca5a5;
}

.stock-analysis-page .sa-hero-change-reasons li b {
  font-weight: 720;
  overflow-wrap: anywhere;
}

.stock-analysis-page .sa-hero-reason-empty {
  margin: 18px 0 0;
  color: #94a3b8;
  line-height: 1.6;
}

.stock-analysis-page .sa-score-structure-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.stock-analysis-page .sa-score-structure-row > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #cbd5e1;
  font-size: 13px;
}

.stock-analysis-page .sa-score-structure-row strong {
  color: #f8fafc;
}

.stock-analysis-page .sa-score-structure-row > i {
  display: block;
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.stock-analysis-page .sa-score-structure-row > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #38bdf8;
}

.stock-analysis-page .sa-hero-meta-row {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .stock-analysis-page .sa-summary-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .stock-analysis-page .sa-hero-score-structure {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .stock-analysis-page .sa-summary-v2 {
    grid-template-columns: 1fr !important;
  }

  .stock-analysis-page .sa-hero-score-structure {
    grid-column: auto;
  }

  .stock-analysis-page .sa-summary-v2 .sa-score-big {
    min-height: 116px;
  }

  .stock-analysis-page .sa-summary-v2 .sa-score-big strong {
    font-size: clamp(52px, 18vw, 72px) !important;
  }

  .stock-analysis-page .sa-score-change-stack {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .wl-drop-zone {
    right: 14px;
    bottom: 14px;
    min-width: 150px;
  }

  .wl-add-form {
    display: grid;
  }
}

.sa-module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}

.sa-module-meta span {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.62);
}

.sa-chip-panel {
  margin-top: 18px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
  padding: 22px;
}

.sa-chip-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.sa-chip-head h3 {
  margin: 4px 0 8px;
  color: #f8fafc;
  font-size: 28px;
  letter-spacing: 0;
}

.sa-chip-head p:last-child {
  color: #cbd5e1;
  line-height: 1.75;
  margin: 0;
}

.sa-chip-score {
  min-width: 154px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.42), rgba(15, 23, 42, 0.82));
  text-align: right;
}

.sa-chip-score strong {
  color: #fecaca;
  display: inline-block;
  font-size: 44px;
  line-height: 1;
}

.sa-chip-score span {
  color: #fca5a5;
  font-weight: 800;
  margin-left: 4px;
}

.sa-chip-score small {
  color: #94a3b8;
  display: block;
  margin-top: 8px;
}

.sa-chip-subgrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.sa-chip-sub {
  min-height: 164px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.76);
  padding: 14px;
}

.sa-chip-sub.is-strong,
.sa-chip-sub.is-positive {
  border-color: rgba(248, 113, 113, 0.42);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.28), rgba(15, 23, 42, 0.86));
}

.sa-chip-sub.is-weak,
.sa-chip-sub.is-negative {
  border-color: rgba(34, 197, 94, 0.34);
  background: linear-gradient(180deg, rgba(20, 83, 45, 0.26), rgba(15, 23, 42, 0.86));
}

.sa-chip-sub > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.sa-chip-sub span {
  color: #cbd5e1;
  font-size: 13px;
}

.sa-chip-sub strong {
  color: #f8fafc;
  font-size: 20px;
}

.sa-chip-sub b {
  color: #93c5fd;
  display: block;
  font-size: 13px;
  margin: 10px 0 8px;
}

.sa-chip-sub p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
  margin: 7px 0 0;
}

.sa-chip-reasons {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.sa-chip-reasons > div {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  padding: 14px;
}

.sa-chip-reasons b {
  color: #e2e8f0;
  display: block;
  margin-bottom: 10px;
}

.sa-chip-reasons span {
  color: #cbd5e1;
  display: block;
  line-height: 1.6;
  margin-top: 8px;
}

.sa-chip-reasons .is-plus {
  color: #fecaca;
}

.sa-chip-reasons .is-minus {
  color: #86efac;
}

.sl-feature-entry .sl-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sl-feature-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.9));
  color: #e2e8f0;
  display: grid;
  gap: 10px;
  padding: 20px;
  text-decoration: none;
}

.sl-feature-card h3 {
  color: #f8fafc;
  font-size: 20px;
  margin: 0;
}

.sl-feature-card p {
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
}

.sl-feature-card span {
  color: #93c5fd;
  font-weight: 800;
}

.hm-industries {
  contain: layout paint;
}

.hm-industry-card {
  min-height: 160px;
}

.hm-industry-map {
  grid-auto-flow: dense;
}

.hm-stock-tile {
  min-height: 54px;
  overflow: hidden;
}

.hm-stock-tile.is-flat {
  background: linear-gradient(135deg, #64748b, #334155);
  border-color: rgba(203, 213, 225, 0.28);
}

.mk-index-card-v2 svg {
  background: #0b1120;
  border-radius: 14px;
}

/* StockLab final brand and page refinements */
.sl-brand__logo,
.sa-brand__logo,
.hm-brand__logo,
.gs-brand__mark {
  width: auto;
  height: 52px;
  max-width: 190px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(216, 161, 44, 0.24));
}

.sl-brand,
.sa-brand,
.hm-brand {
  gap: 12px;
}

.sl-brand__logo.is-main {
  height: 58px;
  max-width: 220px;
}

@media (max-width: 720px) {
  .sl-brand__logo,
  .sa-brand__logo,
  .hm-brand__logo,
  .gs-brand__mark {
    height: 40px;
    max-width: 142px;
  }
}

.wl-inline-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(216, 161, 44, 0.38);
  border-radius: 8px;
  background: rgba(216, 161, 44, 0.12);
  color: #fde68a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  margin: 6px 0 0;
  padding: 0 10px;
  white-space: nowrap;
}

.wl-inline-add.is-added {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
  cursor: default;
}

.wl-inline-add.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.rk-row + .wl-inline-add,
.hm-stock-tile + .wl-inline-add,
.sl-stock-rank-card + .wl-inline-add,
.sl-live-card + .wl-inline-add {
  align-self: start;
  width: fit-content;
}

.wl-detect-result {
  display: grid;
  gap: 8px;
}

/* Brand system: official StockLab logo + readable text lockup. */
.brand-header .brand-lockup,
.sl-brand.brand-lockup,
.gs-brand.brand-lockup,
.sa-brand,
.hm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo,
.sl-brand__logo,
.sa-brand__logo,
.hm-brand__logo,
.gs-brand__mark {
  width: auto;
  height: 56px;
  max-width: 220px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 18px rgba(247, 215, 116, .22));
}

.brand-text {
  display: grid;
  gap: 3px;
  min-width: 132px;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  color: #f7d774;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
  letter-spacing: 0;
  margin-top: 2px;
}

.brand-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding: 20px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(226, 232, 240, .12);
  color: rgba(226, 232, 240, .76);
}

.brand-footer strong {
  color: #f7d774;
  font-size: 18px;
  letter-spacing: .04em;
}

.brand-footer span {
  font-size: 14px;
  line-height: 1.55;
}

.rk-hero,
.mk-hero,
.hm-hero-v2,
.brand-hero,
.sa-summary,
.score-panel,
.an-hero {
  position: relative;
  overflow: hidden;
}

.page-hero-brand-mark {
  position: absolute;
  right: clamp(-34px, 3vw, 38px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 21vw, 340px);
  opacity: .24;
  pointer-events: none;
  z-index: 0;
}

.page-hero-brand-mark img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(.9) drop-shadow(0 18px 42px rgba(0, 0, 0, .30));
}

.rk-hero > :not(.page-hero-brand-mark),
.mk-hero > :not(.page-hero-brand-mark),
.hm-hero-v2 > :not(.page-hero-brand-mark),
.brand-hero > :not(.page-hero-brand-mark),
.sa-summary > :not(.page-hero-brand-mark),
.score-panel > :not(.page-hero-brand-mark),
.an-hero > :not(.page-hero-brand-mark) {
  position: relative;
  z-index: 1;
}

.score-brand-mark {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: auto;
  opacity: .24;
  pointer-events: none;
  filter: none;
}

body.home-page .sl-header__inner {
  min-height: 82px;
  grid-template-columns: minmax(250px, auto) 1fr auto;
}

.hero-brand {
  text-align: left;
  padding-top: 56px;
}

.hero-brand__identity {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-logo {
  width: min(220px, 48vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(247, 215, 116, .28));
}

.hero-brand h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 950;
  color: #f7d774;
  letter-spacing: 0.1em;
  line-height: 1.02;
}

.hero-brand .hero-tagline {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 850;
  color: rgba(255, 255, 255, .88);
  line-height: 1.45;
}

.sl-value-grid .sl-value-card {
  background: rgba(15, 23, 42, .84);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 8px;
  padding: 22px;
}

.sl-value-card h3 {
  margin: 0 0 8px;
  color: #f7d774;
  font-size: 18px;
}

.sl-value-card p {
  margin: 0;
  color: rgba(226, 232, 240, .82);
  line-height: 1.75;
}

@media (max-width: 768px) {
  body.home-page .sl-header__inner {
    min-height: 68px;
    grid-template-columns: 1fr;
  }

  .brand-logo,
  .sl-brand__logo,
  .sa-brand__logo,
  .hm-brand__logo,
  .gs-brand__mark {
    content: none;
    height: 40px;
    max-width: 142px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    display: none;
  }

  .brand-footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 24px, 1180px);
  }

  .page-hero-brand-mark {
    right: -20px;
    top: 20px;
    transform: none;
    width: clamp(118px, 38vw, 180px);
    opacity: .16;
  }

  .score-brand-mark {
    width: 28px;
    right: 10px;
    top: 10px;
  }

  .hero-brand {
    text-align: center;
    padding: 38px 0 24px;
  }

  .hero-brand__identity {
    justify-items: center;
  }

  .hero-logo {
    width: 128px;
  }
}

.wl-detect-result p,
.wl-detect-result span {
  color: #dbeafe;
  line-height: 1.6;
  margin: 0;
}

.image-smart-uploader {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(247, 215, 116, .24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .82));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  padding: 18px;
}

.ocr-head b {
  color: #f7d774;
  display: block;
  font-size: 18px;
  font-weight: 950;
}

.ocr-head p,
.ocr-status,
.ocr-drop small,
.ocr-confirm small,
.ocr-debug p,
.ocr-manual label {
  color: rgba(226, 232, 240, .76);
  line-height: 1.65;
  margin: 4px 0 0;
}

.ocr-drop {
  align-items: center;
  border: 1px dashed rgba(247, 215, 116, .42);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 128px;
  padding: 20px;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ocr-drop input {
  display: none;
}

.ocr-drop span {
  color: #fff7d6;
  font-size: 16px;
  font-weight: 900;
}

.ocr-drop.is-over,
.image-smart-uploader.is-loading .ocr-drop {
  background: rgba(247, 215, 116, .08);
  border-color: rgba(247, 215, 116, .75);
}

.ocr-confirm,
.ocr-result-summary,
.ocr-empty {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(15, 23, 42, .72);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.ocr-confirm > b,
.ocr-result-summary b,
.ocr-empty b {
  color: #f8fafc;
}

.ocr-confirm-list {
  display: grid;
  gap: 8px;
}

.ocr-confirm-list label {
  align-items: center;
  background: rgba(2, 6, 23, .42);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 10px;
}

.ocr-confirm-list span {
  color: #f8fafc;
  font-weight: 900;
}

.ocr-actions,
.ocr-manual div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ocr-actions button,
.ocr-manual button {
  min-height: 38px;
  border: 1px solid rgba(247, 215, 116, .38);
  border-radius: 8px;
  background: rgba(247, 215, 116, .12);
  color: #fde68a;
  cursor: pointer;
  font-weight: 900;
  padding: 0 13px;
}

.ocr-manual {
  display: grid;
  gap: 8px;
}

.ocr-manual input {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 8px;
  background: rgba(2, 6, 23, .66);
  color: #fff;
  min-width: 220px;
  padding: 0 12px;
}

.ocr-result-summary {
  color: #dbeafe;
}

.ocr-result-summary p,
.ocr-result-summary span {
  margin: 0;
}

.ocr-debug {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(2, 6, 23, .54);
  color: #cbd5e1;
  padding: 12px;
}

.ocr-debug summary {
  color: #93c5fd;
  cursor: pointer;
  font-weight: 900;
}

.ocr-debug pre {
  background: rgba(0, 0, 0, .24);
  border-radius: 8px;
  color: #dbeafe;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.sa-image-ocr-slot {
  grid-column: 1 / -1;
}

/* StockLab brand-first homepage */
body.michelle-theme.home-page {
  --brand-bg: #050a12;
  --brand-ink: #f8fafc;
  --brand-muted: rgba(226, 232, 240, .72);
  --brand-gold: #f7d774;
  --brand-gold-2: #d8a12c;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 50% 12%, rgba(247, 215, 116, .16), transparent 24%),
    radial-gradient(circle at 8% 10%, rgba(39, 76, 119, .22), transparent 28%),
    linear-gradient(155deg, #030712 0%, #07111f 44%, #0b1322 100%) !important;
}

.brand-home {
  min-height: 100vh;
  overflow: hidden;
}

.brand-home-header {
  background: rgba(3, 7, 18, .72);
  border-bottom: 1px solid rgba(247, 215, 116, .14);
}

.brand-home-header .sl-header__inner {
  min-height: 82px;
  grid-template-columns: minmax(260px, auto) 1fr;
}

.brand-home-header .sl-nav {
  justify-content: flex-end;
}

.brand-main {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.brand-hero {
  position: relative;
  min-height: min(780px, calc(100vh - 82px));
  display: grid;
  place-items: center;
  padding: 72px 0 54px;
  text-align: center;
}

.brand-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  max-width: 860px;
}

.brand-hero__logo {
  width: min(240px, 48vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 30px rgba(247, 215, 116, .32));
}

.brand-hero h1 {
  margin: 0;
  color: var(--brand-gold);
  font-size: clamp(56px, 9vw, 118px);
  font-weight: 950;
  letter-spacing: .12em;
  line-height: .98;
  text-indent: .12em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.brand-hero__tagline {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.38;
}

.brand-hero__copy {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--brand-muted);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.85;
}

.brand-search-wrap {
  width: min(720px, 100%);
  margin-top: 30px;
}

.brand-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(247, 215, 116, .28);
  border-radius: 8px;
  background: rgba(2, 6, 23, .76);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .26);
}

.brand-search input {
  height: 52px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  outline: none;
  padding: 0 16px;
}

.brand-search input::placeholder {
  color: rgba(226, 232, 240, .58);
}

.brand-search button,
.brand-link-primary,
.brand-link-secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 950;
  padding: 0 20px;
}

.brand-search button,
.brand-link-primary {
  border: 1px solid rgba(247, 215, 116, .62);
  background: linear-gradient(135deg, #f7d774, #c98c22);
  color: #111827;
  cursor: pointer;
}

.brand-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.brand-link-secondary {
  border: 1px solid rgba(247, 215, 116, .28);
  background: rgba(247, 215, 116, .08);
  color: #f8e7a8;
}

.brand-hero__glow {
  position: absolute;
  inset: 8% 12% auto;
  height: 360px;
  background: radial-gradient(circle, rgba(247, 215, 116, .2), transparent 62%);
  pointer-events: none;
}

.brand-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .44;
}

.brand-lines span {
  position: absolute;
  display: block;
  height: 1px;
  width: min(520px, 60vw);
  background: linear-gradient(90deg, transparent, rgba(247, 215, 116, .42), transparent);
  transform: rotate(-18deg);
}

.brand-lines span:nth-child(1) { top: 22%; left: -8%; }
.brand-lines span:nth-child(2) { top: 48%; right: -10%; }
.brand-lines span:nth-child(3) { bottom: 18%; left: 18%; opacity: .55; }

.brand-section {
  padding: 42px 0;
}

.brand-card-grid,
.brand-step-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.brand-card,
.brand-step {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(15, 23, 42, .54);
  padding: 24px;
}

.brand-card h2,
.brand-step h3,
.brand-guide h2,
.brand-steps h2 {
  margin: 0;
  color: var(--brand-gold);
  font-weight: 950;
  letter-spacing: 0;
}

.brand-card p,
.brand-step p {
  margin: 10px 0 0;
  color: var(--brand-muted);
  font-size: 16px;
  line-height: 1.75;
}

.brand-steps,
.brand-guide {
  text-align: center;
}

.brand-steps h2,
.brand-guide h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 18px;
}

.brand-step span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(247, 215, 116, .14);
  color: var(--brand-gold);
  font-weight: 950;
  margin-bottom: 12px;
}

.brand-guide-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.brand-guide-list a {
  color: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(247, 215, 116, .28);
  padding: 8px 0;
}

.brand-guide-list strong {
  color: var(--brand-gold);
}

@media (max-width: 768px) {
  .brand-home-header .sl-header__inner {
    min-height: 68px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brand-home-header .sl-nav {
    justify-content: flex-start;
  }

  .brand-main {
    width: min(100% - 28px, 720px);
  }

  .brand-hero {
    min-height: auto;
    padding: 50px 0 34px;
  }

  .brand-hero__logo {
    width: 132px;
  }

  .brand-hero h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .brand-search {
    grid-template-columns: 1fr;
  }

  .brand-card-grid,
  .brand-step-row {
    grid-template-columns: 1fr;
  }

  .brand-section {
    padding: 28px 0;
  }
}

.wl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.wl-toolbar button {
  min-height: 40px;
  border: 1px solid rgba(216, 161, 44, 0.34);
  border-radius: 8px;
  background: rgba(216, 161, 44, 0.1);
  color: #f8e4a5;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.wl-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.wl-summary-grid article {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.92));
  padding: 16px;
}

.wl-summary-grid span {
  color: #94a3b8;
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.wl-summary-grid strong {
  color: #f8fafc;
  display: block;
  font-size: 30px;
  margin-top: 6px;
}

.watchlist-page .wl-row {
  grid-template-columns: 52px minmax(190px, 1.45fr) 96px 100px 92px 100px 120px 120px minmax(140px, 1fr) 76px;
  align-items: center;
}

.wl-price b,
.wl-change b,
.wl-chip b,
.wl-risk b {
  display: block;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 950;
}

.wl-price small,
.wl-change small,
.wl-chip small,
.wl-risk small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 4px;
}

.wl-change.is-up b {
  color: #ff8b8b;
}

.wl-change.is-down b {
  color: #7ee6a8;
}

.wl-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wl-tag-list span {
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 850;
  padding: 5px 8px;
}

.hm-page-v2 {
  --hm-bg: #07111f;
  --hm-panel: rgba(15, 23, 42, 0.94);
  background: radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.12), transparent 38%), #07111f;
  color: #e5edf7;
}

.hm-topbar,
.hm-hero-v2,
.hm-control-panel,
.hm-debug,
.hm-scale-panel,
.hm-industry-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.94)) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  color: #e5edf7 !important;
}

.hm-topbar nav a,
.hm-hero-v2 p,
.hm-industry-card p,
.hm-filter-note span {
  color: #cbd5e1 !important;
}

.hm-stock-tile {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hm-stock-tile:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(255, 244, 184, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 244, 184, 0.28), 0 18px 34px rgba(0, 0, 0, 0.34);
  z-index: 2;
}

.hm-scale-panel .is-limit-up,
.hm-stock-tile.is-limit-up { background: linear-gradient(135deg, #ff3b3b, #991b1b) !important; }
.hm-scale-panel .is-hot,
.hm-stock-tile.is-hot { background: linear-gradient(135deg, #ef4444, #b91c1c) !important; }
.hm-scale-panel .is-up,
.hm-stock-tile.is-up { background: linear-gradient(135deg, #fb8a8a, #dc2626) !important; color: #fff !important; }
.hm-scale-panel .is-flat,
.hm-stock-tile.is-flat { background: linear-gradient(135deg, #64748b, #334155) !important; color: #f8fafc !important; }
.hm-scale-panel .is-down,
.hm-stock-tile.is-down { background: linear-gradient(135deg, #86efac, #16a34a) !important; color: #052e16 !important; text-shadow: none; }
.hm-scale-panel .is-cold,
.hm-stock-tile.is-cold { background: linear-gradient(135deg, #22c55e, #047857) !important; }
.hm-scale-panel .is-limit-down,
.hm-stock-tile.is-limit-down { background: linear-gradient(135deg, #4ade80, #065f46) !important; }

.hm-stock-tile b {
  font-size: clamp(13px, 1.15vw, 18px);
  color: inherit !important;
}

.hm-stock-tile strong {
  color: inherit !important;
  font-size: clamp(18px, 2vw, 32px);
}

/* Heatmap phase 2: professional market map, TW red-up/green-down scale. */
.hm-page-v2 .hm-shell {
  width: min(1500px, calc(100% - 36px));
}

.hm-page-v2 .hm-hero-v2 {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(2, 6, 23, 0.96)),
    #07111f !important;
  box-shadow: none !important;
}

.hm-page-v2 .hm-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.13), transparent 34%),
    linear-gradient(270deg, rgba(34, 197, 94, 0.10), transparent 38%);
}

.hm-page-v2 .hm-hero-v2 > * {
  position: relative;
  z-index: 1;
}

.hm-page-v2 .hm-hero-v2 .sa-eyebrow {
  display: none;
}

.hm-page-v2 .hm-hero-v2 h1 {
  color: #f8fafc;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
}

.hm-page-v2 .hm-hero-v2 p {
  max-width: 620px;
  color: #dbeafe !important;
  font-size: 18px;
}

.hm-page-v2 .hm-live-card {
  align-self: stretch;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: none;
}

.hm-page-v2 .hm-live-card span,
.hm-page-v2 .hm-live-card small {
  color: #bae6fd;
  font-weight: 850;
}

.hm-page-v2 .hm-live-card small {
  line-height: 1.5;
}

.hm-page-v2 .hm-live-card strong {
  color: #fff7ed;
}

.hm-page-v2 .hm-control-panel {
  align-items: stretch;
  box-shadow: none !important;
}

.hm-page-v2 .hm-filter-note {
  justify-content: flex-start;
  flex: 1;
}

.hm-load-more {
  min-height: 42px;
  border: 1px solid rgba(248, 113, 113, 0.5);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.34);
  color: #fee2e2;
  padding: 0 16px;
  font-weight: 950;
  cursor: pointer;
}

.hm-load-more:disabled {
  cursor: default;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(71, 85, 105, 0.32);
  color: #cbd5e1;
}

.hm-page-v2 .hm-scale-panel {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  box-shadow: none !important;
}

.hm-page-v2 .hm-scale-panel span {
  min-height: 38px;
  padding: 4px 8px;
  text-align: center;
}

.hm-page-v2 .hm-industries {
  align-items: start;
}

.hm-page-v2 .hm-industry-card {
  content-visibility: auto;
  contain-intrinsic-size: 460px;
  box-shadow: none !important;
}

.hm-page-v2 .hm-industry-map {
  background: rgba(15, 23, 42, 0.92);
}

.hm-page-v2 .hm-stock-tile {
  box-shadow: none;
  transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
}

.hm-page-v2 .hm-stock-tile:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.hm-page-v2 .hm-stock-tile.is-limit-up,
.hm-page-v2 .hm-scale-panel .is-limit-up {
  background: linear-gradient(135deg, #ef1f1f, #8f1414) !important;
  color: #fff !important;
}

.hm-page-v2 .hm-stock-tile.is-hot,
.hm-page-v2 .hm-scale-panel .is-hot {
  background: linear-gradient(135deg, #f24a4a, #c91f1f) !important;
  color: #fff !important;
}

.hm-page-v2 .hm-stock-tile.is-up,
.hm-page-v2 .hm-scale-panel .is-up {
  background: linear-gradient(135deg, #ff9f9f, #e24646) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(69, 10, 10, 0.45);
}

.hm-page-v2 .hm-stock-tile.is-flat,
.hm-page-v2 .hm-scale-panel .is-flat {
  background: linear-gradient(135deg, #8996a8, #475569) !important;
  color: #f8fafc !important;
}

.hm-page-v2 .hm-stock-tile.is-down,
.hm-page-v2 .hm-scale-panel .is-down {
  background: linear-gradient(135deg, #b5f4ca, #39c86e) !important;
  color: #052e16 !important;
  text-shadow: none;
}

.hm-page-v2 .hm-stock-tile.is-cold,
.hm-page-v2 .hm-scale-panel .is-cold {
  background: linear-gradient(135deg, #37d86f, #118342) !important;
  color: #052e16 !important;
  text-shadow: none;
}

.hm-page-v2 .hm-stock-tile.is-limit-down,
.hm-page-v2 .hm-scale-panel .is-limit-down {
  background: linear-gradient(135deg, #13a34a, #055f2d) !important;
  color: #f0fdf4 !important;
}

.hm-page-v2 .hm-stock-tile.is-missing,
.hm-page-v2 .hm-scale-panel .is-missing {
  background: rgba(100, 116, 139, 0.62) !important;
  color: #e2e8f0 !important;
  text-shadow: none;
}

.hm-page-v2 .hm-stock-tile.is-missing strong {
  font-size: clamp(13px, 1.3vw, 18px);
}

.hm-sentinel {
  min-height: 1px;
}

/* Ranking credibility strip. */
.rk-data-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rk-data-status span {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 850;
  padding: 7px 11px;
}

/* Heatmap brand and tile actions. */
.hm-page-v2 .hm-brand {
  min-width: 0;
  gap: 12px;
}

.hm-page-v2 .hm-brand-mark {
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  place-items: initial !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  flex: 0 0 auto;
}

.hm-page-v2 .hm-brand .brand-text,
.hm-page-v2 .hm-brand .brand-name,
.hm-page-v2 .hm-brand .brand-tagline {
  width: auto !important;
  height: auto !important;
  display: block !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  white-space: nowrap;
}

.hm-page-v2 .hm-brand .brand-name {
  color: #f8fafc !important;
  font-size: 20px;
  line-height: 1.1;
}

.hm-page-v2 .hm-brand .brand-tagline {
  margin-top: 2px;
  color: #94a3b8 !important;
  font-size: 12px;
  font-weight: 750;
}

.hm-page-v2 .hm-stock-tile {
  position: relative;
  cursor: pointer;
}

.hm-tile-menu {
  position: absolute;
  inset: auto 6px 6px 6px;
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(2, 6, 23, 0.88);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.hm-stock-tile:hover .hm-tile-menu,
.hm-stock-tile:focus-within .hm-tile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hm-tile-menu span,
.hm-tile-menu small {
  min-width: 0;
  color: #e5edf7 !important;
}

.hm-tile-menu a,
.hm-tile-menu button,
.hm-sheet a,
.hm-sheet button {
  min-height: 34px;
  border: 1px solid rgba(216, 161, 44, 0.44);
  border-radius: 7px;
  background: rgba(216, 161, 44, 0.16);
  color: #fde68a;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  padding: 7px 10px;
}

.hm-tile-menu a,
.hm-sheet a {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.22);
  color: #dbeafe;
}

.hm-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-end;
  background: rgba(2, 6, 23, 0.55);
}

.hm-sheet.is-open {
  display: flex;
}

.hm-sheet__panel {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px 16px 0 0;
  background: #0f172a;
  padding: 18px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}

.hm-sheet__panel h2 {
  margin: 0 0 10px;
  color: #f8fafc;
}

.hm-sheet__panel p {
  margin: 0 0 8px;
}

.hm-sheet__close {
  float: right;
  min-height: 30px !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(30, 41, 59, 0.7) !important;
  color: #e2e8f0 !important;
}

@media (hover: none), (max-width: 760px) {
  .hm-tile-menu {
    display: none;
  }
}

@media (max-width: 720px) {
  .hm-page-v2 .hm-topbar {
    align-items: flex-start;
  }

  .hm-page-v2 .hm-brand {
    align-items: center;
    width: 100%;
  }

  .hm-page-v2 .hm-brand .brand-name {
    font-size: 18px;
  }
}

.mk-index-card-v2 {
  border-radius: 8px !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92)) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28) !important;
}

.mk-index-card-v2 svg {
  background: #0b1120 !important;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: none !important;
}

.mk-index-card-v2 .mk-index-number b {
  color: #ff9c9c;
}

.mk-index-card-v2.is-down .mk-index-number b {
  color: #86efac;
}

@media (max-width: 1180px) {
  .wl-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watchlist-page .wl-row {
    grid-template-columns: 52px minmax(190px, 1fr) 92px 96px;
  }

  .wl-chip,
  .wl-risk,
  .wl-tag-list,
  .wl-alert-settings,
  .wl-alert-list,
  .wl-alert-empty {
    grid-column: 2 / -1;
  }
}

@media (max-width: 720px) {
  .wl-summary-grid,
  .watchlist-page .wl-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .sa-chip-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-chip-reasons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .sa-chip-head {
    grid-template-columns: 1fr;
  }

  .sa-chip-score {
    text-align: left;
  }

  .sa-chip-subgrid {
    grid-template-columns: 1fr;
  }

  .sl-feature-entry .sl-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Targeted polish: professional stock chart and brand floating CTA */
body.michelle-theme {
  scroll-behavior: auto;
}

.brand-hero__glow {
  opacity: .34 !important;
  filter: none !important;
}

.brand-lines span {
  animation: none !important;
}

.brand-card,
.brand-step,
.stock-analysis-page .sa-chart-card,
.sa-research-panel {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24) !important;
}

.brand-floating-cta {
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .34), 0 0 18px rgba(247, 215, 116, .08) !important;
}

.brand-floating-cta a {
  transition: transform .15s ease, border-color .15s ease, background .15s ease !important;
}

.brand-floating-cta a:hover {
  box-shadow: none !important;
}

.brand-hero__logo {
  animation: none !important;
}

.stock-analysis-page .sa-chart-stack {
  gap: 10px;
}

.stock-analysis-page .sa-chart.kd,
.stock-analysis-page .sa-chart.macd,
.stock-analysis-page .sa-chart.rsi {
  display: none !important;
}

.stock-analysis-page .sa-chart-readout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.stock-analysis-page .sa-chart-readout article {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(15, 23, 42, .72);
  padding: 16px;
}

.stock-analysis-page .sa-chart-readout h3 {
  margin: 0 0 10px;
  color: #f7d774;
  font-size: 16px;
  font-weight: 800;
}

.stock-analysis-page .sa-chart-readout p {
  margin: 6px 0;
  color: rgba(255, 255, 255, .84);
  font-size: 15px;
  line-height: 1.65;
}

.sa-research-panel {
  margin-top: 24px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 12px;
  background: rgba(8, 13, 26, .86);
  padding: 22px;
}

.sa-quality-panel {
  margin-top: 24px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 12px;
  background: rgba(8, 13, 26, .88);
  padding: 22px;
}

.sa-quality-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.sa-quality-head h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 24px;
}

.sa-quality-head p,
.sa-quality-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.7;
}

.sa-quality-subtitle {
  margin-top: 12px;
}

.sa-quality-update {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  white-space: nowrap;
}

.sa-quality-update span {
  color: #f7d774;
  font-weight: 800;
}

.sa-quality-update small {
  color: #fbbf24;
}

.sa-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sa-quality-card {
  min-height: 184px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .72);
  padding: 15px;
}

.sa-quality-card.is-green { border-left-color: #34d399; }
.sa-quality-card.is-yellow { border-left-color: #f7d774; }
.sa-quality-card.is-orange { border-left-color: #fb923c; }
.sa-quality-card.is-red { border-left-color: #f87171; }
.sa-quality-card.is-blue { border-left-color: #38bdf8; }
.sa-quality-card.is-gray { border-left-color: #94a3b8; }

.sa-quality-card__label {
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
  font-weight: 700;
}

.sa-quality-card strong {
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
}

.sa-quality-card b {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #0b1120;
  background: #94a3b8;
  font-size: 12px;
}

.sa-quality-card.is-green b { background: #34d399; }
.sa-quality-card.is-yellow b { background: #f7d774; }
.sa-quality-card.is-orange b { background: #fb923c; }
.sa-quality-card.is-red b { background: #f87171; }
.sa-quality-card.is-blue b { background: #38bdf8; }

.sa-quality-card p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.6;
}

.sa-research-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.sa-research-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 24px;
}

.sa-research-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(255, 255, 255, .72);
}

.sa-research-score strong {
  color: #f7d774;
  font-size: 44px;
  line-height: 1;
}

.sa-research-explain {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .86);
  font-size: 17px;
  line-height: 1.75;
}

.sa-model-explain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.sa-model-explain article {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(15, 23, 42, .54);
  padding: 14px;
}

.sa-model-explain h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 16px;
}

.sa-model-explain p,
.sa-model-explain li {
  color: rgba(226, 232, 240, .84);
  line-height: 1.7;
  margin: 0;
}

.sa-model-explain ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.sa-research-grid {
  display: grid;
  grid-template-columns: .9fr .9fr 1.4fr;
  gap: 12px;
}

.sa-research-grid article,
.sa-alert-summary article {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(15, 23, 42, .72);
  padding: 15px;
}

.sa-research-grid h3 {
  margin: 0 0 10px;
  color: #f7d774;
  font-size: 15px;
}

.sa-research-grid p {
  margin: 7px 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.55;
}

.sa-module-bars {
  display: grid;
  gap: 10px;
}

.sa-module-bar {
  display: grid;
  grid-template-columns: 88px 72px 1fr;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.sa-module-bar b {
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.sa-module-bar i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(148, 163, 184, .2);
}

.sa-module-bar em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #f7d774);
}

.sa-alert-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.sa-alert-summary article {
  color: rgba(255, 255, 255, .84);
  line-height: 1.65;
}

.sa-alert-summary .is-risk {
  border-color: rgba(248, 113, 113, .28);
}

.sa-alert-summary .is-strength {
  border-color: rgba(52, 211, 153, .28);
}

.brand-home.has-floating-cta {
  padding-bottom: 112px;
}

.brand-hero__logo {
  width: min(340px, 52vw) !important;
  max-height: none;
  animation: stocklabLogoFloat 5.8s ease-in-out infinite;
  filter: drop-shadow(0 0 32px rgba(247, 215, 116, .34));
}

.brand-hero h1 {
  font-size: clamp(56px, 8vw, 104px) !important;
  letter-spacing: .12em;
}

.brand-hero__tagline {
  font-size: clamp(22px, 3vw, 34px) !important;
  font-weight: 800;
}

.brand-floating-cta {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 10px;
  width: min(760px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(247, 215, 116, .36);
  border-radius: 18px;
  background: rgba(3, 7, 18, .86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42), 0 0 34px rgba(247, 215, 116, .12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  animation: stocklabCtaIn .55s ease both;
}

.brand-floating-cta a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon label"
    "icon helper";
  align-items: center;
  column-gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 215, 116, .28);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(247, 215, 116, .14), rgba(15, 23, 42, .76));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.brand-floating-cta a:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 215, 116, .72);
  box-shadow: 0 0 24px rgba(247, 215, 116, .18);
  background: linear-gradient(135deg, rgba(247, 215, 116, .22), rgba(15, 23, 42, .86));
}

.brand-floating-cta__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #0b1120;
  background: #f7d774;
  font-size: 12px;
  font-weight: 900;
}

.brand-floating-cta strong {
  grid-area: label;
  font-size: 17px;
  font-weight: 900;
}

.brand-floating-cta small {
  grid-area: helper;
  margin-top: 2px;
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
}

@keyframes stocklabLogoFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 28px rgba(247, 215, 116, .28)); }
  50% { transform: translateY(-6px); filter: drop-shadow(0 0 42px rgba(247, 215, 116, .42)); }
}

@keyframes stocklabCtaIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 768px) {
  .stock-analysis-page .sa-chart-readout {
    grid-template-columns: 1fr;
  }

  .sa-research-head,
  .sa-research-grid,
  .sa-quality-head,
  .sa-alert-summary {
    grid-template-columns: 1fr;
  }

  .sa-quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-quality-update {
    justify-items: start;
    white-space: normal;
  }

  .sa-research-head {
    display: block;
  }

  .brand-home.has-floating-cta {
    padding-bottom: 104px;
  }

  .brand-hero__logo {
    width: min(190px, 58vw) !important;
  }

  .brand-floating-cta {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    transform: none;
  }

  .brand-floating-cta a {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "label";
    justify-items: center;
    min-height: 58px;
    padding: 8px 4px;
  }

  .brand-floating-cta__icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .brand-floating-cta strong {
    font-size: 14px;
  }

  .brand-floating-cta small {
    display: none;
  }
}

@media (max-width: 560px) {
  .sa-quality-grid {
    grid-template-columns: 1fr;
  }
}

.admin-analytics-page {
  background: #050816;
}

.an-dash {
  display: grid;
  gap: 20px;
}

.an-hero,
.an-card,
.an-kpis article {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
  background: rgba(8, 13, 26, .88);
}

.an-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 24px;
}

.an-hero h1 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 34px;
}

.an-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.an-hero label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.an-hero select {
  min-width: 150px;
  border: 1px solid rgba(247, 215, 116, .32);
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  padding: 10px 12px;
}

.an-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.an-kpis article {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 16px;
}

.an-kpis span,
.an-card-head span {
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.an-kpis strong {
  color: #f7d774;
  font-size: 30px;
  line-height: 1;
}

.an-kpis small {
  color: rgba(255, 255, 255, .68);
}

.an-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.an-card {
  padding: 18px;
}

.an-card--wide {
  grid-column: 1 / -1;
}

.an-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.an-card h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.an-bars,
.an-table {
  display: grid;
  gap: 10px;
}

.an-bar,
.an-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, .82);
}

.an-bar {
  grid-template-columns: 100px 64px minmax(0, 1fr);
}

.an-bar b,
.an-row span:last-child {
  color: #f7d774;
  font-weight: 800;
}

.an-bar i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .18);
}

.an-bar em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #f7d774);
}

.an-table .an-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  padding-bottom: 8px;
}

.an-table--locations .an-row,
.an-location-row {
  grid-template-columns: minmax(220px, 1fr) repeat(4, auto);
}

.an-location-row b {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.an-location-row small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
}

.an-heat {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px),
    rgba(15, 23, 42, .52);
  background-size: 40px 40px;
}

.an-heat span {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 215, 116, .9), rgba(248, 113, 113, .45) 48%, transparent 72%);
  transform: translate(-50%, -50%);
}

.an-empty {
  margin: 0;
  color: rgba(255, 255, 255, .6);
}

.insights-dash {
  max-width: 1440px;
}

.insights-kpis {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.insights-kpis article {
  min-height: 136px;
}

.insight-note {
  margin: -4px 0 14px;
  color: rgba(226, 232, 240, .72);
  font-size: 14px;
  line-height: 1.6;
}

.insights-table .an-row {
  grid-template-columns: 34px minmax(0, 1.4fr) repeat(3, minmax(96px, auto));
  align-items: start;
}

.insights-table .an-row .rank {
  color: rgba(247, 215, 116, .92);
  font-weight: 900;
}

.insight-metrics {
  display: grid;
  gap: 10px;
}

.insight-metric {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(15, 23, 42, .46);
  padding: 12px;
}

.insight-metric span {
  color: rgba(226, 232, 240, .72);
  font-size: 13px;
}

.insight-metric strong {
  color: #f7d774;
  font-size: 24px;
}

.insight-metric small {
  color: rgba(226, 232, 240, .58);
  line-height: 1.45;
}

.an-bar {
  grid-template-columns: 92px 104px minmax(0, 1fr);
}

.an-bar small {
  grid-column: 1 / -1;
  color: rgba(226, 232, 240, .58);
}

.admin-primary-link,
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(247, 215, 116, .28);
  border-radius: 8px;
  background: rgba(15, 23, 42, .9);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.admin-primary-link,
.admin-btn:hover {
  border-color: rgba(247, 215, 116, .72);
  background: rgba(247, 215, 116, .16);
}

.admin-primary-link:hover,
.admin-btn:hover {
  transform: translateY(-1px);
}

.admin-btn:disabled {
  cursor: wait;
  opacity: .6;
  transform: none;
}

.admin-status-box {
  min-height: 260px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(3, 7, 18, .72);
  color: rgba(255, 255, 255, .82);
  padding: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.admin-job-center .an-card-head {
  align-items: flex-start;
}

.admin-pipeline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.admin-input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  min-height: 42px;
  min-width: min(280px, 100%);
  padding: 0 12px;
}

.admin-btn-primary {
  background: #166534;
  border-color: #166534;
  color: #fff;
}

.admin-lock-state {
  color: #475569;
  font-size: 14px;
}

.admin-lock-state.is-ready {
  color: #166534;
}

.admin-lock-state.is-running,
.admin-lock-state.is-error {
  color: #b45309;
}

.admin-job-table {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.admin-job-row {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, 1.5fr) minmax(155px, 1.1fr) minmax(150px, 1fr) minmax(120px, .9fr) 80px;
  padding: 11px 14px;
}

.admin-job-row:last-child {
  border-bottom: 0;
}

.admin-job-row.is-head {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.admin-job-row strong,
.admin-job-row small {
  display: block;
}

.admin-job-row small {
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
}

.admin-job-row small.is-error {
  color: #b91c1c;
}

.job-status {
  border-radius: 4px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
}

.job-status.is-success {
  background: #dcfce7;
  color: #166534;
}

.job-status.is-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.job-status.is-warning,
.job-status.is-running,
.job-status.is-queued {
  background: #fef3c7;
  color: #b45309;
}

.job-status.is-never_run,
.job-status.is-disabled,
.job-status.is-skipped {
  background: #f1f5f9;
  color: #475569;
}

.admin-mini-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #334155;
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  margin-top: 5px;
  padding: 4px 8px;
}

.admin-mini-btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.admin-job-log {
  margin-top: 16px;
  max-height: 280px;
}

.nightly-update-progress-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nightly-update-progress-item {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(3, 7, 18, .52);
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
}

.nightly-update-progress-item span { color: rgba(255, 255, 255, .62); font-size: 12px; }
.nightly-update-progress-item strong { color: rgba(255, 255, 255, .94); line-height: 1.5; }
.nightly-update-progress-item.is-success strong { color: #86efac; }
.nightly-update-progress-item.is-warning strong,
.nightly-update-progress-item.is-running strong,
.nightly-update-progress-item.is-waiting strong { color: #fcd34d; }
.nightly-update-progress-item.is-failed strong { color: #fca5a5; }

@media (max-width: 860px) {
  .nightly-update-progress-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .admin-job-table {
    overflow-x: auto;
  }

  .admin-job-row {
    min-width: 700px;
  }
}

.upsurge-validation-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.upsurge-validation-kpis article {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(15, 23, 42, .64);
  display: grid;
  gap: 6px;
}

.upsurge-validation-kpis span {
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
}

.upsurge-validation-kpis strong {
  color: #f7d774;
  font-size: 22px;
}

.upsurge-validation-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 215, 116, .22);
  border-radius: 8px;
  color: rgba(255, 255, 255, .84);
  background: rgba(247, 215, 116, .07);
}

.upsurge-validation-alert.is-blocked,
.upsurge-validation-alert.is-warning {
  border-color: rgba(248, 113, 113, .36);
  background: rgba(127, 29, 29, .2);
  color: #fecaca;
}

.upsurge-validation-alert.is-success {
  border-color: rgba(52, 211, 153, .3);
  background: rgba(6, 78, 59, .2);
  color: #a7f3d0;
}

.upsurge-validation-table {
  display: grid;
  gap: 6px;
}

.upsurge-validation-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.5fr) repeat(4, minmax(88px, 1fr));
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .5);
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.upsurge-validation-row span:first-child {
  display: grid;
  gap: 2px;
}

.upsurge-validation-row small {
  color: rgba(255, 255, 255, .52);
}

.upsurge-validation-row.is-head {
  background: transparent;
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
}

.upsurge-validation-row.is-pass {
  border-left: 3px solid #34d399;
}

.upsurge-validation-row.is-fail {
  border-left: 3px solid #f87171;
}

.upsurge-validation-empty {
  margin: 0;
  color: rgba(255, 255, 255, .62);
}

@media (max-width: 900px) {
  .upsurge-validation-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upsurge-validation-row {
    grid-template-columns: minmax(135px, 1.5fr) repeat(4, minmax(84px, 1fr));
    min-width: 620px;
  }

  .upsurge-validation-table {
    overflow-x: auto;
  }
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-action-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
  background: rgba(8, 13, 26, .88);
  padding: 18px;
}

.admin-action-grid h2 {
  margin: 0 0 4px;
  color: #f7d774;
  font-size: 18px;
}

body.admin-analytics-page {
  color: #e5edf6;
  font-size: 16px;
  line-height: 1.65;
}

body.admin-analytics-page .an-dash {
  gap: 22px;
}

body.admin-analytics-page .an-card,
body.admin-analytics-page .an-hero,
body.admin-analytics-page .admin-action-grid article {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .82);
  box-shadow: 0 16px 34px rgba(2, 6, 23, .22);
}

body.admin-analytics-page .an-card {
  padding: 24px;
}

body.admin-analytics-page .an-card-head {
  gap: 14px;
  margin-bottom: 16px;
}

body.admin-analytics-page .an-card h2,
body.admin-analytics-page .admin-action-grid h2 {
  color: #f8fafc;
  font-size: 21px;
  letter-spacing: 0;
}

body.admin-analytics-page .an-card p,
body.admin-analytics-page .an-card span,
body.admin-analytics-page .admin-status-box,
body.admin-analytics-page .admin-job-row,
body.admin-analytics-page .upsurge-validation-alert {
  color: #d7e1ee;
  font-size: 15px;
}

body.admin-analytics-page .admin-status-box {
  padding: 18px;
  border-color: rgba(148, 163, 184, .24);
  background: rgba(8, 13, 26, .72);
  line-height: 1.7;
}

body.admin-analytics-page .admin-job-table,
body.admin-analytics-page .upsurge-validation-table {
  gap: 10px;
  border-color: rgba(148, 163, 184, .2);
}

body.admin-analytics-page .admin-job-row,
body.admin-analytics-page .upsurge-validation-row {
  gap: 14px;
  min-height: 48px;
  padding: 13px 15px;
  border-bottom-color: rgba(148, 163, 184, .14);
}

body.admin-analytics-page .admin-job-row.is-head,
body.admin-analytics-page .upsurge-validation-row.is-head {
  color: #f8fafc;
  background: rgba(30, 41, 59, .82);
}

body.admin-analytics-page .admin-job-row strong,
body.admin-analytics-page .upsurge-validation-kpis strong {
  color: #ffffff;
  font-size: 18px;
}

body.admin-analytics-page .admin-input,
body.admin-analytics-page .admin-btn,
body.admin-analytics-page .admin-primary-link,
body.admin-analytics-page .admin-mini-btn {
  min-height: 42px;
  font-size: 15px;
}

body.admin-analytics-page .job-status {
  min-width: 78px;
  justify-content: center;
  border-width: 1px;
  font-weight: 800;
}

body.admin-analytics-page .job-status.is-success {
  border-color: rgba(16, 185, 129, .36);
  background: rgba(16, 185, 129, .16);
  color: #a7f3d0;
}

body.admin-analytics-page .job-status.is-warning,
body.admin-analytics-page .job-status.is-running,
body.admin-analytics-page .job-status.is-queued {
  border-color: rgba(245, 158, 11, .38);
  background: rgba(245, 158, 11, .16);
  color: #fde68a;
}

body.admin-analytics-page .job-status.is-failed {
  border-color: rgba(248, 113, 113, .42);
  background: rgba(248, 113, 113, .18);
  color: #fecaca;
}

body.admin-analytics-page .job-status.is-never_run,
body.admin-analytics-page .job-status.is-disabled,
body.admin-analytics-page .job-status.is-skipped {
  border-color: rgba(148, 163, 184, .32);
  background: rgba(148, 163, 184, .13);
  color: #cbd5e1;
}

body.admin-analytics-page .upsurge-validation-alert {
  border-color: rgba(59, 130, 246, .26);
  background: rgba(37, 99, 235, .12);
  color: #bfdbfe;
}

body.admin-analytics-page .upsurge-validation-alert.is-warning {
  border-color: rgba(245, 158, 11, .38);
  background: rgba(245, 158, 11, .14);
  color: #fde68a;
}

body.admin-analytics-page .upsurge-validation-alert.is-blocked {
  border-color: rgba(248, 113, 113, .42);
  background: rgba(248, 113, 113, .16);
  color: #fecaca;
}

body.admin-analytics-page .upsurge-validation-alert.is-success {
  border-color: rgba(16, 185, 129, .36);
  background: rgba(16, 185, 129, .14);
  color: #a7f3d0;
}

body.admin-analytics-page .upsurge-validation-kpis {
  gap: 12px;
}

body.admin-analytics-page .upsurge-validation-kpis article {
  min-height: 92px;
  padding: 18px;
  border-color: rgba(148, 163, 184, .24);
  background: rgba(8, 13, 26, .55);
}

.sa-source-panel {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(8, 13, 26, .82);
  padding: 18px;
}

.sa-source-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(247, 215, 116, .26);
  border-radius: 8px;
  color: #f7d774;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.sa-source-status.is-verified {
  border-color: rgba(34, 197, 94, .35);
  color: #86efac;
}

.sa-source-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sa-source-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(15, 23, 42, .58);
  padding: 12px;
}

.sa-source-grid span,
.sa-source-grid small {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sa-source-grid strong {
  color: #fff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.sa-view-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(15, 23, 42, .72);
}

.sa-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 8px;
  background: rgba(2, 6, 23, .72);
}

.sa-view-switch button,
.sa-accordion__trigger {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #cbd5e1;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.sa-view-switch button.is-active {
  color: #111827;
  background: #f7d774;
}

.sa-view-switch-wrap p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
}

.sa-decision-brief,
.sa-research-accordions {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}

.sa-decision-conclusion,
.sa-insight-card,
.sa-accordion {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .94), rgba(2, 6, 23, .9));
}

.sa-decision-conclusion {
  padding: 20px;
}

.sa-decision-conclusion span,
.sa-insight-card h2 {
  display: block;
  margin: 0 0 8px;
  color: #f7d774;
  font-size: 22px;
  font-weight: 900;
}

.sa-decision-conclusion strong {
  display: block;
  color: #f8fafc;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.45;
}

.sa-decision-conclusion p,
.sa-insight-card li {
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.65;
}

.sa-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sa-insight-card {
  padding: 18px;
}

.sa-insight-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-insight-card li {
  position: relative;
  padding-left: 18px;
}

.sa-insight-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a3b8;
}

.sa-insight-card.is-plus li::before { background: #34d399; }
.sa-insight-card.is-risk li::before { background: #fb923c; }

.sa-chip-inference-card,
.sa-chip-scenario {
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .9));
  padding: 18px;
}

.sa-chip-inference-card {
  position: relative;
  overflow: hidden;
}

.sa-chip-inference-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #94a3b8;
}

.sa-chip-inference-card.is-bull::before,
.sa-chip-scenario.is-bull {
  border-color: rgba(52, 211, 153, .34);
}

.sa-chip-inference-card.is-bull::before { background: #ef4444; }
.sa-chip-inference-card.is-warn::before { background: #f59e0b; }
.sa-chip-inference-card.is-risk::before { background: #22c55e; }

.sa-chip-inference-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.sa-chip-inference-head span,
.sa-chip-scenario span {
  color: #f7d774;
  font-size: 18px;
  font-weight: 900;
}

.sa-chip-inference-head strong,
.sa-chip-scenario strong {
  color: #f8fafc;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  text-align: right;
}

.sa-chip-inference-card p,
.sa-chip-scenario p,
.sa-chip-research-points li,
.sa-chip-limitations {
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.65;
}

.sa-chip-inference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sa-chip-inference-tags b {
  border: 1px solid rgba(247, 215, 116, .22);
  border-radius: 999px;
  background: rgba(247, 215, 116, .08);
  color: #fde68a;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 800;
}

.sa-chip-inference-research {
  display: grid;
  gap: 14px;
}

.sa-chip-scenario {
  display: grid;
  gap: 8px;
}

.sa-chip-scenario strong {
  text-align: left;
}

.sa-chip-research-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-chip-research-points li {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(15, 23, 42, .58);
  padding: 12px 14px;
}

.sa-chip-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sa-chip-evidence-grid article {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(2, 6, 23, .42);
  padding: 12px;
}

.sa-chip-evidence-grid span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 6px;
}

.sa-chip-evidence-grid strong {
  color: #f8fafc;
  font-size: 18px;
}

.sa-chip-limitations {
  margin: 0;
  color: #94a3b8;
}

.sa-accordion {
  overflow: hidden;
}

.sa-accordion__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #f8fafc;
  background: rgba(15, 23, 42, .82);
  text-align: left;
  font-size: 18px;
}

.sa-accordion__trigger span {
  font-size: 20px;
}

.sa-accordion__trigger b {
  color: #f7d774;
  font-size: 14px;
}

.sa-accordion__body {
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, .16);
}

.sa-accordion__body > section,
.sa-accordion__body > article {
  margin: 0;
}

.sa-model-context {
  display: grid;
  gap: 16px;
}

.sa-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sa-context-grid article,
.sa-context-risks,
.sa-context-defs {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(15, 23, 42, .62);
  padding: 16px;
}

.sa-context-grid span,
.sa-context-risks h3,
.sa-context-defs h3 {
  display: block;
  margin: 0 0 8px;
  color: #f7d774;
  font-size: 18px;
  font-weight: 900;
}

.sa-context-grid strong {
  color: #f8fafc;
  font-size: 22px;
}

.sa-context-grid p,
.sa-context-risks span,
.sa-context-defs p {
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.65;
}

.sa-context-risks ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-context-risks li {
  display: grid;
  gap: 4px;
}

.sa-context-risks b {
  color: #fb923c;
}

.brand-market-strip {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(8, 13, 26, .82);
  padding: 22px;
}

.brand-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

@media (max-width: 767px) {
  .sa-view-switch-wrap {
    align-items: stretch;
    flex-direction: column;
  }

  .sa-view-switch {
    width: 100%;
  }

  .sa-insight-grid {
    grid-template-columns: 1fr;
  }

  .sa-context-grid {
    grid-template-columns: 1fr;
  }

  .sa-chip-inference-head {
    display: grid;
  }

  .sa-chip-inference-head strong {
    text-align: left;
  }

  .sa-chip-evidence-grid {
    grid-template-columns: 1fr;
  }

  .sa-decision-conclusion strong {
    font-size: 22px;
  }
}

/* Batch-034 mobile first-screen and heatmap readability fixes. */
.brand-market-pulse {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 215, 116, .32);
  border-radius: 8px;
  background: rgba(2, 6, 23, .62);
  text-align: left;
}

.brand-market-pulse__score {
  display: grid;
  gap: 2px;
  min-width: 108px;
}

.brand-market-pulse__score span,
.brand-market-pulse__time {
  color: rgba(226, 232, 240, .68);
  font-size: 12px;
}

.brand-market-pulse__score strong {
  color: #f7d774;
  font-size: 20px;
  font-weight: 900;
}

.brand-market-pulse__score small {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.brand-market-pulse p {
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  line-height: 1.5;
}

.brand-market-pulse__time {
  grid-column: 1 / -1;
}

.hm-mobile-zone {
  display: none;
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  .brand-home-header {
    position: relative;
  }

  .brand-home-header .sl-header__inner {
    width: min(100% - 24px, 1440px);
    min-height: 64px;
    padding-block: 8px;
  }

  .brand-home-header .sl-nav {
    display: none;
  }

  .brand-main {
    width: 100%;
  }

  .brand-hero {
    min-height: auto;
    max-height: none;
    place-items: start center;
    padding: 16px 14px 20px;
    overflow: hidden;
  }

  .brand-hero__inner {
    width: min(100%, 420px);
    align-content: start;
    gap: 10px;
    padding-top: 0;
  }

  .brand-hero__logo {
    width: min(132px, 36vw) !important;
    margin: 0 0 2px;
  }

  .brand-hero h1 {
    font-size: 44px !important;
    line-height: .98;
    letter-spacing: 0 !important;
    text-indent: 0;
  }

  .brand-hero__tagline {
    margin-top: 2px;
    font-size: 19px !important;
    line-height: 1.25;
  }

  .brand-hero__copy {
    display: none;
  }

  .brand-market-pulse {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 12px;
  }

  .brand-market-pulse__score {
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    min-width: 0;
  }

  .brand-market-pulse__score strong {
    font-size: 18px;
  }

  .brand-market-pulse p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
  }

  .brand-search-wrap {
    width: 100%;
    margin-top: 4px;
  }

  .brand-search {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
  }

  .brand-search input,
  .brand-search button,
  .brand-link-primary,
  .brand-link-secondary {
    min-height: 44px;
    height: 44px;
  }

  .brand-hero__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0;
  }

  .page-hero-brand-mark,
  .brand-lines,
  .brand-hero__glow {
    display: none;
  }

  .brand-section {
    padding-inline: 14px;
  }

  .brand-floating-cta {
    display: none;
  }

  .brand-home.has-floating-cta {
    padding-bottom: 0;
  }

  .hm-page-v2 .hm-shell {
    width: min(100% - 24px, 1440px);
  }

  .hm-hero-v2 {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px;
  }

  .hm-hero-v2 .page-hero-brand-mark {
    display: none;
  }

  .hm-control-panel,
  .hm-scale-panel,
  .hm-debug {
    overflow-x: auto;
  }

  .hm-industries {
    display: grid;
    gap: 12px;
  }

  .hm-industry-card {
    padding: 12px;
  }

  .hm-mobile-zone {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(15, 23, 42, .76);
  }

  .hm-mobile-zone div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .hm-mobile-zone span,
  .hm-mobile-zone small {
    color: rgba(226, 232, 240, .68);
    font-size: 12px;
  }

  .hm-mobile-zone strong {
    font-size: 20px;
    font-weight: 900;
  }

  .hm-mobile-zone p {
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
  }

  .hm-mobile-zone.is-limit-up strong,
  .hm-mobile-zone.is-hot strong,
  .hm-mobile-zone.is-up strong {
    color: #34d399;
  }

  .hm-mobile-zone.is-flat strong,
  .hm-mobile-zone.is-missing strong {
    color: #f7d774;
  }

  .hm-mobile-zone.is-down strong,
  .hm-mobile-zone.is-cold strong,
  .hm-mobile-zone.is-limit-down strong {
    color: #fb7185;
  }

  .hm-industry-map {
    display: none;
  }
}

.brand-section-head span {
  color: #f7d774;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-section-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 24px;
}

.brand-section-head a {
  color: #f7d774;
  font-weight: 800;
  text-decoration: none;
}

.brand-market-strip p,
.brand-market-strip small {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  line-height: 1.7;
}

.brand-market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.brand-market-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(15, 23, 42, .62);
  padding: 14px;
}

.brand-market-grid span {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}

.brand-market-grid strong {
  color: #fff;
  font-size: 20px;
}

.brand-market-grid .is-buy strong {
  color: #86efac;
}

.brand-market-grid .is-sell strong {
  color: #fca5a5;
}

.sa-overview-panel {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(8, 13, 26, .82);
  padding: 18px;
}

.sa-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sa-overview-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 190px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(15, 23, 42, .58);
  padding: 14px;
}

.sa-overview-card span,
.sa-overview-card small {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sa-overview-card strong {
  color: #f7d774;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sa-overview-card b {
  color: #fff;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.sa-overview-card p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .an-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .an-hero,
  .an-grid {
    grid-template-columns: 1fr;
  }

  .an-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-card--wide {
    grid-column: auto;
  }

  .admin-action-grid {
    grid-template-columns: 1fr;
  }

  .an-table--locations .an-row,
  .an-location-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 1023px) {
  .sa-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-quality-grid,
  .sa-factor-grid,
  .sa-model-explain,
  .sa-research-grid,
  .sa-chip-subgrid,
  .sa-chip-reasons,
  .sa-upgrade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  canvas,
  svg {
    max-width: 100%;
  }

  .sa-header__inner {
    width: min(100% - 24px, 1440px);
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .sa-brand {
    min-width: 0;
  }

  .sa-brand__logo,
  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .sa-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .sa-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(15, 23, 42, .78);
    padding: 9px 11px;
  }

  .sa-search {
    display: block !important;
    width: 100%;
  }

  .sa-search input {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  .sa-main {
    width: min(100% - 24px, 1440px);
    padding: 16px 0 40px;
  }

  .sa-summary,
  .sa-score-panel,
  .sa-chart-head,
  .sa-section-head,
  .sa-quality-head,
  .sa-research-head,
  .an-hero {
    grid-template-columns: 1fr;
  }

  .sa-summary,
  .sa-chart-card,
  .sa-factor-section,
  .sa-research-panel,
  .sa-quality-panel,
  .sa-source-panel,
  .sa-overview-panel,
  .sa-upgrade,
  .an-card {
    padding: 16px;
  }

  .sa-summary h1 {
    font-size: 30px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .sa-price-row {
    align-items: flex-start;
  }

  .sa-price-row strong {
    font-size: 30px;
  }

  .sa-prob-cards,
  .brand-market-grid,
  .sa-source-grid,
  .sa-overview-grid,
  .sa-quality-grid,
  .sa-factor-grid,
  .sa-research-grid,
  .sa-chip-subgrid,
  .sa-chip-reasons,
  .sa-chart-readout,
  .sa-upgrade-grid,
  .an-grid,
  .admin-action-grid {
    grid-template-columns: 1fr !important;
  }

  .sa-chart.price {
    min-height: 320px;
  }

  .sa-chart.volume {
    min-height: 112px;
  }

  .sa-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .sa-tabs button,
  .sa-btn,
  .admin-btn,
  .admin-primary-link {
    min-height: 44px;
  }

  .score-table-wrap,
  .sl-table-wrap,
  .market-table-wrap,
  .an-card {
    max-width: 100%;
    overflow-x: auto;
  }

  .an-kpis {
    grid-template-columns: 1fr;
  }

  .an-bar {
    grid-template-columns: 1fr;
  }
}
.market-intel-page {
  --mi-card: rgba(15, 23, 42, 0.82);
  --mi-card-soft: rgba(30, 41, 59, 0.72);
  --mi-border: rgba(226, 232, 240, 0.12);
  --mi-gold: #d7b46a;
  --mi-pink: #f472b6;
}

.mi-main {
  display: grid;
  gap: 24px;
}

.mi-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--mi-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 20%, rgba(244, 114, 182, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.88));
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.mi-hero__content,
.mi-temperature-card {
  position: relative;
  z-index: 1;
}

.mi-hero h1 {
  margin: 8px 0 20px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0;
}

.mi-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(215, 180, 106, 0.34);
  border-radius: 999px;
  background: rgba(215, 180, 106, 0.1);
}

.mi-hero-status span,
.mi-temperature-card span,
.mi-card-head span {
  color: rgba(226, 232, 240, 0.7);
  font-size: 13px;
}

.mi-hero-status strong {
  color: #f8fafc;
  font-size: 20px;
}

.mi-observations {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(241, 245, 249, 0.9);
  font-size: 18px;
  line-height: 1.65;
}

.mi-temperature-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(244, 114, 182, 0.24);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.76);
}

.mi-temperature-card strong {
  color: #fff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
}

.mi-temperature-card b {
  color: var(--mi-gold);
  font-size: 20px;
}

.mi-temp-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.mi-temp-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, var(--mi-pink), #f59e0b);
}

.mi-ticker-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mi-index-pill,
.mi-card,
.mi-signal-card {
  border: 1px solid var(--mi-border);
  border-radius: 16px;
  background: var(--mi-card);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.18);
}

.mi-index-pill {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.mi-index-pill div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mi-index-pill span,
.mi-index-pill small,
.mi-muted {
  color: rgba(226, 232, 240, 0.66);
}

.mi-index-pill strong {
  color: #fff;
  font-size: 26px;
}

.mi-index-pill b,
.is-up {
  color: #ff6b6b;
}

.mi-index-pill.is-down b,
.is-down {
  color: #2fd17c;
}

.mi-grid {
  display: grid;
  gap: 18px;
}

.mi-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mi-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mi-signal-card {
  padding: 20px;
}

.mi-signal-card span {
  color: rgba(226, 232, 240, 0.66);
}

.mi-signal-card strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 28px;
}

.mi-card {
  padding: 22px;
}

.mi-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mi-card-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 24px;
}

.mi-list {
  display: grid;
  gap: 12px;
}

.mi-insight-row {
  padding: 14px;
  border-radius: 12px;
  background: var(--mi-card-soft);
  border-left: 3px solid rgba(148, 163, 184, 0.45);
}

.mi-insight-row.is-positive {
  border-left-color: #ff6b6b;
}

.mi-insight-row.is-caution,
.mi-insight-row.is-warning {
  border-left-color: #f59e0b;
}

.mi-insight-row strong {
  color: #f8fafc;
  font-size: 17px;
}

.mi-insight-row p,
.mi-script,
.mk-inst p {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.65;
}

.mi-script {
  margin: 0;
  font-size: 18px;
}

.mi-sector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mi-sector-grid h3 {
  margin: 0 0 10px;
  color: var(--mi-gold);
  font-size: 17px;
}

.mi-sector-list {
  display: grid;
  gap: 10px;
}

.mi-sector-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.58);
  color: #f8fafc;
}

.mi-sector-row small {
  flex-basis: 100%;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
}

.mi-treasure-entry {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  padding: 12px 16px;
  border: 1px solid rgba(244, 114, 182, 0.34);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.28);
}

.sa-structure-panel {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 10px;
  background: rgba(8, 13, 26, .88);
}

.sa-structure-count {
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 999px;
  color: #7dd3fc;
  padding: 8px 12px;
  font-weight: 800;
}

.sa-structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sa-structure-grid article {
  display: grid;
  gap: 5px;
  min-height: 88px;
  border-left: 3px solid #94a3b8;
  border-radius: 8px;
  background: rgba(15, 23, 42, .66);
  padding: 11px 13px;
}

.sa-structure-grid article.is-bullish { border-color: #34d399; }
.sa-structure-grid article.is-warning { border-color: #fbbf24; }
.sa-structure-grid article.is-bearish { border-color: #f87171; }

.sa-structure-grid span,
.sa-structure-grid small,
.sa-structure-empty {
  color: rgba(226, 232, 240, .68);
  font-size: 12px;
}

.sa-structure-grid strong {
  color: #f8fafc;
  font-size: 15px;
}

.sa-structure-empty {
  margin: 12px 0 0;
}

.sa-smart-line-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 15px;
  margin-bottom: 12px;
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 8px;
  background: rgba(15, 23, 42, .48);
  padding: 10px 12px;
  color: #e2e8f0;
}

.sa-smart-line-controls label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}

.sa-smart-line-controls input {
  accent-color: #38bdf8;
}

.sa-smart-line-controls small {
  flex-basis: 100%;
  color: #94a3b8;
}

.sa-smart-master strong {
  color: #7dd3fc;
}

@media (max-width: 767px) {
  .sa-structure-grid {
    grid-template-columns: 1fr;
  }
}

/* P16 stock analysis information hierarchy and responsive usability. */
.stock-analysis-page .sa-main {
  display: grid;
  gap: 20px;
}

.stock-analysis-page .sa-summary,
.stock-analysis-page .sa-chart-card,
.sa-highlights-panel,
.sa-structure-panel,
.sa-breakdown-panel,
.sa-validation-history-panel,
.sa-risk-data-panel {
  border-color: rgba(244, 114, 182, .16);
  background: linear-gradient(150deg, rgba(15, 23, 42, .98), rgba(3, 7, 18, .97));
  box-shadow: 0 20px 55px rgba(2, 6, 23, .35);
}

.stock-analysis-page .sa-summary,
.stock-analysis-page .sa-chart-card,
.sa-highlights-panel,
.sa-structure-panel,
.sa-breakdown-panel,
.sa-validation-history-panel,
.sa-risk-data-panel {
  margin: 0;
  padding: clamp(16px, 2.3vw, 24px);
  border: 1px solid rgba(244, 114, 182, .16);
  border-radius: 14px;
}

.stock-analysis-page .sa-summary {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: start;
}

.stock-analysis-page .sa-score-panel {
  grid-template-columns: 160px minmax(0, 1fr);
}

.stock-analysis-page .sa-score-big {
  min-width: 0;
  padding: 18px 12px;
  border-color: rgba(244, 114, 182, .28);
  background: radial-gradient(circle at 50% 12%, rgba(244, 114, 182, .2), rgba(15, 23, 42, .94) 64%);
}

.stock-analysis-page .sa-score-big strong {
  font-size: clamp(46px, 5.5vw, 64px);
  color: #fdf2f8;
  text-shadow: 0 0 22px rgba(244, 114, 182, .24);
}

.sa-overview-badges {
  display: grid;
  gap: 9px;
}

.sa-overview-badges article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 10px;
  background: rgba(15, 23, 42, .62);
  padding: 12px;
}

.sa-overview-badges article span,
.sa-overview-badges small {
  color: #94a3b8;
  font-size: 13px;
}

.sa-overview-badges article strong {
  color: #e2e8f0;
  font-size: 18px;
}

.sa-overview-badges article.is-high strong,
.sa-overview-badges article.is-complete strong { color: #6ee7b7; }
.sa-overview-badges article.is-medium strong,
.sa-overview-badges article.is-partial strong { color: #fcd34d; }
.sa-overview-badges article.is-low strong,
.sa-overview-badges article.is-insufficient strong { color: #fca5a5; }

.sa-highlights-panel .sa-section-head {
  margin-bottom: 12px;
}

.sa-highlights-panel .sa-eyebrow {
  margin-bottom: 9px;
  border-color: rgba(244, 114, 182, .34);
  color: #fbcfe8;
  background: rgba(244, 114, 182, .09);
}

.sa-highlights-panel h2,
.sa-breakdown-panel h2,
.sa-risk-data-panel h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(23px, 3vw, 29px);
}

.sa-highlight-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sa-highlight-list article {
  display: grid;
  gap: 9px;
  min-height: 92px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-top: 3px solid #94a3b8;
  border-radius: 10px;
  background: rgba(15, 23, 42, .62);
  padding: 12px;
}

.sa-highlight-list article.is-warning,
.sa-highlight-list article.is-bearish { border-top-color: #fb7185; }
.sa-highlight-list article.is-bullish { border-top-color: #34d399; }
.sa-highlight-list article.is-neutral { border-top-color: #38bdf8; }

.sa-highlight-list span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.sa-highlight-list strong {
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.45;
}

.sa-drawing-toggle-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #e2e8f0;
}

.sa-controls-collapse {
  border: 1px solid rgba(244, 114, 182, .25);
  border-radius: 999px;
  background: rgba(244, 114, 182, .08);
  color: #fbcfe8;
  padding: 7px 12px;
  font-weight: 800;
  cursor: pointer;
}

.sa-smart-line-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
}

.sa-smart-line-controls .sa-smart-master,
.sa-line-legend,
.sa-smart-line-controls > p {
  grid-column: 1 / -1;
}

.sa-line-option {
  align-items: flex-start !important;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 8px;
  background: rgba(2, 6, 23, .35);
  padding: 9px;
}

.sa-line-option span {
  display: grid;
  gap: 3px;
  color: #e2e8f0;
}

.sa-line-option small {
  color: #94a3b8;
  font-weight: 500;
}

.sa-line-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sa-line-legend b {
  border-left: 15px solid #94a3b8;
  color: #cbd5e1;
  padding-left: 7px;
  font-size: 12px;
}

.sa-line-legend .is-support { border-color: #34d399; }
.sa-line-legend .is-resistance { border-color: #f87171; }
.sa-line-legend .is-neckline { border-color: #fbbf24; }
.sa-line-legend .is-trendline { border-color: #e879f9; }

.sa-smart-line-controls > p,
.sa-drawing-note {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.sa-structure-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sa-structure-group {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 10px;
  background: rgba(15, 23, 42, .55);
  padding: 13px;
}

.sa-structure-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sa-structure-group h3 {
  margin: 0;
  color: #fbcfe8;
  font-size: 18px;
}

.sa-structure-group-head span {
  color: #94a3b8;
  font-size: 12px;
}

.sa-structure-items {
  display: grid;
  gap: 7px;
}

.sa-structure-items div {
  border-left: 3px solid #94a3b8;
  padding: 5px 0 5px 9px;
}

.sa-structure-items .is-bullish { border-color: #34d399; }
.sa-structure-items .is-warning,
.sa-structure-items .is-bearish { border-color: #fb7185; }
.sa-structure-items strong {
  display: block;
  color: #e2e8f0;
  font-size: 14px;
}
.sa-structure-items small {
  color: #64748b;
  font-size: 11px;
}

.sa-structure-group button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #7dd3fc;
  cursor: pointer;
  font-weight: 800;
}

.sa-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sa-breakdown-grid article {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 10px;
  background: rgba(15, 23, 42, .6);
  padding: 15px;
}

.sa-breakdown-grid span {
  color: #94a3b8;
  font-size: 13px;
}

.sa-breakdown-grid strong {
  color: #f8fafc;
  font-size: clamp(25px, 3vw, 34px);
}

.sa-breakdown-grid .is-market strong { color: #7dd3fc; }
.sa-breakdown-grid .is-deduction strong,
.sa-breakdown-grid .is-deduction small { color: #fda4af; }
.sa-breakdown-grid .is-total {
  border-color: rgba(244, 114, 182, .33);
}
.sa-breakdown-grid .is-total strong { color: #fbcfe8; }

.sa-breakdown-explain {
  margin: 13px 0 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.sa-validation-history-table {
  display: grid;
  gap: 6px;
}

.sa-validation-history-table > div {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr .8fr;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 9px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, .55);
}

.sa-validation-history-table .is-head {
  color: #94a3b8;
  background: transparent;
  font-size: 12px;
}

.sa-validation-history-table span {
  display: grid;
  gap: 3px;
}

.sa-validation-history-table small {
  color: #94a3b8;
}

.sa-validation-history-table .is-up {
  color: #6ee7b7;
  font-weight: 800;
}

.sa-validation-history-table .is-down {
  color: #fca5a5;
  font-weight: 800;
}

.sa-validation-summary-grid {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sa-validation-summary-title {
  margin: 0 0 11px;
  color: #f17caa;
  font-size: 15px;
}

.sa-validation-summary-grid article,
.sa-validation-summary-grid > p {
  padding: 12px 13px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .55);
}

.sa-validation-summary-grid span {
  display: block;
  margin-bottom: 7px;
  color: #94a3b8;
  font-size: 12px;
}

.sa-validation-summary-grid strong {
  color: #e2e8f0;
  font-size: 20px;
}

.sa-validation-summary-grid .is-up { color: #6ee7b7; }
.sa-validation-summary-grid .is-down { color: #fca5a5; }

.sa-validation-summary-grid > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #e8c570;
}

.sa-risk-data-grid {
  display: grid;
  grid-template-columns: 1.18fr .92fr 1fr;
  gap: 12px;
}

.sa-risk-data-grid article {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 10px;
  background: rgba(15, 23, 42, .55);
  padding: 14px;
}

.sa-risk-data-grid article > span {
  display: block;
  margin-bottom: 8px;
  color: #fbcfe8;
  font-weight: 800;
}

.sa-risk-card strong {
  color: #fde68a;
  font-size: 22px;
}

.sa-risk-data-grid p,
.sa-risk-data-grid li {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.sa-risk-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.sa-dates-card div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sa-dates-card p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.sa-dates-card b {
  color: #94a3b8;
  font-size: 12px;
}

.sa-history-failure-card {
  margin-top: 12px;
  border: 1px solid rgba(251, 191, 36, .26);
  border-radius: 12px;
  background: rgba(120, 53, 15, .14);
  padding: 14px;
}

.sa-history-failure-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sa-history-failure-card span {
  color: #fde68a;
  font-weight: 800;
}

.sa-history-failure-card small {
  color: #cbd5e1;
}

.sa-history-failure-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sa-history-failure-card li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #cbd5e1;
}

.sa-history-failure-card li strong {
  color: #f8fafc;
}

.sa-history-failure-card li span {
  color: #cbd5e1;
  font-weight: 500;
}

.sa-history-empty {
  margin: 12px 0 0;
  padding: 10px 13px;
  border-radius: 10px;
  color: #94a3b8;
  background: rgba(15, 23, 42, .48);
}

.sa-risk-effectiveness-card {
  margin-top: 12px;
  border: 1px solid rgba(56, 189, 248, .2);
  border-radius: 12px;
  background: rgba(8, 47, 73, .18);
  padding: 14px;
}

.sa-risk-effectiveness-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sa-risk-effectiveness-card div span {
  color: #bae6fd;
  font-weight: 800;
}

.sa-risk-effectiveness-card div small {
  color: #cbd5e1;
}

.sa-risk-effectiveness-card ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #cbd5e1;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .sa-highlight-list,
  .sa-structure-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sa-risk-data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .stock-analysis-page .sa-main {
    gap: 14px;
  }
  .stock-analysis-page .sa-summary,
  .stock-analysis-page .sa-chart-card,
  .sa-highlights-panel,
  .sa-structure-panel,
  .sa-breakdown-panel,
  .sa-risk-data-panel {
    padding: 14px;
  }
  .stock-analysis-page .sa-score-panel,
  .sa-highlight-list,
  .sa-smart-line-controls,
  .sa-structure-groups,
  .sa-breakdown-grid {
    grid-template-columns: 1fr;
  }
  .stock-analysis-page .sa-score-big strong {
    font-size: 54px;
  }
  .stock-analysis-page .sa-chart.price {
    min-height: 300px;
  }
  .stock-analysis-page .sa-chart.volume {
    min-height: 92px;
  }
  .sa-dates-card div {
    grid-template-columns: 1fr 1fr;
  }
  .sa-history-failure-card div,
  .sa-history-failure-card li,
  .sa-risk-effectiveness-card div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1023px) {
  .mi-hero,
  .mi-ticker-strip,
  .mi-grid--two,
  .mi-grid--four {
    grid-template-columns: 1fr;
  }

  .mi-sector-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .mi-hero {
    padding: 24px;
    border-radius: 18px;
  }

  .mi-observations,
  .mi-script {
    font-size: 16px;
  }

  .mi-index-pill div {
    align-items: flex-start;
    flex-direction: column;
  }

  .mi-treasure-entry {
    right: 14px;
    bottom: 14px;
  }
}

/* P19 platform showcase and verified rankings */
.p19-home,
.p19-rank-page {
  min-height: 100vh;
  color: #f3f2f6;
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 70, 134, .18), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(78, 99, 169, .18), transparent 32%),
    #090b14;
}

body.michelle-theme.p19-rank-page {
  color: #f3f2f6;
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 70, 134, .18), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(78, 99, 169, .18), transparent 32%),
    #090b14 !important;
}

.p19-header {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(9, 11, 20, .92);
  backdrop-filter: blur(14px);
}

.p19-rank-page .brand-name,
.p19-rank-page .sa-nav a {
  color: #f2f1f5;
}

.p19-rank-page .brand-tagline {
  color: #a9acbc;
}

.p19-rank-page .sa-nav a.is-active {
  color: #ff71a7;
}

.p19-main,
.p19-rank-main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 48px;
  display: grid;
  gap: 20px;
}

.p19-card,
.p19-rk-board,
.p19-rk-validation,
.p19-rk-hero {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  background: rgba(18, 21, 35, .92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
}

.p19-section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.p19-section-head h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: clamp(20px, 2vw, 25px);
}

.p19-section-head p,
.p19-card p,
.p19-rk-hero p {
  margin: 0;
  color: #b5b7c7;
  line-height: 1.6;
}

.p19-section-head a {
  flex: 0 0 auto;
  color: #ff71a7;
  text-decoration: none;
  font-weight: 700;
}

.p19-hero {
  display: grid;
  grid-template-columns: minmax(360px, 1.28fr) minmax(285px, .72fr);
  gap: 20px;
}

.p19-hero-copy,
.p19-market-summary {
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, .09);
}

.p19-hero-copy {
  padding: clamp(26px, 4vw, 48px);
  background: linear-gradient(130deg, rgba(28, 29, 47, .98), rgba(21, 17, 30, .98));
}

.p19-hero-logo {
  width: clamp(62px, 9vw, 85px);
  height: auto;
  margin: 13px 0;
}

.p19-hero-copy h1 {
  max-width: 620px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.13;
}

.p19-hero-lead {
  max-width: 590px;
  margin-bottom: 22px !important;
  font-size: 16px;
}

.p19-search form {
  max-width: 580px;
  padding: 7px;
  display: flex;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
}

.p19-search input,
.p19-rank-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.p19-search button,
.p19-rank-search button,
.p19-primary {
  border: 0;
  border-radius: 10px;
  padding: 12px 17px;
  color: #fff;
  background: #e83c82;
  font-weight: 750;
  cursor: pointer;
}

.p19-error {
  margin: 7px 0 0 !important;
  color: #f59ab8 !important;
  font-size: 13px;
}

.p19-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.p19-primary,
.p19-secondary {
  padding: 12px 17px;
  text-decoration: none;
}

.p19-secondary {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  color: #e8e5ee;
  font-weight: 700;
}

.p19-market-summary {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(16, 19, 33, .95);
}

.p19-market-summary span,
.p19-market-summary small {
  color: #9da1b8;
}

.p19-market-summary strong {
  font-size: clamp(29px, 4vw, 38px);
}

.p19-market-summary.is-bullish strong {
  color: #e96197;
}

.p19-market-summary.is-neutral strong {
  color: #efc96a;
}

.p19-market-summary.is-bearish strong {
  color: #6bbfc2;
}

.p30-home-minimal .sl-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.p30-home-auth {
  margin-left: auto;
}

.p30-home-main {
  min-height: calc(100vh - 170px);
  display: grid;
  align-items: center;
}

.p30-home-landing {
  display: block;
}

.p30-home-landing .p19-hero-copy {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.p30-home-landing .p19-hero-copy h1,
.p30-home-landing .p19-hero-lead,
.p30-home-landing .p19-search form {
  margin-left: auto;
  margin-right: auto;
}

.p30-home-landing .p19-search form {
  text-align: left;
}

.sa-chart-warning {
  margin: 8px 0 10px;
  padding: 9px 12px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 8px;
  color: #f8d48a;
  background: rgba(245, 158, 11, .08);
  font-size: 13px;
  line-height: 1.5;
}

.p30-home-landing {
  width: 100%;
}

.p30-home-panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 25px;
  background: linear-gradient(130deg, rgba(28, 29, 47, .98), rgba(21, 17, 30, .98));
  text-align: center;
}

.p30-home-logo {
  width: clamp(62px, 9vw, 85px);
  height: auto;
  margin: 13px 0;
}

.p30-home-panel h1 {
  max-width: 620px;
  margin: 0 auto 12px;
  color: #fff;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.13;
}

.p30-home-lead {
  max-width: 590px;
  margin: 0 auto 22px !important;
  color: #b5b7c7;
  font-size: 16px;
  line-height: 1.6;
}

.p30-home-panel .p19-search form {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

@media (max-width: 760px) {
  .p30-home-minimal .sl-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .p30-home-minimal .sl-nav {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 14px;
    padding-bottom: 4px;
  }

  .p30-home-auth {
    margin-left: 0;
    gap: 8px;
  }

  .p30-home-auth a {
    min-height: 36px;
    padding: 0 12px;
  }

  .p30-home-main {
    min-height: calc(100vh - 190px);
  }

  .p30-home-landing .p19-hero-copy {
    box-sizing: border-box;
    overflow: hidden;
  }

  .p30-home-landing .p19-hero-copy h1 {
    font-size: clamp(25px, 8vw, 31px);
    overflow-wrap: anywhere;
  }

  .p30-home-landing .p19-search form {
    flex-direction: column;
  }

  .p30-home-landing .p19-search button {
    width: 100%;
  }
}

/* P35 stock hero final overrides */
.stock-analysis-page .sa-summary-v2 {
  grid-template-columns: 1fr !important;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
}
.stock-analysis-page .sa-hero-score-core {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(190px, 250px);
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
}
.stock-analysis-page .sa-summary-v2 .sa-score-big {
  min-width: 0;
  min-height: clamp(176px, 23vw, 244px);
  padding: clamp(18px, 2.7vw, 30px);
}
.stock-analysis-page .sa-summary-v2 .sa-score-big strong {
  font-size: clamp(88px, 13.8vw, 150px) !important;
  line-height: .84;
  letter-spacing: 0;
}
.stock-analysis-page .sa-summary-v2 .sa-score-big span {
  font-size: clamp(17px, 2.5vw, 24px);
  color: #e2e8f0;
}
.stock-analysis-page .sa-score-change-stack {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 188px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  background: rgba(15, 23, 42, .62);
  padding: 14px;
  color: #cbd5e1;
}
.stock-analysis-page .sa-score-change-point {
  display: grid;
  justify-items: center;
  gap: 3px;
}
.stock-analysis-page .sa-score-change-point span,
.stock-analysis-page .sa-score-change-direction span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}
.stock-analysis-page .sa-score-change-point strong {
  color: #f8fafc;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 950;
  line-height: 1;
}
.stock-analysis-page .sa-score-change-point.is-today strong {
  animation: scoreFadeRise .76s ease-out both;
}
.stock-analysis-page .sa-score-change-direction {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.stock-analysis-page .sa-score-change-direction b {
  color: #cbd5e1;
  font-size: 24px;
  line-height: 1;
  animation: scoreDirectionIn .72s ease-out both;
}
.stock-analysis-page .sa-score-change-direction em {
  color: #e2e8f0;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.stock-analysis-page .sa-score-change-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .12);
  color: #e2e8f0;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}
.stock-analysis-page .sa-score-change-stack.is-up .sa-score-change-direction b,
.stock-analysis-page .sa-score-change-stack.is-up .sa-score-change-direction em,
.stock-analysis-page .sa-score-change-stack.is-up .sa-score-change-delta {
  color: #86efac;
}
.stock-analysis-page .sa-score-change-stack.is-down .sa-score-change-direction b,
.stock-analysis-page .sa-score-change-stack.is-down .sa-score-change-direction em,
.stock-analysis-page .sa-score-change-stack.is-down .sa-score-change-delta {
  color: #fca5a5;
}
.stock-analysis-page .sa-score-change-stack.is-down .sa-score-change-direction b {
  animation-name: scoreDirectionDown;
}
.stock-analysis-page .sa-score-change-stack.is-flat .sa-score-change-direction b,
.stock-analysis-page .sa-score-change-stack.is-flat .sa-score-change-direction em {
  color: #cbd5e1;
}
.stock-analysis-page .sa-score-change-empty {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}
@keyframes scoreFadeRise {
  from { opacity: .35; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scoreDirectionIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scoreDirectionDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.stock-analysis-page .sa-hero-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 14px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding-top: 14px;
}
.stock-analysis-page .sa-hero-stock-meta h1 {
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(22px, 2.5vw, 36px) !important;
  line-height: 1.08;
  font-weight: 900;
}
.stock-analysis-page .sa-summary-v2 .sa-price-row {
  margin-top: 8px;
  gap: 10px;
}
.stock-analysis-page .sa-summary-v2 .sa-price-row strong {
  font-size: clamp(24px, 3vw, 42px) !important;
}
.stock-analysis-page .sa-summary-v2 .sa-price-row span {
  font-size: clamp(14px, 2vw, 17px);
}
.stock-analysis-page .sa-hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.stock-analysis-page .sa-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #e2e8f0;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.stock-analysis-page .sa-hero-badge.is-risk-low,
.stock-analysis-page .sa-hero-badge.is-data-complete,
.stock-analysis-page .sa-hero-badge.is-data-full_3y {
  border-color: rgba(34, 197, 94, .36);
  color: #bbf7d0;
}
.stock-analysis-page .sa-hero-badge.is-risk-high {
  border-color: rgba(248, 113, 113, .36);
  color: #fecaca;
}
.stock-analysis-page .sa-hero-badge.is-risk-medium,
.stock-analysis-page .sa-hero-badge.is-data-partial,
.stock-analysis-page .sa-hero-badge.is-data-recent_only,
.stock-analysis-page .sa-hero-badge.is-data-insufficient {
  border-color: rgba(250, 204, 21, .34);
  color: #fef3c7;
}
.stock-analysis-page .sa-watch-actions--secondary {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.stock-analysis-page .sa-watch-actions--secondary .sa-watch-btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 850;
  opacity: .86;
}
.stock-analysis-page .is-hidden-in-hero {
  display: none !important;
}
@media (max-width: 820px) {
  .stock-analysis-page .sa-hero-score-core,
  .stock-analysis-page .sa-hero-meta-row {
    grid-template-columns: 1fr;
  }
  .stock-analysis-page .sa-score-change-stack {
    min-height: 0;
  }
  .stock-analysis-page .sa-hero-badge-row,
  .stock-analysis-page .sa-watch-actions--secondary {
    justify-content: flex-start;
  }
}
@media (max-width: 430px) {
  .stock-analysis-page .sa-summary-v2 {
    padding: 16px;
  }
  .stock-analysis-page .sa-summary-v2 .sa-score-big {
    min-height: 162px;
  }
  .stock-analysis-page .sa-summary-v2 .sa-score-big strong {
    font-size: clamp(76px, 23vw, 100px) !important;
  }
  .stock-analysis-page .sa-score-change-stack {
    padding: 13px;
  }
  .stock-analysis-page .sa-score-change-point strong {
    font-size: 24px;
  }
  .stock-analysis-page .sa-watch-actions--secondary {
    width: 100%;
  }
  .stock-analysis-page .sa-watch-actions--secondary .sa-watch-btn {
    flex: 1 1 120px;
  }
}

.p19-market-summary b {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(232, 60, 130, .12);
  color: #ff86b4;
}

.p19-sector-callout {
  margin-top: auto;
  padding: 13px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(232, 60, 130, .13);
}

.p19-focus-list,
.p19-sector-grid,
.p19-ranking-grid,
.p19-treasure-grid,
.p19-risk-grid,
.p19-model-list,
.p19-observation-list {
  display: grid;
  gap: 12px;
}

.p19-focus-list {
  grid-template-columns: repeat(4, 1fr);
}

.p19-focus-list article {
  padding: 15px;
  border-radius: 14px;
  background: #101421;
}

.p19-focus-list span {
  color: #f075a5;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.p19-focus-list p {
  margin-top: 8px;
  font-size: 14px;
}

.p19-sector-grid {
  grid-template-columns: 1fr 1fr;
}

.p19-sector-column {
  padding: 17px;
  border-radius: 16px;
  background: #101421;
}

.p19-sector-column h3,
.p19-ranking-column h3 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 17px;
}

.p19-sector-column.is-strong h3 {
  color: #fa73a6;
}

.p19-sector-column.is-weak h3 {
  color: #69bbc0;
}

.p19-sector-column article {
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.p19-sector-column article:first-of-type {
  border-top: 0;
}

.p19-sector-column article div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.p19-sector-column article b {
  color: #fff;
}

.p19-sector-column article p,
.p19-sector-column article small {
  color: #aeb2c4;
  font-size: 13px;
}

.p19-ranking-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p19-ranking-column {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: #101421;
}

.p19-rank-row {
  margin-top: 9px;
  padding: 11px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: #fff;
  text-decoration: none;
}

.p19-rank-no {
  color: #ed5d95;
}

.p19-rank-name {
  display: flex;
  flex-direction: column;
}

.p19-rank-name small {
  color: #9c9fb1;
  font-size: 12px;
}

.p19-rank-score {
  font-size: 17px;
}

.p19-tags {
  grid-column: 2 / 4;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.p19-tags span,
.p19-rk-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #c6c8d6;
  background: rgba(255, 255, 255, .07);
  font-size: 11px;
}

.p19-tags .is-validating,
.p19-rk-tags .is-validating {
  color: #edc875;
  background: rgba(237, 200, 117, .13);
}

.p19-tags .is-validated,
.p19-rk-tags .is-validated {
  color: #88d0aa;
  background: rgba(77, 188, 127, .16);
}

.p19-treasure-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.p19-treasure-grid article {
  padding: 16px;
  border-radius: 15px;
  background: #101421;
}

.p19-treasure-grid header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p19-treasure-grid header b {
  color: #ed5d95;
}

.p19-treasure-grid header small {
  margin-left: auto;
  color: #a7aabd;
}

.p19-treasure-grid article p {
  margin-top: 11px;
  font-size: 13px;
}

.p19-treasure-grid .p19-structure-note {
  min-height: 50px;
}

.p19-treasure-grid a {
  display: inline-block;
  margin-top: 13px;
  color: #fa70a5;
  text-decoration: none;
  font-weight: 700;
}

.p19-risk-grid {
  grid-template-columns: repeat(4, 1fr);
}

.p19-risk-grid article {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 14px;
  background: #101421;
}

.p19-risk-grid span,
.p19-risk-grid small {
  color: #aeb1c2;
}

.p19-risk-grid strong {
  color: #f17caa;
  font-size: 30px;
}

.p19-status-note {
  margin-top: 15px !important;
  padding: 11px 14px;
  border-radius: 12px;
  color: #e8c570 !important;
  background: rgba(232, 191, 89, .09);
}

.p19-validation-summary {
  display: grid;
  grid-template-columns: repeat(2, 170px) 1fr;
  gap: 12px;
  align-items: center;
}

.p19-validation-summary article {
  padding: 13px;
  border-radius: 14px;
  background: #101421;
}

.p19-validation-summary span {
  display: block;
  margin-bottom: 8px;
  color: #aeb1c2;
  font-size: 12px;
}

.p19-validation-summary strong {
  color: #fff;
  font-size: 22px;
}

.p19-model-list {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p19-model-list article {
  padding: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.p19-model-list span {
  color: #d6bc77;
}

.p21-model-progress {
  display: grid !important;
  gap: 9px !important;
}

.p21-model-progress div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.p21-model-progress i,
.p21-admin-progress i {
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.p21-model-progress i b,
.p21-admin-progress i b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #e83c82, #f475a6);
}

.p21-model-progress small {
  color: #aeb1c2;
}

.p21-validation-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.p21-validation-feed a,
.p21-validation-feed article {
  padding: 13px 14px;
  display: grid;
  gap: 6px;
  border-radius: 12px;
  color: #fff;
  background: #101421;
  text-decoration: none;
}

.p21-validation-feed span {
  color: #88d0aa;
}

.p21-validation-feed small {
  color: #9ea2b6;
}

.p21-admin-progress {
  margin-bottom: 16px;
  display: grid;
  gap: 10px;
}

.p21-admin-progress article {
  padding: 12px 14px;
  display: grid;
  gap: 9px;
  border-radius: 9px;
  background: rgba(15, 23, 42, .55);
}

.p21-admin-progress article div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, .82);
}

.p25-performance-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.p25-performance-kpis article,
.p25-performance-grid article {
  padding: 13px;
  border-radius: 12px;
  background: #101421;
}

.p25-performance-kpis span {
  display: block;
  margin-bottom: 8px;
  color: #aeb1c2;
  font-size: 12px;
}

.p25-performance-kpis strong {
  color: #fff;
  font-size: 22px;
}

.p25-performance-grid {
  display: grid;
  grid-template-columns: .85fr 1.2fr 1.15fr;
  gap: 10px;
}

.p25-performance-grid article {
  display: grid;
  align-content: start;
  gap: 7px;
}

.p25-performance-grid h3 {
  margin: 0 0 4px;
  color: #f17caa;
  font-size: 14px;
}

.p25-performance-grid p {
  margin: 0;
}

.p25-performance-grid b {
  font-size: 23px;
}

.p25-performance-grid .is-up { color: #79dfb0; }
.p25-performance-grid .is-down { color: #fda4af; }

.p19-observation-list {
  grid-template-columns: repeat(3, 1fr);
}

.p19-observation-list a {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 13px;
  color: #fff;
  background: #101421;
  text-decoration: none;
}

.p19-observation-list span {
  color: #bec1ce;
}

.p19-final-search {
  text-align: center;
}

.p19-final-search h2 {
  margin: 0 0 8px;
}

.p19-final-search .p19-search form {
  margin: 17px auto 0;
}

.p19-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #d4d2dd;
  background: #090b14;
}

.p19-empty {
  padding: 18px;
  color: #b5b7c7;
  text-align: center;
}

.p19-rank-search {
  padding: 4px 5px 4px 13px;
  display: flex;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
}

.p19-rank-search button {
  padding: 9px 14px;
}

.p19-rk-hero h1 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(31px, 4vw, 43px);
}

.p19-rk-hero > p:not(.sa-eyebrow) {
  max-width: 760px;
}

.p19-rk-meta {
  margin-top: 19px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p19-rk-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d7d8e2;
  background: rgba(255, 255, 255, .06);
}

.p19-rk-meta .is-error {
  color: #f49bb7;
}

.p19-rk-validation-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.p19-rk-validation-head p {
  margin: 0 0 6px;
  color: #aeb1c2;
}

.p19-rk-validation-head strong {
  display: block;
  color: #ebc676;
  font-size: 23px;
}

.p19-rk-validation-head span {
  color: #c4c6d3;
}

.p19-rk-validation-head small {
  max-width: 390px;
  color: #aeb1c2;
}

.p19-rk-models {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.p19-rk-models article {
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}

.p19-rk-models span {
  color: #c5a958;
  font-size: 13px;
}

.p19-rk-tabs {
  display: flex;
  gap: 8px;
}

.p19-rk-tabs button {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #c4c7d5;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  font-weight: 700;
}

.p19-rk-tabs button.is-active {
  border-color: rgba(236, 71, 135, .44);
  color: #fff;
  background: rgba(232, 60, 130, .19);
}

.p19-full-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.p19-full-rank-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 15px;
  color: #fff;
  background: #101421;
  text-decoration: none;
}

.p19-full-rank-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.p19-full-rank-head > b {
  color: #eb5c94;
}

.p19-full-rank-head div {
  display: flex;
  flex-direction: column;
}

.p19-full-rank-head small {
  color: #aeb1c2;
}

.p19-full-rank-head em {
  color: #fff;
  font-size: 22px;
  font-style: normal;
  font-weight: 750;
}

.p19-rk-tags {
  margin: 13px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p19-rk-tags .is-risk-high {
  color: #f197b0;
  background: rgba(225, 66, 111, .17);
}

.p19-rk-tags .is-risk-medium {
  color: #e7c370;
  background: rgba(225, 181, 65, .15);
}

.p19-full-rank-card p {
  min-height: 42px;
  margin: 0 0 11px;
  color: #b7bac9;
  font-size: 13px;
}

.p19-full-rank-card footer {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  color: #9ea2b6;
  font-size: 12px;
}

@media (max-width: 1000px) {
  .p19-hero,
  .p19-focus-list,
  .p19-sector-grid,
  .p19-risk-grid,
  .p19-validation-summary,
  .p25-performance-kpis,
  .p25-performance-grid,
  .p19-observation-list {
    grid-template-columns: 1fr 1fr;
  }

  .p19-hero-copy {
    grid-column: 1 / -1;
  }

  .p19-treasure-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p19-validation-summary > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .p19-main,
  .p19-rank-main {
    width: min(100% - 24px, 1280px);
    padding-top: 16px;
    gap: 13px;
  }

  .p19-card,
  .p19-rk-board,
  .p19-rk-validation,
  .p19-rk-hero {
    padding: 17px;
    border-radius: 17px;
  }

  .p19-hero,
  .p19-focus-list,
  .p19-sector-grid,
  .p19-risk-grid,
  .p19-validation-summary,
  .p19-model-list,
  .p25-performance-kpis,
  .p25-performance-grid,
  .p19-observation-list,
  .p19-full-rank-grid {
    grid-template-columns: 1fr;
  }

  .p19-hero-copy {
    padding: 22px 17px;
  }

  .p19-hero-copy h1 {
    font-size: 29px;
  }

  .p19-section-head {
    align-items: start;
    flex-direction: column;
  }

  .p19-ranking-grid {
    display: flex;
    margin: 0 -17px;
    padding: 0 17px 7px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .p19-ranking-column {
    min-width: min(86vw, 330px);
    scroll-snap-align: start;
  }

  .p19-treasure-grid {
    grid-template-columns: 1fr;
  }

  .p19-rk-validation-head,
  .p19-full-rank-card footer {
    flex-direction: column;
  }

  .p19-rk-models {
    flex-direction: column;
  }

  .p19-rk-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .p19-rk-tabs button {
    flex: 0 0 auto;
  }

  .p21-validation-feed {
    grid-template-columns: 1fr;
  }

  .sa-validation-history-table {
    overflow-x: auto;
  }

  .sa-validation-history-table > div {
    min-width: 540px;
  }

  .sa-validation-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .p30-home-minimal,
  .p30-home-minimal * {
    box-sizing: border-box;
  }

  .p30-home-minimal {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .p30-home-minimal .sl-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .p30-home-minimal .sl-nav {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .p30-home-main {
    width: 100%;
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }

  .p30-home-landing,
  .p30-home-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .p30-home-panel h1,
  .p30-home-lead,
  .p30-home-landing .p19-search,
  .p30-home-landing .p19-search form {
    max-width: 100%;
    min-width: 0;
  }

  .p30-home-panel h1 {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }
}

/* P26 stock page reading hierarchy: compact overview, prominent chart, deferred detail. */
.stock-analysis-page .sa-main {
  gap: 14px;
}

.stock-analysis-page .sa-summary {
  padding: 18px 20px;
}

.stock-analysis-page .sa-summary .page-hero-brand-mark {
  opacity: .3;
}

.stock-analysis-page .sa-summary h1 {
  font-size: clamp(27px, 3.3vw, 38px);
}

.stock-analysis-page .sa-price-row strong {
  font-size: clamp(32px, 4vw, 44px);
}

.stock-analysis-page .sa-score-panel {
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 10px;
}

.stock-analysis-page .sa-score-big {
  padding: 12px 9px;
}

.stock-analysis-page .sa-score-big strong {
  font-size: clamp(38px, 4.7vw, 52px);
}

.sa-hero-badges {
  display: grid;
  gap: 8px;
}

.sa-hero-badges article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px;
  background: rgba(15, 23, 42, .58);
  padding: 11px 12px;
}

.sa-hero-badges span {
  color: #94a3b8;
  font-size: 12px;
}

.sa-hero-badges strong {
  color: #f8fafc;
  font-size: 15px;
}

.sa-hero-badges .is-high strong { color: #6ee7b7; }
.sa-hero-badges .is-medium strong { color: #fde68a; }
.sa-hero-badges .is-low strong { color: #fda4af; }
.sa-hero-badges .is-complete strong { color: #6ee7b7; }
.sa-hero-badges .is-partial strong { color: #fde68a; }
.sa-hero-badges .is-insufficient strong { color: #fda4af; }

.stock-analysis-page .sa-view-switch-wrap {
  margin: 0;
  padding: 10px 13px;
  border-radius: 12px;
}

.stock-analysis-page .sa-view-switch-wrap p {
  font-size: 14px;
}

.stock-analysis-page .sa-mode-brief {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 15px 17px;
  border: 1px solid rgba(244, 114, 182, .18);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(15, 23, 42, .96), rgba(3, 7, 18, .95));
}

.sa-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sa-compact-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 19px;
}

.sa-compact-head > span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.sa-mode-brief ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-mode-brief li {
  display: -webkit-box;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 9px;
  background: rgba(15, 23, 42, .65);
  color: #e2e8f0;
  padding: 10px 11px;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sa-mode-tip {
  overflow: hidden;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stock-analysis-page .sa-chart-card {
  padding: clamp(16px, 2.4vw, 26px);
  border-color: rgba(244, 114, 182, .28);
}

.stock-analysis-page .sa-chart.price {
  min-height: 520px;
}

.stock-analysis-page .sa-chart.volume {
  min-height: 122px;
}

.sa-smart-line-controls.is-compact {
  grid-template-columns: auto repeat(2, minmax(150px, 210px));
  align-items: start;
}

.sa-smart-line-controls.is-compact .sa-smart-master {
  grid-column: 1 / -1;
}

.sa-smart-line-controls.is-compact .sa-line-legend,
.sa-smart-line-controls.is-compact .sa-drawing-note {
  grid-column: 1 / -1;
}

.sa-smart-line-controls.is-compact .sa-drawing-note {
  font-size: 12px;
}

.sa-smart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 12px;
  background: rgba(15, 23, 42, .48);
}

.sa-smart-toolbar__title {
  margin-right: 4px;
  color: #f8fafc;
  font-size: 13px;
}

.sa-smart-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.sa-smart-toolbar input {
  margin: 0;
  accent-color: #f472b6;
}

.sa-smart-toolbar .sa-smart-master {
  border-color: rgba(244, 114, 182, .25);
  color: #fbcfe8;
}

.sa-drawing-note.is-inline-note {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 11px;
}

.sa-highlight-list strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.sa-risk-compact-panel,
.sa-data-strip {
  display: grid;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid rgba(244, 114, 182, .16);
  border-radius: 14px;
  background: rgba(8, 13, 26, .88);
}

.sa-risk-compact-panel .sa-compact-head strong {
  border-radius: 999px;
  padding: 7px 11px;
  color: #e2e8f0;
  background: rgba(148, 163, 184, .12);
  font-size: 14px;
}

.sa-risk-tags,
.sa-data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-risk-tags span,
.sa-data-tags span {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 999px;
  padding: 7px 11px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .62);
  font-size: 13px;
}

.sa-risk-tags .is-warning {
  border-color: rgba(251, 191, 36, .25);
  color: #fde68a;
}

.sa-mini-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-mini-scores span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 9px;
  padding: 7px 10px;
  background: rgba(15, 23, 42, .54);
}

.sa-mini-scores small {
  color: #94a3b8;
  font-size: 12px;
}

.sa-mini-scores b {
  color: #f8fafc;
  font-size: 14px;
}

.sa-data-strip .sa-compact-head > span.is-complete { color: #6ee7b7; }
.sa-data-strip .sa-compact-head > span.is-partial { color: #fde68a; }
.sa-data-strip .sa-compact-head > span.is-insufficient { color: #fda4af; }

.sa-detail-accordions,
.stock-analysis-page .sa-research-accordions {
  display: grid;
  gap: 8px;
  margin: 0;
}

.sa-primary-research-detail {
  order: 0;
}

.sa-primary-research-detail .sa-accordion {
  border-color: rgba(247, 215, 116, .28);
  background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(8, 13, 26, .94));
}

.sa-primary-research-detail .sa-accordion__trigger {
  min-height: 54px;
}

.sa-score-trust-panel {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.sa-score-trust-panel article {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 10px;
  background: rgba(15, 23, 42, .58);
  padding: 14px;
}

.sa-score-trust-panel span {
  display: block;
  margin-bottom: 8px;
  color: #f7d774;
  font-size: 13px;
  font-weight: 900;
}

.sa-score-trust-panel strong {
  display: block;
  color: #f8fafc;
  font-size: 32px;
  line-height: 1.1;
}

.sa-score-trust-panel p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.sa-score-trust-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-score-trust-panel li {
  position: relative;
  min-width: 0;
  padding-left: 18px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sa-score-trust-panel li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
}

.sa-score-trust-panel .is-plus li::before {
  content: "+";
  color: #34d399;
}

.sa-score-trust-panel .is-minus li::before {
  content: "-";
  color: #fb923c;
}

.sa-detail-accordions .sa-accordion__trigger {
  min-height: 48px;
  padding: 11px 15px;
  font-size: 15px;
}

.sa-detail-accordions .sa-accordion__trigger span {
  font-size: 16px;
}

.sa-detail-accordions .sa-breakdown-panel,
.sa-detail-accordions .sa-validation-history-panel {
  box-shadow: none;
}

.sa-detail-data-status {
  display: grid;
  gap: 12px;
}

.sa-detail-data-status > p {
  margin: 0;
  color: #cbd5e1;
}

.sa-detail-data-fields,
.sa-detail-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-detail-data-fields span,
.sa-detail-dates span {
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 8px;
  padding: 8px 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .5);
  font-size: 13px;
}

.sa-detail-dates b {
  margin-right: 6px;
  color: #94a3b8;
}

@media (max-width: 767px) {
  .stock-analysis-page .sa-main {
    gap: 10px;
  }

  .stock-analysis-page .sa-main > *,
  .stock-analysis-page .sa-summary,
  .stock-analysis-page .sa-score-panel,
  .stock-analysis-page .sa-view-switch-wrap,
  .stock-analysis-page .sa-mode-brief,
  .stock-analysis-page .sa-chart-card,
  .stock-analysis-page .sa-highlights-panel,
  .stock-analysis-page .sa-structure-panel,
  .stock-analysis-page .sa-risk-compact-panel,
  .stock-analysis-page .sa-data-strip,
  .stock-analysis-page .sa-detail-accordions,
  .stock-analysis-page .sa-research-panel {
    min-width: 0;
    width: 100%;
  }

  .stock-analysis-page .sa-summary {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .stock-analysis-page .sa-summary .page-hero-brand-mark {
    display: none;
  }

  .stock-analysis-page .sa-score-panel {
    grid-template-columns: 1fr;
  }

  .stock-analysis-page .sa-hero-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-analysis-page .sa-score-big strong {
    font-size: 36px;
  }

  .stock-analysis-page .sa-watch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
  }

  .stock-analysis-page .sa-watch-actions .sa-watch-btn,
  .stock-analysis-page .sa-alert-toggle {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .stock-analysis-page .sa-alert-picker {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .stock-analysis-page .sa-alert-picker label {
    display: none;
  }

  .stock-analysis-page .sa-view-switch-wrap {
    gap: 8px;
  }

  .sa-mode-brief ul {
    grid-template-columns: 1fr;
  }

  .sa-mode-brief li {
    min-width: 0;
    -webkit-line-clamp: unset;
  }

  .sa-mode-tip {
    white-space: normal;
  }

  .stock-analysis-page .sa-chart-card {
    padding: 12px;
  }

  .stock-analysis-page .sa-chart.price {
    min-height: 350px;
  }

  .stock-analysis-page .sa-chart.volume {
    min-height: 94px;
  }

  .sa-smart-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .sa-smart-toolbar__title {
    flex: 0 0 auto;
  }

  .sa-smart-line-controls.is-compact {
    grid-template-columns: 1fr 1fr;
    padding: 9px;
  }

  .sa-highlight-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .sa-highlight-list article {
    min-height: 0;
    padding: 9px 11px;
  }

  .sa-risk-compact-panel,
  .sa-data-strip {
    padding: 12px;
  }

  .sa-mini-scores span {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
    justify-content: space-between;
  }

  .sa-score-trust-panel,
  .sa-model-explain,
  .sa-research-grid {
    grid-template-columns: 1fr;
  }

  .sa-score-trust-panel article,
  .sa-model-explain article,
  .sa-research-grid article {
    min-width: 0;
  }

  .sa-compact-head {
    align-items: flex-start;
  }
}

/* P30-F-0 homepage temporary minimal landing override. Keep at file end. */
@media (max-width: 760px) {
  .p30-home-minimal,
  .p30-home-minimal * {
    box-sizing: border-box;
  }

  .p30-home-minimal {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .p30-home-minimal .sl-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .p30-home-minimal .sl-nav {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .p30-home-main {
    width: 100%;
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }

  .p30-home-landing,
  .p30-home-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .p30-home-panel h1,
  .p30-home-lead,
  .p30-home-landing .p19-search,
  .p30-home-landing .p19-search form {
    max-width: 100%;
    min-width: 0;
  }

  .p30-home-panel h1 {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .p30-home-landing .p19-search form {
    flex-direction: column;
  }

  .p30-home-landing .p19-search button {
    width: 100%;
  }
}
/* P43 public-safe market temperature overlay */
.public-market-temperature {
  display: grid;
  gap: 8px;
  width: min(100%, 620px);
  margin-top: 14px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 10px;
  background: rgba(15, 23, 42, .72);
  color: #e2e8f0;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .22);
}

.public-market-temperature div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-market-temperature span,
.public-market-temperature small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.public-market-temperature strong {
  color: #f8fafc;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1;
}

.public-market-temperature p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.public-market-temperature.is-stale,
.public-market-temperature.is-missing {
  border-color: rgba(251, 191, 36, .42);
}

.market-intel-page .public-market-temperature {
  width: min(100%, 360px);
  margin-top: 0;
}

.home-page .public-market-temperature {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

@media (max-width: 720px) {
  .public-market-temperature div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

.stock-analysis-page .sa-hero-badge.is-credibility-green {
  border-color: rgba(52, 211, 153, 0.36);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.14);
}

.stock-analysis-page .sa-hero-badge.is-credibility-yellow {
  border-color: rgba(250, 204, 21, 0.36);
  color: #fef3c7;
  background: rgba(202, 138, 4, 0.14);
}

.stock-analysis-page .sa-hero-badge.is-credibility-red {
  border-color: rgba(248, 113, 113, 0.38);
  color: #fecaca;
  background: rgba(220, 38, 38, 0.14);
}

.sa-credibility-center {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.24);
}

.sa-credibility-center .sa-section-head {
  align-items: flex-start;
  gap: 18px;
}

.sa-credibility-light {
  display: grid;
  gap: 4px;
  min-width: min(100%, 260px);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.sa-credibility-light span {
  font-size: 1.3rem;
  line-height: 1;
}

.sa-credibility-light strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.sa-credibility-light small {
  color: rgba(226, 232, 240, 0.72);
}

.sa-credibility-light.is-green {
  background: rgba(22, 163, 74, 0.14);
  color: #bbf7d0;
}

.sa-credibility-light.is-yellow {
  background: rgba(202, 138, 4, 0.14);
  color: #fef3c7;
}

.sa-credibility-light.is-red {
  background: rgba(220, 38, 38, 0.14);
  color: #fecaca;
}

.sa-credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sa-credibility-grid article,
.sa-credibility-details article {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.sa-credibility-grid span,
.sa-credibility-details span {
  display: block;
  margin-bottom: 6px;
  color: rgba(203, 213, 225, 0.76);
  font-size: 0.82rem;
}

.sa-credibility-grid strong {
  display: block;
  color: #f8fafc;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sa-credibility-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.sa-credibility-details ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-credibility-details li {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.13);
  color: #e2e8f0;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.sa-credibility-details p {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
}

.sa-credibility-legal {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.82rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .sa-credibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sa-credibility-center {
    padding: 16px;
    border-radius: 14px;
  }

  .sa-credibility-center .sa-section-head,
  .sa-credibility-grid,
  .sa-credibility-details {
    grid-template-columns: 1fr;
  }

  .sa-credibility-grid {
    gap: 10px;
  }
}

/* P57 final cascade override */
.stock-analysis-page .sa-summary-v2 {
  grid-template-columns: minmax(250px, 1.08fr) minmax(230px, 1fr) minmax(230px, 1fr) !important;
  align-items: stretch;
  gap: 14px;
}
.stock-analysis-page .sa-hero-score-core {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 12px;
}
.stock-analysis-page .sa-summary-v2 .sa-score-big {
  min-height: clamp(118px, 14vw, 154px);
  padding: clamp(14px, 2vw, 22px);
}
.stock-analysis-page .sa-summary-v2 .sa-score-big strong {
  font-size: clamp(56px, 8.5vw, 96px) !important;
  line-height: .9;
}
.stock-analysis-page .sa-summary-v2 .sa-score-big span {
  font-size: clamp(14px, 1.8vw, 18px);
}
.stock-analysis-page .sa-score-change-stack {
  min-height: 150px;
  padding: 12px;
  gap: 6px;
}
.stock-analysis-page .sa-hero-change-reasons,
.stock-analysis-page .sa-hero-score-structure {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 12px;
  padding: 16px;
  background: rgba(15, 23, 42, .64);
}
.stock-analysis-page .sa-hero-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}
.stock-analysis-page .sa-hero-panel-title span {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
}
.stock-analysis-page .sa-hero-panel-title strong {
  color: #86efac;
  font-size: 16px;
  white-space: nowrap;
}
.stock-analysis-page .sa-hero-change-reasons.is-negative .sa-hero-panel-title strong { color: #fca5a5; }
.stock-analysis-page .sa-hero-score-route {
  margin: 14px 0 10px;
  color: #e2e8f0;
  font-size: 20px;
  font-weight: 900;
}
.stock-analysis-page .sa-hero-change-reasons ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stock-analysis-page .sa-hero-change-reasons li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}
.stock-analysis-page .sa-hero-change-reasons li span { color: #86efac; font-weight: 950; }
.stock-analysis-page .sa-hero-change-reasons.is-negative li span { color: #fca5a5; }
.stock-analysis-page .sa-hero-change-reasons li b { font-weight: 720; overflow-wrap: anywhere; }
.stock-analysis-page .sa-hero-reason-empty { margin: 18px 0 0; color: #94a3b8; line-height: 1.6; }
.stock-analysis-page .sa-score-structure-list { display: grid; gap: 16px; margin-top: 16px; }
.stock-analysis-page .sa-score-structure-row > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #cbd5e1;
  font-size: 13px;
}
.stock-analysis-page .sa-score-structure-row strong { color: #f8fafc; }
.stock-analysis-page .sa-score-structure-row > i {
  display: block;
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .16);
}
.stock-analysis-page .sa-score-structure-row > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #38bdf8;
}
.stock-analysis-page .sa-hero-meta-row { grid-column: 1 / -1; }
@media (max-width: 980px) {
  .stock-analysis-page .sa-summary-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stock-analysis-page .sa-hero-score-structure { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .stock-analysis-page .sa-summary-v2 { grid-template-columns: 1fr !important; }
  .stock-analysis-page .sa-hero-score-structure { grid-column: auto; }
  .stock-analysis-page .sa-summary-v2 .sa-score-big { min-height: 116px; }
  .stock-analysis-page .sa-summary-v2 .sa-score-big strong { font-size: clamp(52px, 18vw, 72px) !important; }
  .stock-analysis-page .sa-score-change-stack { min-height: 0; }
}

/* P58 ranking reasons and daily changes */
.p58-rank-move {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.p58-rank-move.is-up { color: #86efac; }
.p58-rank-move.is-down { color: #fca5a5; }
.p58-rank-move.is-new { color: #93c5fd; }
.p58-rank-move.is-flat { color: #94a3b8; }
.p19-rk-tags .p58-data-status {
  margin-left: auto;
  border: 1px solid rgba(251, 191, 36, .22);
  color: #fde68a;
  background: rgba(202, 138, 4, .1);
}
.p58-ranking-reasons {
  margin: 10px 0 12px;
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 9px;
  background: rgba(148, 163, 184, .06);
}
.p58-ranking-reasons > strong {
  display: block;
  margin-bottom: 5px;
  color: #e2e8f0;
  font-size: 12px;
}
.p58-ranking-reasons ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p58-ranking-reasons li,
.p58-ranking-reasons p {
  min-height: 0;
  margin: 0;
  color: #b7bac9;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.p58-home-changes {
  width: min(100%, 980px);
  margin-inline: auto;
}
.p58-change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.p58-change-column {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 11px;
  padding: 13px;
  background: rgba(15, 23, 42, .48);
}
.p58-change-column h3 {
  margin: 0 0 9px;
  color: #f8fafc;
  font-size: 15px;
}
.p58-change-column a {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-top: 1px solid rgba(148, 163, 184, .11);
  color: #e2e8f0;
  text-decoration: none;
}
.p58-change-column a > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.p58-change-column a strong,
.p58-change-column a b {
  font-size: 13px;
}
.p58-change-column.is-up a b { color: #86efac; }
.p58-change-column.is-down a b { color: #fca5a5; }
.p58-change-column a small {
  color: #94a3b8;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .p58-change-grid { grid-template-columns: 1fr; }
  .p58-ranking-reasons { padding: 9px; }
  .p19-full-rank-head { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* P59 watchlist daily change center */
.p59-watchlist { gap: 18px; }
.p59-summary,
.p59-list-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 16px;
  background: rgba(10, 16, 30, .82);
  padding: 18px;
}
.p59-summary-head,
.p59-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.p59-summary-head h2,
.p59-list-head h2 { margin: 0; color: #f8fafc; }
.p59-summary-head p { margin: 5px 0 0; color: #94a3b8; font-size: 13px; }
.p59-summary-head > span { color: #cbd5e1; font-size: 13px; white-space: nowrap; }
.p59-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.p59-summary-grid button {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 11px;
  padding: 11px 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .6);
  text-align: left;
  cursor: pointer;
}
.p59-summary-grid button:hover,
.p59-summary-grid button.is-active { border-color: rgba(56, 189, 248, .42); background: rgba(14, 116, 144, .15); }
.p59-summary-grid span { display: block; font-size: 12px; }
.p59-summary-grid strong { display: block; margin-top: 4px; color: #f8fafc; font-size: 22px; }
.p59-login-prompt { grid-column: 1 / -1; color: #93c5fd; text-align: center; }
.p59-hero-login { display: inline-flex; margin-top: 10px; }
.p59-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.p59-controls label { display: flex; align-items: center; gap: 6px; color: #94a3b8; font-size: 12px; }
.p59-controls select {
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  padding: 5px 28px 5px 9px;
  color: #e2e8f0;
  background: #111827;
}
.watchlist-page .p59-controls select { height: 44px; min-height: 44px; }
.p59-watchlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.p59-watch-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 13px;
  padding: 14px;
  background: rgba(15, 23, 42, .56);
}
.p59-watch-card > header,
.p59-watch-card > footer,
.p59-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.p59-watch-card > header a { min-width: 0; color: #f8fafc; text-decoration: none; }
.p59-watch-card > header strong,
.p59-watch-card > header small { display: block; overflow-wrap: anywhere; }
.p59-watch-card > header small { margin-top: 3px; color: #94a3b8; font-size: 11px; }
.p59-data-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  color: #bbf7d0;
  background: rgba(22, 163, 74, .14);
  font-size: 10px;
  white-space: nowrap;
}
.p59-data-status.is-partial { color: #fde68a; background: rgba(202, 138, 4, .15); }
.p59-data-status.is-insufficient { color: #fecaca; background: rgba(220, 38, 38, .14); }
.p59-score-row { align-items: flex-end; padding: 10px; border-radius: 10px; background: rgba(2, 6, 23, .36); }
.p59-score-row > div span { display: block; color: #94a3b8; font-size: 11px; }
.p59-score-row > div b { display: block; margin-top: 3px; color: #f8fafc; font-size: 19px; }
.p59-change { font-size: 15px; font-weight: 900; white-space: nowrap; }
.p59-change.is-up { color: #86efac; }
.p59-change.is-down { color: #fca5a5; }
.p59-change.is-flat,
.p59-change.is-missing { color: #94a3b8; }
.p59-reason-block > span { color: #94a3b8; font-size: 11px; }
.p59-reasons { display: grid; gap: 5px; margin: 6px 0 0; padding: 0; list-style: none; }
.p59-reasons li { color: #e2e8f0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.p59-reasons li::before { content: "✓"; margin-right: 6px; color: #7dd3fc; }
.p59-reason-empty { margin: 6px 0 0; color: #94a3b8; font-size: 12px; }
.p59-new-risks,
.p59-current-risks { display: grid; gap: 4px; border-radius: 9px; padding: 9px 10px; background: rgba(127, 29, 29, .12); }
.p59-new-risks strong,
.p59-current-risks strong { color: #fca5a5; font-size: 12px; }
.p59-new-risks span,
.p59-current-risks span { color: #fecaca; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.p59-watch-card > footer { align-items: flex-end; border-top: 1px solid rgba(148, 163, 184, .11); padding-top: 10px; }
.p59-watch-card .wl-alert-settings { display: flex; flex-wrap: wrap; gap: 5px 9px; min-width: 0; }
.p59-watch-card .wl-alert-settings label { color: #94a3b8; font-size: 10px; }
.p59-watch-card .wl-remove { flex: 0 0 auto; }
.p59-watchlist-grid .rk-empty { grid-column: 1 / -1; display: grid; gap: 5px; text-align: center; }

@media (max-width: 760px) {
  .p59-summary,
  .p59-list-card { padding: 13px; }
  .p59-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p59-list-head { align-items: stretch; flex-direction: column; }
  .p59-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .p59-controls label { align-items: stretch; flex-direction: column; }
  .p59-controls select { width: 100%; min-width: 0; }
  .p59-watchlist-grid { grid-template-columns: 1fr; }
  .p59-watch-card { padding: 12px; }
  .p59-score-row { align-items: stretch; flex-wrap: wrap; }
  .p59-change { width: 100%; padding-top: 6px; border-top: 1px solid rgba(148, 163, 184, .1); }
  .p59-watch-card > footer { align-items: stretch; flex-direction: column; }
  .p59-watch-card .wl-remove { align-self: flex-end; }
}

@media (max-width: 390px) {
  .p59-summary-head { align-items: stretch; flex-direction: column; }
  .p59-summary-grid { gap: 8px; }
  .p59-summary-grid button { padding: 9px; }
  .p59-watch-card > header { align-items: flex-start; }
}

/* P60 stock page information order, Taiwan market colors, and mobile trim */
.stock-analysis-page .sa-smart-toolbar {
  gap: 8px;
  margin: 14px 0 8px;
  padding: 12px;
  border-color: rgba(244, 114, 182, .3);
  background: linear-gradient(135deg, rgba(30, 41, 59, .82), rgba(15, 23, 42, .72));
}
.stock-analysis-page .sa-smart-toolbar__title {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 950;
}
.stock-analysis-page .sa-smart-toolbar label {
  min-height: 38px;
  padding: 8px 12px;
  border-color: rgba(148, 163, 184, .25);
  color: #e2e8f0;
  background: rgba(15, 23, 42, .8);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.stock-analysis-page .sa-smart-toolbar label:has(input:checked) {
  border-color: rgba(248, 113, 113, .58);
  color: #fecaca;
  background: rgba(185, 28, 28, .2);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .14);
}
.stock-analysis-page .sa-smart-toolbar input { accent-color: #ef4444; }
.stock-analysis-page .sa-drawing-note.is-inline-note {
  margin-bottom: 9px;
  color: #94a3b8;
  font-size: 12px;
}

.stock-analysis-page .sa-kline-diagnostic {
  display: block;
  margin: 8px 0 12px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 9px;
  padding: 0;
  color: #94a3b8;
  background: rgba(15, 23, 42, .42);
}
.stock-analysis-page .sa-kline-diagnostic summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.stock-analysis-page .sa-kline-diagnostic > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 0 11px 10px;
  font-size: 11px;
}

.stock-analysis-page .sa-highlight-list article.is-bullish,
.stock-analysis-page .sa-structure-items .is-bullish {
  border-color: #ef4444;
  background: rgba(185, 28, 28, .12);
}
.stock-analysis-page .sa-highlight-list article.is-bullish strong,
.stock-analysis-page .sa-structure-items .is-bullish strong { color: #fca5a5; }
.stock-analysis-page .sa-highlight-list article.is-bearish,
.stock-analysis-page .sa-structure-items .is-bearish {
  border-color: #22c55e;
  background: rgba(21, 128, 61, .12);
}
.stock-analysis-page .sa-highlight-list article.is-bearish strong,
.stock-analysis-page .sa-structure-items .is-bearish strong { color: #86efac; }
.stock-analysis-page .sa-highlight-list article.is-warning,
.stock-analysis-page .sa-structure-items .is-warning {
  border-color: #f59e0b;
  background: rgba(180, 83, 9, .12);
}
.stock-analysis-page .sa-highlight-list article.is-warning strong,
.stock-analysis-page .sa-structure-items .is-warning strong { color: #fde68a; }
.stock-analysis-page .sa-highlight-list article.is-neutral,
.stock-analysis-page .sa-structure-items .is-neutral {
  border-color: #64748b;
  background: rgba(71, 85, 105, .1);
}
.stock-analysis-page .sa-highlight-list article.is-neutral strong,
.stock-analysis-page .sa-structure-items .is-neutral strong { color: #cbd5e1; }

.stock-analysis-page .is-up,
.stock-analysis-page .is-positive,
.stock-analysis-page .is-strength,
.stock-analysis-page .sa-chip-reasons .is-plus { color: #f87171; }
.stock-analysis-page .is-down,
.stock-analysis-page .is-negative,
.stock-analysis-page .sa-chip-reasons .is-minus { color: #4ade80; }
.stock-analysis-page .sa-score-change-stack.is-up .sa-score-change-direction b,
.stock-analysis-page .sa-score-change-stack.is-up .sa-score-change-direction em,
.stock-analysis-page .sa-score-change-stack.is-up .sa-score-change-delta,
.stock-analysis-page .sa-hero-change-reasons:not(.is-negative) .sa-hero-panel-title strong,
.stock-analysis-page .sa-hero-change-reasons:not(.is-negative) li span { color: #f87171; }
.stock-analysis-page .sa-score-change-stack.is-down .sa-score-change-direction b,
.stock-analysis-page .sa-score-change-stack.is-down .sa-score-change-direction em,
.stock-analysis-page .sa-score-change-stack.is-down .sa-score-change-delta,
.stock-analysis-page .sa-hero-change-reasons.is-negative .sa-hero-panel-title strong,
.stock-analysis-page .sa-hero-change-reasons.is-negative li span { color: #4ade80; }
.stock-analysis-page .sa-risk-tags .is-warning,
.stock-analysis-page .sa-insight-card.is-risk { color: #fde68a; border-color: rgba(245, 158, 11, .4); }

.stock-analysis-page .sa-highlight-more {
  display: none;
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .62);
}

.stock-analysis-page .sa-credibility-footer { order: 999; }
.stock-analysis-page .sa-credibility-accordion {
  border-color: rgba(148, 163, 184, .14);
  background: rgba(15, 23, 42, .4);
}
.stock-analysis-page .sa-credibility-accordion .sa-accordion__trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
}
.stock-analysis-page .sa-credibility-accordion .sa-accordion__trigger small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}
.stock-analysis-page .sa-credibility-accordion .sa-credibility-center {
  border: 0;
  border-radius: 0;
  padding: 16px;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 767px) {
  .stock-analysis-page .sa-view-switch-wrap {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 8px;
  }
  .stock-analysis-page .sa-view-switch-wrap > p { margin: 0; font-size: 11px; }
  .stock-analysis-page .sa-view-switch button { min-height: 36px; padding: 7px 10px; }
  .stock-analysis-page .sa-smart-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 10px;
  }
  .stock-analysis-page .sa-smart-toolbar__title {
    flex: 1 0 100%;
    margin: 0 0 2px;
    font-size: 16px;
  }
  .stock-analysis-page .sa-smart-toolbar label {
    min-height: 40px;
    flex: 1 1 calc(33.333% - 8px);
    justify-content: center;
    padding: 8px 10px;
    font-size: 14px;
  }
  .stock-analysis-page .sa-kline-diagnostic:not([open]) > div { display: none; }
  .stock-analysis-page .sa-highlight-list .is-mobile-extra { display: none; }
  .stock-analysis-page .sa-highlights-panel.is-expanded .sa-highlight-list .is-mobile-extra { display: grid; }
  .stock-analysis-page .sa-highlight-more { display: block; }
  .stock-analysis-page .sa-credibility-accordion .sa-accordion__trigger {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .stock-analysis-page .sa-credibility-accordion .sa-accordion__trigger small {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .stock-analysis-page .sa-credibility-accordion .sa-credibility-center { padding: 11px; }
}

.stock-analysis-page .derived-factor-cards {
  margin-top: 10px;
  max-width: 100%;
}

.stock-analysis-page .stocklab-insight {
  margin-top: 12px;
  max-width: 100%;
}

.stock-analysis-page .stocklab-insight__head {
  margin: 0 0 10px;
}

.stock-analysis-page .stocklab-insight__head p,
.stock-analysis-page .stocklab-insight__empty {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
}

.stock-analysis-page .stocklab-insight__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 100%;
}

.stock-analysis-page .stocklab-insight-capsule {
  min-width: 0;
  max-width: 100%;
  height: 100%;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 20px;
  background: rgba(15, 23, 42, .58);
  box-shadow: 0 16px 38px rgba(2, 6, 23, .18);
  overflow: hidden;
}

.stock-analysis-page .stocklab-insight-capsule__summary {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  border: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 5px 10px;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.stock-analysis-page .stocklab-insight-capsule__summary:focus-visible {
  outline: 2px solid rgba(96, 165, 250, .72);
  outline-offset: -3px;
}

.stock-analysis-page .stocklab-insight-capsule__icon {
  grid-row: span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(96, 165, 250, .13);
}

.stock-analysis-page .stocklab-insight-capsule__module,
.stock-analysis-page .derived-factor-card__module {
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1.25;
}

.stock-analysis-page .stocklab-insight-capsule__conclusion,
.stock-analysis-page .derived-factor-card__conclusion {
  color: #e5edf7;
  font-size: clamp(21px, 2.9vw, 29px);
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.stock-analysis-page .stocklab-insight-capsule__benchmark,
.stock-analysis-page .derived-factor-card__benchmark {
  color: #a8b3c4;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stock-analysis-page .stocklab-insight-capsule__details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 14px;
  transition: max-height .18s cubic-bezier(.2, .8, .2, 1), opacity .18s cubic-bezier(.2, .8, .2, 1), padding-bottom .18s cubic-bezier(.2, .8, .2, 1);
}

.stock-analysis-page .stocklab-insight-capsule.is-expanded .stocklab-insight-capsule__details {
  max-height: 360px;
  opacity: 1;
  padding-bottom: 14px;
}

.stock-analysis-page .stocklab-insight-capsule__details p {
  margin: 0 0 10px;
  color: #cbd5e1;
  line-height: 1.6;
}

.stock-analysis-page .stocklab-insight-capsule__details ul {
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.stock-analysis-page .stocklab-insight-capsule__details li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  padding-top: 7px;
}

.stock-analysis-page .stocklab-insight-capsule__details span,
.stock-analysis-page .stocklab-insight-capsule__muted,
.stock-analysis-page .stocklab-insight-capsule__meta {
  color: #94a3b8;
}

.stock-analysis-page .stocklab-insight-capsule__details b {
  color: #e2e8f0;
  font-weight: 850;
  text-align: right;
}

.stock-analysis-page .stocklab-insight-capsule__meta {
  margin-bottom: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.stock-analysis-page .derived-factor-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 100%;
}

.stock-analysis-page .derived-factor-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 20px;
  padding: 16px;
  background: rgba(15, 23, 42, .56);
  box-shadow: 0 14px 34px rgba(2, 6, 23, .18);
}

.stock-analysis-page .derived-factor-card__language {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
}

.stock-analysis-page .derived-factor-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.stock-analysis-page .derived-factor-card__head h3 {
  margin: 0;
  color: #e5edf7;
  font-size: 16px;
}

.stock-analysis-page .derived-factor-card__head span {
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  padding: 4px 9px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, .7);
}

.stock-analysis-page .derived-factor-card__metric {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.stock-analysis-page .derived-factor-card__metric span,
.stock-analysis-page .derived-factor-card__secondary span,
.stock-analysis-page .derived-factor-card__meta,
.stock-analysis-page .derived-factor-card__source {
  color: #94a3b8;
}

.stock-analysis-page .derived-factor-card__metric strong {
  color: #f8fafc;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.05;
}

.stock-analysis-page .derived-factor-card__secondary {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.stock-analysis-page .derived-factor-card__secondary li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  padding-top: 7px;
}

.stock-analysis-page .derived-factor-card__secondary b {
  color: #e2e8f0;
  font-weight: 850;
  text-align: right;
}

.stock-analysis-page .derived-factor-card__note {
  margin: 0 0 10px;
  color: #cbd5e1;
  line-height: 1.65;
}

.stock-analysis-page .derived-factor-card__details {
  margin-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}

.stock-analysis-page .derived-factor-card__details > summary,
.stock-analysis-page .derived-factor-cards__shared-meta > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  color: #9ed8ff;
  font-size: 13px;
  font-weight: 800;
}

/* Interactive factor cards: summaries remain comparable; one chosen card reveals the evidence. */
.stock-analysis-page .derived-factor-card { padding: 0; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.stock-analysis-page .derived-factor-card.is-active { border-color: rgba(125, 211, 252, .58); box-shadow: 0 18px 38px rgba(14, 116, 144, .20); transform: translateY(-2px); }
.stock-analysis-page .derived-factor-card__toggle { display: grid; width: 100%; min-height: 214px; padding: 18px; border: 0; color: inherit; cursor: pointer; font: inherit; text-align: left; background: transparent; }
.stock-analysis-page .derived-factor-card__toggle:hover { background: rgba(30, 41, 59, .28); }
.stock-analysis-page .derived-factor-card__toggle:focus-visible { outline: 3px solid rgba(125, 211, 252, .82); outline-offset: -3px; }
.stock-analysis-page .derived-factor-card__hint { align-self: end; margin-top: 14px; color: #9ed8ff; font-size: 13px; font-weight: 850; }
.stock-analysis-page .derived-factor-card__hint::after { content: '  →'; }
.stock-analysis-page .derived-factor-card.is-active .derived-factor-card__hint::after { content: '  ↑'; }
.stock-analysis-page .derived-factor-card__details { display: grid; gap: 10px; margin: 0; padding: 0 18px 18px; border-top: 1px solid rgba(148, 163, 184, .14); }
.stock-analysis-page .derived-factor-card__details .derived-factor-card__secondary { margin: 0; padding-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .stock-analysis-page .derived-factor-card { transition: none; }
}

.stock-analysis-page .derived-factor-card__secondary--details {
  margin-top: 0;
}

.stock-analysis-page .derived-factor-card__meta,
.stock-analysis-page .derived-factor-card__source,
.stock-analysis-page .derived-factor-card__empty {
  display: block;
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.stock-analysis-page .derived-factor-card.is-watch .derived-factor-card__head span,
.stock-analysis-page .derived-factor-card.is-neutral .derived-factor-card__head span {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, .26);
  background: rgba(37, 99, 235, .13);
}

.stock-analysis-page .derived-factor-card.is-caution .derived-factor-card__head span {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, .28);
  background: rgba(146, 64, 14, .18);
}

.stock-analysis-page .derived-factor-card.is-insufficient .derived-factor-card__head span {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, .22);
}

@media (max-width: 1024px) {
  .stock-analysis-page .stocklab-insight__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stock-analysis-page .derived-factor-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .stock-analysis-page .derived-factor-cards,
  .stock-analysis-page .stocklab-insight {
    margin-top: 8px;
  }

  .stock-analysis-page .stocklab-insight__head {
    margin-bottom: 10px;
  }

  .stock-analysis-page .stocklab-insight__head p {
    font-size: 13px;
    line-height: 1.45;
  }

  .stock-analysis-page .stocklab-insight__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .stock-analysis-page .stocklab-insight-capsule__summary {
    min-height: 104px;
    padding: 11px;
    gap: 4px 8px;
  }

  .stock-analysis-page .stocklab-insight-capsule__icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .stock-analysis-page .stocklab-insight-capsule__conclusion,
  .stock-analysis-page .derived-factor-card__conclusion {
    font-size: clamp(20px, 6vw, 26px);
  }

  .stock-analysis-page .stocklab-insight-capsule__benchmark,
  .stock-analysis-page .derived-factor-card__benchmark {
    font-size: 12.5px;
  }

  .stock-analysis-page .stocklab-insight-capsule__details li {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .stock-analysis-page .stocklab-insight-capsule__details b {
    text-align: left;
  }

  .stock-analysis-page .derived-factor-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stock-analysis-page .derived-factor-card {
    border-radius: 18px;
    padding: 13px;
  }
  .stock-analysis-page .derived-factor-card__language {
    gap: 4px;
    margin-bottom: 10px;
  }
  .stock-analysis-page .derived-factor-card__head {
    margin-bottom: 10px;
  }
  .stock-analysis-page .derived-factor-card__metric {
    margin-bottom: 10px;
  }
  .stock-analysis-page .derived-factor-card__secondary {
    gap: 6px;
    margin-bottom: 10px;
  }
  .stock-analysis-page .derived-factor-card__secondary li {
    gap: 7px;
  }
  .stock-analysis-page .derived-factor-card__secondary b {
    text-align: right;
  }
  .stock-analysis-page .derived-factor-card__note {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin-bottom: 8px;
  }
}

.stock-analysis-page .derived-factor-cards__mobile-disclosure {
  display: block;
  margin-top: 12px;
  padding: 0 13px 13px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  color: #94a3b8;
  background: rgba(15, 23, 42, .48);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .stock-analysis-page .derived-factor-cards__mobile-disclosure p { margin: 0; }
}

@media (max-width: 420px) {
  .stock-analysis-page .derived-factor-cards__grid {
    grid-template-columns: 1fr;
  }
}

/* P71C: StockLab Design System v1.0 shared component consistency.
   Protected: do not alter homepage background image, gradients, leather texture, or visual mood. */
body.michelle-theme :where(
  .gs-card,
  .gs-panel,
  .gs-feature,
  .gs-stock-card,
  .gs-news-card,
  .gs-legacy-card,
  .gs-dashboard,
  .gs-prob-card,
  .gs-score-card,
  .gs-chart-card,
  .gs-factor,
  .gs-feature-card,
  .gs-intent-box,
  .gs-backtest-box,
  .rk-table-card,
  .p59-list-card,
  .mi-card,
  .mi-temperature-card,
  .hm-live-card,
  .hm-control-panel,
  .hm-scale-panel,
  .p73b-form,
  .gs-glass-card
) {
  border-radius: var(--sl-radius-lg);
  border-color: var(--sl-card-border);
  box-shadow: var(--sl-shadow-sm);
}

body.michelle-theme :where(
  .gs-card,
  .gs-panel,
  .gs-feature,
  .gs-stock-card,
  .gs-news-card,
  .gs-legacy-card,
  .mi-card,
  .hm-control-panel,
  .hm-scale-panel,
  .p73b-form,
  .gs-glass-card
) {
  padding: clamp(var(--sl-space-lg), 2.4vw, var(--sl-space-xl));
}

.stock-analysis-page :where(
  .stocklab-insight-capsule,
  .derived-factor-card
) {
  border-radius: var(--sl-radius-lg);
  border-color: rgba(148, 163, 184, .18);
  box-shadow: 0 16px 42px rgba(2, 6, 23, .18);
}

body.michelle-theme :where(
  .gs-btn,
  .gs-premium-btn,
  .sl-btn-primary,
  .sl-btn-secondary,
  .sl-login-link,
  .sl-register-link,
  .sa-watch-btn,
  .gs-news-tabs button,
  .gs-segmented button
) {
  min-height: 44px;
  border-radius: var(--sl-radius-md);
  padding-inline: var(--sl-space-lg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, filter .18s ease;
}

body.michelle-theme :where(
  .gs-btn,
  .gs-premium-btn,
  .sl-btn-primary,
  .sl-btn-secondary,
  .sl-login-link,
  .sl-register-link,
  .sa-watch-btn,
  .gs-news-tabs button,
  .gs-segmented button
):hover {
  transform: translateY(-1px);
}

body.michelle-theme :where(
  .gs-btn,
  .gs-premium-btn,
  .sl-btn-primary,
  .sl-btn-secondary,
  .sl-login-link,
  .sl-register-link,
  .sa-watch-btn,
  .gs-news-tabs button,
  .gs-segmented button
):disabled,
body.michelle-theme :where(
  .gs-btn,
  .gs-premium-btn,
  .sl-btn-primary,
  .sl-btn-secondary,
  .sl-login-link,
  .sl-register-link,
  .sa-watch-btn,
  .gs-news-tabs button,
  .gs-segmented button
)[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
}

body.michelle-theme :where(
  .p61-nav-badge,
  .gs-tag,
  .sl-market-badge,
  .sl-plan-badge,
  .mk-status-badge,
  .rk-data-status,
  .job-status,
  .sa-source-status,
  .mi-hero-status,
  .mi-index-pill,
  .sa-hero-badge,
  .derived-factor-card__head span
) {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

body.michelle-theme :where(
  .gs-section__head h2,
  .p19-section-head h2,
  .mi-card-head h2,
  .hm-hero-v2 h1,
  .rk-hero h1,
  .p73b-hero h1,
  .stock-analysis-page .sa-section-title
) {
  line-height: 1.18;
  letter-spacing: -.01em;
}

body.michelle-theme :where(
  .gs-section__head p,
  .mi-card-head span,
  .hm-hero-v2 p,
  .rk-hero p,
  .p73b-hero p,
  .stock-analysis-page .derived-factor-card__benchmark,
  .stock-analysis-page .stocklab-insight-capsule__benchmark
) {
  color: var(--sl-muted-text);
}

body.michelle-theme :where(
  .gs-card,
  .gs-panel,
  .gs-feature,
  .gs-stock-card,
  .gs-news-card,
  .gs-legacy-card,
  .rk-table-card,
  .mi-card,
  .hm-live-card,
  .hm-control-panel,
  .hm-scale-panel,
  .p73b-form,
  .stock-analysis-page .stocklab-insight-capsule,
  .stock-analysis-page .derived-factor-card
) {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  body.michelle-theme :where(
    .gs-card,
    .gs-panel,
    .gs-feature,
    .gs-stock-card,
    .gs-news-card,
    .gs-legacy-card,
    .rk-table-card,
    .p59-list-card,
    .mi-card,
    .mi-temperature-card,
    .hm-live-card,
    .hm-control-panel,
    .hm-scale-panel,
    .p73b-form,
    .gs-glass-card
  ) {
    border-radius: var(--sl-radius-md);
    padding: var(--sl-space-lg);
  }

  body.michelle-theme :where(
    .gs-section,
    .sl-section,
    .mi-section,
    .hm-results,
    .p59-watchlist-shell
  ) {
    gap: var(--sl-space-md);
  }

  body.michelle-theme :where(
    .gs-btn,
    .gs-premium-btn,
    .sl-btn-primary,
    .sl-btn-secondary,
    .sl-login-link,
    .sl-register-link,
    .sa-watch-btn
  ) {
    min-height: 44px;
    padding-inline: var(--sl-space-md);
  }
}

/* P71D: StockLab Interaction Design System v1.0.
   CSS-only interaction polish. Protected: homepage background image, gradients, leather texture, and visual mood remain unchanged. */
body.michelle-theme :where(
  a,
  button,
  input,
  select,
  textarea,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: none;
  box-shadow: var(--sl-focus-ring);
}

body.michelle-theme :where(
  .gs-btn,
  .gs-premium-btn,
  .sl-btn-primary,
  .sl-btn-secondary,
  .sl-login-link,
  .sl-register-link,
  .sa-watch-btn,
  .gs-news-tabs button,
  .gs-segmented button
) {
  transition-duration: var(--sl-transition-fast);
  transition-timing-function: var(--sl-ease-standard);
}

body.michelle-theme :where(
  .gs-btn,
  .gs-premium-btn,
  .sl-btn-primary,
  .sl-btn-secondary,
  .sl-login-link,
  .sl-register-link,
  .sa-watch-btn,
  .gs-news-tabs button,
  .gs-segmented button
):active {
  transform: translateY(0) scale(.99);
  filter: brightness(.98);
}

/* P73: stock page information hierarchy fix.
   Scoped to stock page only; homepage background/leather asset remains protected and unchanged. */
.stock-analysis-page .sa-classic-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(188px, 248px);
  align-items: stretch;
  gap: clamp(14px, 2.6vw, 24px);
  min-width: 0;
}

.stock-analysis-page .sa-classic-identity {
  min-width: 0;
}

.stock-analysis-page .sa-hero-current-score {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 158px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, .20), transparent 34%),
    rgba(15, 23, 42, .72);
  box-shadow: 0 18px 42px rgba(2, 6, 23, .24);
  padding: 18px;
  text-align: center;
}

.stock-analysis-page .sa-hero-current-score span,
.stock-analysis-page .sa-score-detail-summary span,
.stock-analysis-page .sa-score-detail-summary small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
}

.stock-analysis-page .sa-hero-current-score strong {
  color: #f8fafc;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 950;
  line-height: .9;
}

.stock-analysis-page .sa-hero-current-score small {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.stock-analysis-page .sa-hero-beta-status {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 158px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, .20), transparent 34%),
    rgba(15, 23, 42, .72);
  box-shadow: 0 18px 42px rgba(2, 6, 23, .24);
  padding: 18px;
}

.stock-analysis-page .sa-hero-beta-status span,
.stock-analysis-page .sa-hero-beta-status small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
}

.stock-analysis-page .sa-hero-beta-status strong {
  color: #f8fafc;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 920;
  line-height: 1.3;
}

.stock-analysis-page .sa-hero-beta-status small {
  color: #cbd5e1;
  letter-spacing: normal;
  line-height: 1.35;
}

.stock-analysis-page .sa-score-detail-summary {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--sa-line);
  border-radius: 14px;
  background: rgba(2, 6, 23, .32);
  padding: 14px;
}

.stock-analysis-page .sa-score-detail-summary strong {
  color: #e5edf7;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 920;
  line-height: 1;
}

@media (max-width: 760px) {
  .stock-analysis-page .sa-classic-hero__main {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stock-analysis-page .sa-hero-current-score {
    justify-items: start;
    min-height: auto;
    padding: 14px;
    text-align: left;
  }

  .stock-analysis-page .sa-hero-current-score strong {
    font-size: clamp(42px, 14vw, 58px);
  }

  .stock-analysis-page .sa-hero-beta-status {
    min-height: auto;
    padding: 14px;
  }

  .stock-analysis-page .sa-score-layout {
    grid-template-columns: 1fr;
  }
}

body.michelle-theme :where(
  .gs-card,
  .gs-panel,
  .gs-feature,
  .gs-stock-card,
  .gs-news-card,
  .gs-legacy-card,
  .rk-table-card,
  .mi-card,
  .hm-live-card,
  .hm-control-panel,
  .hm-scale-panel,
  .p73b-form,
  .stock-analysis-page .derived-factor-card,
  .stock-analysis-page .stocklab-insight-capsule
) {
  transition:
    transform var(--sl-transition-normal) var(--sl-ease-standard),
    box-shadow var(--sl-transition-normal) var(--sl-ease-standard),
    border-color var(--sl-transition-fast) var(--sl-ease-standard),
    background var(--sl-transition-fast) var(--sl-ease-standard);
}

body.michelle-theme :where(
  .gs-card,
  .gs-feature,
  .gs-stock-card,
  .gs-news-card,
  .rk-table-card,
  .mi-card,
  .hm-live-card,
  .stock-analysis-page .derived-factor-card,
  .stock-analysis-page .stocklab-insight-capsule
):hover {
  transform: var(--sl-hover-lift);
  border-color: rgba(148, 163, 184, .28);
  box-shadow: var(--sl-shadow-md);
}

body.michelle-theme :where(
  .gs-card,
  .gs-panel,
  .gs-feature,
  .gs-stock-card,
  .gs-news-card,
  .gs-legacy-card,
  .rk-table-card,
  .mi-card,
  .hm-control-panel,
  .hm-scale-panel,
  .p73b-form,
  .stock-analysis-page .derived-factor-card,
  .stock-analysis-page .stocklab-insight-capsule
):focus-within {
  border-color: rgba(96, 165, 250, .42);
  box-shadow: var(--sl-shadow-sm), var(--sl-focus-ring);
}

.stock-analysis-page .stocklab-insight-capsule__summary {
  cursor: pointer;
  transition:
    transform var(--sl-transition-fast) var(--sl-ease-standard),
    background var(--sl-transition-fast) var(--sl-ease-standard),
    border-color var(--sl-transition-fast) var(--sl-ease-standard);
}

.stock-analysis-page .stocklab-insight-capsule__summary:hover {
  transform: var(--sl-hover-lift);
}

.stock-analysis-page .stocklab-insight-capsule__summary:active {
  transform: translateY(0) scale(.99);
}

.stock-analysis-page .stocklab-insight-capsule__summary:focus-visible {
  outline: none;
  box-shadow: var(--sl-focus-ring);
}

.stock-analysis-page .stocklab-insight-capsule__details {
  transition:
    max-height var(--sl-transition-normal) var(--sl-ease-standard),
    opacity var(--sl-transition-normal) var(--sl-ease-standard),
    padding-bottom var(--sl-transition-normal) var(--sl-ease-standard);
}

body.michelle-theme :where(
  .p61-nav-badge,
  .gs-tag,
  .sl-market-badge,
  .sl-plan-badge,
  .mk-status-badge,
  .rk-data-status,
  .job-status,
  .sa-source-status,
  .mi-hero-status,
  .mi-index-pill,
  .sa-hero-badge,
  .derived-factor-card__head span
) {
  transition:
    background var(--sl-transition-fast) var(--sl-ease-standard),
    border-color var(--sl-transition-fast) var(--sl-ease-standard),
    color var(--sl-transition-fast) var(--sl-ease-standard);
}

body.michelle-theme :where(
  .gs-empty,
  .gs-loading,
  .gs-error,
  .sl-empty,
  .sa-empty,
  .rk-empty,
  .p19-empty,
  .p19-loading,
  .p19-error,
  .mk-chart-empty,
  .wl-alert-empty,
  .hm-empty-group,
  .stock-analysis-page .stocklab-insight__empty,
  .stock-analysis-page .derived-factor-card__empty
) {
  border-radius: var(--sl-radius-md);
  border: 1px solid var(--sl-card-border);
  transition:
    border-color var(--sl-transition-fast) var(--sl-ease-standard),
    background var(--sl-transition-fast) var(--sl-ease-standard),
    opacity var(--sl-transition-fast) var(--sl-ease-standard);
}

body.michelle-theme :where(
  .gs-empty,
  .gs-loading,
  .gs-error,
  .sl-empty,
  .sa-empty,
  .rk-empty,
  .p19-empty,
  .p19-loading,
  .p19-error,
  .mk-chart-empty,
  .wl-alert-empty,
  .hm-empty-group,
  .stock-analysis-page .stocklab-insight__empty,
  .stock-analysis-page .derived-factor-card__empty
):focus-within {
  border-color: rgba(96, 165, 250, .42);
  box-shadow: var(--sl-focus-ring);
}

@media (max-width: 767px) {
  body.michelle-theme :where(
    .gs-btn,
    .gs-premium-btn,
    .sl-btn-primary,
    .sl-btn-secondary,
    .sl-login-link,
    .sl-register-link,
    .sa-watch-btn,
    .stock-analysis-page .stocklab-insight-capsule__summary
  ) {
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(96, 165, 250, .18);
  }

  body.michelle-theme :where(
    .gs-card,
    .gs-feature,
    .gs-stock-card,
    .gs-news-card,
    .rk-table-card,
    .mi-card,
    .hm-live-card,
    .stock-analysis-page .derived-factor-card,
    .stock-analysis-page .stocklab-insight-capsule
  ):hover {
    transform: none;
  }
}

/* Public stock lookup: one blue search treatment across every public entry point. */
body :is(.sl-stock-search, .stock-search) {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 0 !important;
  width: min(620px, 100%) !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(170, 215, 255, .46) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
    rgba(2, 10, 30, .78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -3px 8px rgba(0, 0, 0, .42),
    inset 0 0 0 1px rgba(120, 210, 255, .12),
    0 14px 30px rgba(0, 0, 0, .30),
    0 0 24px rgba(80, 160, 255, .18) !important;
}

body :is(.sl-stock-search, .stock-search) input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 28px !important;
  min-height: 44px !important;
  color: #f4f8ff !important;
  caret-color: #8fd3ff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body :is(.sl-stock-search, .stock-search) input::placeholder {
  color: rgba(220, 232, 255, .64) !important;
}

body :is(.sl-stock-search, .stock-search) button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 104px !important;
  margin: 4px !important;
  padding: 0 24px !important;
  min-height: 44px !important;
  border: 1px solid rgba(180, 210, 255, .72) !important;
  border-radius: 22px !important;
  color: #f8fbff !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04) 28%),
    linear-gradient(135deg, #42b8ff 0%, #3478ff 46%, #8b64ff 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .56),
    inset 0 -3px 8px rgba(22, 37, 125, .38),
    0 5px 13px rgba(51, 116, 255, .42) !important;
}

body :is(.sl-stock-search, .stock-search):focus-within {
  border-color: rgba(124, 206, 255, .9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -3px 8px rgba(0, 0, 0, .42),
    0 0 0 3px rgba(80, 174, 255, .16),
    0 0 28px rgba(76, 166, 255, .32) !important;
}

body :is(.sl-stock-search, .stock-search) input:focus {
  outline: 0 !important;
  border-color: rgba(124, 206, 255, .9) !important;
  box-shadow: none !important;
}

body .sa-stock-search-rail :is(.sl-stock-search, .stock-search) input {
  border: 0 !important;
  background: transparent !important;
}

/* Shared public header: keep the original compact lookup control while
   allowing the navigation column, rather than the input, to shrink first. */
body.michelle-theme .sa-header .sa-header__inner,
body.michelle-theme .gs-header .gs-header__inner {
  width: min(2460px, calc(100% - 40px)) !important;
  min-height: 68px !important;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 360px) !important;
  gap: 22px !important;
}

body.michelle-theme .sa-header .sa-nav,
body.michelle-theme .gs-header .gs-nav {
  min-width: 0 !important;
  overflow-x: auto !important;
}

body.michelle-theme .sa-header .sl-stock-search,
body.michelle-theme .gs-header .sl-stock-search {
  display: flex !important;
  width: min(360px, 28vw) !important;
  min-width: 0 !important;
  justify-self: end;
}

body.michelle-theme .sa-header .sl-stock-search > input,
body.michelle-theme .gs-header .sl-stock-search > input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

body.michelle-theme .sa-header .sl-stock-search > button,
body.michelle-theme .gs-header .sl-stock-search > button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 104px !important;
}

body.michelle-theme .gs-header .gs-header__search > svg {
  display: none !important;
}

/* Public banner: every public page shares the same logo, navigation, and lookup layout. */
body.michelle-theme .public-site-banner .public-site-banner__inner,
body.michelle-theme .public-site-banner .sl-header__inner {
  display: grid !important;
  width: min(2460px, calc(100% - 40px)) !important;
  min-height: 68px !important;
  margin: 0 auto !important;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 360px) !important;
  gap: 22px !important;
  align-items: center !important;
}

body.michelle-theme .public-site-banner .public-site-banner__nav,
body.michelle-theme .public-site-banner .sl-nav {
  flex: 1 1 auto !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  min-width: 0 !important;
  overflow-x: auto !important;
}

body.michelle-theme .public-site-banner .public-site-banner__nav > a,
body.michelle-theme .public-site-banner .sl-nav > a {
  min-height: 68px !important;
  padding: 0 4px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

body.michelle-theme .public-site-banner .public-site-banner__search {
  display: flex !important;
  width: min(360px, 28vw) !important;
  min-width: 0 !important;
  justify-self: end;
}

/* Stock research already provides its own symbol lookup. */
@media (min-width: 761px) {
  body.michelle-theme.stock-page .public-site-banner .public-site-banner__inner {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  body.michelle-theme.stock-page .public-site-banner .public-site-banner__search { display: none !important; }
}

/* The homepage and inner pages inherit different brand colors.  Lock the
   public wordmark to one rendered gold luminance instead of inherited color. */
body.michelle-theme .public-site-banner .site-brand-wordmark {
  color: #ffffff !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

body.michelle-theme .public-site-banner .site-brand-wordmark .site-brand-main {
  background: linear-gradient(180deg, #fff6cf 0%, #ffe3a0 36%, #f6c45c 60%, #fff0bb 82%, #d99a35 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.88),
    0 0 10px rgba(255, 205, 90, 0.24) !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Use the homepage hero's gold palette for every compact wordmark while
   preserving the header's compact proportions. */
body.michelle-theme .public-site-banner .site-brand-wordmark .site-brand-main,
body.michelle-theme .site-brand-wordmark .site-brand-main {
  background: linear-gradient(
    135deg,
    #fff8d8 0%,
    #fce8b2 10%,
    #e1b65e 25%,
    #b8860b 43%,
    #f7d681 57%,
    #e9c47a 72%,
    #8a6415 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow:
    0 -1px 1px rgba(255, 255, 255, 0.72),
    0 0 5px rgba(233, 196, 122, 0.58),
    1px 1px 0 #b8860b,
    2px 2px 0 #a07304,
    2px 3px 5px rgba(0, 0, 0, 0.64) !important;
  filter: drop-shadow(0 0 4px rgba(252, 215, 120, 0.35)) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Heatmap previously carried a breakpoint rule that hid its legacy header search.
   The shared banner must keep the same visible lookup treatment on every page. */
@media (max-width: 1240px) {
  body.michelle-theme .public-site-banner .public-site-banner__search {
    display: flex !important;
  }
}

/* On phones the original three-column banner compressed the 28vw search slot
   beneath its fixed-width submit button. Keep the shared lookup intact by
   giving it a full second row instead of shrinking the input to unusable size. */
@media (max-width: 760px) {
  body.michelle-theme .public-site-banner .public-site-banner__inner,
  body.michelle-theme .public-site-banner .sl-header__inner {
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-rows: auto auto;
    gap: 8px 12px !important;
  }

  body.michelle-theme .public-site-banner .public-site-banner__nav,
  body.michelle-theme .public-site-banner .sl-nav {
    grid-column: 2;
  }

  body.michelle-theme .public-site-banner .public-site-banner__search {
    grid-column: 1 / -1;
    width: 100% !important;
    justify-self: stretch;
  }
}

/* Phone header: keep global navigation on demand so it never competes with
   the active research workspace or its bottom tabs. */
body.michelle-theme .public-site-banner .public-site-banner__search-toggle,
body.michelle-theme .public-site-banner .public-site-banner__menu-toggle {
  display: none !important;
}

@media (max-width: 760px) {
  body.michelle-theme .public-site-banner .public-site-banner__inner,
  body.michelle-theme .public-site-banner .sl-header__inner {
    width: calc(100% - 24px) !important;
    min-height: 58px !important;
    padding: 7px 0 !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 8px !important;
  }

  body.michelle-theme .public-site-banner .public-site-banner__search-toggle,
  body.michelle-theme .public-site-banner .public-site-banner__menu-toggle {
    display: inline-flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(232, 188, 94, 0.34);
    border-radius: 12px;
    color: #ffe7a6;
    background: rgba(7, 22, 48, 0.9);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
  }

  body.michelle-theme .public-site-banner .public-site-banner__search-toggle:hover,
  body.michelle-theme .public-site-banner .public-site-banner__menu-toggle:hover,
  body.michelle-theme .public-site-banner .public-site-banner__search-toggle[aria-expanded="true"],
  body.michelle-theme .public-site-banner .public-site-banner__menu-toggle[aria-expanded="true"] {
    border-color: rgba(255, 217, 120, 0.82);
    color: #fff8dc;
    background: rgba(29, 74, 125, 0.84);
  }

  body.michelle-theme .public-site-banner .public-site-banner__search-toggle:focus-visible,
  body.michelle-theme .public-site-banner .public-site-banner__menu-toggle:focus-visible {
    outline: 3px solid rgba(126, 211, 255, 0.9);
    outline-offset: 2px;
  }

  body.michelle-theme .public-site-banner .public-site-banner__nav,
  body.michelle-theme .public-site-banner .sl-nav {
    grid-column: 1 / -1 !important;
    display: grid !important;
    width: 100% !important;
    gap: 4px !important;
    overflow: visible !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.michelle-theme .public-site-banner .public-site-banner__nav[hidden],
  body.michelle-theme .public-site-banner .public-site-banner__search[hidden] {
    display: none !important;
  }

  body.michelle-theme .public-site-banner .public-site-banner__nav > a,
  body.michelle-theme .public-site-banner .sl-nav > a {
    min-height: 44px !important;
    justify-content: center !important;
    padding: 0 9px !important;
    font-size: 14px !important;
  }

  body.michelle-theme .public-site-banner .public-site-banner__nav > a::after,
  body.michelle-theme .public-site-banner .sl-nav > a::after {
    bottom: 3px;
  }

  body.michelle-theme .public-site-banner .public-site-banner__search {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }
}

/* A portrait tablet leaves too little space for the stock rail and the full
   site navigation.  The stock workspace alone adopts the compact header
   before its primary canvas starts to collide. */
@media (min-width: 761px) and (max-width: 900px) {
  body.michelle-theme.stock-page .public-site-banner .public-site-banner__inner,
  body.michelle-theme.stock-page .public-site-banner .sl-header__inner {
    width: calc(100% - 24px) !important;
    min-height: 58px !important;
    padding: 7px 0 !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 8px !important;
  }

  body.michelle-theme.stock-page .public-site-banner .public-site-banner__search-toggle,
  body.michelle-theme.stock-page .public-site-banner .public-site-banner__menu-toggle {
    display: inline-flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(232, 188, 94, 0.34);
    border-radius: 12px;
    color: #ffe7a6;
    background: rgba(7, 22, 48, 0.9);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
  }

  body.michelle-theme.stock-page .public-site-banner .public-site-banner__search-toggle:hover,
  body.michelle-theme.stock-page .public-site-banner .public-site-banner__menu-toggle:hover,
  body.michelle-theme.stock-page .public-site-banner .public-site-banner__search-toggle[aria-expanded="true"],
  body.michelle-theme.stock-page .public-site-banner .public-site-banner__menu-toggle[aria-expanded="true"] {
    border-color: rgba(255, 217, 120, 0.82);
    color: #fff8dc;
    background: rgba(29, 74, 125, 0.84);
  }

  body.michelle-theme.stock-page .public-site-banner .public-site-banner__search-toggle:focus-visible,
  body.michelle-theme.stock-page .public-site-banner .public-site-banner__menu-toggle:focus-visible {
    outline: 3px solid rgba(126, 211, 255, 0.9);
    outline-offset: 2px;
  }

  body.michelle-theme.stock-page .public-site-banner .public-site-banner__nav {
    grid-column: 1 / -1 !important;
    display: grid !important;
    width: 100% !important;
    gap: 4px !important;
    overflow: visible !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.michelle-theme.stock-page .public-site-banner .public-site-banner__nav[hidden],
  body.michelle-theme.stock-page .public-site-banner .public-site-banner__search[hidden] {
    display: none !important;
  }

  body.michelle-theme.stock-page .public-site-banner .public-site-banner__nav > a {
    min-height: 44px !important;
    justify-content: center !important;
    padding: 0 9px !important;
    font-size: 14px !important;
  }

  body.michelle-theme.stock-page .public-site-banner .public-site-banner__nav > a::after { bottom: 3px; }

  body.michelle-theme.stock-page .public-site-banner .public-site-banner__search {
    display: flex !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }
}

/* Mobile ranking tabs: reveal all three entries. */
.ranking-page .p19-rk-tabs {
  align-items: center;
  flex-wrap: wrap;
}

.ranking-page .p19-rk-tabs button {
  flex: 0 0 auto;
  min-height: 54px;
  height: 54px;
}

.ranking-page .p19-rk-board {
  min-height: 0;
}

/* A short ranking response must not distribute the shell's spare height into the Hero. */
.ranking-page .p19-rank-main {
  align-content: start;
}

@media (max-width: 640px) {
  .ranking-page .p19-rk-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .ranking-page .p19-rk-tabs button {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 52px;
    height: 52px;
    padding: 7px 5px;
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

html::after {
  content: "每日 16:00 更新";
  position: fixed;
  top: 88px;
  right: 16px;
  z-index: 9999;
  pointer-events: none;
  padding: 5px 9px;
  border: 1px solid rgba(180, 210, 255, .42);
  border-radius: 999px;
  background: rgba(7, 21, 49, .76);
  color: #eef7ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

@media (min-width: 721px) and (max-width: 1120px) {
  html::after {
    top: 132px;
  }
}

@media (max-width: 520px) {
  html::after {
    top: 96px;
    right: 10px;
    padding: 6px 9px;
    font-size: 11px;
  }

  html.stock-page::after { display: none; }
}
