/* Briques de mise en page pour le CONTENU des écrans (enfants de <mm-device>, donc dans le DOM clair : ce fichier les stylise).
   Convention : un écran = <section class="sv"> … </section>. Tout est lisible sans JS et sans mm-device (testable seul). */

.sv {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-3) var(--s-3) var(--s-3); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  color: var(--c-ink); font-family: var(--font-ui); font-size: var(--fs-m); line-height: var(--lh-body);
  scrollbar-width: thin; scrollbar-color: var(--c-line-strong) transparent;
}
.sv > * { flex: none; }
.sv-grow { flex: 1 1 auto !important; min-height: 0; }

/* Entête = bandeau LCD plein (encre sur écran inversé) : retour à gauche, titre, étoiles en pixels à droite ; 44 px minimum pour les contrôles */
.sv-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-2) 0 var(--s-3); border-radius: var(--r-lcd); background: var(--c-band); color: var(--c-screen); }
.sv-top .sv-title { color: inherit; }
.sv-top mm-stars, .sv-top .sv-eyebrow, .sv-top .sv-sub { color: inherit; }
.sv-title { font: 600 var(--fs-l)/1.15 var(--font-display); letter-spacing: .005em; min-width: 0; text-wrap: balance; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.sv-top > .sv-title { flex: 1 1 auto; }
.sv-top > mm-stars, .sv-top > .stars-slot { flex: none; }
.sv-sub { color: var(--c-ink-2); font-size: var(--fs-s); }
.sv-eyebrow { font: 650 var(--fs-s)/1.2 var(--font-ui); letter-spacing: .01em; text-transform: none; color: var(--c-ink-2); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Scène du personnage : la bulle est dans le flux, AU-DESSUS de la zone du personnage (jamais dessus). La zone du perso fait ≥ 140 px. */
.sv-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); min-height: 188px; border-radius: var(--r-l); }
.sv-stage mm-bubble { position: relative; z-index: 2; flex: none; width: min(100%, 24rem); }
.sv-stage mm-bubble[hidden] { display: none; }
.sv-stage mm-pet { --pet-size: min(220px, 62%); }
.sv-stage mm-pet[stage] { position: relative; flex: 1 1 0; width: 100%; min-height: 140px; aspect-ratio: auto; --pet-size: auto; border-radius: var(--r-l); }

/* Rangée d'actions */
.sv-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s-2); }
.sv-actions.stack { grid-auto-flow: row; }

/* Carte */
.card {
  background: var(--c-card); border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-lcd); padding: var(--s-3) var(--s-4);
  box-shadow: 3px 3px 0 var(--c-lcd-off);
}
.card h3 { font-size: var(--fs-m); }
.card p + p { margin-top: var(--s-2); }

/* Liste de lignes tactiles (≥ 48 px) : réglages, journal… */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; padding: var(--s-2) var(--s-4);
  border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-lcd); background: var(--c-card); color: inherit; text-align: left; width: 100%;
  font: inherit; text-decoration: none;
}
button.row, a.row { cursor: pointer; }
/* Curseur de liste : la ligne s'inverse d'un coup (aucune transition), comme un vrai LCD */
button.row:focus-visible, a.row:focus-visible, button.row:active, a.row:active { background: var(--c-band); color: var(--c-screen); border-color: var(--c-band); }
button.row:focus-visible small, a.row:focus-visible small { color: inherit; }
.row small { display: block; color: var(--c-ink-2); font-size: var(--fs-s); }

/* Pastille de choix (humeur, filtres de boutique) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  appearance: none; display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0 var(--s-4);
  border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-lcd); background: var(--c-card); color: var(--c-ink); font: 600 var(--fs-s) var(--font-ui);
}
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--c-band); color: var(--c-screen); border-color: var(--c-band); }

/* Formulaire : étiquette visible, champ 16 px (pas de zoom iOS), aide et erreur reliées par aria-describedby */
.field { display: grid; gap: var(--s-1); }
.field label { font-weight: 650; font-size: var(--fs-s); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 var(--s-3); border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-lcd); background: var(--c-card-2); color: var(--c-ink);
}
.field textarea { padding: var(--s-3); min-height: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; }
.field .hint { color: var(--c-ink-2); font-size: var(--fs-xs); }
.field .err { color: var(--c-accent); font-size: var(--fs-s); font-weight: 600; }
.field [aria-invalid="true"] { border-color: var(--c-accent); }

