/* Raport asystenta o zawodniku (src/ui/assistantReportView.js). Telefon najpierw, tokeny z tokens.css.
   Kolory znaczeniowe jak na ekranie Trening: zielony dobrze, bursztyn uwaga, czerwony źle, niebieski informacja,
   fiolet ocena ukryta i rozwój. Karta: lekko zabarwione tło i kolorowy pasek u góry. */

.arep {
  --ar-good: #2E8A4E; --ar-warn: #C98A12; --ar-bad: var(--kartka-czerwona); --ar-info: #2D6A8F; --ar-misc: #6B4FB0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); align-content: start;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .arep { --ar-good: #3FA463; --ar-warn: #E0A21C; --ar-bad: #E05A5A; --ar-info: #4A8FC4; --ar-misc: #8F74D6; } }
:root[data-theme="dark"] .arep { --ar-good: #3FA463; --ar-warn: #E0A21C; --ar-bad: #E05A5A; --ar-info: #4A8FC4; --ar-misc: #8F74D6; }

.arep > * { min-width: 0; }
.arep > .btn { justify-self: start; }
.arep [data-t="good"] { --t: var(--ar-good); }
.arep [data-t="warn"] { --t: var(--ar-warn); }
.arep [data-t="bad"] { --t: var(--ar-bad); }
.arep [data-t="info"] { --t: var(--ar-info); }
.arep [data-t="misc"] { --t: var(--ar-misc); }

/* Nagłówek: pozycja, nazwisko, pewność oceny */
.arep__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.arep__pos { min-width: 44px; min-height: 44px; font-size: var(--step-0); }
.arep__who { flex: 1 1 200px; min-width: 0; }
.arep__kicker { margin: 0; font: 700 var(--step--1)/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.arep__name { margin: 0; font-size: var(--step-3); line-height: 1.05; overflow-wrap: anywhere; }
.arep__who .muted { margin: 2px 0 0; font-size: var(--step--1); }
.arep__conf {
  --t: var(--ar-info);
  display: grid; gap: 2px; min-width: 0; padding: 8px 12px; border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--t) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--t) 30%, var(--line));
}
.arep__conf[data-prec="exact"] { --t: var(--ar-good); }
.arep__conf[data-prec="approx"] { --t: var(--ar-warn); }
.arep__conf[data-prec="vague"] { --t: var(--ar-bad); }
.arep__conf-k { font: 600 12px/1.2 var(--font-body); color: var(--text-muted); }
.arep__conf-v { display: flex; align-items: center; gap: 10px; }
.arep__conf-v b { font: 700 var(--step-1)/1 var(--font-display); text-transform: capitalize; }
.arep__conf small { font-size: 12px; color: var(--text-muted); }
.arep__dots { display: inline-flex; gap: 4px; }
.arep__dots i { width: 18px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--t) 22%, var(--line)); }
.arep__dots i.on { background: var(--t); }

.arep__summary {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface);
  border-left: 4px solid var(--accent); font-size: var(--step-0); line-height: 1.45;
}

/* Karty: zalecenia na całą szerokość, pozostałe w kolumnach gazetowych (karty różnej wysokości bez dziur) */
.arep__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.arep-card {
  --t: var(--ar-info);
  display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; margin: 0;
  padding: 12px 14px 14px; border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--t) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--t) 24%, var(--line)); border-top: 4px solid var(--t);
}
.arep-card__head { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.arep-card__head h3 { margin: 0; font: 700 var(--step-1)/1.15 var(--font-display); }
.arep-card__badge {
  padding: 2px 9px; border-radius: 999px; font: 700 var(--step--1)/1.35 var(--font-display); white-space: nowrap;
  background: color-mix(in srgb, var(--t) 20%, transparent); color: color-mix(in srgb, var(--t) 55%, var(--text));
}
.arep-card__body { display: grid; gap: var(--space-2); min-width: 0; }
.arep-card__body p { margin: 0; }
.arep-card h4 { margin: var(--space-1) 0 0; font: 700 var(--step-0)/1.2 var(--font-display); }
.arep-note { font-size: 12.5px; color: var(--text-muted); }

/* Zalecenia */
.arep-recs { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.arep-rec {
  display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 6px 10px; align-items: start;
  padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid color-mix(in srgb, var(--t) 30%, var(--line));
}
.arep-rec__dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--t); }
.arep-rec__text { display: grid; gap: 2px; min-width: 0; }
.arep-rec__text b { font-weight: 600; }
.arep-rec__text small { font-size: 12.5px; color: var(--text-muted); }
.arep-rec__go { grid-column: 2; justify-self: start; border-color: color-mix(in srgb, var(--t) 50%, var(--line)); }
.arep-rec__go:hover { background: color-mix(in srgb, var(--t) 12%, var(--surface)); }

