/* ============================================================
   AULSS 7 — Nefrologia · Ricette personalizzate
   Palette calda editoriale: carta crema, verde salvia profondo
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root{
  --paper:        oklch(0.984 0.008 95);
  --paper-2:      oklch(0.965 0.013 95);
  --card:         oklch(0.998 0.004 95);
  --ink:          oklch(0.26 0.018 150);
  --ink-2:        oklch(0.46 0.02 150);
  --ink-3:        oklch(0.62 0.018 150);
  --line:         oklch(0.9 0.012 120);
  --line-2:       oklch(0.93 0.01 120);

  --brand:        oklch(0.46 0.07 158);   /* salvia profondo */
  --brand-2:      oklch(0.55 0.085 158);
  --brand-soft:   oklch(0.94 0.03 158);
  --brand-tint:   oklch(0.97 0.018 158);

  --ok:    oklch(0.6 0.11 158);
  --ok-bg: oklch(0.95 0.04 158);
  --near:  oklch(0.72 0.13 70);
  --near-bg: oklch(0.95 0.05 75);
  --over:  oklch(0.58 0.16 27);
  --over-bg: oklch(0.95 0.04 27);

  --shadow-sm: 0 1px 2px oklch(0.3 0.02 150 / .06), 0 1px 3px oklch(0.3 0.02 150 / .05);
  --shadow-md: 0 4px 14px oklch(0.3 0.02 150 / .08), 0 2px 6px oklch(0.3 0.02 150 / .06);
  --shadow-lg: 0 18px 50px oklch(0.25 0.03 150 / .18), 0 6px 18px oklch(0.25 0.03 150 / .1);
  --r: 14px;
  --r-sm: 9px;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
}

*{ box-sizing:border-box; }
html,body{ margin:0; height:100%; }
body{
  font-family:var(--sans);
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  font-size:15px;
  line-height:1.5;
}
button{ font-family:inherit; cursor:pointer; }
input{ font-family:inherit; }
::selection{ background:var(--brand-soft); }

#root{ height:100%; }
.app{ display:flex; height:100%; overflow:hidden; }

/* ——— SIDEBAR ——— */
.sidebar{
  width:288px; flex-shrink:0; background:var(--card); border-right:1px solid var(--line);
  display:flex; flex-direction:column; height:100%;
}
.brand{ padding:22px 22px 18px; display:flex; gap:12px; align-items:center; border-bottom:1px solid var(--line-2); }
.brand-mark{ width:38px; height:38px; border-radius:11px; background:var(--brand);
  color:white; display:grid; place-items:center; flex-shrink:0; box-shadow:var(--shadow-sm); }
.brand-name{ font-weight:700; font-size:14.5px; letter-spacing:-0.01em; line-height:1.15; }
.brand-name span{ display:block; font-weight:500; font-size:11.5px; color:var(--ink-3); letter-spacing:0.02em; }

.side-search{ margin:16px 16px 8px; position:relative; }
.side-search input{ width:100%; border:1px solid var(--line); background:var(--paper-2); border-radius:10px;
  padding:9px 12px 9px 34px; font-size:13.5px; color:var(--ink); outline:none; }
.side-search input:focus{ border-color:var(--brand-2); background:var(--card); }
.side-search svg{ position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--ink-3); }

.side-label{ font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--ink-3); padding:14px 22px 6px; }
.side-label-row{ display:flex; align-items:center; justify-content:space-between; padding-right:14px; }
.side-label-row .side-label{ padding-right:0; }
.side-new{ display:inline-flex; gap:5px; align-items:center; font-size:12px; font-weight:600; color:var(--brand);
  background:var(--brand-tint); border:1px solid var(--brand-soft); border-radius:8px; padding:5px 9px; margin-top:8px; }
.side-new:hover{ background:var(--brand-soft); }
.patient-list{ flex:1; overflow-y:auto; padding:0 12px 16px; }
.patient-item{ width:100%; text-align:left; border:none; background:none; border-radius:12px;
  padding:11px 12px; display:flex; gap:12px; align-items:center; margin-bottom:2px; position:relative; }
.patient-item:hover{ background:var(--paper-2); }
.patient-item.active{ background:var(--brand-tint); }
.patient-item.active::before{ content:""; position:absolute; left:0; top:11px; bottom:11px; width:3px;
  border-radius:3px; background:var(--brand); }
