/* Peers Holdings — internal portfolio template
   Premium quiet editorial register. Warm cream + deep navy + single terracotta accent. */

:root {
  /* Surface — DC Brand */
  --bg-page:     #F3F5F9;            /* Shades/Background Screen */
  --bg-paper:    #FFFFFF;            /* white card / report sheet */
  --bg-elev:     #FFFFFF;
  --bg-tint:     #E6F3F2;            /* Shades/Background Primary (teal tint) */

  /* Ink — Neutral scale */
  --ink-1:       #171819;            /* Neutral 900 — primary text */
  --ink-2:       #5E6062;            /* Neutral 600 — secondary text */
  --ink-3:       #75787B;            /* Neutral 500 — tertiary text */
  --ink-4:       #ACAEB0;            /* Neutral 300 — hairline-strength text */

  /* Rule lines */
  --rule-1:      #E3E4E5;            /* Neutral 100 — light border */
  --rule-2:      rgba(23,24,25,0.055);
  --rule-3:      #C8C9CA;            /* Neutral 200 */

  /* Accent — Primary (Teal) */
  --accent:      #008478;            /* Primary 700 (Main) */
  --accent-ink:  #066962;            /* Primary 800 */
  --accent-tint: #E6F3F2;

  /* Activity tones — DC semantic colors */
  --act-entry:   #0051CC;            /* Info 800 — new position */
  --act-add:     #0AA630;            /* Success 600 — increased */
  --act-reduce:  #F59E0B;            /* Warning 1/500 — trimmed */
  --act-exit:    #DC2626;            /* Error 600 — closed */

  /* Type — DC Brand (Manrope primary) */
  --font-sans:   "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-disp:   "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shape */
  --radius:      12px;
  --radius-sm:   8px;
  --shadow-card: 0 1px 2px rgba(23,24,25,0.04), 0 4px 16px rgba(23,24,25,0.05);

  /* Sizes */
  --t-eyebrow:   11px;
  --t-body:      13px;
  --t-meta:      12px;
  --t-h3:        18px;
  --t-h2:        28px;
  --t-h1:        56px;
  --t-display:   92px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--ink-1);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; }
.tabular { font-variant-numeric: tabular-nums; }

/* ── Layout ─────────────────────────────────────────────── */
.shell {
  max-width: 1440px;
  margin: 24px auto;
  padding: 0 56px 80px;
  background: var(--bg-paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ── Header ─────────────────────────────────────────────── */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--rule-1);
  margin-bottom: 56px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-paper);
  border-radius: var(--radius) var(--radius) 0 0;
}
.report-id {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.report-id .eyebrow {
  font-family: var(--font-disp);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--ink-1);
  text-transform: uppercase;
  margin: 0;
}
.report-id .sub {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 500;
}
.topbar nav {
  display: flex;
  gap: 36px;
  justify-self: center;
}
.topbar nav a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-1);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  padding-bottom: 2px;
  cursor: pointer;
}
.topbar nav a.active {
  color: var(--ink-1);
}
.topbar nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -29px;
  height: 2px;
  background: var(--accent);
}
.topbar nav a:hover { color: var(--accent); }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
.brandmark {
  justify-self: end;
  display: flex;
  align-items: center;
}
.brandmark img {
  height: 40px;
  width: auto;
  display: block;
}

/* ── Editorial hero ─────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 48px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule-1);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 24px;
}
.fund-id {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.h-display {
  font-family: var(--font-disp);
  font-size: var(--t-display);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: var(--ink-1);
  margin: 0 0 24px;
  text-wrap: balance;
}
.h-display em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
}
.hero-meta {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 28px;
}
.hero-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.hero-meta span .lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-aum {
  text-align: right;
  min-width: 280px;
}
.hero-aum .lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 12px;
}
.hero-aum .val {
  font-family: var(--font-disp);
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-aum .val small {
  font-size: 14px;
  color: var(--ink-3);
  margin-left: 6px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.hero-aum .sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ── KPI strip ─────────────────────────────────────────── */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-1);
  border-bottom: 1px solid var(--rule-1);
  margin-bottom: 64px;
}
.kpi {
  padding: 28px 32px 28px 0;
  border-right: 1px solid var(--rule-1);
}
.kpi:last-child { border-right: none; padding-right: 0; }
.kpi:not(:first-child) { padding-left: 32px; }
.kpi .lbl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 16px;
}
.kpi .val {
  font-family: var(--font-disp);
  font-size: 38px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
}
.kpi .val small {
  font-size: 13px;
  color: var(--ink-3);
  margin-left: 4px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.kpi .sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 10px;
}

