/* =====================================================================
   Today V09.6 — feuille de style unique (refonte complète)
   Fond uni, cartes blanches à bordure fine, accents pastel, deux polices.
   Performance : aucun flou sauf la barre d'onglets ; animations en transform/opacity uniquement.
   ===================================================================== */

/* ---------- Polices embarquées (hors connexion) ---------- */
@font-face { font-family: "DM Sans"; src: url(font-dmsans.woff) format("woff"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(font-dmsans-italic.woff) format("woff"); font-weight: 100 1000; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url(font-lora.woff) format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url(font-lora-italic.woff) format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson"; src: url(font-crimson.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Today T"; src: url(font-logo-t.woff) format("woff"); font-weight: 600; font-display: block; }
@font-face { font-family: "Today oday"; src: url(font-logo-oday.woff) format("woff"); font-weight: 400; font-style: italic; font-display: block; }

/* ---------- Jetons ---------- */
:root {
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --serif: "Lora", ui-serif, "New York", Georgia, serif;
  --f: var(--sans);
  --f-logo-t: "Today T", "Crimson Text", ui-serif, Georgia, serif;
  --f-logo-i: "Today oday", "Crimson Text", ui-serif, Georgia, serif;
  --bg: #f7f6f3; --card: #ffffff; --card2: #f3f2ee; --sunk: #efeeea;
  --line: rgba(32, 30, 26, .075); --line2: rgba(32, 30, 26, .13);
  --tx: #1e1d1b; --tx2: #6a6761; --tx3: #9c9891;
  --danger: #c4525e; --ok: #5e8c6a;
  --shadow: 0 1px 2px rgba(30, 28, 24, .04), 0 6px 20px -8px rgba(30, 28, 24, .10);
  --shadow-up: 0 -1px 0 var(--line), 0 -12px 30px -18px rgba(30, 28, 24, .25);
  --r: 18px; --r-m: 14px; --r-s: 11px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --tab-h: calc(78px + max(var(--sab), 10px));
  --kb: 0px;
  --gut: 18px;
  color-scheme: light;
  /* accent (Lavande par défaut) */
  --acc: #8c84d6; --acc-soft: #eeecfa; --acc-ink: #4b4590; --acc-line: #d9d5f3;
  --ink: var(--acc); --acc-on: #fff;
}
:root[data-accent="blk"] { --acc: #1e1d1b; --acc-soft: #ecebe7; --acc-ink: #1e1d1b; --acc-line: #d8d6d1; }
:root[data-accent="blk"][data-dark="1"] { --acc-on: #121212; --acc: #f1f0ed; --acc-soft: #2a2a2c; --acc-ink: #f1f0ed; --acc-line: #3a3a3c; }
:root[data-accent="blu"] { --acc: #6f9cc9; --acc-soft: #e8f0f8; --acc-ink: #2e5578; --acc-line: #cfe0f0; }
:root[data-accent="sag"] { --acc: #7a9f83; --acc-soft: #e8f1ea; --acc-ink: #375a40; --acc-line: #cfe2d4; }
:root[data-accent="pea"] { --acc: #d29670; --acc-soft: #fbefe6; --acc-ink: #7a4a2b; --acc-line: #f1d8c6; }
:root[data-accent="ter"] { --acc: #cc8792; --acc-soft: #faecee; --acc-ink: #7c3b47; --acc-line: #f0d3d8; }
:root[data-accent="gry"] { --acc: #6e6a66; --acc-soft: #efeeec; --acc-ink: #34322f; --acc-line: #dcdad6; }
:root[data-font="serif"] { --f: var(--serif); }
:root[data-dark="1"] {
  color-scheme: dark;
  --bg: #121212; --card: #1c1c1e; --card2: #242426; --sunk: #0c0c0c;
  --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .13);
  --tx: #f1f0ed; --tx2: #aaa7a1; --tx3: #77746f;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02); --shadow-up: 0 -1px 0 var(--line);
  --acc-soft: color-mix(in srgb, var(--acc) 22%, #1c1c1e); --acc-ink: color-mix(in srgb, var(--acc) 55%, #fff); --acc-line: color-mix(in srgb, var(--acc) 40%, #1c1c1e);
  --danger: #e07884;
}

/* Teintes des catégories / rendez-vous : --h (trait), --hb (fond pastel), --ht (texte) */
.h-lav { --h: #8c84d6; --hb: #eeecfb; --ht: #463f8a; }
.h-blu { --h: #6f9cc9; --hb: #e7f0f9; --ht: #2b5174; }
.h-sag { --h: #7a9f83; --hb: #e6f0e8; --ht: #355a3f; }
.h-pea { --h: #d29670; --hb: #fbeee4; --ht: #764628; }
.h-ter { --h: #cc8792; --hb: #faeaed; --ht: #773743; }
.h-yel { --h: #c9a54e; --hb: #f9f1db; --ht: #67511a; }
.h-gry { --h: #8f8b86; --hb: #efeeec; --ht: #4a4743; }
.h-acc, .h-ink { --h: var(--acc); --hb: var(--acc-soft); --ht: var(--acc-ink); }
:root[data-dark="1"] :is(.h-lav, .h-blu, .h-sag, .h-pea, .h-ter, .h-yel, .h-gry) { --hb: color-mix(in srgb, var(--h) 20%, #1c1c1e); --ht: color-mix(in srgb, var(--h) 50%, #fff); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; font: -apple-system-body; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); touch-action: manipulation; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--tx); font-family: var(--f); font-size: .92rem; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: auto; font-feature-settings: "kern"; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-user-select: none; user-select: none; }
a { color: var(--acc-ink); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.55rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: .95rem; font-weight: 600; }
:root[data-font="serif"] h1 { font-weight: 500; letter-spacing: -.01em; }
.ic { flex: none; display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tnum { font-variant-numeric: tabular-nums; }
::selection { background: var(--acc-line); }

/* ---------- Structure : la page défile (défilement natif, rebond élastique iOS) ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.main { outline: none; padding: calc(var(--sat) + 8px) calc(var(--gut) + var(--sar)) calc(var(--tab-h) + 28px + var(--kb)) calc(var(--gut) + var(--sal)); max-width: 720px; margin: 0 auto; }
.side { display: none; }
.view { display: flex; flex-direction: column; gap: 22px; }
.host > .view.enter { animation: vIn .22s var(--ease) both; }
.host > .view.enter-l { animation: vInL .24s var(--ease) both; }
.host > .view.enter-r { animation: vInR .24s var(--ease) both; }
@keyframes vIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes vInL { from { opacity: 0; transform: translateX(18px); } }
@keyframes vInR { from { opacity: 0; transform: translateX(-18px); } }

/* ---------- En-têtes de page ---------- */
.phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.phead h1 { font-size: 1.6rem; }
.ph-l { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ph-r { display: flex; align-items: center; gap: 6px; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--acc-ink); font-weight: 500; height: 40px; padding: 0 8px 0 0; margin-left: -6px; }
.back .ic { width: 22px; height: 22px; }
.sub-h { color: var(--tx2); font-size: .82rem; margin-top: 2px; }
.ibtn { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: var(--tx); background: var(--card); border: 1px solid var(--line); flex: none; }
.ibtn.flat { background: transparent; border-color: transparent; }
.ibtn.on { background: var(--acc-soft); color: var(--acc-ink); border-color: var(--acc-line); }
.tbtn { height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--acc-ink); background: var(--acc-soft); display: inline-flex; align-items: center; gap: 6px; flex: none; }
.tbtn .ic { width: 16px; height: 16px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; white-space: nowrap; color: var(--tx); line-height: 1; padding: 0 .08em .12em 0; }
.logo b { font: 600 1em/1 var(--f-logo-t); letter-spacing: -.01em; }
.logo i { font: italic 400 1em/1 var(--f-logo-i); letter-spacing: -.005em; margin-left: .01em; }
.logo.sm { font-size: 22px; } .logo.md { font-size: 30px; } .logo.lg { font-size: 44px; }
.logo.ul { position: relative; padding-bottom: .16em; }
.logo.ul::after { content: ""; position: absolute; left: .02em; right: .06em; bottom: 0; height: max(1px, .035em); background: currentColor; opacity: .55; border-radius: 2px; }

/* ---------- Sections et cartes ---------- */
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px; }
.sec-h h2 { font-size: 1rem; }
.sec-h .note { color: var(--tx3); font-size: .78rem; font-variant-numeric: tabular-nums; }
.sec-h .link { color: var(--acc-ink); font-size: .82rem; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; padding: 6px 0 6px 8px; margin: -6px 0; }
.sec-h .link .ic { width: 14px; height: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 14px 16px; }
.empty { color: var(--tx3); font-size: .86rem; padding: 14px 16px; text-align: center; }
.card .empty { padding: 18px 16px; }
.muted { color: var(--tx2); } .faint { color: var(--tx3); } .small { font-size: .8rem; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .spacer { flex: 1; }
.list { display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--line); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: var(--card); border: 1px solid var(--line2); color: var(--tx); white-space: nowrap; text-decoration: none; }
.btn .ic { width: 17px; height: 17px; }
.btn.primary { background: var(--tx); color: var(--bg); border-color: transparent; }
.btn.acc { background: var(--acc); color: var(--acc-on); border-color: transparent; }
.btn.soft { background: var(--acc-soft); color: var(--acc-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.danger.primary, .btn.primary.danger { background: var(--danger); color: #fff; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .82rem; }
.btn.icon { width: 40px; padding: 0; } .btn.sm.icon { width: 34px; }
.btn.wide, .btn.big { width: 100%; min-height: 50px; font-size: .95rem; }
.btn:disabled { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: .84rem; font-weight: 500; color: var(--tx2); white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; }
.chip.on, .chip[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc-ink); }
.chip.tint { background: var(--hb); color: var(--ht); border-color: transparent; }
.linkish { color: var(--acc-ink); font-weight: 500; font-size: .86rem; padding: 6px 0; align-self: flex-start; }
/* retour tactile commun (léger, immédiat) */
:is(.btn, .chip, .ibtn, .tbtn, .ws-d, .tab, .pl-row, .up-row, .ncard, .hcard .hc-ck, .mood button, .seg button, .set-row.link, .icon-panel button, .ck, .opt, .swatch, .ri, .cv-item, .ex-chip, .wd, .slot):active { transform: scale(.965); }
:is(.btn, .chip, .ibtn, .tbtn, .ws-d, .tab, .pl-row, .up-row, .ncard, .ck, .seg button, .mood button, .icon-panel button, .opt, .swatch) { transition: transform .14s var(--ease), background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease; }

/* ---------- Champs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: .78rem; color: var(--tx2); font-weight: 500; padding-left: 2px; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-m); border: 1px solid var(--line2); background: var(--card); color: var(--tx);
  font-size: max(16px, .95rem); outline: none; -webkit-appearance: none; appearance: none; }
.textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--tx3) 50%), linear-gradient(135deg, var(--tx3) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
input[type="date"], input[type="time"] { min-height: 46px; display: flex; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.big-title { width: 100%; border: 0; outline: none; background: transparent; resize: none; font-size: 1.3rem; font-weight: 600; line-height: 1.3; padding: 4px 0; overflow: hidden; letter-spacing: -.01em; min-height: 1.6em; color: var(--tx); }
.big-title::placeholder, .input::placeholder, .textarea::placeholder { color: var(--tx3); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); }
.seg button { flex: 1; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: .84rem; font-weight: 500; color: var(--tx2); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--tx); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
:root[data-dark="1"] .seg button[aria-pressed="true"] { background: #3a3a3c; }
.seg.wide, .seg.wide3 { display: flex; width: 100%; }
.toggle { position: relative; width: 50px; height: 30px; flex: none; display: inline-block; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; border-radius: 999px; background: var(--line2); transition: background .2s ease; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .22s var(--ease); }
.toggle input:checked + i { background: var(--acc); }
.toggle input:checked + i::after { transform: translateX(20px); }
.opt-row, .when-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.when-chips .chip.on { background: var(--acc-soft); }
.icon-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.icon-panel button { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; color: var(--tx2); border: 1px solid var(--line); background: var(--card); }
.icon-panel button[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-ink); border-color: var(--acc-line); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors button { width: 34px; height: 34px; border-radius: 50%; background: var(--hb); border: 2px solid var(--h); }
.colors button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--h); }
.ev-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-sw { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .78rem; color: var(--tx2); }
.ev-sw i { width: 18px; height: 18px; border-radius: 50%; background: var(--hb); border: 2px solid var(--h); }
.ev-sw[aria-pressed="true"] { border-color: var(--h); color: var(--tx); background: var(--hb); }
.more-opts > summary { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--acc-ink); font-size: .86rem; font-weight: 500; cursor: pointer; padding: 6px 0; }
.more-opts > summary::-webkit-details-marker { display: none; }
.more-opts > div { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-m); background: var(--card2); font-size: .86rem; color: var(--tx2); }
.notice.ok { background: #e8f1ea; color: #355a3f; } .notice.warn, .notice.bad { background: #faeaed; color: #773743; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.kbd { display: none; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; }
.set-row .lbl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.set-row .lbl b { font-weight: 500; font-size: .92rem; }
.set-row .lbl small { color: var(--tx3); font-size: .78rem; }
.set-row.link { width: 100%; text-align: left; }
.set-row .chev { color: var(--tx3); }
.set-row .val { color: var(--tx2); font-size: .86rem; }

/* ---------- Barre d'onglets (seul élément « verre ») ---------- */
.tabbar { position: fixed; left: calc(12px + var(--sal)); right: calc(12px + var(--sar)); bottom: calc(max(var(--sab), 10px) + 4px); z-index: 40; height: 64px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center; border-radius: 32px; background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(30, 28, 24, .28), 0 1px 2px rgba(30, 28, 24, .05); max-width: 560px; margin: 0 auto; transition: transform .25s var(--ease); }
.tabbar .tabs { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; align-items: center; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 56px; color: var(--tx3); font-size: 10.5px; font-weight: 500; letter-spacing: .01em; }
.tab .tbi { position: relative; width: 52px; height: 30px; display: grid; place-items: center; border-radius: 999px; }
.tab .tbi::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--acc-soft); opacity: 0; transform: scale(.6); transition: opacity .22s ease, transform .3s var(--spring); }
.tab .tbi .ic { position: relative; width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--acc-ink); }
.tab[aria-current="page"] .tbi::before { opacity: 1; transform: none; }
.tab.mid .tbi { width: 44px; height: 30px; }
.tab.mid .face { position: relative; width: 26px; height: 26px; display: block; color: inherit; }
.tab .dot { position: absolute; top: 2px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); border: 1.5px solid var(--bg); }
body.kb .tabbar { transform: translateY(calc(100% + 40px)); }

/* bande sous la barre d'état (Dynamic Island) : le contenu qui défile passe dessous, jamais dessus */
/* V09.7 : plus de bande opaque en haut ; ce sont les en-têtes fixes qui couvrent la zone de l'heure */

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + 12px + var(--kb)); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 460px; width: 100%; padding: 10px 8px 10px 14px; border-radius: 16px; background: #26251f; color: #f6f5f1;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); animation: tIn .28s var(--ease) both; font-size: .88rem; }
:root[data-dark="1"] .toast { background: #2c2c2e; }
.toast .tic { color: #c9c4ff; display: grid; } .toast .tx { flex: 1; min-width: 0; font-weight: 500; }
.toast .tx small { display: block; opacity: .7; font-weight: 400; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast .btn { background: rgba(255, 255, 255, .12); color: #fff; border: 0; min-height: 32px; }
.toast .btn.ghost { background: none; opacity: .7; width: 32px; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.soft { background: var(--card); color: var(--tx); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.toast.soft .tic { color: var(--acc); } .toast.soft .btn { background: var(--card2); color: var(--tx); }
@keyframes tIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Feuilles (modales) : glissent du bas sur iPhone, centrées sur iPad ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(15, 14, 12, .32); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s ease both; overscroll-behavior: contain; touch-action: pan-y; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - var(--sat) - 18px); display: flex; flex-direction: column; background: var(--bg); border-radius: 22px 22px 0 0;
  padding-bottom: var(--sab); animation: sheetIn .32s var(--ease) both; box-shadow: var(--shadow-up); }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
.modal::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: var(--line2); }
.modal-h { display: flex; align-items: center; gap: 8px; padding: 18px 14px 6px 20px; }
.modal-h h2 { flex: 1; font-size: 1.08rem; }
.modal-h .btn.icon { width: 34px; min-height: 34px; background: var(--card2); border: 0; }
.modal-h .btn.icon .ic { width: 16px; height: 16px; }
.modal-b { padding: 8px 20px 16px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-f { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.modal.full { height: calc(100dvh - var(--sat) - 10px); }
body.kb .overlay { align-items: flex-start; padding-top: calc(var(--sat) + 6px); }
body.kb .modal { border-radius: 22px; max-height: calc(100dvh - var(--kb) - var(--sat) - 12px); padding-bottom: 0; }
@media (min-width: 700px) {
  .overlay { align-items: center; }
  .modal { border-radius: 22px; padding-bottom: 0; }
  .modal::before { display: none; }
}
/* recherche globale */
.overlay.pal { align-items: flex-start; padding-top: calc(var(--sat) + 10px); }
.palette { width: calc(100% - 20px); max-width: 600px; background: var(--bg); border-radius: 20px; border: 1px solid var(--line2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); overflow: hidden; animation: sheetIn .25s var(--ease) both; }
.palette .pin { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--tx3); }
.palette .pin input { flex: 1; border: 0; outline: 0; background: none; font-size: max(16px, 1rem); min-width: 0; }
.palette .res { max-height: 60vh; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.palette .ri { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; width: 100%; text-align: left; }
.palette .ri.sel { background: var(--card); }
.palette .rii { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--hb, var(--card2)); color: var(--ht, var(--tx2)); flex: none; }
.palette .tt { flex: 1; min-width: 0; } .palette .tt b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette .tt span { display: block; font-size: .78rem; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette .rh { font-size: .72rem; font-weight: 600; color: var(--tx3); padding: 10px 10px 4px; text-transform: uppercase; letter-spacing: .06em; }
.palette mark { background: var(--acc-soft); color: inherit; border-radius: 3px; }

/* ---------- Calendrier horizontal partagé ---------- */
.wstrip { display: flex; flex-direction: column; gap: 6px; }
.ws-h { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.ws-month { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; font-weight: 500; color: var(--tx2); padding: 4px 0; }
.ws-month .ic { width: 14px; height: 14px; }
.ws-month input { position: absolute; inset: 0; opacity: 0; width: 100%; font-size: 16px; }
.ws-today { height: 30px; padding: 0 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--acc-ink); background: var(--acc-soft); }
.ws-vp { overflow: hidden; margin: 0 -4px; padding: 2px 4px; touch-action: pan-y; }
.ws-row { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 4px; will-change: transform; }
.ws-row.in-l { animation: wsInL .26s var(--ease) both; } .ws-row.in-r { animation: wsInR .26s var(--ease) both; }
@keyframes wsInL { from { transform: translateX(28%); opacity: 0; } } @keyframes wsInR { from { transform: translateX(-28%); opacity: 0; } }
.ws-d { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 14px; color: var(--tx2); position: relative; min-width: 0; }
.ws-d i { font-style: normal; font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--tx3); }
.ws-d b { font-size: 1.02rem; font-weight: 600; font-variant-numeric: tabular-nums; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--tx); }
.ws-d.past b { color: var(--tx3); font-weight: 500; }
.ws-d.today b { color: var(--acc-ink); box-shadow: inset 0 0 0 1.5px var(--acc); }
.ws-d.sel b { background: var(--tx); color: var(--bg); box-shadow: none; }
.ws-d.sel.today b { background: var(--acc); color: var(--acc-on); }
.ws-d .mk { width: 4px; height: 4px; border-radius: 50%; background: var(--acc); opacity: 0; }
.ws-d.has .mk { opacity: .9; }
.ws-d.sel .mk { opacity: .9; }

/* ---------- Accueil ---------- */
.home-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -6px; }
.hero h1 { font-size: 1.75rem; line-height: 1.1; font-weight: 600; }
:root[data-font="serif"] .hero h1 { font-weight: 500; }
.hero p { color: var(--tx2); margin-top: 6px; font-size: .9rem; }
.hero p b { color: var(--tx); font-weight: 600; }
.clock { font-size: 1.75rem; line-height: 1.1; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--tx2); }
.daysum { color: var(--tx2); font-size: .88rem; }
.daysum b { color: var(--tx); font-weight: 600; }
.plan { padding: 4px 0; }
.pl-row { display: flex; align-items: stretch; gap: 12px; padding: 10px 14px; width: 100%; text-align: left; }
.pl-time { width: 96px; flex: none; font-variant-numeric: tabular-nums; font-size: .88rem; font-weight: 600; color: var(--tx); padding-top: 1px; white-space: nowrap; }
.pl-time.all { font-weight: 500; color: var(--tx2); font-size: .8rem; }
.pl-bar { width: 3px; border-radius: 2px; background: var(--h); flex: none; }
.pl-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pl-b b { font-weight: 500; font-size: .95rem; overflow-wrap: anywhere; }
.pl-b small { color: var(--tx3); font-size: .78rem; }
.pl-row.past { opacity: .5; }
.pl-row.now .pl-time { color: var(--acc-ink); }
.pl-now { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--acc); font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-now hr { flex: 1; border: 0; height: 1.5px; background: var(--acc); opacity: .6; margin: 0; }
.up-day { font-size: .72rem; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px 4px; }
.up-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 16px; }
.up-row .dotc { width: 8px; height: 8px; border-radius: 50%; background: var(--h); flex: none; }
.up-row .t { width: 96px; flex: none; font-variant-numeric: tabular-nums; font-size: .84rem; color: var(--tx2); }
.up-row .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-list { padding-bottom: 6px; }
/* bien-être (accueil) */
.wb { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.wb-h { display: flex; align-items: center; justify-content: space-between; }
.wb-h b { font-weight: 500; }
.wb-h .link { color: var(--acc-ink); font-size: .8rem; font-weight: 500; }
.mood { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mood button { height: 50px; border-radius: 14px; font-size: 26px; line-height: 1; display: grid; place-items: center; background: var(--card2); border: 1px solid transparent; filter: grayscale(.35); opacity: .8; }
.mood button[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc-line); filter: none; opacity: 1; transform: scale(1.04); }
.mood.ro button { pointer-events: none; }
.mood-note { color: var(--tx2); font-size: .84rem; font-style: italic; }
.cy-chip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: #faeaed; color: #773743; }
:root[data-dark="1"] .cy-chip { background: color-mix(in srgb, #cc8792 20%, #1c1c1e); color: #f0c9cf; }
.cy-chip .cyi { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .7); display: grid; place-items: center; flex: none; }
:root[data-dark="1"] .cy-chip .cyi { background: rgba(255, 255, 255, .08); }
.cy-chip span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cy-chip b { font-weight: 600; } .cy-chip small { opacity: .8; font-size: .78rem; }
.cheer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--acc-soft); color: var(--acc-ink); font-size: .88rem; font-weight: 500; }
.cheer.new { animation: cheerIn .6s var(--spring) both; }
.cheer.new .ic { animation: spark 1.2s ease .2s both; }
@keyframes cheerIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes spark { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(18deg) scale(1.25); } 100% { transform: none; } }

/* ---------- Tâches ---------- */
.tlist { display: flex; flex-direction: column; }
.swipe-wrap { position: relative; overflow: hidden; }
.swipe-wrap + .swipe-wrap { border-top: 1px solid var(--line); }
.swipe-bg { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 20px; font-weight: 600; font-size: .86rem; opacity: 0; gap: 4px; }
.swipe-bg.r { background: var(--acc-soft); color: var(--acc-ink); } .swipe-bg.l { justify-content: flex-end; background: var(--card2); color: var(--tx2); }
.titem { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 13px 10px 13px 14px; background: var(--card); transition: opacity .35s ease, transform .2s var(--ease); }
.titem .body { flex: 1; min-width: 0; cursor: pointer; padding-top: 1px; }
.titem .t { font-size: .95rem; overflow-wrap: anywhere; line-height: 1.35; }
.titem .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: .76rem; color: var(--tx3); align-items: center; }
.titem .meta span { display: inline-flex; align-items: center; gap: 3px; }
.titem .meta .ic { width: 12px; height: 12px; }
.titem .when.late { color: var(--danger); } .titem .when.today { color: var(--acc-ink); }
.titem .acts { display: flex; gap: 0; margin: -4px -2px -4px 0; }
.titem .acts .btn { color: var(--tx3); }
.titem.done .t { text-decoration: line-through; color: var(--tx3); }
.titem.leaving { opacity: 0; transform: translateX(14px); }
.ck { width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid var(--tx3); display: grid; place-items: center; color: transparent; flex: none; margin-top: 0; }
.ck .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.ck.sq { border-radius: 7px; }
.ck.done { background: var(--acc); border-color: var(--acc); color: var(--acc-on); }
.ck.pop { animation: ckPop .35s var(--spring); }
@keyframes ckPop { 50% { transform: scale(1.18); } }
.badge-p, .badge-c { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--hb); color: var(--ht); }
.carry { color: var(--tx3); font-size: .72rem; }
.cl-item { display: flex; align-items: center; gap: 8px; } .cl-item input { flex: 1; border: 0; background: none; outline: none; font-size: max(16px, .95rem); padding: 6px 0; }
.cl-item.done input { text-decoration: line-through; color: var(--tx3); }
.addline { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; }
.addline input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: max(16px, .95rem); height: 44px; }
.hist-day { font-size: .72rem; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; padding: 4px 2px; }
details.fold > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--tx2); font-size: .86rem; font-weight: 500; padding: 4px 2px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .ic { transition: transform .2s ease; width: 16px; height: 16px; }
details.fold[open] > summary .ic { transform: rotate(90deg); }
details.fold > .card { margin-top: 8px; }

/* ---------- Objectifs ---------- */
.hcards { display: flex; flex-direction: column; gap: 10px; }
.hcard { padding: 14px 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.hc-top { display: flex; align-items: center; gap: 12px; }
.hc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); flex: none; }
.hc-t { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 1px; }
.hc-t b { font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.hc-t i { font-style: normal; color: var(--tx3); font-size: .78rem; }
.hc-ck { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--acc-line); color: var(--acc-ink); flex: none; background: var(--card); }
.hc-ck.part { border-style: solid; background: var(--acc-soft); }
.hc-ck[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-on); }
.hc-ck .ic { width: 20px; height: 20px; }
.hc-prog { display: flex; align-items: center; gap: 12px; }
.ctr { display: inline-flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; font-size: 1.15rem; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.ctr i { font-style: normal; color: var(--tx3); font-weight: 400; margin: 0 1px; }
.ctr em { font-style: normal; color: var(--tx2); font-weight: 500; }
.ctr.full, .ctr.full em { color: var(--acc-ink); }
.hc-unit { color: var(--tx3); font-size: .78rem; margin-left: 4px; }
.hc-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--card2); overflow: hidden; }
.hc-bar i { display: block; height: 100%; border-radius: 3px; background: var(--acc); transition: width .5s var(--ease); }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--card2); color: var(--tx2); white-space: nowrap; }
.pill.ok { background: var(--acc-soft); color: var(--acc-ink); }
.pill .ic { width: 12px; height: 12px; }
.hcard.is-done { background: color-mix(in srgb, var(--card) 70%, var(--bg)); }
.hcard.is-done .hc-t b { color: var(--tx2); }
.hcard.mini { padding: 12px 12px 12px 14px; gap: 10px; }
.hcard.mini .hc-ic { width: 34px; height: 34px; }
.hcard.mini .hc-ck { width: 38px; height: 38px; }
.done-h { font-size: .72rem; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; padding: 6px 2px 0; }
.wdots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wd { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 0; border-radius: 10px; }
.wd svg { display: block; }
.wd i { font-style: normal; font-size: .66rem; color: var(--tx3); text-transform: uppercase; }
button.wd { cursor: pointer; }
.wd.lk::after { content: ""; position: absolute; top: 11.25px; left: calc(50% + 9.5px); width: calc(100% - 19px); height: 1.5px; border-radius: 2px; background: var(--ink); opacity: .55; transform-origin: left center; pointer-events: none; }
.slots { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.slot { position: relative; width: 40px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.slot svg { display: block; }
.slot i { font-style: normal; font-size: .66rem; color: var(--tx3); min-height: 1em; line-height: 1; text-transform: uppercase; }
.slot.on { cursor: pointer; }
.slot.lk::after { content: ""; position: absolute; top: 9.25px; left: calc(50% + 10px); width: calc(100% - 14px); height: 1.5px; border-radius: 2px; background: var(--ink); opacity: .55; transform-origin: left center; pointer-events: none; }
.flash .slot.fresh polygon, .flash .wd.today-done polygon:last-child { transform-box: fill-box; transform-origin: center; animation: hexFill .6s var(--spring) .1s both; }
.flash .slot.lk:has(+ .slot.fresh)::after, .flash .wd.lk:has(+ .wd.today-done)::after { animation: linkDraw .45s .4s ease-out both; }
@keyframes hexFill { from { transform: scale(.3); opacity: 0; } }
@keyframes linkDraw { from { transform: scaleX(0); } }
.tally { display: block; overflow: visible; }
.hc-foot { display: flex; align-items: center; gap: 8px; color: var(--tx3); font-size: .78rem; }
.goal-hist { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; align-items: end; height: 46px; }
.goal-hist i { display: block; border-radius: 4px; background: var(--acc-soft); min-height: 4px; }
.goal-hist i.full { background: var(--acc); opacity: .7; }
.goal-hist-l { display: flex; justify-content: space-between; color: var(--tx3); font-size: .68rem; }

/* ---------- Agenda ---------- */
.ag-tools { display: flex; align-items: center; gap: 6px; }
.ag-zoomr { height: 30px; padding: 0 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--card2); color: var(--tx2); }
.ag { --hh: 52px; --gw: 40px; display: flex; flex-direction: column; }
.ag .ws-h { margin-bottom: 2px; }
.ag-head { position: sticky; top: var(--sat); z-index: 5; background: var(--bg); padding: 4px 0 6px; border-bottom: 1px solid var(--line); }
.ag-head .ws-vp { margin: 0 0 0 var(--gw); padding: 2px 0; }
.ag-head .ws-row { gap: 2px; }
.ag-head .ws-d { padding: 4px 0 4px; border-radius: 12px; }
.ag-head .ws-d b { width: 30px; height: 30px; font-size: .92rem; }
.ag-allday { display: grid; grid-template-columns: var(--gw) 1fr; border-bottom: 1px solid var(--line); padding: 4px 0; }
.ag-allday .lbl { font-size: .6rem; color: var(--tx3); align-self: center; text-align: right; padding-right: 6px; }
.ag-allday .cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.ag-allday .ad { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adblk { font-size: .66rem; padding: 3px 5px; border-radius: 6px; background: var(--hb); color: var(--ht); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; text-align: left; }
.ag-grid { position: relative; display: grid; grid-template-columns: var(--gw) 1fr; margin-top: 10px; touch-action: pan-y; }
.ag-hours { position: relative; }
.ag-hours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: .64rem; color: var(--tx3); font-variant-numeric: tabular-nums; }
.ag-cols { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% var(--hh); }
.ag-col { position: relative; min-height: 100%; border-radius: 8px; }
.ag-col.sel { background: color-mix(in srgb, var(--acc-soft) 55%, transparent); }
.ag-col.wkend { background: color-mix(in srgb, var(--card2) 50%, transparent); }
.ag-col.sel.wkend { background: color-mix(in srgb, var(--acc-soft) 55%, transparent); }
.ev { position: absolute; left: calc(var(--l, 0) * 100% + 1px); width: calc(var(--w, 1) * 100% - 2px); border-radius: 7px; padding: 3px 4px; background: var(--hb); color: var(--ht);
  border-left: 2.5px solid var(--h); overflow: hidden; text-align: left; font-size: .66rem; line-height: 1.2; display: flex; flex-direction: column; gap: 1px; }
.ev b { font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: var(--lines, 3); -webkit-box-orient: vertical; overflow: hidden; }
.ev span { opacity: .8; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.ev.short { padding-top: 1px; padding-bottom: 1px; } .ev.short span { display: none; }
.ev.past { opacity: .55; }
.ag-now { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--danger); z-index: 3; pointer-events: none; }
.ag-now::before { content: ""; position: absolute; left: -4px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.ag-ghost { position: absolute; left: 1px; right: 1px; border-radius: 7px; background: var(--acc-soft); border: 1.5px dashed var(--acc); pointer-events: none; z-index: 2; animation: fadeIn .15s ease both; }
.ag-body.out-l { animation: agOutL .18s ease both; } .ag-body.out-r { animation: agOutR .18s ease both; }
.ag-body.in-l { animation: agInL .24s var(--ease) both; } .ag-body.in-r { animation: agInR .24s var(--ease) both; }
@keyframes agInL { from { opacity: 0; transform: translateX(24px); } } @keyframes agInR { from { opacity: 0; transform: translateX(-24px); } }
.ag-empty-week { margin-top: 6px; color: var(--tx3); font-size: .8rem; text-align: center; }
.ag-day-list { margin-top: 18px; }
@media (min-width: 700px) { .ag { --gw: 48px; } .ev { font-size: .74rem; padding: 4px 6px; } }

/* ---------- Carnet ---------- */
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut); }
.cats::-webkit-scrollbar { display: none; }
.cats .chip { flex: none; }
.cats .chip .ic { width: 15px; height: 15px; }
.nsearch { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--card2); color: var(--tx3); }
.nsearch input { flex: 1; border: 0; outline: 0; background: none; font-size: max(16px, .95rem); min-width: 0; color: var(--tx); }
.ngrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .ngrid { grid-template-columns: 1fr 1fr; } }
.ncard { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-align: left; width: 100%; }
.ncard .nh { display: flex; align-items: center; gap: 8px; }
.ncard .nh b { flex: 1; font-weight: 600; font-size: .98rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncard .nci { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--hb); color: var(--ht); flex: none; }
.ncard .nci .ic { width: 14px; height: 14px; }
.ncard p { color: var(--tx2); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ncard small { color: var(--tx3); font-size: .74rem; }
.n-empty { padding: 48px 20px 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--tx2); }
.n-empty .ill { width: 74px; height: 92px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card) repeating-linear-gradient(to bottom, transparent 0 15px, var(--acc-line) 15px 16px); background-position: 0 14px; box-shadow: var(--shadow); transform: rotate(-4deg); }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; }
.hist-row .hb { flex: 1; min-width: 0; }
.hist-row .hb b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-row .hb small { display: block; color: var(--tx3); font-size: .74rem; }
.hist-row .ibtn { width: 34px; height: 34px; border: 0; background: transparent; color: var(--tx3); }
/* éditeur */
.ed { display: flex; flex-direction: column; gap: 10px; }
.ed-bar { position: sticky; top: var(--sat); z-index: 6; display: flex; align-items: center; gap: 4px; background: var(--bg); padding: 4px 0 6px; margin-top: -4px; }
.ed-bar .spacer { flex: 1; }
.ed-state { font-size: .72rem; color: var(--tx3); }
.ed-title { font-size: 1.45rem; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; border: 0; outline: 0; background: transparent; resize: none; width: 100%; padding: 0; overflow: hidden; color: var(--tx); }
.ed-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--tx3); font-size: .76rem; }
.ed-meta .chip { height: 30px; font-size: .78rem; }
.paper { --lh: 30px; --pad-x: 20px; position: relative; border-radius: var(--r); border: 1px solid var(--line); background-color: var(--card); box-shadow: var(--shadow); }
.paper.m-s { --pad-x: 12px; } .paper.m-l { --pad-x: 32px; }
.paper textarea { display: block; width: 100%; min-height: calc(var(--lh) * 15.5); border: 0; outline: 0; resize: none; overflow: hidden; background: transparent; color: var(--tx);
  font-size: max(16px, 1rem); line-height: var(--lh); padding: calc(var(--lh) / 2) var(--pad-x) calc(var(--lh) * 3); font-family: var(--nf, var(--f)); caret-color: var(--acc);
  background-attachment: local; background-repeat: repeat; }
