.edition-compare {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.ecmp-breadcrumb {
  margin: 1rem 0 0;
}

.ecmp-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
}

.ecmp-breadcrumb a:hover {
  color: var(--text);
}

.ecmp-header {
  margin-bottom: 1.25rem;
}

.ecmp-editor {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.ecmp-editor > summary {
  min-height: 44px;
  padding: .75rem 1rem;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.ecmp-editor > summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.ecmp-editor .edition-compare-builder {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.ecmp-kicker,
.ecmp-label {
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ecmp-subtitle,
.ecmp-raw {
  color: var(--text-muted);
}

.ecmp-result {
  display: grid;
  gap: 1rem;
}

.ecmp-subjects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ecmp-subject {
  display: flex;
  gap: .9rem;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .9rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-sm);
}

.ecmp-subject--anchor {
  border-color: color-mix(in srgb, var(--accent-canonical) 38%, var(--border));
}

.ecmp-subject--comparison {
  border-color: color-mix(in srgb, var(--accent-recent) 38%, var(--border));
}

.ecmp-subject--unresolved {
  min-height: 112px;
}

.ecmp-subject img {
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
  background: var(--surface-2);
}

.ecmp-subject h2 {
  margin: .1rem 0 .2rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.15;
}

.ecmp-subject p {
  margin: 0;
  color: var(--text-muted);
}

.ecmp-alert,
.ecmp-empty {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
}

.ecmp-alert,
.ecmp-empty {
  padding: 1rem;
  margin-bottom: 1rem;
}

.ecmp-alert--partial {
  background: color-mix(in srgb, var(--accent-upcoming) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--accent-upcoming) 38%, var(--border));
}

@media (max-width: 767.98px) {
  .edition-compare {
    padding-inline: .9rem;
  }

  .ecmp-subjects {
    grid-template-columns: 1fr;
  }

  .ecmp-subject {
    align-items: flex-start;
  }
}

/* --- set-vs-set (two-side) results --- */
.ecmp-bars {
  display: grid;
  gap: .55rem;
}

.ecmp-bar-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
}

.ecmp-bar-label {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ecmp-side-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ecmp-side-col {
  display: grid;
  align-content: start;
  gap: .55rem;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  padding: .9rem;
}

.ecmp-side-col-title {
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
}

.ecmp-side-col-title span {
  color: var(--text-muted);
  font-weight: 600;
}

.ecmp-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.ecmp-side-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: .6rem;
  align-items: center;
}

.ecmp-side-item img {
  width: 40px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface-2);
}

.ecmp-side-item a {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.2;
  font-weight: 700;
}

.ecmp-side-item small {
  display: block;
  color: var(--text-muted);
}

.ecmp-side-counts {
  font-variant-numeric: tabular-nums;
}

.ecmp-redundancy-note {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: .2rem 0 0;
  padding: .5rem .6rem;
  color: var(--text-muted);
  font-size: .82rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

@media (max-width: 767.98px) {
  .ecmp-side-breakdown {
    grid-template-columns: 1fr;
  }
}

/* --- diff-view redesign --- */
.ecmp-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.is-anchor { --tone: var(--accent-canonical); }
.is-shared { --tone: var(--success); }
.is-comparison { --tone: var(--accent-recent); }
.is-unknown { --tone: var(--text-muted); }

.ecmp-verdict {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-canonical);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.25rem;
}

.ecmp-verdict .ecmp-kicker { color: var(--accent-canonical); }

.ecmp-verdict .say {
  margin: .35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.3;
}

.ecmp-rec {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .85rem; padding: .4rem .8rem;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: .9rem;
  color: var(--text);
  background: color-mix(in srgb, var(--accent-canonical) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent-canonical) 38%, var(--border));
}

.ecmp-rec[data-tone="neutral"] {
  background: color-mix(in srgb, var(--surface-2) 40%, transparent);
  border-color: var(--border);
}

.ecmp-covbar {
  display: flex; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ecmp-seg {
  flex-basis: 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  color: #0b0d12; font-weight: 800; font-size: .85rem;
  background: var(--tone);
}

.ecmp-legend {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: .5rem;
  color: var(--text-muted); font-size: .82rem; font-weight: 700;
}

.ecmp-legend .dot {
  display: inline-block; width: 10px; height: 10px;
  margin-right: .4rem; vertical-align: -1px;
  border-radius: 3px; background: var(--tone);
}

.ecmp-ribbon {
  display: grid; gap: .75rem; padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
}

.rib-row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr);
  gap: 1rem; align-items: center;
}