/* Interrupteur (case à cocher habillée) */
.switch { position: relative; display: inline-block; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: var(--r-lcd); background: var(--c-card-2); border: var(--bw) solid var(--c-line-strong); transition: background var(--dur-2); }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 3px; background: var(--c-ink-2); transition: transform var(--dur-2) var(--ease-out), background var(--dur-2); }
.switch input:checked + i { background: var(--c-accent); border-color: var(--c-accent); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--c-accent-ink); }
.switch input:focus-visible + i { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* Tuile d'objet (boutique, garde-robe) */
.grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s-2); }
.item-tile {
  appearance: none; position: relative; display: grid; justify-items: center; align-content: start; gap: var(--s-1); padding: var(--s-2); min-height: 132px;
  border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-lcd); background: var(--c-card); color: var(--c-ink); font: 600 var(--fs-xs)/1.2 var(--font-ui); text-align: center;
}
.item-tile svg { width: 72px; height: 62px; }
.item-tile[aria-pressed="true"] { border-color: var(--c-accent); box-shadow: inset 0 0 0 2px var(--c-accent); }
.item-tile .price { font: 700 var(--fs-xs) var(--font-mono); color: var(--c-ink-2); }
.item-tile:disabled { opacity: .6; }

/* Bandeau d'état (hors ligne, information douce) : jamais rouge alarme, jamais culpabilisant */
.banner { display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-2) var(--s-3); border-radius: var(--r-lcd); background: var(--c-card-2); border: var(--bw) dashed var(--c-line-strong); font-size: var(--fs-s); }

/* États vides et chargement (squelette) */
.empty { display: grid; justify-items: center; gap: var(--s-2); text-align: center; padding: var(--s-5) var(--s-3); color: var(--c-ink-2); }
.empty strong { color: var(--c-ink); font: 650 var(--fs-m) var(--font-display); }
.skel { display: block; border-radius: var(--r-s); background: linear-gradient(90deg, var(--c-card) 0%, var(--c-card-2) 50%, var(--c-card) 100%) 0 0 / 200% 100%; animation: skel 1.4s linear infinite; min-height: 1em; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="full"]) .skel { animation: none; } }
:root[data-motion="reduce"] .skel { animation: none; }

/* Pastille de nombre / étiquette */
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 .6em; border-radius: var(--r-lcd); background: var(--c-band); color: var(--c-screen); font: 700 var(--fs-s) var(--font-ui); font-variant-numeric: tabular-nums; }
.tag.soft { background: var(--c-card-2); color: var(--c-ink); border: var(--bw) solid var(--c-line-strong); }

/* Texte courant (page « Ce que l'app ne fait jamais », etc.) */
.prose { max-width: 36ch; }
.prose p + p { margin-top: var(--s-3); }

/* Survols souris uniquement */
@media (hover: hover) and (pointer: fine) {
  button.row:hover, a.row:hover, .chip:hover, .item-tile:hover { border-color: var(--c-ink); }
}

/* ───────────────────────── Application (écrans solo) ───────────────────────── */
.app-body { display: grid; place-items: center; min-height: 100dvh; padding: 0; }
.app-main { width: 100%; display: grid; place-items: center; padding: var(--s-3) 0; }
@media (min-width: 520px) {
  /* L'appareil grandit avec la hauteur de la fenêtre (largeur = hauteur × 0,82 : œuf 100 × 122), plafonnée, et le texte avec lui (rem), sans zoom. */
  mm-device { width: min(calc(100% - 24px), 860px, calc((100dvh - 28px) * .82)); }
  html { font-size: clamp(16px, 1.6vh, 21px); }
  :root[data-bigtext="on"] { font-size: calc(clamp(16px, 1.6vh, 21px) * 1.1875); }
}
/* Téléphone : l'œuf (100 × 176) occupe toute la largeur, centré ; sa hauteur est bornée par celle de l'écran */
@media (max-width: 519px) {
  .app-main { padding: 4px 0; }
  mm-device { width: min(calc(100% - 8px), calc((100dvh - 8px) / 1.88)); }
}
.skip { position: absolute; left: -999px; top: 0; z-index: 100; display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); background: var(--c-page-ink); color: var(--c-page); padding: 0 var(--s-4); border-radius: var(--r-s); }
.skip:focus { left: var(--s-2); top: var(--s-2); }
.no-js { padding: var(--s-5); text-align: center; }
.boot-skel { height: 120px; border-radius: var(--r-l); }