/* motifs : alignés exactement sur la ligne de texte (ligne d'écriture = bas de chaque ligne) */
.paper.p-ligne textarea { background-image: linear-gradient(to bottom, transparent calc(var(--lh) - 1px), var(--rule) calc(var(--lh) - 1px)); background-size: 100% var(--lh); background-position: 0 calc(var(--lh) * .3 + 5px); }
.paper.p-quadrille textarea { background-image: linear-gradient(to bottom, transparent calc(var(--lh) - 1px), var(--rule2) calc(var(--lh) - 1px)), linear-gradient(to right, transparent calc(var(--lh) - 1px), var(--rule2) calc(var(--lh) - 1px));
  background-size: var(--lh) var(--lh); background-position: var(--pad-x) calc(var(--lh) * .3 + 5px); }
.paper.p-points textarea { background-image: radial-gradient(circle at calc(var(--lh) - 1px) calc(var(--lh) - 1px), var(--rule) 1.2px, transparent 1.6px); background-size: var(--lh) var(--lh); background-position: var(--pad-x) calc(var(--lh) * .3 + 5px); }
.paper { --rule: color-mix(in srgb, var(--acc) 30%, transparent); --rule2: color-mix(in srgb, var(--acc) 18%, transparent); }
.paper.f-serif { --nf: var(--serif); } .paper.f-sans { --nf: var(--sans); } .paper.f-classic { --nf: "Crimson", Georgia, serif; } .paper.f-mono { --nf: ui-monospace, "SF Mono", Menlo, monospace; }
.paper.f-classic textarea { font-size: max(17px, 1.06rem); }
.paper.f-mono textarea { font-size: max(16px, .9rem); }
.paper.s-s { --lh: 26px; } .paper.s-l { --lh: 34px; }
.paper.s-l textarea { font-size: max(17px, 1.1rem); }
.pp-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pp-sw { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .76rem; color: var(--tx2); }
.pp-sw i { width: 100%; aspect-ratio: .8; border-radius: 10px; border: 1px solid var(--line2); background-color: var(--card); --s: 10px; }
.pp-sw[data-pp="ligne"] i { background-image: linear-gradient(to bottom, transparent 9px, var(--acc-line) 9px); background-size: 100% var(--s); }
.pp-sw[data-pp="quadrille"] i { background-image: linear-gradient(to bottom, transparent 9px, var(--acc-line) 9px), linear-gradient(to right, transparent 9px, var(--acc-line) 9px); background-size: var(--s) var(--s); }
.pp-sw[data-pp="points"] i { background-image: radial-gradient(circle at 9px 9px, var(--acc) 1px, transparent 1.5px); background-size: var(--s) var(--s); }
.pp-sw[aria-pressed="true"] i { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-line); }
.pp-sw[aria-pressed="true"] { color: var(--acc-ink); font-weight: 600; }
.theme-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; }
.theme-row .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--hb); color: var(--ht); flex: none; }
.theme-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: max(16px, .95rem); height: 40px; }
.theme-row .ibtn { width: 36px; height: 36px; border: 0; background: transparent; color: var(--tx3); }

