:root {
  --bg:#f4f6f8; --card:#ffffff; --text:#171a21; --muted:#586070; --line:#e6e9ee;
  --accent:#15803d; --accent-ink:#ffffff; --accent-soft:#dcfce7; --track:#e5e7eb;
  --warn:#dc2626; --warn-soft:#fee2e2; --amber:#b45309; --amber-soft:#fef3c7;
  --shadow:0 1px 3px rgba(16,24,40,.07); --radius:18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0e1014; --card:#171a20; --text:#f1f3f7; --muted:#9aa1ad; --line:#262a33;
    --accent:#4ade80; --accent-ink:#06210f; --accent-soft:#12301f; --track:#2a2f3a;
    --warn:#f87171; --warn-soft:#3a1717; --amber:#fbbf24; --amber-soft:#3a2d0e;
    --shadow:none;
  }
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
/* ---- garde-fous anti-débordement : aucun texte ni chiffre ne doit pouvoir casser la mise en page ---- */
body { min-width:320px; overflow-wrap:anywhere; }
img, svg, video { max-width:100%; }
button, input, select { max-width:100%; touch-action:manipulation; }
.amt, .a { white-space:nowrap; overflow-wrap:normal; }
body {
  margin:0; background:var(--bg); color:var(--text);
  font:16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  overscroll-behavior-y:none;
}
button { font:inherit; color:inherit; cursor:pointer; }
a { color:var(--accent); }
/* Coque d'appli : le contenu défile dans #scroll, la barre du bas reste hors du défilement (plus de barre « flottante ») */
html, body { height:100%; }
body { height:100vh; height:100dvh; display:flex; flex-direction:column; overflow:hidden; }
#scroll { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch; overscroll-behavior-y:contain; }
#app { max-width:560px; margin:0 auto; min-height:100%; padding:max(14px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 112px max(16px,env(safe-area-inset-left)); }
#app.auth { padding-bottom:24px; display:flex; flex-direction:column; justify-content:center; }