.avatar{ border-radius:50%; display:grid; place-items:center; font-weight:700; flex-shrink:0; font-family:var(--sans); }
.pi-main{ min-width:0; flex:1; }
.pi-name{ font-weight:600; font-size:14px; letter-spacing:-0.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pi-meta{ font-size:12px; color:var(--ink-3); display:flex; gap:6px; align-items:center; }
.pi-flag{ width:7px; height:7px; border-radius:50%; flex-shrink:0; }

.side-foot{ padding:14px 18px; border-top:1px solid var(--line-2); display:flex; align-items:center; gap:11px; }
.side-foot .avatar{ background:oklch(0.9 0.02 250); color:oklch(0.42 0.06 250); }
.side-foot-main{ flex:1; min-width:0; }
.side-foot-name{ font-size:13px; font-weight:600; }
.side-foot-role{ font-size:11.5px; color:var(--ink-3); }

/* ——— MAIN ——— */
.main{ flex:1; display:flex; flex-direction:column; height:100%; overflow:hidden; }
.topbar{ padding:20px 32px 0; }
.crumbs{ font-size:12.5px; color:var(--ink-3); display:flex; gap:7px; align-items:center; }
.patient-hero{ display:flex; align-items:flex-start; gap:18px; padding:12px 0 18px; }
.hero-main{ min-width:0; display:flex; flex-direction:column; gap:9px; padding-top:2px; }
.hero-name-row{ display:flex; align-items:center; gap:10px; }
.hero-edit{ width:30px; height:30px; border-radius:8px; border:1px solid var(--line); background:var(--card);
  color:var(--ink-3); display:grid; place-items:center; flex-shrink:0; }
.hero-edit:hover{ border-color:var(--brand-2); color:var(--brand); background:var(--brand-tint); }
.hero-name{ font-family:var(--serif); font-size:30px; font-weight:500; letter-spacing:-0.015em; line-height:1.1; white-space:nowrap; }
.hero-sub{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.hero-spacer{ flex:1; }

.tag{ font-size:12px; font-weight:600; padding:3px 9px; border-radius:7px; letter-spacing:0.01em; }
.tag-neutral{ background:var(--paper-2); color:var(--ink-2); }
.tag-brand{ background:var(--brand-soft); color:var(--brand); text-transform:capitalize; }
.tag-over{ background:var(--over-bg); color:var(--over); }
.tag-near{ background:var(--near-bg); color:oklch(0.5 0.1 60); }

/* tabs */
.tabbar{ display:flex; gap:2px; padding:0 32px; border-bottom:1px solid var(--line); position:relative; }
.tab{ border:none; background:none; padding:12px 16px; font-size:14px; font-weight:600; color:var(--ink-3);
  position:relative; display:flex; gap:8px; align-items:center; }
.tab:hover{ color:var(--ink-2); }
.tab.active{ color:var(--brand); }
.tab.active::after{ content:""; position:absolute; left:12px; right:12px; bottom:-1px; height:2.5px;
  background:var(--brand); border-radius:3px 3px 0 0; }

.content{ flex:1; overflow-y:auto; padding:24px 32px 40px; }

/* ——— PANEL ——— */
.panel{ max-width:1180px; }
.panel-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:20px; }
.panel-title{ font-family:var(--serif); font-size:21px; font-weight:600; margin:0; letter-spacing:-0.01em; }
.panel-sub{ font-size:13.5px; color:var(--ink-3); margin:4px 0 0; }
.inline-flag{ color:var(--over); font-weight:600; display:inline-flex; gap:4px; align-items:center; vertical-align:-2px; }
.inline-ok{ color:var(--ok); font-weight:600; display:inline-flex; gap:4px; align-items:center; vertical-align:-2px; }

/* buttons */
.btn{ border-radius:10px; padding:9px 15px; font-size:13.5px; font-weight:600; border:1px solid transparent;
  display:inline-flex; gap:7px; align-items:center; transition:.12s; }
.btn-primary{ background:var(--brand); color:white; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--brand-2); }
.btn-ghost{ background:var(--card); border-color:var(--line); color:var(--ink-2); }
.btn-ghost:hover{ border-color:var(--ink-3); color:var(--ink); }
.btn-disabled,.btn:disabled{ opacity:.45; pointer-events:none; }
.btn-danger-ghost{ background:none; border:1px solid var(--over-bg); color:var(--over); }
.btn-danger-ghost:hover{ background:var(--over-bg); }
.btn-row{ display:flex; gap:9px; }
.icon-btn{ border:none; background:none; color:var(--ink-3); width:36px; height:36px; border-radius:9px;
  display:grid; place-items:center; }
.icon-btn:hover{ background:var(--paper-2); color:var(--ink); }
.icon-btn.sm{ width:28px; height:28px; }

/* ——— BLOOD GRID ——— */
.blood-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(178px,1fr)); gap:12px; }
.blood-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:14px 15px;
  position:relative; box-shadow:var(--shadow-sm); }
.blood-card.s-over{ border-color:oklch(0.85 0.08 27); background:linear-gradient(var(--card),var(--over-bg)); }
.blood-card.s-low{ border-color:oklch(0.85 0.08 60); }
.blood-top{ display:flex; justify-content:space-between; align-items:center; }
.blood-label{ font-size:12.5px; font-weight:600; color:var(--ink-2); }
.blood-value{ font-family:var(--serif); font-size:27px; font-weight:500; margin-top:6px; letter-spacing:-0.01em; }
.blood-unit{ font-family:var(--sans); font-size:12px; color:var(--ink-3); font-weight:500; margin-left:4px; }
.blood-range{ font-size:11.5px; color:var(--ink-3); margin-top:3px; }
.blood-input{ width:100%; border:1px solid var(--brand-2); border-radius:8px; padding:6px 9px; margin-top:6px;
  font-size:18px; font-family:var(--serif); color:var(--ink); outline:none; }

.dot{ width:9px; height:9px; border-radius:50%; display:inline-block; flex-shrink:0; }
.dot-ok{ background:var(--ok); } .dot-near{ background:var(--near); } .dot-over{ background:var(--over); }
.dot-na{ background:var(--ink-3); opacity:.4; }

/* ——— LIMITS ——— */
.limits-list{ background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  box-shadow:var(--shadow-sm); overflow:hidden; max-width:1180px; }
.limit-row{ display:flex; align-items:center; gap:16px; padding:16px 20px; border-bottom:1px solid var(--line-2); }
.limit-row:last-child{ border-bottom:none; }
.limit-ico{ width:38px; height:38px; border-radius:10px; background:var(--brand-tint); color:var(--brand);
  display:grid; place-items:center; flex-shrink:0; }
.limit-main{ flex:1; min-width:0; }
.limit-top{ display:flex; justify-content:space-between; margin-bottom:9px; }
.limit-label{ font-weight:600; font-size:14.5px; }
.limit-hint{ font-size:12px; color:var(--ink-3); }
.limit-val{ display:flex; align-items:baseline; gap:5px; flex-shrink:0; }
.limit-num{ width:74px; border:1px solid var(--line); border-radius:8px; padding:7px 9px; text-align:right;
  font-size:15px; font-weight:600; color:var(--ink); outline:none; font-variant-numeric:tabular-nums; }
