body.comp .nav-actions #back-variations {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  height: 36px;
}
body.comp .hero { min-height: 0; padding: 2.2rem 1.25rem 0.6rem; }
body.comp .launch-title h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; color: var(--fg); }
body.comp .hero-sub { max-width: 40rem; }
body.comp .band { padding: 1rem 1.25rem 2.2rem; }
body.comp .inner { max-width: 1080px; margin: 0 auto; }
body.comp .fund-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.9rem; }
body.comp .fund-btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--blue) 12%, var(--bg-elev));
  color: var(--fg);
  border: 1px solid var(--blue);
}
body.comp .controls {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem;
  align-items: flex-end;
}
body.comp .controls .field { flex: 1 1 11rem; max-width: 16rem; }
body.comp .controls select { width: 100%; min-height: 44px; }
body.comp .pair { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: flex-end; }
body.comp .field label {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute); font-weight: 700; display: block; margin-bottom: 0.25rem;
}
body.comp select {
  background: var(--bg-elev); color: var(--fg); border: 1px solid var(--line);
  border-radius: 4px; padding: 0.48rem 0.6rem; min-width: 11.5rem; font: inherit;
}
body.comp .filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
body.comp .filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
body.comp #range-help { margin-top: 0.55rem; }
body.comp #range-help strong { color: var(--fg); font-weight: 800; }
body.comp .specs {
  margin-top: 1rem; border: 1px solid var(--line); border-radius: 4px; max-width: none;
}
body.comp .spec-val.err { color: var(--err); }
body.comp .spec-val.small { font-size: clamp(1rem, 2vw, 1.35rem); }
body.comp .note { margin-top: 0.85rem; color: var(--mute); font-size: 0.92rem; max-width: 48rem; }
body.comp .note a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
body.comp .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }
body.comp .card {
  border: 1px solid var(--line); border-left-width: 3px; border-radius: 4px;
  padding: 0.9rem 1rem; background: var(--bg);
}
body.comp .card.add { border-left-color: var(--ok); }
body.comp .card.drop { border-left-color: var(--err); }
body.comp .card .k { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
body.comp .card.add .k { color: var(--ok); }
body.comp .card.drop .k { color: var(--err); }
body.comp .card h3 { font-size: 1.25rem; letter-spacing: -0.03em; margin: 0.15rem 0; }
body.comp .card h3 span { color: var(--mute); font-weight: 600; font-size: 0.92rem; margin-left: 0.35rem; }
body.comp .card p { color: var(--soft); font-size: 0.92rem; }
body.comp .section-h {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap; margin: 1.2rem 0 0.75rem;
}
body.comp .section-h h2 { font-size: 1.3rem; letter-spacing: -0.03em; }
body.comp .bars { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
body.comp .bar-row { display: grid; grid-template-columns: 4.4rem 1fr 5.4rem; gap: 0.65rem; align-items: center; }
body.comp .bar-row .tk { font-weight: 800; letter-spacing: -0.02em; }
body.comp .track { height: 8px; background: var(--bg-soft); border-radius: 99px; position: relative; overflow: hidden; }
body.comp .track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
body.comp .track i.pos { left: 50%; background: var(--ok); }
body.comp .track i.neg { right: 50%; background: var(--err); }
body.comp .bar-row .d { text-align: right; font-weight: 700; font-size: 0.88rem; }
body.comp .bar-row .d.pos, body.comp td.pos { color: var(--ok); }
body.comp .bar-row .d.neg, body.comp td.neg { color: var(--err); }
body.comp .caption { color: var(--mute); font-size: 0.78rem; margin: 0 0 0.7rem; }
body.comp .table-wrap { overflow-x: auto; }
body.comp table.comp-table {
  width: 100%; border-collapse: collapse; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
body.comp table.comp-table th {
  text-align: left; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute); font-weight: 700; padding: 0.7rem 0.85rem; background: var(--bg-soft);
}
body.comp table.comp-table td { padding: 0.68rem 0.85rem; border-top: 1px solid var(--line); }
body.comp td.num, body.comp th.num { text-align: right; }
body.comp table.comp-table.single th:nth-child(n+4),
body.comp table.comp-table.single td:nth-child(n+4) { display: none; }
body.comp tbody tr[data-key] { cursor: pointer; }
body.comp tbody tr[data-key]:hover { background: var(--bg-soft); }
body.comp tr.add { box-shadow: inset 3px 0 0 var(--ok); }
body.comp tr.drop { box-shadow: inset 3px 0 0 var(--err); }
body.comp tr.detail td { color: var(--soft); background: color-mix(in srgb, var(--blue) 7%, var(--bg-elev)); cursor: default; }
body.comp .tk { font-weight: 800; letter-spacing: -0.02em; }
body.comp .nm { color: var(--soft); }
body.comp .pill {
  display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; border-radius: 99px; padding: 0.15rem 0.45rem;
}
body.comp .pill.add { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
body.comp .pill.drop { color: var(--err); background: color-mix(in srgb, var(--err) 14%, transparent); }
body.comp .pill.flat { color: var(--mute); background: var(--bg-soft); }
body.comp .help h2,
body.comp .band.alt h2 { font-size: 1.3rem; letter-spacing: -0.03em; margin-bottom: 0.7rem; }
body.comp .help p { max-width: 40rem; color: var(--soft); }
body.comp .help ol { margin: 0.85rem 0 0.85rem 1.15rem; max-width: 40rem; display: flex; flex-direction: column; gap: 0.4rem; color: var(--soft); }
body.comp .help li { padding-left: 0.15rem; }
body.comp .sources { display: flex; flex-direction: column; gap: 0.45rem; color: var(--soft); }
body.comp .sources a { color: var(--blue); font-weight: 700; }
@media (max-width: 900px) {
  body.comp .nav-links { display: flex; flex-wrap: wrap; gap: 0.65rem; }
  body.comp .nav-brand span { display: none; }
  body.comp .cards, body.comp .specs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body.comp .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body.comp .nav-actions #back-variations {
    display: inline-flex;
    height: 32px;
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }
}
