/* Barbell Macro Backtester — Static Space. Clean, product-like, no gradients. */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a2332;
  background: #faf7f2;
  line-height: 1.55;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.topbar { background: #0b1b33; color: #fff; padding: 32px 0 28px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #ffb08a; margin-bottom: 8px; }
h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.subtitle { margin: 0; color: #c9d2de; font-size: 16px; max-width: 560px; }
.badges { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; justify-content: center; }
.badge { display: inline-block; background: #1d3355; color: #fff; border: 1px solid #33507e; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.badge-warn { background: #ff5a1f; border-color: #ff5a1f; color: #fff; }
main { padding: 24px 0 48px; }
.notice { background: #fff3e8; border: 1px solid #f0c9a8; border-left: 4px solid #ff5a1f; border-radius: 8px; padding: 14px 18px; margin-bottom: 24px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.card { background: #fff; border: 1px solid #e3ddd2; border-radius: 8px; padding: 16px 18px; }
.card-label { font-size: 13px; color: #5c6675; margin-bottom: 4px; }
.card-value { font-size: 26px; font-weight: 700; color: #0b1b33; }
.card-sub { font-size: 13px; color: #5c6675; margin-top: 2px; }
.panel { background: #fff; border: 1px solid #e3ddd2; border-radius: 8px; padding: 20px 22px; margin-bottom: 20px; }
.panel h2 { margin: 0 0 6px; font-size: 20px; color: #0b1b33; }
.muted { color: #5c6675; }
.small { font-size: 13px; }
#chart svg { width: 100%; height: auto; display: block; }
#chart .grid { stroke: #e8e2d6; stroke-width: 1; }
#chart .axis { font-size: 11px; fill: #5c6675; font-family: inherit; }
.legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; }
.sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.sw-portfolio { background: #0b1b33; }
.sw-benchmark { background: #8a94a6; }
.sw-shield { background: #2e7d5b; }
.sw-spear { background: #ff5a1f; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eee7db; }
th { color: #5c6675; font-weight: 600; font-size: 13px; }
td.pos { color: #2e7d5b; font-weight: 600; }
td.neg { color: #b3261e; font-weight: 600; }
ul { padding-left: 20px; }
li { margin-bottom: 8px; }
.links a { color: #0b4fa8; }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 24px; }
  .panel { padding: 16px; }
}