/* ── Section header ────────────────────────────────────── */
.section {
  margin-bottom: 80px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-1);
  margin-bottom: 24px;
}
.section-head .num {
  font-family: var(--font-disp);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 16px;
}
.section-head h2 {
  font-family: var(--font-disp);
  font-size: var(--t-h2);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--accent);
}
.section-head .right {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ── Holdings table ───────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  text-align: left;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--rule-1);
}
.table thead th + th,
.table tbody td + td {
  padding-left: 24px;
}
.table tbody td {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: middle;
}
.table tbody tr:hover td {
  background: rgba(0,132,120,0.03);
}
.table .ta-right { text-align: right; }
.table .ta-center { text-align: center; }

.t-rank {
  font-family: var(--font-disp);
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  width: 36px;
}
.t-ticker {
  width: 240px;
  padding-right: 32px;
  white-space: nowrap;
}
.t-ticker .tk {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-1);
}
.t-name .nm {
  font-size: 13px;
  color: var(--ink-1);
  font-weight: 500;
}
.t-name .sec {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* Weight bar */
.weight-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}
.weight-bar {
  flex: 1;
  height: 4px;
  background: rgba(23,24,25,0.06);
  position: relative;
  border-radius: 2px;
}
.weight-bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.weight-num {
  font-family: var(--font-disp);
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  min-width: 60px;
  text-align: right;
}

/* Activity tag inside row */
.act-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.act-tag .gly {
  width: 18px; height: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-disp);
  line-height: 1;
}
.act-tag.entry  { color: var(--act-entry); }
.act-tag.add    { color: var(--act-add); }
.act-tag.reduce { color: var(--act-reduce); }
.act-tag.exit   { color: var(--act-exit); }
.act-tag .pp {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-2);
}
.act-tag.none { color: var(--ink-4); }

/* ── Two-up section ───────────────────────────────────── */
.two-up {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
}

/* ── Sector list ───────────────────────────────────────── */
.sector-row {
  display: grid;
  grid-template-columns: 28px 1fr 60px;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-2);
}
.sector-row:last-child { border-bottom: none; }
.sector-num {
  font-family: var(--font-disp);
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.sector-body .nm {
  font-size: 14px;
  color: var(--ink-1);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sector-body .nm .pos {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.sector-bar {
  height: 2px;
  background: rgba(23,24,25,0.06);
  position: relative;
}
.sector-bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.sector-pct {
  font-family: var(--font-disp);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
  color: var(--ink-1);
}

/* ── Activity feed ─────────────────────────────────────── */
.feed {
  display: flex;
  flex-direction: column;
}
.feed-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-2);
  align-items: baseline;
}
.feed-row:last-child { border-bottom: none; }
.feed-date {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.feed-body {
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.5;
}
.feed-body .verb { color: var(--ink-2); }
.feed-body .tk {
  font-family: var(--font-disp);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.feed-body .rt {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 4px;
  font-style: italic;
}
.feed-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.feed-tag.entry  { color: var(--act-entry); }
.feed-tag.add    { color: var(--act-add); }
.feed-tag.reduce { color: var(--act-reduce); }
.feed-tag.exit   { color: var(--act-exit); }
.feed-pp {
  font-family: var(--font-disp);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
  font-weight: 500;
  margin-top: 2px;
}

/* ── Funds index grid ──────────────────────────────────── */
.funds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-1);
  border-left: 1px solid var(--rule-1);
}
.fund-card {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--rule-1);
  border-bottom: 1px solid var(--rule-1);
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease;
  position: relative;
}
.fund-card:hover {
  background: #F1F2F2;
}
.fund-card.active {
  background: var(--bg-tint);
}
.fund-card.active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
}
.fund-card .fc-id {
  font-family: var(--font-disp);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 14px;
}
.fund-card.active .fc-id { color: var(--accent); }
.fund-card .fc-name {
  font-family: var(--font-disp);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink-1);
}
.fund-card .fc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-2);
}
.fund-card .fc-meta .lbl {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 4px;
}
.fund-card .fc-meta .v {
  font-family: var(--font-disp);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.fund-card .fc-meta .v small {
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 3px;
  font-weight: 500;
}

/* ── Funds explorer (All Funds tab) ────────────────────── */
.explorer {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
.explorer-rail {
  border-top: 1px solid var(--ink-1);
  position: sticky;
  top: 24px;
}
.rail-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--rule-1);
}
.rail-list {
  display: flex;
  flex-direction: column;
}
.rail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 14px 14px 14px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-2);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-1);
  transition: background 160ms ease;
  position: relative;
  margin: 0 -14px;
}
.rail-row:hover { background: #F1F2F2; }
.rail-row.active {
  background: var(--bg-tint);
}
.rail-row.active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
}
.rail-row .rr-code {
  font-family: var(--font-disp);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 4px;
}
.rail-row.active .rr-code { color: var(--accent); }
.rail-row .rr-name {
  font-family: var(--font-disp);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  line-height: 1.2;
  margin-bottom: 4px;
}
.rail-row .rr-strat {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.rail-row .rr-aum {
  font-family: var(--font-disp);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  text-align: right;
  white-space: nowrap;
}
.rail-row .rr-aum small {
  font-size: 10px;
  color: var(--ink-3);
  margin-left: 3px;
  font-weight: 500;
}

.explorer.explorer-no-rail {
  grid-template-columns: 1fr;
  gap: 0;
}

.explorer-detail .detail-head {
  padding-bottom: 28px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--ink-1);
}
.detail-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}
.detail-head-text { flex: 1; }
.detail-id-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
}
.detail-id-row .fund-id { margin-bottom: 0; }
.as-of {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
}
.detail-head-row .filter-bar {
  margin-bottom: 0;
  flex-shrink: 0;
}
.explorer-detail .detail-title {
  font-family: var(--font-disp);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 12px;
  color: #7A4A2B;
}
.explorer-detail .detail-sub {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.explorer-detail .detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 13px;
  color: var(--ink-2);
}
.explorer-detail .detail-meta .lbl {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-right: 6px;
}
.explorer-detail .detail-meta b {
  font-family: var(--font-disp);
  font-weight: 500;
  color: var(--ink-1);
}

