@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/nunito-latin.woff2") format("woff2"); }
:root {
  --bg: #f8f3ee; --card: #ffffff; --text: #3b3430; --muted: #8e847c; --line: #efe7df;
  --primary: #d9846f; --primary-ink: #ffffff; --primary-soft: #fbe6de;
  --feed: #e8a06b; --feed2: #f4cba6; --sleep: #8c86c9; --diaper: #7fb8a0; --diaper2: #bfdfd0;
  --health: #e07a7a; --pump: #b59ad6; --act: #e6bf57; --note: #a39a92; --mom: #d98ba8;
  --danger: #cf5a60; --ok: #6aa888;
  --radius: 24px; --shadow: 0 1px 2px rgba(90, 70, 50, .04), 0 8px 24px rgba(90, 70, 50, .07);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
html.night {
  --bg: #17130f; --card: #221c17; --text: #d8cfc6; --muted: #857a70; --line: #2d2520;
  --primary: #d9846f; --primary-ink: #17130f; --primary-soft: #33241e;
  --feed: #c08458; --feed2: #6b4a30; --sleep: #7571b0; --diaper: #5f9a82; --diaper2: #2f5444;
  --health: #b86464; --pump: #8f78b0; --act: #b8964a; --note: #6f655d; --mom: #ad6f8b;
  --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.4; }
body.noscroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
a { color: var(--primary); }
b { font-weight: 800; }
small { display: block; color: var(--muted); font-size: .84rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.ic { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
svg.cat { display: block; }

#app { max-width: 600px; margin: 0 auto; min-height: 100vh; }
#hd { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hd-main { display: flex; align-items: center; gap: 10px; }
.hd-logo { display: flex; align-items: flex-end; height: 44px; }
.hd-logo svg { width: 40px; height: 40px; }
.hd-logo svg + svg { margin-left: -12px; }
.hd-name { font-size: 1.3rem; font-weight: 900; letter-spacing: -.01em; }
.hd-sub { font-size: .86rem; color: var(--muted); }
.hd-title { font-weight: 900; font-size: 1.1rem; }
.icbtn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--text); }
.icbtn:active { background: var(--line); }
.icbtn.big { width: 52px; height: 52px; font-size: 1.6rem; font-weight: 800; background: var(--primary-soft); color: var(--primary); }
main { padding: 6px 14px calc(96px + env(safe-area-inset-bottom)); }
#nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; transform: translate3d(0, 0, 0); display: flex; justify-content: space-around; max-width: 600px; margin: 0 auto;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
#nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: .72rem; color: var(--muted); border-radius: 12px; font-weight: 800; }
#nav button.on { color: var(--primary); }
.offline-bar { display: none; margin: 0 14px 8px; padding: 8px 12px; border-radius: 12px; background: #fff3cd; color: #6b5300; font-size: .85rem; }
body.offline .offline-bar { display: block; }
html.night .offline-bar { background: #3a3220; color: #e6d39a; }

.card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; box-shadow: var(--shadow); }
.card.list { padding: 6px 8px; }
.card-h { display: flex; justify-content: space-between; align-items: center; font-weight: 900; margin-bottom: 8px; }
.card.list .card-h { padding: 8px 8px 2px; }
.link { color: var(--primary); font-weight: 800; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
.link .ic { width: 16px; height: 16px; }
.day { margin: 18px 4px 6px; font-weight: 900; color: var(--muted); font-size: .9rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }

.banner { display: flex; align-items: center; gap: 10px; background: var(--primary-soft); border-radius: var(--radius); padding: 12px 8px 12px 16px; margin: 8px 0; }
.banner > div { flex: 1; }

/* mascottes */
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 12px; }
.catcard { background: var(--card); border-radius: 26px; padding: 10px 10px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.catcard .catimg svg { width: 84px; height: 84px; margin: 0 auto; }
html.night .catcard .catimg, html.night .hero-cats { background: radial-gradient(ellipse at 50% 62%, #4a3b31 0%, transparent 62%); border-radius: 50%; }
html.night .mascot-line svg, html.night .hd-logo svg { filter: drop-shadow(0 0 2px #6a5a4e); }
.catcard .catname { text-align: center; font-weight: 900; font-size: .95rem; margin: 2px 0 6px; }
.catcard .catname small { font-size: .74rem; font-weight: 700; }
.bub { flex: 1; position: relative; border-radius: 16px; padding: 9px 11px; font-size: .9rem; background: var(--bg); }
.bub:before { content: ""; position: absolute; top: -7px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--bg); }
.bub b { display: block; font-size: 1.05rem; }
.bub small { font-size: .8rem; }
.bub.feed { background: color-mix(in srgb, var(--feed) 22%, var(--card)); } .bub.feed:before { border-bottom-color: color-mix(in srgb, var(--feed) 22%, var(--card)); }
.bub.sleep { background: color-mix(in srgb, var(--sleep) 20%, var(--card)); } .bub.sleep:before { border-bottom-color: color-mix(in srgb, var(--sleep) 20%, var(--card)); }
.bub .pill { background: var(--card); }
.mascot-line { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.mascot-line svg { width: 48px; height: 48px; flex: none; }
.mascot-line .say { flex: 1; background: var(--card); border-radius: 14px; padding: 8px 12px; font-size: .9rem; position: relative; }
.mascot-line .say:before { content: ""; position: absolute; left: -6px; top: 14px; border: 6px solid transparent; border-left: 0; border-right-color: var(--card); }
.hero-cats { display: flex; justify-content: center; align-items: flex-end; margin: 0 auto 8px; }
.hero-cats svg { width: 110px; height: 110px; }
.hero-cats svg + svg { margin-left: -26px; width: 100px; height: 100px; }

/* animations des mascottes (seulement dans un bloc .anim, et jamais si l'utilisateur prefere moins de mouvement) */
@media (prefers-reduced-motion: no-preference) {
  .anim .cat .c-tail { transform-origin: 90px 96px; animation: wag 2.8s ease-in-out infinite; }
  .anim .cat-upy .c-tail { animation-duration: 3.6s; animation-delay: .7s; }
  .anim .cat .c-eyes { transform-origin: 60px 52px; animation: blink 5.5s infinite; }
  .anim .cat-upy .c-eyes { animation-delay: 2.3s; }
  .anim .cat .c-head { transform-origin: 60px 78px; animation: nod 7s ease-in-out infinite; }
  .anim .cat-upy .c-head { animation-delay: 1.4s; animation-duration: 8s; }
  .pop-in .cat-pita { animation: popin .8s cubic-bezier(.2, .9, .3, 1.25) both; transform-origin: 50% 100%; }
  .pop-in .cat-upy { animation: popin .8s .25s cubic-bezier(.2, .9, .3, 1.25) both; transform-origin: 50% 100%; }
  .pop-in h1, .pop-in .welcome p, .pop-in .hd-name { animation: fadeup .6s .35s both; }
  .run .head-pita .c-head { animation: nod 1.6s ease-in-out infinite; transform-origin: 60px 78px; }
}
@keyframes wag { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-3.5deg); } 65% { transform: rotate(2.5deg); } }
@keyframes popin { from { transform: translateY(26px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeup { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 28px; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: .9; animation: fall 2.8s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .4; } }
.modal-card { position: relative; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 12px; }
.status { background: var(--card); border-radius: 22px; padding: 12px 14px; box-shadow: var(--shadow); min-height: 104px; }
.status b { display: block; font-size: 1.05rem; margin-top: 4px; }
.st-h { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 900; color: var(--c); text-transform: uppercase; letter-spacing: .05em; }
.st-h .ic { width: 15px; height: 15px; }
.st-feed { --c: var(--feed); } .st-sleep { --c: var(--sleep); } .st-diaper { --c: var(--diaper); } .st-health { --c: var(--health); }
.pill { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 99px; background: var(--bg); color: var(--text); font-size: .78rem; font-weight: 800; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.actions.three { grid-template-columns: repeat(3, 1fr); }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 80px; border-radius: 22px;
  background: color-mix(in srgb, var(--c) 20%, var(--card)); color: color-mix(in srgb, var(--c) 72%, var(--text)); font-weight: 800; font-size: .84rem; }
.act .ic { width: 27px; height: 27px; }
.act:active { transform: scale(.96); }
.c-feed { --c: var(--feed); } .c-feed2 { --c: var(--feed2); } .c-sleep { --c: var(--sleep); } .c-diaper { --c: var(--diaper); } .c-diaper2 { --c: var(--diaper2); }
.c-health { --c: var(--health); } .c-pump { --c: var(--pump); } .c-act { --c: var(--act); } .c-note { --c: var(--note); } .c-mom { --c: var(--mom); }

.run { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 8px 0; border-radius: var(--radius); background: var(--c); color: #fff; box-shadow: var(--shadow); }
.run > div { flex: 1; }
.run small { color: rgba(255, 255, 255, .85); }
.run .big { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.run svg.cat { width: 44px; height: 44px; }
html.night .run { color: #17130f; } html.night .run small { color: rgba(23, 19, 15, .75); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; text-align: center; }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpis b { font-size: 1.2rem; display: block; }
.kpis small { font-size: .74rem; }
.card.kpis { padding: 14px; }

.li { display: flex; align-items: center; gap: 12px; padding: 10px 6px; width: 100%; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.li:last-child { border-bottom: 0; }
.li > .ic { color: var(--primary); }
.li .grow, .grow { flex: 1; min-width: 0; }
.li.check .box { width: 26px; height: 26px; flex: none; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; }
.li.check.done .box { background: var(--ok); border-color: var(--ok); }
.li.check.done b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.li .txt { text-align: left; }
.li.expired b { color: var(--danger); }
.row-ev { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border-radius: 14px; }
.row-ev:active { background: var(--bg); }
.row-ev b { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 38px; height: 38px; flex: none; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, var(--card)); color: color-mix(in srgb, var(--c) 75%, var(--text)); }
.dot .ic { width: 20px; height: 20px; }
.by { font-size: .72rem; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }

.ic.flip { transform: scaleX(-1); color: var(--muted); }
.card.todo { display: block; width: 100%; text-align: left; }
.card.todo .progress { margin: 6px 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); min-height: 108px; }
.tile .ic { color: var(--primary); width: 26px; height: 26px; margin-bottom: 4px; }

.hero { margin: 8px 0 12px; padding: 24px 20px; border-radius: 28px; color: #fff; text-align: center;
  background: linear-gradient(150deg, #e9a287, #d9846f 60%, #c9705f); box-shadow: var(--shadow); }
html.night .hero { background: linear-gradient(150deg, #4a2f27, #3a241e); color: var(--text); }
.hero-big { font-size: 3.4rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.hero-big.sm { font-size: 2rem; }
.hero-sub { margin-top: 6px; opacity: .92; }
.hero-note { margin-top: 12px; display: inline-block; background: rgba(255, 255, 255, .18); padding: 6px 12px; border-radius: 99px; font-size: .9rem; }
.hero .btn { margin-top: 14px; }
.hero-logo { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 24px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.hero-logo svg { width: 54px; height: 54px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 16px; font-weight: 800; text-decoration: none; }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: .88rem; }
.btn.block { display: flex; width: 100%; margin: 10px 0; }
.btn.xl { min-height: 60px; font-size: 1.08rem; border-radius: 20px; }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.light { background: var(--primary-soft); color: var(--primary); }
.btn.ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger-text { color: var(--danger); }
.btn:disabled { opacity: .6; }
.btn:active { transform: scale(.98); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.row.end { justify-content: flex-end; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.center { justify-content: center; }
.chip { padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); font-size: .88rem; font-weight: 800; white-space: nowrap; }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

.chart { width: 100%; height: auto; display: block; }
.chart .lbl { font-size: 10px; fill: var(--muted); }
.chart .val { font-size: 10px; fill: var(--text); font-weight: 800; }
.chart rect.c-feed { fill: var(--feed); } .chart rect.c-feed2 { fill: var(--feed2); } .chart rect.c-act { fill: var(--act); }
.chart rect.c-sleep { fill: var(--sleep); } .chart rect.c-diaper { fill: var(--diaper); } .chart rect.c-diaper2 { fill: var(--diaper2); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.growth .band1 { fill: color-mix(in srgb, var(--primary) 12%, transparent); }
.growth .band2 { fill: color-mix(in srgb, var(--primary) 22%, transparent); }
.growth .median { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 4 3; }
.growth .baby { fill: none; stroke: var(--sleep); stroke-width: 2.5; }
.growth .pt { fill: var(--sleep); stroke: var(--card); stroke-width: 2; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; background: var(--c); }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(40, 28, 20, .38); opacity: 0; transition: opacity .25s; }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-width: 600px; margin: 0 auto; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 28px 28px 0 0; padding: 6px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-card { transform: none; }
.sheet-h { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 0 6px; background: var(--bg); z-index: 2; font-size: 1.15rem; }
.field { display: block; margin: 12px 0; }
.flabel { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 6px; }
.field small { margin-top: 6px; }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); outline: none; font-size: 1rem; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 800; font-size: .92rem; cursor: pointer; }
.seg input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.checkline { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 700; }
.checkline input { width: 22px; height: 22px; accent-color: var(--primary); }
.formend { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.formend .btn.primary { flex: 1; max-width: 240px; margin-left: auto; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0; }
.stepper input { width: 120px !important; text-align: center; font-size: 2rem !important; font-weight: 900; min-height: 64px !important; }
.stepper span { font-weight: 800; color: var(--muted); }
details { margin: 12px 0; background: var(--card); border-radius: 16px; padding: 4px 14px; }
summary { padding: 10px 0; font-weight: 800; color: var(--primary); cursor: pointer; }
.timeinput .chips { margin-top: 8px; }
.diapers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0; }
.dbtn { min-height: 92px; border-radius: 22px; background: color-mix(in srgb, var(--diaper) 22%, var(--card)); color: color-mix(in srgb, var(--diaper) 70%, var(--text)); font-weight: 900; font-size: 1.05rem; text-align: center; border: 2px solid transparent; }
.dbtn.on { border-color: var(--diaper); }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.side { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 8px; border-radius: 24px; background: var(--card); border: 2px solid var(--line); text-align: center; }
.side span { font-weight: 900; font-size: 1.1rem; }
.side b { font-size: 2rem; font-variant-numeric: tabular-nums; }
.side.sug { border-color: var(--feed); border-style: dashed; }
.side.on { background: var(--feed); border-color: var(--feed); color: #fff; animation: pulse 2s infinite; }
.side.on small { color: rgba(255, 255, 255, .9); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--feed) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.total { margin: 6px 0; }
.big-time { font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; margin: 10px 0 0; }
.alert { background: color-mix(in srgb, var(--health) 16%, var(--card)); color: color-mix(in srgb, var(--health) 55%, var(--text)); border-radius: 16px; padding: 12px 14px; margin: 10px 0; font-weight: 700; }
.photo-pick { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1.5px dashed var(--line); background: var(--card); cursor: pointer; margin: 12px 0; color: var(--primary); font-weight: 800; }
.photo-pick img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.err-text { color: var(--danger); min-height: 1.2em; font-weight: 700; }

/* contractions */
.ctr { display: grid; place-items: center; margin: 14px 0; }
.ctr-btn { width: 210px; height: 210px; border-radius: 50%; background: var(--mom); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 10px 30px color-mix(in srgb, var(--mom) 40%, transparent); }
.ctr-btn span { font-size: 1rem; opacity: .9; }
.ctr-btn b { font-size: 1.5rem; }
.ctr-btn.on { background: var(--danger); animation: pulse2 1.6s infinite; }
.ctr-btn.on b { font-size: 2.6rem; font-variant-numeric: tabular-nums; }
@keyframes pulse2 { 50% { transform: scale(1.03); } }

/* souvenirs */
.miles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 6px; border-radius: 16px; background: var(--bg); min-height: 112px; justify-content: center; }
.mile .ic { color: var(--muted); }
.mile.done .ic { color: var(--act); }
.mile b { font-size: .8rem; line-height: 1.2; }
.mile small { font-size: .72rem; }
.mile img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
img.full { width: 100%; border-radius: 14px; }

.progress { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s; }
.water { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.water b { font-size: 1.6rem; }
.vote.on { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.prenom { font-size: 1.1rem; }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(40, 28, 20, .45); display: grid; place-items: center; padding: 20px; }
.modal-card { width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto; background: var(--card); border-radius: 28px; padding: 22px; }
.welcome-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; margin-bottom: 12px; background: var(--bg); }
.welcome .hero-cats { margin-top: -34px; margin-bottom: 0; }
.welcome .hero-cats svg { width: 78px; height: 78px; }
.welcome .hero-cats svg + svg { width: 70px; height: 70px; margin-left: -18px; }
.welcome p { margin: 0 0 12px; line-height: 1.5; }
.welcome p:first-of-type { font-size: 1.3rem; font-weight: 900; text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 80;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 16px; background: #3b3430; color: #fff; font-weight: 700; transition: all .22s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.err { background: var(--danger); }
.toast button { color: #ffd59e; font-weight: 900; }

/* login */
#login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; text-align: center; }
.login-card h1 { margin: 6px 0 2px; font-size: 2.1rem; font-weight: 900; }
.login-card form { text-align: left; margin-top: 18px; }

/* rapport */
.report { background: #fff; color: #222; border-radius: var(--radius); padding: 18px; }
.report h2 { margin: 0; } .report h3 { margin: 18px 0 6px; font-size: 1rem; }
.report table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.report th, .report td { border-bottom: 1px solid #e5e5e5; padding: 6px 4px; text-align: left; }
@media print {
  #hd, #nav, .noprint, .offline-bar, .toast { display: none !important; }
  body, html { background: #fff; }
  main { padding: 0; }
  .report { box-shadow: none; padding: 0; }
}
@media (min-width: 640px) { main { padding-left: 20px; padding-right: 20px; } }
