:root {
  --bg: #f4f6f5;
  --card: #fff;
  --text: #1d2521;
  --muted: #6b7570;
  --line: #e2e7e4;
  --accent: #10b981;
  --accent-ink: #047857;
  --accent-soft: #d1fae5;
  --warn: #f59e0b;
  --warn-ink: #92400e;
  --warn-soft: #fef3c7;
  --bad: #ef4444;
  --bad-soft: #fee2e2;
  --run: #3b82f6;
  --bar-bg: rgba(244, 246, 245, .92);
  --tabbar: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111614;
    --card: #1b2220;
    --text: #e6ece9;
    --muted: #93a09a;
    --line: #2b3431;
    --accent-ink: #6ee7b7;
    --accent-soft: #134e3a;
    --warn-ink: #fcd34d;
    --warn-soft: #4a3510;
    --bad-soft: #4c1d1d;
    --run: #60a5fa;
    --bar-bg: rgba(17, 22, 20, .92);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }

/* ------------------------------------------------------------ en-tête : le jour, la semaine */
.top {
  position: sticky; top: 0; z-index: 5;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  border-bottom: 1px solid var(--line);
}
.top, .tabbar, .composer { background: var(--bar-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.dayline, .strip { max-width: 560px; margin: 0 auto; }
.dayline { display: flex; align-items: center; gap: 8px; }
.day { flex: 1; text-align: center; font-weight: 600; line-height: 1.25; }
#dayLabel::first-letter { text-transform: uppercase; }
.nav {
  border: 1px solid var(--line); background: var(--card);
  width: 36px; height: 36px; border-radius: 10px; font-size: 20px; line-height: 1; flex: none;
}
.nav:disabled { opacity: .35; }
.nav.small { width: 32px; height: 32px; font-size: 18px; }
.link { border: 0; background: none; color: var(--accent-ink); font-size: 13px; padding: 0; }
.sync { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
/* À jour : rien à signaler, le point s'efface (sa place reste, le jour ne bouge pas). */
.sync.ok { visibility: hidden; }
.sync.pending { background: var(--warn); }
.sync.off { background: var(--bad); }

.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.strip button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 0; background: none; border-radius: 12px; padding: 4px 0 6px;
  font-size: 11px; color: var(--muted);
}
.strip button b { font-size: 16px; color: var(--text); font-weight: 600; }
.strip button.today:not(.sel) { box-shadow: inset 0 0 0 1.5px var(--text); }
.strip button.sel { background: var(--text); color: var(--bg); }
.strip button.sel b { color: var(--bg); }
.strip button:disabled { opacity: .4; }
.marks { display: flex; gap: 3px; height: 7px; }
.marks i { width: 7px; height: 7px; border-radius: 50%; }
.marks .r { background: var(--accent); }
.marks .rp { box-shadow: inset 0 0 0 1.5px var(--accent); }
.marks .c { background: var(--run); }
.marks .p { background: var(--bad); }

/* ------------------------------------------------------------ onglets */
main { max-width: 560px; margin: 0 auto; padding: 4px 16px calc(var(--tabbar) + env(safe-area-inset-bottom) + 24px); }
.view { display: none; }
.view.on { display: block; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding: 6px max(6px, env(safe-area-inset-left)) env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
}
.tabbar button {
  border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 500; color: var(--muted); padding: 2px 0;
}
.tabbar button.on { color: var(--accent-ink); }
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.on svg { stroke-width: 2.2; }

/* ------------------------------------------------------------ cartes */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; margin: 12px 0;
}
h2 { font-size: 17px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
h2 small { color: var(--muted); font-weight: 500; font-size: 14px; }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lock { border-color: var(--bad); }
.alert { background: var(--bad-soft); border-color: var(--bad); font-size: 15px; }
.alert b { display: block; margin-bottom: 2px; }
.aside { font-size: 13px; color: var(--muted); margin-top: 8px; }
.aside.late { color: var(--warn-ink); font-weight: 600; }
.course .ok { color: var(--accent-ink); }
.course .ko { color: var(--bad); }
.kmbar { display: block; height: 8px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.kmbar > * { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.tool {
  border: 1.5px solid var(--accent); color: var(--accent-ink); background: transparent;
  border-radius: 10px; padding: 6px 10px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.tool.play { flex: none; width: 42px; height: 42px; border-radius: 50%; padding: 0; display: grid; place-items: center; }
.tool.play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.empty { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------ le coach */
.coach .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.coach .head span:last-child { font-size: 13px; color: var(--muted); }
.coach .lead { font-size: 17px; font-weight: 650; line-height: 1.35; margin: 0; }
.coach ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.coach li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 15px; line-height: 1.35; }
.coach li i {
  font-style: normal; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted);
}
.coach li.plus i { background: var(--accent-soft); color: var(--accent-ink); }
.coach li.watch i { background: var(--warn-soft); color: var(--warn-ink); }
.coach .next { margin-top: 12px; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.coach .next .lbl { color: var(--accent-ink); display: block; margin-bottom: 2px; }
.coach em, #fil .msg em { font-style: normal; font-weight: 650; }
#note { cursor: pointer; }
#note .reply { font-size: 13px; color: var(--accent-ink); font-weight: 600; margin-top: 10px; }

/* ------------------------------------------------------------ le fil avec le coach */
/* Sans le bandeau de la semaine : le fil prend la hauteur, la saisie reste au-dessus des onglets. */
body.chat .top { display: none; }
body.chat main { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 84px); padding-top: calc(env(safe-area-inset-top) + 4px); }
#fil { display: flex; flex-direction: column; gap: 10px; }
#fil .when { align-self: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
#fil .when::first-letter { text-transform: uppercase; }
#fil .msg { max-width: 88%; border-radius: 16px; padding: 10px 13px; font-size: 15.5px; line-height: 1.4; }
#fil .msg p { margin: 0 0 8px; }
#fil .msg p:last-child, #fil .msg ul:last-child { margin-bottom: 0; }
#fil .msg ul { margin: 0 0 8px; padding-left: 18px; }
#fil .msg time { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
#fil .ivan { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; }
#fil .ivan time { color: rgba(255, 255, 255, .8); text-align: right; }
#fil .coach-msg { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
#fil .card.coach { margin: 0; max-width: 94%; align-self: flex-start; border-bottom-left-radius: 5px; }
#fil .acts { list-style: none; padding: 8px 0 0; margin: 8px 0 0; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--accent-ink); }
#fil .acts li::before { content: '✓ '; font-weight: 700; }
#fil .acts li.warn { color: var(--warn-ink); }
#fil .acts li.warn::before { content: '! '; }
#fil .doing { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
/* Trois points de taille fixe qui s'allument tour à tour : la bulle ne bouge pas (des points qui
   s'ajoutaient l'un après l'autre la faisaient grandir et rétrécir au même rythme). */
#fil .doing .dots { display: inline-flex; gap: 3px; }
#fil .doing .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .25; animation: dot 1.2s infinite; }
#fil .doing .dots i:nth-child(2) { animation-delay: .2s; }
#fil .doing .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 30% { opacity: 1 } 60%, 100% { opacity: .25 } }
#fil .off { font-size: 13px; color: var(--muted); font-style: italic; }
#fil .empty { text-align: center; margin: 30px 10px; }
.composer {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); z-index: 6;
  display: flex; gap: 8px; align-items: flex-end; padding: 8px max(12px, calc(50% - 268px));
  border-top: 1px solid var(--line);
}
body:not(.chat) .composer { display: none; }
.composer textarea {
  flex: 1; resize: none; max-height: 160px; border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px;
  background: var(--card); color: var(--text); font: inherit; font-size: 16px; line-height: 1.35;
}
.composer button {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.composer button:disabled { opacity: .4; }
.composer button svg { width: 20px; height: 20px; fill: currentColor; }
.composer button .send { margin-left: 3px; } /* l'avion pointe à droite : recentré à l'œil */
.composer button .halt, .composer button.stop .send { display: none; }
.composer button.stop .halt { display: block; }

/* ------------------------------------------------------------ tuiles d'aujourd'hui */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.tiles:empty { display: none; }
.tile {
  margin: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
}
.tile .big { font-size: 26px; font-weight: 700; line-height: 1.1; }
.tile .big small { font-size: 15px; color: var(--muted); font-weight: 500; }
.tile .sub { font-size: 13px; color: var(--muted); line-height: 1.3; }
.tile:only-child { grid-column: 1 / -1; }

/* ------------------------------------------------------------ récupération */
.recup .tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; }
.recup .n { font-size: 19px; font-weight: 700; }
.recup .l { font-size: 12px; color: var(--muted); }
.recup .s { font-size: 11px; color: var(--muted); line-height: 1.25; margin-top: 2px; }

/* ------------------------------------------------------------ douleur */
.pain { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pain > span { width: 58px; font-size: 14px; }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; flex: 1; }
.scale button {
  border: 1px solid var(--line); background: var(--bg); border-radius: 7px;
  padding: 6px 0; font-size: 13px;
}
.scale button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.scale button.on.mid { background: var(--warn); border-color: var(--warn); }
.scale button.on.high { background: var(--bad); border-color: var(--bad); }
/* Courbatures : pas un signal de blessure, une seule couleur quelle que soit la note. */
.pain.soft .scale button.on, .pain.soft .scale button.on.mid, .pain.soft .scale button.on.high { background: var(--muted); border-color: var(--muted); }
.pain.soft { border-top: 1px dashed var(--line); padding-top: 8px; }
#painNote {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  background: var(--bg); font: inherit; font-size: 16px;
}
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* ------------------------------------------------------------ routine */
.rhead { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.rhead .kmbar { flex: 1; }
.rhead small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.sessions .dots { white-space: nowrap; }
.sessions i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 3px; box-shadow: inset 0 0 0 1.5px var(--accent); }
.sessions i:first-child { margin-left: 2px; }
.sessions i.on { background: var(--accent); }
.ex { border-top: 1px solid var(--line); padding: 11px 0; }
.ex .row { display: flex; align-items: center; gap: 12px; }
.ex input[type=checkbox] { width: 26px; height: 26px; accent-color: var(--accent); flex: none; margin: 0; }
.ex .name { flex: 1; cursor: pointer; }
.ex .title { font-weight: 550; line-height: 1.25; }
.ex .presc { display: block; color: var(--muted); font-size: 14px; }
.ex.done .title { text-decoration: line-through; color: var(--muted); }
.ex .new { color: var(--accent-ink); font-weight: 600; }
.ex .opt { white-space: nowrap; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; margin-left: 6px; font-weight: 400; }
.rname { cursor: pointer; }
.rdesc { margin: -4px 0 12px; }
.ex .more { margin: 8px 0 0 38px; font-size: 14px; color: var(--muted); }
.ex .more p { margin: 0 0 6px; }
.ex .more b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ course */
.course .kmline { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 0 8px; }
.course .kmline b { font-size: 24px; }
.course .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.course .tag { font-size: 12.5px; border-radius: 999px; padding: 1px 9px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.course .plan { display: grid; grid-template-columns: 104px 1fr; gap: 10px; font-size: 15px; padding: 6px 0; border-top: 1px solid var(--line); }
.course .plan > span:first-child { color: var(--muted); }
.course .plan small { color: var(--muted); }
.course h3 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 2px; }
.course .poste { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: baseline; font-size: 15px; padding: 7px 0; border-top: 1px solid var(--line); }
.course h3 + .poste, .course h2 + .plan { border-top: 0; }
.course .poste .mark { color: var(--muted); }
.course .poste.done .mark { color: var(--accent-ink); font-weight: 700; }
.course .poste b { font-weight: 600; }
.course .poste small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 1px; }
.course .poste small.fait { color: var(--accent-ink); }
.course .poste .km { white-space: nowrap; font-weight: 600; }
.course .effort { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; }
.course .effort .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.course .effort .head span { color: var(--muted); }
.course .effort .head b { color: var(--accent-ink); font-weight: 650; }
.course .effort.ko .head b { color: var(--bad); }
/* Vert : sous le plafond ; orange : au-dessus (les séances en ont, c'est la part qui compte). */
.course .effort .bar { position: relative; height: 10px; border-radius: 5px; background: var(--warn); margin: 9px 0 5px; }
.course .effort .bar span { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.course .effort .bar i { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.course .effort .legend { font-size: 13px; color: var(--muted); }
.course .gloss { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.35; }
.course .run { display: grid; grid-template-columns: 1.1fr 1fr 1fr .9fr; gap: 6px; font-size: 15px; padding: 7px 0; border-top: 1px solid var(--line); }
.course .run:first-of-type { border-top: 0; }
.course .run span:first-child { text-transform: capitalize; }
.course .run.sel span:first-child { font-weight: 650; }
/* Une sortie se déplie : ses kilomètres, la météo, ses records. */
.course button.run { width: 100%; grid-template-columns: 1.1fr 1fr 1fr .9fr 10px; background: none; border: 0;
  border-top: 1px solid var(--line); color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.course .run .chev { color: var(--muted); text-align: right; transition: transform .15s; }
.course .run.open .chev { transform: rotate(90deg); }
.course .run-more { padding: 0 0 10px; }
.course .run-more .record { font-size: 14px; font-weight: 600; color: var(--accent-ink); margin: 0 0 4px; }
.course .run-more .aside { margin-top: 0; }
.course table.kms { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; margin-top: 8px; }
.course table.kms th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; padding: 2px 4px; }
.course table.kms td { text-align: right; padding: 3px 4px; border-top: 1px solid var(--line); }
.course table.kms th:first-child, .course table.kms td:first-child { text-align: left; }
.course table.kms tr.part td { color: var(--muted); }
.course .rec { display: grid; grid-template-columns: .9fr 1.3fr 1.3fr; gap: 8px; font-size: 15px; padding: 6px 0;
  border-top: 1px solid var(--line); align-items: baseline; }
.course .rec.head { font-size: 12px; color: var(--muted); border-top: 0; padding-bottom: 0; }
.course .rec b, .course .rec .link { font-size: 15px; font-weight: 600; color: inherit; font-variant-numeric: tabular-nums; }
.course .rec small { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.course .rec .none { color: var(--muted); }
.course .shoe { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; padding: 6px 0; border-top: 1px solid var(--line); }
.course .shoe:first-of-type { border-top: 0; }
.course .shoe small { display: block; color: var(--muted); font-size: 13px; }
.course .shoe b { white-space: nowrap; }
.race { font-size: 14px; color: var(--muted); margin: 0 4px 12px; }
.race div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.race b { color: var(--text); }
.race p { margin: 2px 0 0; }

.fchart { margin: 6px 0 2px; }
.fchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.fchart path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fchart path.second { stroke-dasharray: 4 3; stroke-width: 1.6; opacity: .75; }
.fchart .pt circle { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.fchart .pt circle.hit, .fchart .wk rect.hit { fill: transparent; stroke: none; cursor: pointer; }
.fchart .pt.sel circle:not(.hit) { fill: var(--card); stroke: var(--accent); stroke-width: 2.5; }
.fchart .grid { stroke: var(--line); stroke-width: 1; }
.fchart .ax { font-size: 10px; fill: var(--muted); }
.fchart .wk rect.km { fill: var(--accent-soft); }
.fchart .wk.sel rect.km { fill: var(--accent); }
.fchart .wk line.goal { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.fchart figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------ suivi */
.history { display: flex; gap: 6px; align-items: stretch; height: 84px; margin: 6px 0 4px; }
.history div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.history span { font-size: 12px; color: var(--muted); }
.history i { display: block; width: 100%; background: var(--accent-soft); border-radius: 4px 4px 0 0; }
.history .met i { background: var(--accent); }
.history .cur span { color: var(--text); font-weight: 700; }
.history-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-weight: 600; }
#monthLabel::first-letter { text-transform: uppercase; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar .h { font-size: 11px; color: var(--muted); text-align: center; }
.calendar button {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: transparent;
  font-size: 13px; padding: 0; position: relative;
}
.calendar button:disabled { opacity: .4; }
.calendar button.sel { outline: 2px solid var(--text); }
.calendar button.run::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--run);
}
.install { margin: 22px 4px 0; }
.install .tool { margin-right: 8px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

/* ------------------------------------------------------------ minuteur et cadence, plein écran */
.overlay[hidden] { display: none; }
/* Une carte verte sur le fond de l'appli, pas un plein écran vert : la barre de navigation
   d'Android garde la couleur du manifeste (#f4f6f5) et faisait une bande claire sous le vert.
   La marge claire autour de la carte la prolonge. */
.overlay {
  position: fixed; inset: 0; z-index: 10; background: var(--bg); display: flex; flex-direction: column;
  text-align: center; padding: calc(env(safe-area-inset-top) + 10px) 10px env(safe-area-inset-bottom);
}
.overlay .panel {
  --panel: var(--accent); flex: 1; border-radius: 28px; background: var(--panel); color: #fff; padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.overlay.alt .panel { --panel: rgb(4, 120, 87); } /* une répétition sur deux, pour les distinguer de loin */
.overlay .big { font-size: 88px; font-weight: 700; line-height: 1; }
.overlay .big small { font-size: 40px; font-weight: 600; opacity: .75; }
/* Une seule ligne, coupée au besoin : le libellé ne doit pas faire sauter l'écran d'une phase à l'autre. */
.overlay .sub { font-size: 20px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overlay .cad { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.overlay .icon { width: 180px; height: 180px; }
.overlay .icon svg { width: 100%; height: 100%; }
.overlay .phase { font-size: 44px; white-space: nowrap; font-weight: 700; height: 1.2em; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.overlay .where { font-size: 26px; font-weight: 700; padding: 4px 16px; border-radius: 999px; background: rgba(255, 255, 255, .22); white-space: nowrap; }
.overlay .where[hidden] { visibility: hidden; display: block; }
.overlay .phint { font-size: 20px; height: 1.3em; opacity: .9; }
.overlay .skip { border: 2px solid #fff; background: transparent; color: #fff; border-radius: 10px; padding: 8px 22px; font-size: 18px; }
.overlay .skip[hidden] { visibility: hidden; display: block; }
.overlay .bar { position: relative; width: min(320px, 80%); height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.overlay .bar i { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--panel); } /* entre deux phases */
.overlay .bar div { height: 100%; background: #fff; border-radius: 5px; transform: scaleX(0); transform-origin: left; }
.overlay .tap { padding: 20px 0; line-height: 20px; color: var(--muted); font-size: 14px; }