/* 5-up KPI variant (used inside fund detail) */
.kpis.kpis-5 {
  grid-template-columns: repeat(5, 1fr);
}
.kpis.kpis-3 {
  grid-template-columns: repeat(3, 1fr);
}
.kpis.kpis-4 {
  grid-template-columns: repeat(4, 1fr);
}
.kpis.kpis-2 {
  grid-template-columns: repeat(2, 1fr);
}
.kpi-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.kpi-list li {
  font-family: var(--font-disp);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
  white-space: nowrap;
}
.kpi-list li.add    { color: var(--act-add); }
.kpi-list li.reduce { color: var(--act-exit); }
.kpi-list li.muted  { color: var(--ink-4); }
.kpi-inline {
  font-family: var(--font-disp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  text-wrap: pretty;
}
.kpi-inline.add    { color: var(--act-add); }
.kpi-inline.reduce { color: var(--act-exit); }
.kpi-tag {
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.kpi-tag.add    { color: var(--act-add);  background: rgba(10,166,48,0.10); }
.kpi-tag.reduce { color: var(--act-exit); background: rgba(220,38,38,0.08); }
.detail-kpis {
  margin-top: 24px;
  margin-bottom: 28px;
  border-top: none;       /* the section above already has a 1px bottom rule */
}
.detail-kpis .kpi {
  padding: 22px 20px 22px 0;
}
.detail-kpis .kpi:not(:first-child) {
  padding-left: 20px;
}
.detail-kpis .kpi .val {
  font-size: 26px;
}
.detail-kpis .kpi .val small {
  font-size: 11px;
}
.detail-kpis .kpi .lbl {
  margin-bottom: 12px;
}
.detail-kpis .kpi .sub {
  margin-top: 8px;
  font-size: 11px;
}

.table.table-compact tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.shares-delta {
  font-size: 11px;
  margin-top: 3px;
  text-align: right;
  letter-spacing: 0.02em;
}
.shares-delta.pos  { color: var(--act-add); }
.shares-delta.neg  { color: var(--act-exit); }
.shares-delta.flat { color: var(--ink-4); }

/* ── History (time series) ─────────────────────────────── */
.table-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 14px;
}
.year-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.year-filter select {
  font-family: var(--font-disp);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--ink-1);
  background: var(--bg-page);
  border: 1px solid var(--rule-3);
  border-radius: var(--radius-sm);
  padding: 7px 32px 7px 12px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23171819' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 160ms ease;
}
.year-filter select:hover { border-color: var(--ink-1); }
.year-filter select:focus { outline: none; border-color: var(--accent); }