.rib-label { font-size: .9rem; }
.rib-label small { display: block; color: var(--text-muted); }

.rib-cells { display: flex; flex-wrap: wrap; gap: 3px; }

.ecmp-cell {
  width: 24px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  font-size: .62rem; font-weight: 800;
  color: #0b0d12; text-decoration: none;
  background: var(--tone);
}

.ecmp-cell:hover { outline: 2px solid var(--text); }

.ecmp-runs {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ecmp-run { border-top: 1px solid var(--border); }
.ecmp-run:first-child { border-top: 0; }

.ecmp-run-head {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: .9rem; align-items: center; width: 100%;
  padding: .85rem 1rem;
  background: none; border: 0; color: inherit;
  text-align: left; cursor: pointer; font: inherit;
}

.ecmp-run-swatch { width: 12px; height: 26px; border-radius: 4px; background: var(--tone); }
.ecmp-run-title { min-width: 0; }
.ecmp-run-meta { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-muted); }

.ecmp-run-tag {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  padding: .25rem .6rem; border-radius: var(--radius-pill);
  color: var(--text-muted);
  border: 1px solid color-mix(in srgb, var(--tone) 40%, var(--border));
}

.ecmp-run-body { margin: 0; padding: 0 1rem .6rem 2.9rem; list-style: none; }
.ecmp-run-body li { padding: .4rem 0; border-top: 1px dashed var(--border); }
.ecmp-run-body small { display: block; color: var(--text-muted); }

@media (max-width: 767.98px) {
  .rib-row { grid-template-columns: 1fr; }
}

/* --- long-tail collapse (many-series editions) --- */
.rib-row--tail { align-items: start; }
.rib-chips { gap: 6px; }

.ecmp-series-chip {
  display: inline-flex; align-items: center; gap: .4rem; max-width: 100%;
  padding: .2rem .55rem; border-radius: var(--radius-pill);
  font-size: .74rem; line-height: 1.25; color: var(--text);
  background: color-mix(in srgb, var(--tone) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tone) 38%, var(--border));
}
.ecmp-series-chip-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch;
}
.ecmp-series-chip-count { font-weight: 800; color: var(--text-muted); }

.ecmp-run--tail {
  background: color-mix(in srgb, var(--surface-2) 32%, transparent);
}
.ecmp-run--tail .ecmp-run-title small {
  display: block; margin-top: .1rem;
  color: var(--text-muted); font-size: .8rem; font-weight: 400;
}

/* nested minor runs read as children of the rollup: indented, on a recessed panel */
.ecmp-run-tail-body {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 22%, transparent);
}
.ecmp-run-tail-body .ecmp-run-head { padding-left: 2.2rem; }
.ecmp-run-tail-body .ecmp-run-body { padding-left: 4.1rem; }

/* --- view switcher + timeline/venn views --- */
.ecmp-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap;
}

.ecmp-share-btn {
  appearance: none; cursor: pointer; font: inherit;
  padding: .4rem .95rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 30%, transparent);
  color: var(--text-muted); font-weight: 700; font-size: .85rem;
  transition: color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard);
}

.ecmp-share-btn:hover { color: var(--text); border-color: var(--text-muted); }

.ecmp-share-fallback {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-muted);
}

.ecmp-share-fallback input {
  flex: 1; min-width: 220px; font: inherit;
  padding: .35rem .5rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}

.ecmp-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface-2) 30%, transparent);
}

.ecmp-switch-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  padding: .4rem .95rem; border-radius: var(--radius-pill);
  color: var(--text-muted); font-weight: 700; font-size: .85rem;
  background: none;
}

.ecmp-switch-btn.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent-canonical) 18%, var(--surface));
  box-shadow: var(--shadow-sm);
}

.ecmp-pane { display: grid; gap: 1rem; }