.sv > .enter, .sv.enter { animation: sv-in var(--dur-2) var(--ease-out); }
@keyframes sv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sv-title.big { font-size: var(--fs-xl); }
.sv-title:focus { outline: none; }
.sv-title:focus-visible { outline: none; box-shadow: none; }   /* un titre n'est pas un contrôle : focalisé par programme (lecteurs d'écran), sans cadre */
.sv-sub.strong { font-weight: 650; color: var(--c-ink); }
/* Travailler, Balade, Mon carnet : espacement entre les blocs (ces classes n'avaient aucun style) */
.tb-zone, .tb-corps, .tb-recit { display: flex; flex-direction: column; gap: var(--s-3); }
.tb-zone .hint, .tb-corps .hint { color: var(--c-ink-2); font-size: var(--fs-s); margin: 0; }
.tb-corps h2, .tb-corps .tb-lettre { margin-top: var(--s-2); }
.lead { font-size: var(--fs-m); color: var(--c-ink); max-width: 40ch; }
.grow { flex: 1 1 auto !important; }
.top-left { display: flex; align-items: center; gap: var(--s-1); min-width: 0; flex: 1 1 auto; }
.back-btn { appearance: none; display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: none; margin-left: -8px; border: 0; border-radius: var(--r-lcd); background: transparent; color: inherit; }
.back-btn:active { background: color-mix(in srgb, var(--c-screen) 22%, transparent); }
.ico { display: inline-grid; place-items: center; flex: none; }
.art { display: grid; place-items: center; width: 72px; height: 62px; }
.none-art { font-size: 28px; color: var(--c-ink-2); }
.nm { overflow-wrap: anywhere; }
.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: calc(-1 * var(--s-3)); padding-inline: var(--s-3); }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x .chip { flex: none; }
.chip.small { min-height: 44px; font-size: var(--fs-xs); }
.chip:focus-visible, .item-tile:focus-visible, .care-btn:focus-visible, .mood-btn:focus-visible, .pick-card:focus-visible, .row:focus-visible, .back-btn:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* Pixels de l'écran (SVG de _lcd.js) */
.pix { display: block; height: var(--pix-h, 1em); width: auto; flex: none; }

/* ───── Accueil : tout est DANS l'écran LCD ─────
   bandeau d'icônes en haut · scène (personnage + bulle) · ligne d'état en pixels · bandeau d'icônes en bas · légende du curseur */
.sv-home { gap: var(--s-1); padding: var(--s-3) var(--s-3) var(--s-2); }
.sv-home .hello { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* titre lu par les lecteurs d'écran ; la bulle le dit aux autres */
.lcd-strip { display: block; border-radius: var(--r-lcd); }
.lcd-strip mm-menu-icons { display: block; }
.lcd-strip.top { border-bottom: 2px dashed var(--c-line); padding-bottom: 2px; }
.lcd-strip.bottom { border-top: 2px dashed var(--c-line); padding-top: 2px; margin-top: auto; }
.sv-home .sv-stage { flex: 1 1 auto; min-height: 0; padding: var(--s-1) 0; gap: var(--s-1); }
.sv-home .sv-stage mm-bubble { font-size: var(--fs-s); }
.sv-home .sv-stage mm-pet[stage] { min-height: 120px; --pet-fill: 112%; }   /* le sprite a de la marge transparente en haut : on l'agrandit sans rogner la tête */
.lcd-status { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 30px; padding: 0 var(--s-1); font: 700 var(--fs-s)/1 var(--font-display); color: var(--c-ink); }
.lcd-stat { display: inline-flex; align-items: center; gap: .45em; min-height: 30px; color: inherit; --pix-h: .95em; }
.lcd-stat .pix { height: var(--pix-h); }
.lcd-stat .ico7 { --pix-h: 1.15em; }
.lcd-stat .t { display: flex; --pix-h: .85em; }
/* Jauge à segments : un segment par soin du jour (nourrir, câliner, jouer) ; allumé = fait aujourd'hui */
.gauge { display: inline-flex; gap: 3px; align-items: center; }
.gauge i { display: block; width: 10px; height: 14px; background: var(--c-lcd-off); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.gauge i.on { background: var(--c-ink); box-shadow: none; }
.lcd-caption { text-align: center; min-height: 1.2em; font: 600 var(--fs-xs)/1.2 var(--font-display); letter-spacing: .04em; color: var(--c-ink-2); }
/* Fenêtre basse : le personnage passe À CÔTÉ de la bulle (jamais dessous), pour garder une zone perso ≥ 120 px */
@media (min-width: 520px) and (max-height: 820px) {
  .sv-stage:not(.wardrobe-stage):not(.mood-stage) { flex-direction: row; align-items: stretch; gap: var(--s-3); min-height: 0; }
  .sv-stage:not(.wardrobe-stage):not(.mood-stage) mm-bubble { order: 2; flex: 1 1 auto; width: auto; align-self: center; font-size: var(--fs-s); }
  .sv-stage:not(.wardrobe-stage):not(.mood-stage) mm-pet[stage] { order: 1; flex: 0 0 min(190px, 46%); width: min(190px, 46%); min-height: 0; }
}
.home-extra { display: grid; gap: var(--s-2); }
.home-extra:empty { display: none; }
.offer { background: var(--c-card-2); }
.offer p { margin-bottom: var(--s-2); font-size: var(--fs-s); }

/* Accueil des nouveaux : choix du compagnon */
.pick { display: grid; gap: var(--s-2); }
.pick-card {
  appearance: none; display: grid; grid-template-columns: 72px 1fr; grid-template-areas: "img name" "img intro"; column-gap: var(--s-3); align-items: center; text-align: left;
  min-height: 88px; padding: var(--s-2) var(--s-3); border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-lcd); background: var(--c-card); color: var(--c-ink);
}
.pick-card[aria-checked="true"] { border-color: var(--c-accent); box-shadow: inset 0 0 0 2px var(--c-accent); background: var(--c-card-2); }
.portrait { grid-area: img; width: 72px; height: 72px; border-radius: var(--r-lcd); object-fit: contain; background: var(--c-card); }
.pick-name { grid-area: name; font: 650 var(--fs-m) var(--font-display); align-self: end; }
.pick-intro { grid-area: intro; font-size: var(--fs-s); color: var(--c-ink-2); align-self: start; }
.ready-line { text-align: center; font: 600 var(--fs-m) var(--font-display); }

/* Soins : trois gestes en cellules de LCD ; la cellule faite aujourd'hui s'éteint (aucun reproche) */
.care-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.care-btn {
  appearance: none; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 84px; padding: var(--s-2); border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-lcd);
  background: var(--c-card); color: var(--c-ink); box-shadow: 3px 3px 0 var(--c-lcd-off);
}
.care-btn:active, .care-btn:focus-visible { background: var(--c-band); color: var(--c-screen); border-color: var(--c-band); box-shadow: none; }
.care-btn[aria-disabled="true"] { background: transparent; color: var(--c-ink-2); box-shadow: none; border-style: solid; }
.care-label { font: 600 var(--fs-s) var(--font-display); }
.care-state { font: 600 var(--fs-xs) var(--font-ui); color: inherit; opacity: .9; }
.care-btn[aria-disabled="true"] .care-state { opacity: 1; }
.sv-care { gap: var(--s-2); }

