/* =========================================================
   Échappée — identité : jaune maillot sur gris bitume, typographie de dossard
   (Barlow Condensed italique pour les titres, Barlow pour le texte).
   Téléphone : carte en haut, panneau dessous. Ordinateur : panneau à gauche, carte à droite.
   ========================================================= */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/barlow-condensed-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("../fonts/barlow-condensed-800-italic.woff2") format("woff2"); }

/* Roadbook : papier clair, encre presque noire, jaune maillot pour les profils et repères.
   Le thème sombre reste disponible (bouton en haut). */
:root {
  --bg: #f3f4f1;
  --panel: #f3f4f1;
  --surface: #ffffff;
  --surface-2: #ecede9;
  --line: #ecede9;
  --line-2: #d8d9d4;
  --text: #1c1d21;
  --text-2: #4a4b53;
  --text-3: #6b6c73;
  --ink: #1c1d21;             /* boutons principaux et sélections */
  --ink-text: #ffffff;
  --accent: #ffd400;          /* aplats : profils, repères */
  --accent-ink: #1c1d21;      /* texte posé sur l'accent */
  --accent-text: #7a6200;     /* texte et traits en couleur d'accent */
  --accent-soft: #fffbe0;
  --sky: #2f63d8;
  --sky-soft: rgba(47, 99, 216, .1);
  --amber: #a86a00;
  --amber-soft: rgba(215, 150, 20, .14);
  --danger: #b5402d;
  --tail: #2f8f63;
  --cross: #8e8f96;
  --head: #d2553f;
  --casing: #ffffff;
  --shadow: 0 6px 20px rgba(28, 29, 33, .08);
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0c0f; --panel: #0f1014; --surface: #17181d; --surface-2: #212329;
  --line: rgba(247, 247, 242, .06); --line-2: rgba(247, 247, 242, .12);
  --text: #f7f7f2; --text-2: #b4b6bd; --text-3: #7c7f88;
  --ink: #ffd400; --ink-text: #17181c;
  --accent: #ffd400; --accent-ink: #17181c; --accent-text: #ffd400; --accent-soft: rgba(255, 212, 0, .13);
  --sky: #7aa7ff; --sky-soft: rgba(122, 167, 255, .14); --amber: #ffb547; --amber-soft: rgba(255, 181, 71, .13); --danger: #ff5c5c;
  --tail: #2fd38a; --cross: #ff9f1c; --head: #ff5c5c; --casing: #0b0c0e;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 8px 12px; border-radius: 10px; background: var(--surface); }
.skip-link:focus { top: 12px; }
svg.i { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }

/* ---------- Mise en page ---------- */
.layout { display: flex; flex-direction: column; min-height: 100%; }
.map-wrap { order: -1; position: relative; height: 44vh; min-height: 280px; }
.map { position: absolute; inset: 0; background: var(--surface-2); }
.panel { background: var(--panel); padding: 18px max(16px, env(safe-area-inset-left)) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel:focus { outline: none; }
@media (min-width: 960px) {
  .layout { flex-direction: row; height: 100%; }
  .panel { width: 440px; flex: none; height: 100%; overflow-y: auto; border-top: 0; border-right: 1px solid var(--line); padding: 22px 22px 32px; }
  .map-wrap { order: 0; flex: 1; height: 100%; }
}

.brand { display: flex; align-items: center; gap: 12px; padding-top: env(safe-area-inset-top); }
.brand__logo { border-radius: 10px; }
.brand__text { flex: 1; min-width: 0; }
.brand__title { font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.brand__sub { font-size: 12.5px; color: var(--text-3); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); flex: none; }
.icon-btn[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-ink); }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.segmented button { min-height: 36px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.segmented button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.count { font-size: 11px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.count:empty { display: none; }
.pane { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.label { font-size: 12px; font-weight: 700; color: var(--text-2); padding: 0; }
.opt { color: var(--text-3); font-weight: 500; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.input { width: 100%; min-height: 46px; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; font-variant-numeric: tabular-nums; appearance: none; -webkit-appearance: none; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input:focus { border-color: var(--accent-text); outline: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.note { font-size: 13px; color: var(--text-2); padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.note strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; font-weight: 700; transition: background .2s var(--ease), color .2s var(--ease); }
.chip[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.place-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px 46px; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 750; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform .12s var(--ease), opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--soft { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn--danger { color: var(--danger); background: transparent; border: 1px solid var(--line); }
.btn--lg { min-height: 52px; font-size: 15.5px; }
.btn--square { width: 46px; min-height: 46px; padding: 0; }
.btn--sm { min-height: 34px; padding: 0 10px; font-size: 12.5px; }

.progress { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-2); font-weight: 650; }
.progress__track { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress__bar { height: 100%; width: var(--value, 0%); background: var(--accent); border-radius: inherit; transition: width .3s var(--ease); }

/* ---------- Prévisions ---------- */
.forecast { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.forecast__head { display: flex; align-items: center; gap: 12px; }
.wind-arrow { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--sky-soft); color: var(--sky); }
.forecast__title { font-weight: 800; }
.forecast__sub { font-size: 12.5px; color: var(--text-2); }
.forecast__advice { font-size: 12.5px; color: var(--accent-text); font-weight: 700; margin-top: 2px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(34px, 1fr); gap: 2px; overflow-x: auto; padding-bottom: 2px; }
.strip__h { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.strip__h b { color: var(--text); font-size: 12px; }
.strip__h.is-ride { background: var(--accent-soft); color: var(--text); }
.strip__h svg { color: var(--sky); }

/* ---------- Résultats ---------- */
.h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.options { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.option { scroll-snap-align: start; text-align: left; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.option[aria-selected="true"] { border-color: var(--accent); }
.option__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.option__name { font-weight: 800; font-size: 13.5px; }
.badge { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.option__stats { display: flex; gap: 10px; font-size: 12px; color: var(--text-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.bar > span { background: var(--c); min-width: 0; }

.detail { margin-top: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.detail__title { font-size: 18px; font-weight: 850; letter-spacing: -.01em; }
.detail__sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.stat { padding: 11px 12px; border-radius: 12px; background: var(--surface-2); }
.stat strong { display: block; font-size: 19px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--text-3); font-weight: 650; }
.block { margin-top: 20px; }
.block__title { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--text-2); font-weight: 650; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.text { font-size: 13.5px; color: var(--text-2); margin-top: 8px; }
.text strong { color: var(--text); }
.warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: 12.5px; font-weight: 650; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.axis { font: 600 10.5px var(--font); fill: var(--text-3); font-variant-numeric: tabular-nums; }
.slot { cursor: pointer; }
.slot rect.bg { fill: transparent; }
.slot:hover rect.bg, .slot:focus-visible rect.bg { fill: var(--surface-2); }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.actions .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 8px 10px; }

/* ---------- Favoris ---------- */
.saved-list { display: flex; flex-direction: column; gap: 10px; }
.saved { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.saved__name { font-weight: 800; }
.saved__meta { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.saved__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.empty { padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; color: var(--text-2); font-size: 13.5px; }

.about { display: flex; flex-direction: column; gap: 10px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.credits { margin-top: auto; font-size: 11px; color: var(--text-3); text-align: center; padding-top: 8px; }

/* ---------- Carte ---------- */
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; gap: 12px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--text-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend span::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--c); }
@media (max-width: 420px) { .map-legend { gap: 8px; font-size: 10.5px; padding: 6px 10px; } }
.leaflet-container { font: 12px var(--font); background: var(--surface-2); }
.leaflet-bar a, .leaflet-control-layers { background: var(--panel); color: var(--text); border-color: var(--line) !important; }
.leaflet-control-layers { border-radius: 12px !important; box-shadow: var(--shadow) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--panel) 80%, transparent) !important; color: var(--text-3); }
.leaflet-control-attribution a { color: var(--text-2); }
.start-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--casing); box-shadow: 0 0 0 3px var(--accent), 0 3px 10px rgba(0, 0, 0, .4); }
.dir-chevron { filter: drop-shadow(0 0 1px rgba(0, 0, 0, .8)); }
.km-mark span { display: grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--text); color: var(--bg); font: 800 11px var(--font); font-variant-numeric: tabular-nums; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); border: 2px solid var(--casing); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 650; animation: toast-in .3s var(--ease); }
.toast--error { border-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* =========================================================
   Formulaire en étapes
   ========================================================= */
.segmented--mode { grid-template-columns: repeat(2, 1fr); }
.segmented--mode button { min-height: 44px; font-size: 14.5px; }
.segmented [aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.segmented--mode [aria-checked="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
#quietSwitch { grid-template-columns: repeat(3, 1fr); }

.step { display: flex; flex-direction: column; gap: 10px; }
.step__title { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }

/* Étapes de l'itinéraire, reliées par un trait */
.stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stop { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 6px; }
.stop:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; height: calc(100% - 24px); border-left: 2px dotted var(--line-2); }
.stop__badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 850; background: var(--surface-2); color: var(--text-2); border: 2px solid var(--line-2); z-index: 1; }
.stop--start .stop__badge { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.stop--end .stop__badge { background: var(--text); color: var(--bg); border-color: transparent; }
.stop--via .stop__badge { background: var(--sky-soft); color: var(--sky); border-color: transparent; }
.stop--return .stop__badge { border-style: dashed; }
.stop__body { position: relative; min-width: 0; }
.stop__input { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; text-overflow: ellipsis; }
.stop__input:focus { outline: none; border-color: var(--accent-text); }
.stop__input[aria-invalid="true"] { border-color: var(--danger); }
.stop__static { display: flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--text-3); font-size: 14px; font-weight: 600; }
.stop__btn { width: 38px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); }
.stop__btn:hover { background: var(--surface); color: var(--text); }
.stop.is-picking .stop__input { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
.stop.is-picking [data-stop-action="pick"] { color: var(--sky); background: var(--sky-soft); }

.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.suggest li { display: flex; flex-direction: column; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.suggest li:hover, .suggest li:focus { background: var(--surface-2); outline: none; }
.suggest strong { font-size: 14px; }
.suggest span { font-size: 12px; color: var(--text-3); }
.suggest__empty { color: var(--text-3); font-size: 13px; cursor: default !important; }

.add-stop { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 6px; margin-left: 30px; border-radius: 10px; color: var(--accent-text); font-weight: 750; font-size: 14px; }
.add-stop:hover { background: var(--accent-soft); }

/* Curseur de distance */
.range-field { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.range-field__head { display: flex; justify-content: space-between; align-items: baseline; }
.range-field__value { font-size: 20px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 28px; accent-color: var(--accent); }

.when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.when__inputs { display: flex; gap: 8px; flex: 1 1 140px; }
.when__inputs .input { flex: 1; min-width: 0; }
.input--time { max-width: 140px; }

.more { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.more summary { cursor: pointer; padding: 12px 14px; font-weight: 750; font-size: 14px; color: var(--text-2); list-style: none; display: flex; justify-content: space-between; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--text-3); }
.more[open] summary::after { content: "–"; }
.more__body { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.link { color: var(--accent-text); text-decoration: underline; font-weight: 700; }

/* Bouton principal toujours accessible en bas du panneau */
.cta { position: sticky; bottom: 0; z-index: 20; display: flex; flex-direction: column; gap: 8px; margin: 0 -4px; padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--panel) 30%); }
.cta .btn { width: 100%; }
#submitBtn.is-stale { box-shadow: 0 0 0 3px var(--accent-soft); }
#submitBtn.is-stale #submitLabel::after { content: " · mettre à jour"; font-weight: 600; opacity: .8; }

.option__sub { font-size: 11.5px; color: var(--text-3); font-weight: 600; margin-top: -4px; }

/* Repères des étapes sur la carte */
.stop-pin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 850 12px var(--font); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); cursor: grab; }
.stop-pin--start { background: var(--accent); color: var(--accent-ink); }
.stop-pin--via { background: var(--sky); color: #fff; }
.stop-pin--end { background: #111827; color: #fff; }

.map-banner { position: absolute; z-index: 600; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; white-space: nowrap; max-width: calc(100% - 120px); }
.map-banner span { overflow: hidden; text-overflow: ellipsis; }
.map-popup .leaflet-popup-content-wrapper { background: var(--panel); color: var(--text); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.map-popup .leaflet-popup-tip { background: var(--panel); }
.map-popup .leaflet-popup-content { margin: 8px; }
.map-actions { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.map-actions .btn { width: 100%; }

/* ---------- Typographie Échappée ---------- */
.brand__title, .h2, .detail__title, .step__title, .stat strong, .range-field__value, .btn--lg, .segmented--mode button, .option__name, .forecast__title, .cols-title {
  font-family: var(--display); font-style: italic; font-weight: 800;
}
.brand__title { font-size: 26px; letter-spacing: .01em; text-transform: uppercase; }
.step__title { font-size: 14px; letter-spacing: .08em; color: var(--text-2); }
.h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.detail__title { font-size: 24px; letter-spacing: .01em; }
.stat strong { font-size: 24px; letter-spacing: 0; }
.range-field__value { font-size: 26px; }
.btn--lg { font-size: 19px; letter-spacing: .03em; text-transform: uppercase; }
.segmented--mode button { font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.option__name { font-size: 17px; }
.forecast__title { font-size: 19px; }
.brand__logo { border-radius: 10px; }

/* ---------- Onglets principaux & segments ---------- */
.segmented[role="tablist"] { grid-template-columns: repeat(4, 1fr); }
.segmented--two { grid-template-columns: repeat(2, 1fr); }
.segmented--three { grid-template-columns: repeat(3, 1fr); }
.segmented[role="tablist"] button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }

/* =========================================================
   Onglet Cols
   ========================================================= */
.cols-summary { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.cols-summary__head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cols-title { display: block; font-size: 32px; line-height: 1; }
.cols-title small { font-size: 17px; color: var(--text-3); }
.cols-summary__label { font-size: 12.5px; color: var(--text-2); }
.sector-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.sector-progress li { display: grid; grid-template-columns: 58px minmax(0, 1fr) 34px; align-items: center; gap: 8px; }
.sector-progress b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.mini-track { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.mini-track span { display: block; height: 100%; background: var(--tail); border-radius: inherit; }

.cols-filters { display: flex; flex-direction: column; gap: 10px; }
.cols-filters .chips .chip { min-height: 32px; padding: 0 12px; font-size: 13px; }
.cols-filters__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.cols-filters__row .segmented { padding: 3px; }
.cols-filters__row .segmented button { min-height: 34px; font-size: 12.5px; }
.cols-filters__row select.input { min-height: 42px; font-size: 14px; }
@media (max-width: 380px) { .cols-filters__row { grid-template-columns: 1fr; } }

.cols-list { display: flex; flex-direction: column; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.col.is-done { border-color: color-mix(in srgb, var(--tail) 55%, transparent); }
.col.is-flash { box-shadow: 0 0 0 3px var(--accent); }
.col__head { display: flex; align-items: flex-start; gap: 10px; }
.col__rank { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: italic 800 20px var(--display); }
.col__titles { flex: 1; min-width: 0; }
.col__name { font: italic 800 21px/1.1 var(--display); letter-spacing: .01em; }
.col__meta { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.col__why { font-size: 13.5px; color: var(--text-2); }
.col__note { font-size: 12.5px; color: var(--amber); font-weight: 600; }
.cat { flex: none; min-width: 40px; height: 26px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 1px; border-radius: 7px; font: italic 800 15px/1 var(--display); white-space: nowrap; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-2); }
.cat__suf { font-size: 10px; align-self: flex-start; margin-top: 4px; }
.cat--HC { background: var(--text); color: var(--bg); border-color: transparent; }
.cat--1 { background: var(--head); color: #fff; border-color: transparent; }
.cat--2 { background: var(--cross); color: #17181c; border-color: transparent; }
.col__stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.col__stats div { min-width: 0; }
.col__stats dt { font-size: 10.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.col__stats dd { margin: 2px 0 0; font: italic 800 16px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.col__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.done-toggle { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); color: var(--text-2); font-weight: 700; font-size: 13px; margin-right: auto; }
.done-toggle svg { opacity: .35; }
.done-toggle[aria-pressed="true"] { background: var(--tail); border-color: var(--tail); color: #06140d; }
.done-toggle[aria-pressed="true"] svg { opacity: 1; }

/* Onglet Courses */
.race { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; transition: background .2s var(--ease), border-color .2s var(--ease); }
.race__head { display: flex; align-items: flex-start; gap: 10px; }
.race__titles { flex: 1; min-width: 0; }
.race__name { font: italic 800 18px/1.15 var(--display); letter-spacing: .01em; }
.race__meta { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.race__period { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.race__period em { color: var(--amber); font-style: normal; font-weight: 700; }
.race__dist { font-size: 13px; }
.race__notes { font-size: 12px; color: var(--text-3); }
.race__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.race__date { width: 148px; min-height: 34px; padding: 0 10px; font-size: 12.5px; }

.col-pin { position: relative; width: 30px; height: 30px; display: grid; place-items: center; }
.col-pin::before { content: ""; position: absolute; width: 26px; height: 22px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--accent); filter: drop-shadow(0 1px 0 #000); }
.col-pin span { position: relative; top: 3px; font: italic 800 11px var(--display); color: var(--accent-ink); }
.col-pin.is-done::before { background: var(--tail); }
.col-popup { display: flex; flex-direction: column; gap: 6px; min-width: 190px; font-size: 12.5px; }
.col-popup strong { font: italic 800 17px var(--display); }
.col-popup span { color: var(--text-2); }

.profile-status { font-size: 13px; color: var(--tail); font-weight: 650; }
.profile-status.is-error { color: var(--danger); }

.gpx-import { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px dashed var(--line-2); color: var(--text-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.gpx-import:hover, .gpx-import:focus-within { border-color: var(--accent-text); color: var(--text); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.export-hint { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-3); }

/* ---------- Téléphone : carte dans la page, sous le bouton de calcul ---------- */
.map-slot:empty { display: none; }
/* La carte forme son propre empilement : ses contrôles Leaflet (z-index 800–1000) restent sous la barre d'onglets. */
.map-wrap { isolation: isolate; z-index: 0; }
@media (max-width: 959px) {
  .map-slot .map-wrap { order: 0; height: 52vh; min-height: 300px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
  .panel { border-top: 0; }
}

/* ---------- Mes données ---------- */
.backup { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.backup .h2 { margin-bottom: 0; }
.backup__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.backup__actions .btn { flex: 1 1 180px; cursor: pointer; }
.backup__confirm { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); font-size: 14px; }

.weight-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.weight-cat__badge { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: italic 800 15px var(--display); text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Barre d'onglets (en bas, façon appli mobile) ----------
   Téléphone : flottante en bas de l'écran. Ordinateur : collée au bas du panneau. */
.tabbar { position: fixed; z-index: 900; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(460px, calc(100% - 20px)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 30px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 24px; color: var(--text); font-weight: 700; font-size: 13px; transition: background .2s var(--ease), color .2s var(--ease), transform .12s var(--ease); }
.tabbar__item:active { transform: scale(.95); }
.tabbar__icon svg.i { width: 26px; height: 26px; stroke-width: 1.9; }
.tabbar__item[aria-selected="true"] { background: var(--surface-2); color: var(--accent-text); }
.tabbar__label { line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
.tabbar__count { position: absolute; top: 5px; right: calc(50% - 26px); min-width: 17px; height: 17px; display: grid; place-items: center; font-weight: 800; }
.panel { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  .tabbar { position: sticky; left: auto; bottom: 12px; transform: none; width: auto; margin-top: auto; }
  .panel { padding-bottom: 16px; }
}

/* ---------- Courses : recherche, compteur, intercalaires ---------- */
.races-search { min-height: 42px; }
.races-count { font-size: 12px; color: var(--text-3); font-weight: 650; }
.races-month { margin: 14px 0 8px; font: italic 800 15px var(--display); text-transform: capitalize; letter-spacing: .02em; color: var(--accent-text); }
.races-month:first-child { margin-top: 0; }

/* ---------- Dénivelé positif (façon Strava) ---------- */
.step__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.relief { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.relief__option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); transition: background .2s var(--ease); }
.relief__option:last-child { border-bottom: 0; }
.relief__option:hover { background: var(--surface-2); }
.relief__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.relief__title { font-size: 16px; font-weight: 700; color: var(--text); }
.relief__hint { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.relief__radio { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--text-2); display: grid; place-items: center; transition: border-color .2s var(--ease); }
.relief__option[aria-checked="true"] .relief__radio { border-color: var(--accent); }
.relief__option[aria-checked="true"] .relief__radio::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.relief-free { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 700; }
.relief-free svg.i { width: 15px; height: 15px; }
.relief-free[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.relief-input { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
#racesGroups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 2px; }
#racesGroups::-webkit-scrollbar { display: none; }
#racesGroups .chip { flex: none; white-space: nowrap; }

/* ---------- Bouton de calcul au-dessus de la barre d'onglets ---------- */
.cta { bottom: calc(82px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
@media (min-width: 960px) { .cta { bottom: 86px; } }

/* ---------- Allure (zones de FTP) ---------- */
.segmented--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.segmented--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#dayChips { flex: 1 1 100%; }
#zoneSwitch button { flex-direction: column; gap: 1px; min-height: 52px; line-height: 1.1; }
#zoneSwitch button strong { font: italic 800 18px var(--display); }
#zoneSwitch button small { font-size: 11.5px; font-weight: 650; color: var(--text-3); font-variant-numeric: tabular-nums; }
#zoneSwitch button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
#zoneSwitch button[aria-checked="true"] small { color: var(--accent-ink); opacity: .75; }

/* ---------- Courses : autour de, tags ---------- */
.races-around { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.races-around__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.races-around__head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.races-around__origin { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.races-around__row { display: flex; align-items: center; gap: 8px; }
.races-around__row .segmented { flex: 1; grid-template-columns: 1fr 1fr; }
.range-field__value--sm { font-size: 18px !important; }
.race__km { color: var(--accent-text); font-weight: 800; }
.race__tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--amber-soft); color: var(--amber); vertical-align: 1px; }
.race__tag--ok { background: color-mix(in srgb, var(--tail) 16%, transparent); color: var(--tail); }
.race__validate.is-on { border-color: color-mix(in srgb, var(--tail) 45%, var(--line)); color: var(--tail); }
/* Messages au-dessus de la barre d'onglets */
.toasts { bottom: calc(96px + env(safe-area-inset-bottom)) !important; z-index: 950; }

/* =========================================================
   Finitions : interface plus sombre, plus aérée, moins de texte
   ========================================================= */
body { background: var(--bg); }
.panel { gap: 22px; }
.brand { gap: 10px; }
.brand__title { font: italic 800 26px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.brand__logo { width: 32px; height: 32px; }
.icon-btn { border-radius: 50%; background: transparent; border-color: var(--line); }
.step { gap: 12px; }
.step__title { font: italic 800 13px var(--display); letter-spacing: .12em; color: var(--text-3); }
.segmented { background: var(--surface); border-color: transparent; border-radius: 14px; }
.segmented [aria-checked="true"], .segmented [aria-selected="true"] { background: var(--surface-2); box-shadow: none; color: var(--text); }
.segmented--mode [aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.input { background: var(--surface); border-color: transparent; border-radius: 14px; }
.input:focus { border-color: var(--accent); }
.relief, .relief-input, .races-around, .note, .race, .range-field, .backup { background: var(--surface); border-color: transparent; }
.relief__option { border-bottom-color: var(--line); }
.relief__hint { color: var(--text-3); font-size: 12.5px; }
.note { font-size: 13px; color: var(--text-2); border-radius: 14px; }
.race { border-radius: 20px; padding: 16px; gap: 10px; }
.race__date-line { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.race__date-line em { font-style: normal; color: var(--text-3); }
.race__dist { color: var(--text-2); font-size: 13px; }
.race__actions .btn { min-height: 36px; border-radius: 12px; }
.chip { background: var(--surface); border-color: transparent; }
.btn--soft { background: var(--surface-2); border-color: transparent; }
.cta .btn--lg { min-height: 56px; border-radius: 18px; box-shadow: 0 14px 30px -14px rgba(255, 212, 0, .55); }
.tabbar { background: color-mix(in srgb, var(--surface) 90%, transparent); border-color: var(--line); }
:root[data-theme="dark"] .tabbar { background: color-mix(in srgb, #08090b 82%, transparent); }
.tabbar__item[aria-selected="true"] { background: rgba(255, 212, 0, .12); }
.credits { opacity: .5; font-size: 11px; }
.about summary { cursor: pointer; font-weight: 750; color: var(--text-2); list-style: none; }
.about summary::-webkit-details-marker { display: none; }
.about[open] summary { margin-bottom: 10px; }
#zoneSwitch button small { font-size: 11px; }
.segmented--mode { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.segmented--mode button { font-size: 14px; gap: 5px; padding: 0 4px; white-space: nowrap; }
@media (max-width: 420px) { .segmented--mode button svg.i { display: none; } }
.range-field__head { justify-content: space-between; gap: 16px; }
.range-field__head .label { margin-right: auto; }
.race__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.race__date { width: 100%; }
.race__link { width: 40px; padding: 0; }

/* =========================================================
   Roadbook : cartes blanches arrondies, encre pour l'action,
   titres d'étape en petites capitales, gros chiffres en italique condensé
   ========================================================= */
.panel { gap: 20px; }
.step__title, .block__title { font: 600 11px/1.3 var(--font); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.relief, .relief-input, .races-around, .note, .race, .range-field, .backup, .forecast, .detail, .saved, .col, .cols-summary, .more, .option { border-radius: var(--r-lg); border-color: transparent; }
.option { border: 2px solid transparent; }
.option[aria-selected="true"] { border-color: var(--ink); }
.detail { box-shadow: var(--shadow); }
.stat { border-radius: 12px; }
.btn { border-radius: 16px; }
.btn--primary { background: var(--ink); color: var(--ink-text); }
.btn--soft { background: var(--surface); border: 1px solid var(--line-2); }
:root[data-theme="dark"] .btn--soft { border-color: transparent; background: var(--surface-2); }
.cta .btn--lg { min-height: 56px; border-radius: 16px; font-size: 22px; letter-spacing: .01em; text-transform: none; box-shadow: 0 14px 30px -16px rgba(28, 29, 33, .6); }
:root[data-theme="dark"] .cta .btn--lg { box-shadow: 0 14px 30px -14px rgba(255, 212, 0, .55); }
#submitBtn.is-stale { box-shadow: 0 0 0 3px var(--accent); }
.chip { border: 1px solid var(--line-2); background: var(--surface); }
.chip[aria-checked="true"], .relief-free[aria-pressed="true"] { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.segmented { background: var(--surface); padding: 4px; }
.segmented [aria-checked="true"], .segmented [aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.segmented--mode [aria-checked="true"], #zoneSwitch button[aria-checked="true"] { background: var(--ink); color: var(--ink-text); }
#zoneSwitch button[aria-checked="true"] small { color: var(--ink-text); }
.relief__option[aria-checked="true"] .relief__radio { border-color: var(--ink); }
.relief__option[aria-checked="true"] .relief__radio::after { background: var(--ink); }
.input, .stop__input { background: var(--surface); border: 1px solid var(--line-2); }
:root[data-theme="dark"] .input, :root[data-theme="dark"] .stop__input { border-color: transparent; }
.input:focus, .stop__input:focus { border-color: var(--ink); }
.stop--start .stop__badge { background: var(--ink); color: var(--ink-text); }
.stop--via .stop__badge { background: var(--accent); color: var(--accent-ink); border: 2px solid var(--ink); border-radius: 8px; }
.add-stop { color: var(--text); }
.add-stop:hover { background: var(--surface); }
.icon-btn { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--ink-text); border-color: transparent; }
.badge, .count { background: var(--ink); color: var(--ink-text); }
.col__rank { background: transparent; color: var(--text); font-size: 24px; }
.races-month { color: var(--text-3); font: 700 11px var(--font); letter-spacing: .12em; text-transform: uppercase; }
.warn { border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: inset 3px 0 0 var(--head); }
.progress__bar, .mini-track span { background: var(--ink); }
.done-toggle { border-color: var(--ink); color: var(--text); }
.weight-cat__badge { background: var(--ink); color: var(--ink-text); }
.backup__confirm { background: var(--accent-soft); border-color: var(--ink); }
.strip__h.is-ride { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--ink); }
/* Barre d'onglets : bande plate en bas, icône + libellé, actif en encre */
.tabbar { border-radius: 24px; padding: 4px; }
.tabbar__item { color: var(--text-3); font-size: 11px; font-weight: 600; min-height: 58px; padding-bottom: 8px; }
.tabbar__icon svg.i { width: 22px; height: 22px; stroke-width: 2; }
.tabbar__item[aria-selected="true"] { background: transparent; color: var(--text); font-weight: 700; }
.tabbar__item[aria-selected="true"]::after { content: ""; position: absolute; bottom: 3px; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
:root[data-theme="dark"] .tabbar__item[aria-selected="true"] { color: var(--accent-text); }

/* Courses : étoile = présélection (sur l'appareil), bouton = envoi vers Cadence */
.race.is-short { box-shadow: inset 0 0 0 2px var(--accent); background: var(--surface); }
.race__star { flex: none; align-self: flex-start; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 0; border-radius: 50%; color: var(--text-3); transition: color .2s var(--ease), transform .2s var(--ease); }
.race__star:active:not(:disabled) { transform: scale(.88); }
.race__star[aria-pressed="true"] { color: var(--accent); }
.race__star[aria-pressed="true"] svg { fill: currentColor; }
.race__cal { width: 40px; padding: 0; }
.race__cal.is-added { color: var(--tail); opacity: 1; cursor: default; }