.limit-num:focus{ border-color:var(--brand-2); }
.limit-unit{ font-size:12.5px; color:var(--ink-3); width:30px; }

.slider{ -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:5px;
  background:linear-gradient(var(--brand) 0 0) 0/var(--pct,40%) 100% no-repeat, var(--line); outline:none; }
.slider::-webkit-slider-thumb{ -webkit-appearance:none; width:18px; height:18px; border-radius:50%;
  background:var(--card); border:2px solid var(--brand); box-shadow:var(--shadow-sm); cursor:grab; }
.slider::-moz-range-thumb{ width:18px; height:18px; border-radius:50%; background:var(--card);
  border:2px solid var(--brand); cursor:grab; }

.prefs-box{ margin-top:18px; max-width:1180px; background:var(--brand-tint); border:1px solid var(--brand-soft);
  border-radius:var(--r); padding:16px 18px; }
.prefs-head{ font-weight:600; font-size:13px; color:var(--brand); display:flex; gap:7px; align-items:center;
  text-transform:uppercase; letter-spacing:0.04em; }
.prefs-body{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:11px; }
.prefs-note{ width:100%; margin:6px 0 0; font-size:13.5px; color:var(--ink-2); }

/* ——— WEEK ——— */
.week-wrap{ position:relative; padding-bottom:140px; }
.week-main{ min-width:0; }
.week-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }

.cal-grid{ display:grid; grid-template-columns:118px repeat(3,1fr); gap:9px; align-items:start; }
.cal-corner{}
.cal-col-head{ font-size:12px; font-weight:600; color:var(--ink-2); padding:4px 6px 8px;
  display:flex; gap:6px; align-items:center; text-transform:uppercase; letter-spacing:0.03em; }
.cal-col-head svg{ color:var(--brand); }
.cal-day-head{ padding:8px 4px; }
.cal-day-name{ font-family:var(--serif); font-size:16px; font-weight:600; display:block; letter-spacing:-0.01em; }
.cal-day-kcal{ font-size:11.5px; color:var(--ink-3); }
.cal-cell{ min-width:0; }

.meal-card{ width:100%; text-align:left; background:var(--card); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:11px 12px; display:flex; flex-direction:column; gap:7px; box-shadow:var(--shadow-sm); transition:.13s; }
.meal-card:hover{ border-color:var(--brand-2); box-shadow:var(--shadow-md); transform:translateY(-1px); }
.meal-card.mc-over{ border-left:3px solid var(--over); }
.meal-card.mc-near{ border-left:3px solid var(--near); }
.meal-card.mc-ok{ border-left:3px solid var(--ok); }
.meal-card-top{ display:flex; justify-content:space-between; align-items:center; }
.meal-tag{ font-size:10.5px; font-weight:600; color:var(--ink-3); text-transform:uppercase; letter-spacing:0.04em;
  display:flex; gap:5px; align-items:center; }
.meal-tag svg{ color:var(--brand-2); }
.meal-name{ font-size:13.5px; font-weight:600; line-height:1.25; letter-spacing:-0.01em; text-wrap:pretty; }
.meal-ings{ font-size:11.5px; color:var(--ink-3); line-height:1.35; }
.meal-micro{ display:flex; gap:9px; flex-wrap:wrap; margin-top:2px; }
.meal-micro span{ font-size:11px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.meal-micro i{ font-style:normal; color:var(--ink-3); font-weight:600; margin-right:2px; }
.meal-dense .meal-name{ font-size:13px; }

/* list mode */
.cal-list{ display:flex; flex-direction:column; gap:10px; }
.cal-day-row{ display:flex; gap:16px; background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  padding:14px 16px; box-shadow:var(--shadow-sm); }
.cal-day-side{ width:128px; flex-shrink:0; }
.cal-day-mini{ display:flex; flex-direction:column; gap:2px; margin-top:8px; }
.cal-day-mini span{ font-size:11.5px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.cal-day-mini i{ font-style:normal; color:var(--ink-3); font-weight:600; margin-right:5px; display:inline-block; width:18px; }
.cal-day-meals{ flex:1; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }

/* ——— AI DOCK (fisso in basso) ——— */
.ai-dock{ position:fixed; left:288px; right:0; bottom:0; z-index:30;
  background:oklch(0.99 0.005 95 / 0.86); backdrop-filter:blur(14px) saturate(1.3);
  border-top:1px solid var(--line); box-shadow:0 -6px 24px oklch(0.3 0.02 150 / .07); }
.ai-dock-chat{ max-width:1180px; margin:0 auto; padding:16px 32px 4px; max-height:300px; overflow-y:auto;
  display:flex; flex-direction:column; gap:10px; }
.ai-dock-bar{ max-width:1180px; margin:0 auto; padding:14px 32px 16px; display:flex; gap:14px; align-items:center; }
.ai-orb.dock-orb{ width:40px; height:40px; border-radius:12px; flex-shrink:0; }
.ai-orb{ border-radius:12px; background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:white; display:grid; place-items:center; box-shadow:var(--shadow-sm); }
.ai-dock-center{ flex:1; min-width:0; display:flex; flex-direction:column; gap:9px; }
.ai-dock-quick{ display:flex; gap:7px; overflow-x:auto; scrollbar-width:none; padding-bottom:1px; }
.ai-dock-quick::-webkit-scrollbar{ display:none; }
.ai-dock-input{ display:flex; gap:9px; }
.ai-dock-input input{ flex:1; border:1px solid var(--line); border-radius:11px; padding:11px 15px; font-size:14px;
  outline:none; background:var(--card); color:var(--ink); }
.ai-dock-input input:focus{ border-color:var(--brand-2); box-shadow:0 0 0 3px var(--brand-soft); }
.ai-dock-toggle{ width:40px; height:40px; flex-shrink:0; border-radius:11px; border:1px solid var(--line);
  background:var(--card); color:var(--ink-2); display:grid; place-items:center; align-self:flex-end; }
.ai-dock-toggle:hover{ border-color:var(--brand-2); color:var(--brand); }

.quick-chip{ font-size:12px; font-weight:500; padding:7px 12px; border-radius:9px; border:1px solid var(--line);
  background:var(--card); color:var(--ink-2); white-space:nowrap; flex-shrink:0; }
.quick-chip:hover{ border-color:var(--brand-2); color:var(--brand); background:var(--brand-tint); }
.ai-send{ width:44px; flex-shrink:0; border:none; border-radius:11px; background:var(--brand); color:white; display:grid; place-items:center; }
.ai-send:disabled{ opacity:.4; }

.bubble{ padding:10px 14px; border-radius:14px; font-size:13.5px; line-height:1.45; max-width:560px; }
.bubble.user{ align-self:flex-end; background:var(--brand); color:white; border-bottom-right-radius:5px; }
.bubble.ai{ align-self:flex-start; background:var(--paper-2); color:var(--ink); border:1px solid var(--line-2); border-bottom-left-radius:5px; }
.typing{ display:flex; gap:4px; } .typing i{ width:6px; height:6px; border-radius:50%; background:var(--ink-3);
  animation:blink 1.2s infinite; } .typing i:nth-child(2){ animation-delay:.2s; } .typing i:nth-child(3){ animation-delay:.4s; }
@keyframes blink{ 0%,60%,100%{ opacity:.25; } 30%{ opacity:1; } }

/* ——— ESAMI / PRELIEVI ——— */
.esami-list{ display:flex; flex-direction:column; gap:10px; max-width:1180px; }
.esame{ background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow-sm);
  overflow:hidden; transition:.15s; }
.esame-open{ border-color:var(--brand-2); box-shadow:var(--shadow-md); }
.esame-row{ width:100%; border:none; background:none; display:flex; align-items:center; gap:18px; padding:14px 18px; text-align:left; }
.esame-row:hover{ background:var(--paper-2); }
.esame-date{ display:flex; gap:8px; align-items:center; font-weight:600; font-size:14px; width:135px; flex-shrink:0; }
.esame-date svg{ color:var(--brand-2); }
.esame-preview{ flex:1; display:flex; gap:16px; flex-wrap:wrap; min-width:0; }
.prev-chip{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--ink); font-variant-numeric:tabular-nums; }
.prev-chip i{ font-style:normal; color:var(--ink-3); font-weight:600; }
.prev-chip u{ text-decoration:none; color:var(--ink-3); font-size:11px; margin-left:1px; }
.esame-end{ display:flex; gap:12px; align-items:center; flex-shrink:0; }
.esame-flag{ display:inline-flex; gap:3px; align-items:center; font-size:12.5px; font-weight:700; color:var(--over);
  background:var(--over-bg); padding:3px 8px; border-radius:7px; }
