/* ════════════════════════════════════════════════════════════════════════════
   Veille concurrentielle ByLED — feuille de style

   Les couleurs de données (séries, pôles divergents, statuts) proviennent d'une
   palette validée : bandes de clarté, plancher de chroma, séparation sous
   déficience de vision des couleurs et contraste ont été vérifiés par outil dans
   les deux thèmes. Ne pas les modifier au jugé — trois teintes du thème clair
   passent sous 3:1 par construction, ce qui est admis parce que chaque
   graphique porte une légende à pastilles et une vue tableau.
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────── Jetons ─────────────────────────────────── */

:root {
  color-scheme: light;

  /* Surfaces et encres */
  --plane:          #f9f9f7;
  --surface-1:      #fcfcfb;
  --surface-2:      #f4f3f0;
  --text-primary:   #0b0b0b;
  --text-secondary: #52514e;
  --text-muted:     #898781;
  --grid:           #e1e0d9;
  --axis:           #c3c2b7;
  --border:         rgba(11, 11, 11, 0.10);
  --border-strong:  rgba(11, 11, 11, 0.16);

  /* Séries catégorielles — ordre fixe, jamais recyclé */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;

  /* Pôles divergents : froid ↔ chaud, gris neutre au centre */
  --div-cold:  #2a78d6;
  --div-warm:  #e34948;
  --div-mid:   #f0efec;

  /* Statuts — échelle réservée, toujours accompagnée d'une icône et d'un libellé */
  --status-good:     #0ca30c;
  --status-warning:  #fab219;
  --status-serious:  #ec835a;
  --status-critical: #d03b3b;
  --delta-good:      #006300;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(11, 11, 11, .04);

  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --plane:          #0d0d0d;
    --surface-1:      #1a1a19;
    --surface-2:      #232322;
    --text-primary:   #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted:     #898781;
    --grid:           #2c2c2a;
    --axis:           #383835;
    --border:         rgba(255, 255, 255, 0.10);
    --border-strong:  rgba(255, 255, 255, 0.18);

    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;

    --div-cold: #3987e5;
    --div-warm: #e66767;
    --div-mid:  #383835;

    --delta-good: #0ca30c;
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --plane:          #0d0d0d;
  --surface-1:      #1a1a19;
  --surface-2:      #232322;
  --text-primary:   #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted:     #898781;
  --grid:           #2c2c2a;
  --axis:           #383835;
  --border:         rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.18);

  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;

  --div-cold: #3987e5;
  --div-warm: #e66767;
  --div-mid:  #383835;

  --delta-good: #0ca30c;
  --shadow: none;
}

/* ────────────────────────────── Fondations ──────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--plane);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 15px; }
h2 { font-size: 14px; }
p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--series-1);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ─────────────────────────────── Barre haute ─────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar__brand { display: flex; align-items: center; gap: 12px; }

.topbar__mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--series-1);
  color: #fff;
  font-size: 15px;
}

.topbar__sub { font-size: 12px; color: var(--text-muted); }

.topbar__right { display: flex; align-items: center; gap: 12px; }

.freshness { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.freshness__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 9px;
  font-variant-numeric: tabular-nums;
}

.freshness__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-good); flex: none; }
.freshness__dot.is-stale { background: var(--status-warning); }
.freshness__dot.is-missing { background: var(--status-critical); }

/* ──────────────────────────────── Onglets ───────────────────────────────── */