/* Humeur */
.mood-stage { flex: 0 0 auto !important; flex-direction: row; align-items: center; gap: var(--s-3); min-height: 104px; height: 104px; }
.mood-stage mm-pet[stage] { order: -1; flex: 0 0 104px; width: 104px; min-height: 0; height: 104px; }
.mood-stage mm-bubble { flex: 1 1 auto; width: auto; min-width: 0; font-size: var(--fs-s); }
.sv-mood { gap: var(--s-2); }
.sv-mood .card.journal { margin-top: var(--s-1); }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.mood-btn {
  appearance: none; display: grid; justify-items: center; gap: 2px; min-height: 64px; padding: var(--s-1) var(--s-2); border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-lcd);
  background: var(--c-card); color: var(--c-ink); font: 600 var(--fs-s) var(--font-ui);
}
.mood-btn[aria-checked="true"] { border-color: var(--c-accent); box-shadow: inset 0 0 0 2px var(--c-accent); background: var(--c-card-2); }
.mood-ico { display: grid; place-items: center; width: 30px; height: 30px; color: var(--c-ink); }
.mood-btn[aria-checked="true"] .mood-ico { color: var(--c-accent); }
.journal { display: grid; gap: var(--s-2); }
.journal-row { min-height: 44px; }
.jt { white-space: pre-line; overflow-wrap: anywhere; }

/* Boutique, penderie */
.wardrobe-stage { flex: 0 0 auto !important; flex-direction: row; justify-content: center; align-items: center; gap: var(--s-3); height: 156px; min-height: 0; }
.wardrobe-stage mm-pet[stage] { order: -1; flex: 0 0 156px; width: 156px; height: 156px; min-height: 0; }
.wardrobe-stage mm-bubble { flex: 1 1 auto; width: auto; min-width: 0; font-size: var(--fs-s); }
.item-tile.owned .price { color: var(--c-good); }
.item-tile.poor .price { opacity: .85; }
.item-tile[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 4px; right: 8px; font-weight: 800; color: var(--c-accent); }
.preview { position: relative; height: clamp(96px, 18vh, 170px); border-radius: var(--r-m); overflow: hidden; background: var(--c-screen-2); margin-bottom: var(--s-2); }
.preview mm-pet { position: absolute; inset: 0; width: auto; aspect-ratio: auto; }
.preview-art { display: grid; place-items: center; margin-bottom: var(--s-2); }
.price-line { font-size: var(--fs-l); margin: var(--s-2) 0; }
.no-random { text-align: center; }
mm-sheet .field { margin-top: var(--s-2); }
.grid-items > .empty { grid-column: 1 / -1; }
.empty mm-button { margin-top: var(--s-2); }
.journal-saved { min-height: 1.4em; color: var(--c-good); font-weight: 650; }

