:root {
  --bg: #f5f6f7;
  --paper: #ffffff;
  --ink: #17212b;
  --muted: #74808d;
  --line: #e5e9ed;
  --line-strong: #d5dbe1;
  --navy: #162232;
  --navy-soft: #24344a;
  --warm: #b58a55;
  --warm-soft: #f7f0e7;
  --up: #d84b43;
  --up-soft: #fdf0ee;
  --down: #178665;
  --down-soft: #eaf6f1;
  --warning: #bd771a;
  --shadow: 0 20px 60px rgba(26, 35, 46, .06);
  --font: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --number: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.flat { color: var(--muted) !important; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  padding: 0 max(20px, calc((100vw - 1480px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  background: rgba(245, 246, 247, .94);
  border-bottom: 1px solid rgba(213, 219, 225, .82);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--navy);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(22, 34, 50, .16);
}

.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 19px; letter-spacing: .06em; }
.brand small {
  color: var(--muted);
  font-family: var(--number);
  font-size: 9px;
  letter-spacing: .16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
}

.main-nav a {
  min-width: 68px;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  transition: .2s ease;
}

.main-nav a:hover { color: var(--ink); background: #f2f4f6; }
.main-nav a.active { color: #fff; background: var(--navy); }

.header-status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.header-status > div {
  display: grid;
  gap: 1px;
}

.header-status small {
  color: #8c96a1;
  font-size: 9px;
  line-height: 1.25;
  white-space: nowrap;
}

.header-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--down);
  box-shadow: 0 0 0 5px rgba(23, 134, 101, .1);
}

.page-shell {
  width: min(1480px, calc(100% - 36px));
  min-height: calc(100vh - 128px);
  margin: 0 auto;
  padding: 14px 0 32px;
}

.page-shell.home-shell {
  padding-top: 8px;
  padding-bottom: 18px;
}

.page-shell[data-route="home"],
.page-shell[data-route="sectors"],
.page-shell[data-route="sector"] { --module-hero: url("./assets/module-heroes/sectors.webp"); }
.page-shell[data-route="stocks"],
.page-shell[data-route="stock"] { --module-hero: url("./assets/module-heroes/stocks.webp"); }
.page-shell[data-route="resonance"],
.page-shell[data-route="method"] { --module-hero: url("./assets/module-heroes/resonance.webp"); }
.page-shell[data-route="futures"],
.page-shell[data-route="future"] { --module-hero: url("./assets/module-heroes/futures.webp"); }
.page-shell[data-route="positions"],
.page-shell[data-route="position"] { --module-hero: url("./assets/module-heroes/positions.webp"); }
.page-shell[data-route="global"],
.page-shell[data-route="global-stock"] { --module-hero: url("./assets/module-heroes/global.webp"); }
.page-shell[data-route="etf-market"],
.page-shell[data-route="users"] { --module-hero: url("./assets/module-heroes/etf-market.webp"); }
.page-shell[data-route="etf"] { --module-hero: url("./assets/module-heroes/etf-redemption.webp"); }

.home-hero,
.page-intro,
.detail-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(206, 214, 222, .9);
  border-radius: 18px;
  background-image:
    linear-gradient(90deg, rgba(248, 250, 251, .98) 0%, rgba(248, 250, 251, .92) 48%, rgba(248, 250, 251, .48) 74%, rgba(248, 250, 251, .16) 100%),
    var(--module-hero);
  background-position: center, center 48%;
  background-size: cover;
  box-shadow: 0 14px 40px rgba(22, 34, 50, .07);
}
.home-hero > *,
.page-intro > *,
.detail-hero > * { position: relative; z-index: 1; }

.eyebrow {
  color: var(--warm);
  font-family: var(--number);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.home-hero {
  min-height: 176px;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero h1,
.page-intro h1,
.detail-hero h1 {
  margin: 7px 0 9px;
  color: var(--navy);
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.home-hero h1 em {
  color: var(--warm);
  font-style: normal;
  font-weight: 400;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta span { display: flex; align-items: baseline; gap: 7px; }
.hero-meta b { color: var(--ink); font-family: var(--number); font-size: 18px; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.module-card {
  min-height: 154px;
  padding: 16px 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 70px rgba(26, 35, 46, .1);
}

.module-card.primary { color: #fff; background: var(--navy); border-color: var(--navy); }
.module-card.stock-lookup { background: #f7f3ec; border-color: #e6dac7; }
.module-card.futures { background: #f6f0e7; border-color: #e4d3bd; }
.module-card.positions { background: #f3eef7; border-color: #ded2e7; }
.module-card.global { background: #edf3f5; border-color: #d7e2e5; }
.module-card.market-etf { background: #eef5f2; border-color: #d2e3dc; }
.module-card.etf { background: #f2f5f8; }
.module-card.resonance { background: linear-gradient(145deg, #fff 0%, #f5f1ea 100%); border-color: #dfd2bf; }
.module-card.method { background: var(--warm-soft); border-color: #eadbc9; }
.module-eyebrow {
  color: var(--muted);
  font-family: var(--number);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
}
.module-card.primary .module-eyebrow,
.module-card.primary p { color: #9eabba; }
.module-card h2 { margin: 7px 0 5px; font-size: 20px; letter-spacing: -.03em; }
.module-card p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.module-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.module-foot span { color: var(--muted); font-size: 11px; }
.module-card.primary .module-foot span { color: #9eabba; }
.module-foot b { margin-right: 4px; color: var(--ink); font-family: var(--number); font-size: 24px; }
.module-card.primary .module-foot b { color: #fff; }
.module-foot i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--number);
  font-size: 14px;
  font-style: normal;
}

.home-snapshot {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: end;
  gap: 22px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.snapshot-copy h2 { margin: 5px 0 4px; font-size: 23px; letter-spacing: -.04em; }
.snapshot-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.snapshot-numbers { display: grid; grid-template-columns: repeat(3, 1fr); }
.snapshot-numbers p {
  margin: 0;
  padding: 3px 20px;
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--line);
}
.snapshot-numbers b { font-family: var(--number); font-size: 28px; font-weight: 600; }
.snapshot-numbers span { color: var(--muted); font-size: 11px; }

.home-rankings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 40px;
}
.mini-ranking {
  padding: 22px 24px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.mini-ranking ol,
.direction-card ol { margin: 14px 0 0; padding: 0; list-style: none; }
.mini-ranking li a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}
.mini-ranking li:first-child a { border-top: 0; }
.mini-ranking li span { display: flex; align-items: baseline; gap: 10px; }
.mini-ranking li b { font-size: 14px; }
.mini-ranking li small { color: var(--muted); font-size: 11px; }
.mini-ranking li strong { font-family: var(--number); font-size: 15px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading > div:first-child { display: grid; gap: 4px; }
.section-heading span { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.section-heading h2,
.section-heading h3 { margin: 0; letter-spacing: -.03em; }
.section-heading h2 { font-size: 24px; }
.section-heading h3 { font-size: 19px; }
.section-heading.small h2 { font-size: 20px; }
.section-heading > a { color: var(--muted); font-size: 13px; }

.focus-section { padding: 0 0 22px; }
.focus-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.focus-chip {
  min-height: 68px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.45);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background .18s ease;
}
.focus-chip:hover { background: var(--paper); }
.focus-chip > a { display: grid; gap: 7px; }
.focus-chip span { font-size: 14px; }
.focus-chip b { font-family: var(--number); font-size: 14px; }
.watchlist-empty {
  min-height: 110px;
  margin-top: 22px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(255,255,255,.5);
}
.watchlist-empty b { font-size: 17px; }
.watchlist-empty p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.watchlist-empty > a { padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 13px; white-space: nowrap; }
.watchlist-empty > a:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.coverage-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.page-intro {
  min-height: 174px;
  margin-bottom: 10px;
  padding: 22px 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.page-intro h1 { margin-bottom: 5px; font-size: clamp(38px, 3.8vw, 52px); }
.page-intro p { max-width: 820px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.compact-intro .intro-stat { padding: 0 16px 8px 40px; border-left: 1px solid var(--line-strong); display: grid; gap: 2px; }
.intro-stat b { font-family: var(--number); font-size: 34px; font-weight: 500; }
.intro-stat span { color: var(--muted); font-size: 12px; }

.directory-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.directory-panel { margin-top: 10px; overflow: hidden; }
.directory-controls {
  min-height: 58px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.type-tabs,
.period-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.type-tabs button,
.period-tabs button {
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}
.type-tabs button { padding: 8px 12px; }
.period-tabs button { min-width: 38px; padding: 7px 6px; font-family: var(--number); }
.type-tabs button.active,
.period-tabs button.active { color: #fff; background: var(--navy); }
.search-box,
.sort-box { display: grid; gap: 4px; }
.search-box { margin-left: auto; min-width: 220px; }
.search-box span,
.sort-box span { color: var(--muted); font-size: 11px; }
.search-box input,
.sort-box select {
  height: 36px;
  padding: 0 11px;
  outline: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.search-box input:focus,
.sort-box select:focus { border-color: #8e9bab; box-shadow: 0 0 0 3px rgba(142, 155, 171, .1); }
.sort-box select { min-width: 118px; }

.result-bar {
  min-height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  background: #fafbfb;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.result-bar b { color: var(--ink); font-family: var(--number); }
.data-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 15px;
}
.data-table th {
  height: 46px;
  padding: 0 11px;
  color: var(--muted);
  background: #fafbfb;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-size: 13px;
  font-weight: 600;
}
.data-table th:first-child,
.data-table td:first-child { padding-left: 18px; text-align: left; }
.data-table th:last-child,
.data-table td:last-child { padding-right: 16px; }
.data-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color .18s ease, background .18s ease;
}
.data-table th.sortable:hover,
.data-table th.sortable:focus,
.data-table th.sortable.active { color: var(--ink); background: #f2f5f6; outline: none; }
.data-table th.sortable i {
  margin-left: 6px;
  color: #aeb6be;
  font-family: var(--number);
  font-size: 11px;
  font-style: normal;
}
.data-table th.sortable.active i { color: var(--warm); }
.data-table td {
  height: 56px;
  padding: 0 11px;
  border-bottom: 1px solid #edf0f2;
  text-align: right;
  font-family: var(--number);
  font-weight: 500;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) td { background: #fbfcfd; }
.data-table tbody tr:hover td { background: #fafbfc; }
.name-link { display: inline-grid; gap: 2px; font-family: var(--font); }
.name-link b { color: var(--ink); font-size: 16px; font-weight: 700; }
.name-link small { color: var(--muted); font-family: var(--number); font-size: 11px; font-weight: 400; }
.hover-value {
  cursor: help;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
  transition: text-decoration-color .16s ease;
}
.hover-value:hover,
.hover-value:focus { text-decoration-color: currentColor; outline: none; }
.board-name-cell { display: inline-flex; align-items: center; gap: 11px; }
.watch-button {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  font-family: var(--font);
  font-size: 12px;
}
.watch-button:hover { color: var(--warm); border-color: #cfb58e; background: var(--warm-soft); }
.watch-button.active { color: #8f642d; border-color: #d9bd97; background: var(--warm-soft); }
.watch-button i { color: inherit; font-size: 16px; font-style: normal; line-height: 1; }
.watch-button.compact { width: 32px; min-height: 32px; padding: 0; border-radius: 50%; }
.watch-button.compact i { font-size: 17px; }
.row-arrow {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}
.row-arrow:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.empty-cell { height: 150px !important; color: var(--muted); text-align: center !important; }
.load-more {
  width: 100%;
  height: 48px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fafbfb;
  font-size: 13px;
}
.load-more:hover { color: var(--ink); background: #f3f5f6; }
.pagination {
  min-height: 50px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #fafbfb;
}
.pagination > div { display: flex; align-items: center; gap: 5px; }
.pagination button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-family: var(--number);
  font-size: 12px;
}
.pagination button:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); }
.pagination button.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.pagination button:disabled { cursor: not-allowed; opacity: .42; }
.pagination > div > span { padding: 0 2px; color: var(--muted); }
.pagination small { margin-left: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }

.breadcrumb {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb b { color: var(--ink); font-weight: 500; }

.detail-hero {
  min-height: 174px;
  padding: 22px 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}
.page-intro .intro-stat,
.page-intro .auth-status,
.page-intro .etf-source-actions,
.page-intro .market-etf-source-links,
.detail-hero .detail-actions,
.detail-hero .history-range,
.detail-hero .as-of {
  padding: 12px 14px;
  border: 1px solid rgba(213, 219, 225, .88);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(8px);
}
.compact-intro .intro-stat { padding: 12px 14px; border-left: 1px solid rgba(213, 219, 225, .88); }
.detail-hero h1 { margin: 6px 0 5px; font-size: clamp(36px, 3.7vw, 50px); }
.detail-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.title-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.title-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
  font-size: 11px;
}
.detail-actions { display: grid; justify-items: end; gap: 16px; }
.as-of { color: var(--muted); font-size: 12px; }
.as-of b { margin-left: 5px; color: var(--ink); font-family: var(--number); }
.history-range {
  min-width: 300px;
  padding: 12px 15px;
  display: grid;
  justify-items: end;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.65);
}
.history-range span { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.history-range b { font-family: var(--number); font-size: 14px; }
.history-range small { color: var(--muted); font-size: 10px; }
.exclusion-notice {
  min-height: 66px;
  margin: 14px 0;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid #ead8bf;
  border-radius: 12px;
  background: #fbf6ef;
}
.exclusion-notice > span {
  padding: 6px 9px;
  border-radius: 6px;
  color: #8c622d;
  background: #f1e1cc;
  font-size: 11px;
  white-space: nowrap;
}
.exclusion-notice p { margin: 0; color: #6e6253; font-size: 13px; line-height: 1.7; }
.exclusion-notice p b { color: var(--ink); }
.stock-exclusion { margin-bottom: 0; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 18px 0 14px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.metric-card {
  min-height: 112px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255,255,255,.62);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.metric-card span { color: var(--muted); font-size: 11px; }
.metric-card b { color: var(--ink); font-family: var(--number); font-size: 24px; font-weight: 600; }
.metric-card small { color: #929ba5; font-size: 10px; line-height: 1.5; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .8fr);
  gap: 14px;
}
.panel { padding: 16px; }
.chart-panel { overflow: hidden; }
.history-chart { width: 100%; height: auto; margin-top: 22px; overflow: visible; }
.history-chart text { fill: #8c96a1; font-family: var(--number); font-size: 9px; }
.zero-line { stroke: #d7dce1; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-up { fill: var(--up); opacity: .82; }
.chart-down { fill: var(--down); opacity: .78; }
.history-chart rect[data-tooltip] { cursor: crosshair; transition: opacity .15s ease, filter .15s ease; }
.history-chart rect[data-tooltip]:hover,
.history-chart rect[data-tooltip]:focus { opacity: 1; filter: drop-shadow(0 2px 3px rgba(22,34,50,.2)); outline: none; }
.price-line { fill: none; stroke: var(--navy); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-legend { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.chart-legend i { width: 8px; height: 8px; display: inline-block; }
.chart-legend .flow-up { background: var(--up); }
.chart-legend .flow-down { background: var(--down); }
.chart-legend .line { width: 13px; height: 2px; margin-left: 4px; background: var(--navy); }
.empty-chart { min-height: 230px; display: grid; place-items: center; color: var(--muted); font-size: 11px; }

.signal-panel { display: flex; flex-direction: column; }
.signal-value {
  margin: 34px 0 10px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.signal-value.warning { color: var(--warning); }
.signal-panel > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.concentration {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  border-top: 1px solid var(--line);
}
.concentration span { color: var(--muted); font-size: 11px; }
.concentration b { font-family: var(--number); font-size: 21px; }
.concentration i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #edf0f2;
}
.concentration em { height: 100%; display: block; background: var(--warm); border-radius: inherit; }
.concentration small { grid-column: 1 / -1; color: #9aa2aa; font-size: 10px; }

.direction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.direction-card li a {
  min-height: 52px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
}
.direction-card li:first-child a { border-top: 0; }
.direction-card li i { color: #a6afb8; font-family: var(--number); font-size: 10px; font-style: normal; }
.direction-card li span { display: grid; gap: 2px; }
.direction-card li b { font-size: 13px; }
.direction-card li small { color: var(--muted); font-family: var(--number); font-size: 10px; }
.direction-card li strong { font-family: var(--number); font-size: 13px; }
.empty-row { padding: 18px 0; color: var(--muted); font-size: 12px; list-style: none; }
.membership-card { display: flex; flex-direction: column; }
.baseline-note { margin: auto 0; padding: 26px; border-radius: 12px; background: var(--warm-soft); }
.baseline-note b { font-size: 17px; }
.baseline-note p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.member-change { margin-top: 20px; }
.member-change > p { display: flex; justify-content: space-between; margin: 12px 0 8px; color: var(--muted); font-size: 10px; }
.member-change > div { display: flex; flex-wrap: wrap; gap: 6px; }
.member-change > div span { padding: 5px 7px; border-radius: 6px; background: #f3f5f6; font-size: 9px; }
.member-change em { color: var(--muted); font-size: 9px; }

.stock-panel { margin-top: 14px; padding: 0; overflow: hidden; }
.stock-panel > .section-heading { padding: 16px 18px 9px; }
.stock-panel > .section-heading > b { color: var(--ink); font-family: var(--number); font-size: 17px; }
.stock-controls {
  padding: 9px 18px 12px;
  display: flex;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.stock-controls .search-box { margin: 0; }
.table-note { margin: 0; padding: 13px 22px; color: var(--muted); background: #fafbfb; border-top: 1px solid var(--line); font-size: 11px; }
.excluded-row td { color: #8e8172; background: #fcf8f2 !important; }
.excluded-value { color: #9a7b55 !important; font-size: 13px; }
.excluded-tag {
  margin-left: 8px;
  padding: 3px 6px;
  border-radius: 5px;
  color: #8c622d;
  background: #f2e2cd;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  vertical-align: 2px;
}
.stock-detail-hero { min-height: 148px; }
.stock-metrics { grid-template-columns: repeat(6, 1fr); }
.stock-history-panel,
.recent-days { margin-top: 18px; }
.recent-days { padding: 0; overflow: hidden; }
.recent-days > .section-heading { padding: 16px 18px; }

.stock-search-intro { min-height: 142px; }
.direct-stock-search {
  min-height: 96px;
  margin: 10px 0;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: end;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.direct-stock-search > label { display: grid; gap: 8px; }
.direct-stock-search > label span { color: var(--muted); font-size: 11px; }
.direct-stock-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  outline: none;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
}
.direct-stock-search input:focus { border-color: #8795a4; box-shadow: 0 0 0 4px rgba(135,149,164,.12); }
.direct-stock-search > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.direct-stock-search > div > span { color: var(--muted); font-size: 11px; }
.direct-stock-search button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fafbfb;
  font-family: var(--number);
  font-size: 11px;
}
.direct-stock-search button:hover { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.screener-search { grid-template-columns: minmax(320px, 1fr) 220px auto; }
.screener-filter select {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 13px;
  outline: none;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}
.screener-filter select:focus { border-color: #8795a4; box-shadow: 0 0 0 4px rgba(135,149,164,.12); }
.stock-search-examples { align-self: end; min-height: 44px; }
.custom-rule-panel {
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}
.custom-rule-panel.open { border-color: #cbd3da; box-shadow: 0 8px 24px rgba(32,45,57,.05); }
.custom-rule-heading {
  width: 100%;
  min-height: 66px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.custom-rule-heading > span { display: grid; gap: 5px; }
.custom-rule-heading b { font-size: 15px; }
.custom-rule-heading small { color: var(--muted); font-size: 10px; font-weight: 400; }
.custom-rule-heading em {
  color: var(--warm);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}
.custom-rule-content { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.custom-rule-mode { display: flex; align-items: center; gap: 10px; }
.custom-rule-mode > span { color: var(--muted); font-size: 10px; }
.custom-rule-mode select,
.custom-rule-row select,
.custom-rule-row input {
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  outline: none;
}
.custom-rule-mode select { padding: 0 28px 0 10px; }
.custom-rule-mode small { margin-left: auto; color: var(--muted); font-size: 9px; }
.custom-rule-list { margin-top: 12px; display: grid; gap: 8px; }
.custom-rule-row {
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) 76px minmax(150px, .8fr) 58px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbfc;
}
.custom-rule-row select { padding: 0 28px 0 10px; }
.custom-rule-row label { position: relative; display: block; }
.custom-rule-row input { width: 100%; padding: 0 46px 0 10px; font-family: var(--number); }
.custom-rule-row label span {
  position: absolute;
  top: 50%;
  right: 10px;
  color: var(--muted);
  font-size: 9px;
  transform: translateY(-50%);
  pointer-events: none;
}
.custom-rule-row button,
.custom-rule-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  cursor: pointer;
}
.custom-rule-row button { color: #9a4a43; }
.custom-rule-actions { margin-top: 10px; display: flex; gap: 8px; }
.custom-rule-actions button { padding: 0 13px; }
.custom-rule-actions button:first-child { color: #fff; background: var(--navy); border-color: var(--navy); }
.custom-rule-actions button:disabled { opacity: .45; cursor: default; }
.custom-rule-empty {
  padding: 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}
.stock-rule-strip {
  margin: 10px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.56);
}
.stock-rule-strip article {
  min-height: 102px;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}
.stock-rule-strip article:last-child { border-right: 0; }
.stock-rule-strip span { color: var(--warm); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.stock-rule-strip b { margin-top: 10px; display: block; font-size: 15px; }
.stock-rule-strip p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.stock-search-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stock-search-guide > div {
  min-height: 118px;
  padding: 15px 17px;
  border-top: 1px solid var(--line-strong);
  background: rgba(255,255,255,.42);
}
.stock-search-guide span { color: var(--warm); font-family: var(--number); font-size: 10px; }
.stock-search-guide b { margin-top: 13px; display: block; font-size: 16px; }
.stock-search-guide p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.direct-stock-panel { margin-top: 0; }
.inline-sort { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.inline-sort select {
  height: 32px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
}
.range-cell { display: inline-grid; grid-template-columns: auto auto auto; align-items: center; gap: 5px; color: var(--ink); font-size: 11px; }
.range-cell i { color: var(--muted); font-style: normal; }
.range-cell small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; text-align: right; }
.responsive-table-wrap { overflow-x: hidden; }
.responsive-table-wrap .data-table { min-width: 0; table-layout: fixed; }
.responsive-table-wrap .data-table th,
.responsive-table-wrap .data-table td { overflow: hidden; text-overflow: ellipsis; }
.responsive-table-wrap .name-link { max-width: 100%; overflow: hidden; }
.responsive-table-wrap .name-link b,
.responsive-table-wrap .name-link small { overflow: hidden; text-overflow: ellipsis; }

.sector-table { min-width: 0; width: 100%; table-layout: fixed; }
.sector-table th:nth-child(1) { width: 17%; }
.sector-table th:nth-child(2) { width: 8%; }
.sector-table th:nth-child(3) { width: 11%; }
.sector-table th:nth-child(4) { width: 8%; }
.sector-table th:nth-child(5) { width: 8%; }
.sector-table th:nth-child(6) { width: 11%; }
.sector-table th:nth-child(7) { width: 9%; }
.sector-table th:nth-child(8) { width: 8%; }
.sector-table th:nth-child(9) { width: 7%; }
.sector-table th:nth-child(10) { width: 9%; }
.sector-table th:nth-child(11) { width: 6%; }
.sector-table th:nth-child(12) { width: 4%; }

.screener-table { min-width: 0; width: 100%; table-layout: fixed; }
.screener-table th:nth-child(1) { width: 14%; }
.screener-table th:nth-child(2) { width: 15%; }
.screener-table th:nth-child(3) { width: 7%; }
.screener-table th:nth-child(4) { width: 8%; }
.screener-table th:nth-child(5) { width: 7%; }
.screener-table th:nth-child(6),
.screener-table th:nth-child(7) { width: 9%; }
.screener-table th:nth-child(8) { width: 7%; }
.screener-table th:nth-child(9) { width: 7%; }
.screener-table th:nth-child(10) { width: 8%; }
.screener-table th:nth-child(11) { width: 8%; }
.screener-table th:nth-child(12) { width: 4%; }
.detail-stock-responsive-wrap .stock-table { min-width: 0; width: 100%; table-layout: fixed; }
.detail-stock-responsive-wrap .stock-table th:first-child { width: 24%; }
.stock-sector-tags {
  max-width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.stock-sector-tags a,
.stock-sector-tags i {
  max-width: 88px;
  padding: 4px 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #50606f;
  background: #f5f7f8;
  font-size: 9px;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-sector-tags a.行业 { color: #8a6030; background: #faf4eb; border-color: #eadbc7; }
.stock-sector-tags a.地域 { color: #3e617b; background: #eef6fa; border-color: #d5e5ee; }
.stock-sector-tags a.概念 { color: #6c4d78; background: #f7f0f8; border-color: #e7d9ea; }
.stock-sector-tags a:hover { border-color: #9da9b4; }
.stock-sector-tags i { color: var(--muted); }
.sector-membership-empty { color: var(--muted); font-size: 9px; }
.stock-sector-memberships {
  margin-top: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.7);
}
.stock-sector-memberships > div { display: grid; gap: 5px; }
.stock-sector-memberships > div > span { color: var(--warm); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.stock-sector-memberships p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.stock-sector-memberships .stock-sector-tags a { max-width: 140px; padding: 6px 9px; font-size: 10px; }
.position-cell { display: inline-grid; justify-items: end; gap: 2px; }
.position-cell b { color: var(--ink); font-family: var(--number); font-size: 14px; }
.position-cell small { color: var(--muted); font-family: var(--font); font-size: 9px; }
.selection-score { color: var(--ink); font-family: var(--number); font-size: 18px; font-weight: 650; }
.selection-score i { margin-left: 2px; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 400; }
.selection-score.compact { font-size: 15px; }
.selection-stage {
  min-width: 72px;
  padding: 6px 9px;
  display: inline-flex;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f6f8f9;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 650;
}
.selection-stage.confirmed { color: #fff; background: var(--down); border-color: var(--down); }
.selection-stage.initial { color: #276d59; background: var(--down-soft); border-color: #c9e5da; }
.selection-stage.watching { color: #8c612d; background: var(--warm-soft); border-color: #ead8c0; }
.selection-stage.risk { color: #a23d36; background: var(--up-soft); border-color: #f0cbc7; }

.selection-overview {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.selection-overview article {
  min-height: 116px;
  padding: 14px 15px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.selection-overview span { color: var(--muted); font-size: 10px; }
.selection-overview article > b { font-family: var(--number); font-size: 23px; font-weight: 600; }
.selection-overview article > small { min-height: 30px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.selection-result-card { background: var(--navy) !important; }
.selection-result-card > span,
.selection-result-card > small { color: rgba(255,255,255,.68); }
.selection-result-card > b { color: #fff; }
.selection-result-card > b i { margin-left: 3px; font-size: 10px; font-style: normal; font-weight: 400; opacity: .7; }
.selection-result-card .selection-stage { border-color: rgba(255,255,255,.14); }
.selection-rule-panel { margin-top: 14px; padding: 0; overflow: hidden; }
.selection-rule-panel > .section-heading { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.selection-rule-panel > .section-heading em {
  padding: 6px 9px;
  border-radius: 999px;
  color: #8a6436;
  background: var(--warm-soft);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}
.selection-rule-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
}
.rule-checklist { display: grid; }
.rule-checklist article {
  min-height: 74px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.rule-checklist article:last-child { border-bottom: 0; }
.rule-checklist article.passed { background: #f4faf7; }
.rule-checklist i { color: var(--warm); font-family: var(--number); font-size: 10px; font-style: normal; }
.rule-checklist b { font-size: 13px; }
.rule-checklist p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.rule-checklist strong {
  min-width: 52px;
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef1f3;
  text-align: center;
  font-size: 9px;
}
.rule-checklist article.passed strong { color: #27725c; background: #dff1e9; }
.observation-cycle {
  padding: 18px;
  border-left: 1px solid var(--line);
  background: #fafbfb;
}
.observation-cycle > span { color: var(--warm); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.observation-cycle h3 { margin: 8px 0 14px; font-size: 19px; }
.observation-cycle ol { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.observation-cycle li { display: grid; grid-template-columns: 70px 1fr; gap: 9px; }
.observation-cycle li b { font-size: 10px; }
.observation-cycle li p,
.rule-reset { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.rule-reset { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.rule-reset b { color: var(--ink); }

.holding-plan-pill {
  min-width: 76px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5c6874;
  background: #f2f4f5;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.holding-plan-pill.trial { color: #8a6436; border-color: #ead8bd; background: #fbf3e7; }
.holding-plan-pill.build,
.holding-plan-pill.add { color: #c84640; border-color: #f1cbc7; background: #fff0ee; }
.holding-plan-pill.hold { color: #176f5b; border-color: #c6e4db; background: #eaf7f2; }
.holding-plan-pill.reduce,
.holding-plan-pill.exit { color: #08725b; border-color: #b9ddd3; background: #e4f3ee; }
.holding-plan-pill.exit { box-shadow: inset 3px 0 0 #08725b; }

.holding-plan-panel {
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
  border-color: #d8dee3;
}
.holding-plan-panel > .section-heading {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #f7f9fa, #fff);
}
.holding-plan-panel > .section-heading h2 { font-size: 25px; }
.holding-plan-panel > .section-heading em {
  max-width: 420px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
  text-align: right;
}
.holding-plan-summary {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) repeat(2, minmax(250px, .9fr));
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}
.holding-plan-summary > * {
  min-height: 130px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.holding-plan-summary span,
.holding-plan-stages article > span {
  color: var(--warm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.holding-plan-conclusion h3 { margin: 8px 0 7px; font-size: 23px; }
.holding-plan-conclusion p,
.holding-plan-summary article small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.holding-plan-summary article { display: grid; align-content: start; gap: 10px; }
.holding-plan-summary article b { font-size: 18px; line-height: 1.4; }
.holding-plan-panel.build .holding-plan-conclusion,
.holding-plan-panel.add .holding-plan-conclusion { border-color: #f0c6c1; background: #fff5f3; }
.holding-plan-panel.hold .holding-plan-conclusion { border-color: #c7e4dc; background: #f1faf6; }
.holding-plan-panel.reduce .holding-plan-conclusion,
.holding-plan-panel.exit .holding-plan-conclusion { border-color: #b9ddd3; background: #edf8f4; }
.holding-plan-panel.trial .holding-plan-conclusion { border-color: #ead8bd; background: #fcf6ec; }
.holding-plan-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.holding-plan-stages article {
  min-height: 320px;
  padding: 20px;
  border-right: 1px solid var(--line);
}
.holding-plan-stages article:last-child { border-right: 0; }
.holding-plan-stages h3 { min-height: 52px; margin: 9px 0 14px; font-size: 16px; line-height: 1.55; }
.holding-plan-stages ul { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.holding-plan-stages li {
  min-height: 42px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  color: #71808c;
  background: #f5f7f8;
  font-size: 11px;
  line-height: 1.5;
}
.holding-plan-stages li i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #84909a;
  background: #e5eaed;
  font-style: normal;
  font-weight: 700;
}
.holding-plan-stages li.active { color: #235d4f; background: #eaf6f1; }
.holding-plan-stages li.active i { color: #fff; background: #2c8b71; }
.holding-plan-stages li.warning { color: #086b56; background: #e2f2ed; }
.holding-plan-stages li.warning i { color: #fff; background: #08725b; }
.holding-plan-stages article > p { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.holding-plan-stages .exit { background: #fbfcfc; }
.holding-plan-note {
  margin: 0;
  padding: 13px 20px;
  color: #6c7883;
  border-top: 1px solid var(--line);
  background: #f6f7f8;
  font-size: 11px;
  line-height: 1.6;
}

.resonance-intro { min-height: 148px; }
.resonance-periods {
  padding: 5px;
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.8);
}
.resonance-periods button {
  min-width: 72px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}
.resonance-periods button.active { color: #fff; background: var(--navy); }
.resonance-summary {
  margin: 10px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.resonance-card {
  min-height: 92px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.resonance-card:hover,
.resonance-card.active { border-color: var(--line-strong); box-shadow: 0 12px 35px rgba(26,35,46,.07); }
.resonance-card.active { transform: translateY(-2px); }
.resonance-card span { color: var(--muted); font-size: 12px; }
.resonance-card b { font-family: var(--number); font-size: 28px; font-weight: 600; }
.resonance-card small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.resonance-card.inflow b { color: var(--up); }
.resonance-card.outflow b { color: var(--down); }
.resonance-card.divergence b { color: var(--warning); }
.resonance-panel { margin-top: 0; }
.resonance-toolbar {
  min-height: 60px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.resonance-toolbar > div:first-child { display: grid; gap: 4px; }
.resonance-toolbar span { color: var(--muted); font-size: 11px; }
.resonance-toolbar h2 { margin: 0; font-size: 18px; }
.resonance-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.resonance-filters button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
}
.resonance-filters button.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.resonance-explainer {
  min-height: 40px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  background: #fafbfb;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.resonance-explainer p { margin: 0; }
.resonance-explainer p b { color: var(--ink); }
.resonance-explainer > span { color: #8c622d; white-space: nowrap; }
.resonance-status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
}
.resonance-status.inflow { color: var(--up); background: var(--up-soft); }
.resonance-status.outflow { color: var(--down); background: var(--down-soft); }
.resonance-status.divergence { color: var(--warning); background: #fcf1e2; }
.resonance-status.neutral { color: var(--muted); background: #f1f3f5; }

.global-overview,
.user-summary {
  margin: 10px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.global-overview article,
.user-summary article {
  min-height: 90px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.global-overview span,
.user-summary span { color: var(--muted); font-size: 12px; }
.global-overview b,
.user-summary b { font-family: var(--number); font-size: 32px; font-weight: 600; }
.global-overview small,
.user-summary small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.global-date { font-size: 22px !important; }
.global-panel { margin-top: 0; }
.global-controls .search-box { min-width: 290px; }
.market-pill {
  display: inline-flex;
  min-width: 48px;
  padding: 6px 9px;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 12px;
}
.market-pill.us { color: #244b76; background: #eaf1f8; }
.market-pill.jp { color: #a3443e; background: #fbeeed; }
.market-pill.kr { color: #76542c; background: #f8f1e7; }
.theme-list { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.theme-list i {
  padding: 4px 7px;
  border-radius: 6px;
  color: #52606e;
  background: #f0f3f5;
  font-family: var(--font);
  font-size: 10px;
  font-style: normal;
}
.relation-preview { max-width: 260px; display: inline-block; overflow: hidden; color: var(--muted); font-family: var(--font); font-size: 12px; text-overflow: ellipsis; vertical-align: middle; }
.global-source-note {
  margin: 0;
  padding: 13px 24px;
  color: var(--muted);
  background: #fafbfb;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.global-source-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.global-detail-hero { min-height: 148px; }
.global-metrics { grid-template-columns: repeat(6, 1fr); }
.global-metrics .metric-card:first-child { background: var(--navy); }
.global-metrics .metric-card:first-child span,
.global-metrics .metric-card:first-child small { color: #aab5c1; }
.global-metrics .metric-card:first-child b { color: #fff; font-size: 19px; }
.relation-disclaimer {
  min-height: 72px;
  margin: 14px 0;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid #d8e2e5;
  border-radius: 12px;
  background: #f1f6f7;
}
.relation-disclaimer > span {
  padding: 6px 9px;
  border-radius: 6px;
  color: #315b65;
  background: #dcebed;
  font-size: 11px;
}
.relation-disclaimer p { margin: 0; color: #5f7176; font-size: 13px; line-height: 1.7; }
.relation-panel { padding: 0; overflow: hidden; }
.relation-panel > .section-heading { padding: 16px 18px; }
.relation-panel > .section-heading > b { font-family: var(--number); font-size: 18px; }
.relation-table .rationale-cell {
  min-width: 280px;
  max-width: 390px;
  white-space: normal;
  text-align: left;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.confidence {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
}
.confidence.high { color: var(--up); background: var(--up-soft); }
.confidence.medium { color: var(--warning); background: #fcf1e2; }
.confidence.low { color: var(--muted); background: #f1f3f5; }
.global-recent { margin-top: 14px; }

.price-unit { margin-left: 5px; color: var(--muted); font-family: var(--font); font-size: 10px; font-weight: 400; }
.futures-controls { align-items: flex-start; flex-wrap: wrap; }
.futures-category-tabs { flex: 1 1 680px; flex-wrap: wrap; }
.futures-category-tabs button { flex: 0 0 auto; }
.futures-controls .period-tabs { flex: 0 0 auto; }
.futures-controls .search-box { min-width: 340px; margin-left: auto; }
.future-category {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #76542c;
  background: #f7efe3;
  font-family: var(--font);
  font-size: 11px;
  white-space: nowrap;
}
.futures-table th:nth-child(n+4),
.futures-table td:nth-child(n+4) { text-align: right; }
.futures-table td:first-child,
.futures-table td:nth-child(2),
.futures-table td:nth-child(3) { text-align: left; }
.futures-disclaimer { border-color: #ead9c4; background: #fbf5ec; }
.futures-disclaimer > span { color: #76542c; background: #f1e2cf; }
.futures-sector-panel { margin: 14px 0; padding: 0; overflow: hidden; }
.futures-sector-panel > .section-heading { padding: 16px 18px; }
.futures-sector-panel > .section-heading > b { font-family: var(--number); font-size: 18px; }
.futures-sector-grid {
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.futures-sector-grid > a {
  min-height: 150px;
  padding: 16px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfb;
  transition: border-color .2s ease, transform .2s ease;
}
.futures-sector-grid > a:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.futures-sector-grid span { color: var(--muted); font-size: 10px; }
.futures-sector-grid h3 { margin: 4px 0 11px; font-size: 18px; }
.futures-sector-grid p { margin: 6px 0; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.futures-sector-grid p b { color: var(--ink); font-family: var(--number); font-size: 12px; }
.impact-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 10px;
  white-space: nowrap;
}
.impact-badge.positive { color: var(--up); background: var(--up-soft); }
.impact-badge.cost { color: var(--down); background: var(--down-soft); }
.impact-badge.mixed { color: var(--warning); background: #fcf1e2; }
.futures-recent .section-heading > a { color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }

.price-direction-cell { white-space: nowrap; }
.price-direction-cell > span:first-child,
.price-direction-cell > b:first-child { vertical-align: middle; }
.trend-arrow {
  width: 24px;
  height: 24px;
  margin-left: 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  font-family: var(--number);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}
.trend-arrow.up { color: var(--up) !important; background: var(--up-soft); }
.trend-arrow.down { color: var(--down) !important; background: var(--down-soft); }
.trend-arrow.flat { color: var(--muted) !important; background: #f1f3f5; font-size: 13px; }

.detail-price-chart-panel { margin-top: 14px; }
.detail-line-chart {
  margin: 0 18px 16px;
  padding: 14px 14px 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfc;
}
.detail-line-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.line-chart-caption { display: flex; align-items: baseline; gap: 12px; padding: 0 6px 4px; }
.line-chart-caption > span { color: var(--muted); font-size: 11px; }
.line-chart-caption > b { font-family: var(--number); font-size: 24px; }
.line-chart-caption > small { font-family: var(--number); font-size: 11px; }
.line-chart-grid { stroke: #e5e9ed; stroke-width: 1; stroke-dasharray: 4 5; }
.line-chart-axis { fill: #84909c; font-family: var(--number); font-size: 11px; }
.line-chart-segment { stroke-width: 3.3; stroke-linecap: round; }
.line-chart-segment.up { stroke: var(--up); }
.line-chart-segment.down { stroke: var(--down); }
.line-chart-segment.flat { stroke: #9da7b0; }
.line-chart-dot { stroke: #fff; stroke-width: 2; cursor: pointer; }
.line-chart-dot.up { fill: var(--up); }
.line-chart-dot.down { fill: var(--down); }
.line-chart-dot.flat { fill: #9da7b0; }
.line-chart-dot:hover,
.line-chart-dot:focus { r: 6.5; outline: none; }
.detail-line-chart > p { margin: 2px 6px 0; color: var(--muted); font-size: 10px; }

.usage-guide {
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}
.usage-guide summary {
  min-height: 52px;
  padding: 11px 16px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
}
.usage-guide summary::-webkit-details-marker { display: none; }
.usage-guide summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--number);
  font-size: 16px;
}
.usage-guide[open] summary::after { content: "−"; }
.usage-guide summary span { color: var(--warm); font-size: 10px; letter-spacing: .12em; }
.usage-guide summary b { color: var(--ink); font-size: 14px; }
.usage-guide-body { padding: 0 16px 14px; border-top: 1px solid var(--line); }
.usage-guide-body ol {
  margin: 0;
  padding: 12px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}
.usage-guide-body li { display: grid; grid-template-columns: 25px 1fr; gap: 8px; }
.usage-guide-body li > i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #eef1f3;
  font-family: var(--number);
  font-size: 9px;
  font-style: normal;
}
.usage-guide-body li p { margin: 0; display: grid; gap: 3px; }
.usage-guide-body li b { font-size: 12px; }
.usage-guide-body li small { color: var(--muted); font-size: 10px; line-height: 1.55; }
.usage-guide-note { margin: 0; padding-top: 10px; color: var(--muted); border-top: 1px dashed var(--line); font-size: 10px; }

.positions-table th:nth-child(n+2):nth-child(-n+6),
.positions-table td:nth-child(n+2):nth-child(-n+6) { text-align: right; }
.position-streak,
.position-signal {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}
.position-streak.up, .position-signal.up { color: var(--up); background: var(--up-soft); }
.position-streak.down, .position-signal.down { color: var(--down); background: var(--down-soft); }
.position-streak.flat, .position-signal.flat { color: var(--muted); background: #f1f3f5; }
.positions-disclaimer { border-color: #ded2e7; background: #f7f3f9; }
.positions-disclaimer > span { color: #674875; background: #ece2f1; }
.position-member-grid { margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.position-member-list,
.position-contract-panel,
.position-history-panel,
.position-stock-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.position-member-list > .section-heading,
.position-contract-panel > .section-heading,
.position-history-panel > .section-heading,
.position-stock-panel > .section-heading { padding: 15px 18px; }
.position-contract-panel,
.position-history-panel,
.position-stock-panel { margin: 14px 0; padding: 0; }
.positions-sector-panel { margin-top: 14px; }
.member-table th:nth-child(n+2), .member-table td:nth-child(n+2) { text-align: right; }
.positions-metrics .text-metric { font-family: var(--font); font-size: 17px; }

/* Desktop readability scale: larger labels without increasing panel spacing. */
.main-nav a { font-size: 13px; }
.header-status { font-size: 13px; }
.header-status small { font-size: 11px; }
.page-intro p,
.detail-hero p { font-size: 15px; line-height: 1.65; }
.section-heading span { font-size: 13px; letter-spacing: .07em; }
.section-heading h2 { font-size: 27px; }
.section-heading h3 { font-size: 21px; }
.section-heading.small h2 { font-size: 23px; }
.global-overview span,
.user-summary span { font-size: 14px; }
.global-overview b,
.user-summary b { font-size: 35px; }
.global-overview small,
.user-summary small { font-size: 13px; line-height: 1.55; }
.metric-card span { font-size: 13px; }
.metric-card b { font-size: 27px; }
.metric-card small { font-size: 12px; line-height: 1.6; }
.data-table { font-size: 16px; }
.data-table th { font-size: 14px; }
.name-link b { font-size: 17px; }
.name-link small { font-size: 12px; }
.usage-guide summary { min-height: 58px; }
.usage-guide summary span { font-size: 12px; }
.usage-guide summary b { font-size: 17px; }
.usage-guide-body { padding-bottom: 16px; }
.usage-guide-body ol { padding: 16px 0; gap: 18px; }
.usage-guide-body li { grid-template-columns: 30px 1fr; gap: 10px; }
.usage-guide-body li > i { width: 27px; height: 27px; font-size: 11px; }
.usage-guide-body li b { font-size: 15px; }
.usage-guide-body li small { font-size: 13px; line-height: 1.65; }
.usage-guide-note { font-size: 13px; line-height: 1.65; }
.global-source-note,
.table-note { font-size: 13px; line-height: 1.65; }
.position-streak,
.position-signal { font-size: 13px; }
.detail-line-chart > p { font-size: 12px; line-height: 1.6; }
.line-chart-axis { font-size: 12px; }

.auth-status {
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  font-size: 12px;
}
.auth-status i { width: 7px; height: 7px; border-radius: 50%; background: #a6afb8; }
.user-usage {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.user-usage > article {
  min-height: 320px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.user-usage > article:last-child { background: #f7f3ec; border-color: #e6dac7; }
.user-usage > article > span { color: var(--warm); font-size: 10px; letter-spacing: .12em; }
.user-usage h2 { margin: 14px 0 18px; font-size: 22px; }
.user-usage ol { margin: 0; padding: 0; list-style: none; }
.user-usage li {
  min-height: 64px;
  padding: 11px 0;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  border-top: 1px solid var(--line);
}
.user-usage li i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #f0f2f4;
  font-family: var(--number);
  font-size: 9px;
  font-style: normal;
}
.user-usage li p { margin: 0; display: grid; gap: 4px; }
.user-usage li b { font-size: 13px; }
.user-usage li small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.user-summary .text-value { font-family: var(--font); font-size: 20px; }
.user-panel { padding: 0; overflow: hidden; }
.user-panel > .section-heading { padding: 16px 18px; }
.disabled-action {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #a1a9b1;
  background: #f3f5f6;
  font-size: 11px;
}
.role-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.role-grid article {
  min-height: 118px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.role-grid span { color: var(--warm); font-size: 10px; letter-spacing: .12em; }
.role-grid h2 { margin: 14px 0 8px; font-size: 19px; }
.role-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-roadmap { margin-top: 24px; }
.auth-roadmap > div h2 { margin: 8px 0 20px; font-size: 27px; }
.auth-roadmap > div span { color: var(--warm); font-size: 11px; letter-spacing: .12em; }
.auth-roadmap ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
}
.auth-roadmap li {
  min-height: 106px;
  padding: 15px;
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line-strong);
  background: rgba(255,255,255,.35);
}
.auth-roadmap i { color: var(--warm); font-family: var(--number); font-size: 10px; font-style: normal; }
.auth-roadmap p { margin: 0; display: grid; align-content: start; gap: 9px; }
.auth-roadmap b { font-size: 14px; }
.auth-roadmap p span { color: var(--muted); font-size: 11px; line-height: 1.7; }

.etf-intro .source-link,
.market-etf-intro .source-link {
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.5);
  font-size: 11px;
}
.etf-intro .source-link:hover,
.market-etf-intro .source-link:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.market-etf-source-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.etf-source-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}
.schedule-note {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d6e4df;
  border-radius: 999px;
  color: #25735e;
  background: #eef7f3;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.market-etf-panel { margin-top: 0; }
.market-etf-controls { flex-wrap: wrap; }
.market-etf-category-tabs { flex: 1 1 auto; overflow-x: auto; }
.market-etf-category-tabs button { flex: 0 0 auto; white-space: nowrap; }
.market-etf-market-tabs { flex: 0 0 auto; }
.market-etf-controls .search-box { min-width: 300px; }
.market-etf-table {
  width: 100%;
  min-width: 1320px;
  table-layout: fixed;
}
.market-etf-table th,
.market-etf-table td {
  padding-right: 8px;
  padding-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-etf-table th:nth-child(1) { width: 240px; }
.market-etf-table th:nth-child(2) { width: 96px; }
.market-etf-table th:nth-child(3) { width: 82px; }
.market-etf-table th:nth-child(4) { width: 96px; }
.market-etf-table th:nth-child(5),
.market-etf-table th:nth-child(6),
.market-etf-table th:nth-child(7) { width: 112px; }
.market-etf-table th:nth-child(8),
.market-etf-table th:nth-child(9) { width: 90px; }
.market-etf-table th:nth-child(10),
.market-etf-table th:nth-child(11) { width: 96px; }
.market-etf-table td:first-child { min-width: 0; }
.market-etf-table .name-link {
  width: 100%;
  min-width: 0;
}
.market-etf-table .name-link b,
.market-etf-table .name-link small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-etf-table .name-link b { font-size: 16px; }
.market-etf-overview .market-breadth { font-size: 24px; }
.etf-category {
  display: inline-flex;
  min-width: 62px;
  padding: 6px 9px;
  justify-content: center;
  border-radius: 999px;
  color: #50616c;
  background: #edf1f3;
  font-family: var(--font);
  font-size: 11px;
}
.etf-category.宽基 { color: #31566f; background: #e8f0f5; }
.etf-category.行业主题 { color: #73522e; background: #f7efe4; }
.etf-category.跨境 { color: #6b4977; background: #f2eaf5; }
.etf-category.债券,
.etf-category.货币 { color: #28634f; background: #e8f4ef; }
.etf-category.商品 { color: #8a5f21; background: #f8f0df; }
.etf-category.策略 { color: #515887; background: #eceef8; }
.flow-definition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 14px 0;
}
.flow-definition article {
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.flow-definition article:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }
.flow-definition span { color: var(--warm); font-size: 11px; letter-spacing: .13em; }
.flow-definition h2 { margin: 10px 0 6px; font-size: 20px; }
.flow-definition p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.flow-definition article:first-child p { color: #a8b3c0; }
.connection-panel {
  min-height: 180px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border: 1px dashed #cbd2d9;
  border-radius: 18px;
  background: rgba(255,255,255,.55);
}
.connection-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--navy);
  font-size: 18px;
  font-weight: 700;
}
.connection-panel span { color: var(--warm); font-size: 11px; letter-spacing: .13em; }
.connection-panel h2 { margin: 9px 0; font-size: 22px; }
.connection-panel p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.connection-panel > a { padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 12px; }
.connection-panel > a:hover { color: #fff; background: var(--navy); }
.etf-data-panel { padding: 0; }
.etf-data-panel > .section-heading { padding: 15px 18px; }
.etf-data-panel > .section-heading > b {
  color: var(--ink);
  font-family: var(--number);
  font-size: 18px;
}

.method-intro { min-height: 148px; }
.method-table {
  margin-top: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.method-head,
.method-row {
  display: grid;
  grid-template-columns: 140px repeat(3, minmax(220px, 1fr));
}
.method-head { color: #fff; background: var(--navy); }
.method-head > * { min-height: 58px; padding: 0 22px; display: flex; align-items: center; border-left: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.method-row { border-top: 1px solid var(--line); }
.method-row > * { min-height: 72px; margin: 0; padding: 16px 22px; display: flex; align-items: center; border-left: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.method-row span { color: var(--muted); border-left: 0; }
.research-path { margin-top: 28px; }
.research-path h2 { margin: 11px 0 24px; font-size: 28px; }
.research-path ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
}
.research-path li {
  min-height: 118px;
  padding: 17px;
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line-strong);
  background: rgba(255,255,255,.3);
}
.research-path i { color: var(--warm); font-family: var(--number); font-size: 10px; font-style: normal; }
.research-path b { font-size: 15px; }
.research-path p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }

.loading-view,
.error-view {
  min-height: 62vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}
.loading-view p { color: var(--muted); font-size: 12px; }
.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  animation: pulse 1.2s ease infinite;
}
@keyframes pulse {
  50% { transform: scale(.65); opacity: .35; }
}
.error-view span { color: var(--warm); font-size: 10px; letter-spacing: .13em; }
.error-view h1 { margin: 4px 0; font-size: 30px; }
.error-view p { margin: 0; color: var(--muted); font-size: 12px; }
.error-view a,
.error-view button { margin-top: 10px; padding: 11px 16px; border: 0; border-radius: 9px; color: #fff; background: var(--navy); font-size: 11px; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  font-size: 11px;
}
.hover-tooltip {
  position: fixed;
  z-index: 100;
  max-width: min(320px, calc(100vw - 24px));
  padding: 11px 13px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  color: #fff;
  background: rgba(22, 34, 50, .96);
  box-shadow: 0 12px 34px rgba(15, 23, 34, .24);
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-line;
}

.site-footer {
  min-height: 74px;
  padding: 18px max(24px, calc((100vw - 1540px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  border-top: 1px solid var(--line-strong);
  font-size: 11px;
}
.site-footer > span { color: var(--ink); font-weight: 600; letter-spacing: .1em; }
.site-footer p { margin: 0; text-align: right; }

@media (max-width: 1500px) {
  .sector-table th:nth-child(5),
  .sector-table td:nth-child(5),
  .sector-table th:nth-child(7),
  .sector-table td:nth-child(7) { display: none; }

  .screener-table th:nth-child(4),
  .screener-table td:nth-child(4),
  .screener-table th:nth-child(5),
  .screener-table td:nth-child(5),
  .screener-table th:nth-child(7),
  .screener-table td:nth-child(7),
  .screener-table th:nth-child(8),
  .screener-table td:nth-child(8) { display: none; }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 40;
    justify-content: flex-start;
    overflow-x: auto;
    box-shadow: 0 14px 40px rgba(25, 34, 45, .2);
  }
  .main-nav a { flex: 0 0 auto; }
  .header-status { display: none; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .focus-strip { grid-template-columns: repeat(4, 1fr); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .direction-grid { grid-template-columns: 1fr 1fr; }
  .membership-card { grid-column: 1 / -1; }
  .directory-controls { flex-wrap: wrap; }
  .search-box { margin-left: 0; flex: 1; }
  .resonance-toolbar { align-items: flex-start; flex-direction: column; }
  .resonance-filters { justify-content: flex-start; }
  .global-overview, .user-summary { grid-template-columns: 1fr 1fr; }
  .global-controls .search-box { min-width: 240px; }
  .futures-controls .search-box { min-width: 280px; }
  .futures-sector-grid { grid-template-columns: 1fr 1fr; }
  .usage-guide-body ol { grid-template-columns: 1fr 1fr; }
  .position-member-grid { grid-template-columns: 1fr; }
  .market-etf-controls .search-box { min-width: 240px; }
  .auth-roadmap ol { grid-template-columns: 1fr 1fr; }
  .research-path ol { grid-template-columns: 1fr 1fr; }
  .stock-search-guide { grid-template-columns: 1fr 1fr; }
  .screener-search { grid-template-columns: minmax(280px, 1fr) 220px; }
  .stock-search-examples { grid-column: 1 / -1; }
  .stock-rule-strip { grid-template-columns: 1fr 1fr; }
  .stock-rule-strip article:nth-child(2) { border-right: 0; }
  .stock-rule-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .selection-overview { grid-template-columns: repeat(3, 1fr); }
  .selection-rule-body { grid-template-columns: 1fr; }
  .observation-cycle { border-top: 1px solid var(--line); border-left: 0; }
  .sector-table th:nth-child(4),
  .sector-table td:nth-child(4),
  .sector-table th:nth-child(8),
  .sector-table td:nth-child(8),
  .sector-table th:nth-child(9),
  .sector-table td:nth-child(9),
  .sector-table th:nth-child(11),
  .sector-table td:nth-child(11) { display: none; }
  .sector-table th:nth-child(1) { width: 28%; }
  .sector-table th:nth-child(2) { width: 13%; }
  .sector-table th:nth-child(3) { width: 20%; }
  .sector-table th:nth-child(6) { width: 18%; }
  .sector-table th:nth-child(10) { width: 16%; }
  .sector-table th:nth-child(12) { width: 5%; }
  .screener-table th:nth-child(2),
  .screener-table td:nth-child(2),
  .screener-table th:nth-child(3),
  .screener-table td:nth-child(3),
  .screener-table th:nth-child(9),
  .screener-table td:nth-child(9) { display: none; }
  .screener-table th:nth-child(1) { width: 31%; }
  .screener-table th:nth-child(6) { width: 22%; }
  .screener-table th:nth-child(10) { width: 19%; }
  .screener-table th:nth-child(11) { width: 22%; }
  .screener-table th:nth-child(12) { width: 6%; }
  .detail-stock-responsive-wrap .stock-table th:nth-child(5),
  .detail-stock-responsive-wrap .stock-table td:nth-child(5),
  .detail-stock-responsive-wrap .stock-table th:nth-child(6),
  .detail-stock-responsive-wrap .stock-table td:nth-child(6) { display: none; }
  .holding-plan-summary { grid-template-columns: 1fr 1fr; }
  .holding-plan-conclusion { grid-column: 1 / -1; }
  .holding-plan-stages { grid-template-columns: 1fr 1fr; }
  .holding-plan-stages article:nth-child(2) { border-right: 0; }
  .holding-plan-stages article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .site-footer { padding-bottom: 90px; }
}

@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 16px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 17px; }
  .main-nav a { min-width: 76px; flex: 0 0 auto; padding: 9px 8px; font-size: 11px; }
  .page-shell { width: min(100% - 24px, 1380px); padding-top: 12px; }
  .home-hero { min-height: 240px; padding-top: 14px; }
  .home-hero h1, .page-intro h1, .detail-hero h1 { font-size: 36px; letter-spacing: -.045em; }
  .hero-copy { font-size: 14px; }
  .hero-meta { gap: 16px; }
  .module-grid { grid-template-columns: 1fr; margin-bottom: 18px; }
  .module-card { min-height: 164px; padding: 18px; }
  .home-snapshot { grid-template-columns: 1fr; gap: 14px; }
  .snapshot-numbers p { padding: 5px 12px; }
  .snapshot-numbers b { font-size: 26px; }
  .home-rankings { grid-template-columns: 1fr; }
  .focus-strip { grid-template-columns: repeat(2, 1fr); }
  .watchlist-empty { align-items: flex-start; flex-direction: column; }
  .page-intro, .detail-hero { min-height: 180px; align-items: flex-start; flex-direction: column; justify-content: flex-end; }
  .compact-intro .intro-stat { display: none; }
  .detail-actions { justify-items: start; }
  .history-range { min-width: 100%; justify-items: start; }
  .exclusion-notice { grid-template-columns: 1fr; gap: 9px; }
  .exclusion-notice > span { justify-self: start; }
  .directory-controls { align-items: stretch; }
  .type-tabs { width: 100%; }
  .type-tabs button { flex: 1; padding-inline: 6px; }
  .period-tabs { width: 100%; }
  .period-tabs button { flex: 1; }
  .search-box, .sort-box { min-width: 100%; }
  .pagination { padding: 11px; flex-wrap: wrap; }
  .pagination > div { order: 3; width: 100%; justify-content: center; }
  .pagination small { width: 100%; margin-left: 0; text-align: center; }
  .metric-grid, .stock-metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 112px; padding: 16px; }
  .direction-grid { grid-template-columns: 1fr; }
  .membership-card { grid-column: auto; }
  .panel { padding: 18px; }
  .chart-legend { display: none; }
  .stock-panel, .recent-days { padding: 0; }
  .stock-controls { flex-direction: column; align-items: stretch; }
  .direct-stock-search { grid-template-columns: 1fr; align-items: stretch; padding: 18px; }
  .stock-search-examples { grid-column: auto; }
  .custom-rule-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .custom-rule-mode { align-items: flex-start; flex-direction: column; }
  .custom-rule-mode small { margin-left: 0; }
  .custom-rule-row { grid-template-columns: minmax(0, 1fr) 72px; }
  .custom-rule-row label { grid-column: 1; }
  .custom-rule-row button { grid-column: 2; grid-row: 2; }
  .stock-sector-memberships { grid-template-columns: 1fr; }
  .stock-rule-strip { grid-template-columns: 1fr; }
  .stock-rule-strip article,
  .stock-rule-strip article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stock-rule-strip article:last-child { border-bottom: 0; }
  .selection-overview { grid-template-columns: 1fr 1fr; }
  .result-bar { min-height: 44px; padding-block: 7px; gap: 8px; flex-wrap: wrap; }
  .result-bar small { width: 100%; }
  .sector-table th:nth-child(2),
  .sector-table td:nth-child(2),
  .sector-table th:nth-child(6),
  .sector-table td:nth-child(6) { display: none; }
  .sector-table th:nth-child(1) { width: 42%; }
  .sector-table th:nth-child(3) { width: 29%; }
  .sector-table th:nth-child(10) { width: 23%; }
  .sector-table th:nth-child(12) { width: 6%; }
  .screener-table th:nth-child(11),
  .screener-table td:nth-child(11) { display: none; }
  .screener-table th:nth-child(1) { width: 40%; }
  .screener-table th:nth-child(6) { width: 25%; }
  .screener-table th:nth-child(10) { width: 29%; }
  .screener-table th:nth-child(12) { width: 6%; }
  .responsive-table-wrap .data-table th,
  .responsive-table-wrap .data-table td { padding-inline: 6px; font-size: 12px; }
  .responsive-table-wrap .name-link b { font-size: 14px; }
  .selection-rule-panel > .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .rule-checklist article { grid-template-columns: 26px 1fr; }
  .rule-checklist strong { grid-column: 2; justify-self: start; }
  .holding-plan-panel > .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .holding-plan-panel > .section-heading em { text-align: left; }
  .holding-plan-summary { grid-template-columns: 1fr; padding: 14px; }
  .holding-plan-conclusion { grid-column: auto; }
  .holding-plan-stages { grid-template-columns: 1fr; }
  .holding-plan-stages article,
  .holding-plan-stages article:nth-child(2) { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .holding-plan-stages article:last-child { border-bottom: 0; }
  .stock-search-guide, .user-usage { grid-template-columns: 1fr; }
  .user-usage > article { min-height: auto; }
  .flow-definition { grid-template-columns: 1fr; }
  .market-etf-source-links { justify-content: flex-start; }
  .etf-source-actions { justify-items: start; }
  .market-etf-category-tabs { width: 100%; justify-content: flex-start; }
  .market-etf-category-tabs button { flex: 0 0 auto; padding-inline: 10px; }
  .market-etf-market-tabs { width: 100%; }
  .global-overview, .user-summary { grid-template-columns: 1fr 1fr; }
  .futures-category-tabs { width: 100%; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; }
  .futures-controls .search-box { min-width: 100%; }
  .futures-sector-grid { grid-template-columns: 1fr; }
  .detail-line-chart { margin: 0 10px 12px; padding: 10px 8px 7px; overflow-x: auto; }
  .detail-line-chart svg { min-width: 720px; }
  .line-chart-caption { position: sticky; left: 0; }
  .usage-guide summary { grid-template-columns: 1fr auto; gap: 5px 10px; }
  .usage-guide summary span { grid-column: 1 / -1; }
  .usage-guide-body ol { grid-template-columns: 1fr; }
  .relation-disclaimer { grid-template-columns: 1fr; gap: 9px; }
  .relation-disclaimer > span { justify-self: start; }
  .role-grid, .auth-roadmap ol { grid-template-columns: 1fr; }
  .resonance-periods { width: 100%; }
  .resonance-periods button { min-width: 0; flex: 1; }
  .resonance-summary { grid-template-columns: 1fr 1fr; }
  .resonance-explainer { align-items: flex-start; flex-direction: column; gap: 7px; }
  .resonance-explainer > span { white-space: normal; }
  .connection-panel { grid-template-columns: 1fr; padding: 28px; }
  .method-head, .method-row { grid-template-columns: 90px repeat(3, 180px); }
  .method-head > *, .method-row > * { padding: 13px 11px; font-size: 9px; }
  .research-path ol { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer p { text-align: left; }
}
