:root {
  --ink: #162724;
  --ink-soft: #5d6966;
  --paper: #f4f0e7;
  --paper-deep: #e9e2d4;
  --card: #fbf9f3;
  --forest: #173f3a;
  --teal: #177267;
  --teal-light: #d8e8e2;
  --gold: #d6a95d;
  --red: #be584d;
  --line: rgba(22, 39, 36, 0.14);
  --shadow: 0 20px 60px rgba(29, 49, 44, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 7%, rgba(215, 180, 111, .13), transparent 28rem),
    linear-gradient(rgba(22, 39, 36, .025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 72px, auto;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[data-page="overview"] [data-page-section]:not([data-page-section="overview"]),
html[data-page="recommendations"] [data-page-section]:not([data-page-section="recommendations"]),
html[data-page="rankings"] [data-page-section]:not([data-page-section="rankings"]) { display: none !important; }

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(23, 114, 103, .25); outline-offset: 3px; }
.page-shell { width: min(1440px, 100%); margin: 0 auto; padding: 0 58px; }

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; padding: 9px; background: var(--forest); border-radius: 50%; display: flex; gap: 3px; align-items: flex-end; }
.brand-mark i { width: 5px; border-radius: 4px; background: #f0e4cd; }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 15px; }
.brand strong { display: block; font-family: "Noto Serif SC", serif; font-size: 20px; letter-spacing: .16em; }
.brand small { display: block; margin-top: 2px; font: 500 8px/1 "DM Mono", monospace; letter-spacing: .24em; color: var(--ink-soft); }
.main-nav { display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: rgba(233,226,212,.72); box-shadow: inset 0 1px rgba(255,255,255,.45); }
.main-nav a { min-width: 104px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 3px; color: var(--ink-soft); text-decoration: none; font-size: 11px; font-weight: 500; transition: .2s ease; }
.main-nav a:hover { color: var(--forest); background: rgba(255,255,255,.45); }
.main-nav a.active { color: #f5f0e7; background: var(--forest); box-shadow: 0 5px 14px rgba(23,63,58,.16); }
.topbar-meta { display: flex; gap: 26px; align-items: center; color: var(--ink-soft); font-size: 12px; }
.data-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.3); }
.data-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(214, 169, 93, .13); animation: pulse 1.6s infinite; }
.data-status.is-live i { background: var(--teal); box-shadow: 0 0 0 5px rgba(23,114,103,.12); animation: none; }
.data-status.is-warning i { background: var(--gold); animation: none; }
.market-date { font-family: "DM Mono", monospace; }