/* Plus : tout est pleine largeur, avec de l'air entre l'aperçu, les prix et les boutons */
.plus-note { margin-block: var(--s-1); align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.plus-actions { margin-block: var(--s-2) var(--s-1); }
.sv-plus { gap: var(--s-4); }
.plan .sv-eyebrow { margin-top: var(--s-1); }
.plan { display: grid; gap: var(--s-1); }
.plan-name { font: 650 var(--fs-l) var(--font-display); }
.plan-price { font: 700 var(--fs-m) var(--font-mono); color: var(--c-ink); }
.card-title { font: 650 var(--fs-m) var(--font-display); margin-bottom: var(--s-2); }
.bullets, .steps { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-1); }
.shelf-sec { display: grid; gap: var(--s-2); }
.plus-tile { min-height: 190px; }

/* Réglages */
.settings-body { display: grid; gap: var(--s-3); }
.settings-body .card { display: grid; gap: var(--s-3); }
.settings-body .card-title { margin: 0; }
.setting-label { display: grid; flex: 1; cursor: pointer; }
.setting small { color: var(--c-ink-2); font-size: var(--fs-xs); }
.choice { display: grid; gap: var(--s-1); }
.choice-legend { font-weight: 650; font-size: var(--fs-s); }

/* Ce que l'app ne fait jamais */
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.promise { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3); border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-lcd); background: var(--c-card); }
.promise .ico { color: var(--c-good); margin-top: 2px; }
.promise p { color: var(--c-ink-2); font-size: var(--fs-s); }

.banner .ico { flex: none; }
mm-bubble { color: var(--c-ink); }
/* Les dessins d'objets ont des couleurs fixes : on les pose sur un fond clair neutre, lisible en clair comme en sombre */
.item-tile .art, .preview-art .art { background: light-dark(#fbf8f0, #e9e3d3); border-radius: var(--r-s); }
.item-tile .none-art { background: transparent; }
mm-sheet [slot="actions"] { flex: 1 1 0; min-width: 0; }
/* Les deux libellés d'une feuille tiennent sur une ligne */
mm-sheet [slot="actions"]::part(button) { padding-inline: 10px; font-size: 16px; white-space: nowrap; }


/* Boutique : liste sémantique ul > li > button. Aucun changement visuel : le li disparaît de la mise en page. */
ul.grid-items { list-style: none; margin: 0; padding: 0; }
.grid-items > .grid-li { display: contents; }
.grid-items > .grid-li > .empty { grid-column: 1 / -1; }

/* Balade : emplacement vide pendant la promenade, liste repliée ; états vides doux du carnet (repli sobre, style existant). */
.tb-place { margin: 0; min-height: 120px; display: grid; place-items: center; text-align: center; color: var(--c-ink-2); border: 2px dashed var(--t2, currentColor); border-radius: 20px; padding: var(--s-3); }
.tb-plus > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--c-ink-2); font-weight: 650; }
.tb-plus[open] > summary { margin-bottom: var(--s-2); }
.tb-corps .list > .empty, .sv-balade .list > .empty { padding: var(--s-2) var(--s-3); justify-items: start; text-align: left; font-size: var(--fs-s); }
/* Balade / carnet : la date reste sur une seule ligne, c'est le texte à gauche qui passe à la ligne. */
.sv-balade .row small, .tb-corps .row small { white-space: nowrap; flex: none; }
.sv-balade .row > span, .tb-corps .row > span { min-width: 0; }

/* Mise à jour disponible (ui/js/maj.js) : feuille mm-sheet, même style que les Réglages */
.maj-corps { display: grid; gap: var(--s-2); }
.maj-intro { margin: 0; }
.maj-titre-notes { margin: var(--s-2) 0 0; font: 650 var(--fs-m, 1rem)/1.2 var(--font-display); }
.maj-notes { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.maj-etat:empty { display: none; }
.maj-etat { margin: 0; font-weight: 600; }
