/* Le ricette di Giulia · stili (prima il telefono, 360-430 px; computer = colonna centrata). Palette della landing CRISPi. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/Figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/Figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/Fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/Fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* «vert» = basilico (spunte, anelli, barre) · «orange» = pomodoro (azione principale) · crema di fondo */
  --vert: #3D7A4C; --vert-f: #336A41; --vert-ff: #24512F; --vert-c: #E7F2E6; --vert-cc: #F2F8F1;
  --orange: #D2452C; --orange-f: #B5361F; --orange-c: #FDECE7;
  --jaune: #E9A23B; --jaune-c: #FBF0DC;
  --pomodoro: #D2452C; --pomodoro2: #B5361F; --crema: #FBF3E6; --crema2: #F6E9D4;
  --fond: #FBF3E6; --carte: #FFFDF9; --texte: #2B221D; --doux: #5E534C; --trait: #EADFCF; --ombre: 0 8px 22px -12px rgba(70, 40, 20, .28);
  --rouge: #B5361F; --bleu: #4A90C2;
  --r: 20px; --r-s: 14px; --tap: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 72px;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.45; font-weight: 500; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
.ico { flex: 0 0 auto; vertical-align: middle; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: calc(var(--safe-t) + 8px) 16px calc(var(--nav-h) + var(--safe-b) + 24px); position: relative; }
#app.no-nav { padding-bottom: calc(var(--safe-b) + 24px); }
@media (min-width: 700px) {
  body { background: radial-gradient(1200px 600px at 10% -10%, #FDECE7 0, transparent 60%), radial-gradient(900px 500px at 110% 10%, #E7F2E6 0, transparent 60%), var(--fond); background-attachment: fixed; }
  #app { padding-top: 24px; }
}

/* démarrage */
.boot { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--doux); font-weight: 700; }
.boot img { border-radius: 24px; box-shadow: var(--ombre); }
.boot-bar { width: 140px; height: 6px; background: var(--trait); border-radius: 9px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: var(--vert); border-radius: 9px; animation: boot 1.1s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* barre de navigation */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--trait); padding-bottom: var(--safe-b); }
.nav-in { display: flex; width: 100%; max-width: 560px; }
.nav a { flex: 1; min-height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #8796A3; text-decoration: none; font-size: 12.5px; font-weight: 700; position: relative; }
.nav a .ico { width: 26px; height: 26px; transition: transform .25s; }
.nav a.on { color: var(--vert-f); }
.nav a.on .ico { transform: translateY(-2px) scale(1.08); }
.nav a.on::before { content: ""; position: absolute; top: 0; width: 34px; height: 4px; border-radius: 0 0 6px 6px; background: var(--vert); }

/* en-têtes */
.top { display: flex; align-items: center; gap: 12px; padding: 8px 0 14px; }
.top h1 { font-size: 26px; flex: 1; }
.top .sub { color: var(--doux); font-size: 15px; font-weight: 600; margin-top: 2px; }
.back { width: 48px; height: 48px; border-radius: 50%; background: var(--carte); box-shadow: var(--ombre); display: grid; place-items: center; flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--ombre); }
.brand b { display: block; font-size: 15px; font-weight: 800; }
.brand small { display: block; color: var(--doux); font-size: 13px; font-weight: 600; }

/* cartes */
.card { background: var(--carte); border-radius: var(--r); box-shadow: var(--ombre); padding: 18px; margin-bottom: 14px; }
.card h2 { font-size: 20px; margin-bottom: 6px; }
.card h3 { font-size: 17px; margin-bottom: 4px; }
.muted { color: var(--doux); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 12px; } .mt2 { margin-top: 20px; } .mb { margin-bottom: 12px; }
.center { text-align: center; }
.sec-t { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--doux); margin: 22px 4px 10px; }