.ecmp-empty-note {
  color: var(--text-muted);
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* Venn */
.ecmp-venn-pane {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  justify-items: center;
}

.ecmp-venn-svg { width: 100%; max-width: 460px; height: auto; }

.ecmp-venn-content { width: 100%; max-width: 460px; min-width: 0; }

.ecmp-venn-figure { display: flex; justify-content: center; }

.ecmp-venn-circle {
  fill: var(--tone);
  fill-opacity: .28;
  stroke: var(--tone);
  stroke-width: 2;
}

.ecmp-venn-summary {
  display: grid;
  grid-template-columns: repeat(var(--venn-regions, 3), minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  text-align: center;
}

.ecmp-venn-summary > div { min-width: 0; overflow-wrap: anywhere; }

.ecmp-venn-summary dt {
  color: var(--text-muted); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em;
}

.ecmp-venn-summary .dot {
  display: inline-block; width: 10px; height: 10px;
  margin-right: .35rem; border-radius: 3px; background: var(--tone);
}

.ecmp-venn-summary dd { margin: .25rem 0 0; }

.ecmp-venn-summary strong { color: var(--text); font-weight: 800; font-size: 1.4rem; }

.ecmp-venn-side { display: block; color: var(--text-muted); font-size: .78rem; }

/* Timeline */
.ecmp-timeline {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1rem .5rem;
  display: grid; gap: .3rem;
}

/* Every lane shares one x-scale, so the undated column is reserved for all lanes
   at once (or none) rather than sized per-lane by content — otherwise a lane with
   undated issues gets a narrower track and its dots stop lining up with the lane
   above. Keep the var() fallbacks: an undefined custom property makes the whole
   grid-template-columns declaration invalid and silently collapses the lane to a
   single stacked column. */
.ecmp-timeline { --tl-undated-col: 0px; --tl-label-col: 168px; }
.ecmp-timeline.has-undated { --tl-undated-col: 104px; }

.ecmp-tl-lane {
  display: grid;
  grid-template-columns: var(--tl-label-col, 168px) minmax(0, 1fr) var(--tl-undated-col, 0px);
  gap: .8rem; align-items: center;
  padding: .35rem 0;
}

.ecmp-tl-lane.is-rollup .ecmp-tl-label span { font-style: italic; color: var(--text-muted); }

.ecmp-tl-axis {
  display: grid;
  grid-template-columns: var(--tl-label-col, 168px) minmax(0, 1fr) var(--tl-undated-col, 0px);
  gap: .8rem;
  margin-top: .25rem;
}

.ecmp-tl-axis-rail { position: relative; height: 1.1rem; }

.ecmp-tl-tick {
  position: absolute; transform: translateX(-50%);
  font-size: .7rem; color: var(--text-muted); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ecmp-tl-label { font-size: .88rem; font-weight: 600; min-width: 0; }
/* Series in a run differ by their SUFFIX ("… Turtles", "… Turtles II/III"), so a
   single-line right-ellipsis collapses every lane to the same label. Wrap to two
   lines instead and keep the volume marker visible. */
.ecmp-tl-label span {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.25;
}
.ecmp-tl-label small { display: block; color: var(--text-muted); font-weight: 400; }

.ecmp-tl-track {
  position: relative; height: 22px;
  border-bottom: 1px solid var(--border);
}

.ecmp-tl-dot {
  position: absolute; top: 4px;
  width: 13px; height: 13px; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--tone);
  border: 1.5px solid color-mix(in srgb, var(--tone) 60%, #000);
  text-decoration: none;
}
.ecmp-tl-dot:hover { outline: 2px solid var(--text); z-index: 2; }

/* GH-1069 axis breaks: the track's single baseline becomes one per segment,
   leaving a visible gap where empty years were collapsed. */
.ecmp-timeline.has-breaks .ecmp-tl-track { border-bottom: 0; }
.ecmp-tl-seg {
  position: absolute; bottom: 0; height: 0;
  border-bottom: 1px solid var(--border);
}
.ecmp-tl-tick.is-after-break { transform: none; }
.ecmp-tl-break {
  position: absolute; transform: translateX(-50%);
  font-size: .8rem; line-height: 1; color: var(--text-muted);
}

.ecmp-tl-undated {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding-left: .6rem; border-left: 1px dashed var(--border);
  position: relative; min-height: 22px;
}
.ecmp-tl-undated .ecmp-tl-dot { position: static; transform: none; }
.ecmp-tl-undated-label {
  color: var(--text-muted); font-size: .72rem; white-space: nowrap; margin-right: 2px;
}

@media (max-width: 767.98px) {
  .ecmp-tl-lane { grid-template-columns: 1fr; }
  /* Lanes collapse to a single full-width column here, so the axis has to drop
     its label/undated columns too or the ticks stop lining up with the dots. */
  .ecmp-tl-axis { grid-template-columns: 1fr; }
  .ecmp-tl-axis-spacer { display: none; }
}

/* ============================================================
   Polish pass — loading skeleton, entrances, micro-interactions
   ============================================================ */

/* --- loading skeleton (mirrors the real result layout, no shift) --- */
.ecmp-skeleton { display: grid; gap: 1rem; }

.ecmp-subject--sk {
  cursor: default;
  /* keep the anchor/comparison accent borders from the real cards */
}

.ecmp-sk-cover {
  width: 72px; aspect-ratio: 2 / 3; flex: none;
  border-radius: 4px;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--surface-2) 72%, transparent),
      color-mix(in srgb, var(--text-muted) 16%, transparent),
      color-mix(in srgb, var(--surface-2) 72%, transparent));
  background-size: 220% 100%;
  animation: cc-loading-shimmer calc(var(--motion-slow) * 4) var(--ease-standard) infinite;
}