/* Cechy ukryte, strony, pozycje, listy klucz-wartość */
.arep-hid, .arep-sides, .arep-poslist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.arep-hid li { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 8px; align-items: baseline; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.arep-hid li:last-child { border-bottom: 0; padding-bottom: 0; }
.arep-hid__k { font-size: var(--step--1); color: var(--text-muted); }
.arep-hid__v { font-weight: 600; }
.arep-hid li[data-t="good"] .arep-hid__v, .arep-hid li[data-t="bad"] .arep-hid__v { color: color-mix(in srgb, var(--t) 70%, var(--text)); }
.arep-hid__v small { font-weight: 400; color: var(--text-muted); }
.arep-sides li { display: grid; gap: 1px; }
.arep-sides b { font: 600 12px/1.2 var(--font-body); color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.arep-poslist li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.arep-poslist small { color: var(--text-muted); }
.arep-pos { display: inline-grid; place-items: center; min-width: 38px; padding: 2px 6px; border-radius: var(--radius-s); background: var(--surface-stripe); font: 700 12px/1.3 var(--font-display); }
.arep-kv { display: grid; gap: 6px; margin: 0; }
.arep-kv > div { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 8px; align-items: baseline; }
.arep-kv dt { font-size: var(--step--1); color: var(--text-muted); }
.arep-kv dd { margin: 0; overflow-wrap: anywhere; }
.arep-kv > div[data-t="bad"] dd, .arep-kv > div[data-t="warn"] dd { color: color-mix(in srgb, var(--t) 70%, var(--text)); font-weight: 600; }

@media (min-width: 720px) {
  .arep__grid { display: block; columns: 2; column-gap: var(--space-3); }
  .arep__grid > .arep-card { break-inside: avoid; margin-bottom: var(--space-3); }
  .arep-recs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .hub__main:has(.arep) { max-width: 1320px; }
  .arep__grid { columns: 3; }
  .arep-recs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  .hub__main:has(.arep) { max-width: 1600px; }
}

/* Raport ogólny o drużynie (src/ui/teamReportView.js): te same karty i kolory co raport o zawodniku.
   Mocny element jeden: pasek siły formacji (nasza ocena, kreska średniej ligi, bursztynowa kreska czołowej trójki
   w kolorze tablicy LED). Reszta spokojna: karty z podpisem członka sztabu i pewnością. */
.trep__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.trep__title { flex: 1 1 260px; min-width: 0; }
.trep__title h2, .trep-intro h2 { margin: 0; font: 700 var(--step-3)/1.05 var(--font-display); }
.trep__title .muted { margin: 2px 0 0; font-size: var(--step--1); }
.trep-req { display: grid; gap: 4px; justify-items: start; }
.trep-req .btn[disabled] { opacity: .55; cursor: not-allowed; }
.trep-intro { display: grid; gap: var(--space-2); max-width: 70ch; padding: 16px; border-radius: var(--radius-m); background: var(--surface); border-left: 4px solid var(--accent); }
.trep-intro p { margin: 0; }

.trep-authors { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.trep-author { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 8px 12px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.trep-author__who { display: grid; min-width: 0; }
.trep-author__who b { font: 700 var(--step-1)/1.1 var(--font-display); }
.trep-author__who small { font-size: 12.5px; color: var(--text-muted); }
.trep-author__attrs { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; }
.trep-author__attrs > div { display: flex; align-items: baseline; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--surface-stripe); }
.trep-author__attrs dt { font-size: 12.5px; color: var(--text-muted); }
.trep-author__attrs dd { margin: 0; font: 700 var(--step-0)/1 var(--font-display); }

/* Pasek siły formacji */
.trep-units { display: grid; gap: var(--space-2); padding: 12px 14px 14px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.trep-units__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.trep-units__head h3 { margin: 0; font: 700 var(--step-1)/1.15 var(--font-display); }
.trep-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 12.5px; color: var(--text-muted); }
.trep-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trep-key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.trep-key--fill { background: var(--ar-info); }
.trep-key--lg { width: 3px; height: 14px; background: var(--text); }
.trep-key--top { width: 3px; height: 14px; background: var(--led); }
.trep-units__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.trep-unit { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "k rail" "v v"; gap: 4px 10px; align-items: center; }
.trep-unit__k { grid-area: k; font: 700 var(--step-0)/1.1 var(--font-display); }
.trep-rail { grid-area: rail; position: relative; height: 16px; border-radius: 3px; background: var(--surface-stripe); box-shadow: inset 0 0 0 1px var(--line); }
.trep-rail__fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--t); }
.trep-rail__tick { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 1px; }
.trep-rail__tick--lg { background: var(--text); }
.trep-rail__tick--top { background: var(--led); box-shadow: 0 0 0 1px color-mix(in srgb, var(--trybuna) 35%, transparent); }
.trep-unit__v { grid-area: v; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.trep-unit__v b { font-weight: 600; }
.trep-unit__v small { font-size: 12.5px; color: var(--text-muted); }
.trep-unit[data-t="bad"] .trep-unit__v b { color: color-mix(in srgb, var(--t) 75%, var(--text)); }
.trep-unit__v .trep-trend[data-d="up"] { color: color-mix(in srgb, var(--ar-good) 75%, var(--text)); }
.trep-unit__v .trep-trend[data-d="down"] { color: color-mix(in srgb, var(--ar-bad) 75%, var(--text)); }

/* Podpis części */
.trep-sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--text-muted); }
.trep-sign__p { display: inline-flex; align-items: center; gap: 8px; }
.trep-sign[data-prec="exact"] { --t: var(--ar-good); }
.trep-sign[data-prec="approx"] { --t: var(--ar-warn); }
.trep-sign[data-prec="vague"] { --t: var(--ar-bad); }
.trep-sign .arep__dots i { width: 12px; height: 5px; }

