/* Ernährung und Fortschritt: Ringe, Coach-Tag, Eintragen-Reiter, Diagramme. Nur Farbvariablen, damit der Dunkelmodus von selbst passt. */
.nr{position:relative;width:var(--sz,96px);height:var(--sz,96px);flex:none}
.nr svg{width:100%;height:100%;display:block}
.nr-bg{fill:none;stroke:var(--line);stroke-width:9}
.nr-fg{fill:none;stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset .5s ease}
.nr-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.1}
.nr-c strong{font-size:calc(var(--sz,96px)*.24);font-weight:800}
.nr-c strong small{font-size:.55em;font-weight:600;color:var(--muted);margin-left:1px}
.nr-c small{font-size:calc(var(--sz,96px)*.12);color:var(--muted)}
.nr-c .icon{width:42%;height:42%;color:var(--accent)}
.nr-c i{width:6px;height:6px;border-radius:50%;background:var(--line)}

/* Tag: Ring und Makros */
.ne-hero{padding:18px}
.ne-hero-top{display:flex;align-items:center;gap:18px}
.ne-hero-text{min-width:0}
.ne-big{margin:0;font-size:26px;font-weight:800;line-height:1.15;letter-spacing:-.02em}
.ne-hero-text small{display:block;margin-top:5px;color:var(--muted);font-size:13px}
.ne-hero .nr-c strong{font-size:30px}
.ne-macros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.ne-mac{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;min-width:0}
.ne-mac strong{font-size:13px}
.ne-mac>small{font-size:12px;color:var(--muted)}
.ne-mac .nr-c small{font-size:13px;font-weight:700;color:var(--ink)}

