:root {
  color-scheme: dark;
  --bg: #07131e;
  --panel: #0d202d;
  --line: #254050;
  --muted: #d4e6ef;
  --text: #e8f1f4;
  --up: #70ddb5;
  --down: #ff9bac;
  --accent: #75c8f3;
  --add: #135f52;
  --hold: #194d42;
  --trim: #662c39;
  --watch: #263d53;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", system-ui, sans-serif; background: var(--bg); color: var(--text); }
.shell { max-width: 1540px; margin: auto; padding: 28px 28px 42px; }
header { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 18px; }
h1 { margin: 3px 0 8px; font-size: 28px; letter-spacing: .04em; } p { margin: 0; }
.eyebrow { font: 700 11px ui-monospace, monospace; letter-spacing: .14em; color: var(--accent); }
#subtitle, .footnote { color: var(--muted); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
button, .link { border: 1px solid var(--line); background: #102a39; color: var(--text); padding: 8px 12px; border-radius: 6px; text-decoration: none; cursor: pointer; font-size: 13px; }
button:hover, .link:hover { border-color: var(--accent); }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.view-button { border: 0; border-radius: 0; background: #0c202e; color: var(--muted); }
.view-button + .view-button { border-left: 1px solid var(--line); }
.view-button.is-active { background: #1c536e; color: #f3fbff; }
.benchmark { display: flex; gap: 18px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: #091a26; margin-bottom: 12px; font-size: 13px; }
.benchmark span { color: var(--muted); }
.event-summary { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.board-guide { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #091a26; color: #bdd0d9; font-size: 12px; }
.board-guide span { display: inline-flex; align-items: center; gap: 5px; }
.board-guide small { margin-left: auto; color: var(--muted); }
.swatch { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.swatch.add { background: #2bc39f; }.swatch.hold { background: #63bd9b; }.swatch.trim { background: #ff798e; }.swatch.watch { background: #71b9e7; }

.fund-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.portfolio-section { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.portfolio-section > h2 { margin: 0; color: #fff; font-size: 18px; }
.portfolio-section > p { margin: 6px 0 14px; color: #dcebf2; font-size: 13px; font-weight: 700; }
.fund { grid-column: span 4; min-height: 260px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .03); }
.fund.state-add { border-color: #207a67; background: linear-gradient(160deg, #123f3a, #0a2027 70%); }
.fund.state-hold { border-color: #286958; background: linear-gradient(160deg, #12342f, #0a2027 70%); }
.fund.state-trim { border-color: #833d4c; background: linear-gradient(160deg, #482531, #151b25 72%); }
.fund.state-watch { border-color: #315d78; background: linear-gradient(160deg, #142e43, #0a1c27 72%); }
.fund-head { padding: 15px 15px 11px; display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.fund h2 { margin: 0; font: 800 25px/1 ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.ticker-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.quote-head { display: inline-flex; align-items: baseline; gap: 7px; font-family: ui-monospace, Consolas, monospace; }
.quote-last { color: #fff; font-size: 20px; letter-spacing: .01em; }
.quote-change { font-size: 15px; font-weight: 800; }
.theme { margin-top: 4px; color: #b6c9d2; font-size: 12px; }
.badge { height: max-content; padding: 5px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; white-space: nowrap; }
.badge.add { background: #0e5d4e; color: #b9ffe8; }.badge.hold { background: #164a3d; color: #c7f3e1; }.badge.trim { background: #642936; color: #ffd0d8; }.badge.watch { background: #244b65; color: #c7edff; }
.brief { margin: 0 15px; padding: 12px 0 0; border-top: 1px solid rgba(210, 234, 244, .22); }
.brief strong { display: block; color: #fff; font-size: 17px; letter-spacing: .01em; }
.brief p { margin-top: 6px; color: #f3fbff; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border-top: 1px solid rgba(210, 234, 244, .22); border-bottom: 1px solid rgba(210, 234, 244, .22); }
.metric { padding: 10px 12px; border-right: 1px solid rgba(210, 234, 244, .22); min-width: 0; }.metric:last-child { border-right: 0; }
.metric label { display: block; color: #dcebf2; font-size: 11px; font-weight: 700; margin-bottom: 4px; }.metric b { color: #fff; font: 800 15px ui-monospace, Consolas, monospace; white-space: nowrap; }.up { color: var(--up); }.down { color: var(--down); }
.cycle-brief { margin: 12px 15px 0; padding: 10px 0 9px; border-top: 1px solid rgba(210, 234, 244, .22); border-bottom: 1px solid rgba(210, 234, 244, .18); }
.cycle-title { color: #bce9ff; font: 800 11px ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.cycle-summary { display: block; margin-top: 5px; color: #fff; font-size: 14px; line-height: 1.35; }
.cycle-facts { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 7px; color: #f3fbff; font-size: 12px; font-weight: 700; }
.cycle-facts span { white-space: nowrap; }
.cycle-levels { margin-top: 7px; color: #f3fbff; font-size: 12px; font-weight: 800; line-height: 1.4; }
.cycle-zone-state { margin-top: 5px; color: #fff1b8; font-size: 12px; font-weight: 800; line-height: 1.4; }
.long-cycle-context { margin: 12px 15px 0; padding: 10px 0 9px; border-top: 1px solid rgba(210, 234, 244, .22); border-bottom: 1px solid rgba(210, 234, 244, .18); }
.long-cycle-context strong { color: #f9d889; font-size: 13px; }.long-cycle-context p { margin-top: 5px; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.4; white-space: normal; }.long-cycle-context small { display: block; margin-top: 4px; color: #dcebf2; font-size: 10px; font-weight: 700; }
.lifecycle-brief { margin: 12px 15px 0; padding: 10px 0 9px; border-top: 1px solid rgba(210, 234, 244, .24); border-bottom: 1px solid rgba(210, 234, 244, .18); }
.lifecycle-title { color: #ffe6a3; font: 800 11px ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.lifecycle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.lifecycle-row { min-width: 0; padding: 7px 8px; border: 1px solid rgba(210, 234, 244, .16); background: rgba(6, 20, 30, .2); }
.lifecycle-row label { display: block; color: #bce9ff; font-size: 10px; font-weight: 800; }
.lifecycle-row strong { display: block; margin-top: 3px; color: #fff; font-size: 13px; line-height: 1.25; }
.lifecycle-row span { display: block; margin-top: 3px; color: #d4e6ef; font-size: 10px; font-weight: 700; }
.lifecycle-setup, .lifecycle-invalidation { margin-top: 7px; color: #f3fbff; font-size: 12px; font-weight: 700; line-height: 1.4; }
.lifecycle-invalidation { color: #ffd2da; }
.evidence-line { display: flex; justify-content: space-between; gap: 8px; padding: 11px 12px; color: #f1fbff; font-size: 12px; font-weight: 700; }.evidence-line span:last-child { color: #d4e6ef; white-space: nowrap; }
.stock-treemap { position: relative; margin: 0 10px; height: 270px; border-top: 1px solid rgba(181, 213, 226, .14); overflow: hidden; }
.stock-cell { position: absolute; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; overflow: hidden; border: 2px solid #0b1e29; color: #eef9fc; text-align: center; min-width: 0; }
.stock-cell b { font: 800 clamp(10px, 1.1vw, 16px)/1 ui-monospace, Consolas, monospace; letter-spacing: -.04em; }.stock-cell span { font: 700 10px ui-monospace, Consolas, monospace; }.stock-cell.is-small b { font-size: 10px; }
.stock-cell.add { background: #158269; }.stock-cell.hold { background: #246b59; }.stock-cell.trim { background: #853949; }.stock-cell.watch { background: #315d79; }
.fund-footer { padding: 9px 12px 11px; border-top: 1px solid rgba(181, 213, 226, .14); color: var(--muted); font-size: 11px; }
.view-brief .stock-treemap, .view-brief .fund-footer { display: none; }
.view-brief .fund { min-height: 480px; }.view-brief .brief { min-height: 113px; }.view-brief .evidence-line { padding-bottom: 14px; }
.view-stocks .fund { grid-column: span 6; }.view-stocks .brief { margin-bottom: 0; }
.footnote { margin: 18px 0 0; }

@media (max-width: 1100px) { .fund { grid-column: span 6; }.view-stocks .fund { grid-column: span 12; } }
@media (max-width: 720px) { .shell { padding: 20px 14px 32px; } header { flex-direction: column; } .header-actions { justify-content: flex-start; } .benchmark { align-items: start; flex-direction: column; gap: 5px; } .fund { grid-column: span 12; } .board-guide small { margin-left: 0; flex-basis: 100%; } .stock-treemap { height: 250px; } .evidence-line { flex-direction: column; gap: 3px; } }
