/* Global Trading Arena — original visual system. No external fonts or assets. */
:root {
  color-scheme: dark;
  --bg: #0c0f0f;
  --surface: #121616;
  --surface-2: #171c1b;
  --surface-3: #1c2220;
  --text: #eeeade;
  --text-soft: #c0c1b6;
  --muted: #7d8983;
  --line: rgba(204, 213, 195, .10);
  --line-strong: rgba(204, 213, 195, .18);
  --gold: #c3ad78;
  --gold-light: #e1ce9d;
  --gold-dim: rgba(195, 173, 120, .10);
  --green: #71bc98;
  --green-dim: rgba(113, 188, 152, .10);
  --coral: #df9384;
  --coral-dim: rgba(223, 147, 132, .10);
  --blue: #8da9b7;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, .30);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { position: fixed; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 84% 0, rgba(116, 114, 73, .055), transparent 45%); content: ""; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, input, select { touch-action: manipulation; }
button { border: 0; }
button::-moz-focus-inner { border: 0; }
input, select, textarea { min-width: 0; }
input::placeholder, textarea::placeholder { color: #6d7973; opacity: 1; }
img, svg, canvas { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 600; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; }
::selection { color: #f5efdf; background: #686044; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #38413b; border: 2px solid var(--bg); border-radius: 8px; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container, .page-container, .site-main { width: min(1440px, calc(100% - 112px)); margin-inline: auto; }
.view { display: none; }
.view.active { display: block; animation: view-in .24s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.positive { color: var(--green) !important; }
.negative { color: var(--coral) !important; }
.muted { color: var(--muted) !important; }
.gold { color: var(--gold) !important; }
.mono, .numeric { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* Navigation */
.site-header { position: relative; z-index: 30; display: flex; align-items: center; gap: 38px; min-height: 90px; padding: 0 max(40px, calc((100vw - 1440px) / 2)); border-bottom: 1px solid var(--line); background: rgba(12,15,15,.96); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 12px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 37px; height: 41px; color: var(--gold-light); font-size: 26px; font-weight: 600; line-height: 1; }
.brand-mark::before { position: absolute; inset: 5px 2px; border: 1px solid var(--gold); border-radius: 2px; transform: rotate(30deg) skewY(-8deg); content: ""; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-name { color: var(--text); font-size: 20px; line-height: 1.3; letter-spacing: .08em; font-weight: 650; white-space: nowrap; }
.brand-subtitle { display: block; margin-top: 3px; color: #8a8d7e; font-size: 9px; letter-spacing: .22em; line-height: 1.4; text-transform: uppercase; }
.nav { display: flex; align-items: stretch; align-self: stretch; justify-content: center; gap: 30px; margin-inline: auto; }
.nav-link { position: relative; display: inline-flex; align-items: center; padding: 0 1px; background: none; color: #939b93; font-size: 13px; white-space: nowrap; transition: color .18s; }
.nav-link:hover, .nav-link.active, .nav-link[aria-current="page"] { color: var(--gold-light); }
.nav-link.active::after, .nav-link[aria-current="page"]::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--gold); content: ""; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language-button { padding: 6px 9px; border: 0; background: none; color: #b9bcb1; font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 17px; border: 1px solid var(--line-strong); border-radius: 5px; background: #171c19; color: var(--text-soft); font-size: 12px; font-weight: 500; line-height: 1.4; text-align: center; white-space: nowrap; transition: border-color .18s, background .18s, color .18s, transform .18s; }
.button:hover { border-color: #6c725b; background: #20251e; color: var(--text); }
.button:active { transform: translateY(1px); }
.button.primary { border-color: #baa36d; background: #c7b17a; color: #191c15; font-weight: 650; }
.button.primary:hover { border-color: var(--gold-light); background: #d9c48e; }
.button.ghost { background: transparent; }
.button.ghost:hover { background: rgba(195,173,120,.07); }
.button.small { min-height: 31px; gap: 5px; padding: 6px 10px; font-size: 11px; }
.button.danger { color: var(--coral); border-color: #5e3932; }
.button svg { width: 15px; height: 15px; }
.button.full-width { width: 100%; }
.mobile-menu-button { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 20px; }
.mobile-nav { display: none; }
.notice-bar { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 33px; padding: 6px 24px; border-bottom: 1px solid rgba(195,173,120,.08); background: rgba(195,173,120,.035); color: #a6a38e; font-size: 10px; line-height: 1.65; letter-spacing: .02em; text-align: center; }
.notice-bar strong { color: var(--gold); font-weight: 500; }
.notice-dot, .status-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--gold); }
.status-dot.green { background: var(--green); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 330px; padding: 46px 0 37px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--gold); font-size: 9px; font-weight: 500; letter-spacing: .21em; line-height: 1.5; text-transform: uppercase; }
.eyebrow::before { width: 20px; height: 1px; background: var(--gold); content: ""; }
.hero h1 { margin-bottom: 15px; color: #f0ecdf; font-size: clamp(34px, 3.55vw, 52px); font-weight: 600; letter-spacing: -.055em; line-height: 1.3; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-subtitle { max-width: 590px; margin-bottom: 25px; color: #909b93; font-size: 12px; line-height: 1.95; letter-spacing: .025em; }
.hero-stats { display: flex; align-items: center; gap: 0; }
.stat { min-width: 110px; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line-strong); }
.stat:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.stat strong, .hero-stat-number { display: block; margin-bottom: 2px; color: #e2decf; font-family: var(--mono); font-size: 22px; font-weight: 400; line-height: 1.35; letter-spacing: -.04em; }
.stat span, .stat small, .hero-stat-label { display: block; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .03em; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.hero-globe { position: absolute; z-index: 1; top: -35px; right: -10px; bottom: -23px; width: 55%; background: url("assets/world-map.svg") center center / contain no-repeat; opacity: .95; pointer-events: none; }
.hero-globe img { width: 100%; height: 100%; object-fit: contain; }
.hero-globe > img[src*="world-map"] { opacity: 0; }
.globe-label { position: absolute; right: 32px; bottom: 44px; color: #858574; font-family: var(--mono); font-size: 8px; letter-spacing: .14em; }

/* Shared section controls */
.market-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.market-tabs { display: flex; align-items: center; gap: 28px; align-self: stretch; }
.market-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 60px; padding: 0; background: transparent; color: #839087; font-size: 13px; white-space: nowrap; transition: color .18s; }
.market-tab small { color: #616e65; font-family: var(--mono); font-size: 9px; }
.market-tab.active, .market-tab:hover { color: var(--gold-light); }
.market-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--gold); content: ""; }
.mode-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid rgba(195,173,120,.24); border-radius: 3px; color: var(--gold); font-size: 9px; line-height: 1.4; white-space: nowrap; }
.mode-badge::before { width: 4px; height: 4px; border-radius: 50%; background: currentColor; content: ""; }
.market-info { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 10px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 65px; padding: 20px 24px 14px; }
.panel-title { display: flex; align-items: center; gap: 8px; margin: 0; color: #e2e0d3; font-size: 15px; font-weight: 550; letter-spacing: .015em; }
.panel-title small { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .04em; }
.panel-kicker { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.panel-body { padding: 0 24px 24px; }
.panel-note { padding: 12px 24px; border-top: 1px solid var(--line); color: #78857b; font-size: 9px; line-height: 1.7; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--gold); font-size: 11px; }
.text-link:hover { color: var(--gold-light); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 32px 0 17px; }
.section-heading h2, .section-heading h3 { margin: 0; color: #e9e6d8; font-size: 18px; font-weight: 550; letter-spacing: .015em; }
.section-heading .eyebrow { margin-bottom: 5px; font-size: 8px; }
.section-heading p, .section-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.section-heading > .text-link { flex-shrink: 0; }
.section-controls { display: flex; align-items: center; gap: 9px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 3px; color: #a7b0a5; font-size: 9px; line-height: 1.45; white-space: nowrap; }
.pill.gold { border-color: rgba(195,173,120,.25); background: var(--gold-dim); }
.pill.green { color: var(--green); border-color: rgba(113,188,152,.20); background: var(--green-dim); }
.pill.coral { color: var(--coral); border-color: rgba(223,147,132,.22); background: var(--coral-dim); }

/* Equity chart and rankings */
.arena-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(400px, 1fr); gap: 20px; align-items: stretch; }
.period-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: #0e1210; }
.period-tab { display: inline-flex; align-items: center; justify-content: center; min-width: 29px; min-height: 24px; padding: 3px 6px; border-radius: 2px; background: transparent; color: #738077; font-family: var(--mono); font-size: 9px; line-height: 1.3; }
.period-tab.active, .period-tab:hover { background: #272b22; color: var(--gold-light); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 10px 24px 0; }
.metric { min-width: 0; }
.metric label, .metric .label, .metric > small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.metric strong, .metric .value { display: block; color: #dedfd1; font-family: var(--mono); font-size: 23px; font-weight: 400; line-height: 1.4; letter-spacing: -.06em; white-space: nowrap; }
.metric > span { color: #708075; font-size: 9px; }
.chart-container { position: relative; min-height: 250px; padding: 14px 14px 2px; }
#equity-chart { display: block; width: 100%; height: 285px; overflow: visible; }
#equity-chart text { font-family: var(--mono); font-size: 10px; fill: #6d7971; }
#equity-chart .grid-line { stroke: #242c25; stroke-width: .7; }
#equity-chart .baseline { stroke: #4a4d3d; stroke-width: .8; stroke-dasharray: 3 5; }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 17px; padding: 5px 24px 17px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: #8f9a8f; font-size: 9px; line-height: 1.5; white-space: nowrap; }
.legend-item::before { width: 11px; height: 2px; background: var(--legend-color, var(--gold)); content: ""; }
.legend-item[data-color="green"] { --legend-color: #7bb99d; }
.legend-item[data-color="coral"] { --legend-color: #d79480; }
.legend-item[data-color="blue"] { --legend-color: #8da9b7; }
.legend-item[data-color="purple"] { --legend-color: #a797ba; }
.legend-item i, .legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.legend-item:has(i)::before { display: none; }
.chart-tooltip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 5px; background: rgba(20,25,21,.98); color: var(--text-soft); box-shadow: 0 6px 28px #0008; font-size: 10px; }
.chart-tooltip strong { display: block; margin-bottom: 5px; color: var(--text); font-weight: 500; }
.chart-tooltip p { display: flex; justify-content: space-between; gap: 18px; margin: 3px 0; }
.rank-table { width: 100%; padding: 0 18px; }
.rank-row { display: grid; grid-template-columns: 26px minmax(120px, 1fr) 66px 65px 54px 31px; align-items: center; gap: 8px; min-height: 58px; border-bottom: 1px solid var(--line); font-size: 10px; }
.rank-row:last-child { border-bottom: 0; }
.rank-row.is-header, .rank-row.header, .rank-row.rank-header { min-height: 31px; border-bottom-color: var(--line-strong); color: #68776d; font-size: 9px; }
.rank-row > :nth-child(n+3) { text-align: right; }
.rank-num { color: #6d776e; font-family: var(--mono); font-size: 11px; font-weight: 400; }
.rank-row:nth-child(2) .rank-num { color: #d1b87d; }
.rank-row:nth-child(3) .rank-num { color: #a3aba6; }
.rank-row:nth-child(4) .rank-num { color: #a68a71; }
.rank-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rank-person > div { min-width: 0; }
.rank-person strong, .rank-name { display: block; overflow: hidden; color: #d8dace; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.rank-person small, .rank-person .country-label { display: block; overflow: hidden; color: #758176; font-size: 8px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { font-family: var(--mono); font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; white-space: nowrap; }
.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid #505141; border-radius: 50%; background: radial-gradient(ellipse at 40% 20%, #454736 0, #262d25 55%, #18201b 100%); color: #d4caab; font-family: Georgia, "Songti SC", serif; font-size: 15px; font-weight: 500; line-height: 1; overflow: hidden; }
.avatar::after { position: absolute; inset: 3px; border: 1px solid rgba(224,216,185,.07); border-radius: inherit; pointer-events: none; content: ""; }
.avatar.small { width: 29px; height: 29px; font-size: 12px; }
.avatar.large { width: 54px; height: 54px; font-size: 21px; }
.avatar[data-tone="green"], .avatar.tone-green { border-color: #3d5b49; background: radial-gradient(ellipse at 40% 20%, #36503f, #1b2d23 65%, #142018); color: #aed0b9; }
.avatar[data-tone="blue"], .avatar.tone-blue { border-color: #3d5259; background: radial-gradient(ellipse at 40% 20%, #364b55, #202c34 65%, #171f24); color: #b7c9d1; }
.avatar[data-tone="coral"], .avatar.tone-coral { border-color: #5b463d; background: radial-gradient(ellipse at 40% 20%, #593f33, #352822 65%, #211d19); color: #dec2ae; }
.avatar[data-tone="purple"], .avatar.tone-purple { border-color: #52465e; background: radial-gradient(ellipse at 40% 20%, #4e3e56, #2e2635 65%, #211c25); color: #cbbbda; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.watch-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 29px; min-height: 29px; padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; color: #8d998d; font-size: 12px; line-height: 1.3; transition: color .18s, border-color .18s, background .18s; }
.watch-button:hover, .watch-button.watched { border-color: rgba(195,173,120,.38); color: var(--gold-light); background: var(--gold-dim); }
.watch-button svg { width: 13px; height: 13px; }
.watch-button.watched svg { fill: currentColor; }

/* Decision feed */
.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.decision-card { min-width: 0; padding: 19px 20px 16px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(120deg, #151a17, #111613); transition: border-color .2s; }
.decision-card:hover { border-color: rgba(195,173,120,.24); }
.decision-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.decision-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.decision-person strong { display: block; color: #dcded0; font-size: 11px; font-weight: 500; }
.decision-person small { display: block; color: #6e7f71; font-size: 9px; }
.decision-time { color: #6d786d; font-family: var(--mono); font-size: 8px; white-space: nowrap; }
.action-badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; color: #a5b1a3; background: #20271f; font-size: 10px; line-height: 1.3; }
.action-badge.buy { border-color: rgba(113,188,152,.19); color: var(--green); background: var(--green-dim); }
.action-badge.wait { border-color: rgba(195,173,120,.23); color: var(--gold); background: var(--gold-dim); }
.action-badge.sell { border-color: rgba(223,147,132,.2); color: var(--coral); background: var(--coral-dim); }
.decision-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; color: #d5dacd; font-size: 12px; font-weight: 500; }
.decision-title .ticker { color: #b5b79f; font-family: var(--mono); font-size: 11px; }
.decision-card p { margin-bottom: 13px; color: #869587; font-size: 11px; line-height: 1.9; }
.decision-card blockquote { margin: 10px 0 13px; padding-left: 10px; border-left: 1px solid #4b4e3b; color: #9ca694; font-size: 11px; line-height: 1.9; }
.decision-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); color: #718075; font-size: 9px; }
.decision-bottom .text-link { font-size: 9px; }

/* Research roster */
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: transform .2s, border-color .2s, background .2s; }
.person-card:hover { transform: translateY(-2px); border-color: rgba(195,173,120,.25); background: #171c18; }
.person-card.selected { border-color: rgba(195,173,120,.57); box-shadow: inset 0 0 0 1px rgba(195,173,120,.08); }
.person-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.person-card-top > div { min-width: 0; }
.person-card h3 { margin: 0 0 2px; color: #e0e0d2; font-size: 14px; font-weight: 550; }
.person-card .name-en { display: block; margin-top: 2px; color: #7a887c; font-size: 10px; }
.country-tag, .country-label { display: inline-flex; align-items: center; gap: 5px; color: #8e998a; font-size: 9px; line-height: 1.5; }
.country-tag .flag, .country-label .flag { font-size: 11px; }
.style-tag { display: inline-flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; padding: 3px 7px; border: 1px solid rgba(195,173,120,.18); border-radius: 3px; background: rgba(195,173,120,.045); color: #bdb08c; font-size: 9px; line-height: 1.45; }
.person-card > .style-tag { margin-bottom: 10px; }
.person-card p, .person-description { display: -webkit-box; margin: 0 0 14px; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; color: #849286; font-size: 10px; line-height: 1.9; }
.person-card .person-full-description { display: block; -webkit-line-clamp: unset; }
.person-stats { display: flex; align-items: center; gap: 12px; margin: auto 0 13px; padding-top: 11px; border-top: 1px solid var(--line); color: #7f8c80; font-size: 9px; }
.person-stats strong { margin-left: 4px; color: #babca9; font-size: 10px; font-weight: 500; }
.person-stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; color: #7e8b7e; font-size: 10px; }
.person-stat strong { color: #d6d9c9; font-family: var(--mono); font-size: 13px; font-weight: 400; }
.person-return { margin: 11px 0 8px; font-family: var(--mono); font-size: 25px; line-height: 1.3; letter-spacing: -.06em; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.card-actions .button { min-height: 30px; padding: 5px 10px; font-size: 10px; }
.card-actions .watch-button { font-size: 10px; }
.evidence-badge { display: inline-flex; align-items: center; gap: 4px; color: #9eab97; font-family: var(--mono); font-size: 9px; }
.evidence-badge strong { display: inline-grid; place-items: center; width: 19px; height: 19px; border: 1px solid #41503b; border-radius: 3px; background: #20291e; color: #c7cfae; font-size: 10px; font-weight: 500; }
.evidence-badge[data-evidence="C"] strong, .evidence-badge[data-evidence="D"] strong { color: #c6a08e; border-color: #594035; background: #2b211b; }
.mini-chart { width: 100%; height: 47px; margin: 5px 0 10px; }
.roster-count { margin-left: 8px; color: #788574; font-family: var(--mono); font-size: 11px; font-weight: 400; }

/* Views, filters, inputs */
.view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 38px; margin-bottom: 25px; }
.view-heading h1 { margin: 0 0 8px; color: #ece9dc; font-size: 30px; font-weight: 550; letter-spacing: -.035em; }
.view-heading p, .view-description { max-width: 780px; margin: 0; color: #8e9b8d; font-size: 12px; line-height: 1.9; }
.view-heading .eyebrow { margin-bottom: 10px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.filters label { color: #8f9d8d; font-size: 11px; }
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filter-chip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: #859381; font-size: 10px; }
.filter-chip.active, .filter-chip:hover { border-color: rgba(195,173,120,.35); background: var(--gold-dim); color: var(--gold-light); }
.search-input, .select-input, .form-field input:not([type="checkbox"]):not([type="range"]), .form-field select, .form-field textarea { min-height: 39px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 4px; outline: none; background: #0e130f; color: #d1d8c9; font-size: 11px; transition: border-color .2s, box-shadow .2s; }
.search-input { flex: 1; min-width: 190px; max-width: 360px; }
.select-input { min-width: 125px; padding-right: 30px; cursor: pointer; }
.search-input:focus, .select-input:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #8d7b50; box-shadow: 0 0 0 3px rgba(195,173,120,.055); }
.select-input option, .form-field select option { background: #151c16; color: var(--text); }
.filter-spacer { flex: 1; }
.filter-count { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; color: #9daa98; font-size: 11px; cursor: pointer; user-select: none; }
.toggle input { width: 29px; height: 16px; margin: 0; appearance: none; border: 1px solid #46503d; border-radius: 20px; outline-offset: 4px; background: #242b22; cursor: pointer; transition: background .2s, border-color .2s; }
.toggle input::before { display: block; width: 10px; height: 10px; margin: 2px; border-radius: 50%; background: #8a927e; transition: transform .2s, background .2s; content: ""; }
.toggle input:checked { border-color: #9e8d5d; background: #655c3f; }
.toggle input:checked::before { transform: translateX(12px); background: #e2d4ac; }
.checkbox { display: inline-flex; align-items: center; gap: 7px; color: #9da995; font-size: 10px; cursor: pointer; }
.checkbox input, input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: var(--gold); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 27px 0; }
.pagination button { min-width: 31px; min-height: 31px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: #8b9985; font-family: var(--mono); font-size: 11px; }
.pagination button.active { border-color: #746640; color: var(--gold-light); }
.compare-tray { position: fixed; z-index: 45; bottom: 22px; left: 50%; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(760px, calc(100% - 32px)); padding: 14px 17px; border: 1px solid #5e5940; border-radius: 8px; background: rgba(27,32,24,.98); box-shadow: 0 12px 55px #0009; transform: translateX(-50%); }
.compare-tray strong { color: #e0dcc7; font-size: 12px; font-weight: 500; }
.compare-tray p { margin: 2px 0 0; color: #8d9b83; font-size: 10px; }
.compare-tray-actions { display: flex; align-items: center; gap: 9px; }
.compare-members { display: flex; align-items: center; gap: 5px; }
.compare-members .avatar { width: 28px; height: 28px; font-size: 11px; }

/* Strategy laboratory and structured data */
.backtest-grid { display: grid; grid-template-columns: minmax(260px, .76fr) minmax(0, 1.7fr); gap: 22px; align-items: start; }
.backtest-settings { padding: 23px; }
.backtest-settings h2 { margin-bottom: 5px; color: #dfdfcf; font-size: 15px; }
.backtest-settings > p { margin-bottom: 24px; color: var(--muted); font-size: 10px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 18px; }
.form-field label, .form-label { color: #b2bdab; font-size: 11px; font-weight: 500; }
.form-field input:not([type="checkbox"]):not([type="range"]), .form-field select, .form-field textarea { width: 100%; }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input[type="range"] { width: 100%; accent-color: var(--gold); }
.form-field input:disabled, .form-field select:disabled { background: #111611; color: #63705f; cursor: not-allowed; }
.form-help { margin: 0; color: #74826e; font-size: 10px; font-weight: 400; line-height: 1.85; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-divider { height: 1px; margin: 22px 0; background: var(--line); }
.field-value { float: right; color: var(--gold); font-family: var(--mono); font-size: 11px; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.result-card, .result-grid > .metric { padding: 17px 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.result-card small, .result-card label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.result-card strong { display: block; color: #d9ddca; font-family: var(--mono); font-size: 24px; font-weight: 400; line-height: 1.3; letter-spacing: -.05em; }
.result-card p { margin: 5px 0 0; color: #75836c; font-size: 9px; }
.backtest-results .panel + .panel { margin-top: 20px; }
.data-table { width: 100%; border-collapse: collapse; color: #aebba5; font-size: 11px; text-align: left; }
.data-table th { padding: 12px 15px; border-bottom: 1px solid var(--line-strong); background: #151d15; color: #788b70; font-size: 10px; font-weight: 500; white-space: nowrap; }
.data-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(195,173,120,.025); }
.data-table td.number, .data-table th.number { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.result-note, .info-box { padding: 15px 17px; border: 1px solid rgba(195,173,120,.19); border-radius: 6px; background: rgba(195,173,120,.045); color: #aaa68c; font-size: 11px; line-height: 1.85; }
.result-note strong, .info-box strong { color: #d1c399; font-weight: 500; }
.result-note + .panel { margin-top: 18px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 40px 25px; color: #819276; text-align: center; }
.empty-state .empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border: 1px solid #3a4532; border-radius: 12px; background: #1a2316; color: #a39467; font-size: 24px; }
.empty-state h3 { margin: 0 0 8px; color: #c8d0bc; font-size: 15px; font-weight: 500; }
.empty-state p { max-width: 420px; margin: 0 0 16px; color: #74866a; font-size: 11px; line-height: 1.9; }
.empty-state .button { margin-top: 4px; }
.loading-spinner { display: inline-block; width: 15px; height: 15px; border: 1px solid #545b42; border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { position: relative; min-height: 15px; border-radius: 3px; overflow: hidden; background: #20271e; }
.skeleton::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #a4ac8220, transparent); transform: translateX(-100%); animation: shimmer 1.6s ease infinite; content: ""; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Rules and explanatory content */
.rules-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 26px; align-items: start; }
.rules-nav { position: sticky; top: 22px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.rules-nav a, .rules-nav button { display: block; width: 100%; padding: 9px 11px; border-radius: 4px; background: transparent; color: #8e9c84; font-size: 11px; text-align: left; }
.rules-nav a.active, .rules-nav button.active, .rules-nav a:hover { background: var(--gold-dim); color: var(--gold-light); }
.rules-content { display: grid; gap: 17px; }
.rule-card { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); scroll-margin-top: 24px; }
.rule-card h2 { margin: 0 0 14px; color: #e0e0ce; font-size: 17px; font-weight: 550; }
.rule-card h3 { margin: 21px 0 8px; color: #babfa9; font-size: 12px; font-weight: 550; }
.rule-card p, .rule-card li { color: #8e9e82; font-size: 12px; line-height: 1.95; }
.rule-card p { margin-bottom: 12px; }
.rule-card li + li { margin-top: 8px; }
.rule-card strong { color: #c2c8b3; font-weight: 550; }
.rule-card a { color: var(--gold); border-bottom: 1px solid rgba(195,173,120,.25); overflow-wrap: anywhere; }
.rule-number { margin-right: 9px; color: var(--gold); font-family: var(--mono); font-size: 12px; font-weight: 400; }
.help-list { margin: 0; padding: 0; list-style: none; }
.help-list li { position: relative; padding: 11px 0 11px 17px; border-bottom: 1px solid var(--line); color: #99a88b; font-size: 11px; line-height: 1.9; }
.help-list li:last-child { border-bottom: 0; }
.help-list li::before { position: absolute; top: 21px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); content: ""; }
.help-list strong { color: #c7cdb8; font-weight: 500; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 18px 0; color: #bec8b1; font-size: 12px; cursor: pointer; }
.faq-item > p { padding: 0 0 18px; color: #829675; font-size: 11px; line-height: 1.95; }

/* Dialogs, detail tabs, comparisons */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 26px; overflow: auto; background: rgba(4,7,5,.78); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.modal { position: relative; width: min(620px,100%); max-height: calc(100dvh - 52px); border: 1px solid #414c36; border-radius: 11px; background: #131a12; box-shadow: var(--shadow); overflow: auto; animation: modal-in .2s ease both; }
.modal.wide { width: min(1020px,100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-header { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 18px 24px; border-bottom: 1px solid var(--line-strong); background: #151d13; }
.modal-header h2 { margin: 0; color: #e0e2cf; font-size: 20px; font-weight: 550; }
.modal-header p { margin: 3px 0 0; color: #8a9c7c; font-size: 10px; }
.modal-header .avatar { margin-right: 12px; }
.modal-person { display: flex; align-items: center; }
.modal-close { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: #9da891; font-size: 22px; font-weight: 300; line-height: 1; }
.modal-close:hover { border-color: #8e7a4b; color: var(--gold-light); }
.modal-body { padding: 23px 25px 27px; }
.drawer-tabs { display: flex; gap: 24px; margin: -5px 0 23px; border-bottom: 1px solid var(--line-strong); }
.drawer-tabs button { position: relative; padding: 12px 0; background: none; color: #7f9371; font-size: 11px; white-space: nowrap; }
.drawer-tabs button.active { color: var(--gold-light); }
.drawer-tabs button.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--gold); content: ""; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.detail-block { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #171f14; }
.detail-block.full-width { grid-column: 1/-1; }
.detail-block h3 { margin: 0 0 10px; color: #c6cfb6; font-size: 12px; font-weight: 550; }
.detail-block p, .detail-block li { margin-bottom: 9px; color: #8ea17c; font-size: 11px; line-height: 1.95; overflow-wrap: anywhere; }
.detail-block strong { color: #c5ccb6; font-weight: 500; }
.detail-block .pill { margin: 0 5px 5px 0; }
.detail-block dl { display: grid; grid-template-columns: minmax(75px,.5fr) 1fr; gap: 9px 12px; margin: 0; font-size: 11px; }
.detail-block dt { color: #7c916b; }
.detail-block dd { margin: 0; color: #b6c5a6; }
.source-list { margin: 0; padding: 0; list-style: none; }
.source-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.source-list li:last-child { border-bottom: 0; }
.source-list a { color: #c8b780; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.source-list a:hover { color: #e5d49e; text-decoration: underline; text-underline-offset: 3px; }
.source-list small, .source-list p { display: block; margin: 4px 0 0; color: #7e936c; font-size: 10px; line-height: 1.85; }
.compare-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.compare-column { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #182114; }
.compare-column .person-card-top { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.compare-column h3 { margin: 0 0 4px; color: #d5dcc5; font-size: 14px; }
.compare-column h4 { margin: 17px 0 6px; color: #a5b78f; font-size: 10px; font-weight: 500; }
.compare-column p { color: #819970; font-size: 10px; line-height: 1.9; }
.compare-column .avatar { width: 34px; height: 34px; font-size: 14px; }
.toast { position: fixed; z-index: 140; top: 22px; left: 50%; max-width: min(480px,calc(100% - 34px)); padding: 12px 18px; border: 1px solid #635d3b; border-radius: 6px; background: #242d1c; color: #ddd5af; box-shadow: 0 10px 40px #0007; transform: translateX(-50%); font-size: 12px; line-height: 1.7; text-align: center; animation: toast-in .2s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%,-5px); } to { opacity: 1; transform: translate(-50%,0); } }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 26px; width: min(1440px,calc(100% - 112px)); margin: 43px auto 0; padding: 23px 0 27px; border-top: 1px solid var(--line); color: #5f6e60; font-size: 9px; line-height: 1.9; }
.footer-brand { color: #8f987f; letter-spacing: .12em; font-size: 10px; }
.footer p { margin: 0; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; }
.footer a:hover { color: #c4b47e; }
.legal-note { color: #687962; font-size: 9px; line-height: 1.9; }
.bottom-space { height: 24px; }

/* App markup integration */
.skip-link { position: fixed; z-index: 180; top: -80px; left: 18px; padding: 10px 16px; border: 1px solid var(--gold); border-radius: 4px; background: #24291e; color: var(--gold-light); font-size: 12px; }
.skip-link:focus { top: 12px; }
.site-header { display: block; min-height: 0; padding: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 86px; }
.header-inner .nav { align-self: stretch; }
.notice-bar > .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.notice-bar .status-dot { width: 4px; height: 4px; margin: 0; }
.notice-bar .text-button { margin-left: 9px; color: #b4a274; font-size: 9px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--gold); font-size: 11px; line-height: 1.6; text-align: left; transition: color .18s; }
.text-button:hover { color: var(--gold-light); }
.small-text { font-size: 10px; line-height: 1.7; }
.count-badge { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 2px; padding: 0 4px; border: 1px solid rgba(20,28,17,.22); border-radius: 3px; background: rgba(18,27,13,.08); font-family: var(--mono); font-size: 9px; line-height: 1; }
.hero { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); min-height: 346px; padding: 32px 0 22px; }
.hero-copy { grid-column: 1; }
.hero h1 { font-size: clamp(38px,3.75vw,54px); line-height: 1.22; }
.hero .hero-subtitle { margin-bottom: 18px; }
.hero-actions { margin-top: 0; }
.hero-actions .button { min-height: 35px; padding: 8px 13px; font-size: 10px; }
.hero > .hero-stats { position: relative; z-index: 2; grid-column: 1/-1; align-self: end; margin-top: 27px; }
.hero > .hero-globe { top: -23px; right: -28px; bottom: 3px; width: 57%; }
.hero-stats .stat { min-width: 108px; padding-right: 30px; margin-right: 30px; }
.hero-stats .stat:last-child { padding-right: 0; margin-right: 0; }
.hero-stats .stat .hero-stat-number { font-size: 21px; }
.market-context { display: flex; align-items: center; justify-content: flex-end; gap: 13px; color: #7a887b; font-size: 9px; }
.market-tab .market-symbol { color: #aa9a70; font-size: 18px; font-weight: 400; line-height: 1; }
.market-tab > span > b { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; }
.market-tab > span > small { display: block; margin-top: 2px; color: #607065; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; line-height: 1.3; }
.metric > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.metric-caption { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; padding-bottom: 5px; text-align: right; }
.metric-caption > span { max-width: 170px; margin-bottom: 3px; color: #a3aa97; font-family: var(--mono); font-size: 9px; line-height: 1.6; }
.metric-caption > small { margin: 0; color: #657764; font-size: 8px; }
.chart-panel { display: flex; flex-direction: column; }
.chart-panel > .chart-container { flex: 1; min-height: 250px; }
#equity-chart { width: 100%; height: 285px; }
#equity-chart > svg, #equity-chart > canvas { display: block; width: 100%; height: 100%; }
#equity-chart > .skeleton { height: calc(100% - 35px); margin: 14px 12px; background: #172019; }
.chart-panel > .panel-note { margin: 0; }
.ranking-panel { display: flex; flex-direction: column; }
.ranking-panel > .rank-table { flex: 1; }
.ranking-footnote { display: flex; align-items: center; gap: 10px; margin-top: 7px; padding: 13px 20px; border-top: 1px solid var(--line); color: #758474; font-size: 9px; }
.section-heading > div > span { display: block; margin-top: 3px; color: #657365; font-size: 7px; letter-spacing: .18em; }
.featured-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.library-grid .person-card { padding: 22px; }
.library-grid .person-card p { -webkit-line-clamp: 3; font-size: 11px; }
.library-grid .person-card h3 { font-size: 15px; }
.library-grid .person-card .avatar { width: 43px; height: 43px; font-size: 17px; }
.view-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.view-heading .eyebrow { margin-bottom: 10px; }
.search-wrap { position: relative; display: flex; flex: 1; align-items: center; min-width: 200px; }
.search-wrap > span { position: absolute; left: 13px; color: #91a083; font-size: 18px; line-height: 1; pointer-events: none; }
.search-wrap > .search-input { width: 100%; max-width: none; padding-left: 35px; }
.filters > .muted { color: #84937a; font-size: 10px; white-space: nowrap; }
.lab-form { padding-bottom: 23px; }
.lab-form > .panel-heading { margin-bottom: 5px; }
.lab-form > .form-field, .lab-form > .form-help, .lab-form > .form-row, .lab-form > .lab-actions { margin-right: 23px; margin-left: 23px; }
.lab-form > .form-help { margin-bottom: 19px; }
.lab-form .form-field > span { color: #b2bdab; font-size: 11px; font-weight: 500; }
.lab-form .form-field > small { color: #76886b; font-size: 9px; font-weight: 400; line-height: 1.8; }
.lab-form .form-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.lab-form .form-row > .form-field:first-child { grid-column: 1/-1; }
.lab-form .form-row .form-field { margin-bottom: 6px; }
.file-input { display: block; width: 100%; max-width: 100%; min-height: 43px; padding: 7px 8px; border: 1px dashed #424e36; border-radius: 4px; background: #10170e; color: #889a79; font-size: 9px; }
.file-input::file-selector-button { padding: 6px 8px; margin: 0 9px 0 0; border: 1px solid #50583e; border-radius: 3px; background: #232b1b; color: #c2c9ac; font-family: inherit; font-size: 10px; cursor: pointer; }
.lab-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; padding-top: 11px; margin-bottom: 13px; }
.lab-actions .button { min-height: 33px; padding: 7px 10px; font-size: 10px; }
.lab-actions .text-button { font-size: 9px; }
.lab-form > .button.primary { width: calc(100% - 46px); margin: 0 23px 16px; }
.lab-form > .form-help:last-child { margin-bottom: 0; font-size: 9px; }
.lab-result { min-height: 540px; }
.lab-result > .empty-state { min-height: 540px; gap: 9px; }
.lab-result > .empty-state .empty-icon { margin-bottom: 12px; }
.lab-result > .empty-state h2 { margin: 0 0 3px; color: #ccd4bc; font-size: 19px; font-weight: 500; }
.lab-result > .empty-state p { margin-bottom: 10px; }
.lab-result > .empty-state .pill { min-width: 125px; font-size: 9px; }
.lab-result:has(.result-grid) { padding: 20px; }
.lab-result .result-grid { gap: 10px; }
.lab-result .result-card { padding: 13px; }
.lab-result .result-card strong { font-size: 21px; }
.lab-result .result-grid .metric { padding: 13px; }
.rules-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 21px; padding: 14px 17px; border: 1px solid rgba(195,173,120,.18); border-radius: 5px; background: rgba(195,173,120,.035); font-size: 11px; }
.rules-layout:has(> .rule-card), .rules-layout:has(> .panel) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; align-items: stretch; }
.rules-layout > .panel { padding: 23px; }
.rules-layout > .panel h2 { margin-bottom: 13px; font-size: 16px; }
.rules-layout > .panel p, .rules-layout > .panel li { color: #8c9c7f; font-size: 11px; line-height: 1.95; }
.footer { display: block; width: 100%; padding: 23px 0 27px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 30px; }
.footer-inner > div:first-child > strong { color: #a8af97; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.footer-inner > div:first-child > p { margin-top: 3px; font-size: 9px; }
.footer-inner > div:nth-child(2) { display: flex; align-items: center; gap: 20px; color: #89967e; font-size: 10px; }
.footer-inner .text-button { color: #89967e; font-size: 10px; }
.footer-inner .text-button:hover { color: var(--gold-light); }
.footer-disclaimer { grid-column: 1/-1; margin: 0; color: #5e7158; font-size: 8px; }

/* Compact laptop */
@media (min-width: 1600px) {
  .site-header { padding: 0; }
  .header-inner { min-height: 90px; }
  .hero { min-height: 370px; }
  .hero-globe { right: -15px; }
  .hero h1 { font-size: 55px; }
  #equity-chart { height: 310px; }
}
@media (max-width: 1250px) {
  .container, .page-container, .site-main { width: calc(100% - 64px); }
  .site-header { gap: 25px; padding-inline: 30px; }
  .nav { gap: 24px; }
  .brand-name { font-size: 18px; }
  .header-actions { gap: 8px; }
  .arena-grid { grid-template-columns: minmax(0,1.3fr) minmax(370px,1fr); gap: 16px; }
  .rank-table { padding-inline: 15px; }
  .rank-row { grid-template-columns: 21px minmax(100px,1fr) 58px 58px 48px 28px; gap: 5px; }
  .rank-person { gap: 7px; }
  .rank-person strong { font-size: 10px; }
  .rank-value { font-size: 9px; }
  .people-grid { gap: 13px; }
  .person-card { padding: 16px; }
  .person-card-top { gap: 9px; }
  .person-card h3 { font-size: 12px; }
  .person-card .avatar { width: 34px; height: 34px; }
  .person-stats { gap: 8px; font-size: 8px; }
  .hero { min-height: 310px; padding-block: 39px 34px; }
  .hero-globe { right: -25px; width: 56%; }
  .hero-subtitle { max-width: 520px; font-size: 11px; }
  .metrics { gap: 10px; padding-inline: 20px; }
  .metric strong { font-size: 21px; }
  .panel-heading { padding-inline: 20px; }
  .chart-legend { padding-inline: 20px; gap: 9px 13px; }
  .decision-card { padding: 17px; }
  .header-inner { gap: 20px; min-height: 80px; }
  .site-header { padding: 0; min-height: 0; }
  .hero { min-height: 330px; padding-top: 29px; }
  .hero > .hero-globe { width: 58%; right: -35px; }
  .hero > .hero-stats { margin-top: 24px; }
  .market-context { gap: 9px; font-size: 8px; }
  .library-grid .person-card { padding: 20px; }
}

/* Tablet */
@media (max-width: 1023px) {
  .site-header { min-height: 78px; gap: 18px; padding-inline: 26px; }
  .brand-name { font-size: 17px; }
  .brand-subtitle { font-size: 8px; }
  .brand-mark { width: 31px; height: 36px; }
  .nav { gap: 20px; }
  .nav-link { font-size: 12px; }
  .header-actions .button { padding-inline: 11px; min-height: 34px; font-size: 10px; }
  .language-button { display: none; }
  .arena-grid { grid-template-columns: minmax(0,1fr); }
  .arena-grid > .panel { min-height: 0; }
  #equity-chart { height: 300px; }
  .rank-row { grid-template-columns: 30px minmax(160px,1fr) 100px 95px 95px 42px; min-height: 59px; gap: 10px; }
  .rank-row.is-header, .rank-row.header, .rank-row.rank-header { min-height: 34px; }
  .rank-person strong { font-size: 12px; }
  .rank-value { font-size: 11px; }
  .rank-table { padding-inline: 23px; }
  .decision-grid { gap: 13px; }
  .decision-card { padding: 16px; }
  .decision-card p { font-size: 10px; }
  .decision-person strong { font-size: 10px; }
  .decision-person .avatar { width: 29px; height: 29px; font-size: 12px; }
  .decision-time { font-size: 7px; }
  .people-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
  .person-card { padding: 18px; }
  .person-card h3 { font-size: 13px; }
  .hero { grid-template-columns: 1.3fr 1fr; min-height: 300px; }
  .hero h1 { font-size: 39px; }
  .hero-globe { right: -90px; width: 62%; opacity: .7; }
  .hero-subtitle { max-width: 480px; }
  .stat { min-width: 90px; padding-right: 22px; margin-right: 22px; }
  .stat strong { font-size: 20px; }
  .market-info > span:not(.mode-badge) { display: none; }
  .backtest-grid { grid-template-columns: minmax(230px,.8fr) minmax(0,1.4fr); gap: 17px; }
  .backtest-settings { padding: 20px; }
  .result-grid { grid-template-columns: repeat(2,1fr); }
  .rules-layout { grid-template-columns: 180px minmax(0,1fr); gap: 18px; }
  .rule-card { padding: 23px; }
  .compare-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .compare-grid > :last-child:nth-child(3) { grid-column: 1/-1; }
  .site-header { padding: 0; min-height: 0; }
  .header-inner { min-height: 77px; gap: 16px; }
  .hero > .hero-globe { right: -90px; width: 63%; opacity: .65; }
  .hero-stats .stat { min-width: 95px; padding-right: 24px; margin-right: 24px; }
  .market-context > span:not(.mode-badge) { display: none; }
  .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lab-form > .form-field, .lab-form > .form-help, .lab-form > .form-row, .lab-form > .lab-actions { margin-right: 19px; margin-left: 19px; }
  .lab-form > .button.primary { width: calc(100% - 38px); margin-right: 19px; margin-left: 19px; }
}

/* Phone / narrow tablet */
@media (max-width: 767px) {
  html { scrollbar-gutter: auto; }
  .container, .page-container, .site-main, .footer { width: calc(100% - 36px); }
  .site-header { min-height: 71px; gap: 12px; justify-content: space-between; padding-inline: 18px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 17px; letter-spacing: .05em; }
  .brand-subtitle { font-size: 7px; letter-spacing: .18em; }
  .brand-mark { width: 29px; height: 33px; font-size: 22px; }
  .nav { display: none; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions > .button.ghost { display: none; }
  .header-actions > .button.primary { min-height: 32px; padding: 6px 10px; font-size: 10px; }
  .mobile-menu-button { display: inline-flex; width: 32px; height: 32px; }
  .mobile-nav { position: absolute; z-index: 29; top: 71px; right: 0; left: 0; padding: 8px 18px 14px; border-bottom: 1px solid var(--line-strong); background: #11170f; box-shadow: 0 16px 28px #0005; }
  .mobile-nav.active, .mobile-nav.open { display: flex; flex-direction: column; }
  .mobile-nav .nav-link { display: block; width: 100%; padding: 11px 12px; border-radius: 4px; font-size: 12px; text-align: left; }
  .mobile-nav .nav-link.active { background: var(--gold-dim); }
  .mobile-nav .nav-link.active::after { display: none; }
  .notice-bar { min-height: 35px; gap: 5px; padding: 7px 16px; font-size: 8px; line-height: 1.7; }
  .hero { display: block; min-height: 315px; padding: 35px 0 28px; }
  .hero-copy { max-width: 100%; }
  .eyebrow { margin-bottom: 11px; font-size: 8px; letter-spacing: .15em; }
  .hero h1 { max-width: 530px; margin-bottom: 14px; font-size: clamp(31px,6.2vw,42px); letter-spacing: -.055em; }
  .hero-subtitle { max-width: 420px; margin-bottom: 25px; color: #96a18f; font-size: 10px; line-height: 1.9; }
  .hero-globe { top: -12px; right: -170px; bottom: 0; width: 93%; opacity: .24; }
  .stat { min-width: 83px; padding-right: 23px; margin-right: 23px; }
  .stat strong { font-size: 21px; }
  .stat span, .stat small { font-size: 9px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .button { min-height: 36px; padding: 8px 13px; font-size: 10px; }
  .globe-label { display: none; }
  .market-bar { gap: 10px; min-height: 55px; margin-bottom: 15px; }
  .market-tabs { min-width: 0; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .market-tabs::-webkit-scrollbar { display: none; }
  .market-tab { min-height: 53px; gap: 5px; font-size: 11px; }
  .market-tab small { font-size: 8px; }
  .market-info { gap: 0; }
  .mode-badge { padding: 3px 6px; font-size: 8px; }
  .arena-grid { gap: 15px; }
  .panel-heading { min-height: 62px; gap: 9px; padding: 18px 17px 12px; }
  .panel-title { font-size: 13px; }
  .panel-title small { display: none; }
  .panel-kicker { margin-top: 4px; font-size: 9px; }
  .panel-body { padding-inline: 17px; }
  .metrics { gap: 10px; padding: 8px 17px 0; }
  .metric label, .metric .label, .metric > small { font-size: 8px; }
  .metric strong, .metric .value { font-size: 21px; }
  .metric > span { font-size: 8px; }
  .period-tab { min-width: 26px; min-height: 23px; padding-inline: 5px; font-size: 8px; }
  .chart-container { min-height: 220px; padding: 12px 8px 0; }
  #equity-chart { height: 242px; }
  .chart-legend { gap: 8px 12px; padding: 6px 17px 15px; }
  .legend-item { font-size: 8px; }
  .panel-note { padding: 10px 17px; font-size: 8px; }
  .panel-footer { padding: 11px 17px; font-size: 9px; }
  .rank-table { padding-inline: 17px; }
  .rank-row { grid-template-columns: 23px minmax(95px,1fr) 72px 35px; min-height: 60px; gap: 8px; }
  .rank-row > :nth-child(3), .rank-row > :nth-child(5) { display: none; }
  .rank-row > :nth-child(4) { text-align: right; }
  .rank-person { gap: 9px; }
  .rank-person strong { font-size: 11px; }
  .rank-person small { font-size: 8px; }
  .rank-value { font-size: 11px; }
  .rank-num { font-size: 10px; }
  .avatar.small { width: 31px; height: 31px; font-size: 12px; }
  .section-heading { gap: 12px; margin: 27px 0 14px; }
  .section-heading h2, .section-heading h3 { font-size: 16px; }
  .section-heading p, .section-subtitle { font-size: 10px; }
  .section-heading .text-link { font-size: 10px; }
  .decision-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .decision-card { padding: 18px; }
  .decision-person strong { font-size: 12px; }
  .decision-time { font-size: 9px; }
  .decision-card p { font-size: 11px; }
  .decision-bottom { font-size: 9px; }
  .people-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .person-card { padding: 15px; }
  .person-card-top { gap: 9px; margin-bottom: 12px; }
  .person-card h3 { font-size: 12px; }
  .person-card .name-en { font-size: 9px; }
  .person-card .avatar { width: 31px; height: 31px; font-size: 13px; }
  .person-card p { font-size: 10px; }
  .country-tag, .country-label { font-size: 8px; }
  .style-tag { padding: 3px 5px; font-size: 8px; }
  .person-stats { gap: 8px; flex-wrap: wrap; font-size: 8px; }
  .card-actions { gap: 6px; padding-top: 11px; }
  .card-actions .button { min-height: 28px; padding: 5px 7px; font-size: 9px; }
  .card-actions .watch-button { min-width: 27px; padding: 5px; font-size: 9px; }
  .view-heading { align-items: flex-start; padding-top: 28px; margin-bottom: 21px; }
  .view-heading h1 { font-size: 26px; }
  .view-heading p, .view-description { font-size: 11px; }
  .view-heading > .button { min-height: 33px; padding-inline: 10px; font-size: 10px; }
  .filters { gap: 9px; padding: 13px; margin-bottom: 17px; }
  .search-input { flex-basis: 100%; min-width: 0; max-width: none; }
  .select-input { flex: 1; min-width: 115px; padding-right: 22px; }
  .filter-spacer { display: none; }
  .filter-count { margin-left: auto; font-size: 9px; }
  .filter-chip { padding: 5px 8px; font-size: 9px; }
  .compare-tray { bottom: 14px; gap: 12px; padding: 12px; }
  .compare-tray strong { font-size: 11px; }
  .compare-tray p { display: none; }
  .compare-tray .button { min-height: 32px; padding: 7px 10px; font-size: 10px; }
  .compare-members { display: none; }
  .backtest-grid { grid-template-columns: 1fr; gap: 18px; }
  .backtest-settings { padding: 19px; }
  .backtest-settings .form-row { grid-template-columns: 1fr 1fr; }
  .form-field { margin-bottom: 15px; }
  .form-field label { font-size: 11px; }
  .form-help { font-size: 10px; }
  .result-grid { gap: 10px; margin-bottom: 16px; }
  .result-card, .result-grid > .metric { padding: 16px; }
  .result-card strong { font-size: 23px; }
  .data-table { font-size: 10px; }
  .data-table th, .data-table td { padding: 11px 12px; }
  .data-table th { font-size: 9px; }
  .result-note, .info-box { padding: 13px 15px; font-size: 10px; }
  .empty-state { min-height: 240px; padding: 30px 20px; }
  .empty-state h3 { font-size: 14px; }
  .empty-state p { font-size: 10px; }
  .rules-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .rules-nav { position: static; display: flex; gap: 5px; padding: 8px; overflow-x: auto; }
  .rules-nav a, .rules-nav button { flex-shrink: 0; width: auto; padding: 8px 10px; font-size: 10px; white-space: nowrap; }
  .rule-card { padding: 20px; }
  .rule-card h2 { font-size: 15px; }
  .rule-card p, .rule-card li { font-size: 11px; }
  .modal-backdrop { padding: 14px; }
  .modal { max-height: calc(100dvh - 28px); border-radius: 8px; }
  .modal-header { min-height: 66px; padding: 16px 17px; }
  .modal-header h2 { font-size: 17px; }
  .modal-header p { font-size: 9px; }
  .modal-header .avatar.large { width: 40px; height: 40px; font-size: 17px; }
  .modal-body { padding: 19px 17px 22px; }
  .drawer-tabs { gap: 23px; margin-bottom: 18px; overflow-x: auto; }
  .drawer-tabs button { font-size: 10px; }
  .detail-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .detail-block { padding: 16px; }
  .detail-block p, .detail-block li { font-size: 11px; }
  .source-list a { font-size: 10px; }
  .source-list small { font-size: 9px; }
  .compare-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .compare-grid > :last-child:nth-child(3) { grid-column: auto; }
  .compare-column { padding: 16px; }
  .toast { top: 13px; padding: 10px 15px; font-size: 11px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 11px; margin-top: 31px; padding-block: 21px 23px; font-size: 8px; }
  .footer-links { gap: 16px; }
  .site-header { min-height: 0; padding: 0; }
  .header-inner { min-height: 71px; gap: 9px; }
  .header-actions > #language-toggle { display: inline-flex; padding: 5px 7px; min-height: 31px; font-size: 9px; }
  .header-actions > .button.primary { min-height: 31px; padding: 5px 8px; font-size: 9px; }
  .count-badge { min-width: 13px; height: 14px; padding: 0 3px; font-size: 8px; }
  .mobile-nav { top: 71px; }
  .mobile-nav:not(.hidden) { display: flex; flex-direction: column; }
  .mobile-nav > a { width: 100%; padding: 11px 12px; border-radius: 4px; color: #a6b199; font-size: 12px; }
  .mobile-nav > a:hover { background: var(--gold-dim); color: var(--gold-light); }
  .notice-bar { padding-inline: 0; }
  .notice-bar > .container { gap: 5px; width: calc(100% - 24px); }
  .notice-bar > .container > span[data-i18n="notice"] { flex: 1; text-align: left; }
  .notice-bar .text-button { margin-left: 0; font-size: 7px; }
  .hero { min-height: 0; padding-top: 30px; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(35px,7.3vw,46px); }
  .hero .hero-subtitle { margin-bottom: 20px; }
  .hero > .hero-globe { top: 0; right: -155px; bottom: 44px; width: 95%; opacity: .27; }
  .hero > .hero-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-top: 28px; }
  .hero-stats .stat { min-width: 0; padding-right: 10px; margin-right: 10px; }
  .hero-stats .stat .hero-stat-number { font-size: 19px; }
  .hero-stats .stat span { font-size: 8px; letter-spacing: -.025em; }
  .market-tabs { gap: 20px; }
  .market-tab { gap: 6px; }
  .market-tab > span > b { font-size: 11px; }
  .market-tab .market-symbol { font-size: 16px; }
  .market-tab > span > small { font-size: 6px; }
  .market-context { margin-left: auto; }
  .market-context .mode-badge { font-size: 7px; }
  .metric > span { font-size: 8px; }
  .metric-caption { padding-bottom: 3px; }
  .metric-caption > span { font-size: 8px; }
  .metric-caption > small { max-width: 110px; font-size: 7px; }
  .ranking-footnote { padding: 11px 17px; font-size: 8px; }
  .section-heading > div > span { font-size: 6px; }
  .section-heading > .small-text { max-width: 118px; font-size: 8px; text-align: right; }
  .featured-grid, .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .library-grid .person-card { padding: 15px; }
  .library-grid .person-card h3 { font-size: 12px; }
  .library-grid .person-card .avatar { width: 31px; height: 31px; font-size: 13px; }
  .library-grid .person-card p { font-size: 10px; }
  .search-wrap { flex-basis: 100%; min-width: 0; }
  .search-wrap > .search-input { flex-basis: auto; }
  .filters > .button { flex: 1; min-height: 33px; }
  .filters > .muted { font-size: 9px; }
  .lab-form > .form-field, .lab-form > .form-help, .lab-form > .form-row, .lab-form > .lab-actions { margin-right: 19px; margin-left: 19px; }
  .lab-result, .lab-result > .empty-state { min-height: 370px; }
  .lab-result:has(.result-grid) { padding: 16px; }
  .rules-intro { flex-wrap: wrap; gap: 8px 11px; padding: 12px 14px; font-size: 9px; }
  .rules-layout:has(> .rule-card), .rules-layout:has(> .panel) { grid-template-columns: minmax(0,1fr); }
  .footer { width: 100%; padding: 22px 0; }
  .footer-inner { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .footer-inner > div:nth-child(2) { flex-wrap: wrap; gap: 18px; font-size: 9px; }
  .footer-inner .text-button { font-size: 9px; }
  .footer-disclaimer { font-size: 8px; }
}
@media (max-width: 420px) {
  .container, .page-container, .site-main, .footer { width: calc(100% - 28px); }
  .site-header { padding-inline: 14px; }
  .brand-name { font-size: 15px; }
  .brand-subtitle { font-size: 6px; letter-spacing: .17em; }
  .brand-mark { width: 25px; height: 30px; }
  .header-actions { gap: 6px; }
  .hero { min-height: 310px; padding-top: 31px; }
  .hero h1 { font-size: 31px; }
  .hero-subtitle { max-width: 310px; }
  .stat { min-width: 75px; padding-right: 18px; margin-right: 18px; }
  .stat strong { font-size: 19px; }
  .stat span, .stat small { font-size: 8px; }
  .market-tabs { gap: 16px; }
  .market-tab { font-size: 10px; }
  .market-tab small { display: none; }
  .mode-badge { font-size: 7px; }
  .metrics { gap: 7px; }
  .metric strong, .metric .value { font-size: 19px; }
  .rank-row { grid-template-columns: 19px minmax(90px,1fr) 65px 29px; gap: 6px; }
  .rank-person { gap: 7px; }
  .rank-person strong { font-size: 10px; }
  .rank-value { font-size: 10px; }
  .people-grid { grid-template-columns: 1fr; }
  .person-card { padding: 18px; }
  .person-card h3 { font-size: 14px; }
  .person-card .avatar { width: 40px; height: 40px; font-size: 16px; }
  .person-card p { -webkit-line-clamp: 2; font-size: 11px; }
  .person-stats { gap: 16px; font-size: 9px; }
  .card-actions .button, .card-actions .watch-button { font-size: 10px; }
  .country-tag, .country-label { font-size: 9px; }
  .style-tag { font-size: 9px; }
  .view-heading { gap: 12px; }
  .view-heading h1 { font-size: 24px; }
  .view-heading > .button { padding-inline: 8px; font-size: 9px; }
  .search-input, .select-input, .form-field input:not([type="checkbox"]):not([type="range"]), .form-field select { font-size: 12px; }
  .compare-tray { width: calc(100% - 22px); }
  .site-header { padding: 0; }
  .brand { gap: 7px; }
  .header-inner { gap: 6px; }
  .brand-name { font-size: 13px; letter-spacing: .025em; }
  .brand-subtitle { font-size: 6px; letter-spacing: .14em; }
  .header-actions { gap: 5px; }
  .header-actions > #language-toggle { padding-inline: 5px; font-size: 8px; }
  .header-actions > .button.primary { padding-inline: 6px; font-size: 8px; }
  .header-actions .mobile-menu-button { width: 29px; height: 30px; font-size: 17px; }
  .hero { min-height: 0; }
  .hero h1 { font-size: 35px; }
  .hero-stats .stat { padding-right: 7px; margin-right: 7px; }
  .hero-stats .stat .hero-stat-number { font-size: 18px; }
  .hero-stats .stat span { font-size: 7px; }
  .market-tabs { gap: 15px; }
  .market-tab > span > b { font-size: 10px; }
  .market-tab .market-symbol { font-size: 14px; }
  .market-context .mode-badge { padding: 3px 4px; font-size: 6px; }
  .featured-grid, .library-grid { grid-template-columns: 1fr; }
  .library-grid .person-card { padding: 18px; }
  .library-grid .person-card h3 { font-size: 14px; }
  .library-grid .person-card .avatar { width: 40px; height: 40px; font-size: 16px; }
  .library-grid .person-card p { font-size: 11px; }
  .footer { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color-scheme: light; }
  body { background: white; color: #111; }
  .site-header, .notice-bar, .header-actions, .mobile-nav, .compare-tray, .toast, .card-actions, .hero-globe { display: none !important; }
  .container, .page-container, .site-main, .footer { width: 100%; }
  .panel, .person-card, .decision-card, .rule-card { color: #111; border-color: #ccc; background: white; break-inside: avoid; }
  h1, h2, h3, p, a, strong, .muted { color: #111 !important; }
  .view.active { display: block; }
}

/* Release calibration: readable research content and compact desktop arena. */
:root {
  --muted: #98a298;
  --text-soft: #c9cec2;
}
body.modal-open { overflow: hidden !important; overscroll-behavior: none; }
.hero-subtitle, .view-description, .view-heading p { color: #a7afa1; }
.panel-kicker, .section-subtitle { color: #96a08f; }
.small-text, .market-context { color: #97a18f; }
.person-card p, .person-description, .library-grid .person-card p,
.detail-block p, .detail-block li, .source-list p, .source-list small,
.compare-column p, .rule-card p, .rule-card li,
.rules-layout > .panel p, .rules-layout > .panel li {
  color: #b3beaa;
  font-size: 12px;
  line-height: 1.9;
}
.person-card .style-tag { color: #c8bc98; font-size: 12px; line-height: 1.7; white-space: normal; }
.country-tag, .country-label, .person-card .name-en { color: #a3af99; font-size: 11px; }
.person-stats { color: #a4b096; font-size: 11px; }
.person-stats b { margin-left: 3px; color: #d6dcc8; font-weight: 500; }
.card-actions .text-button, .card-actions .button, .card-actions .watch-button { font-size: 11px; }
.person-name.text-button { justify-content: flex-start; color: #e0e2d5; font-size: 15px; font-weight: 550; line-height: 1.5; white-space: normal; }
.person-name.text-button:hover { color: var(--gold-light); }
.person-card-top > .watch-button { align-self: flex-start; margin-left: auto; }
.decision-card p, .decision-card blockquote { color: #a6b19f; font-size: 12px; line-height: 1.85; }
.decision-person small, .decision-time, .decision-bottom { color: #99a58f; }
.form-help, .lab-form > .form-help:last-child, .lab-form .form-field > small { color: #a0af91; font-size: 12px; line-height: 1.85; }
.form-field label, .lab-form .form-field > span { color: #bdc6af; font-size: 12px; }
.source-list a { color: #d3bf8c; font-size: 12px; }
.source-list p { margin-top: 5px; }
.detail-block h3 { color: #d3dcc3; font-size: 13px; }
.detail-block .pill { font-size: 11px; }
.data-table { color: #b6c1a8; font-size: 12px; }
.data-table th { color: #a5b393; font-size: 11px; }
.rule-card a, .compare-column a { color: #d3bf8c; font-size: 12px; overflow-wrap: anywhere; }
.compare-column h4 { color: #c2cfb0; font-size: 12px; }
.profile-summary { display: flex; align-items: center; gap: 17px; margin-bottom: 19px; }
.profile-summary > .avatar { width: 58px; height: 58px; font-size: 23px; }
.profile-summary > div { min-width: 0; }
.profile-summary p { margin: 0 0 7px; color: #bcc6ae; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.profile-summary .country-tag { color: #a0af91; font-size: 11px; }
.profile-summary .pill { margin: 0 6px 4px 0; color: #bdc7ab; font-size: 10px; }
.profile-boundary { margin: 0 0 20px; padding: 13px 15px; border: 1px solid rgba(195,173,120,.23); border-radius: 5px; background: rgba(195,173,120,.055); color: #c2b99a; font-size: 12px; line-height: 1.85; }
.modal-body > .detail-block { margin-top: 18px; }
.modal-body > .button.primary { margin-top: 20px; }
.rule-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; color: #d7deca; font-size: 15px; font-weight: 550; line-height: 1.7; list-style: none; cursor: pointer; }
.rule-card > summary::-webkit-details-marker { display: none; }
.rule-card > summary::after { flex-shrink: 0; color: var(--gold); font-family: var(--mono); font-size: 20px; font-weight: 400; content: "+"; }
.rule-card[open] > summary::after { content: "−"; }
.rule-card-body { padding-top: 20px; margin-top: 16px; border-top: 1px solid var(--line); }
.rule-card-body > p { margin-bottom: 13px; }
.rule-card-body > .table-scroll { margin: 18px 0; }
.rules-layout:has(> .rule-card) { align-items: start; }
details.help-list { padding: 15px 0 0; margin-top: 15px; border-top: 1px solid var(--line); }
details.help-list > summary { color: #c6d1b4; font-size: 12px; line-height: 1.8; cursor: pointer; }
details.help-list > ul { padding-left: 0; list-style: none; }
details.help-list li { color: #a9ba99; font-size: 12px; }
.compare-grid { grid-template-columns: repeat(var(--compare-count, 3), minmax(0,1fr)); }
.compare-grid > :last-child:nth-child(3) { grid-column: auto; }

@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; align-items: center; row-gap: 12px; height: 280px; min-height: 280px; padding: 24px 0 18px; }
  .hero-copy { grid-column: 1; width: 74%; max-width: 900px; }
  .hero .eyebrow { margin-bottom: 7px; }
  .hero h1 { margin-bottom: 9px; font-size: clamp(35px,3.1vw,46px); line-height: 1.2; letter-spacing: -.035em; white-space: nowrap; }
  .hero h1 br { display: none; }
  .hero .hero-subtitle { max-width: 720px; margin-bottom: 13px; font-size: 12px; line-height: 1.65; }
  .hero-actions .button { min-height: 33px; padding: 7px 12px; font-size: 11px; }
  .hero > .hero-stats { grid-column: 1; display: flex; align-items: center; align-self: end; margin-top: 0; }
  .hero-stats .stat { min-width: 115px; padding-right: 29px; margin-right: 29px; }
  .hero-stats .stat .hero-stat-number { margin-bottom: 1px; font-size: 20px; line-height: 1.3; }
  .hero-stats .stat span { color: #9ca58e; font-size: 10px; }
  .hero > .hero-globe { top: -30px; right: -20px; bottom: -20px; width: 48%; opacity: .52; }
  .market-bar { min-height: 55px; margin-bottom: 17px; }
  .market-tab { min-height: 53px; }
  #equity-chart { height: 260px; }
  .chart-panel > .chart-container { min-height: 245px; }
  .rank-row { min-height: 54px; }
}
@media (max-width: 999px) {
  .hero h1 { white-space: normal; }
  .hero h1 br { display: initial; }
}
@media (max-width: 767px) {
  .person-card p, .person-description, .library-grid .person-card p,
  .detail-block p, .detail-block li, .source-list p, .source-list small,
  .compare-column p, .rule-card p, .rule-card li,
  .rules-layout > .panel p, .rules-layout > .panel li { font-size: 12px; }
  .person-card .style-tag { font-size: 12px; }
  .person-name.text-button { font-size: 14px; }
  .country-tag, .country-label, .person-card .name-en { font-size: 11px; }
  .person-stats { gap: 7px 12px; font-size: 11px; }
  .library-grid .person-card .person-stats { flex-wrap: wrap; }
  .form-help, .lab-form > .form-help:last-child, .lab-form .form-field > small { font-size: 12px; }
  .source-list a { font-size: 12px; }
  .profile-summary { align-items: flex-start; gap: 13px; }
  .profile-summary > .avatar { width: 46px; height: 46px; font-size: 19px; }
  .profile-summary p { font-size: 12px; }
  .profile-boundary { padding: 12px; font-size: 12px; }
  .compare-grid { grid-template-columns: minmax(0,1fr); }
  .rule-card > summary { font-size: 14px; }
  .rule-card-body { padding-top: 16px; margin-top: 13px; }
  .data-table { font-size: 12px; }
  .data-table th { font-size: 11px; }
}

/* Keep the interactive chart key readable against the dark plotting panel. */
.legend-item { font-size: 11px; color: #c0c8be; }
button.legend-item { padding: 4px 7px; border: 1px solid #354039; border-radius: 4px; background: #151c18; }
button.legend-item:hover { color: #eeeade; border-color: #8b805e; }
button.legend-item[aria-pressed="false"] { border-style: dashed; }
button.legend-item[aria-pressed="false"] i { opacity: .45; }