.esame-okflag{ color:var(--ok); display:grid; place-items:center; width:24px; height:24px; background:var(--ok-bg); border-radius:7px; }
.esame-chevron{ color:var(--ink-3); display:grid; place-items:center; transition:transform .2s; }
.esame-chevron.up{ transform:rotate(180deg); }
.esame-detail{ padding:4px 18px 18px; border-top:1px solid var(--line-2); }
.esame-toolbar{ display:flex; justify-content:space-between; align-items:center; padding:14px 0 16px; gap:12px; flex-wrap:wrap; }
.esame-editing{ font-size:13px; font-weight:600; color:var(--brand); display:inline-flex; gap:6px; align-items:center; }
.esame-cnt{ font-size:13px; }
.btn.sm{ padding:7px 12px; font-size:13px; }

.empty-state{ max-width:1180px; border:1.5px dashed var(--line); border-radius:var(--r); padding:46px; text-align:center;
  color:var(--ink-3); display:flex; flex-direction:column; align-items:center; gap:14px; }
.empty-orb{ width:54px; height:54px; border-radius:16px; background:var(--brand-tint); color:var(--brand); display:grid; place-items:center; }
.empty-state p{ margin:0; font-size:14.5px; }

/* ——— FORM (modale paziente) ——— */
.modal-narrow{ width:min(560px,100%); }
.modal-body.single{ display:block; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field-wide{ grid-column:1 / -1; }
.field-label{ font-size:12.5px; font-weight:600; color:var(--ink-2); }
.field-opt{ font-weight:500; color:var(--ink-3); }
.field-input{ border:1px solid var(--line); border-radius:9px; padding:9px 12px; font-size:14px; color:var(--ink);
  outline:none; background:var(--card); font-family:inherit; }
.field-input:focus{ border-color:var(--brand-2); box-shadow:0 0 0 3px var(--brand-soft); }
.field-textarea{ resize:vertical; min-height:64px; line-height:1.45; }
.seg{ display:flex; gap:4px; background:var(--paper-2); border:1px solid var(--line); border-radius:9px; padding:3px; }
.seg-btn{ flex:1; border:none; background:none; border-radius:6px; padding:7px; font-size:13px; font-weight:600; color:var(--ink-3); }
.seg-btn.on{ background:var(--card); color:var(--brand); box-shadow:var(--shadow-sm); }
.form-hint{ display:flex; gap:7px; align-items:flex-start; font-size:12.5px; color:var(--ink-3); margin:16px 0 0;
  background:var(--brand-tint); border-radius:10px; padding:11px 13px; }
.form-hint svg{ flex-shrink:0; margin-top:1px; color:var(--brand); }

/* ——— MODAL ——— */
.modal-scrim{ position:fixed; inset:0; background:oklch(0.25 0.02 150 / .42); backdrop-filter:blur(3px);
  display:grid; place-items:center; z-index:50; padding:24px; animation:fade .15s; }
@keyframes fade{ from{ opacity:0; } }
.modal{ width:min(980px,100%); max-height:90vh; background:var(--paper); border-radius:18px; box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column; overflow:hidden; animation:pop .18s cubic-bezier(.2,.8,.3,1); }
@keyframes pop{ from{ transform:translateY(12px) scale(.98); opacity:0; } }
.modal-head{ display:flex; justify-content:space-between; align-items:flex-start; padding:20px 22px 16px;
  border-bottom:1px solid var(--line); }
.modal-eyebrow{ font-size:11.5px; font-weight:600; color:var(--brand); text-transform:uppercase; letter-spacing:0.05em; }
.modal-title-text{ font-family:var(--serif); font-size:23px; font-weight:600; color:var(--ink);
  margin:4px 0 0; letter-spacing:-0.01em; line-height:1.15; }
.modal-body{ flex:1; overflow-y:auto; padding:18px 22px; display:grid; grid-template-columns:1fr 250px; gap:22px; }
.modal-foot{ display:flex; justify-content:space-between; padding:14px 22px; border-top:1px solid var(--line);
  background:var(--card); }

.ing-section{ min-width:0; }
.ing-head-row{ display:grid; grid-template-columns:1fr 84px 104px 92px 64px; gap:8px; font-size:11px; font-weight:600;
  color:var(--ink-3); text-transform:uppercase; letter-spacing:0.04em; padding:0 4px 8px; }
.ing-row{ display:grid; grid-template-columns:1fr 84px 104px 92px 64px; gap:8px; align-items:center; padding:9px 4px;
  border-top:1px solid var(--line-2); transition:.2s; }
.ing-busy{ opacity:.5; }
.ing-name{ display:flex; gap:10px; align-items:center; min-width:0; }
.ing-cat-dot{ width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.ing-title{ font-size:13.5px; font-weight:600; letter-spacing:-0.01em; }
.ing-cat{ font-size:11px; color:var(--ink-3); }
.ing-qty{ display:flex; gap:4px; align-items:center; }
.ing-qty input{ width:56px; border:1px solid var(--line); border-radius:7px; padding:6px 7px; font-size:13px;
  text-align:right; outline:none; font-variant-numeric:tabular-nums; }
.ing-qty input:focus{ border-color:var(--brand-2); }
.ing-qty span{ font-size:12px; color:var(--ink-3); }
.ing-micro{ font-size:12px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.ing-micro b{ font-weight:600; }
.ing-actions{ display:flex; gap:4px; justify-content:flex-end; }
.mini-btn{ width:30px; height:30px; border-radius:8px; border:1px solid var(--line); background:var(--card);
  color:var(--brand); display:grid; place-items:center; }
.mini-btn:hover{ background:var(--brand-tint); border-color:var(--brand-2); }
.mini-danger{ color:var(--over); }
.mini-danger:hover{ background:var(--over-bg); border-color:oklch(0.8 0.1 27); }
.spin{ display:grid; animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.add-row-btn{ width:100%; margin-top:8px; border:1.5px dashed var(--line); background:none; border-radius:10px;
  padding:10px; font-size:13px; font-weight:600; color:var(--ink-3); display:flex; gap:7px; align-items:center; justify-content:center; }
.add-row-btn:hover{ border-color:var(--brand-2); color:var(--brand); background:var(--brand-tint); }
.add-pop{ margin-top:10px; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--card); }
.add-search{ display:flex; gap:8px; align-items:center; padding:10px 12px; border-bottom:1px solid var(--line-2); color:var(--ink-3); }
.add-search input{ flex:1; border:none; outline:none; font-size:13.5px; background:none; color:var(--ink); }
.add-results{ max-height:230px; overflow-y:auto; }
.add-item{ width:100%; display:grid; grid-template-columns:auto 1fr auto auto; gap:10px; align-items:center;
  padding:9px 12px; border:none; background:none; text-align:left; border-top:1px solid var(--line-2); }
.add-item:hover{ background:var(--brand-tint); }
.add-item-name{ font-size:13px; font-weight:600; }
.add-item-cat{ font-size:11px; color:var(--ink-3); }
.add-item-micro{ font-size:11px; color:var(--ink-3); font-variant-numeric:tabular-nums; }
.add-empty{ padding:16px; text-align:center; color:var(--ink-3); font-size:13px; }

.ing-totals{ background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:16px; align-self:start;
  position:sticky; top:0; }
.totals-title{ font-size:12px; font-weight:600; color:var(--ink-2); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:14px; }
.totals-title span{ display:block; font-weight:500; text-transform:none; color:var(--ink-3); font-size:11px; letter-spacing:0; }
.totals-kcal{ display:flex; justify-content:space-between; align-items:baseline; padding-top:12px; margin-top:6px;
  border-top:1px solid var(--line-2); font-size:13px; color:var(--ink-2); }
.totals-kcal b{ font-family:var(--serif); font-size:18px; color:var(--ink); }
.totals-note{ font-size:11px; color:var(--ink-3); margin:12px 0 0; line-height:1.45; display:flex; gap:5px; }
.totals-note svg{ flex-shrink:0; margin-top:1px; }

/* nutrient bars */
.nbar{ margin-bottom:13px; }
.nbar-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:5px; }
.nbar-label{ font-size:12.5px; font-weight:600; color:var(--ink-2); }
.nbar-val{ font-size:12.5px; font-weight:700; font-variant-numeric:tabular-nums; }
.nbar-val.v-ok{ color:var(--ok); } .nbar-val.v-near{ color:oklch(0.55 0.12 60); } .nbar-val.v-over{ color:var(--over); }
.nbar-unit{ font-weight:500; color:var(--ink-3); }
.nbar-track{ position:relative; height:7px; border-radius:5px; background:var(--line); overflow:hidden; }
.nbar-fill{ height:100%; border-radius:5px; transition:width .3s; }
.nbar-fill.f-ok{ background:var(--ok); } .nbar-fill.f-near{ background:var(--near); } .nbar-fill.f-over{ background:var(--over); }

/* tweak: dettaglio card compatto */
.app[data-detail="compact"] .cal-list .meal-ings{ display:none; }
.app[data-detail="compact"] .cal-list .meal-card{ padding:9px 11px; }
.app[data-detail="compact"] .meal-micro span:nth-child(4){ display:none; }

/* mobile/responsive */
@media (max-width:1080px){
  .modal-body{ grid-template-columns:1fr; }
}
@media (max-width:720px){
  .sidebar{ display:none; }
  .ai-dock{ left:0; }
  .ai-dock-chat, .ai-dock-bar{ padding-left:18px; padding-right:18px; }
  .cal-grid{ grid-template-columns:1fr; }
  .cal-grid .cal-col-head, .cal-corner{ display:none; }
  .cal-day-meals{ grid-template-columns:1fr; }
  .cal-day-row{ flex-direction:column; }
  .content{ padding:18px; } .topbar{ padding:16px 18px 0; }
}

/* ——— NAV LATERALE (Pazienti / Ricettario / Alimenti) ——— */
.side-nav{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; padding:12px 16px 0; }
.side-nav button{ display:flex; flex-direction:column; gap:4px; align-items:center; justify-content:center;
  min-width:0; border:1px solid var(--line); background:var(--card); color:var(--ink-2); border-radius:10px;
  padding:8px 4px 7px; font-size:11.5px; font-weight:600; line-height:1; white-space:nowrap; }
.side-nav button:hover{ border-color:var(--ink-3); color:var(--ink); }
.side-nav button.on{ background:var(--brand-tint); border-color:var(--brand-soft); color:var(--brand); }

/* ——— RICETTARIO ——— */
.recipes-search{ margin:0; width:220px; }
.recipe-list{ display:flex; flex-direction:column; gap:8px; max-width:1180px; }
.recipe-group{ font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--ink-3); padding:14px 2px 2px; }
.recipe-row{ width:100%; text-align:left; display:flex; align-items:center; gap:16px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  box-shadow:var(--shadow-sm); padding:14px 18px; transition:.12s; color:var(--ink); }
.recipe-row:hover{ border-color:var(--brand-2); box-shadow:var(--shadow-md); }
.recipe-row-main{ flex:1; min-width:0; }
.recipe-row-name{ font-weight:600; font-size:15px; letter-spacing:-0.01em; }
.recipe-row-ings{ font-size:12.5px; color:var(--ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recipe-row-micro{ display:flex; gap:14px; font-size:12.5px; color:var(--ink-2); flex-shrink:0; }
.recipe-row-micro i{ font-style:normal; color:var(--ink-3); margin-right:3px; font-size:11px; }
.recipe-tot-list{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.recipe-tot-row{ display:flex; justify-content:space-between; font-size:13.5px; color:var(--ink-2);
  border-bottom:1px solid var(--line-2); padding-bottom:7px; }
.recipe-tot-row b{ color:var(--ink); }

/* ——— BADGE FONTE RICETTA (piano settimanale) ——— */
.src-tag{ font-size:9.5px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase;
  padding:2px 7px; border-radius:6px; margin-left:auto; margin-right:6px; flex-shrink:0; }
.src-rec{ background:var(--brand-soft); color:var(--brand); }
.src-gen{ background:var(--paper-2); color:var(--ink-3); }

/* ——— PAGINA ALIMENTI ——— */
.foods-cat-filter{ width:190px; padding:9px 12px; border:1px solid var(--line); border-radius:10px;
  background:var(--paper-2); font-size:13.5px; color:var(--ink); outline:none; }
.recipe-row > .ing-cat-dot{ flex-shrink:0; }
.nutri-section-label{ font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--ink-3); margin:18px 0 10px; padding-top:14px; border-top:1px solid var(--line-2); }
.nutri-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px 14px; }
.nutri-grid .field-label{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:700px){ .nutri-grid{ grid-template-columns:1fr 1fr; } }

/* ——— COTTURE ——— */
.ing-cott{ width:100%; border:1px solid var(--line); border-radius:7px; padding:6px 5px; font-size:12.5px;
  color:var(--ink); background:var(--card); outline:none; font-family:inherit; }
.ing-cott:focus{ border-color:var(--brand-2); }
.ricetta-cottura{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.ricetta-cottura .ing-cott{ width:auto; min-width:150px; }
.meal-cottura{ font-size:11px; color:var(--ink-3); font-style:italic; margin-top:1px; }
.recipe-row-cott{ font-weight:500; font-size:13px; color:var(--ink-3); font-style:italic; }

/* ——— PASSAGGI DI PREPARAZIONE ——— */
.proc-section{ display:flex; flex-direction:column; gap:7px; margin-top:16px; padding-top:14px;
  border-top:1px solid var(--line-2); }
.proc-text{ min-height:96px; font-size:13.5px; line-height:1.5; }
.proc-regen{ align-self:flex-start; width:auto; display:inline-flex; gap:6px; align-items:center;
  padding:5px 10px; font-size:12px; font-weight:600; color:var(--brand); }

/* ——— PREFERENZE EDITABILI (tab limiti) ——— */
.prefs-edit{ display:flex; flex-direction:column; gap:14px; margin-top:12px; }
.excl-chips{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.excl-chip{ display:inline-flex; gap:6px; align-items:center; }
.excl-chip button{ border:none; background:none; color:inherit; padding:0; display:grid; place-items:center; cursor:pointer; opacity:.7; }
.excl-chip button:hover{ opacity:1; }

/* ——— MENU PROFILO (footer sidebar) ——— */
.side-foot-wrap{ position:relative; }
.side-foot-btn{ width:100%; border:none; background:none; text-align:left; cursor:pointer; }
.side-foot-btn:hover{ background:var(--paper-2); }
.menu-scrim{ position:fixed; inset:0; z-index:40; }
.side-menu{ position:absolute; left:12px; right:12px; bottom:calc(100% + 6px); z-index:41;
  background:var(--card); border:1px solid var(--line); border-radius:12px;
  box-shadow:var(--shadow-md); padding:6px; }
.side-menu button{ width:100%; display:flex; gap:9px; align-items:center; border:none; background:none;
  padding:9px 10px; border-radius:8px; font-size:13.5px; font-weight:600; color:var(--ink-2); text-align:left; }
.side-menu button:hover{ background:var(--paper-2); color:var(--ink); }
.side-menu button svg{ color:var(--ink-3); }

/* ——— STATO GIORNALIERO (vs limiti del paziente) ——— */
.cal-day-kcal .dot{ margin-right:4px; vertical-align:0; }
.dv-ok{ color:var(--ok); }
.dv-near{ color:oklch(0.55 0.12 70); font-weight:600; }
.dv-over{ color:var(--over); font-weight:600; }

/* ——— RIEPILOGO PASTO NEL MODALE (giornata vs limiti) ——— */
.totals-meal-note{ font-size:12px; color:var(--ink-2); margin-top:10px; padding-top:8px;
  border-top:1px solid var(--line-2); font-variant-numeric:tabular-nums; }

/* ============================================================
   LOGIN + AREA PAZIENTE (autenticazione)
   ============================================================ */
.login-scr{ min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--paper); padding:24px; }
.login-card{ width:100%; max-width:380px; background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  box-shadow:var(--shadow-lg); padding:30px 28px; display:flex; flex-direction:column; gap:14px; }
.login-brand{ display:flex; flex-direction:column; align-items:center; gap:6px; margin-bottom:6px; }
.login-brand .brand-mark{ width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:var(--brand); color:#fff; margin-bottom:4px; }
.login-title{ font-family:var(--serif); font-size:26px; font-weight:600; color:var(--ink); }
.login-sub{ font-size:13px; color:var(--ink-3); }
.login-btn{ width:100%; justify-content:center; margin-top:4px; }
.login-err{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--over);
  background:var(--over-bg); border-radius:9px; padding:8px 10px; }
.login-hint{ font-size:12px; color:var(--ink-3); text-align:center; margin-top:2px; }

.pz-app{ min-height:100vh; background:var(--paper); color:var(--ink); font-family:var(--sans); }
.pz-top{ position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 26px; background:var(--card); border-bottom:1px solid var(--line); flex-wrap:wrap; }
.pz-top-brand{ display:flex; align-items:center; gap:12px; }
.pz-top-brand .brand-mark{ width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--brand); color:#fff; }
.pz-top-title{ font-family:var(--serif); font-size:19px; font-weight:600; }
.pz-top-sub{ font-size:12px; color:var(--ink-3); }
.pz-top-right{ display:flex; align-items:center; gap:10px; }
.pz-top-name{ display:flex; align-items:center; gap:8px; font-weight:600; font-size:14px; }
.pz-body{ max-width:1080px; margin:0 auto; padding:22px 26px 60px; }
.pz-intro{ color:var(--ink-2); font-size:14.5px; line-height:1.5; margin:0 0 20px; }
.pz-empty{ text-align:center; padding:60px 20px; color:var(--ink-2); }
.pz-empty .empty-orb{ width:56px; height:56px; border-radius:50%; background:var(--brand-tint); color:var(--brand);
  display:flex; align-items:center; justify-content:center; margin:0 auto 14px; }
.pz-days{ display:flex; flex-direction:column; gap:16px; }
.pz-day{ background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow-sm); overflow:hidden; }
.pz-day-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding:12px 18px; background:var(--brand-tint); border-bottom:1px solid var(--line-2); }
.pz-day-name{ margin:0; font-family:var(--serif); font-size:19px; font-weight:600; color:var(--ink); }
.pz-day-tot{ display:flex; gap:14px; font-size:12.5px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.pz-day-tot i{ font-style:normal; color:var(--ink-3); font-weight:600; margin-right:3px; }
.pz-meals{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; padding:16px 18px; }
.pz-meal{ border:1px solid var(--line-2); border-radius:var(--r-sm); padding:12px 14px; display:flex; flex-direction:column; gap:8px; background:var(--paper); }
.pz-meal-head{ display:flex; align-items:center; gap:8px; }
.pz-meal-pasto{ font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--brand); }
.pz-meal-cottura{ font-size:11px; color:var(--ink-3); font-style:italic; }
.pz-meal-name{ font-weight:600; font-size:15px; line-height:1.3; }
.pz-ings{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:3px; }
.pz-ings li{ display:flex; justify-content:space-between; gap:8px; font-size:13px; color:var(--ink-2); }
.pz-ings li b{ color:var(--ink); font-weight:600; white-space:nowrap; }
.pz-meal-foot{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:auto; padding-top:6px; border-top:1px dashed var(--line-2); }
.pz-micro{ font-size:12px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.pz-micro i{ font-style:normal; color:var(--ink-3); font-weight:600; margin-right:2px; }
.pz-proc-toggle{ margin-left:auto; background:none; border:none; cursor:pointer; color:var(--brand); font-size:12px;
  display:inline-flex; align-items:center; gap:4px; font-family:inherit; padding:2px; }
.pz-proc{ font-size:13px; color:var(--ink-2); line-height:1.5; white-space:pre-line; background:var(--brand-tint);
  border-radius:8px; padding:10px 12px; }
@media (max-width:820px){ .pz-meals{ grid-template-columns:1fr; } }

/* ============================================================
   GESTIONE ACCESSI (credenziali)
   ============================================================ */
.cred-section-title{ display:flex; align-items:center; gap:8px; font-family:var(--sans); font-weight:700;
  font-size:14px; color:var(--ink); margin:6px 0 10px; }
.cred-section-title svg{ color:var(--brand); }
.cred-count{ font-weight:600; font-size:12px; color:var(--ink-3); background:var(--paper-2);
  border:1px solid var(--line); border-radius:999px; padding:1px 9px; }
.cred-list{ display:flex; flex-direction:column; gap:8px; max-width:1180px; }
.cred-row{ display:grid; grid-template-columns:minmax(180px,1.3fr) 1fr 1fr auto; gap:14px; align-items:end;
  padding:12px 14px; background:var(--card); border:1px solid var(--line); border-radius:var(--r-sm); }
.cred-who{ display:flex; align-items:center; gap:10px; align-self:center; }
.cred-name{ font-weight:600; font-size:14.5px; }
.cred-you{ color:var(--brand); font-weight:600; }
.cred-meta{ font-size:12px; color:var(--ink-3); }
.cred-field{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.cred-flabel{ font-size:11px; color:var(--ink-3); font-weight:600; }
.cred-actions{ display:flex; align-items:center; gap:10px; align-self:center; }
.cred-msg{ font-size:12.5px; }
.cred-ok{ color:var(--ok); }
.cred-err{ color:var(--over); }
@media (max-width:860px){
  .cred-row{ grid-template-columns:1fr 1fr; }
  .cred-who{ grid-column:1 / -1; }
  .cred-actions{ grid-column:1 / -1; }
}

/* —— Area paziente: modifica —— */
.pz-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:0 0 14px; }
.pz-toolbar .pz-intro{ flex:1; min-width:240px; }
.pz-week-hint{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--ink-2);
  background:var(--brand-tint); border:1px solid var(--brand-soft); border-radius:10px; padding:8px 12px; margin:0 0 14px; }
.pz-week-hint svg{ color:var(--brand); }
.pz-note{ font-size:13px; color:var(--ink-2); background:var(--card); border:1px solid var(--line);
  border-radius:10px; padding:9px 12px; margin:0 0 12px; }
.pz-warn{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--over);
  background:var(--over-bg); border-radius:10px; padding:9px 12px; margin:0 0 12px; }