.filter-bar {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.filter-field {
  position: relative;
  display: inline-flex;
}
.filter-label {
  position: absolute;
  top: -7px;
  left: 12px;
  background: var(--bg-paper);
  padding: 0 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  z-index: 1;
}
.filter-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-disp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-1);
  background: var(--bg-paper);
  border: 1px solid var(--rule-3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 128px;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease;
}
.filter-field.wide .filter-select {
  min-width: 300px;
}
.filter-select:hover { border-color: var(--ink-1); }
.filter-select.open { border-color: var(--accent); }
.filter-input {
  font-family: var(--font-disp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-1);
  background: var(--bg-paper);
  border: 1px solid var(--rule-3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 300px;
  transition: border-color 160ms ease;
}
.filter-input::placeholder {
  color: var(--ink-4);
  text-transform: none;
  letter-spacing: 0.01em;
}
.filter-input:hover { border-color: var(--ink-1); }
.filter-input:focus { outline: none; border-color: var(--accent); }
.fs-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-chevron {
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform 160ms ease;
}
.filter-select.open .fs-chevron { transform: rotate(180deg); }

.filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 100%;
  background: var(--bg-paper);
  border: 1px solid var(--rule-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 6px;
  z-index: 40;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.filter-option {
  text-align: center;
  font-family: var(--font-disp);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}
.filter-option:hover { background: #F1F2F2; color: var(--ink-1); }
.filter-option.active { background: var(--bg-tint); color: var(--accent); }
.filter-option.multi {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  justify-content: flex-start;
}
.filter-option .opt-check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--rule-3);
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  color: #fff;
  flex-shrink: 0;
}
.filter-option.active .opt-check {
  background: var(--accent);
  border-color: var(--accent);
}
.filter-menu.left {
  left: 0;
  right: auto;
  transform: none;
}
.filter-menu.left .filter-option {
  text-align: left;
}

.history-wrap {
  overflow-x: auto;
  margin-top: 22px;
}
.history-table {
  min-width: 880px;
}
.history-table tbody td.t-ticker {
  width: 90px;
  padding-right: 16px;
}
.history-table thead th.month-col {
  text-align: right;
  width: 80px;
}
.history-table thead th.month-col.current {
  color: var(--ink-1);
}
.history-table tbody td.month-cell {
  text-align: right;
  color: var(--ink-3);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.history-table tbody td.month-cell.heat {
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--ink-1);
  font-weight: 500;
}
.history-table thead th.month-col {
  padding-left: 14px;
  padding-right: 14px;
}
.history-table tbody td.month-cell.current {
  color: var(--ink-1);
  font-weight: 600;
}
.history-table tbody td.t-name {
  width: 120px;
}
.history-table tbody td.t-name .sec {
  font-size: 12px;
  color: var(--ink-3);
}
.history-delta {
  font-family: var(--font-disp);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.history-delta.pos  { color: var(--act-add); }
.history-delta.neg  { color: var(--act-exit); }
.history-delta.flat { color: var(--ink-4); }

/* ── Activity (movers table) ───────────────────────────── */
/* ── Activity (movers panels) ──────────────────────────── */
.act-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.act-panel {
  padding: 22px 28px 24px;
}
.act-panel-head {
  display: grid;
  grid-template-columns: 124px 1fr;
  align-items: baseline;
  gap: 0;
  margin-bottom: 14px;
}
.act-panel-head .act-badge {
  justify-self: start;
}
.act-panel-cap {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
}
.act-empty {
  color: var(--ink-4);
  font-style: italic;
  font-size: 12px;
  padding: 10px 0;
}
.activity-table tbody td {
  vertical-align: top;
  padding: 12px 0;
}
.activity-table tbody tr:not(:last-child) td {
  border-bottom: none;
}
.act-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.act-badge.entry  { color: var(--act-entry);  background: rgba(0,81,204,0.08); }
.act-badge.add    { color: var(--act-add);    background: rgba(10,166,48,0.10); }
.act-badge.reduce { color: var(--act-reduce); background: rgba(245,158,11,0.13); }
.act-badge.exit   { color: var(--act-exit);   background: rgba(220,38,38,0.08); }
.activity-table .fund-cell {
  width: 124px;
  vertical-align: middle;
  text-align: left;
}
.stock-empty {
  padding: 40px 0 !important;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  font-style: italic;
}
.stock-empty strong {
  font-family: var(--font-disp);
  font-style: normal;
  color: var(--ink-1);
  font-weight: 600;
}
.fund-cell .fc-code {
  font-family: var(--font-disp);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-1);
  font-weight: 600;
}
.fund-cell .fc-nm {
  font-family: var(--font-disp);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.movers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mover {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--bg-page);
  border: 1px solid var(--rule-1);
  border-radius: 6px;
  padding: 6px 11px;
  white-space: nowrap;
}
.mv-tk {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-1);
}
.mv-ch {
  font-size: 11px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-1);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