h1 { font-size:24px; margin:6px 0 14px; font-weight:800; letter-spacing:-.4px; }
h2 { font-size:12px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin:26px 4px 10px; font-weight:700; }
h3 { margin:0 0 14px; font-size:18px; }
.sub { color:var(--muted); font-size:14px; }
.card { background:var(--card); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); margin-bottom:12px; }
.row { display:flex; align-items:center; gap:12px; }
.spread { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.big { font-size:clamp(26px,9vw,34px); font-weight:800; letter-spacing:-.6px; font-variant-numeric:tabular-nums; }
.big small { font-size:16px; font-weight:500; color:var(--muted); letter-spacing:0; }
.num { font-variant-numeric:tabular-nums; }
.bar { height:10px; background:var(--track); border-radius:99px; margin:12px 0 10px; overflow:hidden; }
.bar > div { height:100%; background:var(--accent); border-radius:99px; transition:width .35s; }
.meta { display:flex; justify-content:space-between; flex-wrap:wrap; color:var(--muted); font-size:14px; gap:4px 12px; }
.ok { color:var(--accent); } .warn { color:var(--warn); } .amber { color:var(--amber); }

/* boutons & champs */
.btn { background:var(--accent); color:var(--accent-ink); border:none; border-radius:13px; padding:13px 18px; font-weight:700; text-align:center; line-height:1.25; }
.btn.block { width:100%; }
.btn.ghost { background:var(--accent-soft); color:var(--accent); }
.btn.danger { background:var(--warn-soft); color:var(--warn); }
.btn.small { padding:8px 12px; font-size:14px; border-radius:10px; }
.link { background:none; border:none; color:var(--muted); text-decoration:underline; font-size:14px; padding:10px; display:block; margin:6px auto 0; }
.link.danger { color:var(--warn); }
.field { display:flex; flex-direction:column; gap:5px; margin-bottom:12px; min-width:0; }
.field > span { font-size:12px; color:var(--muted); font-weight:600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select {
  font:inherit; font-size:16px; color:var(--text); background:var(--bg); border:1.5px solid var(--line);
  border-radius:12px; padding:12px; width:100%; min-width:0; min-height:48px; appearance:none; -webkit-appearance:none; display:block;
}
input:focus, select:focus { outline:none; border-color:var(--accent); }
.cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.msg { font-size:14px; min-height:20px; margin:4px 0 10px; color:var(--warn); }

/* navigation */
.tabbar {
  flex:none; background:var(--card); border-top:1px solid var(--line);
  display:flex; justify-content:center; padding:6px 8px calc(6px + env(safe-area-inset-bottom)); z-index:20;
}
.tabbar .in { display:flex; width:100%; max-width:560px; }
.tab { flex:1 1 0; min-width:0; background:none; border:none; display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 2px; color:var(--muted); font-size:11px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tab svg { width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tab.on { color:var(--accent); }
.fab {
  position:fixed; right:max(18px,calc(50% - 262px)); bottom:calc(76px + env(safe-area-inset-bottom)); width:56px; height:56px; border-radius:50%;
  border:none; background:var(--accent); color:var(--accent-ink); font-size:30px; line-height:1; box-shadow:0 6px 18px rgba(0,0,0,.25); z-index:21;
}
.back { background:none; border:none; color:var(--accent); font-weight:700; padding:6px 0 8px; }

/* objectifs */
.goal { width:100%; text-align:left; border:none; display:block; color:inherit; }
.goal .t { display:flex; align-items:center; gap:10px; font-weight:700; }
.goal .t .nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.emo { width:40px; height:40px; border-radius:12px; display:grid; place-content:center; font-size:22px; flex:none; }
.chip { display:inline-block; max-width:100%; white-space:normal; text-align:center; font-size:12px; font-weight:700; padding:3px 9px; border-radius:99px; background:var(--accent-soft); color:var(--accent); }
.chip.warn { background:var(--warn-soft); color:var(--warn); }
.chip.amber { background:var(--amber-soft); color:var(--amber); }
.chip.mute { background:var(--track); color:var(--muted); }
.banner { border-radius:var(--radius); padding:14px 16px; margin-bottom:12px; background:var(--amber-soft); color:var(--text); }
.banner.good { background:var(--accent-soft); }
.banner.bad { background:var(--warn-soft); }
.banner b { font-weight:700; }
.todo { display:flex; align-items:center; gap:10px; margin-top:10px; }
.todo .nm { flex:1; min-width:0; }
.stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.stat { background:var(--card); border-radius:14px; padding:14px; box-shadow:var(--shadow); }
.stat .k { font-size:12px; color:var(--muted); font-weight:600; }
.stat .v { font-size:clamp(16px,5.4vw,20px); font-weight:800; margin-top:2px; font-variant-numeric:tabular-nums; }
svg.chart { width:100%; height:auto; display:block; }
.chart .ideal { stroke:var(--muted); stroke-width:1.5; stroke-dasharray:4 4; fill:none; }
.chart .real { stroke-width:2.5; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.chart text { fill:var(--muted); font-size:10px; }
.legend { display:flex; gap:14px; font-size:12px; color:var(--muted); margin-top:6px; }

/* semaines */
ul.plain { list-style:none; padding:0; margin:0; }
ul.plain > li { margin-bottom:8px; }
label.week { display:flex; align-items:center; gap:14px; background:var(--card); border-radius:14px; padding:13px 16px; cursor:pointer; box-shadow:var(--shadow); border:1.5px solid transparent; }
label.week.done { background:var(--accent-soft); border-color:var(--accent); }
label.week.now { border-color:var(--muted); }
label.week.missed .d { color:var(--warn); }
input[type=checkbox].tick { appearance:none; -webkit-appearance:none; width:26px; height:26px; border-radius:50%; border:2px solid var(--muted); flex:none; margin:0; display:grid; place-content:center; padding:0; background:transparent; }
input[type=checkbox].tick:checked { background:var(--accent); border-color:var(--accent); }
input[type=checkbox].tick:checked::after { content:""; width:6px; height:12px; border:solid var(--accent-ink); border-width:0 2.5px 2.5px 0; transform:rotate(45deg) translate(-1px,-1px); }
.txt { flex:1; min-width:0; }
.w { font-weight:600; } .d { font-size:13px; color:var(--muted); }
.tag { font-size:11px; font-weight:700; color:var(--muted); border:1px solid var(--line); border-radius:99px; padding:1px 7px; margin-left:6px; vertical-align:2px; }
.amt { text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }

/* historique */
.tx { display:flex; align-items:center; gap:12px; background:var(--card); border-radius:14px; padding:12px 14px; box-shadow:var(--shadow); }
.tx .emo { width:34px; height:34px; font-size:18px; border-radius:10px; }
.tx .a { font-weight:700; font-variant-numeric:tabular-nums; flex:none; }
.tx .txt .w, .tx .txt .d { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tx .txt br { display:none; }
.tx .a.neg { color:var(--warn); } .tx .a.pos { color:var(--accent); }
.x { background:none; border:none; color:var(--muted); font-size:22px; line-height:1; padding:4px 6px; }
.daylab { font-size:12px; color:var(--muted); font-weight:700; margin:16px 4px 8px; }
.daylab::first-letter { text-transform:uppercase; }

/* budget */
.split { display:flex; height:12px; border-radius:99px; overflow:hidden; background:var(--track); margin:12px 0 8px; }
.split > div { height:100%; }
.legend2 { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:13px; color:var(--muted); }
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; }

/* feuille modale */
.sheet-back { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:50; display:flex; align-items:flex-end; justify-content:center; animation:fade .15s; }
.sheet { background:var(--card); width:100%; max-width:560px; max-height:92vh; max-height:92dvh; overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; border-radius:22px 22px 0 0; padding:20px 18px calc(22px + env(safe-area-inset-bottom)); animation:up .2s; }
.sheet .head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.sheet .head h3 { margin:0; }
.seg { display:flex; background:var(--bg); border-radius:12px; padding:3px; margin-bottom:12px; }
.seg label { flex:1; text-align:center; padding:10px; border-radius:10px; font-weight:700; font-size:14px; color:var(--muted); cursor:pointer; }
.seg input { display:none; }
.seg input:checked + span { color:var(--text); }
.seg label:has(input:checked) { background:var(--card); color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.12); }
.picks { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.pick { width:42px; height:42px; border-radius:12px; border:2px solid transparent; background:var(--bg); font-size:22px; display:grid; place-content:center; padding:0; }
.pick.on { border-color:var(--accent); }
.sw { width:34px; height:34px; border-radius:50%; border:3px solid transparent; padding:0; }
.sw.on { border-color:var(--text); }
@keyframes fade { from { opacity:0 } }
@keyframes up { from { transform:translateY(30px); opacity:.6 } }

#toast { position:fixed; left:50%; bottom:calc(92px + env(safe-area-inset-bottom)); transform:translate(-50%,20px); background:var(--text); color:var(--bg);
  padding:11px 18px; border-radius:99px; font-size:14px; font-weight:600; opacity:0; pointer-events:none; transition:.25s; z-index:90; max-width:90vw; text-align:center; }
#toast.on { opacity:1; transform:translate(-50%,0); }

.empty { text-align:center; color:var(--muted); padding:26px 10px; }
.empty .big-emo { font-size:44px; display:block; margin-bottom:8px; }
.brand { text-align:center; margin-bottom:22px; }
.brand .logo { width:72px; height:72px; border-radius:20px; margin:0 auto 10px; display:block; }
.brand h1 { margin:0; }
.toggle { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.pill { border:none; background:var(--track); border-radius:99px; padding:7px 14px; font-weight:700; font-size:13px; color:var(--muted); }
.pill.on { background:var(--accent); color:var(--accent-ink); }

/* pourcentages, anneau, paliers */
.hero { background:linear-gradient(135deg, var(--accent-soft), var(--card)); }
.cheer { margin-top:12px; padding:10px 12px; border-radius:12px; background:var(--accent-soft); font-weight:600; font-size:14px; }
.ring { width:104px; height:104px; flex:none; }
.ringsvg { width:100%; height:100%; display:block; }
.ringtxt { font-size:22px; font-weight:800; fill:var(--text); }
.badges { display:flex; gap:6px; margin-top:12px; flex-wrap:wrap; }
.badge { font-size:12px; font-weight:700; padding:4px 10px; border-radius:99px; background:var(--track); color:var(--muted); }
.badge.on { background:var(--accent-soft); color:var(--accent); }
.pct { font-weight:800; }
.chips { display:flex; gap:8px; margin:-2px 0 12px; flex-wrap:wrap; }
.chipbtn { border:1.5px solid var(--line); background:var(--bg); border-radius:99px; padding:7px 14px; font-weight:700; font-size:14px; }

/* calendrier */
.calhead { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.calhead .x { font-size:28px; padding:0 14px; color:var(--accent); }
.monthbtn { background:none; border:none; font-weight:800; font-size:17px; text-transform:capitalize; }
.calgrid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.calgrid.wd { margin-bottom:4px; text-align:center; font-size:12px; font-weight:700; color:var(--muted); }
.day { height:56px; border-radius:12px; border:1.5px solid transparent; background:var(--bg); color:var(--text);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:2px; padding:5px 0 3px; font-size:14px; font-weight:600; min-width:0; }
.day.out { visibility:hidden; background:none; }
.day.today { border-color:var(--accent); }
.day.rem { box-shadow:inset 0 -3px 0 var(--accent); }
.day.sel { background:var(--accent); color:var(--accent-ink); }
.dots { display:flex; gap:2px; min-height:6px; }
.dots i { width:6px; height:6px; border-radius:50%; display:block; }
.day.sel .dots i { box-shadow:0 0 0 1.5px var(--accent-ink); }
.emo2 { font-size:11px; line-height:1; }

/* apparence */
.seg button { flex:1; border:none; background:none; padding:10px; border-radius:10px; font-weight:700; font-size:14px; color:var(--muted); }
.seg button.on { background:var(--card); color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.12); }
.themes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:4px; }
.theme { background:none; border:2px solid transparent; border-radius:14px; padding:8px 2px; display:flex; flex-direction:column; align-items:center; gap:6px; font-size:12px; font-weight:700; color:var(--muted); }
.theme.on { border-color:var(--accent); color:var(--text); }
.sw2 { width:38px; height:38px; border-radius:50%; border:1px solid var(--line); display:block; }

/* ---- nouveautés : enveloppes, stats, verrouillage, etc. ---- */
.wrap { overflow-wrap:anywhere; }
.bar.thin { height:6px; margin:8px 0 4px; }
.env { margin-top:12px; }
.env .nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.env .spread { align-items:center; }
.members { margin-top:8px; display:flex; flex-direction:column; gap:6px; }
.members .spread { align-items:center; }
.members .nm { min-width:0; overflow-wrap:anywhere; }
.code { font:800 30px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.14em; text-align:center; background:var(--bg); border-radius:14px; padding:16px 8px; margin:12px 0; overflow-wrap:anywhere; user-select:all; }
.filebtn { display:block; position:relative; margin-top:12px; cursor:pointer; overflow:hidden; }
.filebtn input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; font-size:0; }
.linkbtn { display:block; text-align:center; text-decoration:none; margin-top:18px; }
.mchart { display:flex; align-items:flex-end; gap:6px; height:132px; margin-top:12px; }
.mcol { flex:1 1 0; min-width:0; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px; }
.mbar { width:100%; flex:1; display:flex; align-items:flex-end; min-height:0; }
.mbar i { display:block; width:100%; background:var(--track); border-radius:6px 6px 2px 2px; min-height:0; }
.mbar i.best { background:var(--accent); }
.mv { font-size:10px; font-weight:700; color:var(--muted); height:12px; white-space:nowrap; }
.ml { font-size:11px; color:var(--muted); text-transform:capitalize; height:14px; }
.urow { display:flex; align-items:center; gap:10px; padding:12px 14px; }
.urow .w { overflow-wrap:anywhere; }
.lock { position:fixed; inset:0; z-index:100; background:var(--bg); display:flex; align-items:center; justify-content:center; padding:20px; overflow:auto; }
.lock[hidden] { display:none; }
.lockin { width:100%; max-width:320px; text-align:center; }
.lockin .logo { width:64px; height:64px; border-radius:18px; display:block; margin:0 auto 8px; }
.lockin h1 { margin:0 0 4px; }
.pdots { display:flex; justify-content:center; gap:14px; margin:20px 0 6px; }
.pdots i { width:14px; height:14px; border-radius:50%; border:2px solid var(--muted); display:block; }
.pdots i.on { background:var(--accent); border-color:var(--accent); }
.pdots.shake { animation:shake .35s; }
@keyframes shake { 20%,60% { transform:translateX(-8px) } 40%,80% { transform:translateX(8px) } }
.keypad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:10px 0 6px; }
.keypad button { height:64px; border-radius:999px; border:none; background:var(--card); font-size:26px; font-weight:600; box-shadow:var(--shadow); }
.keypad button:active { background:var(--accent-soft); }
.hero .big { margin:2px 0; }

/* le clavier est ouvert : la barre du bas disparaît au lieu de flotter */
@media (pointer:coarse) { body.typing #nav { display:none; } }
@media (max-width:360px) {
  h1 { font-size:21px; }
  .card { padding:14px; }
  .tab { font-size:10px; }
  .tab svg { width:22px; height:22px; }
  .keypad button { height:56px; }
}
@media (max-height:520px) { .keypad button { height:44px; font-size:20px; } .pdots { margin:10px 0 4px; } }

.ringrow { gap:16px; min-width:0; }
.big.lg { font-size:clamp(22px,7.5vw,28px); }
.mv { max-width:100%; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:380px) { .ring { width:84px; height:84px; } .ringrow { gap:12px; } }
.goal .t .chip { flex:0 1 auto; max-width:55%; }

/* ---- plan (v1.3) ---- */
.nw { white-space:nowrap; flex:0 0 auto; }
.plrow { padding:12px 0; border-top:1px solid var(--line, rgba(128,128,128,.25)); }
.plrow:first-child { border-top:none; padding-top:0; }
.plrow .nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.plrow .meta { display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:6px; font-size:14px; color:var(--muted); }
.plrow .meta > span { min-width:0; overflow-wrap:anywhere; }
.plrow .pill { flex:0 0 auto; }
.ins { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 10px; align-items:center; padding:10px 0; border-top:1px solid var(--line, rgba(128,128,128,.25)); }
.ins .nm { min-width:0; overflow-wrap:anywhere; font-weight:600; }
.ins .sub { grid-column:1; min-width:0; overflow-wrap:anywhere; }
.ins .chip { grid-column:2; grid-row:1 / span 2; white-space:normal; text-align:center; max-width:120px; }
.toggle .sub { min-width:0; overflow-wrap:anywhere; }
.rhythm { margin-top:6px; padding:12px; border-radius:14px; background:var(--bg); }
.formulas { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
.formula { display:flex; flex-direction:column; align-items:center; gap:2px; min-width:0; padding:8px 4px; border-radius:12px; border:1px solid rgba(128,128,128,.35); background:var(--card); color:var(--text); font-size:13px; text-align:center; overflow-wrap:anywhere; }
.formula b { font-size:14px; }
.formula .sub { font-size:12px; }
#rhythm-range { width:100%; accent-color:var(--accent); }
.check { display:flex; gap:10px; align-items:flex-start; margin:0 0 12px; font-size:14px; }
.check input { margin-top:3px; flex:0 0 auto; }
.check span { min-width:0; overflow-wrap:anywhere; }
.tips { margin:0 0 10px; padding-left:18px; font-size:14px; }
.tips li { margin:6px 0; overflow-wrap:anywhere; }
.env .pill { flex:0 0 auto; padding:5px 10px; font-size:12px; }
.env .chg { flex-wrap:wrap; row-gap:6px; align-items:center; }
.env .chg .nm { flex:1 1 100%; }
.env .chg .num { margin-right:auto; }

/* ---- v1.4 : interface plus légère et mieux structurée ---- */
.card { box-shadow:none; border:1px solid var(--line); border-radius:16px; padding:16px; }
h1 { font-size:24px; margin:4px 0 16px; }
h2 { margin:28px 4px 10px; }
.hello { color:var(--muted); font-size:14px; font-weight:600; margin:6px 4px 0; }
.hero { background:var(--card); border-color:var(--line); }
.hero .big { margin:4px 0 8px; }
.slim { display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:1px solid var(--line); background:var(--card); border-radius:14px; padding:14px 16px; margin-bottom:12px; color:var(--text); font-size:15px; }
.slim span { flex:1; min-width:0; color:var(--muted); font-weight:600; }
.slim b { flex:0 1 auto; min-width:0; overflow-wrap:anywhere; text-align:right; }
.slim i { font-style:normal; color:var(--muted); font-size:20px; line-height:1; }
.links2 { display:flex; justify-content:center; gap:6px; flex-wrap:wrap; margin-top:4px; }
/* sections repliables */
.fold { background:var(--card); border:1px solid var(--line); border-radius:16px; margin-bottom:10px; overflow:hidden; }
.fold > summary { list-style:none; display:flex; align-items:center; gap:10px; padding:15px 16px; font-weight:700; cursor:pointer; min-height:52px; }
.fold > summary::-webkit-details-marker { display:none; }
.fold > summary::after { content:'›'; margin-left:auto; flex:0 0 auto; color:var(--muted); font-size:22px; line-height:1; transition:transform .15s; }
.fold[open] > summary::after { transform:rotate(90deg); }
.fold .ft { min-width:0; overflow-wrap:anywhere; }
.fold .fm { margin-left:auto; flex:0 1 auto; min-width:0; max-width:50%; color:var(--muted); font-weight:600; font-size:14px; text-align:right; overflow-wrap:anywhere; }
.fold > summary:has(.fm)::after { margin-left:0; }
.fold > summary:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.fold .fb { padding:2px 16px 16px; }
.fold .fb .card { box-shadow:none; border:none; border-top:1px solid var(--line); border-radius:0; background:transparent; padding:14px 0; margin:0; }
.fold .fb .card:first-child { border-top:none; padding-top:2px; }
.fold .fb > form.card { padding-bottom:14px; }
/* listes clé / valeur */
.kvs { padding:6px 16px; }
.kv { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:11px 0; border-top:1px solid var(--line); }
.kv:first-child { border-top:none; }
.kv span { color:var(--muted); min-width:0; }
.kv b { text-align:right; min-width:0; overflow-wrap:anywhere; }
.kvs > .sub { padding:0 0 10px; }
/* démarrage guidé */
#app.onb { padding-bottom:28px; }
.onbtop { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.onbtop .dots { display:flex; gap:6px; flex:1; }
.onbtop .dots i { flex:1; height:5px; border-radius:3px; background:var(--track); }
.onbtop .dots i.on { background:var(--accent); }
.onbtop .link { padding:6px 4px; }
.lead { margin:0 0 16px; font-size:15px; line-height:1.45; }
.onbform .field { margin-bottom:14px; }
.onbnav { display:flex; gap:10px; margin-top:18px; }
.slim-card { padding:12px 14px; margin-bottom:12px; }
.cheer { background:none; padding:0; margin-top:12px; color:var(--text); font-weight:600; font-size:14px; }

/* cocher la semaine en un appui */
.qk { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; margin-bottom:12px; border-radius:16px; padding:16px; text-align:left; border:1px solid var(--line); background:var(--card); color:var(--text); }
.qk .t { font-weight:700; min-width:0; overflow-wrap:anywhere; }
.qk .t .sub { display:block; font-weight:500; }
.qk.go { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.qk.go .t .sub { color:inherit; opacity:.85; }
.qk.go .b { flex:0 0 auto; font-weight:800; font-size:17px; white-space:nowrap; }
.qk.done { background:var(--accent-soft); border-color:transparent; }
.qk.done .link { flex:0 0 auto; padding:6px 4px; }
[hidden] { display:none !important; }
.offbar { margin:0 0 12px; padding:10px 14px; border-radius:12px; background:var(--amber-soft); color:var(--text); font-size:14px; font-weight:600; border:1px solid var(--line); }

.ov .stack { display:flex; height:14px; border-radius:99px; overflow:hidden; background:var(--line); margin:10px 0 8px; }
.ov .stack i { display:block; height:100%; }
.ov .dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; }
.ov svg.chart { margin-top:6px; }

.qk.wait { display:flex; align-items:center; justify-content:space-between; gap:10px; background:var(--accent-soft); border-radius:var(--radius); padding:12px 14px; margin-bottom:12px; }

.orgrow { padding:7px 0; border-top:1px solid var(--line); margin-top:0; } .orgrow:first-of-type { margin-top:8px; }
