/* Track-record dashboard (Interests page) */
.tr { --tr-main: #0b1f3a; --tr-btc: #d97706; --tr-eth: #2563eb; --tr-xrp: #7c3aed; --tr-doge: #b45309; --tr-bnb: #0f766e; --tr-sol: #15803d; --tr-up: #0891b2; --tr-down: #e11d48;
  margin-top: var(--s5); }
.tr[data-active="btc"] { --tr-main: var(--tr-btc); }
.tr[data-active="eth"] { --tr-main: var(--tr-eth); }
.tr[data-active="xrp"] { --tr-main: var(--tr-xrp); }
.tr[data-active="doge"] { --tr-main: var(--tr-doge); }
.tr[data-active="bnb"] { --tr-main: var(--tr-bnb); }
.tr[data-active="sol"] { --tr-main: var(--tr-sol); }

.tr-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s5); }
.tr-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--cyan-deep); font-size: var(--fs-label); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.tr-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem 0.15rem 0.45rem; border-radius: 999px;
  background: #ecfdf5; color: #047857; font-size: 0.75rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.tr-badge svg { width: 0.85rem; height: 0.85rem; }
.tr-title { margin-top: var(--s2); color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.tr-scope { margin-top: 2px; color: var(--muted); font-size: var(--fs-meta); }

.tr-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--sky); }
.tr-seg button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font: inherit; font-size: var(--fs-label); font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.tr-seg button i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tr-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(19, 48, 77, 0.14); }
.tr-seg button:hover { color: var(--ink); }
.tr-seg button[data-series="btc"] i { background: var(--tr-btc); }
.tr-seg button[data-series="eth"] i { background: var(--tr-eth); }
.tr-seg button[data-series="xrp"] i { background: var(--tr-xrp); }
.tr-seg button[data-series="doge"] i { background: var(--tr-doge); }
.tr-seg button[data-series="bnb"] i { background: var(--tr-bnb); }
.tr-seg button[data-series="sol"] i { background: var(--tr-sol); }
.tr-seg button[data-series="all"] i { background: var(--navy); }