.ecmp-sk-lines { display: grid; gap: .5rem; min-width: 0; flex: 1; }
.ecmp-sk-line--anchor-kicker { width: 6rem; }
.ecmp-sk-line--anchor-title { width: 11rem; height: 1.1rem; }
.ecmp-sk-line--anchor-meta { width: 7.5rem; }
.ecmp-sk-line--comparison-kicker { width: 6.5rem; }
.ecmp-sk-line--comparison-title { width: 10rem; height: 1.1rem; }
.ecmp-sk-line--comparison-meta { width: 8rem; }
.ecmp-sk-line--verdict-kicker { width: 7rem; }
.ecmp-sk-line--verdict-primary { width: 82%; height: 1.35rem; }
.ecmp-sk-line--verdict-secondary { width: 54%; height: 1.35rem; }

.ecmp-sk-verdict {
  display: grid; gap: .6rem;
  border: 1px solid var(--border);
  border-left: 3px solid color-mix(in srgb, var(--accent-canonical) 55%, var(--border));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.25rem;
}

/* tri-segment placeholder that pre-echoes the coverage bar */
.ecmp-sk-bar {
  position: relative; overflow: hidden;
  display: flex; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.ecmp-sk-bar > span { display: block; }
.ecmp-sk-bar > .is-anchor { flex: 3; background: color-mix(in srgb, var(--accent-canonical) 30%, var(--surface-2)); }
.ecmp-sk-bar > .is-shared { flex: 5; background: color-mix(in srgb, var(--success) 30%, var(--surface-2)); }
.ecmp-sk-bar > .is-comparison { flex: 2; background: color-mix(in srgb, var(--accent-recent) 30%, var(--surface-2)); }

.ecmp-sk-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--surface) 62%, transparent),
    transparent);
  background-size: 220% 100%;
  animation: cc-loading-shimmer calc(var(--motion-slow) * 3) var(--ease-standard) infinite;
}

.ecmp-sk-status {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0; color: var(--text-muted); font-weight: 700; font-size: .9rem;
}

.ecmp-sk-spinner {
  width: 15px; height: 15px; flex: none;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent-canonical) 22%, var(--border));
  border-top-color: var(--accent-canonical);
  animation: ecmp-spin .8s linear infinite;
}

@keyframes ecmp-spin { to { transform: rotate(360deg); } }

/* --- entrances --- */
/* the coverage bar wipes in left-to-right so it reads as "filling" */
.ecmp-covbar { animation: ecmp-bar-reveal var(--motion-slow) var(--ease-enter) both; }
@keyframes ecmp-bar-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.ecmp-seg { transition: filter var(--motion-fast) var(--ease-standard); }

/* each view pane fades in on mount and on Diff/Timeline/Venn switch */
.ecmp-pane { animation: cc-fade-in var(--motion-med) var(--ease-enter) both; }

