/* Mini-applis IZIPIZI — feuille de style du moteur d'exécution (mobile d'abord) */
:root {
  --c: #2F6FEB;
  --c-soft: color-mix(in srgb, var(--c) 12%, transparent);
  --c-mid: color-mix(in srgb, var(--c) 30%, transparent);
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --ink: #16181D;
  --muted: #5E6573;
  --line: #E4E7EC;
  --ok: #12966B;
  --warn: #C2410C;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1115; --card: #181B22; --ink: #EEF0F4; --muted: #A2A9B6; --line: #2A2F3A;
    --c-soft: color-mix(in srgb, var(--c) 20%, transparent); color-scheme: dark;
  }
}
:root[data-theme="dark"] { --bg: #0F1115; --card: #181B22; --ink: #EEF0F4; --muted: #A2A9B6; --line: #2A2F3A; --c-soft: color-mix(in srgb, var(--c) 20%, transparent); color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 1rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--c); }

.shell { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.qz-retour { box-sizing: content-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; padding: 0 14px; padding-top: env(safe-area-inset-top, 0px); font-size: 0.8125rem; background: var(--card); border-bottom: 1px solid var(--line); }
.qz-retour a { color: var(--ink); text-decoration: none; font-weight: 600; }
.qz-retour button { background: none; border: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1; cursor: pointer; padding: 4px; }
.qz-retour + .top { padding-top: 12px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--c); display: grid; place-items: center; font-size: 1.375rem; flex: none; }
.top h1 { font-size: 1.125rem; margin: 0; line-height: 1.2; flex: 1; min-width: 0; }
.top h1 .nom { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis; }   /* v1.0.2 : deux lignes avant d'être coupé */
.top .sub { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; font-size: 1.25rem; }
.iconbtn:hover { background: var(--c-soft); }

main { flex: 1; padding: 4px 16px calc(96px + var(--safe-b)); }
.view-title { font-size: 1.375rem; margin: 8px 0 12px; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 6px 8px calc(6px + var(--safe-b)); }
.tabs-in { display: flex; width: 100%; max-width: 560px; gap: 2px; }
.tab { flex: 1; min-width: 0; border: 0; background: transparent; padding: 6px 1px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; color: var(--muted); }
.tab .e { font-size: 1.25rem; line-height: 1.1; }
/* v1.0.2 — le libellé passe sur deux lignes avant d'être coupé ; s'il ne tient toujours pas, runtime.js prend le titre court (fitTabs) */
.tab .l { font-size: 0.6875rem; font-weight: 600; line-height: 1.2; max-width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: normal;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.tab[aria-selected="true"] { color: color-mix(in srgb, var(--c) 50%, var(--ink)); background: var(--c-soft); }   /* teinte de l'appli, éclaircie ou foncée selon le mode : lisible dans les deux */
.tab .dot { position: absolute; margin-left: 22px; margin-top: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
/* v1.0a — onglet d'une liste partagée : « 👥 2 » ; ligne modifiée en même temps sur deux téléphones */
.tab .partage-n { font-size: 0.625rem; font-weight: 700; line-height: 1; color: inherit; }
.conflit-note { margin: 4px 0 2px 34px; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 14%, transparent); }
.invitation-lignes li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.invitation-lignes li.done { text-decoration: line-through; color: var(--muted); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 0 0 12px; }
.card h2, .card h3 { margin: 0 0 8px; font-size: 1.0625rem; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--c-soft); color: var(--ink); font-size: 0.8125rem; font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 600; cursor: pointer; background: var(--c); color: #fff; text-decoration: none; min-height: 44px; }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--c-soft); color: var(--ink); }
.btn.line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.ok { background: var(--ok); }
.btn.warn { background: var(--warn); }
.btn.sm { padding: 8px 12px; min-height: 36px; font-size: 0.875rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: default; }

.progress { height: 10px; border-radius: 999px; background: var(--c-soft); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--c); border-radius: 999px; transition: width .4s; }
.big { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--c-soft); border-radius: 12px; padding: 10px; }
.kpi b { display: block; font-size: 1.25rem; }
.kpi span { font-size: 0.75rem; color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); cursor: pointer; user-select: none; }
.check:first-child { border-top: 0; }
.check input { width: 24px; height: 24px; accent-color: var(--c); flex: none; }
.check.done span { color: var(--muted); text-decoration: line-through; }