.tr-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.tr-kpis > div { padding: var(--s3) var(--s4); border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.tr-kpis dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tr-kpis dd { margin: 0.2rem 0 0; color: var(--ink); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tr-kpis small { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.75rem; line-height: 1.35; }
.tr-kpis .lead dd { color: var(--tr-main); }

.tr-chart { position: relative; margin-top: var(--s5); padding: var(--s3) var(--s3) 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); outline: none; }
.tr-chart:focus-visible { box-shadow: 0 0 0 3px var(--sky-strong); }
.tr-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tr-grid line { stroke: #e7eef2; stroke-width: 1; }
.tr-month { stroke: #eef3f6; stroke-dasharray: 2 4; }
.tr-axis { fill: #8494a2; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-axis-sm { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.tr-zero { stroke: #d5e0e7; }
.tr-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tr-main { stroke: var(--tr-main); stroke-width: 2.6; }
.tr-sub { stroke-width: 1.6; opacity: 0.9; }
.tr-sub.tr-btc { stroke: var(--tr-btc); } .tr-sub.tr-eth { stroke: var(--tr-eth); } .tr-sub.tr-xrp { stroke: var(--tr-xrp); } .tr-sub.tr-doge { stroke: var(--tr-doge); } .tr-sub.tr-bnb { stroke: var(--tr-bnb); } .tr-sub.tr-sol { stroke: var(--tr-sol); }
.tr-end { fill: var(--tr-main); stroke: #fff; stroke-width: 2; }
.tr-bars .up { fill: var(--tr-up); } .tr-bars .down { fill: var(--tr-down); }
.tr-cross { stroke: #9fb2c0; stroke-width: 1; stroke-dasharray: 3 3; }
.tr-dot { fill: #fff; stroke: var(--tr-main); stroke-width: 2.5; }
.tr-tip { position: absolute; z-index: 2; min-width: 11.5rem; padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: 10px;
  background: rgba(255, 255, 255, 0.97); box-shadow: 0 12px 28px -14px rgba(19, 48, 77, 0.45); font-size: 0.8125rem; pointer-events: none; }
.tr-tip b { display: block; margin-bottom: 0.3rem; color: var(--ink); font-weight: 800; }
.tr-tip span { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); line-height: 1.7; }
.tr-tip span.sub { font-size: 0.75rem; }
.tr-tip em { margin-left: auto; padding-left: 0.75rem; color: var(--ink); font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-tip .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--tr-main); }
.tr-tip .sw.tr-btc { background: var(--tr-btc); } .tr-tip .sw.tr-eth { background: var(--tr-eth); } .tr-tip .sw.tr-xrp { background: var(--tr-xrp); } .tr-tip .sw.tr-doge { background: var(--tr-doge); } .tr-tip .sw.tr-bnb { background: var(--tr-bnb); } .tr-tip .sw.tr-sol { background: var(--tr-sol); }
.tr-tip .sw.tr-all { background: var(--navy); } .tr-tip .sw-day { border-radius: 2px; background: var(--tr-up); }

.tr-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; padding: var(--s3) var(--s1) var(--s3); color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.tr-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.tr-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--tr-main); }
.tr-legend i.bar { width: 8px; height: 10px; border-radius: 2px; background: var(--tr-up); }
.tr-legend i.bar.down { background: var(--tr-down); }
.tr-legend i.btc { background: var(--tr-btc); } .tr-legend i.eth { background: var(--tr-eth); } .tr-legend i.xrp { background: var(--tr-xrp); } .tr-legend i.doge { background: var(--tr-doge); } .tr-legend i.bnb { background: var(--tr-bnb); } .tr-legend i.sol { background: var(--tr-sol); }
.tr[data-active]:not([data-active="all"]) .tr-legend .multi { display: none; }

.tr-mix { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin-top: var(--s5); }
.tr-mix h4 { color: var(--ink); font-size: var(--fs-label); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.tr-share { display: flex; height: 2.4rem; overflow: hidden; border-radius: 10px; }
.tr-share .seg { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-width: 0; color: #fff; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-share .seg b { font-weight: 800; letter-spacing: 0.02em; opacity: 0.85; }
.tr-share .seg + .seg { border-left: 2px solid var(--surface); }
.tr-share .tr-btc { background: var(--tr-btc); } .tr-share .tr-eth { background: var(--tr-eth); } .tr-share .tr-xrp { background: var(--tr-xrp); } .tr-share .tr-doge { background: var(--tr-doge); } .tr-share .tr-bnb { background: var(--tr-bnb); } .tr-share .tr-sol { background: var(--tr-sol); }

.tr-note { margin-top: var(--s4); color: var(--muted); font-size: 0.75rem; line-height: 1.6; }

@media (max-width: 960px) { .tr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-kpis dd { font-size: 1.3rem; }
  /* a flex row cannot shrink buttons below their label, so it spilled past the card
     and the last market was unreachable; a grid wraps them at an even width instead */
  .tr-seg { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .tr-seg button { justify-content: center; padding: 0.4rem 0.4rem; }
  .tr-share .seg b { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tr-seg button { transition: none; } }

.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; }

/* Small contributors (DOGE, BNB) stay visible as slivers without overflowing their label. */
.tr-share .seg { min-width: 6px; overflow: hidden; white-space: nowrap; }

/* Performance analytics: drawdown, daily-result distribution, and ratio table */
.tr-ana { margin-top: var(--s6); }
.tr-ana h4 { color: var(--ink); font-size: var(--fs-label); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.tr-ana-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s3); }
.tr-panel { margin: 0; padding: var(--s3) var(--s3) var(--s2); border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.tr-panel figcaption { padding: 0 var(--s1) var(--s2); color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.tr-grid-l { stroke: #e7eef2; stroke-width: 1; }
.tr-dd-area { fill: var(--tr-down); opacity: 0.14; }
.tr-dd-line { fill: none; stroke: var(--tr-down); stroke-width: 1.8; stroke-linejoin: round; }
.tr-h-up { fill: var(--tr-up); } .tr-h-down { fill: var(--tr-down); }
.tr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.tr-stats > div { padding: var(--s3) var(--s4); border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.tr-stats dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tr-stats dd { margin: 0.2rem 0 0; color: var(--ink); font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tr-stats small { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.75rem; line-height: 1.35; }
.interest .card-intro { max-width: none; }
@media (max-width: 760px) { .tr-ana-grid, .tr-stats { grid-template-columns: minmax(0, 1fr); } }
.tr-growth { margin-top: var(--s3); color: var(--ink); font-size: var(--fs-meta); }
.tr-growth strong { margin-right: 0.35rem; color: var(--tr-main); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tr-growth span { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.75rem; }