/* --- micro-interactions --- */
.ecmp-subject:not(.ecmp-subject--sk) {
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}
.ecmp-subject:not(.ecmp-subject--sk):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 6px 18px rgba(40, 30, 10, 0.10));
}

.ecmp-subject a:focus-visible,
.ecmp-cell:focus-visible,
.ecmp-tl-dot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.ecmp-switch-btn {
  transition:
    color var(--motion-fast) var(--ease-standard),
    background var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}
.ecmp-switch-btn:not(.is-active):hover { color: var(--text); }
.ecmp-switch-btn:active { transform: translateY(1px); }
.ecmp-switch-btn:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

.ecmp-cell { transition: transform var(--motion-instant) var(--ease-standard); }
.ecmp-cell:hover { transform: translateY(-1px); }

.ecmp-run-head {
  transition: background var(--motion-fast) var(--ease-standard);
}
.ecmp-run-head:hover { background: color-mix(in srgb, var(--surface-2) 30%, transparent); }
.ecmp-run-head .bi { transition: transform var(--motion-fast) var(--ease-standard); }

/* --- responsiveness --- */
@media (max-width: 767.98px) {
  .ecmp-switch { display: flex; width: 100%; }
  .ecmp-switch-btn { flex: 1; text-align: center; }
  .ecmp-covbar, .ecmp-sk-bar { height: 30px; }
}

@media (max-width: 520px) {
  .ecmp-subject { padding: .75rem; gap: .7rem; }
  .ecmp-subject img, .ecmp-sk-cover { width: 60px; }
  .ecmp-verdict, .ecmp-sk-verdict { padding: .9rem 1rem; }
  .ecmp-legend { gap: .5rem 1rem; }
  .ecmp-run-head { gap: .6rem; padding: .8rem .85rem; }
  .ecmp-run-body { padding-left: 2rem; }
}

/* --- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .ecmp-sk-spinner { animation-duration: 1ms; }
  .ecmp-covbar, .ecmp-pane { animation: none; }
  .ecmp-covbar { clip-path: none; }
  .ecmp-subject:not(.ecmp-subject--sk):hover { transform: none; }
  .ecmp-cell:hover { transform: none; }
}

/* --- "What fills the gaps?" (Timeline) --- */
.ecmp-fill {
  display: grid; gap: 1rem;
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.ecmp-fill-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }

.ecmp-fill-btn {
  appearance: none; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem 1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  font-weight: 700; font-size: .88rem;
}

.ecmp-fill-btn:hover:not(:disabled) { border-color: var(--text-muted); }
.ecmp-fill-btn:disabled { cursor: progress; color: var(--text-muted); }
.ecmp-fill-hint { color: var(--text-muted); font-size: .82rem; }
.ecmp-fill-error { color: var(--danger); font-size: .82rem; font-weight: 700; }

.ecmp-fill-group { display: grid; gap: .5rem; }
.ecmp-fill-heading { margin: 0; font-size: 1rem; font-weight: 800; color: var(--text); }
.ecmp-fill-summary { margin: 0; color: var(--text-muted); font-size: .85rem; }

.ecmp-fill-picks { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }

.ecmp-fill-pick {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .7rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
}

.ecmp-fill-cover {
  flex: none; width: 48px; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 3px; background: var(--surface-2);
}

.ecmp-fill-body { display: grid; gap: .3rem; min-width: 0; }
.ecmp-fill-title { font-weight: 700; color: var(--link); overflow-wrap: anywhere; }

.ecmp-fill-meta {
  display: flex; flex-wrap: wrap; gap: .25rem .75rem;
  color: var(--text-muted); font-size: .8rem;
}

.ecmp-fill-adds { color: var(--text); font-weight: 700; }

.ecmp-fill-alts,
.ecmp-fill-singles {
  display: flex; flex-wrap: wrap; gap: .25rem .6rem;
  color: var(--text-muted); font-size: .8rem;
}

.ecmp-fill-issues { font-size: .8rem; color: var(--text-muted); }
.ecmp-fill-issues summary { cursor: pointer; width: fit-content; }
.ecmp-fill-issues ul { margin: .3rem 0 0; padding-left: 1.1rem; }

.ecmp-fill-strays { color: var(--text-muted); font-size: .82rem; }
.ecmp-fill-strays ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.ecmp-fill-strays li { margin-bottom: .15rem; }