label.f { display: block; margin: 0 0 12px; }
label.f > span { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); min-height: 46px; }
.input:focus { outline: 2px solid var(--c); outline-offset: 1px; border-color: transparent; }
.rating { display: flex; gap: 6px; }
.rating button { flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 0; font-size: 1.125rem; cursor: pointer; }
.rating button.on { background: var(--c); color: #fff; border-color: var(--c); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.seg button.on { background: var(--c); color: #fff; border-color: var(--c); }

.sheet-bg { position: fixed; inset: 0; background: rgba(10, 12, 16, .45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; border-radius: 22px 22px 0 0; padding: 12px 16px calc(20px + var(--safe-b)); animation: up .2s ease-out; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
@keyframes fade { from { opacity: 0; } }

.banner { display: flex; gap: 12px; align-items: center; background: var(--c); color: #fff; border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; }
.banner .btn { background: #fff; color: var(--c); }
.banner p { margin: 0; font-size: 0.875rem; flex: 1; }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; z-index: 30; font-size: 0.875rem; box-shadow: var(--shadow); animation: fade .2s; max-width: 90vw; }

/* Minuteur */
.timer-face { display: grid; place-items: center; margin: 12px auto; width: min(78vw, 300px); aspect-ratio: 1; position: relative; }
.timer-face svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer-face .t { font-size: 4rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.timer-face .p { font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.phase-work { --ph: var(--c); }
.phase-rest { --ph: var(--ok); }
.phase-warm { --ph: #E08A00; }

/* Cartes mémoire */
.flash { min-height: 220px; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 28px 18px; }
.flash .front { font-size: 1.5rem; font-weight: 700; }
.flash .back { font-size: 1.125rem; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.opt { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px; margin: 0 0 8px; cursor: pointer; }
.opt.good { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--card)); }
.opt.bad { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--card)); }
.bar-row { white-space: nowrap; display: grid; grid-template-columns: 1fr 54px; gap: 8px; align-items: center; margin: 6px 0; font-size: 0.875rem; }
.level { display: inline-grid; place-items: center; min-width: 56px; height: 56px; border-radius: 16px; background: var(--c); color: #fff; font-weight: 800; font-size: 1.375rem; }

/* Boucle IZI */
.loop-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 92%, #000) 0%, var(--c) 60%, color-mix(in srgb, var(--c) 70%, #fff) 100%); color: #fff; }
.loop-hero .muted { color: rgba(255, 255, 255, .8); }
.gauge { width: 84px; height: 84px; flex: none; }
.sugg { border-left: 4px solid var(--c); }
.conf { height: 6px; border-radius: 3px; background: var(--c-soft); overflow: hidden; margin: 8px 0; position: relative; }
.conf > i { display: block; height: 100%; background: var(--c); }
.conf > b { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: .5; }
details summary { cursor: pointer; font-weight: 600; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .e { font-size: 2.5rem; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* Bande du programme (signature S5) */
.strip { display: flex; gap: 2px; align-items: flex-end; height: 24px; margin: 6px 0 12px; }
.strip i { flex: 1; height: 6px; background: var(--c-soft); border-radius: 2px; transition: height .3s; }
.strip i.d { background: var(--c); height: 12px; }
.strip i.m { background: color-mix(in srgb, var(--warn) 55%, transparent); }
.strip i.t { background: var(--ink); height: 20px; }
/* iZi */
.brief { border-left: 4px solid var(--c); }
.brief-i, .insight { padding: 8px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.brief-i:first-of-type, .insight:first-child { border-top: 0; }
h3.sec { margin: 20px 0 8px; font-size: 1rem; }
.fleet { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.expert { background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); opacity: .75; }
.expert.on { opacity: 1; outline: 1px solid var(--c-mid); }
.expert .e { font-size: 1.125rem; }
.answer { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--c-soft); font-size: 0.9375rem; }
.trace { margin: -2px 0 8px; opacity: .8; }
.mic.rec { background: var(--warn); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }

/* Outils du foyer (Tooly) */
.quick .input { min-height: 44px; }
.check .e, .prow .e { font-size: 1.25rem; }
.line-thumb { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex: none; cursor: pointer; }
.prow { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.prow:first-child { border-top: 0; }
.prow-top { display: flex; align-items: center; gap: 10px; }
.prow-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-left: 34px; }
.dl { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-top: 3px; }
.dl.urgent { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.dl.soon { background: color-mix(in srgb, #E08A00 18%, transparent); color: #A36300; }
.dl.fresh { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.recipe { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit; }
.recipe .e { font-size: 1.625rem; }
ol.steps { padding-left: 20px; } ol.steps li { margin: 8px 0; }

/* v0.15 — inventaires quantifiés (listes, frigo) */
.sortsel { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 0.8125rem; width: auto; }
.qline { display: flex; flex-direction: column; gap: 6px; padding: 10px 4px; border-top: 1px solid var(--line); }
.qline:first-child { border-top: 0; }
.qline-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.qline-top input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--c); flex: none; cursor: pointer; }
.qline-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-left: 36px; }
.qty-ctl { display: flex; align-items: center; gap: 2px; flex: none; }
.qty-ctl .iconbtn { width: 32px; height: 32px; font-size: 1rem; background: var(--c-soft); border-radius: 10px; }
.qty-ctl .chip { border: 0; cursor: pointer; font: inherit; min-width: 44px; text-align: center; }
.badge-low { display: inline-block; font-size: 0.6875rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); margin-left: 4px; vertical-align: middle; }
.cat-sub { padding: 10px 4px 2px; }
.cat-sub b { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.bal { padding: 8px 0; border-top: 1px solid var(--line); }
.bal:first-of-type { border-top: 0; }
.pos { color: var(--ok); } .neg { color: var(--warn); }
.day.today { outline: 2px solid var(--c); }
.ev { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; transition: background-color 1.6s ease, box-shadow 1.6s ease; }
.ev .t { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 48px; font-weight: 600; }
/* v0.16 — événement ajouté hors de la semaine affichée : l'agenda saute sur sa semaine et le met en évidence 2 s */
.ev.ev-new { background: var(--c-soft); box-shadow: inset 0 0 0 2px var(--c); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.lcard { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; color: inherit; }
.lcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.lcard span { font-size: 0.75rem; font-weight: 600; }
.qrbox { background: #fff; padding: 10px; border-radius: 14px; width: 200px; margin: 6px auto 12px; }
.qrbox svg { display: block; width: 100%; height: auto; }
.weekly .wl { padding: 6px 0; border-top: 1px solid var(--line); }
.weekly .wl:first-of-type { border-top: 0; }

.trialbar { background: #FFF4D6; color: #6B4E00; font-size: 0.8125rem; padding: 8px 14px; text-align: center; }

.nudge { border: 1px dashed var(--c); background: var(--c-soft); }
.demo-bar { display: flex; gap: 10px; align-items: center; background: #FFF4D6; color: #6B4E00; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-size: 0.875rem; }
.demo-bar .btn { white-space: nowrap; }

.guide { list-style: none; counter-reset: g; padding: 0; margin: 0 0 14px; display: grid; gap: 14px; }
.guide li { counter-increment: g; position: relative; padding-left: 36px; }
.guide li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.875rem; }
.guide-ill { width: 100%; max-width: 320px; height: auto; margin-top: 8px; display: block; }
.guide-ill .pulse { animation: gpulse 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes gpulse { 50% { opacity: .38; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .guide-ill .pulse { animation: none; } }

.welcome { border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); }
.welcome .wz { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--c); color: #fff; flex: none; font-size: 1.125rem; }

/* v0.14 — « Dites-moi… » : le champ d'iZi en haut de l'appli */
.askTop { max-width: 640px; margin: 0 auto; padding: 8px 16px 0; }
.askTop .row { display: flex; gap: 8px; align-items: center; }
.askTop .input { min-height: 44px; }
.askTop .chips { margin-top: 8px; }
.askTop .chip { border: 0; cursor: pointer; font-family: inherit; min-height: 32px; }
.askTop .answer { margin-top: 8px; }

/* v0.16 (D2) — badge « Recommandée par… » (Réglages → À propos), même style que celui du studio */
.sponsor-badge { display: inline-block; margin-top: 6px; font-size: 0.75rem; font-weight: 600; color: #7a4b00; background: #fff4dc; border: 1px solid #f3d38c; border-radius: 999px; padding: 2px 9px; }

/* v0.15.2 (C3) — Export/Impression : un tableau imprimable, invisible à l'écran, affiché seulement sur le
   papier/PDF de l'imprimante (rien ne transite par le réseau : c'est le même tableau que l'export CSV/PDF). */
#printArea { display: none; }
@media print {
  body > :not(#printArea) { display: none !important; }
  #printArea { display: block !important; padding: 0; color: #000; background: #fff; }
  #printArea h1 { font-size: 1.125rem; margin: 0 0 4px; }
  #printArea p { margin: 0 0 12px; color: #444; font-size: 0.8125rem; }
  #printArea table { width: 100%; border-collapse: collapse; }
  #printArea th, #printArea td { border: 1px solid #999; padding: 4px 8px; text-align: left; font-size: 0.75rem; }
  #printArea thead th { background: #eee; }
  #printArea tfoot th { border-top: 2px solid #333; font-weight: 700; }
}
/* v0.17 (E4) — sauvegarde de la semaine en retard (plus de 30 jours) */
.nudge.warn { border: 1px solid #e0a100; background: #fff7e0; color: #4a3500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nudge.warn { background: #3a2c00; color: #ffe9a8; border-color: #8a6a00; } }
:root[data-theme="dark"] .nudge.warn { background: #3a2c00; color: #ffe9a8; border-color: #8a6a00; }

/* v0.19 — le contenu d'abord : carte de bienvenue compacte, point du jour sur une ligne, bouton « ? » des exemples,
   bande repliable « Objectif · Compteurs · Courbe » d'un suivi (sous l'historique) */
.welcome { padding: 12px 14px; }
.welcome .wz { width: 30px; height: 30px; border-radius: 9px; font-size: 1rem; }
.brief { padding: 4px 8px 4px 14px; }
.brief.open { padding-bottom: 10px; }
.brief-head { background: none; border: 0; padding: 10px 0; min-height: 40px; text-align: left; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.brief-chev, .band-chev { display: inline-block; transition: transform .2s; color: var(--muted); }
.brief.open .brief-chev, .band[open] .band-chev { transform: rotate(90deg); }
/* le « ? » (élément au rôle de bouton, pas un bouton d'envoi du formulaire) juste à droite du champ */
.askTop .askhelp { user-select: none; width: 36px; font-size: 1.0625rem; font-weight: 700; color: var(--c); flex: none; }
.askTop .askhelp[aria-expanded="true"] { background: var(--c-soft); }
.band { margin: 0 0 12px; }
.band > summary { list-style: none; cursor: pointer; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.band > summary::-webkit-details-marker { display: none; }
.hist .empty { padding: 12px 0 4px; }
.hist .empty .e { font-size: 1.75rem; }
/* en-tête de l'historique d'un suivi : une seule ligne à 390 px ; 1.0.2 (8) : « ＋ Saisie » y rejoint Calendrier et Exporter */
.hist-head { flex-wrap: nowrap; gap: 6px; }
.hist-head h3 { margin: 0; white-space: nowrap; }
.hist-head .row { gap: 6px; flex-wrap: nowrap; }
.hist-head .btn.sm { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.hist-head h3 { font-size: 1rem; }
.hist-head.court #icsAll .lbl { display: none; }
.hist-head.serre, .hist-head.serre .row { gap: 4px; }
.hist-head.serre .btn.sm { padding-left: 7px; padding-right: 7px; }
.hist-sort { justify-content: flex-end; margin: 6px 0 0; }
/* v0.19 — iPhone dans Safari, appli pas installée : bande discrète des 7 jours */
.safari7 { background: var(--c-soft); border-radius: 12px; padding: 8px 10px 8px 12px; margin: 0 0 10px; font-size: 0.8125rem; }
.safari7 p { margin: 0 0 6px; }
.safari7 .row { gap: 8px; flex-wrap: wrap; }
.safari7 .btn.sm { min-height: 32px; padding: 6px 10px; }
/* v0.20 — rangée repliable « Habituels » d'une liste de courses */
.habits { margin: 10px 0; }
.habits > summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 0.9375rem; padding: 6px 0; min-height: 36px; display: flex; align-items: center; gap: 6px; }
.habits > summary::-webkit-details-marker { display: none; }
.habits[open] .band-chev { transform: rotate(90deg); }
.habits .chip { border: 0; cursor: pointer; font-family: inherit; min-height: 36px; }
.habits .chip .muted { font-weight: 400; }
/* v0.20 — rappel ponctuel ouvert depuis sa notification */
.list li.rappel-vu { background: var(--c-soft); border-radius: 10px; transition: background .4s; }
/* v1.0.1 — menu ⋯ regroupé : titres de section, plis « Mes données » et « Réglages », « Effacer mes données » en rouge */
.menu .menu-tete { gap: 8px; flex-wrap: nowrap; }
.menu .menu-tete > * { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; }
.menu .menu-tete:has(> :nth-child(3)) > * { font-size: 0.8125rem; padding-left: 6px; padding-right: 6px; }
.menu .menu-titre { margin: 8px 0 -4px; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.menu .pli > summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.menu .pli > summary::-webkit-details-marker { display: none; }
.menu .pli > summary::after { content: '›'; margin-left: auto; font-size: 1.25rem; line-height: 1; transition: transform .15s; }
.menu .pli[open] > summary::after { transform: rotate(90deg); }
.menu .pli > .stack { margin-top: 8px; padding-left: 8px; }
.menu .btn.line.rouge { color: var(--warn); border-color: var(--warn); }