.pz-cmd{ display:flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--line);
  border-radius:12px; padding:8px 12px; margin:0 0 16px; box-shadow:var(--shadow-sm); }
.pz-cmd svg{ color:var(--brand); flex-shrink:0; }
.pz-cmd input{ flex:1; border:none; outline:none; background:transparent; font:inherit; font-size:14px; color:var(--ink); }
.pz-change{ margin-left:auto; display:inline-flex; align-items:center; gap:4px; background:var(--brand-tint);
  border:1px solid var(--brand-soft); color:var(--brand); border-radius:7px; padding:2px 8px; font-size:11.5px;
  font-family:inherit; cursor:pointer; font-weight:600; }
.pz-change:hover{ background:var(--brand-soft); }

/* —— Scheda piatto (paziente) —— */
.pz-meal-name-btn{ text-align:left; background:none; border:none; padding:0; font:inherit; cursor:pointer;
  color:var(--ink); text-decoration:underline; text-decoration-color:var(--brand-soft); text-underline-offset:3px; }
.pz-meal-name-btn:hover{ color:var(--brand); text-decoration-color:var(--brand); }
.pz-modal{ background:var(--card); border-radius:var(--r); box-shadow:var(--shadow-lg); width:100%; max-width:560px;
  max-height:88vh; display:flex; flex-direction:column; overflow:hidden; }
