:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #101828;
  --muted: #667085;
  --line: #e7ebf2;
  --blue: #2563eb;
  --blue-dark: #1748b8;
  --blue-soft: #edf4ff;
  --cyan: #0ea5b7;
  --green: #16a06a;
  --green-soft: #eaf8f2;
  --red: #e24c5b;
  --red-soft: #fff0f2;
  --amber: #d99116;
  --amber-soft: #fff7e8;
  --shadow: 0 5px 16px rgba(27, 45, 78, .045);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { background: #e9eef6; }

body {
  margin: 0;
  background: #e9eef6;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-layout { min-height: 100vh; }
.desktop-sidebar, .desktop-statusbar { display: none; }
.website-main { min-width: 0; }
.site-footer {
  padding: 24px 16px 94px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.6;
}
.footer-brand { display: flex; flex-direction: column; margin-bottom: 12px; }
.footer-brand strong { color: var(--text); font-size: 14px; }
.footer-brand span { margin-top: 2px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; }
.site-footer a { color: #475467; text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer .icp-link { display: inline-block; margin-bottom: 4px; }
.site-footer p { margin: 3px 0 0; }
.site-filings { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 4px 0; }
.site-filings a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; color: #475467; text-decoration: none; }
.site-filings .icp-link { display: inline-flex; margin: 0; }
.site-filings a:hover { color: var(--blue); text-decoration: underline; }
.site-filings a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.site-filings img { flex: 0 0 auto; width: 18px; height: 20px; object-fit: contain; }
.site-filings span { overflow-wrap: anywhere; }
.legal-footer .site-filings { justify-content: center; }

button, select, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 50px rgba(32, 53, 86, .12);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  background: rgba(244, 247, 251, .92);
  border-bottom: 1px solid rgba(220, 226, 237, .8);
  backdrop-filter: blur(16px);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 2px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe4ec;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .09);
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-mark.brand-wordmark {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 13px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.brand-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 1px; }
.brand-copy strong { font-size: 16px; letter-spacing: -.2px; }
.brand-copy span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.date-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #475467;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 10px;
}

#app { padding: 14px 14px 96px; }
.page { animation: page-in .22s ease-out; }
@keyframes page-in { from { opacity: .4; transform: translateY(4px); } }

.tabbar {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  height: calc(70px + env(safe-area-inset-bottom));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-item {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #8992a3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}
.nav-icon { width: 30px; height: 25px; display: grid; place-items: center; line-height: 21px; }
.nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: var(--blue); }
.nav-item.active .nav-icon {
  border-radius: 9px;
  color: white;
  background: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  color: white;
  background:
    radial-gradient(circle at 92% 7%, rgba(96, 230, 213, .32), transparent 28%),
    linear-gradient(135deg, #183a88 0%, #235fc9 55%, #228eaa 130%);
  box-shadow: 0 12px 30px rgba(28, 75, 164, .18);
}
.hero::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -55px;
  bottom: -100px;
  border: 26px solid rgba(255,255,255,.07);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero h1, .page-heading h1 { margin: 0; font-size: 26px; letter-spacing: -.7px; }
.hero p { margin: 9px 0 0; color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.65; }
.hero-status { display: flex; gap: 7px; align-items: center; margin-top: 15px; }
.hero-chip { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 10px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #68e5bd; box-shadow: 0 0 0 4px rgba(104,229,189,.13); }

.page-heading { padding: 8px 4px 16px; }
.page-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.badge, .tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.badge { background: var(--blue-soft); color: var(--blue); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.neutral { background: #f2f5f9; color: #475467; }
.tag.amber { background: #f2f5f9; color: #475467; }

.section { margin-top: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 9px; }
.section-title { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; }
.section-title::before { content: ""; width: 3px; height: 15px; border-radius: 3px; background: var(--blue); }
.section-link { border: 0; color: var(--blue); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-body { padding: 16px; }
.soft-card { padding: 13px; background: var(--surface-soft); border: 1px solid #edf0f5; border-radius: 15px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.metric-card { padding: 12px 10px; min-width: 0; }
.metric-label { display: block; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-value { display: block; margin-top: 5px; font-size: 19px; line-height: 1; font-weight: 800; letter-spacing: -.5px; }
.metric-foot { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.up { color: var(--red); }
.down { color: var(--green); }
.neutral { color: var(--blue); }

.insight-row { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 15px; background: #eef5ff; color: #24427a; }
.insight-icon { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: white; color: var(--blue); font-weight: 800; }
.insight-row strong { display: block; font-size: 12px; }
.insight-row p { margin: 3px 0 0; font-size: 10px; line-height: 1.55; color: #617294; }

.daily-status-card, .daily-changes-card, .home-sentiment-card, .home-capital-card { overflow: hidden; }
.daily-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.daily-status-grid .metric-card { box-shadow: none; background: var(--surface-soft); }
.daily-change-list { display: grid; gap: 8px; }
.daily-change-item { width: 100%; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); color: var(--text); text-align: left; cursor: pointer; }
.daily-change-item:hover { background: #f4f7fc; }
.daily-change-item.green { border-color: #cfeee0; }
.daily-change-item.red { border-color: #f4d4d9; }
.daily-change-item.blue { border-color: #d7e5ff; }
.daily-change-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.daily-change-item.green .daily-change-dot { background: var(--green); }
.daily-change-item.red .daily-change-dot { background: var(--red); }
.daily-change-item strong, .daily-change-item small { display: block; }
.daily-change-item strong { font-size: 11px; }
.daily-change-item small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.daily-change-item > b { color: var(--text); font-size: 12px; white-space: nowrap; }
.visit-delta { display: flex; align-items: center; gap: 9px; margin-top: 9px; padding: 10px 12px; border-radius: 13px; background: var(--blue-soft); color: #24427a; }
.visit-delta strong, .visit-delta small { display: block; }
.visit-delta strong { font-size: 11px; }
.visit-delta small { margin-top: 3px; color: #617294; font-size: 9px; }
.mini-stat-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.mini-stat-row span { white-space: nowrap; }
.mini-stat-row b { color: var(--text); }
.mini-stat-row .section-link { margin-left: auto; padding: 0; }
.capital-summary { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; margin-top: 12px; }
.capital-summary > div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.capital-summary span, .capital-summary strong, .capital-summary small { display: block; }
.capital-summary span { color: var(--muted); font-size: 9px; }
.capital-summary strong { margin-top: 6px; font-size: 13px; line-height: 1.3; }
.capital-summary small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.capital-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.capital-actions .expand-button { margin-top: 12px; }
.watchlist-demo-note { margin: -2px 0 8px; color: var(--muted); font-size: 9px; }
.freshness-list { display: grid; gap: 8px; margin-top: 14px; }
.freshness-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.freshness-row > div:last-child { text-align: right; }
.freshness-row strong, .freshness-row small, .freshness-row b, .freshness-row span { display: block; }
.freshness-row strong { font-size: 12px; }
.freshness-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.freshness-row b { font-size: 11px; }
.freshness-status { margin-top: 4px; color: var(--amber); font-size: 8px; font-weight: 750; }
.freshness-status.ready { color: var(--green); }
.watch-manager { margin-top: 12px; }
.watch-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.watch-search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.watch-manager-meta { display: flex; justify-content: space-between; margin: 9px 2px; color: var(--muted); font-size: 9px; }
.watch-manager-meta b { color: var(--red); }
.watch-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-height: 46vh; overflow: auto; }
.watch-option { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #fff; font-size: 10px; cursor: pointer; }
.watch-option i { color: var(--muted); font-style: normal; font-weight: 800; }
.watch-option.selected { border-color: #b8d1ff; color: var(--blue); background: var(--blue-soft); }
.watch-option.selected i { color: var(--blue); }
.watch-manager-actions { position: sticky; bottom: -28px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; margin: 12px -2px -12px; padding: 10px 2px 12px; background: #fff; }
.watch-manager-actions button { min-height: 42px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #fff; font-size: 10px; font-weight: 750; }
.watch-manager-actions button:last-child { border-color: #101828; color: #fff; background: #101828; }
.industry-linked-data { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.industry-linked-data > div { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.industry-linked-data span, .industry-linked-data strong, .industry-linked-data small { display: block; }
.industry-linked-data span, .industry-linked-data small { color: var(--muted); font-size: 8px; }
.industry-linked-data strong { margin: 5px 0; font-size: 12px; }
.market-detail-toggle { width: 100%; margin-top: 14px; border: 1px dashed #bfd2f6; background: var(--surface); }

.chart-wrap { padding: 12px 4px 0; overflow: hidden; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-label { fill: #8b95a6; font-size: 9px; }
.chart-grid { stroke: #edf0f5; stroke-width: 1; }
.chart-area { opacity: .12; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.chart-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 8px; }
.chart-meta > span { max-width: 56%; text-align: right; line-height: 1.4; }
.interactive-chart { margin-top: 10px; }
.interactive-chart-svg { margin-top: 8px; touch-action: none; user-select: none; }
.chart-hotzone { fill: transparent; cursor: crosshair; pointer-events: all; }
.chart-cursor { stroke: #101828; stroke-width: .9; stroke-dasharray: 3 4; opacity: .55; pointer-events: none; }
.time-range-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f1f4f8; }
.time-range-button { flex: 1; min-width: 0; padding: 7px 3px; border: 0; border-radius: 8px; color: #7b8494; background: transparent; font-size: 8px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.time-range-button.active { color: var(--text); background: #fff; box-shadow: 0 2px 8px rgba(38,62,100,.08); }
.time-range-custom { display: grid; place-items: center; padding: 0 8px; color: var(--muted); font-size: 8px; font-weight: 800; white-space: nowrap; }
.time-window { display: grid; gap: 5px; margin: 2px 0 7px; padding: 8px 10px; border: 1px solid #edf0f5; border-radius: 13px; background: #fbfcff; }
.time-window-row { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; }
.time-window-row span { color: #7b8494; font-size: 8px; font-weight: 800; }
.time-window-slider { width: 100%; height: 14px; margin: 0; accent-color: #101828; cursor: pointer; }
.time-window-labels { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; }
.time-window-labels b { color: var(--text); font-size: 9px; }
.chart-readout { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: start; padding: 9px 10px; border: 1px solid #edf0f5; border-radius: 12px; background: #fbfcff; }
.chart-readout strong { color: var(--text); font-size: 10px; line-height: 1.35; }
.chart-readout div { display: flex; flex-wrap: wrap; gap: 5px 9px; min-width: 0; }
.chart-readout span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.chart-readout i { width: 10px; height: 3px; border-radius: 4px; }
.chart-readout b { color: var(--text); font-weight: 800; }

.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 46px; align-items: center; gap: 8px; font-size: 10px; }
.bar-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 7px; background: #edf1f6; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; min-width: 3px; }
.bar-value { text-align: right; font-weight: 750; }

.preview-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.preview-top h3 { margin: 0; font-size: 16px; }
.preview-top p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.big-number { margin: 8px 0 0; font-size: 34px; font-weight: 850; line-height: 1; color: var(--blue); letter-spacing: -1px; }
.big-number small { font-size: 14px; letter-spacing: 0; }

.range-tabs, .segmented { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: #f1f4f8; }
.range-tabs { margin-top: 13px; }
.range-tab, .segment-button {
  flex: 1;
  border: 0;
  border-radius: 9px;
  padding: 7px 5px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.range-tab.active, .segment-button.active { color: var(--blue); background: white; box-shadow: 0 2px 8px rgba(38,62,100,.08); }

.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.industry-card { padding: 13px; cursor: pointer; }
.industry-card:active { transform: scale(.985); }
.industry-card h3 { margin: 0; font-size: 13px; }
.industry-card .industry-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.industry-card strong { font-size: 21px; }
.industry-card p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.data-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.data-table th { color: var(--muted); font-weight: 600; padding: 0 8px 9px; text-align: right; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table td { padding: 11px 8px; border-top: 1px solid #eef1f5; text-align: right; font-weight: 650; }

.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.select-row.single-select { grid-template-columns: 1fr; }
.select-box { width: 100%; appearance: none; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--text); padding: 11px 30px 11px 11px; font-size: 10px; font-weight: 650; background-image: linear-gradient(45deg, transparent 50%, #8490a2 50%), linear-gradient(135deg, #8490a2 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 11px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }

.index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.index-card { min-width: 0; padding: 11px; }
.index-card-name { display: block; color: #40516b; font-size: 12px; font-weight: 650; }
.index-quote { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; margin-top: 7px; }
.index-quote small { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.index-quote strong { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.index-quote strong.up { color: var(--red); }
.index-quote strong.down { color: var(--green); }
.index-trade-meta { display: flex; flex-wrap: wrap; gap: 2px 9px; margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line); color: #2c6b83; font-size: 10px; font-variant-numeric: tabular-nums; }
.index-trade-meta span { white-space: nowrap; }

.rotation-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rotation-card {
  min-width: 0;
  padding: 12px 10px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.rotation-card .tag { padding: 4px 6px; font-size: 8px; }
.rotation-rank { display: block; margin-bottom: 9px; color: #a3adbc; font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.rotation-card > strong { display: block; margin-top: 10px; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.rotation-score { display: block; margin: 4px 0 5px; color: var(--blue); font-size: 24px; font-weight: 850; letter-spacing: -.8px; }
.rotation-card small { display: block; color: var(--muted); font-size: 8px; line-height: 1.45; }
.compact-card { padding-bottom: 8px; }
.scatter-wrap { margin-top: 9px; }
.scatter-point { cursor: pointer; }
.scatter-label { fill: #344054; font-size: 7.5px; font-weight: 700; }
.quadrant-label { fill: #97a1b1; font-size: 7px; }
.industry-metrics .metric-value { font-size: 14px; line-height: 1.15; }

.industry-db-card { overflow: hidden; }
.industry-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 14px 9px; }
.search-box { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #98a2b3; }
.search-box input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #a4adbb; }
.download-button { border: 0; border-radius: 12px; padding: 0 12px; color: #fff; background: #101828; font-size: 9px; font-weight: 750; cursor: pointer; }
.industry-filters { padding: 0 14px 10px; }
.database-meta { display: flex; justify-content: space-between; gap: 10px; padding: 0 15px 10px; color: var(--muted); font-size: 8px; }
.database-meta b { color: var(--blue); }
.industry-table-scroll { max-height: 510px; overflow: auto; border-top: 1px solid var(--line); }
.industry-table { min-width: 520px; }
.industry-table thead { position: sticky; z-index: 2; top: 0; background: #f8faff; }
.industry-table th { padding: 10px 8px; }
.industry-table tbody tr { cursor: pointer; }
.industry-table tbody tr:hover { background: #f8faff; }
.industry-table td { vertical-align: middle; }
.industry-table td b, .industry-table td small { display: block; }
.industry-table td small { margin-top: 3px; color: var(--muted); font-size: 7.5px; font-weight: 500; }
.score-pill { display: inline-block; min-width: 36px; padding: 4px 6px; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.empty-cell { padding: 30px !important; text-align: center !important; color: var(--muted); }

.schema-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.schema-slot { min-height: 90px; padding: 12px; border: 1px solid #dceae5; border-radius: 15px; background: #f4fbf8; }
.schema-slot.pending { border-style: dashed; border-color: #dce2ec; background: #fafbfc; }
.schema-slot span { display: inline-block; padding: 3px 6px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 7px; font-weight: 800; }
.schema-slot.pending span { color: #7b8494; background: #eef1f5; }
.schema-slot strong, .schema-slot small { display: block; }
.schema-slot strong { margin-top: 8px; font-size: 11px; }
.schema-slot small { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.detail-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.detail-field-grid > div { padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.detail-field-grid span, .detail-field-grid strong { display: block; }
.detail-field-grid span { color: var(--muted); font-size: 8px; }
.detail-field-grid strong { margin-top: 5px; font-size: 12px; }

.gldi-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 13px 0; }
.gldi-metric-grid .metric-value { font-size: 17px; }

.gldi-chart { margin-top: 10px; padding: 8px 0 2px; }
.gldi-series-legend { display: flex; flex-wrap: wrap; gap: 6px 11px; margin-top: 4px; color: var(--muted); font-size: 8px; }
.gldi-series-legend span { display: flex; align-items: center; gap: 4px; }
.gldi-series-legend i { width: 13px; height: 3px; border-radius: 3px; }
.gldi-series-legend b { color: var(--text); }
.gldi-band-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-top: 7px; color: var(--muted); font-size: 8px; }
.gldi-band-legend span { display: flex; align-items: center; gap: 4px; }
.gldi-band-legend b { margin-left: auto; color: var(--blue); }
.gldi-band-legend i { width: 8px; height: 8px; border-radius: 3px; }
.gldi-band-legend i.low { background: var(--green-soft); border: 1px solid #bce8d5; }
.gldi-band-legend i.high { background: var(--red-soft); border: 1px solid #ffd3d8; }
.gldi-summary { margin-bottom: 13px; }

.gldi-companion { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 11px; border: 1px solid #dfe6f1; border-radius: 13px; background: linear-gradient(135deg, #f8faff, #f3f8f7); font-size: 8px; }
.gldi-companion span, .gldi-companion small { color: var(--muted); }
.gldi-companion strong { font-size: 9px; text-align: center; }
.gldi-companion small { text-align: right; }

.yearline-card { overflow: hidden; }
.yearline-summary { display: grid; grid-template-columns: .85fr 1.4fr; gap: 10px; margin: 15px 0; }
.yearline-main { display: flex; min-height: 128px; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid #dce6f3; border-radius: 17px; background: linear-gradient(150deg, #f7faff 0%, #eef5ff 100%); }
.yearline-main > span { color: var(--muted); font-size: 9px; font-weight: 700; }
.yearline-main strong { margin-top: 5px; color: var(--blue); font-size: 32px; line-height: 1; letter-spacing: -1.3px; }
.yearline-main strong small { margin-left: 1px; font-size: 14px; letter-spacing: 0; }
.yearline-main p { margin: 8px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.yearline-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.yearline-stat-grid > div { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.yearline-stat-grid span, .yearline-stat-grid small { overflow: hidden; color: var(--muted); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.yearline-stat-grid strong { margin: 4px 0 2px; font-size: 13px; }
.yearline-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 4px 0 10px; padding: 4px; border-radius: 13px; background: #eef1f5; }
.yearline-tab { padding: 8px; border: 0; border-radius: 10px; color: #7b8494; background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.yearline-tab.active { color: var(--text); background: #fff; box-shadow: 0 3px 9px rgba(16, 24, 40, .08); }
.yearline-caption { display: flex; justify-content: space-between; gap: 10px; margin: 9px 2px 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.yearline-caption strong { flex: 0 0 auto; color: var(--text); }
.yearline-caption span { text-align: right; }
.yearline-insight { margin-top: 13px; }

.expand-button { width: 100%; margin-top: 15px; padding: 10px; border: 0; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 750; cursor: pointer; }

.mini-rank { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.mini-rank span { display: flex; justify-content: space-between; gap: 7px; padding: 9px; border-radius: 11px; background: var(--surface-soft); color: var(--muted); font-size: 9px; }

.topic-card { position: relative; overflow: hidden; }
.topic-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 14px; }
.topic-grid div { padding: 10px 8px; border: 1px solid #edf0f5; border-radius: 12px; background: var(--surface-soft); }
.topic-grid span, .topic-grid strong { display: block; }
.topic-grid span { color: var(--muted); font-size: 8px; }
.topic-grid strong { margin-top: 5px; font-size: 9px; line-height: 1.35; }
.finance-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-topic-card::after { bottom: 40px; }
.finance-topic-link { position: relative; z-index: 1; margin-top: 11px; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.audience-card { padding: 13px; }
.audience-card span { display: block; color: var(--muted); font-size: 9px; font-weight: 750; }
.audience-card strong { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; }
.audience-card p { margin: 7px 0 0; color: #475467; font-size: 10px; line-height: 1.55; }

.signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.signal-card { padding: 12px; }
.signal-card span { display: block; color: var(--muted); font-size: 9px; font-weight: 750; }
.signal-card strong { display: block; margin-top: 6px; font-size: 15px; line-height: 1.2; }
.signal-card small { display: block; margin-top: 5px; color: #667085; font-size: 9px; line-height: 1.35; }
.signal-card.green strong { color: var(--green); }
.signal-card.red strong { color: var(--red); }
.signal-card.blue strong { color: var(--blue); }

.direction-board { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.direction-card { padding: 14px; }
.direction-card h3 { margin: 0; font-size: 15px; }
.direction-card > p { margin: 6px 0 12px; color: #475467; font-size: 10px; line-height: 1.5; }
.direction-list { display: flex; flex-direction: column; gap: 8px; }
.direction-item { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.direction-item:first-child { padding-top: 0; border-top: 0; }
.direction-item strong { font-size: 12px; }
.direction-item b { font-size: 11px; }
.direction-item small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; line-height: 1.35; }

.key-signal-card .preview-top { margin-bottom: 12px; }
.key-signal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.key-signal-list div { padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.key-signal-list span { display: block; color: var(--muted); font-size: 9px; font-weight: 750; }
.key-signal-list strong { display: block; margin-top: 5px; font-size: 13px; }
.key-signal-list small { display: block; margin-top: 5px; color: #667085; font-size: 8px; line-height: 1.35; }

.watchlist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.watch-card { padding: 12px; border: 1px solid var(--line); text-align: left; cursor: pointer; }
.watch-card span { display: block; color: var(--muted); font-size: 9px; font-weight: 750; }
.watch-card strong { display: block; margin-top: 6px; font-size: 15px; }
.watch-card small { display: block; margin-top: 5px; color: #667085; font-size: 8px; line-height: 1.35; }
.watchlist-empty strong { display: block; font-size: 14px; }
.watchlist-empty p { margin: 6px 0 0; color: #475467; font-size: 10px; line-height: 1.55; }
.follow-button { width: 100%; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: #101828; background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.follow-button.active { color: var(--blue); background: var(--blue-soft); border-color: #cfe0ff; }

.etf-flow-card .preview-top { margin-bottom: 12px; }
.etf-flow-metrics { margin-bottom: 12px; }
.etf-flow-card .interactive-chart { margin-bottom: 12px; }
.etf-group-grid h4 { margin: 0 0 9px; font-size: 12px; }
.etf-group-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.etf-group-row:first-of-type { border-top: 0; padding-top: 0; }
.etf-group-row strong, .etf-group-row small { display: block; }
.etf-group-row strong { font-size: 11px; }
.etf-group-row small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.etf-group-row b { font-size: 11px; white-space: nowrap; }
.etf-table { min-width: 470px; }
.etf-table td, .etf-table th { white-space: nowrap; }
.etf-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.etf-tabs { margin-bottom: 14px; }
.etf-stack { display: grid; gap: 12px; }
.etf-structure-table, .etf-group-table { min-width: 560px; }
.etf-structure-table td, .etf-structure-table th,
.etf-group-table td, .etf-group-table th { white-space: nowrap; }
.etf-structure-table td:first-child small,
.etf-group-table td:first-child small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }

.fund-holding-card .preview-top { margin-bottom: 12px; }
.fund-holding-metrics { margin-bottom: 12px; }
.holding-change-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.holding-change-grid h4 { margin: 0 0 9px; font-size: 12px; }
.holding-change-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.holding-change-row:first-of-type { border-top: 0; padding-top: 0; }
.holding-change-row strong, .holding-change-row small { display: block; }
.holding-change-row strong { font-size: 11px; }
.holding-change-row small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.holding-change-row b { font-size: 11px; white-space: nowrap; }
.fund-table { min-width: 520px; }
.fund-table td, .fund-table th { white-space: nowrap; }
.fund-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.fund-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.fund-context-metric { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fund-context-metric span { color: var(--muted); font-size: 10px; }
.fund-context-metric strong { font-size: 22px; line-height: 1.2; }
.fund-context-metric small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.fund-context-source { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 9px 0 0; }
@media (max-width: 600px) { .fund-context-grid { grid-template-columns: 1fr; gap: 18px; } }

.factor-selector-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 8px; color: var(--muted); font-size: 9px; }
.factor-selector-head b { color: var(--blue); }
.factor-selector { display: flex; flex-wrap: wrap; gap: 6px; }
.factor-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #98a0ad; font-size: 9px; font-weight: 700; cursor: pointer; opacity: .58; }
.factor-chip i { width: 7px; height: 7px; border-radius: 50%; }
.factor-chip.active { color: var(--text); border-color: #cfd8e7; background: #f8faff; opacity: 1; box-shadow: 0 2px 7px rgba(32,53,86,.06); }
.factor-chip.benchmark.active { color: #fff; border-color: #101828; background: #101828; }
.factor-chip.benchmark.active i { background: #fff !important; }

.nav-ranks { display: flex; flex-direction: column; gap: 11px; }
.nav-rank { display: grid; grid-template-columns: 52px 1fr 34px; align-items: center; gap: 8px; font-size: 10px; }
.nav-rank span { font-weight: 650; }
.nav-rank strong { text-align: right; color: var(--blue); }

.finance-row { margin-bottom: 15px; }
.finance-row:last-child { margin-bottom: 0; }
.finance-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 10px; }
.finance-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.table-scroll { overflow-x: auto; }

.finance-tabs { position: sticky; z-index: 12; top: 72px; display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin: 0 0 14px; padding: 4px; border: 1px solid rgba(224,229,238,.9); border-radius: 15px; background: rgba(244,247,251,.92); box-shadow: 0 5px 16px rgba(32,53,86,.06); backdrop-filter: blur(14px); }
.finance-tab { padding: 9px 5px; border: 0; border-radius: 11px; color: #7b8494; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.finance-tab.active { color: #fff; background: #101828; box-shadow: 0 4px 10px rgba(16,24,40,.18); }
.finance-report-card { color: #fff; background: radial-gradient(circle at 95% 0, rgba(76,130,218,.35), transparent 34%), linear-gradient(145deg,#17233f,#101828); border-color: #17233f; }
.finance-report-card .eyebrow { color: #96b9ff; }
.finance-report-card .preview-top h3 { color: #fff; }
.finance-report-card .preview-top p:not(.eyebrow) { color: rgba(255,255,255,.66); }
.report-progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.report-progress-grid > div { padding: 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); }
.report-progress-grid span, .report-progress-grid strong { display: block; }
.report-progress-grid span { color: rgba(255,255,255,.62); font-size: 10px; }
.report-progress-grid strong { margin-top: 5px; font-size: 16px; }
.report-progress { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.13); }
.report-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#65d8c4,#8fb7ff); }
.finance-core-metrics { margin-top: 12px; }
.compact-preview { margin-bottom: 4px; }
.finance-trend-stack { display: grid; gap: 10px; }
.finance-trend-card .chart-svg { margin-top: 8px; }
.finance-zero { stroke: #98a2b3; stroke-width: 1; stroke-dasharray: 5 4; }
.finance-trend-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.finance-trend-legend span { display: flex; align-items: center; gap: 5px; }
.finance-trend-legend i { width: 13px; height: 3px; border-radius: 3px; }
.finance-trend-legend b { color: var(--text); }
.finance-scatter { margin-top: 8px; }
.finance-axis { stroke: #cfd6e2; stroke-width: 1; stroke-dasharray: 4 4; }
.finance-scatter-label { fill: #475467; font-size: 9px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; stroke-linejoin: round; }
.finance-scatter-legend { display: flex; align-items: center; gap: 8px; margin: 4px 1px 0; color: var(--muted); font-size: 9px; }
.finance-scatter-legend span { display: flex; align-items: center; gap: 4px; }
.finance-scatter-legend i { width: 7px; height: 7px; border-radius: 50%; }
.finance-scatter-legend i.up { background: var(--red); }
.finance-scatter-legend i.down { background: var(--green); }
.finance-scatter-legend b { margin-left: auto; color: #7b8494; font-weight: 600; }
.finance-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.finance-focus span { margin-right: 2px; color: var(--muted); font-size: 10px; }
.finance-focus b { padding: 5px 8px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 10px; }
.finance-change-table { min-width: 345px; }
.finance-change-table td, .finance-change-table th { white-space: nowrap; }
.roe-table { min-width: 345px; }
.roe-heat { border-radius: 7px; font-weight: 800; text-align: center !important; }
.roe-heat.strong-up { color: #c63545; background: #ffe0e4; }
.roe-heat.mild-up { color: #bb5360; background: #fff0f2; }
.roe-heat.strong-down { color: #08754b; background: #ccefe1; }
.roe-heat.mild-down { color: #16825a; background: #eaf8f2; }

.notice { margin-top: 14px; padding: 11px 13px; color: #7b8494; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; font-size: 9px; line-height: 1.55; }
.module-loading, .module-error { min-height: 240px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 24px; text-align: center; }
.module-loading span { width: 26px; height: 26px; border: 3px solid #dbe6fb; border-top-color: var(--blue); border-radius: 50%; animation: loading-spin .8s linear infinite; }
.module-loading strong, .module-error strong { font-size: 14px; }
.module-loading small, .module-error p { margin: 0; color: var(--muted); font-size: 10px; }
@keyframes loading-spin { to { transform: rotate(360deg); } }

.modal { display: none; position: fixed; inset: 0; z-index: 60; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 20, 34, .45); backdrop-filter: blur(2px); }
.modal-panel { position: absolute; left: 50%; bottom: 0; width: min(100%, 430px); max-height: 88vh; overflow: auto; transform: translateX(-50%); padding: 8px 16px 28px; background: white; border-radius: 26px 26px 0 0; animation: sheet-up .25s ease-out; }
@keyframes sheet-up { from { transform: translate(-50%, 30px); opacity: .6; } }
.modal-handle { width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 99px; background: #d8dde7; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; }
.modal-header h2 { margin: 0; font-size: 22px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 12px; background: #f1f4f8; color: #667085; font-size: 22px; cursor: pointer; }
.modal.image-modal .modal-panel { bottom: 50%; width: min(calc(100% - 48px), 1040px); transform: translate(-50%, 50%); padding: 10px 18px 22px; border-radius: 26px; animation: modal-pop .22s ease-out; }
@keyframes modal-pop { from { transform: translate(-50%, 46%); opacity: .55; } }
@media (max-width: 420px) {
  .topbar { height: 64px; gap: 8px; padding: 8px 12px; }
  .brand-mark.brand-wordmark { width: 44px; height: 44px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy span { display: block; overflow: hidden; font-size: 8px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
  .date-pill { padding: 7px 8px; }
  #app { padding-top: 10px; }
  .section { margin-top: 12px; }
  .card-body { padding: 14px; }
  .daily-status-grid { grid-template-columns: 1fr 1fr; }
  .daily-status-grid .metric-card:last-child { grid-column: 1 / -1; }
  .capital-summary { grid-template-columns: 1fr; }
  .mini-stat-row { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  #app { padding-left: 10px; padding-right: 10px; }
  .metric-value { font-size: 17px; }
  .daily-status-grid { grid-template-columns: 1fr 1fr; }
  .daily-status-grid .metric-card:last-child { grid-column: 1 / -1; }
  .capital-summary { grid-template-columns: 1fr; }
  .mini-stat-row { flex-wrap: wrap; }
  .industry-grid { grid-template-columns: 1fr; }
  .rotation-card-grid { grid-template-columns: 1fr 1fr; }
  .rotation-card-grid .rotation-card:last-child { grid-column: 1 / -1; }
  .direction-board { grid-template-columns: 1fr; }
  .key-signal-list { grid-template-columns: 1fr; }
  .watchlist-grid { grid-template-columns: 1fr 1fr; }
  .holding-change-grid { grid-template-columns: 1fr; }
  .yearline-summary { grid-template-columns: 1fr; }
  .yearline-main { min-height: 108px; }
}

@media (max-width: 699px) {
  .modal.image-modal .modal-panel { bottom: 0; width: 100%; transform: translateX(-50%); padding: 8px 12px 24px; border-radius: 26px 26px 0 0; animation: sheet-up .25s ease-out; }
}

@media (min-width: 700px) and (max-width: 899px) {
  .app-shell { width: 100%; max-width: 768px; box-shadow: none; }
  #app { padding: 22px 24px 104px; }
  .tabbar { width: min(100%, 768px); }
  .modal-panel { width: min(calc(100% - 48px), 720px); border-radius: 24px 24px 0 0; }
  .industry-grid, .rotation-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  html, body { background: #f3f5f8; }
  .mobile-only { display: none !important; }
  .site-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); }
  .desktop-sidebar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 28px 18px 20px;
    color: #344054;
    background: #fff;
    border-right: 1px solid #e4e8ef;
  }
  .desktop-brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
  .desktop-brand img { width: 50px; height: 50px; object-fit: contain; }
  .desktop-brand span { display: flex; flex-direction: column; }
  .desktop-brand strong { font-size: 17px; letter-spacing: -.3px; }
  .desktop-brand small { margin-top: 2px; color: #8a94a6; font-size: 10px; }
  .sidebar-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 38px; }
  .sidebar-nav .nav-item {
    width: 100%;
    min-height: 56px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 13px;
    color: #667085;
    text-align: left;
  }
  .sidebar-nav .nav-item > span:last-child { display: flex; flex-direction: column; gap: 2px; }
  .sidebar-nav .nav-item b { color: #344054; font-size: 13px; }
  .sidebar-nav .nav-item small { color: #98a2b3; font-size: 9px; font-weight: 500; }
  .sidebar-nav .nav-item.active { background: var(--blue-soft); }
  .sidebar-nav .nav-item.active b, .sidebar-nav .nav-item.active small { color: var(--blue); }
  .sidebar-nav .nav-item.active .nav-icon { color: #fff; background: var(--blue); }
  .sidebar-footnote { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--line); color: #98a2b3; font-size: 9px; }
  .website-main { min-width: 0; }
  .desktop-statusbar {
    position: sticky;
    top: 0;
    z-index: 25;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(28px, 4vw, 58px);
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid rgba(224,229,238,.9);
    backdrop-filter: blur(16px);
  }
  .desktop-statusbar > div { display: flex; flex-direction: column; gap: 4px; }
  .desktop-statusbar strong { font-size: 13px; }
  .desktop-statusbar span { color: var(--muted); font-size: 10px; }
  .desktop-statusbar .date-pill { min-width: 86px; cursor: pointer; }
  .app-shell { width: 100%; min-height: calc(100vh - 72px); margin: 0; background: transparent; box-shadow: none; }
  #app { width: min(100%, 1440px); margin: 0 auto; padding: 34px clamp(28px, 4vw, 58px) 50px; }
  .page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .page > * { grid-column: 1 / -1; min-width: 0; }
  .page > .section { margin-top: 0; }
  .page-heading { padding: 0 2px 2px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading p { max-width: 720px; font-size: 13px; }
  .card { box-shadow: 0 2px 9px rgba(27,45,78,.035); }
  .card-body { padding: 20px; }
  .daily-status-card .daily-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .page > .section:has(.home-sentiment-card),
  .page > .section:has(.home-capital-card) { grid-column: span 6; }
  .home-sentiment-card, .home-capital-card { height: 100%; }
  .metric-grid { gap: 12px; }
  .metric-card { padding: 16px; }
  .metric-value { font-size: 22px; }
  .watchlist-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .industry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .rotation-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .direction-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .holding-change-grid, .capital-summary { gap: 16px; }
  .table-scroll { overflow-x: visible; }
  .data-table { min-width: 100%; }
  .chart-shell, .interactive-chart { min-width: 0; }
  .finance-tabs { top: 88px; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; padding: 28px clamp(28px, 4vw, 58px) 36px; font-size: 10px; }
  .site-footer nav { justify-content: flex-end; }
  .site-footer .icp-link, .site-footer p { grid-column: 1 / -1; }
  .modal-panel { bottom: 50%; width: min(calc(100% - 80px), 920px); max-height: 86vh; transform: translate(-50%, 50%); padding: 12px 26px 30px; border-radius: 24px; }
  @keyframes sheet-up { from { transform: translate(-50%, 46%); opacity: .6; } }
}

@media (min-width: 1280px) {
  .site-layout { grid-template-columns: 244px minmax(0, 1fr); }
  .industry-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .finance-trend-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Readability pass: working labels stay legible on phones and research screens. */
.eyebrow { font-size: 11px; }
.date-pill, .badge, .tag, .section-link { font-size: 11px; }
.metric-label { font-size: 11px; }
.metric-foot { font-size: 10px; line-height: 1.4; }
.daily-change-item strong, .visit-delta strong { font-size: 12px; }
.daily-change-item small, .visit-delta small, .mini-stat-row,
.capital-summary span, .watchlist-demo-note, .freshness-row small,
.watch-manager-meta, .industry-card p, .index-card span, .index-card small,
.rotation-card small, .database-meta, .schema-slot small,
.gldi-series-legend, .gldi-band-legend, .yearline-main p,
.yearline-caption, .topic-grid span, .signal-card small,
.key-signal-list small, .watch-card small, .etf-group-row small,
.holding-change-row small, .fund-table small, .finance-row small,
.notice { font-size: 10px; }
.preview-top p, .insight-row p, .watchlist-empty p,
.direction-card > p, .audience-card p { font-size: 11px; }
.data-table, .select-box, .search-box input, .watch-search input,
.watch-option, .watch-manager-actions button, .factor-chip,
.finance-row-head, .nav-rank, .expand-button, .follow-button { font-size: 11px; }
.chart-label, .chart-legend, .chart-readout strong,
.time-range-button, .time-range-custom, .time-window-row span,
.time-window-labels, .time-window-labels b { font-size: 10px; }
.chart-meta, .chart-readout span { font-size: 9px; }

@media (min-width: 900px) {
  .desktop-brand small, .sidebar-nav .nav-item small,
  .sidebar-footnote, .desktop-statusbar span, .site-footer { font-size: 11px; }
  .sidebar-nav .nav-item b, .desktop-statusbar strong { font-size: 14px; }
  .page-heading p, .preview-top p, .insight-row p { font-size: 13px; }
  .section-title { font-size: 17px; }
  .data-table { font-size: 12px; }
}

@media (max-width: 420px) {
  .brand-copy span { font-size: 9px; }
  .nav-item { font-size: 10px; }
}