.tabs {
  display: flex;
  gap: 2px;
  padding: 0 16px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 55px;
  z-index: 39;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tab:hover { color: var(--text-primary); }
.tab.is-active { color: var(--text-primary); border-bottom-color: var(--series-1); font-weight: 600; }

.tab__badge {
  font-size: 10px;
  font-weight: 600;
  min-width: 17px;
  padding: 1px 5px;
  border-radius: 100px;
  background: var(--status-critical);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tab__badge.is-neutral { background: var(--text-muted); }

/* ─────────────────────────────── Structure ──────────────────────────────── */

main { padding: 20px 24px 60px; max-width: 1520px; margin: 0 auto; }

.view { display: none; }
.view.is-active { display: block; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card--flush { padding: 0; overflow: hidden; }

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card__sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; max-width: 62ch; }

.notice {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--series-4);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  max-width: 105ch;
  line-height: 1.55;
}
.notice strong { color: var(--text-primary); }

/* ──────────────────────────── Chiffre phare ─────────────────────────────── */

.hero {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__figure { min-width: 200px; }
.hero__label { font-size: 12px; color: var(--text-muted); }

.hero__value {
  /* Chiffres proportionnels : à cette taille, tabular-nums fait « flotter »
     les nombres. */
  font-size: 54px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 4px 0 6px;
}
.hero__note { font-size: 12px; color: var(--text-secondary); max-width: 40ch; }
.hero__meter { flex: 1 1 320px; min-width: 280px; }

/* ─────────────────────────── Tuiles de synthèse ─────────────────────────── */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.tile {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.tile__label { font-size: 11.5px; color: var(--text-muted); }
.tile__value { font-size: 27px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 2px; }
.tile__unit { font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-left: 2px; }
.tile__delta { font-size: 11.5px; color: var(--text-secondary); }

/* ─────────────────────────────── Graphiques ─────────────────────────────── */

.chart-card { display: flex; flex-direction: column; }
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend__swatch--line { width: 14px; height: 2px; border-radius: 2px; }
.legend__count { color: var(--text-muted); font-variant-numeric: tabular-nums; }

.axis-note { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

.table-twin { margin-top: 4px; }
.table-twin table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table-twin th, .table-twin td { padding: 6px 8px; border-bottom: 1px solid var(--grid); text-align: left; }
.table-twin th { color: var(--text-muted); font-weight: 500; font-size: 11.5px; }
.table-twin td.num, .table-twin th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Infobulle partagée par tous les graphiques */
.viz-tip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  max-width: 280px;
}
.viz-tip__title { font-weight: 600; margin-bottom: 4px; }
.viz-tip__row { display: flex; align-items: center; gap: 7px; justify-content: space-between; }
.viz-tip__key { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.viz-tip__val { font-variant-numeric: tabular-nums; }

/* ──────────────────────────────── Filtres ──────────────────────────────── */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.field--grow { flex: 1 1 260px; }
.field--actions { flex-direction: row; gap: 8px; margin-left: auto; align-items: flex-end; }
.field label { font-size: 11px; color: var(--text-muted); }

input[type="search"], select {
  appearance: none;
  font: inherit;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  min-height: 34px;
  width: 100%;
}
select {
  padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 15px, calc(100% - 9px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.btn {
  appearance: none;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  min-height: 34px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-1); border-color: var(--text-muted); }
.btn--ghost { background: none; }
.btn--sm { font-size: 12px; padding: 4px 9px; min-height: 28px; }
.btn--primary { background: var(--series-1); border-color: var(--series-1); color: #fff; }
.btn--primary:hover { background: var(--series-1); filter: brightness(1.08); }
.btn--danger { color: var(--status-critical); border-color: var(--status-critical); }
.btn--danger:hover { background: var(--status-critical); color: #fff; }

.results-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 2px 10px;
}
.results-bar__count { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.results-bar__hint { font-size: 12px; color: var(--text-muted); }

/* ───────────────────────────────── Tables ──────────────────────────────── */

.table-scroll { overflow-x: auto; }

.grid { width: 100%; border-collapse: collapse; font-size: 13px; }

.grid thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 11.5px;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  z-index: 2;
}
.grid th.num, .grid td.num { text-align: right; font-variant-numeric: tabular-nums; }

.grid th.sortable { cursor: pointer; user-select: none; }
.grid th.sortable:hover { color: var(--text-primary); }
.grid th.sortable::after { content: ""; display: inline-block; width: 8px; }
.grid th.is-sorted-desc::after { content: " ↓"; }
.grid th.is-sorted-asc::after { content: " ↑"; }

.grid tbody td { padding: 9px 12px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.grid tbody tr { cursor: pointer; }
.grid tbody tr:hover { background: var(--surface-2); }
.grid tbody tr:last-child td { border-bottom: 0; }

.cell-ref { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.cell-name { min-width: 260px; max-width: 460px; }
.cell-name__title { font-weight: 500; }
.cell-name__specs { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.cell-muted { color: var(--text-muted); }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-secondary);
}
.pager__buttons { display: flex; gap: 8px; }

/* ────────────────────────── Marqueurs et pastilles ─────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid transparent;
  white-space: nowrap;
}
/* Le sens est porté par le libellé autant que par la couleur. */
.pill--cold  { color: var(--div-cold); border-color: color-mix(in srgb, var(--div-cold) 35%, transparent); background: color-mix(in srgb, var(--div-cold) 9%, transparent); }
.pill--warm  { color: var(--div-warm); border-color: color-mix(in srgb, var(--div-warm) 35%, transparent); background: color-mix(in srgb, var(--div-warm) 9%, transparent); }
.pill--mid   { color: var(--text-secondary); border-color: var(--border-strong); background: var(--surface-2); }
.pill--muted { color: var(--text-muted); border-color: var(--border); }

.delta { font-variant-numeric: tabular-nums; font-weight: 500; }
.delta--warm { color: var(--div-warm); }
.delta--cold { color: var(--div-cold); }
.delta--flat { color: var(--text-secondary); }

.rank { font-variant-numeric: tabular-nums; }
.rank--first { font-weight: 600; color: var(--div-cold); }
.rank--last { color: var(--div-warm); }

/* ────────────────────────────── Palmarès ───────────────────────────────── */

.ranklist { display: flex; flex-direction: column; }
.ranklist__row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--grid);
  cursor: pointer;
}
.ranklist__row:last-child { border-bottom: 0; }
.ranklist__row:hover { background: var(--surface-2); }
.ranklist__delta { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ranklist__name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranklist__meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.ranklist__price { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ─────────────────────────────── Alertes ───────────────────────────────── */

.alerts { display: flex; flex-direction: column; gap: 8px; }
.alerts--full { gap: 8px; }

.alert {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 11px 13px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--radius-sm);
}
.alert--haute { border-left-color: var(--status-critical); }
.alert--moyenne { border-left-color: var(--status-serious); }
.alert--basse { border-left-color: var(--axis); }

.alert__icon { font-size: 14px; line-height: 1.4; text-align: center; }
.alert--haute .alert__icon { color: var(--status-critical); }
.alert--moyenne .alert__icon { color: var(--status-serious); }
.alert--basse .alert__icon { color: var(--text-muted); }

.alert__product { font-weight: 500; font-size: 13px; }
.alert__message { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.alert__meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.alert__actions { display: flex; gap: 6px; align-items: center; }

/* ────────────────────────── Appariements à valider ─────────────────────── */

.pending { display: flex; flex-direction: column; gap: 12px; }

.pending__card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.pending__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pending__score { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pending__pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
.pending__side { min-width: 0; }
.pending__who { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.pending__title { font-size: 13px; font-weight: 500; }
.pending__specs { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.pending__price { font-size: 15px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pending__vs { color: var(--text-muted); font-size: 12px; padding-top: 20px; }
.pending__reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.pending__reason { font-size: 11px; color: var(--text-secondary); background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px; padding: 2px 8px; }
.pending__actions { display: flex; gap: 8px; margin-top: 12px; }

/* ───────────────────────────── Panneau latéral ─────────────────────────── */

.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(11, 11, 11, .34); }

.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(680px, 100%);
  background: var(--plane);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}
.drawer__body { overflow-y: auto; padding: 16px 18px 40px; }

.detail__title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.detail__meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.detail__specs { font-size: 12.5px; color: var(--text-secondary); margin-top: 8px; }

.detail__prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; margin: 14px 0; }
.detail__price { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; }
.detail__price-label { font-size: 11px; color: var(--text-muted); }
.detail__price-value { font-size: 17px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }

.detail__section { margin-top: 20px; }
.detail__section h3 { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }

.rival {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--grid);
}
.rival:last-child { border-bottom: 0; }
.rival__site { font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rival__name { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.rival__specs { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.rival__right { text-align: right; white-space: nowrap; }
.rival__price { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rival__reasons { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.features { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.features td { padding: 5px 8px; border-bottom: 1px solid var(--grid); vertical-align: top; }
.features td:first-child { color: var(--text-muted); width: 46%; }

.empty { padding: 26px 4px; text-align: center; color: var(--text-muted); font-size: 13px; }
.empty__hint { font-size: 12px; margin-top: 6px; }
.empty code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 11.5px; }

/* ─────────────────────────────── Notification ──────────────────────────── */

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--plane);
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 100px;
  z-index: 70;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.is-loading { opacity: .55; transition: opacity .15s; }

/* ──────────────────────────────── Mobile ───────────────────────────────── */

@media (max-width: 720px) {
  main { padding: 14px 12px 48px; }
  .topbar { padding: 10px 14px; }
  .tabs { top: 53px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero__value { font-size: 42px; }
  .field--actions { margin-left: 0; width: 100%; }
  .pending__pair { grid-template-columns: 1fr; }
  .pending__vs { padding-top: 0; }
  .freshness { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