/* boutons */
.btn { min-height: var(--tap); padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s, box-shadow .2s, background .2s; text-align: center; line-height: 1.2; }
.btn:active { transform: scale(.97); }
.btn-p { background: var(--vert-f); color: #fff; box-shadow: 0 8px 18px rgba(62, 127, 47, .32); }
.btn-o { background: var(--orange); color: #2B1A00; box-shadow: 0 8px 18px rgba(255, 160, 0, .3); }
.btn-l { background: var(--carte); color: var(--texte); border: 2px solid var(--trait); }
.btn-g { background: var(--vert-c); color: var(--vert-ff); }
.btn-t { color: var(--vert-f); font-weight: 800; min-height: 48px; padding: 8px 10px; }
.btn-full { width: 100%; }
.btn[disabled] { background: #C9D3DA; color: #fff; box-shadow: none; pointer-events: none; }
.btn-danger { color: var(--rouge); }
.ibtn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--fond); flex: 0 0 auto; }
.ibtn:active { transform: scale(.93); }

/* puces */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--fond); color: var(--texte); }
.chip .ico { width: 17px; height: 17px; }
.chip-v { background: var(--vert-c); color: var(--vert-ff); }
.chip-o { background: var(--orange-c); color: #7A4A00; }
.chip-j { background: var(--jaune-c); color: #6B5300; }
.tm { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tm span { display: inline-flex; align-items: center; gap: 6px; background: var(--vert-f); color: #fff; border-radius: 12px; padding: 7px 11px; font-weight: 800; font-size: 15px; }
.tm span.f { background: var(--orange); color: #2B1A00; }
.tm span .ico { width: 18px; height: 18px; }
.tm button { background: var(--jaune); color: #3D3000; border-radius: 12px; padding: 7px 11px; font-weight: 800; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; }

/* onboarding */
.onb { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; }
.onb-hero { border-radius: 28px; overflow: hidden; position: relative; aspect-ratio: 1 / .9; box-shadow: var(--ombre); }
.onb-hero img { width: 100%; height: 100%; object-fit: cover; }
.onb-hero .cam { position: absolute; left: 16px; bottom: -1px; display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px 14px 8px 8px; border-radius: 999px 999px 999px 999px; transform: translateY(-14px); box-shadow: var(--ombre); }
.onb-hero .cam img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.onb h1 { font-size: 30px; margin: 22px 0 8px; }
.onb .lead { font-size: 18px; color: var(--doux); }
.onb .foot { margin-top: auto; padding-top: 20px; display: grid; gap: 8px; }
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps i { flex: 1; height: 6px; border-radius: 9px; background: var(--trait); }
.steps i.on { background: var(--vert); }
.step-k { color: var(--vert-f); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.choix { display: grid; gap: 10px; margin-top: 14px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--carte); border: 2px solid transparent; border-radius: 18px; padding: 14px; min-height: 64px;
  box-shadow: var(--ombre); transition: border-color .2s, transform .12s, background .2s; }
.opt:active { transform: scale(.985); }
.opt.on { border-color: var(--vert); background: var(--vert-cc); }
.opt .pic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--vert-c); color: var(--vert-ff); flex: 0 0 auto; }
.opt .pic .ico { width: 28px; height: 28px; }
.opt b { display: block; font-size: 17px; }
.opt span.d { display: block; font-size: 14.5px; color: var(--doux); font-weight: 600; }
.opt .tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--trait); display: grid; place-items: center; flex: 0 0 auto; color: transparent; }
.opt.on .tick { background: var(--vert); border-color: var(--vert); color: #fff; }
.seg { display: grid; gap: 8px; }
.seg button { min-height: 52px; border-radius: 14px; background: var(--fond); border: 2px solid transparent; padding: 10px 14px; text-align: left; font-weight: 700; font-size: 15.5px; }
.seg button.on { background: var(--vert-cc); border-color: var(--vert); color: var(--vert-ff); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; width: 100%; }
.toggle .sw { width: 54px; height: 32px; border-radius: 99px; background: var(--trait); position: relative; transition: background .2s; flex: 0 0 auto; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.toggle.on .sw { background: var(--vert); }
.toggle.on .sw::after { transform: translateX(22px); }
.niveau { text-align: center; padding: 22px 16px; background: linear-gradient(160deg, var(--vert-c), #fff 70%); }
.niveau .big { font-size: 56px; font-weight: 900; color: var(--vert-ff); letter-spacing: -.02em; line-height: 1; }
.niveau .big small { font-size: 18px; font-weight: 800; color: var(--doux); letter-spacing: 0; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; }
.stepper .ibtn { width: 56px; height: 56px; background: var(--carte); box-shadow: var(--ombre); }
.stepper .val { font-size: 40px; font-weight: 900; min-width: 70px; text-align: center; }
.peeps { display: flex; justify-content: center; gap: 4px; color: var(--vert); min-height: 40px; margin-top: 8px; flex-wrap: wrap; }
.peeps .ico { width: 34px; height: 34px; animation: pop .3s ease-out; }
.alert { display: flex; gap: 12px; align-items: flex-start; background: var(--jaune-c); border-radius: 16px; padding: 14px; font-size: 15px; font-weight: 600; color: #4A3B00; }
.alert .ico { color: var(--orange-f); margin-top: 1px; }
.alert b { display: block; }
.alert.v { background: var(--vert-cc); color: var(--vert-ff); }
.alert.v .ico { color: var(--vert-f); }

/* aujourd'hui */
.hello { display: flex; align-items: center; gap: 12px; padding: 6px 0 10px; }
.hello .grow h1 { font-size: 24px; }
.streak { display: inline-flex; align-items: center; gap: 6px; background: var(--orange-c); color: #7A4A00; font-weight: 800; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; }
.streak .ico { color: var(--orange); width: 20px; height: 20px; }
.streak.on .ico { animation: flick 1.6s ease-in-out infinite; }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(-4deg); } }
.daynav { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.daynav .lbl { flex: 1; text-align: center; }
.daynav .lbl b { display: block; font-size: 19px; font-weight: 900; }
.daynav .lbl small { color: var(--doux); font-weight: 700; font-size: 14px; }
.parcours { display: grid; grid-template-columns: repeat(28, 1fr); gap: 3px; margin: 6px 0 4px; }
.parcours i { height: 10px; border-radius: 4px; background: var(--trait); }
.parcours i.ok { background: var(--vert); }
.parcours i.mi { background: #B8DDAC; }
.parcours i.auj { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange); }
.parcours i.auj:not(.ok):not(.mi) { background: var(--orange); }
.parcours i.jk { background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255,255,255,.6) 3px 5px); }
.ring-card { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 156px; height: 156px; flex: 0 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bg { stroke: var(--vert-c); }
.ring .fg { stroke: var(--vert); transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1), stroke .3s; }
.ring .fg.over { stroke: var(--orange); }
.ring .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring .mid b { font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.ring .mid span { font-size: 13px; color: var(--doux); font-weight: 700; }
.ring .mid em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--vert-f); margin-top: 4px; }
.ring .mid em.over { color: var(--orange-f); }
.macros { flex: 1; display: grid; gap: 10px; min-width: 0; }
.mac .l { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; }
.mac .l span { color: var(--doux); }
.mac .b { height: 9px; border-radius: 9px; background: var(--fond); overflow: hidden; margin-top: 4px; }
.mac .b i { display: block; height: 100%; border-radius: 9px; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.meal { display: flex; gap: 0; padding: 0; overflow: hidden; position: relative; transition: transform .15s, opacity .3s; }
.meal .ph { width: 118px; flex: 0 0 auto; position: relative; background: linear-gradient(150deg, var(--vert-c), #fff); display: grid; place-items: center; color: var(--vert-f); min-height: 132px; }
.meal .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.meal .ph .ico { width: 46px; height: 46px; }
.meal.gouter .ph { background: linear-gradient(150deg, var(--orange-c), #fff); color: var(--orange-f); }
.meal.cena .ph { background: linear-gradient(150deg, #E6EEF7, #fff); color: var(--bleu); }
.meal.desayuno .ph { background: linear-gradient(150deg, var(--jaune-c), #fff); color: #B68F00; }
.meal .body { flex: 1; min-width: 0; padding: 14px 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.meal .k { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--doux); display: flex; align-items: center; gap: 6px; }
.meal h3 { font-size: 17.5px; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meal .meta { font-size: 14px; color: var(--doux); font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.meal .meta b { color: var(--texte); font-weight: 800; }
.meal .exs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.meal .exs .chip { font-size: 13px; padding: 4px 9px; }
.meal .acts { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.meal .swapb { font-size: 14px; font-weight: 800; color: var(--doux); display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 6px; }
.meal .swapb .ico { width: 18px; height: 18px; }
.meal.done { background: #FBFDFA; }
.meal.done h3 { color: #5c6b62; }
.meal.done .ph::after { content: ""; position: absolute; inset: 0; background: rgba(111, 181, 92, .28); }
.meal .open { position: absolute; inset: 0; z-index: 1; }
.meal .chk, .meal .swapb { position: relative; z-index: 2; }
.chk { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--trait); display: grid; place-items: center; color: transparent; background: #fff; margin-left: auto; flex: 0 0 auto; transition: background .25s, border-color .25s, transform .15s; position: relative; }
.chk .ico { width: 30px; height: 30px; stroke-width: 3; }
.chk.on { background: var(--vert); border-color: var(--vert); color: #fff; animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
.chk.on .ico path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .35s .08s ease-out forwards; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.burst { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; animation: burst .7s ease-out forwards; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4); opacity: 0; } }
.extras-card .exl { display: flex; align-items: center; gap: 12px; min-height: 60px; border-top: 1px solid var(--trait); }
.extras-card .exl:first-of-type { border-top: 0; }
.autre-btn { width: 100%; min-height: 64px; border-radius: var(--r); border: 2px dashed #C8D5DF; background: transparent; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; color: var(--vert-ff); font-size: 17px; margin-bottom: 14px; }
.autre-btn .ico { background: var(--vert-c); border-radius: 50%; padding: 6px; width: 36px; height: 36px; }
.li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--trait); }
.li:first-child { border-top: 0; }
.joker { background: linear-gradient(135deg, var(--jaune-c), #fff); }
.joker .row .ico { color: var(--orange); }

/* recette */
.r-hero { margin: -8px -16px 0; position: relative; height: 260px; background: linear-gradient(150deg, var(--vert-c), #fff); display: grid; place-items: center; color: var(--vert-f); overflow: hidden; }
.r-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-hero > .ico { width: 92px; height: 92px; opacity: .85; }
.r-hero .back { position: absolute; top: calc(var(--safe-t) + 12px); left: 16px; z-index: 2; }
.r-body { background: var(--fond); border-radius: 28px 28px 0 0; margin: -28px -16px 0; padding: 22px 16px 0; position: relative; }
.r-body h1 { font-size: 27px; }
.r-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.ing-l { list-style: none; padding: 0; margin: 8px 0 0; }
.ing-l li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--trait); font-size: 16.5px; align-items: baseline; }
.ing-l li:first-child { border-top: 0; }
.ing-l .q { font-weight: 900; min-width: 82px; color: var(--vert-ff); }
.step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--trait); }
.step:first-of-type { border-top: 0; }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--vert-c); color: var(--vert-ff); display: grid; place-items: center; font-weight: 900; flex: 0 0 auto; }
.step p { font-size: 17px; }
.nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; margin-top: 10px; }
.nutri div { background: var(--fond); border-radius: 14px; padding: 10px 4px; }
.nutri b { display: block; font-size: 19px; font-weight: 900; }
.nutri span { font-size: 12.5px; color: var(--doux); font-weight: 700; }
.tip { background: linear-gradient(135deg, var(--jaune-c), #fff); }
.tip .row { align-items: flex-start; }
.tip img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.sticky-cta { background: linear-gradient(to bottom, rgba(251,243,230,0), var(--fond) 30%); padding-top: 14px; position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 5; display: grid; gap: 8px; margin-top: 10px; }
.no-nav .sticky-cta { bottom: calc(var(--safe-b) + 10px); }

/* mode cuisine */
.cook { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 12px) 18px calc(var(--safe-b) + 16px); max-width: 700px; margin: 0 auto; }
.cook .bar { height: 8px; background: var(--vert-c); border-radius: 9px; overflow: hidden; margin: 10px 0 18px; }
.cook .bar i { display: block; height: 100%; background: var(--vert); transition: width .4s; }
.cook .txt { flex: 1; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.cook .txt p { font-size: clamp(24px, 6.4vw, 34px); font-weight: 700; line-height: 1.3; }
.cook .tm span, .cook .tm button { font-size: 20px; padding: 10px 14px; }
.cook .tm span .ico, .cook .tm button .ico { width: 24px; height: 24px; }
.cook .nav2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.cook .nav2 .btn { min-height: 64px; font-size: 19px; }
.timer-big { font-size: 64px; font-weight: 900; text-align: center; color: var(--vert-ff); font-variant-numeric: tabular-nums; }
.wake { font-size: 13.5px; color: var(--doux); font-weight: 700; display: flex; align-items: center; gap: 6px; }

/* feuilles (bottom sheets) */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(20, 30, 38, .45); animation: fade .2s ease-out; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 560px; margin: 0 auto; background: var(--fond); border-radius: 26px 26px 0 0; max-height: 92dvh; display: flex; flex-direction: column;
  animation: up .28s cubic-bezier(.2,.9,.3,1); padding-bottom: var(--safe-b); }
.sheet .hd { padding: 10px 16px 8px; display: flex; align-items: center; gap: 10px; }
.sheet .hd::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; border-radius: 9px; background: #CFD8DF; transform: translateX(-50%); }
.sheet .hd h2 { flex: 1; font-size: 21px; padding-top: 12px; }
.sheet .bd { overflow-y: auto; padding: 4px 16px 20px; -webkit-overflow-scrolling: touch; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.alt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--carte); border-radius: 18px; padding: 10px; margin-bottom: 10px; box-shadow: var(--ombre); min-height: 76px; }
.alt .ph { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--vert-c); color: var(--vert-f); display: grid; place-items: center; flex: 0 0 auto; }
.alt .ph img { width: 100%; height: 100%; object-fit: cover; }
.alt b { display: block; font-size: 16px; line-height: 1.25; }
.alt small { color: var(--doux); font-weight: 700; font-size: 13.5px; }
.search { position: relative; }
.search input { width: 100%; min-height: 56px; border-radius: 16px; border: 2px solid var(--trait); background: #fff; padding: 12px 16px 12px 48px; font-size: 17px; font-weight: 600; }
.search input:focus { border-color: var(--vert); outline: none; }
.search .ico { position: absolute; left: 14px; top: 16px; color: var(--doux); }
.food { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 4px; border-bottom: 1px solid var(--trait); min-height: 60px; }
.food b { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; }
.food small { color: var(--doux); font-weight: 700; }
.food .k { margin-left: auto; font-weight: 900; color: var(--vert-ff); white-space: nowrap; }
.qty-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.qty-chips button { min-height: 48px; padding: 8px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--trait); font-weight: 800; }
.qty-chips button.on { border-color: var(--vert); background: var(--vert-cc); color: var(--vert-ff); }
.gram-in { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 10px 0; }
.gram-in input { width: 120px; min-height: 56px; text-align: center; font-size: 26px; font-weight: 900; border-radius: 14px; border: 2px solid var(--trait); background: #fff; }
.big-k { text-align: center; font-size: 44px; font-weight: 900; color: var(--vert-ff); line-height: 1; margin: 6px 0; }
.big-k small { font-size: 17px; color: var(--doux); }

/* courses */
.wk { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.wk::-webkit-scrollbar { display: none; }
.wk button { min-height: 48px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--trait); font-weight: 800; white-space: nowrap; }
.wk button.on { background: var(--vert-f); border-color: var(--vert-f); color: #fff; }
.progress { height: 12px; background: var(--vert-c); border-radius: 9px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--vert); width: 0; transition: width .5s; border-radius: 9px; }
.shop-sec { padding: 6px 16px 8px; }
.shop-sec h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; padding: 10px 0 4px; }
.shop-sec h3 .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.shop-sec h3 .dot .ico { width: 20px; height: 20px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 56px; border-top: 1px solid var(--trait); padding: 6px 0; }
.item .box { width: 30px; height: 30px; border-radius: 9px; border: 2.5px solid #C5D2DC; display: grid; place-items: center; color: transparent; flex: 0 0 auto; transition: all .2s; }
.item .box .ico { width: 20px; height: 20px; stroke-width: 3; }
.item.on .box { background: var(--vert); border-color: var(--vert); color: #fff; animation: pop .35s; }
.item .nm { flex: 1; font-size: 16.5px; font-weight: 700; }
.item .qt { font-weight: 800; color: var(--doux); white-space: nowrap; }
.item.on .nm, .item.on .qt { text-decoration: line-through; color: #9AA8B3; }

/* suivi */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label { display: block; font-size: 13.5px; font-weight: 800; color: var(--doux); margin-bottom: 4px; }
.field .in { display: flex; align-items: center; background: #fff; border: 2px solid var(--trait); border-radius: 14px; padding: 0 12px; min-height: 56px; }
.field .in:focus-within { border-color: var(--vert); }
.field input { border: 0; background: transparent; width: 100%; font-size: 20px; font-weight: 800; min-height: 52px; outline: none; }
.field .u { color: var(--doux); font-weight: 800; }
.field.wide { grid-column: 1 / -1; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .ln { fill: none; stroke: var(--vert); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: drawl 1.4s ease-out forwards; }
.chart .ar { fill: url(#gv); opacity: .9; }
.chart circle { fill: #fff; stroke: var(--vert-f); stroke-width: 3; }
.chart text { font-size: 12px; font-weight: 700; fill: var(--doux); font-family: inherit; }
@keyframes drawl { to { stroke-dashoffset: 0; } }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 12px 6px; border-radius: 18px; background: #fff; box-shadow: var(--ombre); }
.badge .md { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: var(--fond); color: #B5C1CB; }
.badge.on .md { background: linear-gradient(135deg, var(--jaune), var(--orange)); color: #fff; box-shadow: 0 6px 14px rgba(255, 160, 0, .35); }
.badge b { display: block; font-size: 13.5px; line-height: 1.2; }
.badge small { display: block; font-size: 11.5px; color: var(--doux); font-weight: 600; line-height: 1.25; margin-top: 2px; }
.badge:not(.on) b { color: #9AA8B3; }

/* menu 28 jours */
.dayrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; background: #fff; border-radius: 18px; box-shadow: var(--ombre); margin-bottom: 10px; min-height: 76px; }
.dayrow .num { width: 50px; height: 50px; border-radius: 14px; background: var(--vert-c); color: var(--vert-ff); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; line-height: 1; flex: 0 0 auto; }
.dayrow .num small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.dayrow.auj .num { background: var(--orange); color: #fff; }
.dayrow .tl { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--doux); }
.dayrow .tl b { color: var(--texte); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; }
.dayrow .thumbs { display: flex; gap: 4px; }
.dayrow .thumbs span { width: 10px; height: 10px; border-radius: 50%; background: var(--trait); }
.dayrow .thumbs span.on { background: var(--vert); }

/* moi */
.kv { display: flex; align-items: center; gap: 12px; min-height: 60px; border-top: 1px solid var(--trait); width: 100%; text-align: left; }
.kv:first-of-type { border-top: 0; }
.kv .pic { width: 42px; height: 42px; border-radius: 12px; background: var(--vert-c); color: var(--vert-ff); display: grid; place-items: center; flex: 0 0 auto; }
.kv .t { flex: 1; min-width: 0; }
.kv .t small { display: block; color: var(--doux); font-weight: 700; font-size: 13px; }
.kv .t b { display: block; font-size: 16.5px; }
.kv > .ico:last-child { color: #A9B6C1; }
details.fold { background: #fff; border-radius: 18px; box-shadow: var(--ombre); margin-bottom: 10px; }
details.fold summary { list-style: none; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-weight: 800; cursor: pointer; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--doux); }
details.fold[open] summary::after { content: "–"; }
details.fold .in { padding: 0 16px 16px; font-size: 15.5px; color: var(--doux); }
details.fold ul { padding-left: 18px; margin: 6px 0; }
details.fold li { margin: 4px 0; }

/* bannière d'installation, toast, confettis */
.install { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #fff, var(--vert-cc)); border: 2px solid var(--vert-c); }
.install .ico { color: var(--vert-f); }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translate(-50%, 30px); opacity: 0; z-index: 70; background: var(--texte); color: #fff; padding: 12px 18px; border-radius: 16px;
  font-weight: 800; font-size: 15.5px; max-width: calc(100% - 32px); width: max-content; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: all .3s cubic-bezier(.2,.9,.3,1); pointer-events: none; display: flex; align-items: center; gap: 10px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { color: var(--jaune); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--x), 110vh, 0) rotate(720deg); } }
.fade-in { animation: fadein .35s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.offline { background: var(--jaune-c); color: #5A4700; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 12px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.foot-note { color: var(--doux); font-size: 13px; text-align: center; margin: 22px 8px 0; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 370px) {
  .ring { width: 132px; height: 132px; }
  .ring .mid b { font-size: 28px; }
  .meal .ph { width: 96px; }
  .top h1 { font-size: 23px; }
}

#cq-res { min-height: 55dvh; }

.nav[hidden] { display: none; }
.wk button { flex: 0 0 auto; }

/* ================= 29-10 : moments de la journée, compteur, scanner ================= */
/* ciel animé selon l'heure (SVG léger : transform/opacity seulement) */
.sky { position: relative; border-radius: 26px; overflow: hidden; margin: 2px 0 14px; min-height: 150px; display: flex; align-items: flex-end; box-shadow: var(--ombre);
  --ink: #1D2B36; --ink2: #3C4A55; background: linear-gradient(180deg, var(--s1), var(--s2)); color: var(--ink); }
.sky-new { animation: skyin 1.4s ease-out; }
@keyframes skyin { from { opacity: .2; filter: saturate(.6); } to { opacity: 1; filter: none; } }
.sky-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; }
.sky-in .grow { text-shadow: 0 1px 8px var(--s2); }
.sky-in h1 { font-size: 25px; color: var(--ink); }
.sky-in .small { color: var(--ink2); }
.sky-in .brand img { border-color: rgba(255,255,255,.9); }
.sky .sun { fill: #FECA01; }
.sky .rays rect { fill: #FFB733; opacity: .75; }
.sky .rays { animation: spin 80s linear infinite; }
.sky .sun-rise { animation: rise 2.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { transform: translateY(40px); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.sky .hill1 { fill: #8CC274; } .sky .hill2 { fill: #6FB55C; opacity: .85; }
.sky .cloud { fill: #fff; opacity: .9; }
.sky .cloud.c1 { animation: drift 60s linear infinite alternate; } .sky .cloud.c2 { animation: drift 45s linear infinite alternate-reverse; opacity: .75; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(60px); } }
.sky .sun-set { fill: #FFA000; animation: setting 30s ease-in-out infinite alternate; }
@keyframes setting { to { transform: translateY(10px); } }
.sky .moon circle { fill: #FFF3C4; } .sky .moon .moon-cut { fill: var(--s1); }
.sky .star { fill: #fff; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.sky-matin { --s1: #FFE3B3; --s2: #FFF6E6; }
.sky-midi { --s1: #BFE3FF; --s2: #EEF8FF; }
.sky-aprem { --s1: #FFCB8A; --s2: #FFEBD0; }
.sky-soir { --s1: #1B2A4A; --s2: #31457A; --ink: #FFFFFF; --ink2: #D9E2F2; }
.sky-soir .streak { background: rgba(255,255,255,.16); color: #fff; }
.sky-soir .streak .ico { color: var(--jaune); }
@media (prefers-color-scheme: dark) {
  .sky-matin { --s1: #5A4A7A; --s2: #8C5E6E; --ink: #fff; --ink2: #F3E6EC; }
  .sky-midi { --s1: #24507A; --s2: #3A6E98; --ink: #fff; --ink2: #E2EEF8; }
  .sky-aprem { --s1: #6A3F5E; --s2: #9A5A3E; --ink: #fff; --ink2: #F7E6DA; }
  .sky-soir { --s1: #0E1730; --s2: #1B2A4A; }
  .sky .hill1 { fill: #3F6B33; } .sky .hill2 { fill: #2F5426; } .sky .cloud { opacity: .45; }
  .sky:not(.sky-soir) .streak { background: rgba(255,255,255,.16); color: #fff; }
}
/* repas du moment : grand et ouvert ; repas déjà passés : compacts */
.meal.now { flex-direction: column; border: 2px solid var(--vert-c); }
.meal.now .ph { width: 100%; min-height: 170px; }
.meal.now h3 { font-size: 21px; -webkit-line-clamp: 2; }
.now-tag { position: absolute; left: 12px; top: 12px; z-index: 1; background: rgba(255,255,255,.94); color: var(--vert-ff); font-weight: 800; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; box-shadow: var(--ombre); }
.meal.mini { align-items: center; gap: 12px; padding: 8px 12px; min-height: 72px; }
.meal.mini .mi-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--vert-c); color: var(--vert-f); display: grid; place-items: center; flex: 0 0 auto; }
.meal.mini .mi-t { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal.mini .mi-k { font-weight: 900; font-size: 15px; color: var(--doux); white-space: nowrap; }
.meal.mini .chkw { position: relative; z-index: 2; }
.meal.mini .chk { width: 48px; height: 48px; }
.meal.mini .chk-l { display: none; }
.chkw { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-left: auto; position: relative; z-index: 2; }
.chk-l { font-size: 12.5px; font-weight: 800; color: var(--doux); }
.meal.done .chk-l { color: var(--vert-f); }
.chk.fut { opacity: .45; border-style: dashed; }
.meal .qb { color: var(--vert-ff); }
.tip-bubble { position: relative; z-index: 2; margin-top: 8px; background: var(--texte); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 14px; animation: fadein .5s ease-out .6s both; }
.tip-bubble::after { content: ""; position: absolute; right: 22px; top: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--texte); }
.fin-acts { display: grid; gap: 8px; }
.bilan { background: linear-gradient(160deg, #E9EEFA, #fff 70%); }
.bilan .row > .ico { color: #31457A; }
.dm { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--trait); color: inherit; text-decoration: none; }
.dm:first-of-type { border-top: 0; }
.dm small { display: block; font-size: 12.5px; color: var(--doux); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.dm b { display: block; font-size: 15.5px; line-height: 1.25; }
.dm .ico { color: var(--vert-f); }
/* liste « hors menu » éditable */
.li-ed { text-align: left; min-height: 48px; display: block; min-width: 0; }
.mini-ico { color: var(--orange-f); margin-right: 4px; vertical-align: -2px; }
/* toast avec action (annuler, mettre à jour) */
.toast.act { pointer-events: auto; padding-right: 8px; }
.toast-b { color: var(--jaune); font-weight: 900; min-height: 44px; padding: 0 12px; margin-left: 4px; }
/* ma semaine */
.wkbars { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 170px; margin-top: 12px; padding-bottom: 38px; }
.wkbars .goal { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--orange); margin-bottom: 38px; z-index: 1; }
.wb { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; }
.wb .col { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wb .col i { width: 70%; max-width: 30px; background: var(--vert); border-radius: 8px 8px 4px 4px; min-height: 3px; animation: grow .9s cubic-bezier(.2,.8,.2,1); transform-origin: bottom; }
.wb .col i.over { background: var(--orange); }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
.wb small { font-size: 11px; font-weight: 800; color: var(--doux); position: absolute; bottom: 18px; }
.wb { position: relative; }
.wb b { font-size: 12.5px; color: var(--doux); position: absolute; bottom: 0; text-transform: capitalize; }
.wb.auj b { color: var(--orange-f); }
/* autre chose : ajout rapide, scan */
.quick-b, .sc-inline { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 60px; border-radius: 16px; padding: 10px 14px; font-weight: 800; }
.quick-b { background: #fff; box-shadow: var(--ombre); }
.quick-b > .ico:first-child { color: var(--orange); }
.quick-b b { display: block; } .quick-b small { display: block; color: var(--doux); font-weight: 700; font-size: 13.5px; }
.sc-inline { background: var(--orange-c); color: #6B4100; justify-content: center; margin-bottom: 12px; min-height: 56px; }
.autre-btn.scan-btn2 { border-color: #FFD58A; color: #6B4100; }
.autre-btn.scan-btn2 .ico { background: var(--orange-c); }
/* nouveauté : carte, badge, icône animée */
.scan-new { position: relative; background: linear-gradient(140deg, #FFF6E0, #fff 65%); border: 2px solid #FFE3A8; }
.scan-new h3 { font-size: 19px; margin-bottom: 4px; }
.scan-new .sc-hide { position: absolute; top: 6px; right: 6px; background: transparent; color: var(--doux); }
.new-badge { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(135deg, var(--jaune), var(--orange)); color: #3D2600; font-weight: 900; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; animation: glow 2.6s ease-in-out infinite; }
.new-badge.sm { font-size: 11px; padding: 3px 9px; margin-bottom: 4px; animation: none; background: #fff; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,160,0,.0); } 50% { box-shadow: 0 0 0 6px rgba(255,160,0,.18); } }
.scan-anim { position: relative; width: 66px; height: 66px; border-radius: 20px; background: var(--orange-c); color: var(--orange-f); display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.scan-anim > i { position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: #E63E11; box-shadow: 0 0 8px rgba(230,62,17,.6); top: 20%; animation: laser 1.8s ease-in-out infinite alternate; }
.scan-anim.big { width: 120px; height: 120px; border-radius: 34px; margin: 6px auto 14px; }
@keyframes laser { to { top: 78%; } }
.scan-big { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(135deg, #FFB12E, var(--orange));
  color: #2B1A00; box-shadow: 0 10px 22px rgba(255,160,0,.3); margin-bottom: 14px; min-height: 92px; }
.scan-big .scan-anim { background: rgba(255,255,255,.6); color: #7A4A00; }
.scan-big b { display: block; font-size: 19px; font-weight: 900; line-height: 1.15; }
.scan-big small { display: block; font-size: 14px; font-weight: 700; margin-top: 3px; color: #3D2600; }
/* écran du scanner (plein écran) */
.scan { position: fixed; inset: 0; z-index: 55; background: var(--fond); overflow-y: auto; -webkit-overflow-scrolling: touch; animation: fade .2s ease-out; }
.scan-in { max-width: 560px; margin: 0 auto; padding: calc(var(--safe-t) + 10px) 16px calc(var(--safe-b) + 28px); }
.scan.cam .scan-in { padding-top: 0; }
.sc-top { display: flex; align-items: center; gap: 10px; padding: 4px 0 12px; }
.sc-top .ibtn { background: #fff; box-shadow: var(--ombre); }
.sc-top b { font-size: 19px; font-weight: 800; }
.sc-cam { position: relative; height: 58dvh; min-height: 300px; margin: 0 -16px; background: #0D1418; overflow: hidden; border-radius: 0 0 28px 28px; }
.sc-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-frame { position: absolute; left: 50%; top: 46%; width: 80%; max-width: 380px; aspect-ratio: 1.75; transform: translate(-50%, -50%); border-radius: 18px; border: 3px solid rgba(255,255,255,.95); box-shadow: 0 0 0 100vmax rgba(0,0,0,.42); }
.sc-frame .laser { position: absolute; left: 6%; right: 6%; height: 3px; border-radius: 3px; background: #FF5A2E; box-shadow: 0 0 12px #FF5A2E; top: 12%; animation: laser2 1.6s ease-in-out infinite alternate; }
@keyframes laser2 { to { top: 86%; } }
.sc-x { position: absolute; top: calc(var(--safe-t) + 12px); left: 12px; background: rgba(255,255,255,.92); }
.sc-hint { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.sc-hint b { display: block; font-size: 17px; } .sc-hint small { display: block; font-size: 14px; font-weight: 700; opacity: .92; }
.sc-man { background: #fff; border-radius: var(--r); box-shadow: var(--ombre); padding: 14px; margin-top: 14px; }
.sc-man label { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 15px; margin-bottom: 10px; color: var(--texte); }
.sc-man input { flex: 1; min-width: 0; min-height: 56px; border-radius: 14px; border: 2px solid var(--trait); padding: 0 14px; font-size: 21px; font-weight: 800; letter-spacing: .05em; background: #fff; }
.sc-man input:focus { border-color: var(--vert); outline: none; }
.sc-man .btn { padding: 12px 16px; }
.sc-err { color: #B3261E; font-weight: 700; font-size: 14px; margin-top: 8px; }
.sc-err:empty { display: none; }
.sc-state { text-align: center; padding: 18px 8px 4px; }
.sc-state h2 { font-size: 23px; }
.sc-state .big-ico { width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--orange-c); color: var(--orange-f); }
.sc-load .scan-anim { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.sc-steps p { font-size: 15px; } .sc-steps b { color: var(--texte); }
.sc-acts { display: grid; gap: 10px; margin-top: 16px; }
.sc-acts .btn-t { justify-self: center; }
.sc-photo { height: 210px; border-radius: 24px; background: #fff; box-shadow: var(--ombre); display: grid; place-items: center; color: #C5D2DC; position: relative; overflow: hidden; }
.sc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; background: #fff; }
.sc-prod h1 { font-size: 25px; margin: 16px 0 2px; }
.ns { display: inline-flex; align-items: flex-end; gap: 3px; margin-top: 12px; background: #fff; padding: 6px 8px 6px 10px; border-radius: 14px; box-shadow: var(--ombre); }
.ns-t { font-size: 10px; font-weight: 900; letter-spacing: .06em; color: var(--doux); margin-right: 6px; align-self: center; }
.ns i { width: 26px; height: 30px; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; border-radius: 7px; opacity: .4; font-size: 15px; }
.ns i.on { width: 38px; height: 44px; opacity: 1; font-size: 24px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.22); animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.ns-na { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--doux); background: #fff; padding: 6px 12px; border-radius: 999px; }
.sc-kc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-kc > div { background: #fff; border-radius: 18px; box-shadow: var(--ombre); padding: 14px 10px; text-align: center; }
.sc-kc b { display: block; font-size: 34px; font-weight: 900; color: var(--vert-ff); line-height: 1.05; }
.sc-kc span { font-size: 13px; font-weight: 700; color: var(--doux); }
.sc-kc .o b { color: var(--orange-f); } .sc-kc .na b { color: #B5C1CB; }
.sc-day { background: linear-gradient(135deg, var(--orange-c), #fff 70%); }
.sc-pct { width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(var(--orange) calc(var(--p) * 1%), #FFE0A6 0); display: grid; place-items: center; flex: 0 0 auto; position: relative; animation: pop .6s ease-out; }
.sc-pct::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.sc-pct b { position: relative; font-size: 22px; font-weight: 900; color: #7A4A00; } .sc-pct small { font-size: 13px; }
.sc-pct-t { display: block; font-size: 19px; font-weight: 900; }
.nutri b small { font-size: 12px; font-weight: 800; color: var(--doux); }
.sc-src { font-size: 12.5px; color: var(--doux); font-weight: 600; margin-top: 20px; text-align: center; line-height: 1.5; }
.sc-src a { color: var(--vert-ff); font-weight: 800; display: inline-block; padding: 10px 2px; }
.sc-item { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 18px; box-shadow: var(--ombre); padding: 8px; margin-bottom: 10px; }
.sc-open { display: flex; gap: 12px; align-items: center; flex: 1; text-align: left; min-width: 0; min-height: 60px; }
.sc-open b { display: block; font-size: 15.5px; line-height: 1.25; } .sc-open small { display: block; color: var(--doux); font-weight: 700; font-size: 13px; }
.sc-open .th { width: 56px; height: 56px; border-radius: 12px; background: var(--fond); display: grid; place-items: center; overflow: hidden; position: relative; color: #B5C1CB; flex: 0 0 auto; }
.sc-open .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sc-food .ico { color: var(--orange-f); }
.field label small { font-weight: 700; }


/* ================= CRISPi · «Le ricette di Giulia» (21-11-2026) ================= */
h1, .top h1, .onb h1, .r-body h1, .sky-in h1, .card h2, .sheet .hd h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.005em; }
.btn-p { background: var(--pomodoro2); color: #fff; box-shadow: 0 8px 18px rgba(181, 54, 31, .28); }
.btn-o { background: var(--pomodoro2); color: #fff; box-shadow: 0 8px 18px rgba(181, 54, 31, .28); }
.btn-t { color: var(--pomodoro2); }
.btn[disabled] { background: #D9CDBE; }
.nav { background: rgba(255, 253, 249, .96); }
.nav a { color: #85786E; }
.nav a.on { color: var(--pomodoro2); }
.nav a.on::before { background: var(--pomodoro); }
.step-k { color: var(--pomodoro2); }
.tm span { background: var(--vert-f); }
.tm span.f { background: var(--crema2); color: var(--texte); }
.tm button { background: var(--pomodoro2); color: #fff; }
.chip-o { background: var(--orange-c); color: #8F2A16; }
.chip-j { background: var(--jaune-c); color: #6B4A10; }
.alert { background: var(--jaune-c); color: #4F3A12; }
.alert .ico { color: #A86A12; }
.offline { background: var(--jaune-c); color: #4F3A12; }
.ibtn { background: var(--crema2); }
.autre-btn { border-color: #DCC9B2; color: var(--texte); background: var(--carte); }
.autre-btn .ico { background: var(--orange-c); color: var(--pomodoro2); }
.toast .ico { color: var(--jaune); }
.toast-b { color: #FFD9A0; }
:focus-visible { outline-color: var(--jaune); }
.ring .fg.over { stroke: var(--pomodoro); }
.ring .mid em.over { color: var(--pomodoro2); }
.wkbars .goal { border-top-color: var(--pomodoro); }
.wb .col i.over { background: var(--pomodoro); }
.wb.auj b { color: var(--pomodoro2); }
.sheet .hd::before { background: #D9CDBE; }
.sheet-bg { background: rgba(43, 34, 29, .45); }
/* cielo con i colori della landing */
.sky-matin { --s1: #F6E9D4; --s2: #FFFDF9; }
.sky-aprem { --s1: #F8D3B0; --s2: #FBF3E6; }
.sky-soir { --s1: #3A2A22; --s2: #6A3A2A; --ink: #FFFDF9; --ink2: #F6E9D4; }
.sky .sun { fill: #E9A23B; } .sky .rays rect { fill: #E9A23B; }
.sky .sun-set { fill: #D2452C; }
.sky .hill1 { fill: #7FB07F; } .sky .hill2 { fill: #3D7A4C; }
.sky .moon circle { fill: #F6E9D4; }
@media (prefers-color-scheme: dark) {
  .sky-matin { --s1: #5A3A2E; --s2: #8C5E4E; --ink: #fff; --ink2: #F6E9D4; }
  .sky-aprem { --s1: #6A3A2A; --s2: #9A5A3E; --ink: #fff; --ink2: #F6E9D4; }
}
/* cena di stasera */
.meal.cena .ph { background: linear-gradient(150deg, var(--crema2), #fff); color: var(--pomodoro); }
.meal.now { border-color: var(--crema2); }
.meal.now .ph { min-height: 190px; }
.meal.now .acts { justify-content: flex-end; }
.meal.done .ph::after { background: rgba(61, 122, 76, .22); }
.meal .qb { color: var(--vert-ff); background: var(--vert-cc); border-radius: 999px; padding: 0 14px; }
.now-tag { color: var(--pomodoro2); }
.add2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.add2 .autre-btn { margin: 0; min-height: 70px; flex-direction: column; gap: 4px; font-size: 15.5px; padding: 8px; text-align: center; line-height: 1.2; }
.ring-card .grow p { line-height: 1.35; }
.mini-ico { color: var(--pomodoro); }
/* modelli (icona del vetro) */
.pic.mdl { display: flex !important; gap: 4px; align-items: flex-end; justify-content: center; padding-bottom: 10px; background: var(--crema2) !important; }
.pic.mdl i { display: block; width: 18px; height: 22px; border-radius: 4px 4px 7px 7px; border: 2.5px solid var(--texte); border-top-width: 6px; background: rgba(255,255,255,.7); }
.pic.mdl i.xl { width: 24px; height: 26px; }
.pic.mdl.sm { width: 40px; height: 40px; border-radius: 12px; padding-bottom: 7px; flex: 0 0 auto; }
.pic.mdl.sm i { width: 14px; height: 17px; border-top-width: 5px; border-width: 2px; border-top-width: 5px; }
.opt.on { border-color: var(--pomodoro); background: var(--orange-c); }
.opt.on .tick { background: var(--pomodoro); border-color: var(--pomodoro); }
.seg button.on { background: var(--orange-c); border-color: var(--pomodoro); color: #8F2A16; }
.steps i.on { background: var(--pomodoro); }
/* ricette */
.cats { margin: 10px -16px 4px; padding: 2px 16px 10px; }
.cats button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; font-size: 15px; }
.cats button.on { background: var(--pomodoro2); border-color: var(--pomodoro2); color: #fff; }
.alt { color: inherit; text-decoration: none; }
.alt .ph { background: var(--crema2); color: var(--pomodoro); }
.alt .tag { margin-top: 4px; font-size: 12px; padding: 3px 9px; }
.alt > .ico:last-child { color: #B3A495; }
.r-hero { background: linear-gradient(150deg, var(--crema2), #fff); color: var(--pomodoro); }
.r-hero .heart { left: auto; right: 16px; color: #8B7E74; }
.r-hero .heart.on { color: var(--pomodoro); }
.r-hero .heart.on .ico { fill: var(--pomodoro); }
.cookbtn { width: 100%; text-align: left; margin-top: 12px; background: linear-gradient(135deg, var(--pomodoro2), var(--pomodoro)); color: #fff; }
.cookcard { border: 2px solid var(--crema2); background: linear-gradient(180deg, #FFF8EE, var(--carte) 40%); }
.cookcard .phase { padding: 12px 0; border-top: 1px solid var(--trait); }
.cookcard .phase:first-of-type { border-top: 0; }
.step .n { background: var(--crema2); color: var(--texte); }
.step .n.ora { width: auto; min-width: 52px; border-radius: 12px; padding: 0 8px; font-size: 14px; }
.ing-l .q { color: var(--pomodoro2); min-width: 92px; }
.tip { background: linear-gradient(135deg, var(--jaune-c), #fff); }
/* modalità cucina */
.cook { background: var(--carte); }
.cook .bar { background: var(--crema2); }
.cook .bar i { background: var(--pomodoro); }
.ck-mod { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--crema2); color: var(--texte); font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.ck-prog { font-family: var(--serif); font-size: clamp(30px, 8vw, 40px); }
.ck-prog small { display: block; font-family: "Figtree", sans-serif; font-size: 16px; color: var(--doux); font-weight: 700; }
.cook .txt p.mt { font-size: clamp(20px, 5.4vw, 28px); }
.timer-big { color: var(--pomodoro2); }
/* menù */
.menurow { color: inherit; text-decoration: none; }
.menurow .th { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; background: var(--crema2); color: var(--pomodoro); display: grid; place-items: center; flex: 0 0 auto; position: relative; }
.menurow .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menurow .dn { display: block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.menurow.auj { box-shadow: 0 0 0 3px var(--pomodoro), var(--ombre); }
.menurow.auj .dn { color: var(--pomodoro2); }
.menurow > .ico:last-child { color: #B3A495; }
.wk-intro summary { font-size: 15px; }
/* spesa */
.wk button.on { background: var(--pomodoro2); border-color: var(--pomodoro2); }
.wk button.b { border-style: dashed; }
.item .nm small.qt2 { display: block; font-size: 14px; color: var(--doux); font-weight: 700; }
.item.on .nm small.qt2 { text-decoration: line-through; color: #A99B8E; }
.item.on .nm { color: #A99B8E; }
.kv .pic { background: var(--crema2); color: var(--pomodoro2); }
.install { background: linear-gradient(135deg, #fff, var(--orange-c)); border-color: var(--crema2); }
.install .ico { color: var(--pomodoro2); }
.onb-hero { aspect-ratio: 5 / 5.2; }
.onb-hero img { object-position: center 20%; }
.foot-note { line-height: 1.45; }
@media (max-width: 370px) {
  .add2 .autre-btn { font-size: 14.5px; }
  .ing-l .q { min-width: 76px; }
}
.alt .ph { position: relative; }
.alt .ph img { position: absolute; inset: 0; }
.inst-hd { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.inst-hd img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--ombre); flex: 0 0 auto; }
.inst-hd b { font-family: var(--serif); font-size: 19px; }
.ishare { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #EAF2FF; color: #1A73E8; margin-top: 6px; }