.pz-modal-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:18px 20px 14px; border-bottom:1px solid var(--line); }
.pz-modal-title{ margin:4px 0 0; font-family:var(--serif); font-size:22px; font-weight:600; color:var(--ink); line-height:1.2; }
.pz-modal-cottura{ margin-top:8px; display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--ink-2);
  background:var(--brand-tint); border:1px solid var(--brand-soft); border-radius:999px; padding:4px 12px; }
.pz-modal-cottura svg{ color:var(--brand); }
.pz-modal-body{ padding:16px 20px 20px; overflow-y:auto; }
.pz-sec-title{ display:flex; align-items:center; gap:7px; font-weight:700; font-size:13px; color:var(--brand);
  text-transform:uppercase; letter-spacing:.03em; margin:16px 0 10px; }
.pz-sec-title:first-child{ margin-top:0; }
.pz-det-ings{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.pz-det-ings li{ display:flex; justify-content:space-between; gap:10px; font-size:14.5px; padding:7px 12px;
  background:var(--paper); border:1px solid var(--line-2); border-radius:9px; }
.pz-det-ing-name{ color:var(--ink); }
.pz-det-ing-q{ color:var(--ink); font-weight:600; white-space:nowrap; }
.pz-det-ing-q em{ color:var(--ink-3); font-style:normal; font-weight:500; }
.pz-steps{ margin:0; padding-left:22px; display:flex; flex-direction:column; gap:8px; }
.pz-steps li{ font-size:14.5px; line-height:1.5; color:var(--ink); padding-left:4px; }
.pz-steps li::marker{ color:var(--brand); font-weight:700; }
.pz-empty-note{ font-size:14px; color:var(--ink-2); margin:0; }
.pz-nutri{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.pz-nutri-cell{ display:flex; flex-direction:column; gap:2px; align-items:center; text-align:center;
  background:var(--paper); border:1px solid var(--line-2); border-radius:9px; padding:9px 6px; }
.pz-nutri-val{ font-size:16px; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; }
.pz-nutri-val i{ font-style:normal; font-size:11px; font-weight:500; color:var(--ink-3); margin-left:2px; }
.pz-nutri-lab{ font-size:11px; color:var(--ink-2); }
.pz-nutri-note{ font-size:11.5px; color:var(--ink-3); margin:10px 0 0; }
@media (max-width:560px){ .pz-nutri{ grid-template-columns:repeat(2,1fr); } }
