/* YouppyHealth: pezzi propri (il resto viene da app.css e office.css, come YouppyStudy) */
.info { width: 26px; height: 26px; flex: none; display: inline-grid; place-items: center; color: var(--tenue); border-radius: 50%; }
.info svg { width: 19px; height: 19px; }
.titoletto { font-family: "Baloo 2", system-ui, sans-serif; font-size: 19px; font-weight: 800; margin-top: 4px; }
.titolettoRiga { display: flex; align-items: center; gap: 8px; }
.titolettoRiga > :first-child { flex: 1; min-width: 0; }
.titolettoRiga h3 { font-size: 17px; }
.titolettoRiga .nota { font-size: 12px; }
.h3pic { font-size: 16px; margin-bottom: 10px; }
.azioniRiga { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.pillola { text-decoration: none; }
.sezioni.a-capo { flex-wrap: wrap; overflow: visible; }
.sezioni.centrata { justify-content: center; padding: 0 14px; }
.grigliaDue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grigliaDue .bottone { padding: 0 10px; font-size: 15px; min-width: 0; text-decoration: none; }
.lista { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.fonte { color: var(--tenue); font-size: 12px; margin-top: 8px; }
.fonte a { color: inherit; }
.testoPost { white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.avvisoRev { margin-top: 8px; font-size: 13px; color: var(--accento-forte); }

/* reel */
.reelRiga { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-top: -6px; }
.reelRiga::-webkit-scrollbar { display: none; }
.reelTessera { flex: none; width: 118px; height: 190px; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-align: left; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #000) 0%, var(--c) 100%); background-size: cover; background-position: center; box-shadow: var(--ombra); position: relative; background-color: var(--c); }
.reelTessera b { font-size: 13.5px; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.reelTessera small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; opacity: .9; }
.reelTessera small svg { width: 12px; height: 12px; }
.reelLogo { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; font-size: 12px; background: rgba(255,255,255,.92); color: #146c45; border-radius: 999px; padding: 1px 8px; align-self: flex-start; }
.reelTessera .reelLogo { position: absolute; top: 9px; left: 9px; }
.reelVista { position: fixed; inset: 0; z-index: 60; color: #fff; display: flex; flex-direction: column; gap: 14px; padding: calc(12px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, #000), var(--c)); background-size: cover; background-position: center; background-color: var(--c); max-width: 620px; margin: 0 auto; }
.reelBarre { display: flex; gap: 4px; position: relative; z-index: 2; }
.reelBarre i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.reelBarre i b { display: block; height: 100%; width: 0; background: #fff; }
.reelBarre i.fatto b { width: 100%; }
.reelBarre i.ora b { animation: reelAv 6.5s linear forwards; }
@keyframes reelAv { to { width: 100%; } }
.reelSu { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.reelSu .reelLogo { font-size: 15px; padding: 2px 12px; }
.reelSu .tondo { background: rgba(0,0,0,.35); color: #fff; box-shadow: none; }
.reelTitolo { font-family: "Baloo 2", system-ui, sans-serif; font-size: clamp(26px, 8vw, 34px); font-weight: 800; margin-top: auto; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.reelTesto { font-size: clamp(19px, 5.4vw, 23px); font-weight: 600; line-height: 1.4; text-shadow: 0 1px 8px rgba(0,0,0,.6); min-height: 5.6em; }
.reelGiu { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }
.reelAvviso, .reelFonte { font-size: 12px; opacity: .85; }
.reelFonte a { color: #fff; }
.reelGiu .pillola { align-self: flex-start; }
.reelZona { position: absolute; top: 90px; bottom: 170px; width: 40%; z-index: 1; }
.reelZona.sx { left: 0; } .reelZona.dx { right: 0; }

/* post */
.post { display: flex; flex-direction: column; gap: 8px; }
.post h3 { font-size: 17px; }
.postImg { height: 150px; margin: -16px -16px 4px; border-radius: 20px 20px 0 0; background-size: cover; background-position: center; }
.postTesta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.postTesta .cuore { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.marchio { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; color: var(--accento-forte); }
.avatar.piccolo { width: 32px; height: 32px; font-size: 15px; }

/* piante */
.grigliaPiante { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pianta { background: var(--carta); border-radius: 18px; box-shadow: var(--ombra); padding: 8px 8px 10px; text-align: left; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pianta b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pianta i { font-size: 12.5px; color: var(--tenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piantaFoto { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--campo) center / cover; color: var(--tenue); margin-bottom: 4px; }
.piantaFoto svg { width: 34px; height: 34px; }
.schedaFoto { aspect-ratio: 4 / 3; border-radius: 20px; background: var(--campo) center / cover; box-shadow: var(--ombra); }
.scient { font-size: 18px; font-weight: 700; display: block; margin-bottom: 4px; }
.barraRiga { display: grid; grid-template-columns: 96px 1fr 56px; align-items: center; gap: 8px; font-size: 13px; margin-top: 6px; }
.barraRiga i { height: 8px; border-radius: 4px; background: var(--campo); overflow: hidden; }
.barraRiga i b { display: block; height: 100%; background: var(--accento); }
.barraRiga small { color: var(--tenue); text-align: right; }

/* attività */
.statline.quattro .statbox { padding: 10px 4px; min-width: 0; }
.statline.quattro .n { font-size: 20px; }
.statline.quattro .e { font-size: 11px; }
.colonne { display: flex; gap: 8px; height: 110px; align-items: flex-end; margin-bottom: 8px; }
.col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.col i { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--accento) 45%, var(--campo)); }
.col.ok i { background: var(--accento); }
.col small { font-size: 11px; color: var(--tenue); }
.piano { padding: 0; overflow: hidden; }
.pianoTesta { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; }
.pianoTesta .cuore { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pianoTesta .cuore small { color: var(--tenue); font-size: 13px; }
.pianoTesta > svg { width: 20px; height: 20px; color: var(--tenue); transition: transform .2s; }
.pianoTesta[aria-expanded="true"] > svg { transform: rotate(90deg); }
.bollo { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--c); }
.bollo svg { width: 22px; height: 22px; }
.pianoCorpo { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.pianoGiorno { background: var(--campo); border-radius: 14px; padding: 10px 12px; }
.regWrap { gap: 10px; }
.regMappa { flex: 1; min-height: 200px; margin: 0 14px; border-radius: 20px; overflow: hidden; background: var(--campo); position: relative; }
.regMappa.piccola { flex: none; height: 260px; margin: 0; }
.regWrap .statline { margin: 0; }
.mazzo .bollo { color: #fff; }

/* mangiare sano */
.campoPic { display: flex; flex-direction: column; min-width: 0; }
.campoPic .campo { padding: 11px 12px; }
.risIndice { display: flex; flex-direction: column; gap: 14px; }
.voceIndice { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.voceIndice:last-child { border-bottom: 0; }
.voceIndice .cuore { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.voceIndice .cuore small { color: var(--tenue); font-size: 12.5px; }
.valore { font-weight: 800; font-size: 17px; white-space: nowrap; }
.valore.verde { color: var(--verde); } .valore.giallo { color: #c98a00; } .valore.rosso { color: var(--rosso); }
[data-tema="scuro"] .valore.giallo { color: #ffce3a; }
.indiceTop { display: flex; align-items: center; gap: 14px; }
.indiceTop > div:nth-child(2) { flex: 1; min-width: 0; }
.indiceTop h3 { font-size: 17px; margin-bottom: 4px; }
.cerchio { width: 70px; height: 70px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--carta) 76%, transparent 78%), conic-gradient(var(--accento) calc(var(--p) * 1%), var(--campo) 0); }
.cerchio b { font-size: 22px; font-weight: 800; }
.piatto { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; width: 180px; height: 180px; border-radius: 50%; overflow: hidden; margin: 4px auto 12px; font-size: 12px; font-weight: 700; text-align: center; }
.piatto div { display: grid; place-items: center; padding: 10px; color: #fff; line-height: 1.2; }
.piatto .quarto { padding: 0 22px 0 6px; font-size: 11.5px; }
.piatto .meta { grid-row: 1 / 3; } .piatto .v { background: #1a9d55; } .piatto .c { background: #e0a21e; } .piatto .pr { background: #d8603a; }

/* studi */
.studio { display: flex; flex-direction: column; gap: 8px; }
.prodotti { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.prodotto { display: flex; align-items: center; gap: 8px; background: var(--campo); border-radius: 14px; padding: 10px 12px; flex-wrap: wrap; }
.prodotto .cuore { flex: 1; min-width: 120px; display: flex; flex-direction: column; }
.prodotto .cuore small { color: var(--tenue); font-size: 12.5px; }
.prezzo { font-weight: 800; white-space: nowrap; }
.pillola.rx { background: color-mix(in srgb, var(--rosso) 14%, transparent); color: var(--rosso); }
.prodotto.edit { padding: 8px; flex-wrap: nowrap; }
.prodotto.edit .campo { padding: 10px; background: var(--carta); }
.prodotto.edit .campo:first-child { flex: 1; min-width: 0; }
.prodotto.edit .prezzoIn { width: 76px; flex: none; }
.rxBox { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--tenue); white-space: nowrap; }
.prodotto.edit .tondo { width: 36px; height: 36px; }
.prodotto.edit .tondo svg { width: 18px; height: 18px; }

/* carrello e ordini */
.quantita { display: flex; align-items: center; gap: 8px; }
.quantita .tondo { width: 34px; height: 34px; font-size: 20px; font-weight: 800; color: var(--testo); }
.quantita b { min-width: 18px; text-align: center; }
.totale { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px 0; font-size: 17px; }
.ordine { display: flex; flex-direction: column; gap: 6px; }