/* ---------- Assistant ---------- */
.v-assistant { min-height: calc(100dvh - var(--sat) - var(--tab-h) - 40px); gap: 12px; }
.chat { display: flex; flex-direction: column; gap: 10px; flex: 1; padding-bottom: 90px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 20px; font-size: .95rem; line-height: 1.42; overflow-wrap: anywhere; white-space: pre-wrap; animation: msgIn .25s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg.me { align-self: flex-end; background: var(--hb); color: var(--ht); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.bot .acts-done { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; white-space: normal; }
.act { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card2); font-size: .86rem; text-align: left; width: 100%; }
.act .ai { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--hb); color: var(--ht); flex: none; }
.act .ai .ic { width: 15px; height: 15px; }
  .act > span:nth-child(2) { flex: 1; min-width: 0; } .act [data-undo] { flex: none; padding: 6px 2px 6px 8px; } .act b { font-weight: 600; display: block; } .act small { color: var(--tx3); font-size: .76rem; }
.act.undone { opacity: .5; text-decoration: line-through; }
.msg .choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; white-space: normal; }
.msg .choices .chip { height: 32px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--tx3); animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.as-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 26px 10px 8px; }
.as-intro .face { width: 56px; height: 56px; color: var(--acc); }
.as-intro h2 { font-size: 1.2rem; font-weight: 600; }
.as-intro p { color: var(--tx2); font-size: .88rem; max-width: 320px; }
.examples { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 6px; }
.examples button { text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; color: var(--tx2); }
.composer { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--kb)); z-index: 30; padding: 8px calc(12px + var(--sar)) 10px calc(12px + var(--sal)); background: linear-gradient(to bottom, transparent, var(--bg) 30%); transition: bottom .1s linear; }
body.kb .composer { bottom: var(--kb); padding-bottom: 8px; }
.composer .cin { max-width: 680px; margin: 0 auto; display: flex; align-items: flex-end; gap: 6px; padding: 5px 5px 5px 14px; border-radius: 24px; background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.composer textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; resize: none; font-size: max(16px, .95rem); line-height: 1.35; padding: 8px 0; max-height: 140px; min-height: 36px; }
.composer .cbtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--tx2); flex: none; }
.composer .cbtn.send { background: var(--tx); color: var(--bg); }
.composer .cbtn.send:disabled { opacity: .25; }
.composer .cbtn.rec { background: var(--danger); color: #fff; animation: recP 1.4s ease-in-out infinite; }
@keyframes recP { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--danger) 25%, transparent); } }
.interim { color: var(--tx3); font-style: italic; }
.cv-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; width: 100%; text-align: left; }
.cv-item .cb { flex: 1; min-width: 0; } .cv-item b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cv-item small { color: var(--tx3); font-size: .74rem; }
.cv-item.cur b { color: var(--acc-ink); }
.bub-sw { display: flex; gap: 10px; }
.bub-sw button { width: 34px; height: 34px; border-radius: 50%; background: var(--hb); border: 2px solid var(--h); }
.bub-sw button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--h); }

/* ---------- Bien-être : cycle et humeur (feuilles superposées) ---------- */
.sheet-sec { display: flex; flex-direction: column; gap: 10px; }
.sheet-sec > h3 { font-size: .74rem; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; }
.cy-big { display: flex; align-items: baseline; gap: 8px; } .cy-big b { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; } .cy-big span { color: var(--tx2); }
.cy-next { color: var(--tx2); font-size: .9rem; } .cy-next b { color: var(--tx); }
.cy-note { display: flex; gap: 6px; align-items: flex-start; color: var(--tx3); font-size: .76rem; }
.cy-note .ic { width: 14px; height: 14px; margin-top: 1px; }
.cy-phase { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--card2); font-size: .84rem; }
.cy-phase i { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); flex: none; }
.cy-cal { display: flex; flex-direction: column; gap: 16px; }
.cy-mt { font-weight: 600; font-size: .9rem; text-transform: capitalize; }
.cy-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 6px; }
.cy-dow { font-style: normal; text-align: center; font-size: .66rem; color: var(--tx3); text-transform: uppercase; padding-bottom: 2px; }
.cy-d { aspect-ratio: 1; border-radius: 50%; font-size: .82rem; font-variant-numeric: tabular-nums; display: grid; place-items: center; color: var(--tx); position: relative; }
.cy-d.per { background: #e7a3ae; color: #fff; font-weight: 600; }
.cy-d.est { box-shadow: inset 0 0 0 1.5px #e7a3ae; color: #a54f5e; }
.cy-d.fer { background: color-mix(in srgb, #8fb3d9 30%, transparent); }
.cy-d.ovu { background: color-mix(in srgb, #8fb3d9 60%, transparent); font-weight: 600; }
.cy-d.today { outline: 2px solid var(--tx); outline-offset: -2px; }
.cy-d.sym::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--tx2); }
.cy-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .74rem; color: var(--tx2); }
.cy-legend span { display: inline-flex; align-items: center; gap: 5px; } .cy-legend i { width: 10px; height: 10px; border-radius: 50%; }
.cy-legend .per { background: #e7a3ae; } .cy-legend .est { box-shadow: inset 0 0 0 1.5px #e7a3ae; } .cy-legend .fer { background: color-mix(in srgb, #8fb3d9 45%, transparent); }
.sym-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.witem { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.witem .wk-t { flex: 1; display: flex; flex-direction: column; } .witem .wk-t small { color: var(--tx3); font-size: .76rem; }
.mood-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.mood-week span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .66rem; color: var(--tx3); text-transform: uppercase; }
.mood-week em { font-style: normal; font-size: 22px; line-height: 30px; height: 30px; }
.mood-week em.none { width: 8px; height: 8px; margin: 11px 0; border-radius: 50%; background: var(--line2); }
.mood-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mood-month span { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: var(--card2); }
.mood-month span.e { background: transparent; }
.mood-month span.lv1 { background: #f3d6da; } .mood-month span.lv2 { background: #f6e3cf; } .mood-month span.lv3 { background: #efeeec; } .mood-month span.lv4 { background: #dfeee2; } .mood-month span.lv5 { background: #d2e6d7; }
:root[data-dark="1"] .mood-month span[class*="lv"] { filter: brightness(.35) saturate(1.4); }
.mood-hist { display: flex; flex-direction: column; }
.mood-hist .witem em { font-style: normal; font-size: 22px; }

/* ---------- Paramètres ---------- */
.set-group { display: flex; flex-direction: column; gap: 8px; }
.set-group > h3 { font-size: .74rem; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; padding: 0 4px; }
.set-group .card > * + * { border-top: 1px solid var(--line); }
.acc-sw { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.acc-sw button { width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line2); }
.acc-sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c); }
.font-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
.font-pick button { padding: 14px 12px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); text-align: left; display: flex; flex-direction: column; gap: 4px; }
.font-pick button b { font-size: 1.5rem; font-weight: 500; line-height: 1; }
.font-pick button small { color: var(--tx3); font-size: .74rem; }
.font-pick button[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-soft); }
.font-pick [data-font="serif"] b { font-family: var(--serif); } .font-pick [data-font="sans"] b { font-family: var(--sans); }
.app-ver { text-align: center; color: var(--tx3); font-size: .74rem; padding: 8px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.app-ver .logo { font-size: 26px; color: var(--tx2); }
.set-row .rbtns { display: flex; gap: 6px; }

/* ---------- Présentation (première ouverture) ---------- */
.onb { position: fixed; inset: 0; z-index: 150; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; animation: fadeIn .3s ease both; overscroll-behavior: contain; }
.onb.out { opacity: 0; transform: scale(.99); transition: opacity .35s ease, transform .35s ease; }
.onb-in { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding: calc(var(--sat) + 14px) 22px calc(var(--sab) + 18px); }
.onb-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.onb-top .logo { font-size: 26px; }
.onb-skip { color: var(--tx2); font-size: .88rem; font-weight: 500; height: 40px; padding: 0 4px; }
.onb-prof h1 { font-size: 1.7rem; margin: 18px 0 6px; }
.onb-prof .lead { color: var(--tx2); }
.onb-stage { flex: 1; display: flex; flex-direction: column; gap: 14px; animation: onbIn .32s var(--ease) both; }
.onb-stage.back { animation-name: onbInB; }
@keyframes onbIn { from { opacity: 0; transform: translateX(20px); } } @keyframes onbInB { from { opacity: 0; transform: translateX(-20px); } }
.onb-shot { min-height: 330px; border-radius: 26px; background: var(--card2); border: 1px solid var(--line); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; justify-content: center; overflow: hidden; }
.onb-stage h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; }
.onb-stage p { color: var(--tx2); font-size: .95rem; line-height: 1.5; }
.onb-foot { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.onb-dots { display: flex; justify-content: center; gap: 6px; }
.onb-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line2); transition: width .25s var(--ease), background .25s ease; }
.onb-dots i.on { width: 22px; background: var(--acc); }
.onb-btns { display: flex; gap: 10px; } .onb-btns .btn.big { flex: 1; }
.onb-btns .btn.ghost { width: 50px; min-height: 50px; padding: 0; border: 1px solid var(--line2); }
.onb-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.onb-opt span:first-child { flex: 1; display: flex; flex-direction: column; } .onb-opt i { font-style: normal; color: var(--tx3); font-size: .78rem; }
/* miniatures (vrais composants en petit) */
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.mini-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px 6px; }
.mini-tabs span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--tx2); }
.mini-tabs span .ic { width: 22px; height: 22px; }
.mini-tabs span.on { color: var(--acc-ink); }
.mini-tabs span.on b { background: var(--acc-soft); }
.mini-tabs b { width: 44px; height: 28px; border-radius: 999px; display: grid; place-items: center; }
.mini-tabs .face { width: 24px; height: 24px; }
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-list .ml { display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.mini-list .ml .ic { width: 18px; height: 18px; color: var(--acc-ink); }
.mini .pl-row { padding: 6px 0; } .mini .pl-time { width: 92px; font-size: .8rem; }
.mini .ws-d b { width: 28px; height: 28px; font-size: .84rem; }
.mini-note { padding: 0; overflow: hidden; }
.mini-note .paper { border: 0; box-shadow: none; border-radius: 0; --lh: 24px; }
.mini-note .ptxt { font-size: .88rem; line-height: var(--lh); padding: 12px 16px 14px; margin: 0; white-space: pre-line;
  background-image: linear-gradient(to bottom, transparent calc(var(--lh) - 1px), var(--rule) calc(var(--lh) - 1px)); background-size: 100% var(--lh); background-position: 0 calc(12px + 3px); }
.mini-note .nt { font-weight: 600; padding: 12px 16px 0; display: block; }
.mini-chat { display: flex; flex-direction: column; gap: 8px; }
.mini-chat .msg { max-width: 92%; font-size: .84rem; animation: none; }
.mini-sw { display: flex; gap: 8px; } .mini-sw i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); }
.mini-fonts { display: flex; gap: 10px; align-items: baseline; } .mini-fonts b { font-size: 1.6rem; font-weight: 500; } .mini-fonts b:first-child { font-family: var(--sans); } .mini-fonts b:last-child { font-family: var(--serif); font-style: italic; }

/* ---------- Clavier ouvert : rien n'est masqué, rien ne reste bloqué ---------- */
body.kb .main { padding-bottom: calc(var(--kb) + 40px); }

/* ---------- iPad / grands écrans ---------- */
@media (min-width: 700px) {
  :root { --gut: 28px; }
  .hero h1 { font-size: 2.05rem; }
  .home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
  .home-cols > div { display: flex; flex-direction: column; gap: 22px; }
}
@media (min-width: 1000px) { .main { max-width: 900px; } }

/* ---------- Accessibilité : mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ---------- Séances (éditeur) ---------- */
.wk-form { display: flex; flex-direction: column; gap: 12px; }
.wk-types { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wk-types.sub .faint { margin-right: 2px; }
.wk-more.open .ic { transform: rotate(45deg); }
.wk-when { color: var(--tx2); font-size: .88rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wk-date { max-width: 180px; }
.ex-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-m); padding: 10px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ex-card .row .input { flex: 1; }
.sets { display: flex; flex-direction: column; gap: 6px; }
.set { display: grid; grid-template-columns: 16px 64px auto 72px auto 34px; gap: 6px; align-items: center; }
.set .input { min-height: 40px; padding: 6px 8px; text-align: center; }
.wk-cardio { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .wk-cardio.one { grid-template-columns: 1fr; }
.wk-num { position: relative; } .wk-num i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--tx3); font-size: .84rem; }
.numrow { display: flex; align-items: center; gap: 8px; } .numrow .bigin { flex: 1; text-align: center; font-size: 1.4rem; font-weight: 600; } .numrow .unit { color: var(--tx3); }
.v-seances .hcard { gap: 14px; }
/* miniature du papier (tutoriel) */
.mini-note .paper { --rule: color-mix(in srgb, var(--acc) 30%, transparent); }
.mini-note .ptxt { background-position: 0 calc(13px - var(--lh) * .2); }
.ag .ws-h { padding: 0 2px; }
.font-pick button span { font-size: .86rem; font-weight: 600; }
.v-home .hcards { gap: 8px; }