.trep-lines { display: grid; gap: 6px; margin: 0; padding: 0 0 0 18px; }
.trep-lines li { line-height: 1.4; }
.trep-set { grid-column: 2; font-size: 12.5px; color: var(--text-muted); }

/* Forma: ostatnie wyniki */
.trep-form { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.trep-form small { margin-left: 6px; font-size: 12px; color: var(--text-muted); }
.trep-form__r { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-s); font: 700 13px/1 var(--font-display); color: #fff; }
.trep-form__r[data-r="W"] { background: #24733F; }
.trep-form__r[data-r="R"] { background: #5E6A62; }
.trep-form__r[data-r="P"] { background: #B3202F; }

/* Najbliżsi rywale */
.trep-rivals { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trep-rivals li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 10px; border-radius: var(--radius-s); background: var(--surface); border-left: 4px solid var(--t); }
.trep-rivals small { display: block; font-size: 12.5px; color: var(--text-muted); }
.trep-rivals__when { font-size: 12.5px; color: var(--text-muted); }
.trep-rivals .trep-rivals__when small { display: inline; margin-left: 6px; }
.trep-rivals__v { font-weight: 600; }
.trep-rivals .trep-rivals__v small { display: inline; }

/* Głębia składu */
.trep-depth { display: grid; }
.trep-depth__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.trep-depth__row:last-child { border-bottom: 0; }
.trep-depth__row--head { display: none; }
.trep-depth__row[data-gap] { background: linear-gradient(90deg, color-mix(in srgb, var(--ar-warn) 12%, transparent), transparent 70%); }
.trep-depth__pos { display: flex; align-items: center; gap: 8px; }
.trep-depth__pos small { color: var(--text-muted); font-size: 12.5px; }
.trep-depth__st, .trep-depth__bk { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.trep-depth__st .trep-who { font-weight: 600; }
.trep-who small { color: var(--text-muted); font-weight: 400; }
.trep-who.is-out { text-decoration: line-through; text-decoration-color: var(--ar-bad); }
.trep-gap { flex-basis: 100%; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--warn-text); }

@media (min-width: 720px) {
  .trep-authors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trep-unit { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 38%); grid-template-areas: "k rail v"; }
  .trep-depth__row { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: baseline; padding: 7px 4px; }
  .trep-depth__row--head { display: grid; padding-top: 0; font: 600 12.5px/1.2 var(--font-body); color: var(--text-muted); }
}

/* Archiwum raportów i porównanie (3 ostatnie raporty) */
.trep-arch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.trep-arch__k { font: 600 var(--step--1)/1.2 var(--font-body); color: var(--text-muted); }
.trep-cmp { overflow-x: auto; }
.trep-cmp table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--step--1); }
.trep-cmp thead th:first-child { width: 30%; }
.trep-cmp th, .trep-cmp td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; overflow-wrap: anywhere; }
.trep-cmp thead th { font: 700 var(--step-0)/1.2 var(--font-display); }
.trep-cmp tbody th { font-weight: 600; color: var(--text-muted); }
.trep-cmp td:last-child { font-weight: 600; }
.trep-cmp tr:last-child th, .trep-cmp tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) {
  .trep-cmp th, .trep-cmp td { padding: 6px 4px; }
}

