:root {
  color-scheme: light;
  --bg: #faf6f3;
  --surface: #fffdfb;
  --line: #e9dcd7;
  --text: #45332f;
  --muted: #76645e;
  --brown: #75483d;
  --brown-deep: #54362f;
  --pink: #b64b71;
  --blush: #f9e7eb;
  --chart-gain: #327a56;
  --chart-loss: #bb4b67;
  --chart-flat: #75483d;
  --chart-grid: #eadbd8;
  --shadow: 0 18px 48px #71504416;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); margin: 0; min-width: 320px; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.shell {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  max-width: 1800px;
  margin: auto;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fffaf7;
  border-right: 1px solid var(--line);
  padding: 30px 17px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  letter-spacing: .18em;
  font-weight: 800;
  padding: 0 9px;
  white-space: nowrap;
  color: var(--brown-deep);
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ca92a1;
  border-radius: 11px;
  background: var(--blush);
  color: var(--brown);
  font-size: 26px;
  line-height: 1;
}
.brand-secondary { font-size: 11px; color: var(--pink); letter-spacing: .13em; }
.sidebar-heading, .tiny, .eyebrow {
  font-size: 10px;
  letter-spacing: .19em;
  font-weight: 800;
  color: var(--brown);
}
.sidebar-heading { display: flex; justify-content: space-between; padding: 0 10px; }
.sidebar-heading span:last-child { color: var(--pink); }
.search-label { position: absolute; left: -9999px; }
.sidebar input {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid #e2d3cc;
  border-radius: 10px;
  outline: 0;
  padding: 12px 13px;
  font-size: 12px;
}
.sidebar input:focus, button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.sidebar input::placeholder { color: #85746e; }
.strategy-list {
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 3px;
}
.strategy-group {
  margin: 19px 10px 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.strategy-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--brown-deep);
  border-radius: 10px;
  width: 100%;
  text-align: left;
  padding: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  transition: background .18s, border-color .18s;
}
.strategy-button:hover { background: #f8edea; }
.strategy-button.active {
  background: #f8e3e8;
  border-color: #dfb5be;
  color: #58363d;
}
.strategy-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #f1e1db;
  color: var(--brown);
  font-size: 14px;
}
.strategy-button.active .strategy-icon { background: #db9db0; color: #fff; }
.strategy-button small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px 8px 0;
  font-size: 11px;
  color: var(--brown);
  line-height: 1.8;
}
.sidebar-footer small { color: var(--muted); }
.pulse, .hero-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--pink);
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 0 4px #f7dfe6;
}
.main { min-width: 0; padding: 0 clamp(22px, 4.2vw, 78px) 30px; }
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  color: var(--brown);
}
.topbar-right { font-weight: 500; letter-spacing: 0; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.theme-toggle { flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 11px; font-weight: 700; letter-spacing: 0; cursor: pointer; }
.theme-toggle:hover { border-color: var(--pink); }
.slash { color: var(--pink); margin: 0 6px; }
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  padding: 52px 44px;
  margin-top: 31px;
  border-radius: 17px;
  border: 1px solid #e4c6c9;
  background: radial-gradient(circle at 87% 18%, #f3cdd9 0%, transparent 45%),
              linear-gradient(120deg, #fff8f3, #f9ece7 60%, #f4dfe6);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .37;
  background-image: linear-gradient(90deg, #c9a7a351 1px, transparent 1px),
                    linear-gradient(#c9a7a351 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 25%, black);
}
.hero-copy, .hero-reference { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--pink); margin: 0 0 20px; }
.eyebrow-rule { display: inline-block; width: 37px; border-top: 1px solid #c88699; vertical-align: middle; margin: 0 11px; }
.hero h1 { font-size: clamp(37px, 5.5vw, 73px); letter-spacing: -.065em; line-height: 1.02; margin: 0 0 19px; font-weight: 780; color: var(--brown-deep); }
.hero h1 em { color: var(--pink); font-family: Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -.07em; }
.hero-subtitle { font-size: 14px; line-height: 1.75; max-width: 510px; color: #66514b; margin: 0; }
.hero-reference {
  min-width: 224px;
  background: #fffdfbe8;
  border: 1px solid #dfc5bd;
  padding: 22px 23px;
  border-radius: 13px;
  box-shadow: 0 12px 30px #8f646022;
}
.hero-reference strong, .stat-card strong { display: block; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.hero-reference strong { font-size: 39px; margin: 12px 0 7px; color: var(--brown-deep); }
.hero-reference strong small, .stat-card strong small { font-size: .36em; font-weight: 600; letter-spacing: 0; color: var(--pink); }
.hero-reference > span:last-child, .stat-card > span:last-child { font-size: 10px; color: var(--muted); }
.warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 19px;
  margin: 17px 0 44px;
  background: #fff3f0;
  border: 1px solid #e9c9bb;
  border-radius: 10px;
}
.warning > span { display: grid; place-items: center; flex: none; width: 19px; height: 19px; border: 1px solid #9c5c49; border-radius: 50%; color: #864637; font-size: 11px; font-weight: 800; }
.warning p { margin: 0; color: #734839; line-height: 1.65; font-size: 12px; }
.workspace { max-width: 1300px; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow.muted { color: var(--brown); margin: 0 0 12px; }
.section-top h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.14; letter-spacing: -.045em; margin: 0; }
.status-pill { white-space: nowrap; font-size: 11px; font-weight: 750; color: #6c3850; background: var(--blush); border: 1px solid #ddb1c1; border-radius: 30px; padding: 9px 13px; }
.status-pill.off { color: #795246; background: #f7ece6; border-color: #d9c0b5; }
.description { color: #6d5b54; line-height: 1.75; font-size: 14px; margin: 13px 0 29px; max-width: 780px; }
.market-heading { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 21px; }
.market-list { display: flex; gap: 7px; flex-wrap: wrap; }
.market-list button, .tabs button { background: #fff; color: var(--brown); border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; font-size: 11px; font-weight: 750; cursor: pointer; }
.market-list button:hover, .tabs button:hover { border-color: var(--pink); background: #fff7f9; }
.market-list button.active, .tabs button.active { background: var(--brown); color: #fff; border-color: var(--brown); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.stat-card { min-height: 137px; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 23px; box-shadow: 0 5px 17px #77564b0b; }
.stat-card.feature { background: #fff0f3; border-color: #e9c0cb; }
.stat-card strong { font-size: clamp(23px, 2.6vw, 35px); margin: 20px 0 8px; color: var(--brown-deep); }
.stat-card.feature strong { color: #8d3857; }
.context-note, .panel-note { font-size: 11px; color: var(--muted); line-height: 1.65; }
.context-note { margin: 14px 1px 30px; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; margin-bottom: 17px; overflow: hidden; box-shadow: 0 5px 19px #77564b0a; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 22px 25px 18px; border-bottom: 1px solid var(--line); }
.panel h3 { font-size: 17px; letter-spacing: -.02em; margin: 7px 0 0; font-weight: 690; }
.panel-kicker { font-size: 10px; color: var(--muted); text-align: right; line-height: 1.5; }
.panel-note { padding: 0 25px; margin: 18px 0; }
.chart { min-height: 185px; display: flex; align-items: center; justify-content: center; padding: 15px 24px 5px; }
.chart svg { display: block; width: 100%; height: 180px; overflow: visible; }
.chart-grid { stroke: var(--chart-grid); stroke-dasharray: 4 7; }
.chart-axis { stroke: var(--muted); stroke-width: 1; opacity: .7; }
.chart-reference { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 6; opacity: .7; }
.chart-reference-label { fill: var(--text); font-size: 11px; font-weight: 700; }
.chart-curve { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-curve.gain, .chart-point.gain { stroke: var(--chart-gain); }
.chart-curve.loss, .chart-point.loss { stroke: var(--chart-loss); }
.chart-curve.flat, .chart-point.flat { stroke: var(--chart-flat); }
.chart-point { fill: var(--surface); stroke-width: 2.5; }
.chart-stop.gain { stop-color: var(--chart-gain); }
.chart-stop.loss { stop-color: var(--chart-loss); }
.chart-stop.flat { stop-color: var(--chart-flat); }
.chart-stop { stop-opacity: .3; }
.chart-stop.fade { stop-opacity: 0; }
.chart-empty { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.chart-foot { display: flex; justify-content: space-between; gap: 15px; padding: 0 28px; color: var(--muted); font-size: 10px; }
.tabs { display: flex; gap: 4px; }
.tabs button { padding: 8px 10px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; text-align: left; }
th { color: #735b52; font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: 14px 24px; background: #f8f0ed; }
td { padding: 16px 24px; border-bottom: 1px solid #f0e6e2; color: var(--text); vertical-align: top; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcf3f4; }
td.wrap { white-space: normal; min-width: 160px; max-width: 420px; line-height: 1.55; }
.positive { color: #326c4e; }
.negative { color: #ae4260; }
.dim { color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 35px 0 10px; color: var(--muted); font-size: 10px; letter-spacing: .08em; border-top: 1px solid var(--line); margin-top: 34px; }

.overview { margin-bottom: 54px; }
.overview-heading, .overview-strategy-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.overview-heading h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; margin: 10px 0 0; }
.overview-heading .eyebrow { margin: 0; }
.overview-count { color: var(--brown); font-size: 11px; font-weight: 700; white-space: nowrap; }
.overview-intro { max-width: 770px; color: var(--muted); font-size: 13px; line-height: 1.7; margin: 14px 0 35px; }
.overview-strategy { scroll-margin-top: 18px; margin-bottom: 39px; }
.overview-strategy-head { margin-bottom: 14px; }
.overview-strategy-head .eyebrow { margin: 0 0 8px; }
.overview-strategy-head h3 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.overview-details-link {
  flex: none;
  border: 1px solid #dfbdc0;
  border-radius: 8px;
  background: #fff8fa;
  color: var(--brown);
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.overview-details-link:hover { background: var(--blush); border-color: var(--pink); }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.overview-card { min-width: 0; padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 19px #77564b0a; }
.overview-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.overview-card h4 { font-size: 15px; margin: 0; color: var(--brown-deep); }
.overview-badge { font-size: 9px; letter-spacing: .1em; font-weight: 800; color: var(--pink); }
.overview-card-note { min-height: 34px; font-size: 11px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.overview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 15px; }
.overview-metric { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-variant-numeric: tabular-nums; }
.overview-metric span, .overview-metric small { display: block; color: var(--muted); font-size: 9px; line-height: 1.4; }
.overview-metric span { font-weight: 800; letter-spacing: .08em; }
.overview-metric strong { display: block; margin: 5px 0 2px; font-size: 14px; overflow-wrap: anywhere; }
.overview-metric.gain strong { color: var(--chart-gain); }
.overview-metric.loss strong { color: var(--chart-loss); }
.overview-history-note { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.overview-window-list { display: grid; gap: 5px; margin-top: 15px; }
.overview-window-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 11px; font-variant-numeric: tabular-nums; }
.overview-window-name { flex: 1 1 100px; color: var(--text); overflow-wrap: anywhere; }
.overview-window-balance { color: var(--muted); }
.overview-window-change { margin-left: auto; white-space: nowrap; }
.overview-window-change.gain { color: var(--chart-gain); }
.overview-window-change.loss { color: var(--chart-loss); }
.overview-chart { min-height: 160px; padding: 10px 2px 0; }
.overview-chart svg { height: 155px; }
.overview-foot { padding: 5px 2px 0; line-height: 1.5; }
.overview-no-data { min-height: 116px; }
.overview-empty-start { color: var(--brown); font-size: 14px; }
.overview-no-data .chart-empty { margin: 14px 0 0; text-align: left; }
.workspace { scroll-margin-top: 20px; border-top: 1px solid var(--line); padding-top: 35px; }

@media (max-width: 1060px) {
  .shell { grid-template-columns: 235px minmax(0, 1fr); }
  .hero { padding: 38px 30px; }
  .hero-reference { min-width: 178px; }
  .hero-reference strong { font-size: 29px; }
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 16px 18px 14px; border-right: 0; border-bottom: 1px solid var(--line); gap: 13px; }
  .brand { font-size: 16px; }
  .sidebar-heading, .sidebar-footer { display: none; }
  .strategy-list { flex-direction: row; overflow-x: auto; max-height: none; padding: 0 0 6px; }
  .strategy-group { display: none; }
  .strategy-button { min-width: 147px; max-width: 180px; flex: none; }
  .main { padding: 0 19px 20px; }
  .topbar { min-height: 53px; }
  .hero { margin-top: 18px; }
  .stat-card { padding: 16px; min-height: 114px; }
  .stat-card strong { margin: 14px 0 6px; }
  .panel-head { padding: 17px; }
  .panel-note { padding: 0 17px; }
  th, td { padding: 13px 17px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topbar-left, .topbar-right { font-size: 9px; }
  .topbar-left { display: none; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .hero { display: block; padding: 30px 23px; }
  .hero-reference { margin-top: 25px; max-width: 250px; }
  .hero h1 { font-size: 42px; }
  .warning { margin-bottom: 30px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { min-height: 102px; }
  .stat-card:first-child { grid-column: span 2; min-height: 95px; }
  .stat-card strong { font-size: 25px; }
  .section-top { align-items: flex-start; }
  .section-top h2 { font-size: 29px; }
  .status-pill { padding: 6px 8px; font-size: 9px; }
  .panel-head { align-items: flex-start; flex-wrap: wrap; }
  .panel-kicker { text-align: left; }
  .footer { display: block; line-height: 1.8; }
  .chart { padding: 14px 10px 4px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-heading { align-items: flex-start; flex-wrap: wrap; }
  .overview-strategy-head { align-items: flex-start; }
  .overview-details-link { max-width: 128px; white-space: normal; text-align: left; }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-metric:last-child { grid-column: span 2; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #091218;
  --surface: #111d23;
  --line: #26363b;
  --text: #edf6ef;
  --muted: #adbfbb;
  --brown: #baf3ca;
  --brown-deep: #edf6ef;
  --pink: #baf3ca;
  --blush: #214036;
  --chart-gain: #a3e9b4;
  --chart-loss: #ee9a92;
  --chart-flat: #baf3ca;
  --chart-grid: #30443f;
  --shadow: 0 22px 58px #030c1080;
}
:root[data-theme="dark"] .sidebar { background: #0d191e; }
:root[data-theme="dark"] .brand-icon { background: #1c3130; color: #baf3ca; border-color: #6fb89d; }
:root[data-theme="dark"] .sidebar input { background: #16252a; border-color: #2d4243; }
:root[data-theme="dark"] .sidebar input::placeholder { color: #a8bcb4; }
:root[data-theme="dark"] .strategy-button:hover { background: #182c2c; }
:root[data-theme="dark"] .strategy-button.active { background: linear-gradient(100deg, #244238, #1b302f); border-color: #547e64; color: #edf6ef; }
:root[data-theme="dark"] .strategy-icon { background: #263c3c; color: #baf3ca; }
:root[data-theme="dark"] .strategy-button.active .strategy-icon { background: #8bceb0; color: #0c2217; }
:root[data-theme="dark"] .pulse, :root[data-theme="dark"] .hero-dot { box-shadow: 0 0 12px #a2f3b5; }
:root[data-theme="dark"] .hero { border-color: #31544a; background: radial-gradient(circle at 88% 23%, #4b8c6d35, transparent 40%), linear-gradient(125deg, #192d2c, #152426 64%, #0e1c20); }
:root[data-theme="dark"] .hero::after { background-image: linear-gradient(90deg, #74bfa51e 1px, transparent 1px), linear-gradient(#74bfa51e 1px, transparent 1px); }
:root[data-theme="dark"] .hero-subtitle { color: #bfd0c6; }
:root[data-theme="dark"] .hero-reference { background: #08171290; border-color: #638f7852; box-shadow: inset 0 1px #aad4af24; }
:root[data-theme="dark"] .warning { background: #efaa7610; border-color: #eab2864b; }
:root[data-theme="dark"] .warning > span { color: #f4ab80; border-color: #e8a77d; }
:root[data-theme="dark"] .warning p { color: #dabfa9; }
:root[data-theme="dark"] .status-pill { color: #b2e5c0; background: #214036; border-color: #477e61; }
:root[data-theme="dark"] .status-pill.off { color: #d1bbb0; background: #352c27; border-color: #745b4a; }
:root[data-theme="dark"] .description { color: #afc3b9; }
:root[data-theme="dark"] .market-list button, :root[data-theme="dark"] .tabs button { background: #152329; color: #c2d3ca; }
:root[data-theme="dark"] .market-list button:hover, :root[data-theme="dark"] .tabs button:hover { background: #214036; }
:root[data-theme="dark"] .market-list button.active, :root[data-theme="dark"] .tabs button.active { background: #b9e9c2; color: #14201c; border-color: #b9e9c2; }
:root[data-theme="dark"] .stat-card { background: linear-gradient(145deg, #152329, #101d22); border-color: #2b3d40; box-shadow: none; }
:root[data-theme="dark"] .stat-card.feature { background: linear-gradient(145deg, #19362f, #182a29); border-color: #527d65; }
:root[data-theme="dark"] .stat-card.feature strong { color: #baf3ca; }
:root[data-theme="dark"] .panel, :root[data-theme="dark"] .overview-card { border-color: #2a3d3e; box-shadow: none; }
:root[data-theme="dark"] th { background: #152329; color: #afc3b9; }
:root[data-theme="dark"] td { border-bottom-color: #263638; }
:root[data-theme="dark"] tbody tr:hover { background: #1a2b2c; }
:root[data-theme="dark"] .overview-details-link { background: #172a29; color: #baf3ca; border-color: #547e64; }
:root[data-theme="dark"] .overview-details-link:hover { background: #254137; }
:root[data-theme="dark"] .overview-metric { background: #152329; }
:root[data-theme="dark"] .positive { color: #a3e9b4; }
:root[data-theme="dark"] .negative { color: #ee9a92; }

/* Overview: one wide, clickable chart per row, matching the supplied sketch. */
.overview { margin: 27px 0 54px; }
.overview-intro { margin: 11px 0 15px; }
.overview .warning { margin: 0 0 33px; }
.overview-strategy { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.overview-strategy-description { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.overview-grid { grid-template-columns: 1fr; }
.overview-card { padding: 20px 24px; }
.overview-card h4 { font-size: 19px; }
.overview-card-note { min-height: 0; margin: 7px 0 6px; }
.overview-chart-button { width: 100%; height: clamp(220px, 29vw, 350px); min-height: 0; padding: 10px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; text-align: center; }
.overview-chart-button:hover { background: color-mix(in srgb, var(--chart-gain) 5%, transparent); }
.overview-chart-button svg { height: 100%; pointer-events: none; }
.overview-chart-button .chart-empty { margin: auto; }
.overview-foot { padding: 0 7px; }
.overview-open-hint { margin: 10px 7px 0; color: var(--brown); font-size: 11px; font-weight: 700; }
.overview-expanded { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 17px; }
.overview-expanded .overview-details-link { margin-top: 15px; }
.overview-expanded .overview-metrics { margin: 0 0 18px; }
.overview-detail-title { margin: 12px 0; font-size: 14px; }
.overview-operation-list { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.overview-no-data { min-height: 116px; }
.overview-no-data .overview-details-link { margin-top: 12px; }

@media (max-width: 560px) {
  .overview-card { padding: 16px 13px; }
  .overview-chart-button { height: 220px; padding: 8px 0; }
  .overview-strategy-head h3 { font-size: 20px; }
  .overview-card h4 { font-size: 16px; }
}

/* Separate compact plots for currently running paper markets only. */
.overview-market { margin: 15px 0 24px; }
.overview-market-title { margin: 0 0 11px; font-size: 14px; font-weight: 750; color: var(--brown); }
.overview-market .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.overview-market .overview-card { padding: 14px 16px; }
.overview-market .overview-card h4 { font-size: 15px; }
.overview-market .overview-chart-button { height: clamp(160px, 19vw, 220px); }
.overview-market .overview-chart-button svg { height: 100%; }
.overview-market .overview-open-hint { margin-top: 7px; }
.overview-market .overview-foot { flex-wrap: wrap; }
@media (max-width: 900px) {
  .overview-market .overview-grid { grid-template-columns: 1fr; }
  .overview-market .overview-chart-button { height: 190px; }
}

/* Exchange-style axes and close-result histogram, not fabricated OHLC candles. */
.overview-chart-button { background: #fafaf9; border: 1px solid var(--line); }
.overview-chart-button .chart-grid { stroke-dasharray: none; stroke-width: .8; }
.overview-chart-button .chart-axis { opacity: .4; }
.chart-axis-label { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.chart-delta.gain { fill: var(--chart-gain); opacity: .7; }
.chart-delta.loss { fill: var(--chart-loss); opacity: .7; }
.chart-wick.gain { stroke: var(--chart-gain); stroke-width: 1.5; }
.chart-wick.loss { stroke: var(--chart-loss); stroke-width: 1.5; }
.chart-candle.gain { fill: var(--chart-gain); }
.chart-candle.loss { fill: var(--chart-loss); }
.overview-source-time { margin: 2px 0 3px; color: var(--muted); font-size: 10px; }
.overview-source-time.stale { color: var(--chart-loss); }
.leaderboard-header { margin: 25px 0 33px; }
.leaderboard-header > .eyebrow { margin: 0 0 8px; }
.leaderboard-header h1 { font-size: clamp(23px, 3vw, 36px); line-height: 1.15; letter-spacing: -.04em; margin: 0 0 9px; }
.leaderboard-header > p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.leaderboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.leaderboard-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.leaderboard-panel h2 { font-size: 15px; margin: 0; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.leaderboard-panel td, .leaderboard-panel th { padding: 10px 17px; }
.leaderboard-panel td:last-child { text-align: right; font-weight: 750; white-space: nowrap; }
.leaderboard-context { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; font-weight: 400; }
.leaderboard-header .leaderboard-disclaimer { margin: 10px 0 0; font-size: 10px; }
@media (max-width: 700px) { .leaderboard-grid { grid-template-columns: 1fr; } }
.observation-card .overview-badge { color: var(--muted); }
.observation-plot { height: 132px; margin: 12px 0; background: color-mix(in srgb, var(--chart-grid) 16%, var(--surface)); border: 1px solid var(--line); border-radius: 7px; }
.observation-plot svg { width: 100%; height: 100%; display: block; }
.observation-curve { fill: none; stroke: var(--chart-gain); stroke-width: 2; stroke-linejoin: round; }
.observation-point { fill: var(--chart-gain); }
[hidden] { display: none !important; }
.overview-chart-button .chart-stop { stop-opacity: .17; }
.overview-chart-button .chart-stop.fade { stop-opacity: 0; }
:root[data-theme="dark"] .overview-chart-button { background: #101116; border-color: #25292f; }