.home-cols, .home-cols > div { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 700px) { .home-cols { display: grid; grid-template-columns: 1fr 1fr; align-items: start; } }
.card.tlist, .card.list, .card.plan, .card.up-list { overflow: hidden; }
[data-banner]:empty { display: none; }
.ev b { overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
.ev.narrow { padding-left: 3px; padding-right: 2px; } .ev.narrow span { display: none; } .ev.narrow b { font-size: .6rem; }
[data-cy-body], [data-mood-body], [data-th], [data-cv] { display: flex; flex-direction: column; gap: 22px; }
/* identité douce du suivi du cycle (reste dans la palette Today) */
.modal.cy-sheet { --acc: #cc8792; --acc-soft: #faecee; --acc-ink: #7c3b47; --acc-line: #f0d3d8; }
:root[data-dark="1"] .modal.cy-sheet { --acc-soft: color-mix(in srgb, #cc8792 22%, #1c1c1e); --acc-ink: #f0c9cf; --acc-line: color-mix(in srgb, #cc8792 40%, #1c1c1e); }

/* ======================= V09.7 ======================= */
/* En-têtes fixes : le titre et les commandes restent visibles, seul le contenu défile ; ils couvrent la zone de l'heure (aucune bande, aucun flou) */
.view > .phead, .view > .home-top, .view > .sticky-h { position: sticky; top: 0; z-index: 30; background: var(--bg);
  margin: calc(-8px - var(--sat)) calc(-1 * var(--gut)) -10px; padding: calc(var(--sat) + 10px) var(--gut) 10px; transition: box-shadow .2s ease; }
body.scrolled .view > :is(.phead, .home-top, .sticky-h) { box-shadow: 0 1px 0 var(--line); }
.home-top { align-items: flex-end; min-height: 0; }
.ht-l { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ht-sub { color: var(--tx2); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-sub b { color: var(--tx); font-weight: 600; }
/* Calendrier des 7 jours : un vrai composant encadré */
.wstrip { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px 10px 10px; gap: 4px;
  box-shadow: 0 1px 2px rgba(30, 28, 24, .04), 0 8px 24px -12px rgba(30, 28, 24, .14); }
.wstrip .ws-h { padding: 0 4px 0 6px; min-height: 34px; }
.ws-month { color: var(--tx); font-weight: 600; font-size: .86rem; }
.ws-month .ic { color: var(--tx3); }
.ws-today { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink); }
.ws-today.here { background: transparent; color: var(--tx3); }
.wstrip .ws-vp { margin: 0; padding: 0; }
.wstrip .ws-row { gap: 3px; }
.wstrip .ws-d { padding: 8px 0 7px; border-radius: 14px; gap: 4px; }
.wstrip .ws-d i { font-size: .66rem; font-weight: 600; letter-spacing: .05em; }
.wstrip .ws-d b { width: auto; height: auto; border-radius: 0; font-size: 1.02rem; line-height: 1.15; background: none !important; box-shadow: none !important; }
.wstrip .ws-d.today { box-shadow: inset 0 0 0 1.5px var(--acc); }
.wstrip .ws-d.today b { color: var(--acc-ink); }
.wstrip .ws-d.sel { background: var(--acc); }
.wstrip .ws-d.sel :is(b, i) { color: var(--acc-on) !important; }
.wstrip .ws-d.sel i { opacity: .75; }
.wstrip .ws-d.sel .mk { background: var(--acc-on); }
.wstrip .ws-d.sel.today { box-shadow: none; }
/* Sections : petit « + » */
.sec-r { display: flex; align-items: center; gap: 10px; }
.sec-plus { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line2); color: var(--tx); flex: none; }
.sec-plus .ic { width: 16px; height: 16px; }
.sec .link.more { align-self: flex-start; color: var(--tx2); font-size: .82rem; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; padding: 2px; }
.sec .link { color: var(--tx2); }
/* Humeur */
.mood-card { display: flex; flex-direction: column; gap: 10px; }
.mc-q { font-weight: 600; font-size: .92rem; }
.mood-more { display: flex; flex-direction: column; gap: 10px; animation: vIn .22s var(--ease) both; }
.mood-done { display: flex; align-items: center; gap: 12px; }
.mood-done .md-e { font-size: 26px; line-height: 1; }
.mood-done .md-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mood-done .md-t small { color: var(--tx2); font-size: .8rem; }
.mood-done .link { color: var(--tx2); font-size: .82rem; font-weight: 500; }
.mood button[aria-pressed="true"] { border-color: var(--acc); }
/* 7 prochains jours : bulles */
.up-list { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.up-g { display: flex; flex-direction: column; gap: 6px; }
.up-list .up-day { padding: 0 2px; }
.up-bub { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 14px; background: var(--acc-soft); color: var(--tx); }
.up-bub .t { width: 52px; flex: none; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.up-bub .n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.up-bub .n b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-bub .n small { color: var(--tx2); font-size: .78rem; display: inline-flex; align-items: center; gap: 3px; }
.up-bub .n small .ic { width: 12px; height: 12px; }
/* Historique humeur + cycle */
.mh-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mh-top .seg { flex: 1; min-width: 160px; }
.mh-cal { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
.mh-nav { display: flex; align-items: center; justify-content: space-between; }
.mh-nav b { font-weight: 600; }
.mh-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mh-grid > i { text-align: center; font-style: normal; font-size: .66rem; font-weight: 600; color: var(--tx3); }
.mh-d { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--card2); display: grid; place-items: center; }
.mh-d small { position: absolute; top: 2px; left: 5px; font-size: .58rem; color: var(--tx2); font-variant-numeric: tabular-nums; }
.mh-d em { font-style: normal; font-size: 17px; margin-top: 5px; }
.mh-d.lv1 { background: #f3d6da; } .mh-d.lv2 { background: #f6e3cf; } .mh-d.lv3 { background: #efeeec; } .mh-d.lv4 { background: #dfeee2; } .mh-d.lv5 { background: #d2e6d7; }
:root[data-dark="1"] .mh-d[class*="lv"] { filter: brightness(.45) saturate(1.4); }
.mh-d.today { box-shadow: 0 0 0 2px var(--acc); }
.mh-d.fut { opacity: .35; }
.mh-per { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px; border-radius: 3px; background: #cc8792; }
.mh-leg { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--tx2); }
.mh-leg i { width: 14px; height: 3px; border-radius: 3px; background: #cc8792; }
.mh-g { display: flex; flex-direction: column; gap: 6px; }
.mh-day { font-size: .72rem; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; padding: 0 2px; }
.mh-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 14px; }
.mh-row em { font-style: normal; font-size: 22px; width: 30px; text-align: center; }
.mh-row > span:not(.cyi) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mh-row small { color: var(--tx2); font-size: .8rem; }
.mh-row .cyi { width: 30px; height: 30px; border-radius: 9px; background: #faeaed; color: #773743; display: grid; place-items: center; flex: none; }
.mh-row > .ic { color: var(--tx3); }
.modal-h { touch-action: none; }
.btn.danger-t { color: var(--danger); }
.bub-pick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 10px 14px 4px; }
.bub-pick button { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .64rem; color: var(--tx2); }
.bub-pick i { width: 34px; height: 34px; border-radius: 50%; background: var(--hb); border: 1px solid var(--line2); }
.bub-pick button[aria-pressed="true"] i { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--tx); }
.bub-pick button[aria-pressed="true"] { color: var(--tx); font-weight: 600; }
.bub-prev { display: flex; justify-content: flex-end; padding: 6px 14px 14px; }
.bub-prev .msg { animation: none; max-width: 80%; }
/* Assistant : avatar à gauche des réponses, bulles de l'utilisateur à droite */
.as-head .ph-l { gap: 11px; }
.as-head .avatar { flex: none; border-radius: 50%; }
.as-t { display: flex; flex-direction: column; min-width: 0; }
.as-t h1 { font-size: 1.15rem; }
.as-t small { color: var(--tx2); font-size: .76rem; }
.bot-row { display: flex; align-items: flex-end; gap: 8px; align-self: flex-start; max-width: 92%; }
.bot-row .bot-av { flex: none; display: grid; }
.bot-row .msg.bot { max-width: none; min-width: 0; }
.msg.me { background: var(--hb); color: var(--ht); }
.as-intro .face .avatar { width: 64px; height: 64px; }
/* Fiche d'événement */
.ev-sheet .modal-b { gap: 18px; }
.es-info { display: flex; gap: 12px; align-items: flex-start; }
.es-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--h); margin-top: 5px; flex: none; }
.es-info > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.es-info span { display: inline-flex; align-items: center; gap: 6px; color: var(--tx2); font-size: .86rem; }
.es-info span .ic { width: 14px; height: 14px; flex: none; }
.es-sec { display: flex; flex-direction: column; gap: 8px; }
.es-hrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.es-h { font-size: .72rem; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; }
.es-hrow .link { color: var(--tx2); font-size: .82rem; font-weight: 500; }
.es-desc { white-space: pre-wrap; line-height: 1.5; }
.es-add { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--line2); color: var(--tx2); font-weight: 500; text-align: left; }
.es-pr { font-size: .78rem; color: var(--tx2); font-variant-numeric: tabular-nums; }
.es-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.es-bar i { display: block; height: 100%; background: var(--acc); border-radius: 3px; transition: width .4s var(--ease); }
.es-list { display: flex; flex-direction: column; padding: 4px 0; }
.es-it { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; min-height: 44px; }
.es-it.sub { padding-left: 42px; }
.es-it .ck { flex: none; }
.es-it .ck.ghost { width: 20px; height: 20px; border-radius: 7px; border: 1.5px dashed var(--line2); }
.es-it.done .es-tx { color: var(--tx3); text-decoration: line-through; }
.es-tx { flex: 1; min-width: 0; text-align: left; padding: 6px 0; overflow-wrap: anywhere; }
.es-in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 6px 0; }
.es-more { width: 34px; height: 34px; display: grid; place-items: center; color: var(--tx3); border-radius: 999px; flex: none; }
.es-plus { width: 20px; display: grid; place-items: center; color: var(--tx3); }
.es-it + .es-it { border-top: 1px solid var(--line); }
.es-it.sub, .es-it.sub + .es-it.sub { border-top-color: transparent; }
/* Répétition */
.rc-open .lbl b { display: inline-flex; align-items: center; gap: 6px; }
.rc-list { display: flex; flex-direction: column; }
.rc-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; text-align: left; width: 100%; }
.rc-row + .rc-row { border-top: 1px solid var(--line); }
.rc-row .rc-l { flex: 1; min-width: 0; }
.rc-row.on .rc-l { font-weight: 600; }
.rc-ck { width: 20px; display: grid; place-items: center; color: var(--tx); flex: none; }
.rc-chev { color: var(--tx3); display: grid; }
.rc { display: flex; flex-direction: column; gap: 16px; }
.rc-recap { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--acc-soft); color: var(--tx); font-weight: 500; line-height: 1.4; }
.rc-recap .ic { flex: none; margin-top: 2px; }
.rc-every { display: flex; align-items: center; gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
.rc-sel { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 12px; border-radius: 10px; background: var(--card2); font-weight: 600; }
.rc-sel select, .rc-sel input { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: var(--tx); outline: 0; padding: 0; }
.rc-sel .ic { width: 14px; height: 14px; color: var(--tx3); pointer-events: none; }
.rc-date input { min-width: 130px; }
.rc-sec { display: flex; flex-direction: column; gap: 8px; }
.rc-h { font-size: .72rem; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; padding-left: 4px; }
/* Agenda V09.7 : en-tête fixe complet, vues 1/2/3/7 jours, textes qui s'adaptent au zoom */
.ag-top { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; padding-bottom: 6px !important; }
.ag-r1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ag-r2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ag-r2 .ws-month { white-space: nowrap; }
.ag-seg { width: 206px; flex: none; }
.ag-seg button { font-size: .8rem; }
.ibtn.dark { background: var(--acc); color: var(--acc-on); border-color: transparent; }
.ag-top .ag-head { position: static; padding: 0; border: 0; background: none; }
.ag-top .ag-head .wstrip { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.ag-top .ag-head .ws-vp { margin: 0 0 0 var(--gw, 40px); }
.ag-top .ag-allday { --gw: 40px; margin-top: 2px; border-bottom: 0; }
.ag { --gw: 40px; }
.ag-grid { margin-top: 6px; }
.ev { padding: 0; container-type: size; }
.ev-in { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1px; padding: 4px 5px 4px 7px; overflow: hidden; text-align: left; }
.ev-in b { font-size: .74rem; line-height: 1.22; font-weight: 600; overflow-wrap: break-word; word-break: normal; hyphens: auto; -webkit-hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ev-in .ev-t, .ev-in .ev-t1, .ev-in .ev-l { font-size: .66rem; opacity: .85; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-in .ev-l { display: inline-flex; align-items: center; gap: 2px; } .ev-in .ev-l .ic { width: 11px; height: 11px; flex: none; }
.ev-in .ev-t1 { display: none; }
/* très petit : une ligne « 09:30 Titre » */
@container (max-height: 30px) { .ev-in { flex-direction: row; align-items: center; gap: 4px; padding-top: 1px; padding-bottom: 1px; } .ev-in .ev-t1 { display: block; flex: none; } .ev-in b { -webkit-line-clamp: 1; white-space: nowrap; display: block; text-overflow: ellipsis; } .ev-in .ev-t, .ev-in .ev-l { display: none; } }
@container (min-height: 31px) and (max-height: 46px) { .ev-in .ev-t, .ev-in .ev-l { display: none; } }
@container (min-height: 47px) and (max-height: 66px) { .ev-in .ev-l { display: none; } }
@container (min-height: 67px) { .ev-in b { -webkit-line-clamp: 3; } }
@container (min-height: 110px) { .ev-in b { -webkit-line-clamp: 5; } }
/* colonnes étroites (semaine sur iPhone) : titre prioritaire, police plus petite, heure seulement si la place le permet */
@container (max-width: 64px) { .ev-in { padding: 3px 3px 3px 5px; } .ev-in b { font-size: .62rem; line-height: 1.18; } .ev-in .ev-t { display: none; } .ev-in .ev-t1 { display: block; font-size: .58rem; order: -1; } .ev-in .ev-l { display: none; } }
@container (max-width: 64px) and (max-height: 40px) { .ev-in .ev-t1 { display: none; } .ev-in b { -webkit-line-clamp: 2; white-space: normal; } .ev-in { flex-direction: column; align-items: stretch; } }
/* colonnes larges (1 ou 2 jours) : plus de place pour le texte */
@container (min-width: 140px) and (min-height: 47px) { .ev-in { padding: 5px 8px 5px 10px; gap: 2px; } .ev-in b { font-size: .84rem; } .ev-in .ev-t, .ev-in .ev-l { font-size: .72rem; } }
@container (min-width: 140px) and (max-height: 46px) { .ev-in b { -webkit-line-clamp: 1; display: block; white-space: nowrap; text-overflow: ellipsis; } .ev-in .ev-t { display: block; } }
.ev .ev-in { opacity: 1; white-space: normal; overflow: hidden; }
.ev .ev-in b { white-space: normal; }
.ev .ev-in > span { opacity: .85; }
.pl-pr { align-self: center; font-size: .74rem; color: var(--tx2); font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 999px; background: var(--card2); flex: none; }
/* Carnet V09.7 */
.v-carnet .ph-l { gap: 10px; }
.tbtn.dark { background: var(--acc); color: var(--acc-on); }
.ibtn.soft { background: var(--card2); border-color: transparent; }
.nc-sub { display: flex; align-items: center; gap: 6px; color: var(--tx2); font-size: .86rem; margin-top: -10px; }
.nc-sub button { display: inline-flex; align-items: center; gap: 3px; color: var(--tx); font-weight: 500; }
.nc-sub .ic { width: 13px; height: 13px; color: var(--tx3); }
.nc-hint { text-align: center; margin-top: -8px; }
.nlist { display: flex; flex-direction: column; overflow: hidden; }
.sw { position: relative; overflow: hidden; }
.sw + .sw { border-top: 1px solid var(--line); }
.sw-del { position: absolute; top: 0; right: 0; bottom: 0; width: 92px; background: var(--danger); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .74rem; font-weight: 600; }
.sw-fg { position: relative; z-index: 1; background: var(--card); width: 100%; will-change: transform; }
.nrow { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; text-align: left; }
.nr-t { display: flex; align-items: baseline; gap: 8px; }
.nr-t b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-t small { color: var(--tx3); font-size: .74rem; white-space: nowrap; flex: none; }
.nr-p { color: var(--tx2); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-c { font-size: .66rem; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; }
.drawer-ov { position: fixed; inset: 0; z-index: 85; background: rgba(15, 14, 12, .34); animation: fadeIn .2s ease both; }
.drawer-ov.out { animation: fadeOut .2s ease both; }
@keyframes fadeOut { to { opacity: 0; } }
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: min(318px, 84vw); background: var(--bg); border-radius: 0 26px 26px 0; box-shadow: 12px 0 40px -14px rgba(0, 0, 0, .3);
  padding: calc(var(--sat) + 12px) 12px calc(var(--sab) + 18px); display: flex; flex-direction: column; gap: 12px; animation: drIn .26s var(--ease) both; overflow-y: auto; }
@keyframes drIn { from { transform: translateX(-100%); } }
.drawer-ov.out .drawer { transform: translateX(-100%); transition: transform .2s ease; }
.dr-h { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 8px; }
.dr-h b { font-size: 1.2rem; font-weight: 600; }
.dr-top, .dr-tree { display: flex; flex-direction: column; gap: 2px; }
.dr-l { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; font-weight: 500; text-align: left; }
.dr-l span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-l small { color: var(--tx3); font-size: .78rem; }
.dr-l.on, .dr-cat.on .dr-l { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); font-weight: 600; }
.dr-sec { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0 10px; font-size: .72rem; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; }
.dr-cat { display: flex; align-items: center; border-radius: 12px; }
.dr-tg { width: 26px; height: 36px; display: grid; place-items: center; color: var(--tx3); flex: none; }
.dr-tg:disabled { opacity: .3; }
.dr-cat .dr-l { padding-left: 2px; }
.dr-notes { display: flex; flex-direction: column; padding: 2px 0 6px 34px; }
.dr-notes button { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; font-size: .9rem; color: var(--tx2); text-align: left; }
.dr-notes button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-notes .more { color: var(--tx3); font-size: .82rem; }
.dr-manage { display: flex; align-items: center; gap: 8px; padding: 10px; color: var(--tx2); font-size: .86rem; }
.dr-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; }
/* Éditeur : couleur de page et apparence */
.ed-meta { color: var(--tx3); font-size: .8rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ed-cat { display: inline-flex; align-items: center; gap: 4px; color: var(--tx2); font-weight: 500; }
.paper.c-creme { background-color: #fbf6ea; } .paper.c-lav { background-color: #f1effb; } .paper.c-blu { background-color: #ecf3fa; }
.paper.c-sag { background-color: #edf4ee; } .paper.c-pea { background-color: #fcf1e8; } .paper.c-ter { background-color: #fbeff1; }
:root[data-dark="1"] .paper.c-creme { background-color: #24221d; } :root[data-dark="1"] .paper.c-lav { background-color: #23222c; } :root[data-dark="1"] .paper.c-blu { background-color: #1f2429; }
:root[data-dark="1"] .paper.c-sag { background-color: #1f2621; } :root[data-dark="1"] .paper.c-pea { background-color: #29231f; } :root[data-dark="1"] .paper.c-ter { background-color: #292123; }
.pp-papers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pp-th { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; color: var(--tx2); }
.pp-th i { width: 100%; max-width: 66px; aspect-ratio: 4 / 5; border-radius: 12px; background-color: #fff; border: 1px solid var(--line2); }
.pp-th.p-ligne i { background-image: repeating-linear-gradient(to bottom, transparent 0 9px, rgba(111, 156, 201, .4) 9px 10px); }
.pp-th.p-quadrille i { background-image: repeating-linear-gradient(to bottom, transparent 0 9px, rgba(0, 0, 0, .1) 9px 10px), repeating-linear-gradient(to right, transparent 0 9px, rgba(0, 0, 0, .1) 9px 10px); }
.pp-th.p-points i { background-image: radial-gradient(rgba(0, 0, 0, .28) 1px, transparent 1.4px); background-size: 10px 10px; }
.pp-th[aria-pressed="true"] { color: var(--tx); font-weight: 600; }
.pp-th[aria-pressed="true"] i { border: 2px solid var(--tx); }
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-cols { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.pp-cols button { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 1px solid var(--line2); }
.pp-cols button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--tx); }
.pp-two { display: flex; gap: 10px; }
.pp-two .seg { flex: 1.4; }
.pp-size { flex: 1; display: flex; align-items: center; justify-content: space-between; background: var(--card2); border-radius: 12px; padding: 3px 4px; }
.pp-size button { width: 38px; height: 34px; font-weight: 600; }
.pp-size span { font-size: .8rem; color: var(--tx2); font-variant-numeric: tabular-nums; }
/* l'éditeur garde sa barre en haut (fixe), même pendant l'écriture */
.ed-bar { top: 0; padding-top: calc(var(--sat) + 6px); margin-top: calc(-8px - var(--sat)); margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); z-index: 30; }
.logo .logo-svg { display: block; height: 1.08em; width: auto; overflow: visible; }
.logo.ul .logo-svg { margin-bottom: .02em; }
/* Tutoriel V09.7 : récit animé (transform / opacity uniquement) */
.onb-prog { flex: 1; max-width: 180px; height: 4px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.onb-prog i { display: block; height: 100%; background: var(--acc); border-radius: 4px; transition: width .5s var(--ease); }
.onb-shot.sc { min-height: 320px; justify-content: center; align-items: stretch; overflow: hidden; position: relative; background: var(--card); }
.onb-stage h2, .onb-stage p { animation: scUp .5s var(--ease) both; }
.onb-stage h2 { animation-delay: .15s; } .onb-stage p { animation-delay: .25s; }
@keyframes scUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes scPop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes scIn { from { opacity: 0; } to { opacity: 1; } }
.sc-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sc-logo .logo { font-size: 64px; clip-path: inset(0 100% 0 0); animation: scWipe .9s cubic-bezier(.45,.05,.3,1) .2s forwards; }
@keyframes scWipe { to { clip-path: inset(0 0 0 0); } }
.sc-line { width: 150px; height: 1.5px; background: var(--tx); opacity: .5; transform: scaleX(0); transform-origin: 0 50%; animation: scLine .5s ease 1s forwards; }
@keyframes scLine { to { transform: scaleX(1); } }
.sc-tag { color: var(--tx2); font-size: .98rem; display: flex; flex-wrap: wrap; justify-content: center; }
.sc-tag span { opacity: 0; animation: scIn .05s linear forwards; animation-delay: calc(1.3s + var(--i) * 32ms); }
.sc-plan { display: flex; flex-direction: column; gap: 12px; }
.sc-strip { animation: scPop .5s var(--ease) .1s both; }
.sc-strip .ws-d.drop .mk { opacity: 0; animation: scIn .2s ease 1.15s forwards; }
.sc-card { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px; background: var(--acc-soft); animation: scPop .5s var(--ease) both; }
.sc-card span { display: flex; flex-direction: column; } .sc-card small { color: var(--tx2); font-size: .78rem; }
.sc-card.c1 { animation-delay: .6s; } .sc-card.c2 { animation-delay: .95s; }
.sc-chat { display: flex; flex-direction: column; gap: 10px; }
.sc-chat .msg { animation: scPop .45s var(--ease) both; }
.sc-chat .msg.me { align-self: flex-end; background: #ebe9e4; color: #1e1d1b; animation-delay: .2s; }
.sc-bot { animation: scPop .45s var(--ease) .9s both; }
.sc-bot .msg { animation: none; }
.sc-act { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--card2); white-space: normal; animation: scPop .4s var(--ease) 1.3s both; }
.sc-act span { display: flex; flex-direction: column; } .sc-act small { color: var(--tx2); font-size: .76rem; }
.sc-grow { display: flex; flex-direction: column; gap: 14px; }
.sc-goal { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: 14px; background: var(--card2); animation: scPop .45s var(--ease) .1s both; }
.sc-goal > span:first-of-type { flex: 1; display: flex; flex-direction: column; } .sc-goal small { color: var(--tx2); font-size: .78rem; }
.sc-dots { display: flex; gap: 5px; }
.sc-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); position: relative; overflow: hidden; }
.sc-dots i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--acc); transform: scale(0); animation: scDot .35s var(--spring) forwards; }
.sc-dots i:nth-child(1)::after { animation-delay: .6s; } .sc-dots i:nth-child(2)::after { animation-delay: .9s; } .sc-dots i:nth-child(3)::after { animation-delay: 1.2s; }
@keyframes scDot { to { transform: scale(1); } }
.sc-mood { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; animation: scPop .45s var(--ease) .35s both; }
.sc-mood span { height: 48px; border-radius: 14px; background: var(--card2); display: grid; place-items: center; font-size: 24px; opacity: .55; filter: grayscale(.4); }
.sc-mood span.on { animation: scMood .5s var(--spring) 1.5s forwards; }
@keyframes scMood { to { opacity: 1; filter: none; transform: scale(1.08); background: var(--acc-soft); } }
.sc-check { display: flex; align-items: center; gap: 10px; animation: scPop .45s var(--ease) .55s both; }
.sc-check s { text-decoration-color: transparent; transition: none; animation: scStrike .4s ease 1.9s forwards; color: var(--tx2); }
@keyframes scStrike { to { text-decoration-color: currentColor; } }
.sc-note .sc-paper { padding: 16px 18px 20px; animation: scPop .5s var(--ease) .1s both; }
.sc-paper b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.sc-paper p { margin: 0; line-height: 30px; background-image: linear-gradient(to bottom, transparent 24px, color-mix(in srgb, var(--acc) 28%, transparent) 24px, color-mix(in srgb, var(--acc) 28%, transparent) 25px, transparent 25px); background-size: 100% 30px; min-height: 150px; }
.sc-paper p span { display: block; clip-path: inset(0 100% 0 0); animation: scWipe .7s ease forwards; animation-delay: calc(.6s + var(--i) * .65s); }
@media (prefers-reduced-motion: reduce) { .onb-stage *, .onb-stage *::after { animation-duration: .01s !important; animation-delay: 0s !important; } }

.sw:not(.moved):not(.open) .sw-del { visibility: hidden; }

/* ======================= V09.7.1 — corrections ======================= */
/* en-têtes : toujours visibles, même quand iOS fait glisser la page à l'ouverture du clavier */
.view > :is(.phead, .home-top, .sticky-h), .view > .ed-bar { transform: translate3d(0, var(--vvo, 0px), 0); }
/* panneaux : restent posés en bas, juste au-dessus du clavier (plus de saut vers le haut de l'écran) */
body.kb .overlay { align-items: flex-end; padding-top: calc(var(--vvo, 0px) + var(--sat) + 6px); padding-bottom: var(--kb); }
body.kb .modal { border-radius: 22px 22px 0 0; max-height: calc(100dvh - var(--kb) - var(--sat) - 12px); }
/* 7 prochains jours : chaque bulle reprend la couleur de son événement */
.up-bub[class*="h-"] { background: var(--hb); color: var(--ht); box-shadow: inset 3px 0 0 var(--h); }
.up-bub[class*="h-"] .n small { color: var(--ht); opacity: .8; }
/* Agenda : la grille s'arrête à la fin de journée (plus de lignes vides en dessous, même dézoomé) */
.ag-cols { overflow: hidden; }
.ag-cols, .ag-hours { height: 100%; }
.ag-col { min-height: 0; height: 100%; }
/* Assistant : quand le clavier est ouvert, la barre d'onglets se retire et la zone de saisie se pose sur le clavier */
body.kb .v-assistant { min-height: 0; }
.ag-seg { width: auto; flex: 0 1 200px; min-width: 0; }
.ag-r2 .ws-month { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* V09.7.3 — Assistant : écran fixe ; seul le fil défile ; il suit la zone visible au-dessus du clavier (plus d'écran blanc) */
body[data-view="assistant"] { overflow: hidden; overscroll-behavior: none; }
body[data-view="assistant"] .main { padding-bottom: 0; }
.v-assistant { position: fixed; left: 0; right: 0; top: var(--vvo, 0px); height: var(--vvh, 100dvh); min-height: 0 !important; max-width: 720px; margin: 0 auto;
  padding: calc(var(--sat) + 8px) calc(var(--gut) + var(--sar)) 0 calc(var(--gut) + var(--sal)); gap: 6px; box-sizing: border-box; overflow: hidden; }
.v-assistant > .phead { position: static; margin: 0; padding: 0 0 8px; transform: none; box-shadow: 0 1px 0 var(--line); flex: none; }
.v-assistant .chat { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 10px 0 calc(var(--tab-h) + 86px); scrollbar-width: none; }
body.kb .v-assistant .chat { padding-bottom: 86px; }
/* clavier ouvert sur un nouveau fil : l'introduction se fait compacte pour garder les suggestions visibles */
body.kb .as-intro { padding-top: 8px; gap: 8px; }
body.kb .as-intro .face, body.kb .as-intro p { display: none; }
body.kb .as-intro h2 { font-size: 1rem; }

/* V09.7.4 — Agenda : le sélecteur Jour/2 j/3 j/Sem. reste dans son cadre (la date se raccourcit si besoin) */
.ag-seg { flex: none; width: auto; max-width: 62%; overflow: hidden; }
.ag-seg button { flex: none; min-width: 0; padding: 0 10px; }
.ag-r2 { gap: 10px; }
.ag-r2 .ws-month { flex: 1 1 auto; white-space: nowrap; }
@media (max-width: 380px) { .ag-seg button { padding: 0 8px; font-size: .76rem; } }
/* V09.7.4 — Assistant : au clavier, l'écran suit le clavier image par image, sans animation qui se voit */
body[data-view="assistant"] .composer { transition: none; }
body[data-view="assistant"] .tabbar { transition: none; }

/* V09.7.5 — le contenu des pages s'arrête au-dessus de la barre d'onglets : une bande opaque, fixe, occupe toute la zone
   de la barre (et la zone de sécurité du bas) ; rien ne défile derrière la barre. */
body::after { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: var(--tab-h); background: var(--bg); z-index: 39; pointer-events: none; }
body.kb::after { display: none; }

/* V09.7.6 — indicateurs (hexagones) répartis sur toute la largeur de la carte, quel que soit leur nombre */
.slots { display: flex; justify-content: space-evenly; flex-wrap: wrap; gap: 6px 0; padding: 0 4px; }
.slot { flex: 0 0 40px; }
/* saisie du temps effectué */
.amt-v { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 8px; }
.amt-v b { font-size: 2.2rem; font-weight: 600; letter-spacing: -.02em; }
.amt-v em { font-style: normal; color: var(--tx2); }
.amt-bar { display: block; flex: none; height: 8px; border-radius: 4px; }
.amt-left { color: var(--tx2); font-size: .9rem; margin: 8px 0 14px; }
.amt-chips .chip { flex: 1 1 0; justify-content: center; }
.amt-row { margin-top: 8px; gap: 8px; }
.amt-row .input { flex: 1; min-width: 0; }

/* V09.7.6 — Bien-être : l'humeur toujours présente ; le cycle dans sa propre bulle juste en dessous */
.wb-cycle { margin-top: 10px; }
.mood-card.is-future .mood button { opacity: .38; filter: grayscale(.6); pointer-events: none; }
.mc-later { display: block; margin-top: 8px; text-align: center; }

/* V09.7.6 — Carnet : glisser une note vers la gauche révèle « Supprimer » et « Classer » ; un long glissement classe */
.sw-acts { position: absolute; top: 0; right: 0; bottom: 0; width: 184px; display: flex; }
.sw-acts .sw-del, .sw-acts .sw-cat { position: static; flex: 1; width: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .74rem; font-weight: 600; }
.sw-cat { background: var(--acc); color: var(--acc-on, #fff); }
.sw:not(.moved):not(.open) .sw-acts { visibility: hidden; }

/* V09.7.6 — Agenda : la bande des jours a exactement le style de l'Accueil (carte encadrée, mêmes arrondis) ;
   la marge de gauche (alignée sur les heures) affiche le numéro de semaine */
.ag-top .ag-head { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px 4px 8px 0;
  box-shadow: 0 1px 2px rgba(30, 28, 24, .04), 0 8px 24px -12px rgba(30, 28, 24, .14); }
.ag-top .ag-head .wstrip { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.ag-top .ag-head .ws-vp { margin: 0 0 0 calc(var(--gw, 40px) - 1px); padding: 0; }
.ag-top .ag-head .ws-d { padding: 8px 0 7px; border-radius: 14px; gap: 4px; }
.ag-top .ag-head .ws-d b { width: auto; height: auto; font-size: 1.02rem; }
.ag-wk { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--gw, 40px) - 1px); display: grid; place-items: center; font-size: .62rem; font-weight: 600; color: var(--tx3); letter-spacing: .02em; }
/* Vue semaine : le titre est lu en entier (la case s'agrandit si besoin, au-dessus des heures suivantes) */
.ag-n7 .ev { container-type: inline-size; height: auto !important; min-height: var(--evh); z-index: 2; }
.ag-n7 .ev .ev-in { position: relative; inset: auto; min-height: var(--evh); padding: 3px 3px 4px 5px; }
.ag-n7 .ev-in b { font-size: .66rem; line-height: 1.16; -webkit-line-clamp: unset; display: block; overflow: visible; word-break: normal; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.ag-n7 .ev-in .ev-t, .ag-n7 .ev-in .ev-l { display: none; }
.ag-n7 .ev-in .ev-t1 { display: block; font-size: .56rem; order: -1; }
.ag-n7 .ev:hover, .ag-n7 .ev:focus-visible { z-index: 4; }

/* ============ V09.7.6 — Fonds colorés translucides ============
   Les couleurs de sélection, d'état actif et de mise en évidence deviennent des voiles semi-transparents de la couleur
   d'accentuation (ou de la teinte de l'événement), calculés automatiquement pour chaque couleur, en clair comme en sombre.
   Les cartes et fonds structurels ne changent pas. */
:root, :root[data-accent] {
  --acc-tint: color-mix(in srgb, var(--acc) 15%, transparent);
  --acc-tint2: color-mix(in srgb, var(--acc) 24%, transparent);
  --acc-ring: color-mix(in srgb, var(--acc) 34%, transparent);
  --acc-soft: var(--acc-tint);
}
:root[data-dark="1"], :root[data-accent][data-dark="1"] {
  --acc-tint: color-mix(in srgb, var(--acc) 22%, transparent);
  --acc-tint2: color-mix(in srgb, var(--acc) 32%, transparent);
  --acc-ring: color-mix(in srgb, var(--acc) 45%, transparent);
  --acc-soft: var(--acc-tint);
}
/* teintes des rendez-vous et catégories */
:is(.h-lav, .h-blu, .h-sag, .h-pea, .h-ter, .h-yel, .h-gry) { --hb: color-mix(in srgb, var(--h) 17%, transparent); }
:root[data-dark="1"] :is(.h-lav, .h-blu, .h-sag, .h-pea, .h-ter, .h-yel, .h-gry) { --hb: color-mix(in srgb, var(--h) 26%, transparent); }
.ev, .adblk, .up-bub[class*="h-"] { -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
/* jours sélectionnés (Accueil, Agenda, mini-calendriers) */
.wstrip .ws-d.sel { background: var(--acc-tint2); box-shadow: inset 0 0 0 1px var(--acc-ring); }
.wstrip .ws-d.sel :is(b, i) { color: var(--acc-ink) !important; }
.wstrip .ws-d.sel i { opacity: .8; }
.wstrip .ws-d.sel .mk { background: var(--acc-ink); }
.ws-d.sel b, .ws-d.sel.today b { background: var(--acc-tint2); color: var(--acc-ink); }

/* états actifs, validations, boutons d'accent */
.ck.done { background: var(--acc-tint2); border-color: var(--acc-ring); color: var(--acc-ink); }
.hc-ck[aria-pressed="true"] { background: var(--acc-tint2); border-color: var(--acc-ring); color: var(--acc-ink); }
.ibtn.dark, .tbtn.dark, .btn.acc { background: var(--acc-tint2); color: var(--acc-ink); border-color: transparent; box-shadow: inset 0 0 0 1px var(--acc-ring); }
.toggle input:checked + i { background: color-mix(in srgb, var(--acc) 62%, transparent); }
.sw-cat { background: color-mix(in srgb, var(--acc) 72%, var(--card)); color: var(--acc-on, #fff); }
.when-chips .chip.on, .chip.on { background: var(--acc-tint2); color: var(--acc-ink); border-color: var(--acc-ring); }
.mood button[aria-pressed="true"] { background: var(--acc-tint2); box-shadow: inset 0 0 0 1.5px var(--acc-ring); }
.goal-hist i.full { background: var(--acc); opacity: .45; }
.theme-row.on { background: var(--acc-tint); }

/* V09.7.6 — Premier lancement : choix de l'affichage et de la couleur */
.onb-look { gap: 18px; }
.lk-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-mode { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 18px; border: 1.5px solid var(--line2); background: var(--card); transition: border-color .2s ease, transform .2s var(--ease); }
.lk-mode[aria-pressed="true"] { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-tint); }
.lk-prev { width: 100%; height: 74px; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.m-light .lk-prev { background: #f7f6f3; border: 1px solid #e6e3dd; } .m-dark .lk-prev { background: #121212; border: 1px solid #2a2a2c; }
.lk-prev i { display: block; height: 10px; border-radius: 5px; } .lk-prev i:nth-child(1) { width: 60%; } .lk-prev i:nth-child(2) { width: 85%; } .lk-prev i:nth-child(3) { width: 40%; background: var(--acc) !important; opacity: .45; }
.m-light .lk-prev i { background: #e6e3dd; } .m-dark .lk-prev i { background: #2c2c2e; }
.lk-mode b { font-weight: 600; font-size: .9rem; }
.lk-accents { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.lk-accents button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 0; }
.lk-accents i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); transition: transform .25s var(--spring); }
.lk-accents button[aria-pressed="true"] i { transform: scale(1.12); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }
.lk-accents small { font-size: .62rem; color: var(--tx2); }
.lk-demo { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.lk-day { width: 46px; padding: 8px 0 7px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--acc-tint2); box-shadow: inset 0 0 0 1px var(--acc-ring); color: var(--acc-ink); }
.lk-day i { font-style: normal; font-size: .66rem; font-weight: 600; opacity: .8; } .lk-day b { font-size: 1.02rem; font-weight: 600; }
.lk-chip { padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 500; background: var(--acc-tint2); color: var(--acc-ink); box-shadow: inset 0 0 0 1px var(--acc-ring); }
.lk-tog { width: 44px; height: 26px; border-radius: 13px; background: color-mix(in srgb, var(--acc) 62%, transparent); position: relative; }
.lk-tog i { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.lk-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-tint2); color: var(--acc-ink); box-shadow: inset 0 0 0 1px var(--acc-ring); }
:root, .onb { transition: background-color .35s ease, color .35s ease; }
/* Tutoriel : scène du cycle */
.sc-cycle { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sc-ring { position: relative; width: 150px; height: 150px; animation: scPop .6s var(--spring) .1s both; }
.sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring .trk { fill: none; stroke: var(--card2); stroke-width: 10; }
.sc-ring .arc { fill: none; stroke: #cc8792; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; animation: scArc 1.4s var(--ease) .35s forwards; }
@keyframes scArc { to { stroke-dashoffset: 250; } }
.sc-ring span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sc-ring b { font-size: 1.5rem; font-weight: 600; } .sc-ring small { color: var(--tx2); font-size: .72rem; }
.sc-cycle .sc-card { width: 100%; }
/* Tutoriel plus vivant : entrée en profondeur, éléments qui arrivent les uns après les autres, léger flottement */
.onb-stage .onb-shot { animation: shotIn .7s var(--spring) both; }
@keyframes shotIn { from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.onb-stage .sc-card, .onb-stage .sc-goal, .onb-stage .sc-mood, .onb-stage .sc-check, .onb-stage .msg { animation: scPop .55s var(--spring) both; }
.onb-stage .sc-card.c1, .onb-stage .sc-goal, .onb-stage .msg.me { animation-delay: .35s; }
.onb-stage .sc-card.c2, .onb-stage .sc-mood, .onb-stage .sc-bot { animation-delay: .6s; }
.onb-stage .sc-check { animation-delay: .85s; }
.sc-plan .sc-card.c1 { animation: scPop .55s var(--spring) .35s both, scFloat 4s ease-in-out 1.2s infinite; }
.sc-plan .sc-card.c2 { animation: scPop .55s var(--spring) .6s both, scFloat 4.4s ease-in-out 1.6s infinite; }
@keyframes scFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.onb-prog i { transition: width .6s var(--spring); }
.onb-btns .btn.primary { transition: transform .2s var(--spring); } .onb-btns .btn.primary:active { transform: scale(.96); }

.ag-col.sel, .ag-col.sel.wkend { background: color-mix(in srgb, var(--acc) 6%, transparent); }
:root[data-dark="1"] :is(.ag-col.sel, .ag-col.sel.wkend) { background: color-mix(in srgb, var(--acc) 9%, transparent); }

/* V09.7.6 — « Supprimer » à gauche (glisser vers la droite), « Classer » à droite (glisser vers la gauche) */
.sw-acts { left: 0; right: 0; width: auto; justify-content: space-between; }
.sw-acts .sw-del, .sw-acts .sw-cat { flex: 0 0 92px; }
.sw.dir-l .sw-cat, .sw.open-l .sw-cat, .sw.dir-r .sw-del, .sw.open-r .sw-del { display: none; }
.sw.dir-l .sw-del, .sw.open-l .sw-del { flex: 1 1 auto; align-items: flex-start; padding-left: 24px; }
.sw.dir-r .sw-cat, .sw.open-r .sw-cat { flex: 1 1 auto; align-items: flex-end; padding-right: 22px; margin-left: auto; }

/* V09.8 — Agenda 1, 2 et 3 jours : le titre est lu en entier (la case s'agrandit si besoin), heure et lieu en dessous */
:is(.ag-n1, .ag-n2, .ag-n3) .ev { container-type: inline-size; height: auto !important; min-height: var(--evh); z-index: 2; }
:is(.ag-n1, .ag-n2, .ag-n3) .ev .ev-in { position: relative; inset: auto; min-height: var(--evh); flex-direction: column; align-items: stretch; gap: 1px; padding: 4px 7px 5px 9px; }
:is(.ag-n1, .ag-n2, .ag-n3) .ev-in b { font-size: .8rem; line-height: 1.22; -webkit-line-clamp: unset; display: block; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
:is(.ag-n1, .ag-n2, .ag-n3) .ev-in .ev-t1 { display: none; }
:is(.ag-n1, .ag-n2, .ag-n3) .ev-in .ev-t { display: block; white-space: nowrap; }
:is(.ag-n1, .ag-n2, .ag-n3) .ev-in .ev-l { display: flex; }
.ag-n3 .ev-in b { font-size: .74rem; }

/* V09.8 — cycle : saisie d'une autre date dans la page */
.cy-pickrow { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.cy-pickrow .field { flex: 1; margin: 0; }
.cy-pickrow .input { font-size: 16px; }
/* V09.8 — boutons principaux et messages : jamais un noir imposé ; ils suivent la couleur et le thème choisis */
.btn.primary { background: var(--acc); color: var(--acc-on); }
.toast { background: var(--card); color: var(--tx); border: 1px solid var(--line2); box-shadow: 0 10px 30px -12px rgba(0,0,0,.25); }
:root[data-dark="1"] .toast { background: var(--card2); }
.toast .tic { color: var(--acc-ink); }
.toast .tx small { opacity: .65; }
.toast .btn { background: var(--acc-tint2); color: var(--acc-ink); }
.toast .x, .toast [data-x], .toast button:not(.btn) { color: var(--tx2); }
/* V09.8 — temps effectué : on choisit, puis on valide */
.amt2 { display: flex; flex-direction: column; gap: 12px; }
.amt2-top { display: flex; align-items: baseline; gap: 6px; }
.amt2-top b { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; }
.amt2-top em { font-style: normal; color: var(--tx2); }
.amt2-bar { position: relative; height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; }
.amt2-bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; transition: width .3s var(--ease), left .3s var(--ease); }
.amt2-bar .cur { background: var(--acc); }
.amt2-bar .add { background: var(--acc); opacity: .35; }
.amt2-bar .rem { background: var(--danger); opacity: .4; }
.amt2-step { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 10px; padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.amt2-step button { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--acc-tint); color: var(--acc-ink); font-size: 1.4rem; font-weight: 500; }
.amt2-step output { text-align: center; display: flex; flex-direction: column; }
.amt2-step output b { font-size: 1.35rem; font-weight: 600; }
.amt2-step output small { color: var(--tx2); font-size: .74rem; }
.amt2-step.neg output b { color: var(--danger); }
.amt2-chips { display: flex; gap: 6px; }
.amt2-chips .chip { flex: 1 1 0; justify-content: center; }
.amt2-left { color: var(--tx2); font-size: .86rem; margin: 0; }
.toast .btn.ghost, .toast.soft .btn.ghost { background: transparent; color: var(--tx2); }
.toast.soft .btn:not(.ghost) { background: var(--acc-tint2); color: var(--acc-ink); }

/* V09.8 — Assistant : la page elle-même ne peut plus défiler (iOS ne la fait plus glisser sous la barre d'état,
   ce qui floutait/masquait l'en-tête et l'avatar) ; seul le fil de discussion défile */
html:has(body[data-view="assistant"]) { overflow: hidden; height: 100%; }
body[data-view="assistant"] { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; }

/* ============ V09.8 — Étape B ============ */
/* Page Cycle */
.v-cycle { display: flex; flex-direction: column; gap: 14px; }
.v-cycle .cy-title { font-weight: 600; font-size: 1.05rem; }
.cy-h1 { font-size: 1.8rem; letter-spacing: -.02em; }
.cyr { position: relative; width: 236px; height: 236px; margin: 4px auto 0; }
.cyr svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.cyr .trk { fill: none; stroke: var(--card2); stroke-width: 15; }
.cyr .seg { fill: none; stroke-width: 15; stroke-linecap: round; animation: cyDraw 1s linear both; }
/* V09.9.1 : chaque segment se dessine depuis son début (un seul trait qui fait le tour) */
@keyframes cyDraw { 0% { stroke-dasharray: 0 var(--L); opacity: 0; } 2% { opacity: 1; } }
.cyr-arm { position: absolute; inset: 0; pointer-events: none; transform: rotate(var(--deg)); animation: cyArm 1s linear both; }
@keyframes cyArm { from { transform: rotate(0deg); } }
/* pastille du jour : 14 px dans une piste de 15 px → elle ne déborde plus de l'anneau */
.cyr-dot { position: absolute; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3.5px solid var(--dc); box-sizing: border-box; }
.cyr-dot::after { content: ''; position: absolute; inset: 1.5px; border-radius: 50%; background: var(--dc); opacity: 0; animation: cyPulse 2.4s ease-in-out 1.6s infinite; }
@keyframes cyPulse { 50% { opacity: .55; } }
.cyr-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 40px; }
.cyr-c small { font-size: .7rem; color: var(--tx2); text-transform: uppercase; letter-spacing: .08em; }
.cyr-c b { font-size: 2.7rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; } .cyr-c b.sm { font-size: 2rem; }
.cyr-c span { font-size: .86rem; font-weight: 600; }
.cyr-c em { font-style: normal; font-size: .76rem; color: var(--tx2); margin-top: 4px; }
.cy-legend2 { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: .7rem; color: var(--tx2); }
.cy-legend2.sm { justify-content: flex-start; margin-top: 10px; font-size: .66rem; }
.cy-legend2 i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; } .cy-legend2 i.ring { background: none; border: 1.5px solid; }
.cy-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cy-acts button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; color: var(--tx2); text-align: center; }
.cy-acts i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #d9788a 15%, transparent); color: #a24a5c; }
.cy-acts i.b { background: color-mix(in srgb, #6f9cc9 16%, transparent); color: #2e5578; } .cy-acts i.g { background: color-mix(in srgb, #8fb59a 18%, transparent); color: #3f6b4a; }
:root[data-dark="1"] .cy-acts i { color: #f0b9c3; } :root[data-dark="1"] .cy-acts i.b { color: #b9d3ee; } :root[data-dark="1"] .cy-acts i.g { color: #bcd9c4; }
.cy-up { display: flex; flex-direction: column; padding: 4px 16px; }
.cy-up div { display: flex; align-items: center; gap: 10px; padding: 11px 0; } .cy-up div + div { border-top: 1px solid var(--line); }
.cy-up i { width: 10px; height: 10px; border-radius: 50%; flex: none; } .cy-up b { font-size: .9rem; font-weight: 600; flex: 1; } .cy-up small { font-size: .8rem; color: var(--tx2); }
.cy-phase2 { display: flex; gap: 12px; align-items: flex-start; }
.cy-phase2 .pi { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 35%, transparent); flex: none; font-size: 1.1rem; }
.cy-phase2 b { font-size: .92rem; } .cy-phase2 p { font-size: .8rem; color: var(--tx2); line-height: 1.4; margin-top: 2px; }
.cy-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; padding: 12px 8px; }
.cyw-d { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .62rem; color: var(--tx3); }
.cyw-d b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .86rem; color: var(--tx); font-weight: 500; }
.cyw-d.p b { background: #d9788a; color: #fff; } .cyw-d.pe b { border: 1.5px dashed #d9788a; }
.cyw-d.f b { background: color-mix(in srgb, #6f9cc9 22%, transparent); } .cyw-d.o b { background: #6f9cc9; color: #fff; }
.cyw-d.t b { box-shadow: 0 0 0 2px var(--tx); }
.v-cycle .sym-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.v-cycle .sym-row .chip.on { background: color-mix(in srgb, #d9788a 16%, transparent); border-color: color-mix(in srgb, #d9788a 40%, transparent); color: #8d3d4d; }
:root[data-dark="1"] .v-cycle .sym-row .chip.on { color: #f0b9c3; }
.cy-daychip { position: relative; } .cy-daychip input { position: absolute; inset: 0; opacity: 0; font-size: 16px; }
.cy-mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .cy-mh b { font-size: .95rem; }
.cy-mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: .78rem; }
.cy-mgrid i { font-style: normal; color: var(--tx3); font-size: .62rem; padding-bottom: 2px; }
.cy-mgrid button { height: 34px; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--tx); }
.cy-mgrid .p { background: #d9788a; color: #fff; } .cy-mgrid .pe { box-shadow: inset 0 0 0 1.5px #d9788a; color: #a24a5c; }
.cy-mgrid .f { background: color-mix(in srgb, #6f9cc9 20%, transparent); } .cy-mgrid .o { background: #6f9cc9; color: #fff; }
.cy-mgrid .t { box-shadow: inset 0 0 0 2px var(--tx); } .cy-mgrid .sym::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.cy-mgrid [data-future] { opacity: .85; }
.cy-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cy-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.cy-stats b { display: block; font-size: 1.2rem; font-weight: 600; } .cy-stats small { font-size: .7rem; color: var(--tx2); }
.cy-sub { font-size: .88rem; }
.cy-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 12px; }
.cy-bars i { flex: 1; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, #d9788a 35%, transparent); position: relative; min-height: 14px; }
.cy-bars em { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .62rem; color: var(--tx2); }
.cy-set .input { width: 76px; text-align: center; }
.v-cycle .cy-note { display: flex; gap: 6px; font-size: .74rem; color: var(--tx3); line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .cyr .seg, .cyr-arm, .cyr-dot::after { animation: none; } }

/* Boutons : jamais d'aplat noir — avec la couleur « Noir », le bouton principal devient un gris translucide */
:root[data-accent="blk"] .btn.primary, :root[data-accent="blk"] .btn.acc { background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 26%, transparent); }
:root[data-accent="blk"] .composer .cbtn.send { background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc-ink); }
.composer .cbtn.send { background: var(--acc); color: var(--acc-on); }

/* Pastille « Annuler » : petite, translucide, part seule (3 s) ou d'un geste, sans croix */
.toasts { gap: 6px; }
.toast { width: auto; max-width: min(92vw, 420px); border-radius: 999px; padding: 7px 7px 7px 12px; gap: 9px; background: color-mix(in srgb, var(--card) 86%, transparent) !important; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid var(--line2); box-shadow: 0 10px 26px -14px rgba(0,0,0,.35); color: var(--tx); touch-action: pan-y; animation: pillIn .32s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes pillIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.toast .tx { font-size: .84rem; } .toast .tx small { display: none; }
.toast .tic { width: 18px; height: 18px; position: relative; display: grid; place-items: center; color: var(--acc-ink); }
.toast .tic::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--acc-tint2); border-top-color: var(--acc); animation: pillSpin var(--td, 3s) linear forwards; }
@keyframes pillSpin { to { transform: rotate(360deg); opacity: .2; } }
.toast .btn { min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--acc-tint2) !important; color: var(--acc-ink) !important; font-size: .8rem; }
.toast .btn.ghost { display: none; }

/* Illustrations des objectifs */
.hc-ic.il { width: 50px; height: 50px; padding: 0; background: none; border-radius: 50%; }
.hcard.mini .hc-ic.il { width: 44px; height: 44px; }
.hc-ic.il svg { display: block; width: 100%; height: 100%; }
.il-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.il-panel button { border-radius: 50%; padding: 2px; display: grid; place-items: center; transition: transform .2s var(--spring); }
.il-panel button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--acc); transform: scale(1.06); }
.il-panel .il-none { border-radius: 14px; font-size: .74rem; color: var(--tx2); border: 1px dashed var(--line2); min-height: 50px; }
/* Carnet : bouton « Apparence » et bulle d'aide (une seule fois) */
.pp-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; background: var(--acc-tint); color: var(--acc-ink); font-size: .8rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--acc-tint2); position: relative; flex: none; }
.pp-pill .sw { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c, #fff); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); font-family: 'Crimson', Georgia, serif; font-size: .74rem; color: #1e1d1b; }
.pp-pill.halo::after { content: ''; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--acc-tint2); animation: ppHalo 2s ease-out infinite; pointer-events: none; }
@keyframes ppHalo { from { opacity: 1; transform: scale(.94); } to { opacity: 0; transform: scale(1.18); } }
@media (max-width: 360px) { .pp-pill .pp-l { display: none; } .pp-pill { padding-right: 5px; } }
.pp-tip { margin: 6px 0 0 auto; max-width: 240px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 12px 30px -14px rgba(0,0,0,.35); font-size: .78rem; line-height: 1.35; color: var(--tx2); animation: pillIn .3s var(--ease) both; position: relative; z-index: 3; }
.pp-tip b { display: block; color: var(--tx); font-size: .82rem; }
.pp-tip.out { opacity: 0; transition: opacity .25s ease; }
/* Tutoriel : écriture au fil des lettres, trois points, réponse qui se pose */
.tcaret { display: inline-block; width: 2px; height: 1em; background: var(--acc); vertical-align: -2px; margin-left: 1px; animation: tBlink 1s steps(1) infinite; }
@keyframes tBlink { 50% { opacity: 0; } }
.sc-chat .msg.me[data-typeme] { min-height: 38px; min-width: 40px; }
.sc-dots { display: inline-flex; gap: 4px; padding: 4px 2px; } .sc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tx3); animation: tDot 1s ease-in-out infinite; } .sc-dots i:nth-child(2) { animation-delay: .15s; } .sc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tDot { 50% { transform: translateY(-4px); opacity: .5; } }
.sc-bot:not([hidden]) { animation: scPop .45s cubic-bezier(.2,1.3,.4,1) both; }
.sc-in { animation: scPop .5s cubic-bezier(.2,1.3,.4,1) both; }
.onb-stage .msg.me[data-typeme] { animation: scPop .45s cubic-bezier(.2,1.3,.4,1) .2s both; }
.cy-head { display: flex; align-items: center; gap: 6px; }
.cy-head h1 { font-size: 1.6rem; letter-spacing: -.02em; flex: 1; }
.cy-head .cy-hd { font-size: .78rem; color: var(--tx2); }
/* sélection de papier et de couleur du carnet à la couleur d'accentuation (plus de noir) */
.pp-th[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--acc) !important; border-color: transparent !important; }
.pp-th[aria-pressed="true"] span { color: var(--acc-ink); }
.pp-cols button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc) !important; }

/* ============ V09.8.2 — corrections d'affichage ============ */
/* Indicateurs (hexagones) : répartis à parts égales, et les traits de liaison touchent bien l'hexagone suivant */
.slots { justify-content: stretch; gap: 6px 0; padding: 0; }
.slot { flex: 1 1 0; width: auto; min-width: 0; }
.slot.lk::after { width: calc(100% - 20px); }
/* Page Cycle : cartes avec marges intérieures, pastille de phase contenue dans son cadre, texte centré verticalement */
.v-cycle .card.cy-phase2 { padding: 14px 16px; align-items: center; }
.cy-phase2 .pi { overflow: hidden; line-height: 1; font-size: 1.15rem; }
.cy-phase2 > div { min-width: 0; }
.v-cycle .card.cy-month { padding: 14px 14px 12px; }
.v-cycle .card:has(> .cy-sub) { padding: 14px 16px; }
.v-cycle .card.cy-set { padding: 4px 16px; }
/* Calendrier du cycle : des ronds parfaits (plus d'ovales) */
.cy-mgrid button { width: 36px; height: 36px; justify-self: center; padding: 0; }
@media (max-width: 360px) { .cy-mgrid button { width: 32px; height: 32px; } }
.cyw-d b { flex: none; }
/* Bulle de l'Accueil : la pastille « Règles » reste dans sa bulle */
.wb-cycle { overflow: hidden; }
/* garde-fous généraux : aucune image ou illustration ne dépasse de son cadre */
.hc-ic, .pi, .tic, .ti, .bot-av { overflow: hidden; }
.card img, .card svg { max-width: 100%; }
.hc-tt, .hc-top > div { min-width: 0; }
.hc-tt b, .pl-row b, .up-row b, .ncard b { overflow-wrap: anywhere; }

/* =====================================================================
   V09.9 — Étape B : univers illustré « Corps & cycle », calendrier du cycle, symptômes, objectifs animés
   ===================================================================== */
:root { --cy-p: #d9788a; --cy-pp1: #f3c9d0; --cy-pp2: #f8dde2; --cy-fe: #dce8f4; --cy-ov: #6f9cc9; --cy-soft: #faecee; --cy-ink: #8a3d4c; }
:root[data-dark="1"] { --cy-pp1: #5a3239; --cy-pp2: #46292e; --cy-fe: #24344a; --cy-soft: #3a252a; --cy-ink: #f0c3cb; }
.v-cycle svg[aria-label], .sym-sheet svg[aria-label], .cy-chip svg[aria-label] { flex: none; display: block; }

/* Humeur : visages illustrés neutres */
.mood button { height: auto; padding: 6px 0 5px; flex-direction: column; gap: 3px; font-size: .66rem; filter: none; opacity: .82; background: transparent; border-color: transparent; display: flex; align-items: center; }
.mood button svg { width: min(48px, 100%); height: auto; display: block; transition: transform .25s var(--spring); }
.mood button small { color: var(--tx2); font-size: .66rem; line-height: 1.1; white-space: nowrap; }
.mood button[aria-pressed="true"] { opacity: 1; background: var(--acc-tint2, var(--acc-soft)); box-shadow: inset 0 0 0 1.5px var(--acc-ring, var(--acc-line)); transform: none; }
.mood button[aria-pressed="true"] svg { transform: scale(1.08); }
.mood-card.is-future .mood button { opacity: .4; filter: grayscale(.5); }
.mood-done .md-e svg { width: 40px; height: 40px; display: block; }
.mh-d em svg { width: 26px; height: 26px; display: block; margin: 0 auto; }
.mh-row em svg { width: 30px; height: 30px; display: block; }
.sc-mood span { font-size: 0; } .sc-mood span svg { width: 34px; height: 34px; }
.cy-chip .cyi.il { width: 40px; height: 40px; background: none !important; border-radius: 13px; overflow: hidden; }
.mh-row .cyi svg { display: block; }

/* Page Cycle : actions illustrées */
.cy-acts i.rose { background: var(--cy-soft); }
.cy-acts i.stk { background: none; width: auto; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 0; }
.cy-acts i.stk svg { width: 38px; height: 38px; border-radius: 13px; box-shadow: 0 0 0 2px var(--bg); }
.cy-acts i.stk svg + svg { margin-left: -12px; }
.v-cycle .card.cy-phase2 { align-items: center; } .cy-phase2 > svg { flex: none; }

/* Calendrier du cycle : bandes continues, semaine / mois */
.cyc-cal { padding: 14px 12px 12px; margin-top: 14px; }
.cyc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cyc-nav { display: flex; align-items: center; gap: 0; min-width: 0; flex: 1; }
.cyc-nav b { font-weight: 650; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-align: center; flex: 1; }
.cyc-nav .ibtn { width: 28px; height: 30px; flex: none; }
.cyc-seg { flex: none; } .cyc-seg button { min-height: 30px; padding: 0 9px; font-size: .74rem; }
.cyc-det-t small em { font-style: normal; font-weight: 600; color: var(--tx); }
.cyc-l { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; padding-bottom: 4px; }
.cyc-l i { font-style: normal; font-size: .68rem; font-weight: 600; color: var(--tx3); }
.cyc-row { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.cyc-band { position: absolute; top: 4px; height: 36px; border-radius: 18px; pointer-events: none; }
.cyc-band.p { background: var(--cy-p); }
.cyc-band.pp { background: repeating-linear-gradient(-45deg, var(--cy-pp1) 0 5px, var(--cy-pp2) 5px 10px); }
.cyc-band.fe { background: var(--cy-fe); }
.cyc-band.nx { border: 2px dashed var(--cy-p); opacity: .85; }
.cyc-d { position: relative; z-index: 1; height: 44px; display: grid; place-items: center; }
.cyc-d b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; transition: box-shadow .2s ease; }
.cyc-d.on b { color: #fff; }
.cyc-d.nx b { color: var(--cy-p); }
.cyc-d.ov b { background: var(--cy-ov); color: #fff; }
.cyc-d.mu b { color: var(--tx3); font-weight: 400; }
.cyc-d.fut:not(.on):not(.nx):not(.ov) b { color: var(--tx2); }
.cyc-d.t b { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--tx); }
.cyc-d.sel b { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--cy-p); }
.cyc-d .sy { position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--tx2); }
.cyc-d.on .sy { background: #fff; }
.cyc-grid.in-r { animation: cycInR .28s var(--ease); } .cyc-grid.in-l { animation: cycInL .28s var(--ease); } .cyc-grid.in-v { animation: cycInV .3s var(--ease); }
@keyframes cycInR { from { opacity: 0; transform: translateX(18px); } } @keyframes cycInL { from { opacity: 0; transform: translateX(-18px); } } @keyframes cycInV { from { opacity: 0; transform: translateY(-6px); } }
.cyc-leg { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .7rem; color: var(--tx2); margin: 8px 4px 0; }
.cyc-leg span { display: inline-flex; align-items: center; gap: 5px; }
.cyc-leg i { width: 16px; height: 9px; border-radius: 5px; display: inline-block; }
.cyc-leg i.p { background: var(--cy-p); } .cyc-leg i.pp { background: repeating-linear-gradient(-45deg, var(--cy-pp1) 0 3px, var(--cy-pp2) 3px 6px); }
.cyc-leg i.fe { background: var(--cy-fe); } .cyc-leg i.ov { background: var(--cy-ov); width: 9px; } .cyc-leg i.nx { border: 1.5px dashed var(--cy-p); }
.cyc-det { margin-top: 10px; border-radius: 16px; background: var(--card2); padding: 8px; }
.cyc-det.p { background: var(--cy-soft); }
.cyc-det-t { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; color: var(--tx); }
.cyc-det-t > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cyc-det-t b { font-weight: 600; font-size: .86rem; } .cyc-det-t small { color: var(--tx2); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cyc-det-t > .ic { color: var(--tx3); flex: none; }
.cyc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cyc-acts .chip { font-size: .76rem; min-height: 32px; }

/* Mes symptômes (résumé) + tendance */
.cy-symc { padding: 12px; }
.cy-symg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cy-symi { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 14px; background: var(--card2); min-width: 0; }
.cy-symi b { font-weight: 600; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cy-symf { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; color: var(--tx2); }
.cy-symf .dr { display: inline-flex; gap: 1px; }
.cy-symn { margin-top: 8px; font-size: .8rem; color: var(--tx2); font-style: italic; }
.cy-syme { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 4px; text-align: center; }
.cy-syme p { color: var(--tx2); font-size: .84rem; }
.cy-syme .stk { display: flex; } .cy-syme .stk svg { border-radius: 13px; box-shadow: 0 0 0 2px var(--card); } .cy-syme .stk svg + svg { margin-left: -10px; }
.cy-trend { padding: 14px; margin-top: 12px; }
.cy-trh { display: flex; gap: 10px; align-items: center; } .cy-trh b { font-size: .9rem; } .cy-trh p { color: var(--tx2); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.cy-tbars { display: flex; gap: 5px; align-items: flex-end; height: 44px; margin-top: 10px; }
.cy-tbars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--card2); min-height: 4px; }
.cy-tbars i.p { background: color-mix(in srgb, var(--cy-p) 45%, transparent); }
.cy-tax { display: flex; justify-content: space-between; font-size: .66rem; color: var(--tx3); margin-top: 4px; }

/* Feuille « Comment vous sentez-vous ? » */
.sym-sub { display: flex; align-items: center; gap: 6px; color: var(--tx2); font-size: .84rem; margin-top: -4px; }
.sym-tip { display: flex; gap: 8px; align-items: flex-start; background: var(--acc-soft); color: var(--acc-ink); border-radius: 14px; padding: 9px 12px; font-size: .8rem; line-height: 1.35; margin: 10px 0 2px; }
.sym-tip .ic { flex: none; margin-top: 1px; }
.sym-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sym-t { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 3px 7px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); min-height: 92px; text-align: center; transition: transform .14s var(--ease), border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.sym-t:active { transform: scale(.96); }
.sym-t .nm { font-size: .74rem; font-weight: 500; line-height: 1.15; color: var(--tx); }
.sym-t.plain { justify-content: center; color: var(--tx2); } .sym-t.plain .nm { color: var(--tx2); }
.sym-t .ck { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--cy-p); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .18s ease, transform .25s var(--spring); }
.sym-t.on { border-color: var(--cy-p); background: color-mix(in srgb, var(--cy-p) 7%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cy-p) 18%, transparent); }
.sym-t.on .ck { opacity: 1; transform: none; }
.sym-lbl { font-size: .8rem; font-weight: 600; color: var(--tx2); margin: 14px 2px 6px; }
.sym-pain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sym-pain button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); font-size: .76rem; font-weight: 500; color: var(--tx); }
.sym-pain button[aria-pressed="true"] { border-color: var(--cy-p); background: color-mix(in srgb, var(--cy-p) 7%, var(--card)); }
.sym-pain .dr { display: flex; gap: 1px; height: 14px; align-items: center; color: var(--tx3); }
.sym-note { margin-top: 12px; }
.sym-save { background: var(--cy-p) !important; color: #fff !important; box-shadow: none !important; }

/* Fiche d'objectif : Apparence (Illustration / Icône) juste sous l'intitulé */
.ap-sw { width: 100%; } .ap-sw button { gap: 6px; }
.ap-prev { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 9px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ap-art { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); flex: none; }
.ap-art.il { background: none; }
.ap-t { min-width: 0; display: flex; flex-direction: column; } .ap-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ap-t small { color: var(--tx3); font-size: .74rem; }
.ap-pan { margin-top: 10px; }
.ap-pan.ap-in { animation: apIn .22s var(--ease); }
@keyframes apIn { from { opacity: 0; transform: translateY(6px); } }
.ap-pan.icon-panel { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ap-pan.il-panel { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; }
.il-panel button { position: relative; min-width: 0; }
.il-panel button svg { width: 100%; max-width: 54px; height: auto; }
.il-panel .sug { display: none; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); background: var(--acc); color: var(--acc-on); font-size: .56rem; font-weight: 700; padding: 2px 6px; border-radius: 99px; white-space: nowrap; }
.il-panel button.is-sug .sug { display: block; }

/* Bouton « + » → coche (animé) */
.hc-ck { position: relative; display: grid; place-items: center; }
.hc-ck svg.ck-p, .hc-ck svg.ck-c { grid-area: 1 / 1; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.hc-ck svg.ck-p { stroke-width: 1.9; }
.hc-ck svg.ck-c { stroke-width: 2.3; }
.hc-ck svg.ck-c path { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* V1.0.1 : sur iPhone (Safari), la coche « non tracée » laissait un petit point (bout arrondi) dans le « + » : elle est masquée tant que l'objectif n'est pas validé */
.hc-ck:not([aria-pressed="true"]) svg.ck-c { visibility: hidden; }
.hc-ck[aria-pressed="true"] svg.ck-p { opacity: 0; transform: rotate(90deg) scale(.4); }
.hc-ck[aria-pressed="true"] svg.ck-c path { stroke-dashoffset: 0; }
:root:not([data-accent="blk"]) .hc-ck[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-on); }
.hc-ck::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; opacity: 0; box-shadow: 0 0 0 0 var(--acc-ring, var(--acc-line)); }
.flash .hc-ck[aria-pressed="true"] { animation: ckPop .45s var(--spring); }
.flash .hc-ck[aria-pressed="true"]::after { animation: ckRing .6s ease-out .1s; }
.flash .hc-ck[aria-pressed="true"] svg.ck-p { animation: plusOut .22s ease-in both; }
.flash .hc-ck[aria-pressed="true"] svg.ck-c path { animation: ckDraw .3s .14s ease-out both; }
.unflash .hc-ck[aria-pressed="false"] svg.ck-p { animation: plusIn .34s var(--spring) both; }
.unflash .hc-ck[aria-pressed="false"] { animation: ckBack .3s ease-out; }
@keyframes ckPop { 0% { transform: scale(.9); } 60% { transform: scale(1.07); } 100% { transform: none; } }
@keyframes ckRing { 0% { opacity: 1; box-shadow: 0 0 0 0 var(--acc-ring, var(--acc-line)); } 100% { opacity: 0; box-shadow: 0 0 0 12px transparent; } }
@keyframes plusOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: rotate(90deg) scale(.4); } }
@keyframes ckDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes plusIn { from { opacity: 0; transform: rotate(-90deg) scale(.4); } }
@keyframes ckBack { from { background: var(--acc-soft); } }

/* Trait de progression : relie deux jours validés, s'arrête avant le jour suivant (jamais de chevauchement) */
.slot.lk::after, .slot.ret::after { content: ""; position: absolute; top: 9px; left: calc(50% + 12px); width: calc(100% - 24px); height: 2px; border-radius: 2px; background: var(--ink); opacity: .7; transform-origin: left center; pointer-events: none; }
.wd.lk::after { top: 11px; left: calc(50% + 11px); width: calc(100% - 22px); height: 2px; opacity: .7; }
/* ordre : le trait avance d'abord (≈ 380 ms), puis l'hexagone se remplit */
.flash .slot.lk:has(+ .slot.fresh)::after, .flash .wd.lk:has(+ .wd.today-done)::after { animation: linkDraw .38s cubic-bezier(.3, .7, .3, 1) both; }
.flash .slot.fresh polygon, .flash .wd.today-done polygon:last-child { animation: hexFill .5s var(--spring) .34s both; }
.slot.ret::after { animation: linkBack .32s ease-in forwards; }
.slot polygon.gone { transform-box: fill-box; transform-origin: center; animation: hexOut .34s ease-in forwards; }
@keyframes linkBack { to { transform: scaleX(0); opacity: 0; } }
@keyframes hexOut { to { transform: scale(.3); opacity: 0; } }

/* Bulle de réussite : même pastille que « Annuler », à la couleur de l'interface, illustration de l'objectif */
.toast.win { background: var(--acc) !important; color: var(--acc-on); border-color: transparent; padding: 6px 10px 6px 6px; gap: 10px; position: relative; overflow: visible; box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--acc) 70%, #000); animation: winIn .45s var(--spring) both; }
:root[data-accent="blk"] .toast.win { background: color-mix(in srgb, var(--card) 80%, var(--acc) 20%) !important; color: var(--tx); border: 1px solid var(--line2); box-shadow: 0 12px 28px -14px rgba(0,0,0,.4); }
.toast.win .tx { font-size: .84rem; font-weight: 600; line-height: 1.25; }
.toast.win .tx small { display: block !important; font-weight: 400; opacity: .85; font-size: .74rem; white-space: normal; }
.toast .tart { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: #fff; display: grid; place-items: center; }
.toast .tart svg { width: 40px; height: 40px; display: block; }
.toast .tart .tico { color: var(--acc-ink); display: grid; place-items: center; }
.toast .tring { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: pillSpin var(--td, 3s) linear forwards; }
.tconf { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
.tconf i { position: absolute; top: 0; left: calc(8% + var(--i) * 7.5%); width: 6px; height: 6px; border-radius: 2px; opacity: 0; background: hsl(calc(var(--i) * 47deg) 62% 66%); animation: conf .9s calc(var(--i) * 25ms + .15s) cubic-bezier(.2, .7, .3, 1) both; }
.tconf i:nth-child(3n) { border-radius: 50%; width: 5px; height: 5px; }
@keyframes conf { 0% { opacity: 0; transform: translateY(8px) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(-26px - var(--i) % 3 * 8px)) translateX(calc((var(--i) - 5.5) * 2px)) rotate(calc(var(--i) * 70deg)); } }
@keyframes winIn { from { opacity: 0; transform: translateY(12px) scale(.94); } }
@media (prefers-reduced-motion: reduce) {
  .flash .hc-ck, .flash .hc-ck *, .unflash .hc-ck, .unflash .hc-ck *, .tconf i, .toast.win, .cyc-grid, .ap-pan, .slot.ret::after, .slot polygon.gone { animation: none !important; }
}

/* V09.9.1 — feuille « Mes règles » : début / fin, aujourd'hui, hier, avant-hier, autre date */
.pd-sheet .pd-mode { margin-bottom: 14px; }
.pd-days { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-days .chip { min-height: 38px; }
.pd-days .chip.on { background: var(--cy-p, #d9788a); color: #fff; border-color: transparent; }
.pd-other { position: relative; }
.pd-other input { position: absolute; inset: 0; opacity: 0; font-size: 16px; width: 100%; }
.pd-sum { margin: 16px 2px 4px; font-size: .9rem; color: var(--tx2); }
.pd-sum b { color: var(--tx); font-weight: 650; }
.pd-sum .warn { display: inline-flex; gap: 6px; align-items: center; color: var(--danger); }
/* jour sélectionné / aujourd'hui : l'anneau reste à l'intérieur de la pastille (plus de débordement sur la bande) */
.cyc-d.t b { box-shadow: inset 0 0 0 2px var(--tx), inset 0 0 0 4px var(--card); }
.cyc-d.sel b { box-shadow: inset 0 0 0 2px var(--cy-p), inset 0 0 0 4px var(--card); }
.cyc-d.on.sel b { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--cy-p); }
/* V09.9.1 — objectif : quantité comprise dans l'intitulé */
.gp-hint { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .78rem; color: var(--acc-ink); }
.gp-hint .ic { flex: none; }

/* V09.9.1 — pastille de validation : cercle qui se trace, se remplit, puis coche (≈ 0,75 s) */
.toast .tic { overflow: visible; } /* le cercle de temps restant n'est plus coupé en carré */
.toast .tok { width: 24px; height: 24px; flex: none; display: grid; place-items: center; }
.toast .tok svg { width: 24px; height: 24px; overflow: visible; }
.toast .tok .o1 { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 12px 12px; animation: tokRing .42s cubic-bezier(.4,0,.2,1) .05s forwards; }
.toast .tok .o2 { fill: var(--acc); transform: scale(0); transform-origin: 12px 12px; animation: tokFill .2s cubic-bezier(.3,1.4,.5,1) .44s forwards; }
.toast .tok .o3 { fill: none; stroke: var(--acc-on, #fff); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tokCheck .2s ease-out .6s forwards; }
:root[data-accent="blk"] .toast .tok .o3 { stroke: var(--acc-on, #fff); }
@keyframes tokRing { to { stroke-dashoffset: 0; } }
@keyframes tokFill { to { transform: scale(1); } }
@keyframes tokCheck { to { stroke-dashoffset: 0; } }
/* bulle « objectif atteint » : le cercle animé est conservé, une coche apparaît au centre (≠ chargement) */
.toast .tring { position: relative; width: 22px; height: 22px; border: 0 !important; animation: none !important; display: grid; place-items: center; }
.toast .tring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: pillSpin var(--td, 3s) linear forwards; }
.toast .tring svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.toast .tring svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tokCheck .28s ease-out .35s forwards; }
@media (prefers-reduced-motion: reduce) { .toast .tok *, .toast .tring svg path { animation-duration: .01s !important; animation-delay: 0s !important; } }
/* V09.9.1 — occurrence validée d'un objectif récurrent : coche visible tout de suite, en contour (objectif pas encore complet) */
.hc-ck.occ[aria-pressed="true"], :root:not([data-accent="blk"]) .hc-ck.occ[aria-pressed="true"] { background: var(--acc-tint2, var(--acc-soft)); border-color: var(--acc-ring, var(--acc-line)); color: var(--acc-ink); }
/* V09.9.1 — catégories d'événements (couleur automatique) */
.ev-types { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.ev-ty { gap: 7px; min-height: 36px; }
.chip.ev-ty i { width: 12px; height: 12px; border-radius: 50%; background: var(--h); flex: none; }
.chip.ev-ty[aria-pressed="true"] { background: var(--hb); border-color: var(--h); color: var(--tx); font-weight: 600; }
.evc-rows { display: flex; flex-direction: column; }
.evc-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.evc-row:last-child { border-bottom: 0; }
.evc-row > b { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.evc-row > b i { width: 12px; height: 12px; border-radius: 50%; background: var(--h); }
.evc-sw { display: flex; gap: 6px; }
.evc-sw button { width: 24px; height: 24px; border-radius: 50%; background: var(--hb); border: 2px solid var(--h); padding: 0; }
.evc-sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--h); }
.evc-rows { padding: 2px 12px; } .evc-sw { gap: 5px; } .evc-sw button { width: 22px; height: 22px; }

/* =====================================================================
   V09.10 — Phase B : identité visuelle (logo, Tody, humeur illustrée, harmonisation)
   ===================================================================== */
/* ---- Logo V1 « Aube · Soleil-feuille » : trait monolinéaire (currentColor), soleil miel + feuille de Tody ---- */
.lgx { display: block; height: 1.45em; width: auto; aspect-ratio: 330 / 140; overflow: visible; }
.logo .lgx { margin: -.12em 0 -.26em; }
.lgx.play .ln { stroke-dasharray: 100; stroke-dashoffset: 100; animation: lgDraw .5s cubic-bezier(.45,.05,.3,1) var(--d, 0s) forwards; }
.lgx.play .lg-hz { opacity: 0; animation: lgFade .3s ease .85s forwards; }
.lgx.play .lg-sun { transform: translateY(40px); animation: lgRise .75s cubic-bezier(.34,1.3,.5,1) 1s forwards; }
.lgx .lg-leaf-in { transform-box: fill-box; transform-origin: 50% 100%; }
.lgx.play .lg-leaf-in { animation: lgLeaf .55s cubic-bezier(.34,1.5,.5,1) 1.5s both; }
@keyframes lgDraw { to { stroke-dashoffset: 0; } }
@keyframes lgFade { to { opacity: 1; } }
@keyframes lgRise { to { transform: none; } }
@keyframes lgLeaf { from { transform: scale(.2) rotate(-25deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .lgx.play * { animation: none !important; stroke-dashoffset: 0 !important; transform: none !important; opacity: 1 !important; } }
/* ---- Tody : animations (transform / opacity seulement) ---- */
.tody, .tody-h, .tody-f { display: block; overflow: visible; }
.tody .td-wave { transform-box: view-box; transform-origin: 90px 112px; }
.tody-h .td-wave { transform-box: view-box; transform-origin: 80px 86px; }
.tody .td-eyes, .tody-h .td-eyes { transform-box: fill-box; transform-origin: center; }
@keyframes tdWave { 0%, 100% { transform: none; } 18% { transform: rotate(-12deg); } 36% { transform: rotate(9deg); } 54% { transform: rotate(-10deg); } 72% { transform: rotate(6deg); } }
@keyframes tdIn { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@keyframes tdBlink { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(.12); } }
@keyframes tdFloat { 0%, 100% { transform: none; } 50% { transform: translateY(-2.5px); } }
@media (prefers-reduced-motion: reduce) { .tody *, .tody-h * { animation: none !important; } }
/* ---- Tody dans l'app ---- */
/* Assistant : en-tête (avatar Tody) et accueil de conversation (Tody en buste, salue à l'arrivée une fois par jour) */
.as-av { display: block; width: 40px; height: 40px; border-radius: 50%; flex: none; }
.as-intro .face.td-stage { width: auto; height: auto; background: none; border-radius: 0; margin: 0 auto 6px; display: block; }
.as-intro .td-stage .tody { margin: 0 auto; animation: tdIn .6s var(--spring) both; }
.as-intro .td-stage .tody .td-eyes { animation: tdBlink 4.5s ease-in-out 1.8s 3; }
.as-intro .td-stage.hello .tody .td-wave { animation: tdWave 1.1s ease-in-out .5s 1 both; }
.bot-av .tody-h { border-radius: 50%; }
/* Accueil : petite tête de Tody dans la ligne « Bonjour » (logo actuel seulement) — touche = ouvre Tody */
.ht-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ht-tody { width: 22px; height: 22px; padding: 0; border-radius: 50%; flex: none; display: grid; place-items: center; }
.ht-tody .tody-h { width: 22px; height: 22px; }
.ht-tody.hello .td-wave { animation: tdWave 1s ease-in-out .6s 1 both; }
.ht-tody:active { transform: scale(.92); }
.logo.tap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.logo.tap:active { opacity: .75; }
/* États vides : Tody discret à côté du message */
.card.empty.td-empty { display: flex; align-items: center; gap: 12px; text-align: left; padding-block: 10px; }
.card.empty.td-empty .tody { width: 40px; height: auto; flex: none; }
.card.empty.td-empty p { margin: 0; }
.n-empty .td-ill { display: block; margin: 0 auto 8px; width: 70px; }
.n-empty .td-ill .tody { animation: tdIn .6s var(--spring) both; }
/* Tutoriel : Tody se présente */
.sct-wrap { display: grid; grid-template-columns: 104px 1fr; align-items: end; gap: 8px; height: 284px; overflow: hidden; }
.sct-fig { align-self: end; opacity: 0; }
.sct-fig.in { animation: tdIn .7s var(--spring) .15s both; opacity: 1; }
.sct-fig.in .td-wave { animation: tdWave 1.2s ease-in-out .7s 1 both; }
.sct-fig .td-eyes { animation: tdBlink 3.6s ease-in-out 2.2s infinite; }
.sct-fig[data-p] .tody { animation: scPop .35s var(--ease) both; }
.sct-fig .td-bub { animation: tdFloat 1s ease-in-out infinite; }
.sct-talk { display: flex; flex-direction: column; gap: 8px; align-items: stretch; padding-bottom: 6px; }
.sct-talk .msg { max-width: none; font-size: .88rem; line-height: 1.36; padding: 9px 12px; }
.sct-say { position: relative; opacity: 0; transform: translateY(6px) scale(.97); transform-origin: 0 100%; transition: opacity .3s var(--ease), transform .45s var(--spring); border-bottom-left-radius: 6px; min-height: 44px; }
.sct-say.on { opacity: 1; transform: none; }
.sct-talk .msg.sct-me { align-self: flex-end; background: #ebe9e4; color: #1e1d1b; animation: scPop .4s var(--ease) both; border-bottom-right-radius: 6px; }
:root[data-dark="1"] .sct-talk .msg.sct-me { background: #2c2c2e; color: #f2f2f2; }
.sct-act:not([hidden]) { display: flex; animation: scPop .45s var(--spring) both; }
@media (max-width: 360px) { .sct-wrap { grid-template-columns: 84px 1fr; } .sct-fig .tody { width: 84px; height: auto; } }
/* ---- Cycle : calendrier illustré ---- */
.cy-acts i.cal { background: none; width: 50px; height: 50px; border-radius: 16px; overflow: hidden; }
.cy-acts i.cal svg { display: block; }
.pd-other .pd-cal { display: inline-grid; width: 24px; height: 24px; border-radius: 8px; overflow: hidden; margin-left: -4px; }
/* ---- Paramètres : style des visages + logo à comparer ---- */
.mf-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 16px 14px; }
.mf-pick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 9px; border-radius: var(--r-m, 14px); background: var(--card2); border: 1.5px solid transparent; color: var(--tx2); transition: border-color .2s, transform .2s var(--spring); }
.mf-pick button[aria-pressed="true"] { border-color: var(--acc); color: var(--tx); }
.mf-pick button:active { transform: scale(.96); }
.mf-pick small { font-size: .74rem; font-weight: 600; }
.mf-pick span svg { display: block; border-radius: 14px; }
/* ---- Harmonisation globale ----
   1) Une seule échelle d'arrondis : 24 (feuilles, panneaux), 20 (cartes), 14 (blocs internes), 10 (petits éléments), pilule.
   2) Fonds en verre léger : les cartes sont blanches à ~74 % (sombre : ~70 %), posées sur un voile très doux et fixe
      (bleu Tody + sable) ; les remplissages internes (--card2) deviennent un voile neutre qui marche sur tous les fonds.
      Pas de flou sur les cartes (fluidité iPhone) ; l'en-tête et le bas de l'écran restent nets et pleins (V09.7.x).
   3) Transitions entre écrans un peu plus longues et plus douces, identiques partout. */
:root { --r-xl: 24px; --r: 20px; --r-m: 14px; --r-s: 10px;
  --card: rgba(255, 255, 255, .74); --card-op: color-mix(in srgb, #fff 80%, var(--bg)); --card2: rgba(40, 36, 30, .045);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .7);
  --wash1: rgba(124, 160, 201, .17); --wash2: rgba(226, 196, 160, .20); }
:root[data-dark="1"] { --card: rgba(38, 38, 41, .70); --card-op: color-mix(in srgb, #262629 82%, var(--bg)); --card2: rgba(255, 255, 255, .06);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .05); --wash1: rgba(111, 156, 201, .11); --wash2: rgba(226, 196, 160, .05); }
:root[data-accent="lav"] { --wash1: color-mix(in srgb, var(--acc) 16%, transparent); }
:root[data-accent="sag"] { --wash1: color-mix(in srgb, var(--acc) 17%, transparent); }
:root[data-accent="pea"], :root[data-accent="ter"] { --wash1: color-mix(in srgb, var(--acc) 13%, transparent); }
:root[data-dark="1"][data-accent]:not([data-accent="blk"]):not([data-accent="blu"]) { --wash1: color-mix(in srgb, var(--acc) 9%, transparent); }
body { background: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 42% at 8% 34%, var(--wash1), transparent 72%), radial-gradient(64% 40% at 96% 70%, var(--wash2), transparent 72%);
  -webkit-mask-image: linear-gradient(transparent 0, #000 150px, #000 calc(100% - 130px), transparent); mask-image: linear-gradient(transparent 0, #000 150px, #000 calc(100% - 130px), transparent); }
/* surfaces en verre : même arrondi, même liseré lumineux */
.card, .mini, .wstrip, .paper, .composer .cin { box-shadow: var(--shadow), var(--glass-hi); }
.card, .mini, .wstrip, .ag-top .ag-head, .cy-stats div, .paper { border-radius: var(--r); }
.mini { background: var(--card); }
/* éléments qui recouvrent autre chose (glisser pour supprimer) : opaques, à la teinte des cartes */
.sw-fg { background: var(--card-op); }
.card .titem, .tlist .titem { background: transparent; }
/* feuilles et panneaux */
.modal, body.kb .modal { border-top-left-radius: var(--r-xl); border-top-right-radius: var(--r-xl); }
.onb-shot, .onb-shot.sc { border-radius: var(--r-xl); }
/* blocs internes */
.cyc-det, .ap-prev, .onb-opt, .sym-t { border-radius: var(--r-m); }
.msg { border-radius: 20px; }
/* transitions d'écran : une seule courbe, un peu plus de douceur */
.host > .view.enter { animation: vIn .28s var(--ease) both; }
.host > .view.enter-l { animation: vInL .3s var(--ease) both; }
.host > .view.enter-r { animation: vInR .3s var(--ease) both; }
@keyframes vIn { from { opacity: 0; transform: translateY(8px); } }
/* ---- V1 · corrections de la phase C ---- */
/* Accueil : la petite tête de Tody reste sur la ligne « Bonjour », même sur petit écran */
.ht-sub { flex-wrap: nowrap; align-items: center; }
/* Agenda (≤ 360 px) : le mois et le sélecteur de vue tiennent sur une ligne sans se chevaucher */
@media (max-width: 360px) { .ag-r2 { gap: 6px; } .ag-r2 .ws-month { font-size: .8rem; min-width: 0; } .ag-r2 .seg button { padding: 0 8px; font-size: .78rem; min-height: 32px; } }
/* Agenda, colonnes très étroites : on coupe entre les mots, jamais au milieu d'un mot */
@container (max-width: 50px) { .ag-n7 .ev-in b, .ev-in b { overflow-wrap: normal; word-break: keep-all; hyphens: manual; -webkit-hyphens: manual; overflow: hidden; text-overflow: clip; } }
/* Paramètres (≤ 360 px) : le sélecteur de thème ne dépasse plus de la carte */
@media (max-width: 360px) { .seg.wide button, .seg.wide3 button { padding: 0 6px; font-size: .8rem; min-width: 0; } .seg.wide, .seg.wide3 { max-width: 100%; } }
/* Feuilles d'édition : sur iPhone, « Supprimer » devient une icône seule pour que « Enregistrer » tienne toujours dans la feuille */
.modal-f .btn { min-width: 0; flex-shrink: 1; }
@media (max-width: 440px) { .modal-f .btn.ghost.danger { font-size: 0; gap: 0; padding: 0 12px; min-width: 44px; } .modal-f .btn.ghost.danger .ic { width: 18px; height: 18px; } }
/* Transitions entre écrans : l'écran qui arrive glisse de 18 px ; on empêche qu'il élargisse la page pendant ce temps
   (sinon un défilement horizontal parasite était possible pendant la transition). clip ≠ hidden : les en-têtes fixes restent fixes. */
#main { overflow-x: clip; }
/* Feuilles (≤ 360 px) : les choix en ligne (priorité, etc.) tiennent dans la largeur */
@media (max-width: 360px) { .modal .seg button { padding: 0 7px; font-size: .8rem; min-width: 0; } .modal .seg { max-width: 100%; } }
/* iPhone à l'horizontale (hauteur ≤ 450 px) : l'accueil de Tody se fait plus compact pour ne pas passer sous la zone de saisie */
@media (max-height: 450px) { .as-intro { padding-top: 8px; gap: 6px; } .as-intro .td-stage .tody { width: 48px; height: auto; } .as-intro h2 { font-size: 1rem; } .as-intro p { display: none; } }
/* Bulles de confirmation : elles ne bloquent plus les boutons situés derrière (seuls leurs propres boutons restent touchables) */
.toasts, .toasts .toast { pointer-events: none; }
.toasts .toast button, .toasts .toast a { pointer-events: auto; }

/* V1.0.2 — Agenda : appui long (création) et déplacement d'un événement */
.ag-grid { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ag-grid .ev { -webkit-touch-callout: none; }
.ev.drag { z-index: 30; left: 1px; width: calc(100% - 2px); transform: scale(1.03); box-shadow: 0 10px 26px rgba(20, 18, 14, .22); opacity: .96; transition: transform .15s ease, box-shadow .15s ease; pointer-events: none; }
body.ag-dragging { -webkit-user-select: none; user-select: none; }
.ag-ghost { position: absolute; left: 1px; right: 1px; z-index: 30; padding: 4px 6px; font-size: .72rem; font-weight: 600; color: var(--tx); box-shadow: 0 8px 20px rgba(20, 18, 14, .16); border-radius: 7px; background: color-mix(in srgb, var(--acc-soft, #eee) 80%, transparent); border: 1.5px dashed var(--line2); pointer-events: none; animation: fadeIn .12s ease both; }

/* V1.0.4 — tutoriels contextuels (un par page) : couleurs de l'utilisateur (accent, clair / sombre) */
.tu { position: fixed; inset: 0; z-index: 95; touch-action: none; animation: fadeIn .25s ease both; }
.tu.out { opacity: 0; transition: opacity .24s ease; }
.tu-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 200vmax rgba(16, 14, 11, .56); transition: left .4s cubic-bezier(.3,.7,.2,1), top .4s cubic-bezier(.3,.7,.2,1), width .4s cubic-bezier(.3,.7,.2,1), height .4s cubic-bezier(.3,.7,.2,1), border-radius .4s ease; pointer-events: none; }
:root[data-dark="1"] .tu-hole { box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .66); }
.tu-hole::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--acc); animation: tuPulse 1.8s ease-in-out infinite; }
:root[data-accent="blk"]:not([data-dark="1"]) .tu-hole::after { border-color: #fff; }
.tu-hole.none::after { display: none; }
@keyframes tuPulse { 50% { inset: -9px; opacity: .3; } }
.tu-fx { position: fixed; inset: 0; pointer-events: none; }
.tu-bub { position: fixed; z-index: 2; width: min(320px, calc(100vw - 28px)); background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border: 1px solid var(--line); color: var(--tx); border-radius: 22px; padding: 14px 16px 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .22), var(--glass-hi, none); transition: top .4s cubic-bezier(.3,.7,.2,1), left .4s cubic-bezier(.3,.7,.2,1); }
.tu-bub.in { animation: tuIn .32s cubic-bezier(.3,.7,.2,1) both; }
@keyframes tuIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.tu-arr { position: fixed; z-index: 1; width: 14px; height: 14px; background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transform: rotate(45deg); border-radius: 3px; transition: top .4s cubic-bezier(.3,.7,.2,1), left .4s cubic-bezier(.3,.7,.2,1), opacity .2s; }
.tu-k { display: flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tx2); margin-bottom: 6px; }
.tu-k i { display: inline-flex; gap: 4px; margin-left: auto; }
.tu-k i b { width: 6px; height: 6px; border-radius: 9px; background: var(--line2); transition: width .3s ease, background .3s ease; }
.tu-k i b.past { background: color-mix(in srgb, var(--acc) 45%, var(--line2)); }
.tu-k i b.on { width: 16px; background: var(--acc); }
.tu-bub h3 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 600; }
.tu-bub p { margin: 0; font-size: .88rem; line-height: 1.42; color: var(--tx2); }
.tu-row { display: flex; align-items: center; margin-top: 12px; }
.tu-skip { font-size: .84rem; color: var(--tx2); padding: 8px 4px; }
.tu-next { margin-left: auto; background: var(--acc-tint2, color-mix(in srgb, var(--acc) 24%, transparent)); color: var(--acc-ink, var(--tx)); box-shadow: inset 0 0 0 1px var(--acc-ring, transparent); border-radius: 999px; padding: 9px 18px; font-size: .88rem; font-weight: 600; }
/* le doigt */
.tu-f { position: fixed; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .5); border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); will-change: transform; }
.tu-f svg { position: absolute; inset: -9px; width: 60px; height: 60px; transform: rotate(-90deg); fill: none; stroke: var(--acc-on); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); opacity: 0; }
:root:not([data-accent="blk"]) .tu-f svg { stroke: var(--acc); }
.tu-f.hold svg { opacity: 1; }
.tu-f.tap::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff; animation: tuRip 1.5s ease-out infinite; }
.tu-f.tap { animation: tuTap 1.5s ease-in-out infinite; }
@keyframes tuTap { 0%, 100% { scale: 1; } 18% { scale: .82; } 34% { scale: 1; } }
@keyframes tuRip { 0%, 15% { inset: -2px; opacity: .9; } 70%, 100% { inset: -22px; opacity: 0; } }
/* bloc de démonstration (agenda) */
.tu-blk { position: fixed; left: 0; top: 0; border-radius: 7px; padding: 4px 6px; background: color-mix(in srgb, var(--acc) 22%, color-mix(in srgb, var(--card) 70%, transparent)); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); border: 1.5px solid var(--acc); color: var(--tx); font-size: .7rem; line-height: 1.25; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s ease, scale .15s ease; will-change: transform; }
.tu-blk b { font-weight: 600; } .tu-blk span { color: var(--tx2); }
.tu-blk.up { scale: 1.04; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
/* illustrations de la bulle */
.tu-art { margin-top: 10px; }
.tu-ck { display: flex; align-items: center; gap: 12px; }
.tu-ck .bar { flex: 1; height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.tu-ck .bar i { display: block; height: 100%; width: 100%; background: var(--acc); transform-origin: left; animation: tuBar 3s ease-in-out infinite; }
.tu-ck .btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; animation: tuBtn 3s ease-in-out infinite; }
.tu-ck svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.tu-ck .p { animation: tuPlus 3s ease-in-out infinite; } .tu-ck .c { stroke-dasharray: 1; animation: tuDraw 3s ease-in-out infinite; }
@keyframes tuBar { 0% { transform: scaleX(.15); } 45%, 100% { transform: scaleX(1); } }
@keyframes tuBtn { 0%, 48% { background: transparent; color: var(--tx); } 56%, 92% { background: var(--acc-tint2, var(--acc)); color: var(--acc-ink, var(--acc-on)); border-color: var(--acc-ring, var(--acc)); } }
@keyframes tuPlus { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes tuDraw { 0%, 50% { stroke-dashoffset: 1; } 64%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.tu-papers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tu-papers span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .7rem; color: var(--tx2); animation: tuPick 4s calc(var(--i) * 1s) ease-in-out infinite; }
.tu-papers i { width: 100%; aspect-ratio: .8; border-radius: 8px; border: 1px solid var(--line2); background-color: #fff; }
.tu-papers .pp-ligne { background-image: repeating-linear-gradient(transparent 0 8px, #d6dbe6 8px 9px); }
.tu-papers .pp-quadrille { background-image: linear-gradient(#e1e4ea 1px, transparent 1px), linear-gradient(90deg, #e1e4ea 1px, transparent 1px); background-size: 8px 8px; }
.tu-papers .pp-points { background-image: radial-gradient(#c9cdd6 1.1px, transparent 1.3px); background-size: 8px 8px; }
@keyframes tuPick { 0%, 22% { scale: 1.06; color: var(--tx); } 0%, 22% { filter: none; } 28%, 100% { scale: 1; } }
.tu-papers span:nth-child(n) i { transition: box-shadow .2s; }
.tu-cols { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tu-cols i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 1px solid var(--line2); animation: tuDot 3.5s calc(var(--i) * .5s) ease-in-out infinite; }
@keyframes tuDot { 0%, 14% { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--acc); } 20%, 100% { box-shadow: none; } }
.tu-cols span { display: flex; gap: 10px; width: 100%; margin-top: 4px; font-size: .84rem; }
.tu-res { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--card2) 65%, transparent); border: 1px solid var(--line); animation: tuIn .4s .3s both; }
.tu-res .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-tint2, var(--acc-soft)); color: var(--acc-ink, var(--tx)); }
.tu-res svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tu-res div { flex: 1; display: flex; flex-direction: column; font-size: .86rem; } .tu-res small { color: var(--tx2); } .tu-res em { font-style: normal; font-size: .78rem; color: var(--tx2); }
.tu-type { padding: 9px 12px; border-radius: 14px; background: color-mix(in srgb, var(--card2) 65%, transparent); border: 1px solid var(--line); font-size: .86rem; min-height: 2.6em; }
.tu-type i { display: inline-block; width: 2px; height: 1em; background: var(--acc); vertical-align: -2px; margin-left: 1px; animation: tuCaret 1s steps(1) infinite; }
@keyframes tuCaret { 50% { opacity: 0; } }
.tu-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tu-chips button { text-align: left; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--card2) 65%, transparent); color: var(--tx); font-size: .84rem; }
@media (prefers-reduced-motion: reduce) { .tu *, .tu *::after, .tu::after { animation: none !important; } }

/* V1.0.6 — « petit point » dans le « + » qui devient une coche (tutoriel, carte d'objectif, confirmations).
   Cause réelle : avec stroke-dasharray: 1 et stroke-dashoffset: 1, le trait « caché » laisse un morceau de longueur 0
   au tout début du tracé ; Safari dessine quand même ses bouts arrondis → un point.
   Correctif : un vrai vide après le trait (1 1.1) et la position cachée à 1.05 → aucune extrémité ne touche le tracé
   tant que la coche n'est pas dessinée. Le dessin de la coche (0 → tracé complet) est inchangé. */
.hc-ck svg.ck-c path, .tu-ck .c, .tu-f svg, .toast .tok .o1, .toast .tok .o3, .toast .tring svg path { stroke-dasharray: 1 1.1; }
.hc-ck svg.ck-c path, .toast .tok .o1, .toast .tok .o3, .toast .tring svg path { stroke-dashoffset: 1.05; }
.hc-ck[aria-pressed="true"] svg.ck-c path { stroke-dashoffset: 0; }
.tu-f svg { stroke-dashoffset: calc(1.05 - 1.05 * var(--p, 0)); }
@keyframes ckDraw { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@keyframes tuDraw { 0%, 50% { stroke-dashoffset: 1.05; } 64%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1.05; } }