/* Analiza pomeczowa (src/ui/postMatchView.js): te same karty i kolory co raporty sztabu. Mocny element jeden: tablica
   wyniku z kolorem rezultatu. xG co 15 minut jako słupki od środka (my w lewo, rywal w prawo). */
.mrep-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.mrep__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.mrep__title { flex: 1 1 240px; min-width: 0; }
.mrep__title h2 { margin: 0; font: 700 var(--step-3)/1.05 var(--font-display); }
.mrep__title .muted { margin: 2px 0 0; font-size: var(--step--1); }
.mrep-score {
  --t: var(--ar-info);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 2px 12px; min-width: min(100%, 320px);
  padding: 8px 14px; border-radius: var(--radius-m); background: color-mix(in srgb, var(--t) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--t) 35%, var(--line));
}
.mrep-score[data-r="W"] { --t: var(--ar-good); }
.mrep-score[data-r="P"] { --t: var(--ar-bad); }
.mrep-score[data-r="R"] { --t: var(--ar-warn); }
.mrep-score b { font: 800 var(--step-3)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.mrep-score__t { font: 600 var(--step--1)/1.2 var(--font-body); overflow-wrap: anywhere; }
.mrep-score__t:first-child { text-align: right; }
.mrep-score small { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--text-muted); }
.mrep-ctx { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mrep-ctx li { padding: 8px 12px; border-radius: var(--radius-s); background: var(--surface); border-left: 4px solid var(--ar-warn); font-size: var(--step--1); line-height: 1.4; }

.mrep-moments { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mrep-moments li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.mrep-moments li:last-child { border-bottom: 0; }
.mrep-moments__min { font: 700 13px/1.2 var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-muted); }
.mrep-moments small { font-size: 12px; color: var(--text-muted); }
.mrep-moments li[data-k="g"], .mrep-moments li[data-k="gp"], .mrep-moments li[data-k="og"] { font-weight: 600; }
.mrep-moments li[data-k="r"] .mrep-moments__t { color: color-mix(in srgb, var(--ar-bad) 75%, var(--text)); font-weight: 600; }
.mrep-moments li[data-side="us"][data-k^="g"] .mrep-moments__min { color: color-mix(in srgb, var(--ar-good) 80%, var(--text)); }

.mrep-xg { display: grid; gap: 4px; }
.mrep-xg__row { display: grid; grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); gap: 6px; align-items: center; }
.mrep-xg__row--head { font: 600 12px/1.2 var(--font-body); color: var(--text-muted); }
.mrep-xg__row--head span:first-child { text-align: right; }
.mrep-xg__row--head span:nth-child(2) { text-align: center; }
.mrep-xg__k { text-align: center; font: 600 12px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-muted); }
.mrep-xg__bar { position: relative; display: flex; align-items: center; gap: 6px; height: 18px; }
.mrep-xg__bar--us { flex-direction: row-reverse; }
.mrep-xg__bar i { display: block; height: 12px; min-width: 2px; border-radius: 2px; }
.mrep-xg__bar--us i { background: var(--ar-good); }
.mrep-xg__bar--them i { background: var(--ar-bad); }
.mrep-xg__bar b { font: 600 11.5px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--text-muted); }