/* Coach-Tag */
.ne-coach{padding:16px 16px 12px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line))}
.ne-coach-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.ne-coach-head>div{flex:1;min-width:0}
.ne-coach-head h3{margin:0;font-size:17px}
.ne-coach-head small{color:var(--muted);font-size:12px}
.ne-coach-ico{width:40px;height:40px;border-radius:12px;background:var(--soft);color:var(--accent);display:grid;place-items:center;flex:none}
.ne-coach-ico .icon{width:22px;height:22px}
.ne-coach-list{list-style:none;margin:0;padding:0}
.ne-coach-list li{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.ne-coach-list li>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ne-coach-list small{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ne-coach-list strong{font-size:15px;line-height:1.25}
.ne-coach-list span{font-size:13px;color:var(--muted)}
.ne-coach-list li .button{min-height:44px;flex:none;padding-inline:16px}
.ne-coach-list li.done strong{color:var(--muted)}
.ne-ok{display:inline-flex!important;align-items:center;gap:5px;color:var(--ok,#4f8a47)!important;font-weight:700;font-size:13px!important;flex:none}
.ne-ok .icon{width:16px;height:16px}
.ne-why{border-top:1px solid var(--line);padding-top:4px}
.ne-why summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--muted);font-size:14px;font-weight:600;list-style:none}
.ne-why summary::-webkit-details-marker{display:none}
.ne-why summary::after{content:'›';margin-left:auto;font-size:20px;transform:rotate(90deg);transition:transform .2s}
.ne-why[open] summary::after{transform:rotate(-90deg)}
.ne-why p{margin:0 0 8px;font-size:14px;line-height:1.5}
.ne-why small{color:var(--muted);font-size:12px}
.ne-why-chip{display:flex;align-items:center;gap:8px}
.ne-why-chip .icon{width:18px;height:18px;color:var(--accent);flex:none}

/* Mahlzeiten (Tag) */
.nm-add{min-height:44px}
.nm-row .icon-button{width:44px;height:44px}

/* Woche */
.ne-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin:6px 0 4px}
.ne-day{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:none;padding:8px 0 6px;border-radius:12px;min-height:44px;font-size:12px;color:var(--muted)}
.ne-day.sel{background:var(--soft);color:var(--ink);font-weight:700}
.ne-day.future{opacity:.45}
.ne-day small{font-size:11px;color:var(--ink)}
.ne-day em{width:14px;height:14px;display:block;color:#5b9bd5}
.ne-day em .icon{width:14px;height:14px}
.ne-day em.off{background:none}
.ne-line{width:100%;height:auto;display:block;margin-top:8px}
.ne-line .grid{stroke:var(--line);stroke-width:1}
.ne-line .axis{fill:var(--muted);font-size:10px}
.ne-line .band{fill:color-mix(in srgb,var(--ok,#5f8f57) 18%,transparent)}
.ne-line .ln{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.ne-line .dot{fill:var(--paper);stroke:var(--accent);stroke-width:2.5}
.ne-legend{display:flex;align-items:center;gap:8px;margin:6px 0 0;font-size:12px;color:var(--muted)}
.ne-legend .band{width:22px;height:10px;border-radius:3px;background:color-mix(in srgb,var(--ok,#5f8f57) 30%,transparent);display:inline-block}
.week-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* Mehr: Nährwert-Knöpfe */
.nutrient-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 4px}
.nutrient-links .button{min-height:44px;justify-content:center}

/* Eintragen-Dialog */
.fd-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px;background:var(--soft);border-radius:14px;margin-bottom:12px}
.fd-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;border:0;border-radius:10px;background:none;color:var(--muted);font-size:13px;font-weight:600}
.fd-tabs button .icon{width:22px;height:22px}
.fd-tabs button.on{background:var(--paper);color:var(--ink);box-shadow:0 2px 6px #00000014}
.fd-tabs button.on .icon{color:var(--accent)}
.fd-sub{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.fd-sub::-webkit-scrollbar{display:none}
.fd-sub button{flex:none;min-height:44px;padding:0 16px;border-radius:99px;border:1px solid var(--line);background:var(--paper);font-size:14px;font-weight:600}
.fd-sub button.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.fd-body{min-height:380px}
.food-result{min-height:48px}
.food-search-results{max-height:230px}
.fd-consent{display:flex;gap:12px;align-items:flex-start;padding:12px;background:var(--soft);border-radius:12px;font-size:13px;line-height:1.45}
.fd-consent input{width:22px;height:22px;flex:none;margin-top:1px}
.fd-consent.saved{display:none}
.fd-big{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:96px;justify-content:center;width:100%;border:2px dashed var(--line);border-radius:16px;background:none;font-weight:700;font-size:15px}
.fd-big .icon{width:28px;height:28px;color:var(--accent)}
.fd-quick-kcal input{font-size:28px;font-weight:800;text-align:center;min-height:64px}

/* Tippflächen im Bereich */
.recipe-actions .button,.idea-list .button,.pl-actions .button,.supp-actions .button,.checkin-change+.heading-action .button{min-height:44px}
.supp-check,.shop-item{min-height:48px}
.supp-box{width:26px;height:26px}
.chip-button{min-height:44px;padding-inline:16px}
.weekday-picker .chip span,.chip span{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
.week-arrows .icon-button,.day-nav .icon-button{width:44px;height:44px}
.hist-card{min-height:56px}
.measure-list .icon-button,.weight-list .icon-button{width:44px;height:44px}
.pd-chip{min-height:28px}
.plan-day summary{min-height:48px}

/* Fortschritt: Überblick */
.ne-wk{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;justify-items:center;margin:8px 0 14px}
.ne-wk-item{display:flex;flex-direction:column;align-items:center;gap:6px}
.ne-wk-item b{font-size:13px}
.ne-wk .nr-c strong{font-size:17px}
.ne-wk-text{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:14px;line-height:1.4}
.ne-wk-text li{padding:10px 12px;background:var(--soft);border-radius:12px}
.ne-rows{display:grid;gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.ne-row-m{display:grid;gap:6px}
.ne-row-m>div{display:flex;justify-content:space-between;gap:8px;font-size:14px}
.ne-row-m span{color:var(--muted)}
.ne-meter{height:8px;border-radius:99px;background:var(--line);overflow:hidden}
.ne-meter i{display:block;height:100%;border-radius:99px;background:var(--accent)}

/* Gewicht */
.ne-wchart{width:100%;height:auto;display:block}
.ne-wchart .grid{stroke:var(--line);stroke-width:1}
.ne-wchart .axis{fill:var(--muted);font-size:10px}
.ne-wchart .goal{stroke:var(--ok,#4f8a47);stroke-width:1.6;stroke-dasharray:5 4}
.ne-wchart .goal-t{fill:var(--ok,#4f8a47);font-size:10px;font-weight:700}
.ne-wchart .fc{stroke:var(--accent);stroke-width:2;stroke-dasharray:2 5;stroke-linecap:round;fill:none}
.ne-wchart .fc-dot{fill:var(--paper);stroke:var(--ok,#4f8a47);stroke-width:2.5}
.ne-wchart .raw{fill:none;stroke:var(--accent);stroke-opacity:.35;stroke-width:1.5}
.ne-wchart .avg{fill:none;stroke:var(--ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.ne-wchart .pt{fill:var(--accent)}
.ne-wchart .pt.last{stroke:var(--paper);stroke-width:2}
.ne-wleg{display:flex;flex-wrap:wrap;gap:6px 16px;list-style:none;margin:8px 0 0;padding:0;font-size:12px;color:var(--muted)}
.ne-wleg li{display:flex;align-items:center;gap:6px}
.ne-wleg i{width:18px;height:0;border-top:3px solid var(--ink);display:inline-block}
.ne-wleg .l-raw{border-color:var(--accent);opacity:.5}
.ne-wleg .l-goal{border-top:2px dashed var(--ok,#4f8a47)}
.ne-wleg .l-fc{border-top:3px dotted var(--accent)}
.ne-wnow{display:flex;align-items:baseline;gap:8px;margin-bottom:4px}
.ne-wnow strong{font-size:30px;font-weight:800;letter-spacing:-.02em}
.ne-wnow span{color:var(--muted);font-size:14px}
.ne-wbtn{display:flex;gap:12px;align-items:center;margin-top:12px}
.ne-wbtn .button{flex:1;min-height:48px}
.ne-step{display:flex;align-items:center;justify-content:center;gap:14px;margin:4px 0 8px}
.ne-step button{width:56px;height:56px;border-radius:50%;border:1px solid var(--line);background:var(--paper);font-size:26px;font-weight:700;line-height:1;display:grid;place-items:center}
.ne-step input{width:150px;text-align:center;font-size:34px;font-weight:800;min-height:64px;border-radius:14px}
.ne-step-unit{text-align:center;color:var(--muted);margin:-4px 0 10px}
.ne-last{text-align:center;color:var(--muted);font-size:13px;margin:0 0 12px}

/* Erfolge */
.ne-badges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 6px}
.ne-badge{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;padding:6px 2px;border-radius:14px;min-height:44px;text-align:center}
.ne-badge strong{font-size:12px;line-height:1.2;font-weight:600;color:var(--muted);overflow-wrap:anywhere}
.ne-badge.done strong{color:var(--ink)}
.ne-badge .nr-c small{font-size:12px;font-weight:700}
.ne-badge.done .nr-c{color:var(--accent)}

/* Leere Zustände */
.ne-empty{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:14px 8px;color:var(--muted)}
.ne-empty svg{width:120px;height:auto;margin-bottom:4px;opacity:.75}
.ne-empty svg *{fill:var(--line);stroke:var(--line)}
.ne-empty svg [fill=none]{fill:none}
.ne-empty strong{color:var(--ink);font-size:15px}
.ne-empty span{font-size:13px;line-height:1.4;max-width:280px}
.ne-empty .button{margin-top:8px;min-height:44px}

/* Rückgängig-Hinweis */
#undo-toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translate(-50%,20px);background:#272e24;color:#fff;border-radius:14px;padding:6px 6px 6px 18px;display:flex;align-items:center;gap:10px;z-index:70;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100% - 24px);font-size:14px}
#undo-toast.show{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
#undo-toast button{min-height:44px;min-width:44px;border:0;background:none;color:#ffb4a8;font-weight:800;font-size:14px;padding:0 14px;border-radius:10px}
@media(min-width:651px){#undo-toast{bottom:28px}}

@media(max-width:380px){.ne-hero-top{gap:12px}.ne-big{font-size:22px}.ne-hero-top .nr{--sz:116px!important}.ne-badges{gap:10px 2px}.ne-wk .nr{--sz:68px!important}}
#weight-form .modal-actions .button,.fd-body .modal-actions .button.red{min-height:52px}
#weight-form .modal-actions{justify-content:stretch}
#weight-form .modal-actions .button{width:100%;justify-content:center}
.seg button,.seg [role=tab]{min-height:44px}
.nutrient-links .button{background:var(--paper);border:1px solid var(--line);border-radius:12px;color:var(--ink);font-weight:600}
.fd-body .modal-actions .button.red{width:100%;justify-content:center}
.week-card-n{padding:16px 8px 16px}
.week-card-n .section-title{padding:0 8px}
.week-card-n .week-facts,.week-card-n .review-tips,.week-card-n>.helper-text{margin-left:8px;margin-right:8px}
.chal-go{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.ne-days{gap:0}
.week-card-n{padding-left:4px;padding-right:4px}
.ne-wk-text strong{display:block}
.ne-mac strong{font-size:12px}
#undo-toast{width:calc(100% - 24px);max-width:420px;justify-content:space-between}
#undo-toast span{flex:1;min-width:0}

/* Nährwerte als Kacheln: farbiges Symbol, Name, kurzer Satz */
.nutrient-links.nl-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.nl-tile{--c:var(--accent);display:flex;align-items:center;gap:10px;min-height:58px;padding:10px 12px;border:1.5px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);font:inherit;text-align:left;cursor:pointer;min-width:0}
.nl-tile:active{transform:scale(.98)}.nl-tile:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.nl-ico{flex:none;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 16%,transparent);color:var(--c)}.nl-ico svg{width:20px;height:20px}
.nl-t{min-width:0;display:grid;gap:1px}.nl-t strong{font-size:14px;line-height:1.2;hyphens:auto;-webkit-hyphens:auto}.nl-t small{font-size:11.5px;line-height:1.3;color:var(--muted)}
.nl-tile[data-k=protein]{--c:#e5533d}.nl-tile[data-k=carbs]{--c:#d9a23a}.nl-tile[data-k=fat]{--c:#c97b3c}.nl-tile[data-k=fiber]{--c:#4caf6e}.nl-tile[data-k=sugar]{--c:#d062a0}.nl-tile[data-k=salt]{--c:#8f9aa6}.nl-tile[data-k=water]{--c:#3d8fe0}

/* Eintragen: Unterauswahl als gleichmäßige Leiste, Mahlzeit als vier Kacheln */
.fd-sub{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;padding:4px;border-radius:16px;background:color-mix(in srgb,var(--ink) 6%,transparent)}
.fd-sub button{min-height:40px;padding:0 4px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:13.5px}
.fd-sub button.on{background:var(--paper);color:var(--ink);box-shadow:0 1px 4px #0003}
.meal-pick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;grid-column:1/-1}
.meal-pick-l{grid-column:1/-1;font-size:12px;font-weight:600}
.meal-pick label{position:relative;font-weight:600}.meal-pick input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.meal-pick span{display:grid;place-items:center;min-height:44px;padding:0 2px;border:1.5px solid var(--line);border-radius:12px;background:var(--paper);font-size:13px;text-align:center}
.meal-pick input:checked+span{background:var(--accent);border-color:var(--accent);color:#fff}
.meal-pick input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}

/* Nahrungsergänzung verwalten */
.supp-manage .supp-list{gap:8px;margin:0}
.supp-manage .supp-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
.supp-manage .supp-row.off{opacity:.62}
.supp-ico{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}.supp-ico svg{width:22px;height:22px}
.supp-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.supp-txt strong{font-size:15px}.supp-txt small{font-size:12px;color:var(--muted)}
.supp-manage .supp-actions{display:flex;gap:4px;flex:none}
.supp-empty{display:flex;align-items:center;gap:12px;padding:14px;border:1.5px dashed var(--line);border-radius:16px;color:var(--muted)}.supp-empty svg{flex:none;width:28px;height:28px;color:var(--accent)}.supp-empty p{margin:0;font-size:13px;line-height:1.5}
.supp-presets{display:flex;flex-wrap:wrap;gap:6px}
.supp-form{display:grid;gap:14px;margin-top:4px}
.supp-form .pf-text{display:grid;gap:6px;font-size:13px;font-weight:650;color:var(--muted)}
.supp-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.supp-types>div{display:flex;flex-wrap:wrap;gap:6px}
.supp-form .modal-actions{margin-top:0}
@media(max-width:420px){.supp-manage .supp-row{flex-wrap:wrap}.supp-manage .supp-actions{width:100%;justify-content:flex-end}}
.supp-form .weekday-picker>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.supp-form .weekday-picker .chip span{width:100%;min-width:0;padding:8px 0}
#supp-form .modal-actions{position:static;background:none;padding:0;margin:0;border:0;box-shadow:none}.supp-form .modal-actions .button{width:100%;justify-content:center}
#supp-error:empty{display:none}

/* Nährwert-Erklärung */
.nutrient-detail{--c:var(--accent)}
.nutrient-detail[data-n=protein]{--c:#e5533d}.nutrient-detail[data-n=carbs]{--c:#d9a23a}.nutrient-detail[data-n=fat]{--c:#c97b3c}.nutrient-detail[data-n=fiber]{--c:#4caf6e}.nutrient-detail[data-n=sugar]{--c:#d062a0}.nutrient-detail[data-n=salt]{--c:#8f9aa6}.nutrient-detail[data-n=water]{--c:#3d8fe0}
.nutrient-detail .nutrient-now{grid-template-columns:auto 1fr;column-gap:14px;align-items:center;margin-bottom:12px}
.nutrient-detail .nutrient-now .nd-big{grid-row:span 2;width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 15%,transparent);color:var(--c)}.nd-big svg{width:26px;height:26px}
.nutrient-detail .nutrient-now strong{line-height:1.1}
.nutrient-detail .track span{background:var(--c)}
.nd-facts{display:grid;gap:8px;margin-top:16px}
.nd-fact{display:flex;gap:12px;padding:13px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
.nd-ico{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 13%,transparent);color:var(--c)}.nd-ico svg{width:18px;height:18px}
.nutrient-detail .nd-fact h3{margin:5px 0 4px;font-size:14px}.nd-fact p{font-size:13px;color:var(--muted)}
.nutrient-detail .nd-h{margin:20px 0 6px}

/* Messung: Körperstellen als Chips; Konto löschen: Warnkasten */
.ms-sites>div{display:flex;flex-wrap:wrap;gap:6px}
.del-warn{display:flex;gap:10px;align-items:flex-start;margin:0 0 14px;padding:12px 14px;border-radius:14px;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));background:color-mix(in srgb,var(--accent) 9%,transparent);font-size:13px;line-height:1.5}
.del-warn svg{flex:none;width:18px;height:18px;margin-top:2px;color:var(--accent)}.del-warn strong{display:block;margin-bottom:2px}
#delete-error:empty{display:none}
/* Fortschritt-Überblick: Sätze als Zeilen mit Symbol */
.ne-wk-text li{display:flex;gap:12px;align-items:flex-start;padding:11px 12px;background:var(--bg);border:1px solid var(--line)}
.ne-wk-text li>span:last-child{display:grid;gap:2px;min-width:0}.ne-wk-text small{font-size:12.5px;line-height:1.45;color:var(--muted)}
.wk-ico{flex:none;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}.wk-ico svg{width:17px;height:17px}
.ne-wk-text li[data-k=food] .wk-ico{background:color-mix(in srgb,#d9a23a 15%,transparent);color:#d9a23a}.ne-wk-text li[data-k=water] .wk-ico{background:color-mix(in srgb,#3d8fe0 15%,transparent);color:#3d8fe0}