.hero { min-height: 380px; padding: 68px 0 58px; display: flex; justify-content: space-between; align-items: flex-end; }
.hero-copy { max-width: 710px; }
.eyebrow, .section-index, .panel-kicker { margin: 0; color: var(--teal); font: 500 11px/1.4 "DM Mono", monospace; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 20px 0 22px; font: 700 clamp(45px, 5vw, 76px)/1.14 "Noto Serif SC", serif; letter-spacing: -.04em; }
.hero h1 em { color: var(--teal); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: url("data:image/svg+xml,%3Csvg width='200' height='8' viewBox='0 0 200 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6C45 1 127 1 199 4' stroke='%23D6A95D' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hero-intro { max-width: 520px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.hero-stats { display: grid; grid-template-columns: 1fr; gap: 17px; padding: 0 18px 4px 28px; border-left: 1px solid var(--line); min-width: 188px; }
.hero-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; }
.hero-stats strong { font: 600 20px/1.2 "Noto Serif SC", serif; white-space: nowrap; }
.hero-stats span { color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.view-intro { min-height: 330px; padding: 78px 0 62px; border-bottom: 1px solid var(--line); }
.view-intro h1 { max-width: 900px; margin: 18px 0 20px; font: 700 clamp(42px,5vw,68px)/1.2 "Noto Serif SC",serif; letter-spacing: -.04em; }
.view-intro h1 em { color: var(--teal); font-style: normal; }
.view-intro > p:last-child { max-width: 660px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }

.finder { position: relative; z-index: 8; margin-bottom: 64px; padding: 30px 34px 28px; background: var(--forest); color: #f4f0e7; border-radius: 5px; box-shadow: 0 28px 70px rgba(20, 57, 51, .18); }
.finder-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.finder .section-index { color: #97bdb3; }
.finder-heading h2 { margin: 7px 0 0; font: 600 24px/1.3 "Noto Serif SC", serif; }
.finder-heading > p { margin: 0; color: #99aaa6; font-size: 11px; }
.search-box { height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 20px; background: #fbf9f3; color: var(--ink); border-radius: 3px; }
.search-box svg { width: 23px; fill: none; stroke: var(--teal); stroke-width: 1.7; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search-box input::placeholder { color: #98a19f; }
.search-box kbd { padding: 5px 8px; border: 1px solid #d8d6d0; border-bottom-width: 2px; border-radius: 5px; background: #f1eee7; color: #7d8683; font: 11px "DM Mono", monospace; }
.type-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.type-filters button { padding: 7px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: transparent; color: #b9c7c4; cursor: pointer; font-size: 11px; transition: .2s ease; }
.type-filters button:hover, .type-filters button.active { background: #e9e2d4; border-color: #e9e2d4; color: var(--forest); }
.search-results { position: absolute; z-index: 10; top: 151px; left: 34px; right: 34px; max-height: 430px; overflow-y: auto; padding: 8px; background: #fffdfa; color: var(--ink); border-radius: 0 0 5px 5px; box-shadow: 0 22px 50px rgba(11, 37, 33, .23); }
.result-row { width: 100%; min-height: 60px; display: grid; grid-template-columns: 78px 1fr 30px; gap: 12px; align-items: center; padding: 8px 14px; border: 0; border-bottom: 1px solid rgba(22,39,36,.08); background: transparent; text-align: left; cursor: pointer; color: inherit; }
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: #f2eee5; }
.result-code { color: var(--teal); font: 500 12px "DM Mono", monospace; }
.result-name strong { display: block; font-size: 13px; font-weight: 600; }
.result-name small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.result-arrow { color: #8a9693; }
.result-empty { display: flex; flex-direction: column; gap: 4px; padding: 24px 14px; text-align: center; }
.result-empty span { color: var(--ink-soft); font-size: 11px; }

.daily-picks { margin: 46px 0 76px; }
.daily-picks-heading { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.daily-picks-heading h2 { margin: 8px 0 0; font: 700 clamp(28px, 3vw, 40px)/1.3 "Noto Serif SC", serif; }
.daily-date { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font: 10px "DM Mono", monospace; }
.daily-date i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(190,88,77,.1); }
.method-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 22px; }
.method-chips span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: rgba(255,255,255,.26); font-size: 9px; }
.manager-framework { margin-bottom: 24px; padding: 24px; border: 1px solid var(--line); background: rgba(233,226,212,.5); }
.framework-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 19px; }
.framework-heading h3 { margin: 6px 0 0; font: 600 18px "Noto Serif SC",serif; }
.framework-heading > p { max-width: 460px; margin: 0; color: var(--ink-soft); font-size: 9px; line-height: 1.7; text-align: right; }
.indicator-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.indicator-card { position: relative; min-height: 112px; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251,249,243,.55); }
.indicator-card i { position: absolute; top: 15px; right: 15px; color: #99a29f; font: normal 8px "DM Mono",monospace; }
.indicator-card strong { display: block; font-size: 10px; }
.indicator-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 8px; line-height: 1.65; }
.picks-loading { min-height: 330px; display: flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--line); background: rgba(251,249,243,.48); }
.picks-loading[hidden], .pick-grid[hidden], .picks-error[hidden], .selection-note[hidden] { display: none !important; }
.picks-loading div { display: flex; flex-direction: column; gap: 4px; }
.picks-loading strong { font: 600 15px "Noto Serif SC", serif; }
.picks-loading small { color: var(--ink-soft); font-size: 10px; }
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pick-card { position: relative; min-width: 0; padding: 23px; overflow: hidden; background: rgba(251,249,243,.9); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 3px; box-shadow: var(--shadow); }
.pick-balanced { border-top-color: var(--gold); }
.pick-equity, .pick-theme { border-top-color: var(--red); }
.pick-broad { border-top-color: #557c91; }
.pick-global { border-top-color: #826c9d; }
.pick-topline, .pick-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pick-category { display: flex; align-items: center; gap: 8px; color: var(--teal); font-size: 10px; font-weight: 600; }
.pick-balanced .pick-category { color: #98712e; }
.pick-equity .pick-category, .pick-theme .pick-category { color: var(--red); }
.pick-broad .pick-category { color: #557c91; }
.pick-global .pick-category { color: #826c9d; }
.pick-category i { font: normal 9px "DM Mono", monospace; opacity: .65; }
.pick-role { margin-left: auto; padding: 4px 7px; border-radius: 2px; background: rgba(214,169,93,.1); color: #8c692e; font-size: 8px; white-space: nowrap; }
.risk-label { padding: 4px 7px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-soft); font-size: 8px; white-space: nowrap; }
.pick-title { min-height: 91px; margin-top: 22px; }
.pick-title small { display: block; color: var(--ink-soft); font: 9px "DM Mono", monospace; }
.pick-title h3 { margin: 8px 0 0; font: 600 18px/1.45 "Noto Serif SC", serif; }
.pick-name-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pick-name-link:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.pick-score { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-content: center; border: 1px solid var(--line); border-radius: 50%; text-align: center; }
.pick-score strong { display: block; font: 500 15px/1 "DM Mono", monospace; }
.pick-score span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 7px; }
.pick-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 5px 0 21px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pick-metrics div { padding: 0 8px; border-right: 1px solid var(--line); }
.pick-metrics div:first-child { padding-left: 0; }
.pick-metrics div:nth-child(3n) { padding-right: 0; border-right: 0; }
.pick-metrics div:nth-child(n+4) { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(22,39,36,.08); }
.pick-metrics span { display: block; color: var(--ink-soft); font-size: 8px; }
.pick-metrics strong { display: block; margin-top: 7px; font: 500 11px "DM Mono", monospace; white-space: nowrap; }
.pick-dimensions { padding: 16px; background: rgba(23,63,58,.035); border: 1px solid rgba(23,63,58,.08); }
.pick-dimensions > p, .pick-reasons > p { margin: 0 0 11px; color: var(--ink); font-size: 10px; font-weight: 600; }
.dimension-row { display: grid; grid-template-columns: 58px 1fr 24px; align-items: center; gap: 9px; min-height: 25px; }
.dimension-row > span { color: var(--ink-soft); font-size: 8px; }
.dimension-row > div { height: 4px; overflow: hidden; border-radius: 4px; background: #dfddd6; }
.dimension-row > div i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.dimension-row > strong { text-align: right; font: 500 8px "DM Mono",monospace; }
.pick-structure { display: grid; grid-template-columns: repeat(2,1fr); margin: 16px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pick-structure > span { display: flex; justify-content: space-between; gap: 10px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 8px; }
.pick-structure strong { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font: 500 8px "DM Mono",monospace; }
.pick-reasons ul { margin: 0; padding: 0; list-style: none; }
.pick-reasons li { position: relative; margin: 0 0 8px; padding-left: 13px; color: var(--ink-soft); font-size: 9px; line-height: 1.6; }
.pick-reasons li::before { content: ""; position: absolute; top: 6px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.pick-governance { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 8px; }
.view-pick { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--forest); cursor: pointer; font-size: 9px; }
.view-pick span { font-size: 14px; transition: transform .2s ease; }
.view-pick:hover span { transform: translateX(4px); }
.selection-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; background: rgba(214,169,93,.1); color: var(--ink-soft); }
.selection-note span { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: #98712e; font: 9px serif; }
.selection-note p { margin: 0; font-size: 9px; line-height: 1.7; }
.picks-error { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
.picks-error button { padding: 7px 13px; border: 1px solid var(--forest); background: transparent; color: var(--forest); cursor: pointer; font-size: 10px; }

.rankings { margin: 46px 0 76px; padding: 30px 30px 0; background: var(--forest); color: #f4f0e7; border-radius: 4px; box-shadow: 0 25px 65px rgba(20,57,51,.16); }
.rankings-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; }
.rankings-heading .section-index { color: #8eb5ab; }
.rankings-heading h2 { margin: 8px 0 7px; font: 700 clamp(28px,3vw,40px)/1.3 "Noto Serif SC", serif; }
.rankings-heading > div > p:last-child { margin: 0; color: #9fb1ad; font-size: 10px; }
.rank-verification { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #a9bcb8; font-size: 9px; white-space: nowrap; }
.rank-verification i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #a9d4c9; font: normal 9px sans-serif; }
.rank-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.rank-periods { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rank-periods::-webkit-scrollbar { display: none; }
.rank-periods button { flex: 0 0 auto; padding: 6px 10px; border: 0; border-radius: 2px; background: transparent; color: #9fb1ad; cursor: pointer; font-size: 9px; }
.rank-periods button.active, .rank-periods button:hover { background: #f4f0e7; color: var(--forest); }
.rank-type-label { display: flex; align-items: center; gap: 8px; color: #8fa39e; font-size: 9px; white-space: nowrap; }
.rank-type-label select { padding: 6px 26px 6px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 2px; outline: none; background: var(--forest); color: #e8e3d8; font-size: 9px; }
.rank-loading { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #9fb1ad; font-size: 10px; }
.rank-loading[hidden], .rank-table-wrap[hidden], .rank-error[hidden] { display: none !important; }
.rank-table-wrap { max-height: 790px; margin: 0 -30px; overflow: auto; background: #faf8f2; color: var(--ink); }
.rank-table-wrap > .rank-table { display: table; }
.rank-table { min-width: 850px; }
.rank-table thead { position: sticky; top: 0; z-index: 2; background: #e8e2d7; }
.rank-table th { height: 42px; color: var(--ink-soft); }
.rank-table th:first-child, .rank-table td:first-child { width: 70px; padding-left: 30px; }
.rank-table th:nth-child(2), .rank-table td:nth-child(2) { text-align: left; }
.rank-table th:last-child, .rank-table td:last-child { padding-right: 30px; }
.rank-table tbody { background: #faf8f2; }
.rank-table td { height: 59px; }
.rank-number { color: var(--ink-soft); font: 500 11px "DM Mono", monospace; }
.rank-number.rank-1, .rank-number.rank-2, .rank-number.rank-3 { width: 29px; height: 29px; display: inline-grid; place-items: center; border-radius: 50%; color: white; background: var(--red); }
.rank-number.rank-2 { background: #98712e; }
.rank-number.rank-3 { background: var(--teal); }
.rank-fund strong { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px "Noto Sans SC", sans-serif; }
.rank-fund small { display: block; margin-top: 4px; color: var(--ink-soft); font: 8px "DM Mono", monospace; }
.rank-fund-link { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.rank-fund-link:hover strong { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.rank-return { font: 600 12px "DM Mono", monospace; }
.rank-view { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--forest); cursor: pointer; }
.rank-view:hover { background: var(--forest); color: white; }
.rank-footer { display: flex; justify-content: space-between; gap: 20px; padding: 13px 30px; border-top: 1px solid var(--line); color: var(--ink-soft); font: 9px "DM Mono", monospace; }
.rank-footer a { color: var(--teal); text-decoration: none; }
.rank-error { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9fb1ad; font-size: 10px; }
.rank-error button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #f4f0e7; cursor: pointer; }

.dashboard { min-height: 700px; scroll-margin-top: 20px; }
.dashboard-loading, .error-state { min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-soft); }
.dashboard-loading[hidden], .dashboard-content[hidden], .error-state[hidden], .chart-tooltip[hidden], .search-results[hidden] { display: none !important; }
.loader { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--paper-deep); border-top-color: var(--teal); animation: spin .9s linear infinite; }
.dashboard-loading p { margin-top: 16px; font-size: 12px; }
.fund-heading { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.fund-heading h2 { margin: 9px 0 12px; font: 700 clamp(28px, 3vw, 42px)/1.28 "Noto Serif SC", serif; }
.section-index span { margin-left: 8px; color: var(--ink-soft); letter-spacing: .08em; }
.fund-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.fund-tags span, .fund-tags a { padding: 5px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-soft); text-decoration: none; font: 10px "DM Mono", monospace; }
.fund-tags .verification-badge { border-color: rgba(23,114,103,.3); background: rgba(23,114,103,.07); color: var(--teal); }
.fund-tags .verification-badge.is-review { border-color: rgba(214,169,93,.5); background: rgba(214,169,93,.08); color: #98712e; }
.fund-tags a:hover { color: var(--teal); border-color: var(--teal); }
.export-button { display: inline-flex; gap: 8px; align-items: center; padding: 11px 15px; border: 1px solid var(--forest); border-radius: 2px; background: transparent; color: var(--forest); cursor: pointer; font-size: 11px; }
.export-button:hover { background: var(--forest); color: white; }
.export-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.metric-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.metric-card { position: relative; min-height: 176px; padding: 28px 26px; border-right: 1px solid var(--line); overflow: hidden; }
.metric-card:last-child { border-right: 0; }
.metric-card > span { display: block; color: var(--ink-soft); font-size: 10px; }
.metric-card strong { display: block; margin-top: 18px; font: 600 clamp(26px, 2.8vw, 38px)/1 "DM Mono", monospace; letter-spacing: -.05em; }
.metric-card small { display: block; margin-top: 14px; color: var(--ink-soft); font-size: 10px; }
.metric-primary { background: var(--teal-light); }
.positive { color: var(--red) !important; }
.negative { color: var(--teal) !important; }
.neutral { color: var(--ink-soft) !important; }
.mini-bars { position: absolute; right: 20px; bottom: 22px; height: 43px; display: flex; gap: 3px; align-items: flex-end; opacity: .32; }
.mini-bars i { width: 4px; background: var(--teal); }
.mini-bars i:nth-child(1) {height:20%}.mini-bars i:nth-child(2){height:33%}.mini-bars i:nth-child(3){height:25%}.mini-bars i:nth-child(4){height:48%}.mini-bars i:nth-child(5){height:39%}.mini-bars i:nth-child(6){height:57%}.mini-bars i:nth-child(7){height:67%}.mini-bars i:nth-child(8){height:55%}.mini-bars i:nth-child(9){height:75%}.mini-bars i:nth-child(10){height:69%}.mini-bars i:nth-child(11){height:88%}.mini-bars i:nth-child(12){height:100%}

.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(290px, .9fr); gap: 20px; margin-top: 20px; }
.panel { background: rgba(251, 249, 243, .75); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.chart-panel, .returns-panel { min-height: 460px; padding: 26px 28px; }
#fund-chart { scroll-margin-top: 28px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.panel-kicker { color: var(--ink-soft); font-size: 9px; }
.panel-heading h3 { margin: 6px 0 0; font: 600 18px "Noto Serif SC", serif; }
.range-tabs { display: flex; gap: 2px; padding: 3px; background: #ebe6dc; border-radius: 3px; }
.range-tabs button { padding: 5px 8px; border: 0; background: transparent; color: var(--ink-soft); border-radius: 2px; cursor: pointer; font-size: 9px; }
.range-tabs button.active { background: var(--card); color: var(--teal); box-shadow: 0 2px 7px rgba(22,39,36,.08); }
.chart-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chart-period-stat { display: flex; align-items: baseline; gap: 10px; }
.chart-period-stat span { color: var(--ink-soft); font-size: 9px; }
.chart-period-stat strong { font: 600 17px "DM Mono", monospace; }
.chart-wrap { position: relative; width: 100%; height: 320px; margin-top: 25px; }
#nav-chart { display: block; width: 100%; height: 100%; overflow: visible; }
.grid-line { stroke: rgba(22,39,36,.1); stroke-dasharray: 3 5; }
.zero-line { stroke: rgba(22,39,36,.28); stroke-width: 1; }
.axis-label { fill: #7a8582; font: 9px "DM Mono", monospace; }
.nav-path { fill: none; stroke: var(--teal); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.area-path { fill: url(#area-fill); }
.hover-line { stroke: rgba(22,39,36,.32); stroke-dasharray: 3 3; }
.hover-dot { fill: var(--card); stroke: var(--teal); stroke-width: 3; }
.chart-tooltip { position: absolute; z-index: 5; width: 132px; transform: translateX(-50%); padding: 9px 11px; background: var(--forest); color: white; border-radius: 3px; pointer-events: none; box-shadow: 0 8px 22px rgba(11,37,33,.2); }
.chart-tooltip span { display: block; color: #b9cbc7; font: 8px "DM Mono", monospace; }
.chart-tooltip strong { display: inline-block; margin-top: 5px; font: 500 14px "DM Mono", monospace; }
.chart-tooltip em { float: right; margin-top: 6px; font: normal 9px "DM Mono", monospace; }
.chart-legend { display: flex; justify-content: space-between; color: var(--ink-soft); font: 9px "DM Mono", monospace; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.legend-line { width: 18px; height: 2px; background: var(--teal); }

.return-list { margin-top: 28px; }
.return-row { display: grid; grid-template-columns: 60px 1fr 72px; gap: 11px; align-items: center; min-height: 42px; border-bottom: 1px solid rgba(22,39,36,.08); font-size: 10px; }
.return-row > span { color: var(--ink-soft); }
.return-row strong { text-align: right; font: 500 11px "DM Mono", monospace; }
.return-track { height: 4px; background: #e7e3da; border-radius: 5px; overflow: hidden; }
.return-track i { display: block; height: 100%; border-radius: inherit; background: currentColor; opacity: .8; }
.return-method { margin: 18px 0 0; color: #87918e; font-size: 9px; line-height: 1.6; }

.portfolio-panel { margin-top: 20px; padding: 28px; }
.portfolio-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.report-date { padding: 6px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-soft); font: 9px "DM Mono", monospace; }
.allocation-block { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.allocation-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
.allocation-title span, .portfolio-subhead > div > span { font-size: 11px; font-weight: 600; }
.allocation-title small, .portfolio-subhead > div > small { margin-left: 9px; color: var(--ink-soft); font-size: 8px; }
.allocation-bar { height: 12px; display: flex; overflow: hidden; background: var(--paper-deep); border-radius: 2px; }
.allocation-bar i { min-width: 1px; height: 100%; border-right: 1px solid rgba(255,255,255,.7); }
.allocation-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.allocation-legend > span { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 9px; }
.allocation-legend > span > i { width: 7px; height: 7px; border-radius: 50%; }
.allocation-legend strong { margin-left: 2px; color: var(--ink); font: 500 9px "DM Mono", monospace; }
.allocation-legend .allocation-unavailable { color: #8b9491; }
.portfolio-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(450px,1.4fr); gap: 30px; padding-top: 26px; }
.sector-block { padding-right: 29px; border-right: 1px solid var(--line); }
.portfolio-subhead { min-height: 36px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.portfolio-subhead > strong { color: var(--teal); font: 500 9px "DM Mono", monospace; }
.sector-list { margin-top: 17px; }
.sector-row { display: grid; grid-template-columns: 70px 1fr 48px; gap: 9px; align-items: center; min-height: 34px; border-bottom: 1px solid rgba(22,39,36,.07); }
.sector-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 9px; }
.sector-row > div { height: 4px; overflow: hidden; background: #e8e3da; border-radius: 4px; }
.sector-row > div i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.sector-row > strong { text-align: right; font: 500 9px "DM Mono", monospace; }
.holdings-subhead { align-items: center; }
.holding-tabs { display: flex; gap: 2px; padding: 3px; background: #ebe6dc; border-radius: 3px; }
.holding-tabs button { padding: 5px 7px; border: 0; border-radius: 2px; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 8px; }
.holding-tabs button.active { background: var(--card); color: var(--teal); box-shadow: 0 2px 7px rgba(22,39,36,.08); }
.holding-tabs em { margin-left: 2px; font-style: normal; font-family: "DM Mono", monospace; opacity: .7; }
.holding-table-scroll { max-height: 370px; margin-top: 12px; overflow: auto; border-top: 1px solid var(--line); }
.holding-table { min-width: 520px; }
.holding-table thead { position: sticky; top: 0; z-index: 2; background: #f4f0e7; }
.holding-table th { padding: 9px 8px; }
.holding-table th:first-child, .holding-table td:first-child { text-align: left; }
.holding-table td { height: 45px; padding: 7px 8px; font-size: 9px; }
.holding-table td:first-child strong { display: block; font: 600 10px "Noto Sans SC", sans-serif; }
.holding-table td:first-child small { display: block; margin-top: 3px; color: var(--ink-soft); font: 8px "DM Mono", monospace; }
.holding-table td:last-child strong { font: 500 10px "DM Mono", monospace; }
.holding-change { display: inline-block; padding: 3px 6px; border-radius: 2px; background: rgba(214,169,93,.1); color: #8f6a2d; font-size: 8px; }
.holding-empty, .portfolio-empty { min-height: 120px; display: grid; place-items: center; color: var(--ink-soft); font-size: 9px; }
.holding-empty[hidden], .holding-table-scroll[hidden] { display: none !important; }
.portfolio-note { margin: 22px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 8px; line-height: 1.7; }

.history-panel { margin-top: 20px; padding: 28px; }
.history-heading { padding-bottom: 24px; }
.history-meta { display: flex; gap: 18px; color: var(--ink-soft); font: 9px "DM Mono", monospace; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th { padding: 14px 12px; color: var(--ink-soft); font-size: 9px; font-weight: 500; letter-spacing: .05em; text-align: right; }
th:first-child, td:first-child { padding-left: 0; text-align: left; }
th:last-child, td:last-child { padding-right: 0; }
td { height: 52px; padding: 10px 12px; border-top: 1px solid rgba(22,39,36,.075); text-align: right; font: 11px "DM Mono", monospace; }
.change-pill { display: inline-block; min-width: 64px; padding: 5px 7px; background: rgba(93,105,102,.08); border-radius: 2px; text-align: center; }
.change-pill.positive { background: rgba(190,88,77,.09); }
.change-pill.negative { background: rgba(23,114,103,.09); }
.dividend-cell { max-width: 230px; color: var(--ink-soft); font-family: "Noto Sans SC", sans-serif; font-size: 10px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 17px; padding-top: 22px; border-top: 1px solid var(--line); }
.pagination button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.pagination button:hover:not(:disabled) { background: var(--forest); color: white; }
.pagination button:disabled { opacity: .3; cursor: default; }
.pagination span { min-width: 55px; color: var(--ink-soft); text-align: center; font: 10px "DM Mono", monospace; }

.error-state span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: serif; font-size: 20px; }
.error-state h3 { margin: 17px 0 5px; font-family: "Noto Serif SC", serif; color: var(--ink); }
.error-state p { margin: 0; font-size: 11px; }
.error-state button { margin-top: 18px; padding: 8px 15px; border: 1px solid var(--forest); background: transparent; color: var(--forest); cursor: pointer; }

footer { min-height: 120px; margin-top: 70px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 9px; }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }

@media (max-width: 980px) {
  .page-shell { padding: 0 28px; }
  .hero { min-height: 340px; }
  .main-nav a { min-width: 88px; }
  .hero-stats { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .analysis-grid { grid-template-columns: 1fr; }
  .returns-panel { min-height: auto; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .sector-block { padding-right: 0; padding-bottom: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pick-grid { grid-template-columns: 1fr; }
  .pick-card { display: block; }
  .pick-reasons { padding-left: 0; border-left: 0; }
  .rank-controls { align-items: flex-start; flex-direction: column; }
  .rank-periods { width: 100%; }
}

@media (max-width: 640px) {
  .page-shell { padding: 0 17px; }
  .topbar { height: 112px; flex-wrap: wrap; padding-top: 11px; }
  .brand-mark { width: 34px; height: 34px; padding: 8px; }
  .brand strong { font-size: 17px; }
  .main-nav { order: 3; width: 100%; height: 48px; justify-content: space-between; gap: 3px; padding: 4px; border: 1px solid var(--line); }
  .main-nav a { min-width: 0; flex: 1; justify-content: center; font-size: 10px; }
  .market-date { display: none; }
  .data-status { padding: 7px 9px; }
  .data-status span { display: none; }
  .hero { min-height: auto; padding: 51px 0 45px; }
  .hero h1 { font-size: 42px; }
  .hero-intro { font-size: 13px; }
  .view-intro { min-height: 300px; padding: 55px 0 48px; }
  .view-intro h1 { font-size: 39px; }
  .view-intro > p:last-child { font-size: 12px; }
  .finder { padding: 23px 18px 20px; margin-left: -4px; margin-right: -4px; }
  .finder-heading > p, .search-box kbd { display: none; }
  .search-box { height: 59px; padding: 0 15px; }
  .search-results { top: 131px; left: 18px; right: 18px; }
  .type-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .type-filters button { flex: 0 0 auto; }
  .daily-picks { margin-bottom: 55px; }
  .daily-picks-heading { align-items: flex-start; }
  .daily-picks-heading h2 { font-size: 28px; }
  .daily-date { margin-top: 8px; }
  .framework-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .framework-heading > p { text-align: left; }
  .indicator-grid { grid-template-columns: repeat(2,1fr); }
  .pick-card { display: block; padding: 20px 17px; }
  .pick-reasons { padding-left: 0; border-left: 0; }
  .pick-reasons ul { min-height: auto; }
  .pick-role { display: none; }
  .rankings { margin-left: -4px; margin-right: -4px; padding: 24px 17px 0; }
  .rankings-heading { align-items: flex-start; flex-direction: column; }
  .rank-verification { align-self: flex-start; }
  .rank-table-wrap { margin: 0 -17px; overflow-x: auto; }
  .rank-table th:first-child, .rank-table td:first-child { padding-left: 17px; }
  .rank-table th:last-child, .rank-table td:last-child { padding-right: 17px; }
  .rank-footer { min-width: 600px; padding: 13px 17px; }
  .portfolio-heading { flex-direction: row; align-items: flex-start; }
  .allocation-legend { gap: 10px; }
  .portfolio-grid { gap: 24px; }
  .holdings-subhead { align-items: flex-start; }
  .holding-tabs { width: 100%; margin-top: 8px; }
  .holding-tabs button { flex: 1; }
  .fund-heading { align-items: flex-start; gap: 20px; }
  .fund-heading h2 { font-size: 27px; }
  .export-button { width: 39px; height: 39px; padding: 10px; font-size: 0; flex: 0 0 auto; }
  .export-button svg { width: 18px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 145px; padding: 23px 17px; }
  .metric-card strong { font-size: 24px; }
  .metric-primary strong { font-size: 29px; }
  .mini-bars { display: none; }
  .chart-panel, .returns-panel, .history-panel { padding: 22px 17px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .range-tabs { width: 100%; justify-content: space-between; }
  .range-tabs button { flex: 1; }
  .chart-controls { width: 100%; align-items: stretch; }
  .chart-period-stat { justify-content: space-between; padding: 8px 10px; background: rgba(23,114,103,.06); border-radius: 2px; }
  .chart-wrap { height: 270px; }
  .chart-legend { gap: 15px; }
  .history-meta { flex-direction: column; gap: 4px; }
  footer { grid-template-columns: 1fr; gap: 7px; padding: 28px 0; }
  footer p { margin: 0; text-align: left !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
