:root {
  color-scheme: light;
  --ink: #2f363c;
  --muted: #8a949d;
  --line: #e5e9ec;
  --soft: #f5f7f8;
  --accent: #ff6a47;
  --accent-soft: #fff2ed;
  --green: #2b9b67;
  --shadow: 0 12px 30px rgba(39, 49, 58, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 980px;
  color: var(--ink);
  background: #f4f6f7;
  font-family: "Noto Sans SC", system-ui, sans-serif;
}
button, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.date-toolbar[hidden] { display: none !important; }

.market-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-top: 5px solid #262626;
  box-shadow: 0 2px 8px rgba(28, 34, 39, .08);
}
.nav-main {
  display: flex;
  min-height: 58px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.member-button {
  align-self: center;
  margin: 0 15px;
  padding: 9px 17px;
  border: 1px solid #ff9b7e;
  border-radius: 18px;
  background: #fff8f4;
  color: #bb7444;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.member-button span { margin-left: 8px; color: #8d979f; }
.module-nav { display: flex; min-width: 0; }
.nav-item {
  position: relative;
  min-width: 72px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #61686e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.nav-item::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  background: var(--accent);
  content: "";
  opacity: 0;
}
.nav-item:hover { color: var(--accent); }
.nav-item.active { color: var(--accent); }
.nav-item.active::after { opacity: 1; }
.runtime-meta {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px 14px;
  align-content: center;
  margin-left: auto;
  padding: 5px 14px;
  border-left: 1px solid var(--line);
  background: #fafbfb;
  font-size: 10px;
  white-space: nowrap;
}
.runtime-meta span { color: var(--muted); }
.runtime-meta b { color: var(--accent); font-family: "DM Mono", monospace; }
.runtime-meta em { color: var(--green); font-style: normal; font-weight: 700; }
.runtime-meta em.offline { color: #ca604b; }
.refresh-button {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  border: 1px solid #e1e5e8;
  border-radius: 4px;
  background: #fff;
  color: #68727a;
  font-size: 10px;
  cursor: pointer;
}

.date-toolbar {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
}
.date-label, .date-action {
  height: 32px;
  border: 1px solid #e1e5e8;
  border-radius: 5px;
  background: #fff;
  padding: 0 14px;
  font-size: 12px;
  cursor: pointer;
}
.date-label { border-color: #69747d; background: #69747d; color: #fff; font-weight: 700; }
.date-action.selected { color: var(--accent); border-color: #ffc2b1; background: #fff7f3; font-weight: 700; }
.date-action:disabled { color: #c4c9cd; background: #f5f6f7; cursor: not-allowed; }
.date-current {
  margin-left: 7px;
  color: var(--accent);
  font: 600 12px "DM Mono", monospace;
}
.timeline { display: flex; flex: 1; align-items: center; gap: 10px; height: 32px; margin-left: 15px; }
.timeline-track { position: relative; flex: 1; padding-bottom: 12px; }
.timeline input { width: 100%; margin: 0; accent-color: var(--accent); cursor: pointer; }
.timeline input:disabled { cursor: not-allowed; opacity: .45; }
.timeline output { min-width: 62px; color: var(--accent); font: 600 11px "DM Mono", monospace; text-align: right; }
.timeline-labels { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; color: #a3aab0; font: 8px "DM Mono", monospace; pointer-events: none; }

.date-picker {
  position: fixed;
  z-index: 40;
  top: 112px;
  right: 20px;
  left: 20px;
  max-height: calc(100vh - 132px);
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.picker-head { display: flex; align-items: start; justify-content: space-between; }
.picker-head small, .module-head small, .eyebrow { color: var(--accent); font: 500 10px "DM Mono", monospace; letter-spacing: .12em; }
.picker-head h2 { margin: 3px 0 0; font-size: 18px; }
.picker-head button { border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.date-picker > p { margin: 8px 0 16px; color: var(--muted); font-size: 11px; }
.month-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.month-card { padding: 11px; border: 1px solid var(--line); border-radius: 7px; }
.month-card h3 { margin: 0 0 8px; font: 500 13px "DM Mono", monospace; }
.weekday-row, .day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.weekday-row { margin-bottom: 3px; color: var(--muted); text-align: center; font-size: 9px; }
.weekday-row span:first-child, .weekday-row span:last-child { color: #d97962; font-weight: 700; }
.day {
  position: relative;
  height: 25px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font: 10px "DM Mono", monospace;
  cursor: pointer;
}
.day:not(.empty):not(:disabled):hover { background: var(--accent-soft); color: var(--accent); }
.day.selected { background: var(--accent); color: #fff; }
.day.unavailable { color: #cdd1d4; background: #f5f6f7; cursor: not-allowed; }
.day.closed { color: #8f999f; background: #f1f3f4; }
.day-closed-marker { position: absolute; right: 2px; bottom: 1px; color: #b88776; font: normal 7px/1 sans-serif; }
.day.empty { pointer-events: none; }

.workspace { max-width: 1480px; margin: 0 auto; padding: 18px 28px 42px; }
.home-intro {
  min-height: 430px;
  padding: 88px 7vw;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 106, 71, .13), transparent 25%),
    linear-gradient(130deg, #fff 0%, #f8fafb 100%);
}
.home-intro h1 { max-width: 760px; margin: 12px 0; font-size: clamp(30px, 4vw, 58px); line-height: 1.2; }
.home-intro p:not(.eyebrow) { max-width: 720px; color: #6f7981; font-size: 15px; line-height: 1.9; }
.primary-button, .secondary-button {
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.primary-button { margin-top: 18px; padding: 11px 18px; background: var(--accent); color: #fff; font-weight: 700; }
.secondary-button { padding: 7px 10px; border: 1px solid #dfe4e7; background: #fff; color: #747e86; font-size: 11px; }

.module-shell { padding: 22px 26px 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(37, 46, 54, .05); }
.module-head { position: relative; display: flex; align-items: start; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.module-head h1 { margin: 3px 0 0; font-size: 21px; }
.module-actions { display: flex; align-items: center; gap: 8px; }
.module-state { color: var(--muted); font-size: 11px; }
.module-state.connected { color: var(--green); }
.module-state.error { color: #c75b48; }
.research-source-control {
  position: absolute;
  z-index: 35;
  top: 0;
  left: 50%;
  width: 164px;
  transform: translateX(-50%);
}
.research-source-toggle {
  display: flex;
  width: 100%;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #dce3e7;
  border-radius: 999px;
  background: #fff;
  color: #56636b;
  box-shadow: 0 4px 14px rgba(46, 59, 68, .07);
  font-size: 10px;
  cursor: pointer;
}
.research-source-toggle > i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #99a2a8; }
.research-source-toggle > span { white-space: nowrap; }
.research-source-toggle > em { flex: none; padding: 2px 5px; border-radius: 999px; background: #f1f3f4; color: #7e898f; font-size: 7px; font-style: normal; }
.research-source-toggle.healthy { border-color: #cbe5d9; background: #f7fcfa; color: #35795f; }
.research-source-toggle.healthy > i { background: #3a9a70; box-shadow: 0 0 0 3px rgba(58, 154, 112, .12); }
.research-source-toggle.healthy > em { background: #e5f5ed; color: #2d7f5b; }
.research-source-toggle.running { border-color: #cfdeeb; background: #f5f9fc; color: #4d7596; }
.research-source-toggle.running > i { background: #5d8bb3; animation: research-source-pulse 1.2s ease-in-out infinite; }
.research-source-toggle.running > em { background: #e6f0f7; color: #4f7798; }
.research-source-toggle.error { border-color: #f0ccc1; background: #fff7f4; color: #b4513d; }
.research-source-toggle.error > i { background: #d35d47; box-shadow: 0 0 0 3px rgba(211, 93, 71, .12); }
.research-source-toggle.error > em { background: #fde8e2; color: #b34634; }
.research-source-toggle:hover,
.research-source-toggle:focus-visible,
.research-source-toggle[aria-expanded="true"] { outline: 0; border-color: #9eb2c1; box-shadow: 0 5px 17px rgba(46, 59, 68, .12); }
.research-source-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: min(680px, calc(100vw - 64px));
  max-height: min(520px, 70vh);
  overflow: auto;
  padding: 12px;
  border: 1px solid #d8e0e5;
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 45px rgba(35, 49, 59, .2);
  transform: translateX(-50%);
}
.research-source-panel-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 1px 1px 10px; border-bottom: 1px solid #e8ecee; }
.research-source-panel-head > div:first-child { display: grid; gap: 2px; }
.research-source-panel-head > div:first-child span { color: #718899; font: 600 7px "DM Mono", monospace; letter-spacing: .1em; }
.research-source-panel-head > div:first-child b { color: #3f4d56; font-size: 13px; }
.research-source-panel-head > div:nth-child(2) { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.research-source-panel-head em { padding: 3px 6px; border-radius: 999px; background: #f0f3f4; color: #758189; font-size: 8px; font-style: normal; }
.research-source-panel-head em.healthy { background: #eaf7f1; color: #31815e; }
.research-source-panel-head em.running { background: #eaf2f8; color: #537c9d; }
.research-source-panel-head em.error { background: #fde9e3; color: #b64b37; }
.research-source-panel-head button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f1f3f4; color: #768188; cursor: pointer; }
.research-source-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 10px; }
.research-source-panel-grid > section { min-width: 0; overflow: hidden; border: 1px solid #e5e9ec; border-radius: 7px; background: #fbfcfc; }
.research-source-panel-grid > section > header { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; border-bottom: 1px solid #e8ecee; background: #f5f7f8; }
.research-source-panel-grid > section > header b { color: #58656e; font-size: 9px; }
.research-source-panel-grid > section > header span { color: #8a949a; font: 8px "DM Mono", monospace; }
.research-source-panel-grid > section > div { max-height: 310px; overflow-y: auto; padding: 4px; }
.research-source-compact-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 3px 6px; align-items: center; padding: 6px 5px; border-radius: 5px; }
.research-source-compact-row + .research-source-compact-row { border-top: 1px solid #edf0f2; }
.research-source-compact-row > b { overflow: hidden; color: #526069; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.research-source-compact-row > time { color: #929ba1; font: 7px "DM Mono", monospace; white-space: nowrap; }
.research-source-compact-row > small { grid-column: 2 / -1; overflow: hidden; color: #9aa2a7; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.research-source-panel-empty { display: grid; min-height: 100px; place-items: center; align-content: center; gap: 4px; color: #8a949b; text-align: center; }
.research-source-panel-empty b { color: #56636c; font-size: 12px; }
.research-source-panel-empty span { font-size: 9px; }
@keyframes research-source-pulse { 50% { opacity: .45; transform: scale(.8); } }

.loading-state { display: grid; place-items: center; min-height: 300px; color: #68727a; }
.loading-state b { margin-top: 10px; }
.loading-state small { color: var(--muted); }
.loading-ring { width: 28px; height: 28px; border: 3px solid #f0d9d2; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state b { display: block; margin-bottom: 7px; color: #505a62; font-size: 16px; }

.ladder-meta { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; }
.data-note { color: var(--muted); font-size: 10px; }
.data-note b { color: #6c757d; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.metric-card { padding: 10px 12px; border-radius: 6px; background: var(--soft); }
.metric-card span { display: block; color: var(--muted); font-size: 10px; }
.metric-card b { display: block; margin-top: 2px; font: 500 21px "DM Mono", monospace; }
.metric-card.hot b { color: var(--accent); }

.ladder-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.ladder-groups { min-width: 0; }
.ladder-band { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid #edf0f2; }
.band-level { color: var(--accent); font: 500 17px "DM Mono", monospace; }
.band-level small { display: block; margin-top: 3px; color: var(--muted); font: 10px "Noto Sans SC", sans-serif; }
.stock-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.stock-chip { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; text-align: left; cursor: pointer; }
.stock-chip:hover, .stock-chip.selected { border-color: #ff9d84; background: #fff7f3; }
.stock-chip b, .stock-chip span, .stock-chip em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-chip b { font-size: 12px; }
.stock-chip span { margin-top: 2px; color: #9aa2a9; font: 9px "DM Mono", monospace; }
.stock-chip em { margin-top: 3px; color: #9a744b; font-size: 9px; font-style: normal; }

.reason-panel { position: sticky; top: 130px; min-height: 380px; align-self: start; padding-left: 18px; border-left: 1px solid var(--line); }
.reason-empty { padding: 110px 20px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.8; }
.reason-panel h2 { margin: 0; font-size: 18px; }
.reason-code { color: var(--muted); font: 10px "DM Mono", monospace; }
.reason-section { padding: 13px 0; border-top: 1px solid var(--line); }
.reason-section:first-of-type { margin-top: 13px; }
.reason-section h3 { margin: 0 0 6px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.reason-section p { margin: 0; color: #56616a; font-size: 12px; line-height: 1.75; }
.reason-summary { color: var(--accent) !important; font-weight: 700; }
.concept-list { display: flex; flex-wrap: wrap; gap: 5px; }
.concept-list span { padding: 4px 7px; border-radius: 4px; background: var(--accent-soft); color: #b75e49; font-size: 10px; }
.reason-footnote { color: #a0a7ad !important; font-size: 9px !important; }

.reversal-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.reversal-title h2 { margin: 0; font-size: 16px; }
.reversal-title p { margin: 4px 0 12px; color: var(--muted); font-size: 10px; }
.reversal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reversal-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.reversal-card-head { display: flex; justify-content: space-between; padding: 10px 12px; background: #fafbfb; border-bottom: 1px solid var(--line); }
.reversal-card-head b { font-size: 12px; }
.reversal-card-head span { color: var(--muted); font-size: 10px; }
.reversal-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f0f2f3; }
.reversal-row:last-child { border: 0; }
.reversal-row b, .reversal-row small { display: block; }
.reversal-row b { font-size: 12px; }
.reversal-row small { color: var(--muted); font: 9px "DM Mono", monospace; }
.pct { color: var(--accent); font: 500 12px "DM Mono", monospace; }
.pct.down { color: var(--green); }
.limit-tag { padding: 3px 5px; border-radius: 3px; background: var(--accent-soft); color: #cb6048; font-size: 9px; }
.limit-tag.normal { background: #f0f3f4; color: #7c868e; }
.card-empty { padding: 20px 12px; color: var(--muted); font-size: 11px; }
.placeholder-module { padding: 90px 20px; color: var(--muted); text-align: center; }
.placeholder-module b { display: block; margin-bottom: 7px; color: #4e5961; font-size: 17px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.research-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dde3e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(48, 61, 70, .055);
}
.research-policy {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 10px;
  padding: 12px 15px;
  border: 1px solid #e1e3e6;
  border-radius: 9px;
  background: linear-gradient(105deg, #fff7f2 0%, #f7fbff 52%, #f5fbf8 100%);
  box-shadow: inset 3px 0 0 #dc7c5d;
}
.research-policy div { min-width: 0; }
.research-policy b { display: block; margin-bottom: 3px; color: #505a61; font-size: 12px; }
.research-policy span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.research-policy em { flex: none; padding: 5px 8px; border: 1px solid #eadfd9; border-radius: 999px; background: rgba(255, 255, 255, .82); color: #b66c47; font: 500 10px "DM Mono", monospace; font-style: normal; }
.research-column { min-width: 0; min-height: 520px; padding: 18px; }
.research-column-mainland { box-shadow: inset 0 3px 0 #d9795c; }
.research-column-international { box-shadow: inset 0 3px 0 #5d83aa; }
.research-column + .research-column { border-left: 1px solid var(--line); }
.research-column-head { min-height: 112px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.research-column-head > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.research-column-head > div:first-child > span { color: #6d777f; font: 9px "DM Mono", monospace; }
.research-column-head small {
  color: #b8664e;
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .1em;
}
.research-column-international .research-column-head small { color: #557da4; }
.research-column-head h2 { margin: 5px 0 7px; color: #3f4a52; font-size: 18px; }
.research-column-head p { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.research-source-list { display: grid; gap: 8px; margin-top: 13px; }
.research-source-health { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; }
.research-source-health > span:nth-child(2) { min-width: 0; overflow: hidden; color: #68727a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.research-source-health small { grid-column: 1 / -1; color: #98a0a6; font-size: 9px; line-height: 1.5; }
.research-source-state { padding: 3px 6px; border-radius: 3px; font: 500 8px "DM Mono", monospace; white-space: nowrap; }
.research-source-state.healthy { background: #edf7f2; color: #27815a; }
.research-source-state.running { background: #edf4fa; color: #4c7697; }
.research-source-state.stale { background: #fff0e9; color: #b85b43; }
.research-source-state.unknown { background: var(--soft); color: var(--muted); }
.research-search-slot {
  --search-accent: #4f7eb3;
  --search-accent-deep: #3f6c9f;
  --search-soft: #eff6fd;
  --search-border: #cedff0;
  position: relative;
  display: grid;
  min-height: 122px;
  align-content: center;
  gap: 9px;
  margin: 12px 0 2px;
  padding: 11px 12px;
  border: 1px solid var(--search-border);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--search-soft), rgba(255, 255, 255, .96) 72%);
  box-shadow: inset 3px 0 0 var(--search-accent);
}
.research-search-slot[data-search-accent="stock"] {
  --search-accent: #d66e5b;
  --search-accent-deep: #bd5847;
  --search-soft: #fff2ee;
  --search-border: #f0d5cd;
}
.research-search-slot[data-search-accent="theme"] {
  --search-accent: #3d946e;
  --search-accent-deep: #2e7d5b;
  --search-soft: #edf8f2;
  --search-border: #cce7d9;
}
.research-search-slot[data-search-accent="title"] {
  --search-accent: #8668af;
  --search-accent-deep: #715397;
  --search-soft: #f5f0fb;
  --search-border: #dfd3ee;
}
.research-search-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.research-search-caption > div { display: flex; min-width: 0; align-items: baseline; gap: 7px; }
.research-search-caption span { color: var(--search-accent); font: 600 7px "DM Mono", monospace; letter-spacing: .08em; }
.research-search-caption b { color: #43515a; font-size: 11px; }
.research-search-caption em { flex: none; padding: 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, .86); color: var(--search-accent-deep); font-size: 8px; font-style: normal; }
.research-search-slot-empty {
  pointer-events: none;
  border-color: #dce5eb;
  background: linear-gradient(135deg, #f1f6fa, #f7f3fb 48%, #f3f9f5);
  box-shadow: inset 3px 0 0 #6f8ba4;
}
.research-search-companion { display: grid; gap: 4px; align-content: center; }
.research-search-companion > span { color: #6c8295; font: 600 7px "DM Mono", monospace; letter-spacing: .08em; }
.research-search-companion > b { color: #475760; font-size: 11px; }
.research-search-companion > small { color: #8a969e; font-size: 8px; line-height: 1.5; }
.research-search-color-dots { display: flex; gap: 4px; margin-bottom: 2px; }
.research-search-color-dots i { width: 6px; height: 6px; border-radius: 50%; background: #4f7eb3; }
.research-search-color-dots i:nth-child(2) { background: #d66e5b; }
.research-search-color-dots i:nth-child(3) { background: #3d946e; }
.research-search-color-dots i:nth-child(4) { background: #8668af; }
.research-search {
  display: grid;
  grid-template-columns: 146px minmax(100px, 1fr) auto auto;
  gap: 6px;
  align-items: center;
}
.research-search-mode { position: relative; min-width: 0; }
.research-search-mode-button,
.research-search-input-wrap input,
.research-search-submit,
.research-search-clear {
  min-height: 36px;
  border: 1px solid var(--search-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  color: #526069;
  font: 500 10px "Noto Sans SC", sans-serif;
}
.research-search-mode-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
}
.research-search-mode-button > span { display: flex; align-items: center; gap: 7px; }
.research-search-mode-button > span::before { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--search-accent); content: ""; }
.research-search-mode-button::after {
  width: 0;
  height: 0;
  border-top: 5px solid var(--search-accent-deep);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
  transition: transform .16s ease;
}
.research-search-mode-button[aria-expanded="true"]::after { transform: rotate(180deg); }
.research-search-mode-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  left: 0;
  width: 250px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #d7dee3;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(51, 62, 69, .17);
}
.research-search-mode-menu button {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  width: 100%;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.research-search-mode-menu button:hover,
.research-search-mode-menu button:focus-visible { outline: 0; background: #f4f6f7; }
.research-search-mode-menu button[aria-selected="true"] { background: #f3f6f8; }
.research-search-mode-menu button[data-research-search-mode="analyst"][aria-selected="true"] { background: #edf5fd; }
.research-search-mode-menu button[data-research-search-mode="stock"][aria-selected="true"] { background: #fff1ed; }
.research-search-mode-menu button[data-research-search-mode="theme"][aria-selected="true"] { background: #edf8f2; }
.research-search-mode-menu button[data-research-search-mode="title"][aria-selected="true"] { background: #f5f0fb; }
.research-search-mode-menu button > span { display: grid; min-width: 0; gap: 2px; }
.research-search-mode-swatch { width: 7px; height: 7px; border-radius: 50%; background: #4f7eb3; }
.research-search-mode-menu button[data-research-search-mode="stock"] .research-search-mode-swatch { background: #d66e5b; }
.research-search-mode-menu button[data-research-search-mode="theme"] .research-search-mode-swatch { background: #3d946e; }
.research-search-mode-menu button[data-research-search-mode="title"] .research-search-mode-swatch { background: #8668af; }
.research-search-mode-menu b { color: #4d5961; font-size: 10px; }
.research-search-mode-menu small { display: block; color: #929ba1; font-size: 8px; font-weight: 400; }
.research-search-input-wrap { display: block; min-width: 0; }
.research-search-input-wrap input {
  width: 100%;
  padding: 0 9px;
  outline: none;
  font-weight: 400;
}
.research-search-input-wrap input::placeholder { color: #a1a9ae; }
.research-search-mode-button:hover,
.research-search-mode-button:focus-visible,
.research-search-input-wrap input:focus,
.research-search-submit:focus-visible,
.research-search-clear:focus-visible { border-color: var(--search-accent); outline: 2px solid color-mix(in srgb, var(--search-accent) 18%, transparent); }
.research-search-submit,
.research-search-clear { padding: 0 10px; cursor: pointer; }
.research-search-submit { border-color: var(--search-accent); background: var(--search-accent); color: #fff; box-shadow: 0 3px 9px color-mix(in srgb, var(--search-accent) 22%, transparent); }
.research-search-submit:hover { border-color: var(--search-accent-deep); background: var(--search-accent-deep); }
.research-search-clear { color: #7d878e; }
.research-search-clear:disabled { cursor: default; opacity: .42; }
.research-search-help { margin: 0; color: #7f8c94; font-size: 8px; line-height: 1.45; }
.research-search-empty span { display: block; max-width: 360px; line-height: 1.6; }
.research-list { display: grid; min-height: 320px; gap: 7px; align-content: start; padding-top: 10px; }
.research-empty { display: grid; min-height: 320px; place-items: center; color: var(--muted); text-align: center; }
.research-empty b { display: block; margin-bottom: 6px; color: #5a646c; font-size: 14px; }
.research-empty span { font-size: 10px; }
.research-card { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; min-width: 0; min-height: 74px; align-items: center; gap: 12px; padding: 9px 11px; border: 1px solid #e4e8eb; border-radius: 6px; background: #fff; }
.research-card-time { align-self: stretch; display: flex; min-width: 0; flex-direction: column; justify-content: center; padding-right: 10px; border-right: 1px solid #edf0f2; }
.research-card-time span { color: #a0a7ac; font-size: 8px; }
.research-card-time b { margin-top: 4px; color: #68727a; font: 500 9px "DM Mono", monospace; line-height: 1.45; }
.research-card-main { min-width: 0; }
.research-card-source { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; }
.research-card-source > b { overflow: hidden; color: #68727a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.research-institution-bilingual { display: flex; min-width: 0; align-items: center; gap: 6px; }
.research-institution-bilingual > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.research-institution-bilingual > em { flex: none; color: #4f5a61; font-size: 9px; font-style: normal; }
.research-cache-flag { flex: none; padding: 3px 5px; border-radius: 3px; background: #fff0e9; color: #b85b43; font-size: 8px; }
.research-source-badge,
.research-conflict-flag,
.research-supporting-count {
  flex: none;
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 8px;
  line-height: 1;
}
.research-source-badge.official { background: #edf7f2; color: #27815a; }
.research-source-badge.disclosure { background: #eef3fb; color: #476f9a; }
.research-source-badge.media { background: #fff3e8; color: #a65f2d; }
.research-source-badge.provider { background: var(--soft); color: #778188; }
.research-conflict-flag { background: #fff0e9; color: #b54434; }
.research-supporting-count { background: #f2f5f7; color: #73808a; }
.research-publisher { color: #8a9399; font-size: 8px; }
.research-card-media_reported_rating { border-left: 3px solid #e4aa72; }
.research-card-official_research,
.research-card-official_disclosure { border-left: 3px solid #7eb39a; }
.research-card.has-conflict { border-color: #e7b7aa; }
.research-card h3 { margin: 4px 0 5px; color: #353f46; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.research-title-bilingual { display: grid; gap: 3px; margin: 5px 0; }
.research-title-bilingual h3, .research-title-bilingual h4 {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
  margin: 0;
}
.research-title-bilingual h3 > span, .research-title-bilingual h4 > span { color: #7f898f; font: 600 8px "DM Mono", monospace; line-height: 1.55; }
.research-title-bilingual h3 > b, .research-title-bilingual h4 > b { color: #353f46; font-size: 11px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.research-title-bilingual h4 > b { color: #4f5a61; }
.research-title-bilingual h4 > em { padding: 2px 4px; border-radius: 3px; background: #edf4fa; color: #527895; font-size: 7px; font-style: normal; white-space: nowrap; }
.research-title-bilingual h4 > em.unavailable { background: #fff0e9; color: #b85b43; }
.research-facts { display: flex; flex-wrap: wrap; gap: 4px; }
.research-facts span { padding: 2px 5px; border-radius: 3px; background: var(--soft); color: #78828a; font-size: 8px; }
.research-summary { display: grid; gap: 3px; margin-top: 6px; padding-top: 5px; border-top: 1px dashed #e1e4e6; }
.research-summary p { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; gap: 6px; align-items: start; margin: 0; }
.research-summary b { color: #7f898f; font: 600 8px "DM Mono", monospace; line-height: 1.55; }
.research-summary span {
  display: -webkit-box;
  overflow: hidden;
  color: #657078;
  font-size: 9px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.research-summary-translation span { color: #4f5a61; }
.research-summary em { padding: 2px 4px; border-radius: 3px; background: #edf4fa; color: #527895; font-size: 7px; font-style: normal; white-space: nowrap; }
.research-summary em.unavailable { background: #fff0e9; color: #b85b43; }
.research-evidence-note { margin-top: 6px; padding: 5px 7px; border-radius: 4px; background: #fff5f1; color: #a35340; font-size: 8px; line-height: 1.5; }
.research-card-link { display: inline-flex; min-width: 60px; min-height: 44px; align-items: center; justify-content: center; color: #b85d42; font-size: 9px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.research-card-link:hover, .research-card-link:focus-visible { color: var(--accent); text-decoration: underline; }
.research-link-disabled { color: #a2a9ae; font-size: 9px; }

.sentiment-overview { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: stretch; padding-top: 18px; }
.sentiment-score-card { display: flex; min-height: 235px; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.sentiment-score-card strong { color: var(--accent); font: 500 52px "DM Mono", monospace; letter-spacing: -3px; line-height: 1; }
.sentiment-score-card span { margin: 5px 0 15px; color: var(--muted); font: 11px "DM Mono", monospace; }
.sentiment-score-card b { color: #3a454d; font-size: 15px; }
.sentiment-score-card small { margin-top: 7px; color: var(--muted); font-size: 10px; }
.sentiment-chart-wrap { min-width: 0; min-height: 235px; overflow-x: auto; overflow-y: hidden; }
.sentiment-chart { display: block; width: 100%; min-width: 760px; height: 235px; overflow: visible; }
.sentiment-grid-line { stroke: #edf0f2; stroke-width: 1; }
.sentiment-grid-line.midpoint { stroke: #cfd6da; stroke-width: 1.2; }
.sentiment-threshold-line { stroke: #d49b5c; stroke-width: 1.2; stroke-dasharray: 7 5; }
.sentiment-threshold-value { fill: #b67a3a; font: 9px "DM Mono", monospace; }
.sentiment-region { pointer-events: none; }
.sentiment-region.ice { fill: rgba(103, 123, 139, .055); }
.sentiment-region.weak { fill: rgba(178, 139, 92, .035); }
.sentiment-region.strong { fill: rgba(255, 106, 71, .035); }
.sentiment-region.peak { fill: rgba(255, 106, 71, .075); }
.sentiment-region-label { font: 600 10px "Noto Sans SC", sans-serif; opacity: .68; pointer-events: none; }
.sentiment-region-label.ice { fill: #71818d; }
.sentiment-region-label.weak { fill: #9a8065; }
.sentiment-region-label.strong { fill: #cf755e; }
.sentiment-region-label.peak { fill: #d95840; }
.sentiment-axis-label,.sentiment-date-label { fill: #929ba3; font: 10px "DM Mono", monospace; }
.sentiment-data-label { fill: var(--muted); font: 500 10px "DM Mono", monospace; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.sentiment-data-label.live { fill: var(--warning); font-weight: 600; }
.sentiment-history-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sentiment-current-line { fill: none; stroke: #d4932d; stroke-width: 2.2; stroke-dasharray: 7 5; }
.sentiment-point { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.sentiment-point.live { fill: #fff2c9; stroke: #d4932d; }
.sentiment-chart-empty { display: grid; height: 235px; place-items: center; color: var(--muted); font-size: 12px; }
.sentiment-metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 15px; }
.sentiment-metric { padding: 11px 12px; border-radius: 7px; background: var(--soft); }
.sentiment-metric span,.sentiment-metric small { display: block; color: var(--muted); font-size: 10px; }
.sentiment-metric b { display: block; margin: 5px 0; color: #35414a; font: 500 14px "DM Mono", monospace; }
.sentiment-metric small { color: #b56e55; }
.sentiment-method { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.sentiment-daily-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.sentiment-daily-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.sentiment-daily-heading span { color: #b56e55; font: 9px "DM Mono", monospace; letter-spacing: 1.4px; }
.sentiment-daily-heading h3 { margin: 4px 0 0; color: #35414a; font-size: 16px; }
.sentiment-daily-heading small { color: var(--muted); font-size: 10px; }
.indicator-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.indicator-chart-card { min-width: 0; padding: 15px 15px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.indicator-chart-card header { display: flex; align-items: start; justify-content: space-between; gap: 12px; min-height: 48px; }
.indicator-chart-card h4 { margin: 0; color: #3f4a52; font-size: 13px; }
.indicator-chart-card p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.indicator-chart-card header strong { flex: none; color: var(--accent); font: 500 18px "DM Mono", monospace; }
.indicator-chart { display: block; width: 100%; height: 205px; overflow: visible; }
.indicator-chart-scaled { height: 245px; }
.indicator-threshold { stroke: #d3a86a; stroke-width: 1; stroke-dasharray: 6 5; }
.indicator-threshold-label { fill: #b17e3e; font: 9px "DM Mono", monospace; }
.indicator-baseline { stroke: #e8ecee; stroke-width: 1; }
.indicator-series { fill: none; stroke: #5d7281; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.indicator-series-compressed { stroke-dasharray: 5 5; }
.indicator-point { fill: #fff; stroke: #5d7281; stroke-width: 2; }
.indicator-point-compressed { stroke-dasharray: 2 2; }
.indicator-range-label { fill: var(--muted); font: 8px "DM Mono", monospace; }
.indicator-data-label { fill: var(--muted); font: 500 10px "DM Mono", monospace; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.indicator-outlier-label { fill: var(--ink); font: 600 10px "DM Mono", monospace; }
.indicator-date-label { fill: #929ba3; font: 9px "DM Mono", monospace; }

.etf-signal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid #e4e8ea;
  border-radius: 9px;
  background: linear-gradient(135deg, #f5f7f8, #fff);
}
.etf-signal-hero > div:first-child > span,.etf-quality span,.etf-quality small { display: block; color: var(--muted); font-size: 10px; }
.etf-signal-hero strong { display: block; margin: 4px 0; color: #59636b; font-size: 29px; letter-spacing: -1px; }
.etf-signal-hero > div:first-child > small { color: #879098; font-size: 11px; }
.etf-signal-hero.level-watch { border-color: #f0d69a; background: linear-gradient(135deg, #fff7e4, #fff); }
.etf-signal-hero.level-watch strong { color: #b77a1f; }
.etf-signal-hero.level-significant { border-color: #ffc5b5; background: linear-gradient(135deg, #ffede7, #fff); }
.etf-signal-hero.level-significant strong { color: #d95840; }
.etf-quality { max-width: 360px; text-align: right; }
.etf-quality b { display: block; margin: 4px 0; color: #4c565e; font-size: 12px; }
.etf-radar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.etf-radar-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.etf-radar-card header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.etf-radar-card header small { color: var(--muted); font: 8px "DM Mono", monospace; letter-spacing: 1px; }
.etf-radar-card h3 { margin: 3px 0 0; color: #43505a; font-size: 14px; }
.etf-radar-card header strong { font: 700 30px "DM Mono", monospace; letter-spacing: -1.5px; }
.etf-radar-card.support header strong { color: #d95741; }
.etf-radar-card.reduction header strong { color: #218c6d; }
.etf-score-track { height: 6px; margin: 12px 0; overflow: hidden; border-radius: 9px; background: #edf0f1; }
.etf-score-track i { display: block; height: 100%; border-radius: inherit; transition: width .25s ease; }
.etf-radar-card.support .etf-score-track i { background: linear-gradient(90deg, #efad82, #df4f38); }
.etf-radar-card.reduction .etf-score-track i { background: linear-gradient(90deg, #87cdb8, #218c6d); }
.etf-factor-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.etf-factor-list span { min-width: 0; padding: 6px; border-radius: 4px; background: #f7f8f8; }
.etf-factor-list em,.etf-factor-list b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etf-factor-list em { color: var(--muted); font-size: 8px; font-style: normal; }
.etf-factor-list b { margin-top: 2px; color: #56616a; font: 10px "DM Mono", monospace; }
.etf-evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 13px; }
.etf-evidence-grid.etf-evidence-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.etf-evidence-card { padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.etf-evidence-card span,.etf-evidence-card small { display: block; color: var(--muted); font-size: 10px; }
.etf-evidence-card b { display: block; margin: 5px 0; color: #717c84; font-size: 15px; }
.etf-evidence-card.passed { border-color: #ffc9b9; background: #fff8f5; }
.etf-evidence-card.passed b { color: #d95a43; }
.etf-evidence-card.direction-support { border-color: #f1cec3; background: #fff9f7; }
.etf-evidence-card.direction-support b { color: #cf563f; }
.etf-evidence-card.direction-reduction { border-color: #bcded4; background: #f7fcfa; }
.etf-evidence-card.direction-reduction b { color: #218c6d; }
.etf-detail-block,.etf-history-block { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.etf-block-head { display: flex; align-items: start; justify-content: space-between; }
.etf-block-head h2,.etf-history-block h2,.etf-empty-guide h2 { margin: 0; font-size: 15px; }
.etf-block-head p,.etf-empty-guide p { margin: 5px 0 12px; color: var(--muted); font-size: 10px; }
.etf-block-head > span { color: var(--muted); font: 10px "DM Mono", monospace; }
.etf-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.etf-row { display: grid; grid-template-columns: 1.55fr .68fr .62fr .72fr .95fr .9fr .78fr; gap: 8px; align-items: center; min-width: 850px; min-height: 46px; padding: 7px 11px; border-top: 1px solid #eef1f2; color: #46515a; font: 11px "DM Mono", monospace; }
.etf-row:first-child { border-top: 0; }
.etf-row > span:first-child b,.etf-row > span:first-child small { display: block; }
.etf-row > span:first-child b { color: #364149; font: 600 12px "Noto Sans SC", sans-serif; }
.etf-row > span:first-child small { margin-top: 2px; color: #9aa2a9; font-size: 9px; }
.etf-row-head { min-height: 32px; background: #f8f9fa; color: #929aa2; font-size: 9px; }
.etf-row-head > span:first-child { color: #929aa2; font: 9px "DM Mono", monospace; }
.value-up { color: var(--accent); }
.value-down { color: var(--green); }
.etf-history-block > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.etf-history-block > div > span { padding: 5px 7px; border-radius: 4px; background: #f1f3f4; color: #74808a; font-size: 10px; }
.etf-history-block span b { margin-right: 5px; font: 10px "DM Mono", monospace; }
.etf-history-block .history-watch { background: #fff3d7; color: #a46d19; }
.etf-history-block .history-significant { background: #ffe9e2; color: #cb503a; }
.etf-history-block small { color: var(--muted); font-size: 10px; }
.etf-disclaimer { margin: 17px 0 0; color: #969ea5; font-size: 9px; line-height: 1.7; }
.etf-empty-guide { margin-top: 14px; padding: 17px; border: 1px dashed #dce1e4; border-radius: 8px; background: #fafbfb; }
.etf-watchlist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.etf-watchlist > span { min-width: 0; padding: 8px; border: 1px solid #e8ebed; border-radius: 5px; background: #fff; }
.etf-watchlist b,.etf-watchlist small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etf-watchlist b { font-size: 11px; }
.etf-watchlist small { margin-top: 3px; color: var(--muted); font: 8px "DM Mono", monospace; }

@media (max-width: 1250px) {
  .runtime-meta { display: none; }
  .stock-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sentiment-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .etf-watchlist { grid-template-columns: repeat(3, 1fr); }
  .etf-evidence-grid.etf-evidence-six { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1050px) {
  .nav-item { min-width: 65px; padding: 0 9px; }
  .module-head { flex-wrap: wrap; }
  .research-source-control { position: relative; top: auto; left: auto; order: 3; width: 100%; margin-top: 10px; transform: none; }
  .research-source-toggle { width: 164px; margin: 0 auto; }
  .ladder-layout { grid-template-columns: 1fr; }
  .reason-panel { position: static; min-height: auto; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .reason-empty { padding: 40px 20px; }
  .month-cards { grid-template-columns: repeat(3, 1fr); }
  .etf-evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .etf-evidence-grid.etf-evidence-six { grid-template-columns: repeat(2, 1fr); }
  .etf-radar-grid { grid-template-columns: 1fr; }
  .etf-factor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indicator-chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { min-width: 0; }
  .nav-main { overflow-x: auto; }
  .member-button { margin: 0 8px; }
  .module-nav { flex: none; }
  .runtime-meta { display: none; }
  .date-toolbar { overflow-x: auto; padding-inline: 10px; }
  .timeline { min-width: 330px; }
  .workspace { padding: 12px 10px 28px; }
  .module-shell { padding: 18px 16px 22px; }
  .sentiment-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-layout { grid-template-columns: 1fr; }
  .research-column { min-height: auto; }
  .research-column + .research-column { border-top: 1px solid var(--line); border-left: 0; }
  .research-column-head { min-height: auto; }
  .research-search-slot-empty { display: none; }
  .research-list, .research-empty { min-height: 220px; }
  .nav-item { min-height: 44px; }
  .date-label, .date-action, .secondary-button { min-height: 44px; }
}

@media (max-width: 600px) {
  .module-head { flex-direction: column; gap: 12px; }
  .module-actions { width: 100%; flex-wrap: wrap; }
  .module-state { flex: 1 1 100%; }
  .sentiment-overview { grid-template-columns: 1fr; gap: 12px; }
  .sentiment-score-card { min-height: 112px; padding-bottom: 13px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sentiment-daily-heading { align-items: start; flex-direction: column; gap: 6px; }
  .indicator-chart-card { padding-inline: 10px; }
  .research-column { padding: 18px 16px; }
  .research-policy { align-items: flex-start; flex-direction: column; gap: 7px; }
  .research-source-health { grid-template-columns: 1fr; }
  .research-source-health small { grid-column: auto; }
  .research-source-control { margin-top: 0; }
  .research-source-toggle { min-height: 40px; }
  .research-source-panel { width: calc(100vw - 52px); max-height: 65vh; }
  .research-source-panel-head { grid-template-columns: minmax(0, 1fr) auto; }
  .research-source-panel-head > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .research-source-panel-head > button { grid-column: 2; grid-row: 1; }
  .research-source-panel-grid { grid-template-columns: 1fr; }
  .research-search-slot { min-height: auto; }
  .research-search-caption { align-items: flex-start; }
  .research-search-caption > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .research-search { grid-template-columns: minmax(0, 1fr) auto auto; }
  .research-search-mode { grid-column: 1 / -1; }
  .research-search-mode-menu { width: min(100%, 280px); }
  .research-search-mode-button,
  .research-search-input-wrap input,
  .research-search-submit,
  .research-search-clear { min-height: 40px; }
  .research-card { grid-template-columns: 76px minmax(0, 1fr); gap: 9px; }
  .research-card-link, .research-link-disabled { grid-column: 2; justify-self: start; min-height: 44px; }
  .research-card-time { grid-row: 1 / span 2; }
}

.blank-design-shell .module-head { display: none; }
.blank-design-shell #module-body { min-height: 70vh; background: #fff; }

/* Three-column limit-up comparison: previous / catalyst / current live. */
.ladder-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}
.ladder-column {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.ladder-column-current {
  border-color: #ffcabb;
  box-shadow: inset 0 3px 0 var(--accent);
}
.ladder-column-head {
  display: flex;
  min-height: 62px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.ladder-column-head small {
  color: var(--accent);
  font: 500 8px "DM Mono", monospace;
  letter-spacing: .1em;
}
.ladder-column-head h2 {
  margin: 3px 0 1px;
  font-size: 14px;
}
.ladder-column-head time {
  color: var(--muted);
  font: 9px "DM Mono", monospace;
}
.column-live {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 10px;
  background: #eaf7f1;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}
.column-live.historical { background: #f0f2f3; color: #7f8991; }
.column-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 3px 0 7px;
}
.column-metrics span {
  padding: 5px 3px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--muted);
  text-align: center;
  font-size: 8px;
}
.column-metrics b {
  display: block;
  margin-top: 1px;
  color: #444e56;
  font: 500 12px "DM Mono", monospace;
}
.ladder-column-current .column-metrics span:nth-child(2) b { color: var(--accent); }
.column-source {
  min-height: 26px;
  color: #9aa2a9;
  font-size: 8px;
  line-height: 1.5;
}
.ladder-column .ladder-band {
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 7px;
  padding: 9px 0;
}
.ladder-column .band-level { font-size: 13px; }
.ladder-column .band-level small { font-size: 8px; }
.ladder-column .stock-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.ladder-column .stock-chip { padding: 6px; }
.ladder-column .stock-chip b { font-size: 10px; }
.ladder-column .stock-chip span,.ladder-column .stock-chip em { font-size: 8px; }
.ladder-column-empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
}
.ladder-compare .reason-panel {
  position: sticky;
  top: 130px;
  min-height: 420px;
  max-height: calc(100vh - 155px);
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfb;
}
.reason-panel-head {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.reason-panel-head small {
  color: var(--accent);
  font: 500 8px "DM Mono", monospace;
  letter-spacing: .1em;
}
.reason-panel-head h2 { margin: 3px 0 0; font-size: 15px; }
.ladder-compare .reason-empty { padding: 105px 8px; }
.reason-trade-date {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: #bd604b;
  font-size: 9px;
}
.reason-cache-note {
  margin-top: 8px;
  padding: 7px 8px;
  border-left: 2px solid #d49a49;
  border-radius: 3px;
  background: #fff7e8;
  color: #8a642d;
  font-size: 9px;
  line-height: 1.55;
}
.reason-cache-note.current {
  border-left-color: #5a9b75;
  background: #edf7f1;
  color: #47785d;
}
.reason-cache-note.pending {
  border-left-color: #9aa3aa;
  background: #f1f3f4;
  color: #727b82;
}
.reversal-block { clear: both; }

@media (max-width: 1250px) {
  .ladder-compare { grid-template-columns: minmax(0, 1fr) 275px minmax(0, 1fr); gap: 9px; }
  .ladder-column .stock-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
  .ladder-compare { grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr); gap: 7px; }
  .ladder-compare .reason-panel {
    position: sticky;
    min-height: 380px;
    padding: 11px;
    border: 1px solid var(--line);
  }
}

/* Opening-auction catalyst monitor. */
.auction-module { padding-top: 16px; }
.auction-phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fa;
}
.auction-phase {
  position: relative;
  min-height: 58px;
  padding: 11px 13px;
  border-left: 1px solid var(--line);
  color: #969ea5;
}
.auction-phase:first-child { border-left: 0; }
.auction-phase::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}
.auction-phase time,.auction-phase b { display: block; }
.auction-phase time { font: 500 10px "DM Mono", monospace; }
.auction-phase b { margin-top: 4px; font-size: 11px; }
.auction-phase.passed { color: #6f7b83; background: #fff; }
.auction-phase.active { color: #c95740; background: #fff7f3; }
.auction-phase.active::after { background: var(--accent); }

.auction-method-note,.auction-proxy-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  padding: 10px 13px;
  border-left: 3px solid #7a8a95;
  border-radius: 5px;
  background: #f5f7f8;
}
.auction-method-note b,.auction-proxy-note b { flex: 0 0 auto; font-size: 11px; }
.auction-method-note span,.auction-proxy-note span { color: var(--muted); font-size: 10px; line-height: 1.65; }
.auction-proxy-note { border-left-color: #c68b35; background: #fff7e8; }
.auction-proxy-note b { color: #9d681d; }
.auction-proxy-note span { color: #856d49; }
.auction-signal-list { display: grid; gap: 13px; }
.auction-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed #dce1e4;
  border-radius: 9px;
  background: #fafbfb;
}
.auction-empty b { color: #5d6870; font-size: 18px; font-weight: 600; }

.auction-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(42, 50, 57, .045);
}
.auction-card.level-1 { border-top: 3px solid #d19a45; }
.auction-card.level-2 { border-top: 3px solid #ee7658; }
.auction-card.level-3 { border-top: 3px solid #d94b38; box-shadow: 0 9px 23px rgba(208, 73, 50, .09); }
.auction-card-head {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}
.auction-level { display: flex; align-items: center; gap: 9px; }
.auction-level strong {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 5px;
  background: #fff1ec;
  color: #d95840;
  font: 700 16px "DM Mono", monospace;
}
.auction-card.level-1 .auction-level strong { background: #fff5df; color: #a66f1e; }
.auction-level span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.auction-theme-title { min-width: 0; }
.auction-theme-title small { color: #a1a8ae; font: 8px "DM Mono", monospace; letter-spacing: .08em; }
.auction-theme-title h2 { margin: 2px 0 0; overflow: hidden; color: #354149; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.auction-confirmation { text-align: right; }
.auction-confirmation span {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  background: #edf7f1;
  color: #367d5b;
  font-size: 10px;
  font-weight: 700;
}
.auction-confirmation small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.auction-card-core {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr .82fr 1.08fr;
  gap: 12px;
  padding: 14px 16px;
}
.auction-score-grid { display: grid; gap: 6px; }
.auction-score {
  display: grid;
  grid-template-columns: 70px 36px minmax(55px, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--soft);
}
.auction-score span { color: var(--muted); font-size: 9px; }
.auction-score b { color: #59646c; font: 600 11px "DM Mono", monospace; text-align: right; }
.auction-score i { height: 4px; overflow: hidden; border-radius: 4px; background: #e3e7e9; }
.auction-score em { display: block; height: 100%; border-radius: inherit; background: #8d9aa3; }
.auction-score.primary b { color: #d95640; }
.auction-score.primary em { background: linear-gradient(90deg, #f2a28d, #dc543d); }
.auction-catalyst,.auction-scale,.auction-heat-block {
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.auction-catalyst > span,.auction-scale > span,.auction-section-label { display: block; color: var(--muted); font-size: 9px; }
.auction-catalyst b,.auction-catalyst a { display: block; margin-top: 7px; color: #3e4951; font-size: 11px; line-height: 1.6; text-decoration: none; }
.auction-catalyst a:hover { color: var(--accent); }
.auction-catalyst small { display: block; margin-top: 6px; color: #9aa2a9; font: 8px "DM Mono", monospace; }
.auction-scale b { display: block; margin-top: 8px; color: #4a555d; font-size: 14px; }
.auction-scale small { display: block; margin-top: 6px; color: #89939a; font-size: 9px; line-height: 1.7; }
.auction-heat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.auction-heat { min-width: 0; padding: 7px 5px; border-radius: 5px; background: #f4f6f7; text-align: center; }
.auction-heat span,.auction-heat b,.auction-heat small { display: block; }
.auction-heat span { color: var(--muted); font-size: 8px; white-space: nowrap; }
.auction-heat b { margin: 3px 0; color: #68737b; font: 600 13px "DM Mono", monospace; }
.auction-heat small { overflow: hidden; color: #9da5ab; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.auction-heat.passed { background: #fff0ea; }
.auction-heat.passed b { color: #d95840; }
.auction-stock-table { border-top: 1px solid var(--line); }
.auction-stock-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) repeat(3, minmax(105px, .7fr));
  align-items: center;
  gap: 12px;
  min-height: 39px;
  padding: 6px 16px;
  border-top: 1px solid #f0f2f3;
  color: #59646c;
  font: 10px "DM Mono", monospace;
}
.auction-stock-row:first-child { border-top: 0; }
.auction-stock-row.head { min-height: 31px; background: #f8f9fa; color: #959da4; font-size: 8px; }
.auction-stock-row > span:first-child b,.auction-stock-row > span:first-child small { display: block; }
.auction-stock-row > span:first-child b { color: #3e4951; font: 600 11px "Noto Sans SC", sans-serif; }
.auction-stock-row > span:first-child small { margin-top: 1px; color: #a1a8ae; font-size: 8px; }
.auction-stock-row .auction-up { color: #dc573f; font-weight: 700; }
.auction-stock-empty { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.auction-disclaimer { margin: 13px 0 0; color: #9aa2a9; font-size: 9px; line-height: 1.7; }

@media (max-width: 1250px) {
  .auction-card-core { grid-template-columns: 1fr 1.3fr .8fr; }
  .auction-heat-block { grid-column: 1 / -1; padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 900px) {
  .auction-card-head { grid-template-columns: 120px minmax(0, 1fr); }
  .auction-confirmation { grid-column: 1 / -1; text-align: left; }
  .auction-card-core { grid-template-columns: 1fr 1fr; }
  .auction-heat-block { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .auction-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auction-phase:nth-child(3) { border-left: 0; }
  .auction-phase:nth-child(n+3) { border-top: 1px solid var(--line); }
  .auction-method-note,.auction-proxy-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .auction-card-core { grid-template-columns: 1fr; }
  .auction-catalyst,.auction-scale,.auction-heat-block { grid-column: auto; padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .auction-stock-row { grid-template-columns: minmax(110px, 1.2fr) repeat(3, minmax(90px, .7fr)); min-width: 500px; }
  .auction-stock-table { overflow-x: auto; }
}

/* Nodes: confirmed node days and their surviving consecutive-board lineages. */
.nodes-module { padding-top: 14px; }
.node-day-hero {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid #b7bfc4;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9fa, #fff);
}
.node-day-hero.confirmed { border-left-color: #e05d43; background: linear-gradient(135deg, #fff4ef, #fff); }
.node-day-hero.negative { border-left-color: #83a092; background: linear-gradient(135deg, #f1f7f4, #fff); }
.node-day-hero.pending { border-left-color: #d6a85e; background: linear-gradient(135deg, #fff9ed, #fff); }
.node-day-hero small { color: var(--muted); font: 9px "DM Mono", monospace; letter-spacing: .08em; }
.node-day-hero h2 { margin: 5px 0 4px; color: #3e4951; font-size: 22px; }
.node-day-hero.confirmed h2 { color: #d95640; }
.node-day-hero p { margin: 0; color: #8a949b; font-size: 10px; }
.node-trigger-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.node-trigger {
  min-width: 135px;
  padding: 8px 10px;
  border: 1px solid #eadbd5;
  border-radius: 6px;
  background: rgba(255,255,255,.82);
}
.node-trigger b,.node-trigger small { display: block; }
.node-trigger b { color: #cf5943; font-size: 10px; }
.node-trigger small { margin-top: 3px; color: #8a949b; font-size: 8px; }
.node-trigger-shanghai_surge { border-color: #ead7b8; }
.node-trigger-shanghai_surge b { color: #b77a22; }
.node-no-trigger { color: #8f989f; font-size: 10px; }
.node-quality-note,.node-close-only {
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #eee2cc;
  border-radius: 5px;
  background: #fffaf1;
  color: #8f7b58;
  font-size: 9px;
  line-height: 1.7;
}
.node-close-only { display: flex; align-items: center; gap: 9px; border-color: var(--line); background: #f7f8f9; color: #8e979d; }
.node-close-only b { color: #5f6a72; }
.nodes-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; margin-top: 18px; }
.node-list { min-width: 0; }
.node-list-title { display: flex; align-items: end; justify-content: space-between; padding: 0 2px 10px; border-bottom: 1px solid var(--line); }
.node-list-title small { color: var(--muted); font: 8px "DM Mono", monospace; letter-spacing: .08em; }
.node-list-title h2 { margin: 3px 0 0; color: #3e4951; font-size: 17px; }
.node-list-title > span { color: #d75b44; font: 600 12px "DM Mono", monospace; }
.node-card { padding: 14px 2px 16px; border-bottom: 1px solid var(--line); }
.node-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.node-card-head small { color: #949da3; font: 8px "DM Mono", monospace; }
.node-card-head h2 { margin: 3px 0 0; color: #d95640; font-size: 16px; }
.node-card-head > span { padding: 4px 8px; border-radius: 12px; background: #fff0ea; color: #d95640; font: 600 9px "DM Mono", monospace; }
.node-origin-causes { margin: 7px 0 10px; color: #9a744b; font-size: 9px; }
.node-stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 7px; }
.node-stock-grid .stock-chip { min-height: 69px; text-align: left; }
.node-empty { padding: 70px 20px; text-align: center; }
.node-empty b,.node-empty span { display: block; }
.node-empty b { color: #69747b; font-size: 13px; }
.node-empty span { max-width: 430px; margin: 7px auto 0; color: #9aa2a8; font-size: 9px; line-height: 1.7; }
.node-reason-panel { position: sticky; top: 130px; min-height: 430px; align-self: start; padding-left: 18px; border-left: 1px solid var(--line); }
.node-reason-panel .reason-empty { padding: 120px 8px; }

@media (max-width: 1050px) {
  .nodes-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
  .node-stock-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 900px) {
  .node-day-hero { grid-template-columns: 1fr; gap: 14px; }
  .node-trigger-list { justify-content: flex-start; }
  .nodes-layout { grid-template-columns: 1fr; }
  .node-reason-panel { position: static; min-height: auto; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .node-reason-panel .reason-empty { padding: 45px 8px; }
}
@media (max-width: 600px) {
  .node-day-hero { padding: 16px; }
  .node-trigger { flex: 1 1 130px; min-width: 0; }
  .node-stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-close-only { align-items: flex-start; flex-direction: column; gap: 3px; }
}