.mrep-stats { overflow-x: auto; }
.mrep-stats table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.mrep-stats th, .mrep-stats td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mrep-stats th:first-child { text-align: left; white-space: normal; }
.mrep-stats thead th { font: 600 12.5px/1.2 var(--font-body); color: var(--text-muted); white-space: normal; }
.mrep-stats tbody th { font-weight: 600; }
.mrep-stats td:nth-child(2) { font-weight: 700; }
.mrep-stats tr:last-child th, .mrep-stats tr:last-child td { border-bottom: 0; }
.mrep-tr { font-style: normal; font-size: 10px; }
.mrep-tr[data-t="good"] { color: var(--ar-good); }
.mrep-tr[data-t="bad"] { color: var(--ar-bad); }

.mrep-pl { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mrep-pl li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: var(--radius-s); background: var(--surface); border-left: 3px solid var(--t); }
.mrep-pl__who { display: grid; min-width: 0; }
.mrep-pl__who small { font-size: 12.5px; color: var(--text-muted); }
.mrep-pl__r { font: 700 var(--step-0)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.mrep-gk { padding-top: 6px; border-top: 1px dashed var(--line); font-size: var(--step--1); }

/* Archiwum */
.mrep-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mrep-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 48px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
.mrep-row:hover, .mrep-row:focus-visible { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.mrep-row__m { display: grid; min-width: 0; }
.mrep-row__m b { font-weight: 600; overflow-wrap: anywhere; }
.mrep-row__m small { font-size: 12.5px; color: var(--text-muted); }
.mrep-row__v { font-size: 12.5px; color: var(--text-muted); text-align: right; }
.mrep-list .is-rival .mrep-row { border-left: 4px solid var(--ar-warn); }
.mrep-all { display: grid; gap: var(--space-2); }
.mrep-all h3 { margin: 0; font: 700 var(--step-1)/1.15 var(--font-display); }
.mrep-trend { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mrep-trend li { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 40%); gap: 8px; align-items: center; }
.mrep-trend__who { font-size: var(--step--1); min-width: 0; overflow-wrap: anywhere; }
.mrep-trend__who small { margin-left: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mrep-trend__bars { display: grid; gap: 2px; }
.mrep-trend__bars i { display: block; height: 7px; border-radius: 2px; }
.mrep-trend__us, .mrep-key--us { background: var(--ar-good); }
.mrep-trend__them, .mrep-key--them { background: var(--ar-bad); }
.mrep-mail { display: flex; flex-wrap: wrap; gap: var(--space-2); }

@media (max-width: 480px) {
  .mrep-score { width: 100%; }
  .mrep-stats th, .mrep-stats td { padding: 6px 4px; }
  .mrep-row { grid-template-columns: auto minmax(0, 1fr); }
  .mrep-row__v { grid-column: 2; text-align: left; }
}
.mrep .arep-recs { grid-template-columns: minmax(0, 1fr); }
.mrep-stats table { max-width: 860px; }
.mrep--arch { max-width: 1040px; }
@media (min-width: 720px) { .mrep-trend li { grid-template-columns: auto minmax(0, 1fr) minmax(0, 360px); } }
