:root {
  color-scheme: dark;
  --ac: #f2f1ec; --bg: #121214;
  --face: #1c1c20; --face2: #232328; --face3: #2a2a30;
  --ink: #f2f1ec; --ink-rgb: 242,241,236; --ink-soft: #c9c8c2;
  --muted: #8f8f95; --muted2: #7a7a80; --muted3: #6f6f75;
  --line: #55555b; --on-ac: #121214; --knob: #f2f1ec; --glass-rgb: 28,28,32;
  --toast-bg: #2c2c31; --toast-ink: #f2f1ec;
}
/* audit393: Light Mode wie iOS (`FitTheme.isLight`) — Creme-Hintergrund, weiße
   Flächen, dunkle Schrift; der Akzent bleibt unverändert. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f1ec; --face: #ffffff; --face2: #f7f6f2; --face3: #efeee9;
  --ink: #121214; --ink-rgb: 18,18,20; --ink-soft: #3c3c43;
  --muted: #8f8f95; --muted2: #6f6f76; --muted3: #7a7a82;
  --line: #d8d7d1; --on-ac: #121214; --knob: #ffffff; --glass-rgb: 255,255,255;
  --toast-bg: var(--ac); --toast-ink: #ffffff;   /* audit402: akzentuierte Toasts mit weißer Schrift (User) */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Canvas = Body-Farbe (inkl. Heller): kurze Seiten zeigen unten keinen andersfarbigen Space */
html { background: var(--bg); }
img { -webkit-user-drag: none; user-drag: none; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;   /* wie App: kein natives Kopieren/Markieren */
  touch-action: pan-x pan-y;   /* Scrollen ja, aber kein Browser-Zoom (weder Double-Tap noch Pinch) */
  overscroll-behavior-x: none;   /* kein ZurÃ¼ck-BlÃ¤ttern per Wisch (Food-Swipe gehÃ¶rt der App) */
}
input, textarea { -webkit-user-select: text; user-select: text; }
main { max-width: 560px; margin: 0 auto; padding: 28px 20px calc(84px + env(safe-area-inset-bottom)); }
h1 { font-size: 1.1rem; font-weight: 700; }
a { color: inherit; text-decoration: none; }

/* ---------- Prominenter Input: Mobile oben / Desktop unten ---------- */
.add.prom { display: none !important; }
main { padding-bottom: 120px; }

/* ---------- Nav-Dock (audit172/179/185): Milchglas-Pille, schwebend, immer gleiche Stelle ----------
 * Zentrierung per margin:auto + eigene Compositor-Ebene (translateZ(0), keine Versetzung):
 * fixt versetztes Fixed-Rendering mit backdrop-filter auf iOS-PWA. Offset auf allen
 * Reitern identisch (12px + Safe-Area). */
#nav {
  position: fixed; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 0;
  width: max-content; max-width: calc(100vw - 24px); margin: 0 auto;
  height: 52px; box-sizing: border-box; transform: translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: none; border: none; border-radius: 999px;
  padding: 5px; box-shadow: none;
}
#nav a {
  width: 42px; height: 42px; flex: none; padding: 0; border-radius: 999px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
#nav a .icon { width: 18px; height: 18px; flex: none; }
/* audit253: eigenes Avatar-Bild im Dock (Account-Tab) */
#nav a .nav-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
/* audit379 (iOS-Dock): aktiver Reiter = **Akzent-Icon + Punkt unten** — keine
   Fläche mehr (die Akzentfläche gehört dem Action-Button, User 2026-10-17). */
#nav a.on { background: none; color: var(--ac); }
#nav a.on::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px;
  margin-left: -2px; border-radius: 50%; background: var(--ac); }
@media (max-width: 480px) {
  #nav { padding: 5px; height: 52px; }
  #nav a { width: 42px; height: 42px; }
}
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---------- Boot-Maske (audit260/263): Skeleton spiegelt den echten Start-Aufbau ---------- */
#boot { position: fixed; inset: 0; z-index: 500; pointer-events: none; box-sizing: border-box;
  max-width: 640px; margin: 0 auto; background: var(--bg);
  padding: calc(18px + env(safe-area-inset-top)) 14px 0;
  display: grid; gap: 10px; align-content: start; opacity: 1; transition: opacity .25s ease; }
body.booted #boot { opacity: 0; }
.sk-av { width: 30px; height: 30px; border-radius: 50%; background: rgba(var(--ink-rgb),.09); margin-left: 2px; }
.sk-center { justify-self: center; }
.sk-l { display: block; height: 10px; border-radius: 6px; background: rgba(var(--ink-rgb),.06); }
.sk-l.w20 { width: 20%; } .sk-l.w30 { width: 30%; } .sk-l.w40 { width: 40%; } .sk-l.w45 { width: 45%; } .sk-l.w50 { width: 50%; } .sk-l.w60 { width: 60%; }
.sk-card { background: rgba(var(--ink-rgb),.03); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.sk-bar { display: block; height: 8px; border-radius: 999px; background: rgba(var(--ink-rgb),.07); }
.sk-bar.sm { height: 6px; }
.sk-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-col { display: grid; gap: 6px; }
.sk-ring { display: flex; align-items: center; justify-content: center; gap: 12px; }
.sk-sq { display: block; border-radius: 16px; background: rgba(var(--ink-rgb),.05); }
.sk-sq.front { width: 105px; height: 140px; }
.sk-sq.side { width: 92px; height: 124px; opacity: .6; }
.sk-bundle { display: block; width: 86px; height: 86px; border-radius: 20px; background: rgba(var(--ink-rgb),.05); }
.sk-coffee { display: flex; align-items: center; gap: 8px; }
.sk-pill { display: block; width: 46px; height: 34px; border-radius: 10px; background: rgba(var(--ink-rgb),.05); }
.sk-fasten { padding: 10px 14px 16px; gap: 8px; }
.sk-ticks { display: block; height: 8px; border-radius: 6px; background: rgba(var(--ink-rgb),.04); }
.sk-track { display: block; height: 8px; border-radius: 999px; background: rgba(var(--ink-rgb),.08); }
#boot .sk-av, #boot .sk-card, #boot .sk-sq, #boot .sk-bundle, #boot .sk-pill { animation: skPulse 1.4s ease-in-out infinite; }
@keyframes skPulse { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
/* audit301: Skeleton je Start-Ansicht (Klasse setzt das Inline-Skript in index.html) */
#boot .skv { display: none; }
#boot.boot-home .skv-home, #boot.boot-kal .skv-kal,
#boot.boot-kat .skv-kat, #boot.boot-food .skv-food { display: grid; gap: 10px; align-content: start; }
/* audit302: Skeleton-Blöcke nutzen die echten Container-Klassen (Maße kommen dadurch automatisch) */
#boot .hm-top { display: flex; align-items: center; gap: 8px; }
#boot .ac-carousel .ac-track { display: flex; gap: 10px; align-items: center; }
#boot .dt-sec { display: grid; gap: 8px; min-height: 86px; align-content: start; }
.sk-acard { display: block; width: 150px; height: 200px; border-radius: 20px; background: rgba(var(--ink-rgb),.05); }
#boot .sk-acard { animation: skPulse 1.4s ease-in-out infinite; }
.sk-chips { display: flex; align-items: center; gap: 8px; }
.sk-pill.sm { width: 30px; }
.cat-row.sk-catrow { min-height: 64px; }
#boot .sk-catrow, #boot .sk-catrow .sk-l { animation: skPulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #boot .sk-av, #boot .sk-card, #boot .sk-sq, #boot .sk-bundle, #boot .sk-pill { animation: none; } }
/* Untere UI: Opacity-only (Bubbles haben eigene transforms); Park-Transitions der FABs bleiben erhalten */
.cat-fab, #parkBub { transition: left .18s ease, top .18s ease, transform .15s ease, opacity .25s ease; }
.rest-bub, .scan-bub, .voice-bub { transition: opacity .25s ease; }
body.booting #nav { opacity: 0; transform: translateY(10px); }
body.booting .cat-fab, body.booting #parkBub,
body.booting .rest-bub, body.booting .scan-bub, body.booting .voice-bub { opacity: 0; }

/* ---------- Thumbzone-Parken (audit174/175): Drag ins Dock, Eye holt zurÃ¼ck ---------- */
[data-park] { touch-action: none; transition: left .18s ease, top .18s ease, transform .15s ease; }
[data-park].park-drag { transition: none; transform: scale(1.06); }
[data-park][hidden] { display: none !important; }
#nav { transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, bottom .18s ease, opacity .2s ease; }
/* Drop-Feedback ohne Geometrie und ohne Schatten: nur Ring */
#nav.parkover { transform: translateZ(0); box-shadow: 0 0 0 2px var(--ac); }
#nav.parkover::before { background: rgba(52,52,58,.8); }
/* Eye icon-only: kein Bubble-Back, nur Icon (44px-Target) */
#parkBub { position: fixed; right: 8px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 65; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; padding: 0; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; box-shadow: none; }
#parkBub[hidden] { display: none; }
#parkBub .icon { width: 22px; height: 22px; }

/* ---------- audit379: iOS-Dock — Beule + kontextueller Mittel-Button + Bogen ----------
 * Eine **einzige** Milchglas-Fläche: Leiste + Kreis der Beule (iOS `DockBarShape`
 * = Kapsel ∪ Kreis, Radius 30, 14 px über der Leistenmitte). Der Action-Button
 * hat **keine eigene Fläche**; nur offen/auf Start liegt die Akzentfläche darunter. */
/* audit381: Leiste + Beule sind **ein** Milchglas-Stück (iOS `DockBarShape` = Kapsel
   ∪ Kreis): ein Layer, ein Blur, per Maske ausgeschnitten — dadurch keine Naht und
   keine doppelte Tönung im Überlappungsbereich (User 2026-10-18). */
#nav::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; bottom: 0; z-index: 0;
  --cap: 26px;        /* halbe Leistenhöhe (Kapsel-Radius) */
  --bumpR: 30px;      /* Radius der Beule */
  --barTop: 20px;     /* Leisten-Oberkante in dieser Box */
  --bumpCY: 33px;     /* Mitte des Action-Buttons */
  background: rgba(var(--glass-rgb),.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  -webkit-mask-image:
    radial-gradient(circle var(--cap) at var(--cap) calc(var(--barTop) + var(--cap)), #000 99.5%, transparent 100%),
    radial-gradient(circle var(--cap) at calc(100% - var(--cap)) calc(var(--barTop) + var(--cap)), #000 99.5%, transparent 100%),
    linear-gradient(#000, #000),
    radial-gradient(circle var(--bumpR) at 50% var(--bumpCY), #000 99.5%, transparent 100%);
  mask-image:
    radial-gradient(circle var(--cap) at var(--cap) calc(var(--barTop) + var(--cap)), #000 99.5%, transparent 100%),
    radial-gradient(circle var(--cap) at calc(100% - var(--cap)) calc(var(--barTop) + var(--cap)), #000 99.5%, transparent 100%),
    linear-gradient(#000, #000),
    radial-gradient(circle var(--bumpR) at 50% var(--bumpCY), #000 99.5%, transparent 100%);
  -webkit-mask-size: 100% 100%, 100% 100%, calc(100% - var(--cap) * 2) calc(100% - var(--barTop)), 100% 100%;
  mask-size: 100% 100%, 100% 100%, calc(100% - var(--cap) * 2) calc(100% - var(--barTop)), 100% 100%;
  -webkit-mask-position: 0 0, 0 0, var(--cap) var(--barTop), 0 0;
  mask-position: 0 0, 0 0, var(--cap) var(--barTop), 0 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-over; mask-composite: add;
  pointer-events: none; }
#nav a { position: relative; z-index: 1; }
#nav #dockAct { position: relative; z-index: 1; top: -14px; }
#nav #dockAct { width: 54px; height: 54px; flex: none; margin: 0 2px; border: none; padding: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: none; color: var(--ac); transition: transform .15s ease; }
#nav #dockAct::before { content: ''; position: absolute; left: 50%; top: 50%; width: 48px; height: 48px;
  transform: translate(-50%,-50%) scale(.9); border-radius: 50%; background: var(--ac);
  opacity: 0; transition: opacity .16s ease, transform .16s ease; }
#nav #dockAct.on::before { opacity: 1; transform: translate(-50%,-50%) scale(1); }
#nav #dockAct .icon { width: 26px; height: 26px; position: relative; z-index: 1; }
#nav #dockAct.on { color: #121214; }
#nav #dockAct:active { transform: scale(.96); }
/* Tap-Catcher (iOS: unsichtbare Fläche über dem Inhalt, unter der Leiste) */
#dockScrim { position: fixed; inset: 0; z-index: 39; background: none; opacity: 0; visibility: hidden;
  pointer-events: none; transition: opacity .16s ease, visibility .16s; }
#dockScrim.on { opacity: 1; visibility: visible; pointer-events: auto; }
#dockScrim[hidden] { display: none; }
/* Bogen: Positionen setzt das Skript (Winkel × Radius, iOS 112 px / 26°) */
#dockRing { position: fixed; left: 50%; bottom: 0; width: 0; height: 0; z-index: 41;
  opacity: 0; visibility: hidden; transition: opacity .16s ease, visibility .16s; }
#dockRing.on { opacity: 1; visibility: visible; }
#dockRing[hidden] { display: none; }
.dr-item { position: absolute; left: 0; bottom: 0; width: 46px; height: 46px; flex: none;
  border: none; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  background: rgba(var(--glass-rgb),.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .16s ease, background-color .16s ease; }
.dr-item .icon { width: 19px; height: 19px; }
.dr-item.on { color: var(--ac); }                                   /* aktive Unteraktion (Timer/Sprache) */
.dr-item.dim { opacity: .5; }                                       /* nicht gewählte Flagge */
.dr-item:active { filter: brightness(1.25); }
.dr-item[hidden] { display: none; }
/* Hinweis-Blase (iOS `dockHintBubble`): mittig über dem Ring bzw. über dem Button */
#dockHint { position: fixed; z-index: 43; pointer-events: none; white-space: nowrap;
  max-width: 70vw; overflow: hidden; text-overflow: ellipsis;
  padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--ink);
  background: rgba(var(--glass-rgb),.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  transform: translateX(-50%) translateY(6px); opacity: 0;
  transition: opacity .18s ease, transform .18s ease; }
#dockHint.on { opacity: 1; transform: translateX(-50%) translateY(0); }
body.has-sheet #dockRing, body.has-sheet #dockHint, body.has-sheet #dockScrim { visibility: hidden; }
body.has-kb #dockRing, body.has-kb #dockHint, body.has-kb #dockScrim { visibility: hidden; }

/* ---------- Formen ---------- */
form.add { display: grid; gap: 12px; margin-bottom: 36px; }
.row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; }
input, textarea {
  width: 100%; padding: 11px 12px; border-radius: 8px; font-size: 1rem;
  border: none; background: rgba(var(--ink-rgb),.08); color: var(--ink);
  font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--muted3); }
input:focus { outline: none; background: rgba(var(--ink-rgb),.13); }
button {
  padding: 11px 17px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--ac); color: #121214; font-weight: 700; font-size: 1rem;
}
button:active { transform: scale(.97); }

/* ---------- Topbar ---------- */
.top-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 20px; }
.top-nav h1 { flex: 1; text-align: center; }
.kwg { display: flex; align-items: center; gap: 0; }
.kwg h1 { padding: 0 4px; min-width: 86px; }
.navbtn {
  width: 40px; height: 40px; padding: 0; border-radius: 999px;
  background: none; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  cursor: pointer;
}
.navbtn:active { transform: scale(.94); background: rgba(var(--ink-rgb),.08); }
.navbtn .icon { width: 21px; height: 21px; }
/* Einheitliche Icon-Dimension (Picker + Katalog-Topnav): alles 20px */
.navbtn .icon, .navbtn .ht, .navbtn .st,
.pchip-ic .icon, .pchip-ic .ht, .pchip-ic .st { width: 20px; height: 20px; }
/* FÃ¼llindikator folgt Button-State (statt starrem Grau) */
.top-nav .navbtn .ht, .top-nav .navbtn .st,
.flt-meta .navbtn .ht, .flt-meta .navbtn .st,
.pchip-ic .ht, .pchip-ic .st { stroke: currentColor; fill: none; }
.top-nav .navbtn.on .ht, .top-nav .navbtn.on .st,
.flt-meta .navbtn.on .ht, .flt-meta .navbtn.on .st { fill: var(--ac); stroke: var(--ac); }
.pchip-ic.on .ht, .pchip-ic.on .st { fill: var(--on-ac); stroke: var(--on-ac); }
.navbtn.ghost { visibility: hidden; }
/* HeroUI Custom-Variante (Primary): volle Breite, Pill, semibold, Press-Scale */
.hui-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; border-radius: 999px; padding: 13px 20px; margin: 14px 0 8px; transition: transform .12s ease, filter .12s ease; }
.hui-btn .icon { width: 17px; height: 17px; flex: none; }
.hui-btn-primary { background: var(--ac); color: #121214; }
.hui-btn-primary:hover { filter: brightness(1.06); }
.hui-btn-primary:active { transform: scale(.97); }
.hui-btn:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
/* Hintergrund-Buttons/Cockpit weg, solange Sheet/Picker offen (per Body-Klasse, kein :has) */
body.has-sheet #nav { visibility: hidden; }
/* PWA-Keyboard: fixierte Thumbzone bleibt unten stehen statt hochzuspringen â€” Ã¼berall gleich */
body.has-kb #nav,
body.has-kb #parkBub,
body.has-kb .cat-fab,
body.has-kb .scan-bub,
body.has-kb .voice-bub,
body.has-kb .rest-bub { opacity: 0; pointer-events: none; }
/* ---------- Start-Reiter (audit169) ---------- */
.hm-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .68rem; color: var(--muted); margin: 8px 0 2px; font-variant-numeric: tabular-nums; }   /* audit384: so groß wie .hm-ticks */
.hm-act { display: flex; justify-content: flex-end; gap: 8px; margin: 4px 0 0; }
.hm-act .mini { min-width: 42px; height: 34px; }
.hm-act .mini[hidden] { display: none; }
/* audit373: Fasten-Log (Port von `FastLogView`) */
button.hm-meta { background: none; border: 0; padding: 0; font: inherit; font-size: .68rem; width: 100%; cursor: pointer; text-align: left; }   /* audit384: Größe wie .hm-ticks (font:inherit überschrieb sie) */
#hmDay.idle .hm-meta, #hmDay.idle .hm-act { pointer-events: none; }
.fl-ov { position: fixed; inset: 0; z-index: 344; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; }
.fl-ov.on { opacity: 1; visibility: visible; }
.fl-sheet { width: 100%; max-width: 560px; box-sizing: border-box; background: var(--face); border-radius: 16px 16px 0 0; padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; max-height: 82vh; transform: translateY(100%); transition: transform .2s ease-out; }
.fl-ov.on .fl-sheet { transform: none; }
.fl-top { display: flex; align-items: center; gap: 8px; }
.fl-top .sec-ic { margin: 0; }
.fl-top b { font-size: 1rem; }
.fl-top .mini { background: none; min-width: 40px; height: 36px; }
.fl-top .mini[hidden] { display: none; }
.fl-body { overflow: auto; min-height: 0; display: grid; gap: 8px; }
.fl-empty { color: var(--muted); font-size: .9rem; margin: 6px 2px; }
.fl-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; width: 100%; background: rgba(var(--ink-rgb),.07); border-radius: 12px; padding: 12px 14px; }
.fl-row .fl-l, .fl-row .fl-r { display: grid; gap: 2px; min-width: 0; text-align: left; }
.fl-row .fl-l span, .fl-row .fl-r span { color: var(--muted); font-size: .82rem; }
.fl-row .fl-r { text-align: right; font-variant-numeric: tabular-nums; }
.fl-edit { display: grid; gap: 10px; }
.fl-erow { display: flex; align-items: center; gap: 10px; }
.fl-erow > span:first-child { color: var(--muted); font-size: .9rem; min-width: 56px; }
.fl-erow input[type="time"], .fl-erow input[type="date"] { flex: 1; min-width: 0; background: rgba(var(--ink-rgb),.07); color: var(--ink); border: 0; border-radius: 10px; padding: 12px 14px; font: inherit; }
.fl-erow b#flDur { font-variant-numeric: tabular-nums; }
.fl-chip { background: rgba(var(--ink-rgb),.07); color: var(--muted); border-radius: 999px; padding: 10px 14px; font-size: .85rem; }
.fl-chip.on { background: var(--ac); color: #121214; }
.fl-actions { display: flex; align-items: center; gap: 8px; }
.fl-actions .mini { min-width: 44px; height: 38px; }
.fl-arms { color: var(--muted); font-size: .85rem; min-height: 18px; }
.hm-water { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.hm-water .icon { width: 22px; height: 22px; color: var(--ac); flex: none; }
/* Wasser flach (audit172): dÃ¼nne Bahn, runder Griff, keine Extralinie */
#hmWater { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: rgba(var(--ink-rgb),.15); outline: none; padding: 0; border: none; }
#hmWater::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ac); border: none; box-shadow: 0 2px 10px rgba(0,0,0,.4); cursor: pointer; transition: opacity .5s ease; }
#hmWater::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ac); border: none; box-shadow: 0 2px 10px rgba(0,0,0,.4); cursor: pointer; transition: opacity .5s ease; }
#hmWater::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(var(--ink-rgb),.15); border: none; }
#hmWater::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--ac); border: none; }
/* audit251: Kaffee-ZÃ¤hler unter dem Wasser-Slider */
.hm-coffee { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.hm-coffee > span { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink-soft); }
.hm-coffee .icon { width: 20px; height: 20px; color: var(--ac); }
.hm-coffee b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hm-coffee .mini { min-width: 46px; height: 34px; }
.hm-coffee .mini:first-of-type { margin-left: auto; }
/* audit256: Idle â€” Kaffee-Buttons und Slider-Griff verblassen, dÃ¼nner Balken bleibt als Indikator */
#hmWater { transition: opacity .5s ease; }
.hm-coffee .mini { transition: opacity .5s ease; }
#hmWaterCard.idle .hm-coffee .mini { opacity: 0; pointer-events: none; }
/* audit257: nur der runde Griff verschwindet (wie Fasten-Grabber); die Leiste bleibt mit 1â€“2 % FÃ¼llung als Indikator */
#hmWaterCard.idle #hmWater::-webkit-slider-thumb { background: transparent; box-shadow: none; }
#hmWaterCard.idle #hmWater::-moz-range-thumb { background: transparent; box-shadow: none; }
/* audit255/257: Tagesaufgaben â€” zentrierte Spalte (Bundle, Fortschritt, Badges), Inhalte in App-Breite */
.dt-sec { margin: 0 0 6px; }
.dt-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dt-bundle { border: none; background: none; padding: 0; cursor: pointer; flex: none; }
.dt-bundle img { width: 86px; height: 86px; object-fit: contain; display: block; }
.dt-bundle:active { transform: scale(.97); }
/* audit266/267: weiche Kante im Scroll (wie .hm-notifs) — kein harter Schnitt am Kartenrand */
.dt-pick-card { width: 100%; max-height: 212px; overflow-y: auto; overscroll-behavior: contain; background: none; padding: 0;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
.dt-pick-card::-webkit-scrollbar { display: none; }
.dt-tiles { display: flex; flex-direction: column; gap: 6px; }
/* audit258: einheitlich flach â€” Badges/Gruppen ohne Card-Hintergrund, Blur, Scrollbalken und AuÃŸenlinie */
.dt-tile { display: flex; align-items: center; gap: 9px; text-align: left; padding: 7px 9px; border-radius: 10px;
  border: none; background: rgba(var(--glass-rgb),.92); background: color-mix(in srgb, var(--ac-face, var(--face)) 92%, transparent); color: inherit; font: inherit; cursor: pointer; }
.dt-tile-art { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; flex: none; display: block; }
.dt-tile-txt { min-width: 0; display: block; }
.dt-tile-txt b { font-size: .82rem; display: block; }
.dt-tile-txt em { font-style: normal; font-size: .66rem; color: var(--muted); display: block; }
.dt-tile.on { border: none; background: color-mix(in srgb, var(--ac) 14%, rgba(var(--glass-rgb),.92)); }
.dt-tile.locked { opacity: .55; }
.dt-tile.done .dt-tile-txt b { color: #50c878; }
.dt-check { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; color: #50c878; flex: none; }
.dt-check .icon { width: 16px; height: 16px; }
.dt-bar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin-top: 6px; }
.dt-count { font-size: .88rem; font-weight: 700; color: var(--ac); font-variant-numeric: tabular-nums; }
.dt-icobtn { width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(var(--ink-rgb),.08); color: var(--ac);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dt-icobtn .icon { width: 18px; height: 18px; }
.dt-count[hidden], .dt-icobtn[hidden] { display: none !important; }
.dt-icobtn:active { transform: scale(.96); }
.dt-prog { width: 100%; display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.dt-line { flex: 1 1 8px; min-width: 8px; height: 2px; margin-top: 26px; border-radius: 2px; background: rgba(var(--ink-rgb),.14); }
.dt-chest { position: relative; flex: 0 0 auto; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 2px; border: none; border-radius: 12px; background: none; color: inherit; font: inherit; cursor: pointer; }
.dt-chest img { width: 42px; height: 42px; object-fit: contain; display: block; }
.dt-chest b { font-size: .66rem; line-height: 1.1; text-align: center; }
.dt-chest span { font-size: .6rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.dt-chest:disabled { cursor: default; }
.dt-chest.off img { opacity: .4; }
.dt-chest.done img { filter: drop-shadow(0 0 10px rgba(245,197,24,.85)) drop-shadow(0 0 22px rgba(245,197,24,.45)); animation: dtGlow 1.6s ease-in-out infinite; }
.dt-chest.opened { opacity: .5; }
.dt-chest-daily b { color: var(--ac); }
@keyframes dtGlow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.dt-xp { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); font-size: .78rem; font-weight: 800; color: #f5c518; pointer-events: none; animation: dtXp 1.3s ease-out forwards; }
@keyframes dtXp { from { opacity: 0; transform: translate(-50%, 6px); } 25% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -46px); } }
@media (prefers-reduced-motion: reduce) { .dt-chest.done img { animation: none; } .dt-xp { animation-duration: .01s; } }

/* ---------- audit380: Tagesaufgaben „seriös" (iOS-Ernstmodus, `dailyStyle`) ----------
 * Kopf als flache Zeile (Chevron · Klemmbrett · „Tagesaufgaben"), Truhen als
 * SVG-Icons, Aufgaben als reine Textzeilen — die PNG-Grafiken bleiben dem
 * Minecraft-Stil (`.dt-sec` ohne `.serious`). */
.dt-sec.serious .dt-stage { gap: 8px; }
.dt-sec.serious .dt-bundle { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0; }
.dt-sec.serious .dt-bundle .icon { width: 16px; height: 16px; }
/* audit389: Icon akzentuiert wie iOS (`PwaIcon("tasks", color: theme.accent)`) —
   nur das direkte Icon, der Chevron bleibt gedämpft. */
.dt-sec.serious .dt-bundle > .icon { color: var(--ac); }
.dt-sec.serious .dt-bundle .dt-chev { display: inline-flex; color: var(--muted); transition: transform .2s ease; }
.dt-sec.serious .dt-bundle .dt-chev .icon { width: 12px; height: 12px; }
.dt-sec.serious .dt-bundle[aria-expanded="false"] .dt-chev { transform: rotate(-90deg); }
.dt-sec.serious .dt-bundle b { font-size: .8125rem; font-weight: 500; color: var(--ink); }   /* audit384: 13 px wie iOS */
/* audit384: eine Karte um Kopf + Inhalt (iOS `seriousDailySection`) — zugeklappt
   auf Kopfbreite zentriert (7 px oben/unten), aufgeklappt volle Breite (10 px). */
.dt-sec.serious .dt-card { width: auto; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0;
  background: var(--face); background: color-mix(in srgb, var(--ac-face, var(--face)) 100%, transparent);
  border-radius: 14px; padding: 7px 12px; }
.dt-sec.serious .dt-card.open { width: 100%; align-items: stretch; gap: 10px; padding: 10px 12px; }
.dt-sec.serious .dt-prog { gap: 6px; }
.dt-sec.serious .dt-line { margin-top: 17px; }
.dt-sec.serious .dt-chest { width: 66px; gap: 2px; }
.dt-sec.serious .dt-chest .icon { width: 24px; height: 24px; color: var(--muted); }
.dt-sec.serious .dt-chest.done .icon { color: var(--ac); }
.dt-sec.serious .dt-chest.off .icon { opacity: .4; }
.dt-sec.serious .dt-chest.opened .icon { opacity: .5; }
.dt-sec.serious .dt-chest b { font-size: .6rem; }
.dt-sec.serious .dt-chest span { font-size: .56rem; }
.dt-sec.serious .dt-tile { padding: 6px 8px; border-radius: 9px; background: rgba(var(--ink-rgb),.05); }
.dt-sec.serious .dt-tile.on { background: color-mix(in srgb, var(--ac) 14%, rgba(var(--ink-rgb),.05)); }
.dt-sec.serious .dt-tile-txt b { font-size: .78rem; font-weight: 600; }
.dt-sec.serious .dt-tile-txt em { font-size: .62rem; }
.dt-sec.serious .dt-pick-card { max-height: 180px; }
/* Food-Summe als Ganzes tippbar */
.food-sumcard { position: relative; }
.hm-cardlink { position: absolute; inset: 0; border-radius: inherit; }
/* ---------- audit380: kcal-Tracker = Makro-Ring (iOS `FoodSumCard` „Runde 7") ----------
 * Drei Makro-Objekte kreisen um den kcal-Korb (Winkel/Radius setzt das Skript),
 * darunter je eine Fortschritts-Leiste; Wert-Chips schweben mit (nach 5 s Ruhe
 * aus), die Leisten pulsieren beim Öffnen und alle 8 s. */
/* audit387: Box fasst den Inhalt (Objekte + Balken + Chips) und hält Abstand zur
   nächsten Sektion; der Inhalt sitzt 16 px höher (wie iOS' 26/58-Polsterung). */
/* audit388: eigener Stacking-Context — sonst malen die negativen z-index-Objekte
   hinter dem Kartenhintergrund (CSS) statt nur hinter dem Korb (iOS/SwiftUI). */
.fk-ring { position: relative; isolation: isolate; height: 224px; margin: 0 0 12px; touch-action: pan-y; }
.fk-ring .fk-obj { position: absolute; left: 50%; top: calc(50% - 16px); display: block;
  transform: translate(-50%,-50%); will-change: transform; }
.fk-ring .fk-glyph { display: block; width: 100%; height: 100%; fill: currentColor; stroke: none; }
.fk-ring .fk-kcal { width: 124px; height: 124px; }
.fk-ring .fk-macro { width: 56px; height: 56px; color: var(--ac); }
.fk-ring .fk-bar { position: absolute; left: 50%; top: 100%; margin-top: 10px; width: 72%; height: max(4px, 5.5%);
  transform: translateX(-50%); border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, currentColor 16%, var(--bg)); }
.fk-ring .fk-bar i { display: block; height: 100%; border-radius: 999px; background: currentColor;
  transition: width .42s cubic-bezier(.2,1.5,.4,1); }
.fk-ring.pulse .fk-bar i { width: 100% !important; }
.fk-ring .fk-chip { position: absolute; left: 50%; top: calc(50% - 16px); transform: translate(-50%,-50%);
  padding: 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ink); background: rgba(var(--glass-rgb),.62); pointer-events: none; white-space: nowrap;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  transition: opacity .25s ease; }
.fk-ring.nonum .fk-chip { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fk-ring .fk-bar i { transition: none; } }
/* Tages-Fenster (audit170): 24h-Track, 2 Griffe, Jetzt-Zeiger */
.hm-ticks { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted3); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.hm-track { position: relative; height: 44px; border-radius: 12px; background: rgba(var(--ink-rgb),.08); touch-action: none; }
.hm-handle { position: absolute; top: -5px; bottom: -5px; width: 26px; margin-left: -13px; border-radius: 9px; background: var(--ac); cursor: grab; touch-action: none; box-shadow: 0 2px 10px rgba(0,0,0,.4); z-index: 2; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hm-handle:active { cursor: grabbing; }
.hm-handle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hm-now { position: absolute; top: -7px; bottom: -7px; width: 2px; margin-left: -1px; background: var(--ac); box-shadow: 0 0 6px rgba(0,0,0,.65); pointer-events: none; border-radius: 2px; z-index: 3; }
/* Ruhe-Fade: Griffe + Text verblassen nach 10 s, Tap blendet ein */
#hmDay .hm-handle, #hmDay .hm-meta, #hmDay .hm-act { transition: opacity .6s ease; }
#hmDay.idle .hm-handle, #hmDay.idle .hm-meta, #hmDay.idle .hm-act { opacity: 0; }
#hmDay .hm-ticks span { transition: opacity .6s ease; }
#hmDay.idle .hm-min { opacity: 0; }
/* Fasten-Feinschliff: groÃŸer flacher Minimal-Slider (Tap&Hold auf Griff) */
.hm-bigtime { text-align: center; font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; padding: 6px 0 2px; }
.fast-big { -webkit-appearance: none; appearance: none; width: 100%; height: 56px; background: none; border: none; padding: 0 4px; }
.fast-big::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: rgba(var(--ink-rgb),.15); }
.fast-big::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ac); border: none; margin-top: -14px; box-shadow: 0 2px 10px rgba(0,0,0,.4); cursor: pointer; }
.fast-big::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(var(--ink-rgb),.15); border: none; }
.fast-big::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: var(--ac); border: none; box-shadow: 0 2px 10px rgba(0,0,0,.4); cursor: pointer; }
/* Gruppen ganz oben, minimal (audit171): nur Bild + Name, Chevron klappt Story/Ã–ffnen auf */
.hm-groups { display: grid; gap: 2px; margin-bottom: 18px; }
/* audit249/250/252: Start-Kopf â€” Avatar eigene Zeile oben links, Gruppen zentriert darunter (kleiner Abstand) */
.hm-top { position: relative; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.hm-top .hspace { flex: 1; }
/* audit382: Start-Kopf wie iOS (`HomeProfileHead`) — Profilbild mit XP-Ring links,
   Glocke rechts (führt in den Gruppen-Tab = Mitteilungen), Gruppen-Block entfällt. */
.hm-me { position: relative; display: inline-flex; align-items: center; margin: 0 0 2px 2px; border: none; background: none; padding: 0; border-radius: 50%; cursor: pointer; }
.hm-me:active { transform: scale(.97); }
.hm-ring { position: relative; width: 38px; height: 38px; display: block; flex: none; }
.hm-ring svg { position: absolute; inset: 0; width: 38px; height: 38px; transform: rotate(-90deg); }
.hm-ring-track { fill: none; stroke: color-mix(in srgb, var(--ac) 16%, var(--bg)); stroke-width: 3.5; }
.hm-ring-arc { fill: none; stroke: var(--ac); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset .4s ease;
  /* audit396: Bogen startet oben wie iOS (`.rotationEffect(-90°)`) — vorher ab 3 Uhr */
  transform: rotate(-90deg); transform-origin: center; transform-box: view-box; }
/* audit383: inset:0 + Zentrierung — sonst schrumpft der absolut positionierte
   Wrapper auf die halbe Breite und `img { max-width: 100% }` quetscht das
   Profilbild zu einem Oval (WebKit, User 2026-10-18). */
.hm-av { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hm-av .av { flex: none; }
.hm-greet { position: absolute; left: 21px; top: 50%; transform: translateY(-50%) translateX(-12px); opacity: 0;
  color: var(--muted); font-size: .84rem; font-weight: 500; white-space: nowrap; pointer-events: none;
  transition: transform .5s cubic-bezier(.2,1.4,.4,1), opacity .22s ease; }
.hm-greet.on { opacity: 1; transform: translateY(-50%) translateX(26px); }
.hm-greet.out { opacity: 0; transform: translateY(-50%) translateX(38px); transition: transform .45s ease-in, opacity .45s ease-in; }
.hm-bell { position: relative; border: none; background: none; padding: 8px; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; }
.hm-bell .icon { width: 27px; height: 27px; }
.hm-bell.on { color: var(--ac); }
.hm-bell:active { transform: scale(.95); }
.hm-bell-badge { position: absolute; right: 0; top: 2px; min-width: 13px; height: 21px; padding: 0 5px; border-radius: 999px;
  background: var(--ac); color: var(--bg); font-size: .68rem; font-weight: 800; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center; }
.hm-bell-badge[hidden] { display: none; }
/* audit383: Mitteilungs-Verlauf (iOS `NotificationsSheet`) — Sheet von unten,
   Tagesgruppen, Zeilen mit Icon, Text, Gruppe · Zeit und Ungelesen-Punkt. */
.ntf-ov { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; }
.ntf-ov.open { opacity: 1; visibility: visible; }
.ntf-sheet { width: 100%; max-width: 480px; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column;
  background: #1b1b1f; border-radius: 18px 18px 0 0; padding: 0 0 calc(10px + env(safe-area-inset-bottom));
  transform: translateY(24px); transition: transform .18s ease; }
.ntf-ov.open .ntf-sheet { transform: translateY(0); }
@media (min-width: 560px) { .ntf-ov { align-items: center; } .ntf-sheet { border-radius: 18px; } }
.ntf-top { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; }
.ntf-top b { font-size: 1.25rem; font-weight: 700; }
.ntf-top .hspace { flex: 1; }
.ntf-all { border: none; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink);
  padding: 7px 12px; border-radius: 999px; background: var(--face); background: color-mix(in srgb, var(--ac-face, var(--face)) 100%, transparent); }
.ntf-all[hidden] { display: none; }
.ntf-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 40px; }
.ntf-empty { text-align: center; color: var(--muted); font-size: .88rem; padding-top: 40px; }
.ntf-day { font-size: .72rem; font-weight: 600; color: var(--muted); margin: 10px 0 6px 4px; }
.ntf-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  border: none; font: inherit; color: var(--ink); padding: 10px 12px; margin-bottom: 8px; border-radius: 12px;
  background: var(--face); background: color-mix(in srgb, var(--ac-face, var(--face)) 100%, transparent); }
.ntf-row:active { transform: scale(.995); }
.ntf-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ac) 14%, transparent); color: var(--ac); }
.ntf-ic .icon { width: 16px; height: 16px; }
.ntf-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ntf-txt b { font-size: .88rem; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ntf-row.seen .ntf-txt b { font-weight: 400; opacity: .72; }
.ntf-txt em { font-style: normal; font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntf-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }
.hm-g { display: flex; align-items: center; gap: 10px; padding: 7px 2px; }
.hm-g-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; }
.hm-g-main span { font-size: .95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-g-chev { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 9px; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hm-g-chev .icon { width: 17px; height: 17px; transition: transform .15s ease; }
.hm-g-chev.on { color: var(--ac); }
.hm-g-chev.on .icon { transform: rotate(180deg); }
/* Neu-Badge auf Chevron (Start-Notifications) */
.hm-nbadge { position: absolute; top: 1px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--ac); color: #121214; font-size: .62rem; font-weight: 800; font-style: normal; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.hm-nbadge[hidden] { display: none; }
.hm-g-exp { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0 2px 8px 46px; }
.hm-g-exp[hidden] { display: none; }
.hm-g-actions { display: flex; align-items: center; gap: 8px; }
/* Notifications zum Scrollen (Start, aufklappbar) */
.hm-notifs { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; padding-right: 2px; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); scrollbar-width: none; }
.hm-notifs::-webkit-scrollbar { display: none; }
.hm-notifs[hidden] { display: none; }
.hm-notif { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: rgba(var(--ink-rgb),.06); border: none; border-radius: 10px; padding: 8px 10px; color: var(--ink-soft); font: inherit; font-size: .8rem; cursor: pointer; }
.hm-notif .icon { width: 15px; height: 15px; flex: none; color: var(--ac); }
.hm-notif span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-notif em { font-style: normal; color: var(--muted3); font-size: .7rem; flex: none; }
/* Story-Posten icon-only (Kamera), Chevron bleibt icon-only */
.hm-g-story { width: 34px; height: 34px; padding: 0; border-radius: 999px; background: rgba(var(--ink-rgb),.08); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; border: none; cursor: pointer; }
.hm-g-story .icon { width: 17px; height: 17px; }
.hm-g-open { width: 34px; height: 34px; border-radius: 999px; background: rgba(var(--ink-rgb),.08); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; }
.hm-g-open .icon { width: 15px; height: 15px; }
/* Start-Gruppen zentriert: groÃŸer Avatar, Mitglieder rechts daneben, sonst nichts;
 * Notifications als eigene Card im Flow (stabil, kein Overlay) mit Ende-Fade */
#hmGroups .hm-g-wrap { position: relative; }
#hmGroups .hm-g { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 12px 2px 10px; background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
#hmGroups .hm-g-av { position: relative; display: inline-flex; flex: none; }
#hmGroups .hm-g-av .hm-nbadge { top: 2px; right: 2px; }
#hmGroups .hm-g-members { display: flex; align-items: center; }
#hmGroups .hm-g-members .av { margin-left: -8px; border: 2px solid var(--bg); }
#hmGroups .hm-g-members .av:first-child { margin-left: 0; }
#hmGroups .hm-g-exp { position: static; margin: 2px 0 10px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: none; border-radius: 0; padding: 4px 0 8px; box-shadow: none; }
#hmGroups .hm-g-exp[hidden] { display: none; }
/* Gruppen-Linkzeilen */
/* Ausfahr-MenÃ¼: Haupt-Button fixiert, Icon-Reihe fÃ¤hrt vom rechten Rand aus */

/* ---------- Drill-down: Jahre / Monate ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; margin-bottom: 36px; }
.tile {
  padding: 18px 4px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  border-radius: 10px;
}
.tile.cur { outline: 1.5px solid rgba(var(--ink-rgb),.45); }
.tile.dim { opacity: .35; }
.tile .t-big { font-size: 1rem; font-weight: 600; }
.tile .t-sub { color: var(--muted2); font-size: .76rem; display: flex; align-items: center; gap: 4px; }
.tile .t-sub .icon { width: 12px; height: 12px; stroke-width: 2.4; }

/* ---------- Listenzeilen (Woche / Monat) ---------- */
.wk-head {
  display: flex; align-items: center; width: 100%; text-align: left; gap: 8px;
  background: none; border: none; border-radius: 8px;
  padding: 13px 6px; color: var(--ink); font-family: inherit; font-size: 1rem; cursor: pointer;
}
.wk-head .info { flex: 1; min-width: 0; }
.hspace { flex: 1; }
.d-date { font-weight: 400; font-size: .88rem; }
.chev { color: var(--line); display: inline-flex; }
.wk-head.off { opacity: .32; }
.edt-pure {
  background: none; padding: 5px; width: 30px; height: 30px; border-radius: 8px;
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.edt-pure .icon { width: 16px; height: 16px; }
.edt-pure:hover, .edt-pure:focus { color: var(--ink); outline: none; }
.edt-pure.done { color: var(--ac); }

/* Wochen-Akkordeon */
.wk-day.cur > .wk-head .d-date { font-weight: 700; color: var(--ink); }
.wk-head .chev { transition: transform .15s ease; }
.wk-day.open .chev { transform: rotate(90deg); }
.wk-body { padding: 4px 6px 18px 18px; }
.wkb-ex { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.wkb-img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; background: rgba(var(--ink-rgb),.06); flex-shrink: 0; }
.wkb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
.wkb-sets { font-weight: 400; font-size: .86rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-actions { display: flex; align-items: center; padding-top: 10px; }
.wki { color: var(--muted2); font-size: .84rem; margin-right: auto; padding-left: 50px; }
.wkv { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: .9rem; }
.mini.ok, button.mini.ok { background: var(--ac); color: #121214; }
.wkb-editvals { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.evr { display: flex; align-items: center; gap: 5px; color: var(--muted2); font-size: .84rem; }
.eik, .eiw {
  width: 58px; padding: 5px 7px; border-radius: 6px;
  border: 1px solid var(--ac); background: rgba(var(--ink-rgb),.05);
  color: var(--ink); font-size: .9rem; text-align: right;
  font-family: inherit;
}
.eik:focus, .eiw:focus { outline: none; background: rgba(var(--ink-rgb),.12); }
input[type="number"].eik::-webkit-outer-spin-button,
input[type="number"].eiw::-webkit-inner-spin-button { -webkit-appearance: none; }
.eik, .eiw { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Tagesansicht (Bearbeitung) ---------- */
.ex-block { padding: 18px 0 8px; }
.ex-block:first-of-type { padding-top: 6px; }
.ex-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding-right: 6px; }
.eximg { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; background: rgba(var(--ink-rgb),.06); flex-shrink: 0; }
.ex-name { font-weight: 400; font-size: .96rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-meta { color: var(--muted2); font-size: .8rem; white-space: nowrap; }
ul.sets { list-style: none; }
ul.sets li {
  display: flex; justify-content: flex-start; align-items: center; gap: 12px;
  padding: 7px 0; font-variant-numeric: tabular-nums; font-size: .86rem; color: var(--ink-soft);
}
ul.sets li .acts { display: flex; gap: 0; margin-left: auto; }
.edt, .del {
  width: 34px; height: 34px; padding: 0; background: none; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.edt { color: var(--muted2); } .del { color: var(--line); }
.del:hover, .del:focus { color: #ff5d73; }
.edt:hover, .edt:focus { color: var(--ink); }
ul.sets li .icon { width: 16px; height: 16px; }
ul.sets li.editing {
  display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 6px; align-items: center; padding-left: 46px;
}
ul.sets li.editing input { padding: 8px 10px; font-size: 16px; }
ul.sets li.editing button {
  padding: 0; width: 34px; height: 34px; display: inline-flex;
  align-items: center; justify-content: center;
}
ul.sets li.editing .e-ok { background: #7bd88f; color: #121214; }
ul.sets li.editing .e-cx { background: rgba(var(--ink-rgb),.1); color: var(--ink); }
.total { color: var(--muted2); font-size: .84rem; text-align: right; padding: 2px 4px 0; }

/* ---------- KÃ¶rper ---------- */
.b-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 6px;
}
.b-val { font-weight: 400; font-variant-numeric: tabular-nums; }
.b-diff { font-size: .8rem; margin-left: 10px; }
.up { color: #7bd88f; } .down { color: #ff8f6b; }
.b-note { color: var(--muted2); font-size: .84rem; margin-left: 12px; }
.b-right { display: flex; align-items: center; gap: 12px; }
.b-right .del { width: 32px; height: 32px; }
.b-row + .b-row { border-top: none; }

/* ---------- Einstellungen ---------- */
.card { padding: 24px 0 6px; }
.card + .card { margin-top: 4px; }
.card h3 { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted2); margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .86rem; margin-bottom: 16px; line-height: 1.5; }
.btn-danger { width: 100%; background: rgba(255,93,115,.12); color: #ff5d73; }

/* ---------- Exercises-Filter (audit173/174): Thumbzone-Button, Card wÃ¤chst aus Button ---------- */
.cat-fab { position: fixed; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; padding: 0; background: var(--ac); color: #121214; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.cat-fab .icon { width: 24px; height: 24px; }
.cat-fab:active { transform: scale(.94); }
.flt-ov { position: fixed; inset: 0; z-index: 320; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; padding: 0 14px calc(164px + env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; }
.flt-ov.open { opacity: 1; visibility: visible; }
.flt-card { width: 100%; max-width: 480px; max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); overflow-y: auto; background: rgba(var(--glass-rgb),.88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: none; border-radius: 18px; padding: 14px; display: grid; gap: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.55); transform: scale(.7); transform-origin: bottom right; opacity: 0; transition: transform .2s cubic-bezier(.23,1,.32,1), opacity .18s ease; }
.flt-ov.open .flt-card { transform: none; opacity: 1; }
/* Suche mit Lupe statt Text (erste Zeile im Sheet, nur Desktop â€” mobil steht sie separat unten) */
.flt-search { display: none; }
@media (min-width: 1024px) { .flt-card .flt-search { display: flex; } }
/* Separate Suchleiste unten neben der Bubble (nur Touch/Mobil, Milchglas wie Sheet) */
#catSearchBar { position: fixed; left: 14px; right: 84px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; margin: 0; }
#catSearchBar[hidden] { display: none; }
/* Autark Ã¼ber dem Sheet-Backdrop (sonst schluckt er echte Taps) */
#catSearchBar.on-top { z-index: 321; }
#catSearchBar .flt-lupe { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 2; display: inline-flex; pointer-events: none; color: var(--ink-soft); }
#catSearchBar .flt-lupe .icon { width: 18px; height: 18px; }
#catSearchBar input { flex: 1; min-width: 0; height: 56px; border-radius: 999px; border: none; background: rgba(var(--glass-rgb),.88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: var(--ink); font: inherit; font-size: 16px; padding: 0 48px 0 42px; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
#catSearchBar input::placeholder { color: var(--muted3); }
#catSearchBar input:focus { outline: none; }
#catSearchBar .catq-x { position: absolute; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; border: none; cursor: pointer; }
#catSearchBar .catq-x .icon { width: 15px; height: 15px; }
#catSearchBar .catq-x[hidden] { display: none; }
/* Katalog-Tippen: Bubble bleibt neben der Leiste (sonst LÃ¼cke + Springen bei Tastatur) */
body.has-kb.has-catq .cat-fab { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { #catSearchBar { display: none; } }
.flt-lupe { display: inline-flex; flex: none; color: var(--muted); }
.flt-lupe .icon { width: 18px; height: 18px; }
.flt-search input { flex: 1; min-width: 0; background: none; border: none; padding: 10px 0; font-size: 1rem; color: var(--ink); font-family: inherit; }
.flt-search input:focus { outline: none; }
.flt-search .catq-x { width: 40px; height: 40px; border-radius: 50%; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; border: none; cursor: pointer; flex: none; }
.flt-search .catq-x .icon { width: 15px; height: 15px; }
.flt-meta { display: flex; gap: 6px; }
.flt-meta .navbtn.on { color: var(--ac); background: rgba(var(--ink-rgb),.08); }
.flt-card .catsearch { margin-bottom: 0; }
/* ---------- Inline-BestÃ¤tigung statt nativem confirm()/prompt() (audit215) ---------- */
.confirm-ov { position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; }
.confirm-ov.open { opacity: 1; visibility: visible; }
.confirm-card { width: 100%; max-width: 380px; background: rgba(var(--glass-rgb),.96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: none; border-radius: 18px; padding: 18px; display: grid; gap: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.confirm-msg { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink); }
.confirm-input { font-size: 16px; }
.confirm-input[hidden] { display: none; }
.confirm-row { display: flex; gap: 8px; justify-content: flex-end; }
/* audit250: Icon-Buttons im BestÃ¤tigungs-Banner (Story lÃ¶schen: X + Papierkorb) */
.confirm-ov .confirm-row button.cf-ico { width: 46px; height: 44px; min-width: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.confirm-ov .confirm-row button.cf-ico .icon { width: 20px; height: 20px; }
.confirm-ov .confirm-row button.cf-danger { background: rgba(255,93,115,.14); color: #ff5d73; }
/* ---------- Achievements (audit219): Krone, Start-Bereich, Reward ---------- */
.ac-wrap { position: relative; display: inline-flex; flex: none; }
.ac-crown { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); pointer-events: none; }
.ac-crown .icon { width: 22px; height: 22px; }
.ac-gold { color: #f5c518; } .ac-silver { color: var(--ink-soft); } .ac-bronze { color: #e09a5a; }
.ac-ruby { color: #e0115f; } .ac-emerald { color: #50c878; } .ac-diamond { color: #b9f2ff; } .ac-platinum { color: #e5e4e2; }
.ac-locked { color: var(--line); }
.ac-sec h3 { display: flex; align-items: center; }
.ac-sec { padding: 10px 0 0; }
/* audit240: isolation â†’ slot-zIndex bleibt in der Karussell-Ebene, Fixed-Buttons (.cat-fab, #parkBub) bleiben sichtbar.
   audit241: overflow hidden â†’ seitliche Ring-Karten (+80Â°) erzeugen keinen Dokument-Overflow mehr (Layout-Viewport bleibt 390).
   audit245: KEIN mask-image mehr (das machte das Karussell zum Backdrop-Root â†’ backdrop-filter der Karten konnte
   den Seitenhintergrund nicht blurren). Kanten-Fade jetzt per ::after-Overlay in Seitenfarbe â†’ echtes Dock-Glas. */
/* audit384: Höhe wie iOS (210) und **kein** Kanten-Fade mehr — die Karten stehen
   senkrecht und passen ohne Verblassen (User 2026-10-18). */
.ac-carousel { position: relative; isolation: isolate; overflow: hidden; height: 210px; --ink-rgb: 242, 241, 236; --shadow-rgb: 0, 0, 0; --lift: 0px; --sway: 0deg; }
.ac-track:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.ac-track { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.ac-track[data-held="true"] { cursor: grabbing; }
/* audit385: Zentrierung über negative Ränder (nicht `translate(-50%,-50%)`) —
   Prozent-Transforms werden nicht mitskaliert und verschieben skalierte Karten. */
.ac-slot { position: absolute; left: 50%; top: 50%; width: 105px; height: 140px; margin: -70px 0 0 -52.5px; transform-origin: center; }
.ac-float { width: 100%; height: 100%; perspective: 760px; animation: car-bob 5s ease-in-out infinite; }
.ac-track .ac-mini { position: relative; width: 100%; height: 140px; perspective: 900px; }
.ac-sheen { position: absolute; inset: 0; display: block; pointer-events: none; border-radius: 16px; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .ac-float { animation: none; } }
/* audit384: nur noch sanftes Heben/Senken — keine Drehung mehr (Karten bleiben senkrecht) */
@keyframes car-bob {
  0%, 100% { transform: translateY(calc(var(--lift, 4px) * -1)); }
  50% { transform: translateY(var(--lift, 4px)); }
}
/* audit248: Flip-Card (Vorbild React-Bits FlipCard, vanilla) â€” vorne PNG + Titel, hinten Ziel/Stufe/Details.
   Beide FlÃ¤chen in Dock-Glas (rgba .92 + blur 18 saturate 1.4, TÃ¶nung via --ac-face), keine Schatten. */
.ac-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,1.35,.6,1); }
/* audit385: Seiten per **Opacity** umschalten (wie iOS `card(_:)`) — WebKit zeichnet
   trotz `backface-visibility: hidden` sonst die gespiegelte Rückseite mit. */
.ac-mini.flipped .ac-flip, .ac-card.flipped .ac-flip { transform: rotateY(180deg); }
.ac-flip-back { opacity: 0; }
.ac-mini.flipped .ac-flip-back, .ac-card.flipped .ac-flip-back { opacity: 1; }
.ac-mini.flipped .ac-flip-front, .ac-card.flipped .ac-flip-front { opacity: 0; }
.ac-flip-front, .ac-flip-back { transition: opacity .55s cubic-bezier(.3,1.35,.6,1); }
/* audit252/253: Karten-Tint aus dem PNG â€” 3 Farben als weicher Gradient-Blur hinter dem Inhalt. */
.ac-flip-face { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 6px; text-align: center; border-radius: 16px;
  background: rgba(var(--glass-rgb),.92);
  background: color-mix(in srgb, var(--ac-face, var(--face)) 92%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ac-flip-face::before { content: ''; position: absolute; inset: -14%; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(62% 56% at 22% 16%, var(--ac-tint, transparent) 0%, transparent 72%),
    radial-gradient(56% 52% at 84% 44%, var(--ac-tint2, transparent) 0%, transparent 72%),
    radial-gradient(66% 60% at 36% 90%, var(--ac-tint3, transparent) 0%, transparent 74%);
  filter: blur(20px); opacity: .62; }
.ac-flip-face > * { position: relative; z-index: 1; }
.ac-flip-face.ac-flip-back { transform: rotateY(180deg); }
.ac-need { font-size: .78rem; font-weight: 800; color: var(--ac); font-variant-numeric: tabular-nums; }
.ac-tier { font-size: .72rem; font-weight: 700; }
.ac-tier.ac-locked { color: var(--line); }
.ac-goal { font-size: .78rem; font-weight: 700; color: var(--ac); }
.ac-sub { font-size: .78rem; color: var(--muted); }
.ac-mini .ac-ic { width: 70px; height: 70px; display: inline-flex; align-items: center; justify-content: center; }
.ac-mini .ac-ic .icon { width: 44px; height: 44px; }   /* audit384: iOS-Größe (PNG bleibt 70) */
.ac-mini .ac-flip-front b { font-size: .76rem; font-weight: 400; color: var(--muted3); opacity: 0; }   /* audit303: wie „Noch keine Gruppe." */
/* audit305: Name der vordersten Karte schwebt ÜBER der Karte (Label im Karussell, über der Front-Karte) */
.ac-name { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 500;
  font-size: .76rem; font-weight: 400; color: var(--muted3); opacity: 0; pointer-events: none; white-space: nowrap; }
.ac-name.on { animation: acNameFloat 2s ease forwards; }
@keyframes acNameFloat {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  16% { opacity: 1; transform: translate(-50%, 0); }
  74% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}
.ac-flip-back b { font-size: .84rem; font-weight: 700; }
.ac-demoreihe { display: flex; gap: 8px; margin-top: 4px; }
.ac-grid { display: grid; gap: 8px; }
.ac-card, .ac-buddy { position: relative; width: 100%; text-align: left; }
.ac-card { height: 92px; padding: 0; border: none; background: none; cursor: pointer; perspective: 1100px; font: inherit; color: inherit; }
.ac-buddy { display: flex; align-items: center; gap: 12px; background: rgba(var(--glass-rgb),.92); background: color-mix(in srgb, var(--ac-face, var(--face)) 92%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-radius: 16px; padding: 10px 14px; }
.ac-buddy span { font-size: .95rem; color: var(--muted); display: block; }
.ac-card .ac-flip-face { padding: 10px 14px; }
.ac-card .ac-flip-front { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; text-align: left; }
.ac-card .ac-flip-front b { font-size: 1.15rem; }
.ac-card .ac-flip-back { align-items: flex-start; justify-content: center; text-align: left; gap: 2px; }
.ac-card .ac-flip-back b { font-size: .95rem; }
.ac-card .ac-flip-back .ac-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ac-card .ac-ic { flex: none; width: 72px; height: 72px; display: inline-flex; align-items: center; justify-content: center; }
.ac-card .ac-ic .icon { width: 52px; height: 52px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.ac-ic .ac-art { display: block; object-fit: cover; border-radius: 6px; }   /* audit305: minimale, appkonsistente Rundung (wie .cat-row img) */
/* audit380: „seriöse" Erfolgs-Icons sind immer Akzent (iOS `achArt`); im Profil
   bleibt die Tier-Farbe bzw. das Grau der gesperrten Karte (iOS `ProfileCard`). */
.ac-mini .ac-ic .icon, .ac-card .ac-ic .icon { color: var(--ac); }
/* audit241/242: Bilder sind Highlight â†’ groÃŸ (ca. halbe Karte), immer farbig, ohne Rundung. */
.ac-mini .ac-ic .ac-art { width: 70px; height: 70px; }
.ac-card .ac-ic .ac-art { width: 72px; height: 72px; }
@media (prefers-reduced-motion: reduce) { .ac-flip { transition: none; } }

/* ---------- Ãœbungspicker / Katalog ---------- */
.pickchips {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 7px 10px; border-bottom: 1px solid rgba(var(--ink-rgb),.06);
  flex-wrap: nowrap;
}
.pickchips::-webkit-scrollbar { display: none; }
.pickchips + .pickchips { border-top: none; }
.pchip {
  flex-shrink: 0; padding: 5px 11px; border-radius: 999px;
  background: none; color: var(--muted2); font-size: .74rem;
  border: none; cursor: pointer; font-family: inherit;
}
.pchip.on { background: var(--ac); color: #121214; font-weight: 600; }
.pk-m { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--ac); font-size: .78rem; flex-shrink: 0; }
.pk-m .st { width: 11px; height: 11px; }
.pk-m .ht { width: 12px; height: 12px; }
.pk-m b { font-weight: 600; }
/* ---------- Exercise-Picker-Panel ---------- */
.ex-trigger {
  width: 100%; text-align: center; padding: 13px 15px; border-radius: 10px;
  border: none; background: rgba(var(--ink-rgb),.08); color: var(--ink);
  font-size: 1rem; font-family: inherit; cursor: pointer; font-weight: 400;
}
.setrow { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.75fr) 34px; gap: 6px; align-items: center; }
.setrow input { padding: 12px 8px; font-size: 16px; }
.kgcell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.kgcell input { flex: 1; min-width: 0; }
.kgsplit { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; background: rgba(var(--ink-rgb),.08); color: var(--muted); border: none; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; line-height: 0; cursor: pointer; }
.kgsplit .icon { width: 13px; height: 13px; display: block; }
.kgsplit.on { background: var(--ac); color: #121214; }
.kgsplit:active { transform: scale(.92); }
.srow-x { width: 34px; height: 34px; min-width: 34px; max-width: 34px; background: rgba(var(--ink-rgb),.08); color: var(--muted); border: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; line-height: 0; box-sizing: border-box; cursor: pointer; }
.srow-x .icon { width: 16px; height: 16px; display: block; flex: 0 0 16px; }
.srow-x:active { transform: scale(.92); color: #ff5d73; background: rgba(255,93,115,.12); }
.ex-trigger[data-empty] { color: var(--muted3); }
.ex-trigger:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.pk-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .2s ease-out, visibility .2s;
}
/* Sheet + Picker + Verlauf: Hintergrund komplett dicht (kein Durchscheinen dahinter) */
.pk-overlay { background: #121214; }
.pk-panel {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto;
  width: 100%; max-width: 560px; max-height: 86vh; max-height: 86dvh;
  background: var(--face); border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
  transform: translateY(105%); transition: transform .25s cubic-bezier(.23,1,.32,1);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.pk-overlay.open { opacity: 1; visibility: visible; }
.pk-overlay.open .pk-panel { transform: translateY(0); }
@media (min-width: 1024px) {
  .pk-overlay { align-items: center; }
  .pk-panel { position: static; margin: 0; border-radius: 14px; max-height: 76vh; max-height: 76dvh; padding-top: 0; transform: translateY(20px) scale(.98); }
  .pk-overlay.open .pk-panel { transform: translateY(0) scale(1); }
}
.chip .icon { width: 13px; height: 13px; }
.pk-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 10px; border-bottom: 1px solid rgba(var(--ink-rgb),.07);
}
.pk-mag { color: var(--muted2); display: inline-flex; flex-shrink: 0; }
.pk-mag .icon { width: 18px; height: 18px; }
.pk-head input {
  flex: 1; background: none; border: none; padding: 8px 0;
  font-size: 1rem; color: var(--ink); font-family: inherit;
}
.pk-head input:focus { outline: none; }
.pk-head .pchip-ic { padding: 5px 7px; flex-shrink: 0; }
.pk-close {
  width: 34px; height: 34px; padding: 0; border-radius: 9px; flex-shrink: 0;
  background: rgba(var(--ink-rgb),.08); color: var(--ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pk-filters { padding-bottom: 2px; }
.pk-list { overflow-y: auto; flex: 1; padding-bottom: 12px; overscroll-behavior: contain; }
.pk-row { cursor: pointer; }
.pk-row:active { background: rgba(var(--ink-rgb),.1); }
.pk-free .sugg-name { color: var(--ac); font-style: italic; }

/* ---------- Ãœbungspicker legacy-frei ---------- */
.sugg-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px 9px 12px; cursor: pointer;
}
.sugg-item.on, .sugg-item:hover { background: rgba(var(--ink-rgb),.07); }
.sugg-item img, .sugg-ph {
  width: 40px; height: 40px; border-radius: 6px; object-fit: cover;
  background: rgba(var(--ink-rgb),.06); flex-shrink: 0; display: block;
}
.sugg-name { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg-none { padding: 11px; color: var(--muted3); font-size: .84rem; text-align: center; }
.stars { display: flex; gap: 0; align-items: center; flex-shrink: 0; }
.st { width: 12px; height: 12px; fill: none; stroke: var(--line); stroke-width: 1.6; display: block; }
.st.on { fill: var(--ac); stroke: var(--ac); }
.favb { background: none; padding: 4px; border-radius: 8px; flex-shrink: 0; display: flex; }
.ht { width: 15px; height: 15px; fill: none; stroke: var(--line); stroke-width: 1.6; display: block; }
.ht.on { fill: var(--ac); stroke: var(--ac); }
.favb.on .ht { fill: var(--ac); stroke: var(--ac); }

/* ---------- Ãœbungskatalog ---------- */
.cat-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 6px;
}
.cat-row img, .cat-row .sugg-ph { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: rgba(var(--ink-rgb),.06); flex-shrink: 0; }
.cat-row .sugg-name { flex: 1; min-width: 0; }
.btn-more {
  width: 100%; margin: 12px 0 0; padding: 13px;
  background: rgba(var(--ink-rgb),.07); color: var(--muted); font-weight: 600;
}

/* ---------- Filter-Chips (wrappen â€“ nichts bleibt unerreichbar) ---------- */
.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
.chip {
  padding: 8px 15px; border-radius: 999px;
  background: none; color: var(--muted2); font-size: .82rem;
  border: none; cursor: pointer; font-family: inherit;
}
@media (max-width: 480px) {
  .chip { padding: 7px 12px; font-size: .8rem; }
  .chips { gap: 5px; margin-bottom: 8px; }
}
.chip.on { background: var(--ac); color: #121214; font-weight: 600; }
/* Swipe-Reihen wie im Picker (statt Wrap â€” spart Platz) */
.chips.swipe { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 6px; }
.chips.swipe::-webkit-scrollbar { display: none; }
.chips.swipe .chip { flex-shrink: 0; }
/* Uni-Custom: Minifeld neben den Chips */
#uniCustomRow { display: flex; gap: 6px; margin-bottom: 8px; }
#uniCustomRow[hidden] { display: none; }
#uniCustomRow input { flex: 1; min-width: 0; font-size: 16px; }
#uniCustomRow .mini { flex: none; }
.top-nav .navbtn.on { color: var(--ac); }

.empty { color: var(--muted3); text-align: center; padding: 44px 0; }

/* ---------- Switch ---------- */
.togglrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.switch { position: relative; width: 44px; height: 25px; flex-shrink: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.slid { position: absolute; inset: 0; border-radius: 999px; background: rgba(var(--ink-rgb),.15); transition: background .18s ease; }
.slid::before {
  content: ""; position: absolute; width: 19px; height: 19px; border-radius: 50%;
  background: var(--knob); top: 3px; left: 3px; transition: transform .18s ease-out;
}
.switch input:checked + .slid { background: var(--ac); }
.switch input:checked + .slid::before { background: var(--on-ac); transform: translateX(19px); }

/* ---------- Account ---------- */
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acc-mail { font-size: .92rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-sync { color: var(--muted2); font-size: .82rem; margin-top: 10px; }
.acc-hint { color: var(--muted); font-size: .86rem; margin-bottom: 12px; }
.acc-status { color: var(--ac); font-size: .84rem; margin-top: 10px; }
.auth-alt { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.auth-alt .chip { padding: 6px 12px; font-size: .8rem; }
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 6px; width: 32px; height: 32px; padding: 0;
  background: none; color: var(--muted2); border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pw-toggle:hover { color: var(--ink); }
.pw-toggle .icon { width: 17px; height: 17px; }

/* ---------- Audit-Fixes: Fokus & Reduced Motion ---------- */
button:focus-visible, .chip:focus-visible, .navbtn:focus-visible, .edt-pure:focus-visible,
.mini:focus-visible, input:focus-visible, select:focus-visible, #nav a:focus-visible {
  outline: 2px solid var(--ac); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  #zoomer, .wk-head .chev, button, .navbtn { transition: none !important; animation: none !important; }
}

/* ---------- Bild-Zoom-Overlay ---------- */
#zoomer {
  position: fixed; z-index: 200; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background: #17171a; border-radius: 10px; padding: 10px;
  opacity: 0; transform: scale(.95);
  transition: opacity .15s ease-out, transform .15s ease-out;
  box-shadow: 0 14px 44px rgba(0,0,0,.55);
}
#zoomer.on { opacity: 1; transform: scale(1); }
#zoomer img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

/* ---------- Food / Fasten ---------- */
.fsub { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 10px; }
.flab { display: grid; gap: 7px; font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }
.sechead { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted2); margin-bottom: 8px; }
/* Icon statt Bezeichnung (audit172) */
.sec-ic { display: flex; align-items: center; color: var(--muted2); margin-bottom: 8px; }
.sec-ic .icon { width: 16px; height: 16px; }

/* ---------- Statistik ---------- */
.chart {
  width: 100%; height: 190px; display: block; flex: 1; min-width: 0;
  background: rgba(var(--ink-rgb),.045); border-radius: 10px;
}
.chart path.ln { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart-row { display: flex; gap: 6px; align-items: stretch; }
.st-yaxis { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted2); font-size: .72rem; padding: 2px 0; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
/* kompakte Ãœbungsliste (2/3-spaltig, zugeklappt + Expand) */
.st-exlist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (min-width: 700px) { .st-exlist { grid-template-columns: 1fr 1fr 1fr; } }
.st-exrow {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  background: none; border: 1px solid rgba(var(--ink-rgb),.12); border-radius: 10px;
  padding: 7px 10px; color: var(--muted2); font: inherit; font-size: .8rem; cursor: pointer; text-align: left;
}
.st-exrow i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.st-exrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-exrow.on { background: rgba(var(--ink-rgb),.07); border-color: var(--ac); color: var(--ink); }
.axis { display: flex; justify-content: space-between; color: var(--muted2); font-size: .78rem; padding: 5px 2px 0; }
#stLegend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 2px 0; }
.lgd { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--ink-soft); }
.lgd i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.lgd em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Einstellungen: Ordnen / Regeln / Wheel ---------- */
#wheel { border-radius: 50%; display: block; cursor: crosshair; touch-action: none; }
.acc-card { position: relative; }
/* Offen: Trigger ohne Fill. Popup (hier + Block-Farbwahl) immer Milchglas ohne
 * AuÃŸenlinie â€” lesbar Ã¼ber Content, flach in jedem State, kein Overlay-Matsch. */
.acc-card.open .acc-trigger { background: none; }
.acc-trigger { display: flex; align-items: center; gap: 10px; width: 100%; background: rgba(var(--ink-rgb),.06); border: none; border-radius: 12px; padding: 10px 12px; color: var(--ink); cursor: pointer; font: inherit; }
.acc-trigger:active { transform: scale(.99); }
.acc-sw { width: 28px; height: 28px; border-radius: 50%; flex: none; border: 2px solid rgba(var(--ink-rgb),.25); }
.acc-name { flex: 1; text-align: left; font-weight: 600; font-size: .9rem; }
.acc-hex { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.acc-trigger > .icon { width: 16px; height: 16px; color: var(--muted); }
.acc-pop { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: rgba(var(--glass-rgb),.88); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border: none; border-radius: 14px; padding: 14px; margin-top: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.acc-pop[hidden] { display: none; }
.acc-pop #wheel { margin: 0 auto; }
.acc-swatches { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; margin-bottom: 12px; }
.acc-preset { aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; min-width: 0; }
.acc-preset.on { border-color: var(--ink); }
.sliders { display: grid; gap: 8px; margin-top: 12px; }
/* audit381: eigene Farben + Hex-Eingabe (iOS-Akzentkarte) */
.acc-savedrow { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.acc-savedrow .acc-hint { flex: 1; margin: 0; }
.acc-savedrow .mini { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.acc-swatches.acc-saved { margin: 8px 0 0; grid-template-columns: repeat(9, 1fr); }
.acc-swatches.acc-saved:empty { display: none; }
.acc-hexrow { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.acc-hexrow input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
.acc-hexrow .mini { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.acc-savedrow .mini[hidden], .acc-hexrow .mini[hidden] { display: none; }   /* .mini setzt display:flex */
.sliders label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: .88rem; color: var(--ink-soft); }
/* audit393: Der „Heller"-Slider gilt nur im dunklen Design (wie iOS). */
html[data-theme="light"] .acc-heller { display: none; }
input[type="range"] { width: 100%; accent-color: var(--ac); background: none; padding: 0; }
.ordrow, .rulerow, .ovrow {
  display: flex; align-items: center; gap: 8px; padding: 5px 0;
}
.ordrow + .ordrow, .rulerow + .rulerow, .ovrow + .ovrow { border-top: 1px solid rgba(var(--ink-rgb),.05); }
.ord-ic { color: var(--muted); display: inline-flex; }
.ord-name { flex: 1; font-size: .93rem; }
.mini {
  padding: 0; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(var(--ink-rgb),.08); color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.mini .icon { width: 15px; height: 15px; }
.mini:disabled { opacity: .3; }
.mini.wide { width: 100%; padding: 10px; font-size: .88rem; color: var(--muted); }
.rulerow input.rk {
  flex: 1; min-width: 0; padding: 9px 11px; font-size: .92rem;
}
.rulerow select {
  width: 108px; padding: 9px 8px; border-radius: 8px; font-size: .9rem;
  border: none; background: rgba(var(--ink-rgb),.08); color: var(--ink);
}
#ovPick button { background: none; color: var(--ink-soft); font-weight: 600; font-size: .85rem; padding: 8px 12px; }
#ovPick button:hover { background: rgba(var(--ink-rgb),.08); }
/* ---------- Kompakte Status-Icons (Rating/Fav) ---------- */
.stb-c { display: inline-flex; align-items: center; gap: 3px; padding: 4px 6px; border-radius: 8px; color: var(--line); font-size: .8rem; }
.stb-c .st { width: 14px; height: 14px; }
.stb-c b { font-weight: 700; font-size: .84rem; line-height: 1; }
.stb-c.on { color: var(--ac); }
.stb-c.on .st { fill: var(--ac); stroke: var(--ac); }
.ex-meta .pk-m { margin-left: 0; color: var(--ac); gap: 5px; font-size: .74rem; margin-right: 8px; }
.ex-meta .pk-m .ht { width: 11px; height: 11px; }
.ex-meta .pk-m .st { width: 11px; height: 11px; }

/* ---------- Reihenfolge per Drag (Grip) ---------- */
.drg { width: 34px; height: 34px; flex-shrink: 0; background: rgba(var(--ink-rgb),.08); border-radius: 8px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; padding: 0; line-height: 0; }
.drg .icon { width: 17px; height: 17px; stroke-width: 2.4; display: block; }
.drg.on, .drg:active { color: var(--ac); }
[data-sids].dragging { position: relative; z-index: 600; opacity: .96; background: var(--face); border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,.6); touch-action: none; }
.drg-ph { outline: 1.5px dashed var(--ac); outline-offset: -1px; border-radius: 10px; opacity: .55; }
body.drag-hold { -webkit-user-select: none; user-select: none; }

/* ---------- Tages-Tools, Auswahlleiste, EinfÃ¼gen ---------- */
.wk-actions .mini { padding: 7px 10px; font-size: .82rem; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); flex-shrink: 0; }
.wk-actions .mini .icon { width: 13px; height: 13px; }
.wk-actions { flex-wrap: wrap; gap: 6px; }
.wk-actions .wki { padding-left: 34px; margin-right: auto; }
ul.sets li.sel { background: rgba(var(--ink-rgb),.05); border-radius: 8px; }
.selbar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 260; margin: 0 auto; max-width: 536px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #232327; border: 1px solid rgba(var(--ink-rgb),.12); border-radius: 14px; box-shadow: 0 16px 44px rgba(0,0,0,.55); }
.selbar > span { margin-right: auto; font-size: .9rem; color: var(--ink-soft); }
.selbar .mini { padding: 9px 14px; }
.selbar[hidden] { display: none; }

/* ---------- Keyboard-Fix: Panel an d(v)h statt vh (rutscht nicht mehr nach unten) ---------- */
.pk-panel { max-height: 86vh; max-height: 86dvh; }
@media (min-width: 700px) {
  .pk-panel { max-height: 76vh; max-height: 76dvh; }
}

/* ---------- Tap & Hold: Kontext-Sheet + Toast ---------- */
.sheet-overlay { position: fixed; inset: 0; z-index: 340; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; }
.sheet-overlay.open { opacity: 1; visibility: visible; }
.sheet-panel { width: 100%; max-width: 560px; background: var(--face); border-radius: 16px 16px 0 0; padding: 14px; display: grid; gap: 8px; transform: translateY(100%); transition: transform .2s ease-out; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.sheet-overlay.open .sheet-panel { transform: none; }
.sheet-panel button { padding: 14px 16px; border-radius: 10px; background: rgba(var(--ink-rgb),.07); color: var(--ink); font-size: 1rem; font-weight: 400; text-align: left; }
.sheet-panel button:active { transform: scale(.98); }
/* audit393: Toast bleibt in beiden Themes dunkel */
#toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%) translateY(-14px); z-index: 400; background: var(--toast-bg); color: var(--toast-ink); padding: 11px 18px; border-radius: 999px; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; max-width: 90vw; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Zeilendarstellung: SÃ¤tze als Text, ganze Zeile per Tap&Hold wÃ¤hlbar */
.wkb-sets { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 6px; row-gap: 2px; white-space: normal; color: var(--muted); font-size: .86rem; }
.wkb-ex.sel, .ex-block.sel { background: rgba(var(--ink-rgb),.06); outline: 1.5px solid rgba(var(--ink-rgb),.25); border-radius: 10px; }
.ex-block.sel ul.sets li { background: none; }
.wkb-ex, .ex-head, ul.sets li, .cat-row, .pk-row { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
ul.sets li { padding-left: 0; }   /* Ty-Icons bÃ¼ndig unter Griff (kein Alt-Indent) */
ul.sets li.editing { padding-left: 10px; grid-template-columns: 66px 1fr 1fr auto auto; }
.selbar .mini { width: 44px; padding: 0; height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.selbar .mini .icon { width: 16px; height: 16px; }

/* ---------- Set-Zeilen (Add + Edit): kg/Reps/Plus/Hantel ---------- */
.setstack { display: grid; gap: 8px; }
.setadd { width: 100%; padding: 11px 10px; border: 1.5px dashed rgba(var(--ink-rgb),.16); background: none; color: var(--muted); border-radius: 10px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; font-size: .9rem; font-weight: 400; }
.setadd .icon { width: 15px; height: 15px; }
.setadd.mini { padding: 7px 10px; margin-top: 2px; font-size: .82rem; }
.evd, .evx { width: 32px; height: 32px; padding: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.evd { background: none; color: var(--muted3); }
.evd.on { color: var(--ac); }
.evx { background: none; color: var(--line); }
.evx .icon { width: 14px; height: 14px; }
.evr .eik { width: 52px; }
.evr .eik1, .evr .eik2 { width: 44px; }
.evr .ekg-one, .evr .ekg-two { display: inline-flex; gap: 4px; align-items: center; }
.evr { gap: 5px; }
ul.sets li.editing { grid-template-columns: 1fr 1fr 46px auto auto; padding-left: 8px; }
ul.sets li.editing.split { grid-template-columns: 1fr 1fr 1fr 46px auto auto; }
.e-ud { width: 46px; height: 44px; padding: 0; background: rgba(var(--ink-rgb),.08); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted2); }
.e-ud.on { color: var(--ac); background: rgba(var(--ink-rgb),.15); }
.e-ud .icon { width: 17px; height: 17px; }

/* ---------- Wochenzeilen in der Monatsansicht ---------- */
.wkline { display: flex; align-items: center; width: 100%; text-align: left; gap: 8px; background: none; border: none; border-radius: 8px; padding: 14px 6px; color: var(--ink); font-family: inherit; font-size: 1rem; cursor: pointer; }
.wkline .info { flex: 1; min-width: 0; }
.wkline.dim { opacity: .38; }
.wkline.cur { outline: 1.5px solid rgba(var(--ink-rgb),.4); }
.wkline + .wkline { border-top: 1px solid rgba(var(--ink-rgb),.05); }
.wkline:active { transform: scale(.99); background: rgba(var(--ink-rgb),.05); }

.wkline .d-date { font-size: .81rem; }

/* ---------- Monats-Kalender: Tages-Bubbles (iOS-artig) ---------- */
.moncal { display: grid; gap: 6px; }
.wkrow { display: flex; align-items: center; gap: 6px; }
.kwt { width: 34px; flex-shrink: 0; font-size: .62rem; font-weight: 600; color: var(--muted3); text-align: left; padding-left: 4px; font-variant-numeric: tabular-nums; }
.dbw { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dbub { aspect-ratio: 1; border: none; border-radius: 999px; background: rgba(var(--ink-rgb),.06); color: var(--muted); font-size: .86rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; padding: 0; min-width: 0; }
.dbub.empty { background: none; }
.dbub.has { background: var(--ac); color: #121214; font-weight: 700; }
.dbub.cur { outline: 2px solid rgba(var(--ink-rgb),.6); outline-offset: 1px; }
.dbub:active { transform: scale(.92); }

/* ---------- HinzufÃ¼gen: kompakter Icon-Button (ohne Text) ---------- */
.set-actions { display: flex; justify-content: flex-end; }

/* ---------- Ãœbungen-Tab: Icon-Header + einklappbare Filter ---------- */
.catpanel { margin-bottom: 8px; }
.catsearch { margin-bottom: 10px; grid-template-columns: 1fr auto; }
.catsearch input { padding: 11px 12px; }
#catPanelBtn.on { color: var(--ac); }
#catPanelBtn.on .icon { fill: none; }

/* ---------- Grip-Drag in Listen (Positions-MenÃ¼, Reiter-Reihenfolge) ---------- */
.sdrg { width: 30px; height: 30px; flex-shrink: 0; background: rgba(var(--ink-rgb),.08); border-radius: 8px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; padding: 0; line-height: 0; }
.sdrg .icon { width: 15px; height: 15px; stroke-width: 2.4; display: block; }
.sdrg:active { color: var(--ac); }
.sheet-panel button { display: flex; align-items: center; gap: 10px; }
.ordrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; }

/* ---------- Einstellungen: Karten ausklappbar ---------- */
.carth { display: flex; align-items: center; justify-content: space-between; cursor: pointer; min-height: 22px; }
.carth::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted2); border-bottom: 2px solid var(--muted2); transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; flex-shrink: 0; margin-left: 10px; }
.card.closed .carth::after { transform: rotate(-45deg) translateY(-2px); }
.card.closed > :not(.carth) { display: none; }

/* ---------- Ãœbung hinzufÃ¼gen: der eine Action-Button + Add-Sheet ---------- */
.addbtn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px; border-radius: 10px; border: none; background: rgba(var(--ink-rgb),.08); color: var(--ink); font-size: 1rem; font-family: inherit; cursor: pointer; }
.addbtn .icon { width: 18px; height: 18px; }
.addbtn:active { transform: scale(.99); }
.add-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 14px 16px; }
.addcal-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 8px; }
.addcal-head h1 { font-size: 1rem; }
.add-foot { display: flex; gap: 8px; justify-content: center; padding-top: 4px; }
.add-datebar { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.add-datetxt { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted); min-width: 0; }
.add-datetxt .icon { width: 15px; height: 15px; flex: none; }
.add-datebar .chip { white-space: nowrap; flex: none; }

/* ---------- Account-Hub ---------- */
#app { max-width: 640px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom)); box-sizing: border-box; min-height: 100vh; min-height: 100dvh; }
img, canvas { max-width: 100%; }
img.av { object-fit: cover; border-radius: 50%; display: block; }
.acc-overview { display: flex; align-items: center; gap: 14px; }
.acc-overview .av-prev { flex: none; }
.av-prev { position: relative; display: inline-flex; cursor: pointer; border-radius: 50%; }
.av-prev:active { transform: scale(.97); }
.av-badge { position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ac); color: #121214; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg);   /* audit317: folgt dem Heller-Slider (kein sichtbarer Ring) */ }
.av-badge .icon { width: 14px; height: 14px; }
.acc-head { display: flex; align-items: flex-start; gap: 14px; padding: 6px 4px 16px; margin-top: 8px; cursor: pointer; text-align: left; }
.acc-head:active { transform: scale(.99); }
.acc-head .av-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.acc-head .ao-txt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.acc-head .ao-txt strong { font-size: 1.15rem; }
.acc-head .ao-txt > span { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-sync-mini { color: var(--muted); font-size: .7rem !important; text-align: center; }
.acc-sync-chip { align-self: center; font-size: .68rem; color: #b6b5af; background: rgba(var(--ink-rgb),.1); border: 1px solid rgba(var(--ink-rgb),.16); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.acc-sync-chip:active { transform: scale(.97); }
.acc-edit-hint { color: var(--ac) !important; font-size: .8rem !important; margin-top: 2px; }
/* audit249: Profil-Fortschritt (XP, Rang, Badges) */
.pf-rank { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; }
.pf-rank-badge { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(var(--glass-rgb),.92); border: 1px solid rgba(var(--ink-rgb),.08); color: var(--ac); flex: none; }
.pf-rank-badge .icon { width: 26px; height: 26px; }
.pf-rank-txt { flex: 1; min-width: 0; }
.pf-rank-txt b { display: block; font-size: 1.02rem; }
.pf-rank-txt span { font-size: .78rem; color: var(--muted); }
.pf-xpbar { height: 8px; border-radius: 999px; background: rgba(var(--ink-rgb),.08); overflow: hidden; margin: 8px 0 4px; }
.pf-xpbar i { display: block; height: 100%; background: var(--ac); }
.pf-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pf-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; max-width: 92px; padding: 8px 6px; border-radius: 12px;
  background: rgba(var(--glass-rgb),.92); border: 1px solid rgba(var(--ink-rgb),.06); }
.pf-badge .icon { width: 24px; height: 24px; }
.pf-badge span { font-size: .66rem; color: var(--muted); text-align: center; line-height: 1.15; }
.pf-badge em { font-style: normal; font-size: .7rem; font-weight: 800; }
.prof-top { display: flex; gap: 12px; align-items: flex-start; }
.prof-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 420px) { .prof-top { flex-direction: column; align-items: stretch; } .prof-top .av-prev { align-self: center; } }
.av-carousel { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; }
.av-tile { position: relative; flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; cursor: pointer; border: 2px solid var(--face3); }
.av-tile img.av { width: 72px; height: 72px; }
.av-trash { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: #c0392b; color: #fff; border: 2px solid var(--bg);   /* audit317: folgt dem Heller-Slider (kein sichtbarer Ring) */ display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.av-trash .icon { width: 12px; height: 12px; }
.ao-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ao-txt strong { font-size: 1.05rem; }
.ao-txt > span { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ao-stats span { font-size: .74rem; color: #b6b5af; background: rgba(var(--ink-rgb),.07); border-radius: 999px; padding: 3px 9px; }
.spark { width: 100%; height: 28px; display: block; }
.b-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(var(--ink-rgb),.06); }
.b-row:last-child { border-bottom: none; }
.wchip { font-weight: 600; font-size: .85rem; background: var(--ac); color: #121214; border-radius: 999px; padding: 3px 11px; }
.b-date { color: var(--muted); font-size: .82rem; margin-left: auto; margin-right: 8px; }
.b-note { color: var(--muted); font-size: .78rem; margin-left: 6px; }
.b-right { display: flex; align-items: center; gap: 8px; }
.card label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.card label input { width: 100%; margin-top: 5px; }

/* ---------- Add-Seite: eigener stabiler Flow ---------- */
.add-page {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 560px;
  padding-bottom: 36px;
}
.ap-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(var(--ink-rgb),.045);
  border: 1px solid rgba(var(--ink-rgb),.075);
}
.ap-card.ap-sets { background: none; border: none; padding: 14px 0 0; }
/* Tagesansicht direkt: Slim-Topzeile, flache Cards dahinter, Input als Bottom-Card */
/* Kopf folgt --bg (Heller-Slider): color-mix statt fixem Dunkel, sonst steht er bei hoher Helligkeit als Balken raus; saturate runter (war 1.4) */
.ap-toprow { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; padding: 6px 2px; background: rgba(18,18,20,.78); background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1); border-radius: 12px; }
.ap-toprow .navbtn { flex-shrink: 0; }
#apTopVol { display: contents; }
#apTopVol[hidden] { display: none; }
.exvol-row { flex: 1; min-width: 0; display: flex; }
.ap-toprow .exvol-info { flex-basis: 100%; margin: 2px 2px 0; }
#apBlocks { position: relative; z-index: 1; }
/* Kompakt-Stack beim Ziehen: nur Namenszeile, Sets eingestapelt */
#apBlocks ul.sets { overflow: hidden; max-height: 800px; transition: max-height .18s ease, opacity .15s ease, margin .18s ease; }
#apBlocks.compact-drag ul.sets { max-height: 0; opacity: 0; margin: 0; }
#apBlocks.compact-drag .ex-block { padding: 6px 0; }
#apBlocks.compact-drag .ex-head { margin-bottom: 0; }
#apBlocks.compact-drag .ex-block { box-shadow: 0 3px 0 -1px rgba(var(--ink-rgb),.14), 0 6px 0 -2px rgba(var(--ink-rgb),.08); border-radius: 0 0 10px 10px; }
/* Drop-Linie: zeigt wo der Block landet (statt Strichel-Box) */
#apBlocks .drg-ph.line { outline: none; background: rgba(var(--ink-rgb),.55); border-radius: 4px; margin: 5px 0; opacity: 1; }
.ap-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ap-label input {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.ap-date {
  width: 100%;
  max-width: 220px;
  justify-self: center;
  text-align: center;
  font-weight: 600;
}
.ap-results {
  display: grid;
  gap: 4px;
  max-height: min(330px, 40vh);
  overflow-y: auto;
  border-radius: 12px;
  background: rgba(var(--ink-rgb),.035);
  padding: 6px;
}
.ap-results[hidden] { display: none; }
.ap-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 500;
}
.ap-row:active, .ap-row:hover { background: rgba(var(--ink-rgb),.08); transform: none; }
.ap-row img, .ap-row .sugg-ph {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}
.add-page .ex-trigger {
  border: 1px solid rgba(var(--ink-rgb),.12);
}
.ap-chosen {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: rgba(var(--ink-rgb),.08);
  color: var(--ink);
  font-weight: 600;
}
.ap-chosen[data-empty] { color: var(--muted2); font-weight: 400; }
.ap-sets[hidden] { display: none; }
.ap-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;   /* Ãœbung wechseln (ersetzt fixe Pille, sobald Sets da) */
}
.ap-selected img, .ap-selected .sugg-ph {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
.ap-selected > span:not(.pk-m) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.ap-disc { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; background: rgba(var(--ink-rgb),.08); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.ap-disc .icon { width: 24px; height: 24px; }
.ap-selected > span.ap-ph { color: var(--muted); font-weight: 400; }
.add-page .setstack {
  background: transparent;
  border-radius: 12px;
  padding: 0;
}
.ap-save {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  background: var(--ac);
  color: #121214;
}
.ap-save:active { transform: scale(.99); }
.ap-save .icon { width: 18px; height: 18px; }

/* ---------- Meine Workouts (BlÃ¶cke, audit39) ---------- */
.hui-btn-sec {
  position: fixed; left: 0; right: 0; bottom: calc(138px + env(safe-area-inset-bottom));
  width: min(78%, 340px); margin: 0 auto; z-index: 30;
  background: rgba(var(--ink-rgb),.08); color: var(--ink);
  padding: 10px 20px; font-size: .88rem; box-shadow: none;
}
.hui-btn-sec:active { transform: scale(.97); }
/* Workout-Bubbles (Liste) */
.wb-bub {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: rgba(var(--ink-rgb),.06); border: none; border-radius: 16px;
  padding: 13px 14px; color: var(--ink); font: inherit; cursor: pointer; text-align: left;
  transition: transform .18s ease; touch-action: pan-y;
}
.wb-bub:active { transform: scale(.99); }
.wb-bub-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wb-bub-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.wb-bub-main span { color: var(--muted); font-size: .78rem; }
.wb-bub .wb-dot { margin: 0; width: 41px; height: 41px; min-width: 41px; }
/* Swipe-Actions (eingeklappt): links LÃ¶schen, rechts Editieren, je mit Confirm */
/* ---------- audit282/283: Swipe-Zeilen — nah am ReactBits-SwipeRow (solide Flächen, Glyphen) ---------- */
.wb-sr-rail { position: absolute; inset: 0; background: #1a1a1e; }
.wb-sr-act { position: absolute; top: 0; right: 0; width: 80px; height: 100%; margin: 0; padding: 0; border: none;
  cursor: pointer; background: none; color: #121214; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent; }
.wb-sr-act.edit { right: 80px; background: #6db4ff; }
.wb-sr-act.del { right: 0; background: #ff5d73; overflow: hidden;
  transition: width .22s cubic-bezier(.23,1,.32,1); }
.wb-sr-act.del.leap { width: 100%; }
.wb-sr-glyph { display: grid; justify-items: center; transition: transform .16s cubic-bezier(.23,1,.32,1); }
.wb-sr-glyph .icon { width: 22px; height: 22px; }
.wb-sr-act:active .wb-sr-glyph { transform: scale(.97); }
.wb-sr-act::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .wb-sr-act::after { transition: opacity 150ms ease; }
  .wb-sr-act:hover::after { opacity: .08; }
}
/* Verlauf-Liste */
#wbHistList { display: flex; flex-direction: column; gap: 10px; }
.wb-chev { display: inline-flex; color: var(--muted); transition: transform .15s ease; }
.wb-chev .icon { width: 16px; height: 16px; }
.wb-bub.open .wb-chev { transform: rotate(180deg); }
.wb-bub-detail {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  background: rgba(var(--ink-rgb),.06); border-radius: 16px;
  margin: 0 0 12px; padding: 0 14px;
  transition: grid-template-rows .22s ease, opacity .18s ease, padding .22s ease, margin .22s ease;
}
.wb-bub-inner { overflow: hidden; min-height: 0; }
.wb-bub-detail .wb-thumbs { margin: 2px 0 10px; }
.wb-bub-detail .wb-prov { margin: 10px 0 0; }
.wb-bub-actions { display: flex; gap: 8px; margin-top: 0; }
.wb-bub-actions .mini { flex: 1; display: inline-flex; justify-content: center; }
.wb-bub-actions .mini.ok { background: rgba(var(--ink-rgb),.08); color: var(--ac); }
.wb-bub-actions .mini .icon { width: 15px; height: 15px; }
.wb-bub-actions [data-wb-del] { color: #ff5d73; }
/* Block-Farbwahl wie Akzentfarbe */
#wbColorPop #wbWheel { margin: 0 auto; display: block; }
#wbColorPop label { display: block; color: var(--muted); font-size: .8rem; margin-top: 10px; }
#wbColorPop input[type="range"] { width: 100%; }
.wb-thumbs { display: flex; gap: 6px; margin: 9px 0 3px; }
.wb-thumbs img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.wb-thumbs .sugg-ph { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.wb-preset { display: inline-block; background: rgba(var(--ink-rgb),.1); border-radius: 6px; padding: 1px 7px; font-size: .7rem; margin-right: 6px; color: var(--ink-soft); }
.wb-item-head { display: flex; align-items: center; gap: 8px; }
.wb-item-head img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; }
.wb-item-head .sugg-ph { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.wb-item-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.wb-item-head .mini { padding: 6px 9px; flex: none; }
.wb-dot { display: inline-block; width: 9px; height: 9px; min-width: 9px; border-radius: 50%; margin-left: 6px; vertical-align: 1px; }
.wb-prov { color: var(--muted3); font-size: .75rem; margin: 6px 0 10px; }
.wb-item { border-top: 1px solid rgba(var(--ink-rgb),.08); padding: 12px 0; }
.wb-item:first-of-type { border-top: none; padding-top: 2px; }
.wb-item:last-child { padding-bottom: 2px; }
.wb-item-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: end; margin-top: 8px; }
.wb-last { color: var(--muted3); font-size: .76rem; margin-top: 4px; }
/* Kalender-Marker fÃ¼r Block-Sets */
.dbub { position: relative; }
.dbmarks { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.dbmarks i { width: 5px; height: 5px; border-radius: 50%; }
.dbub.has .dbmarks i { background: var(--on-ac) !important; }
/* audit379: Krank-/Ruhetag-Badge (iOS `dayBadge`) — 19 px Kreis in Hintergrundfarbe,
   rechts oben halb auf dem Tageskreis; Kreuz = krank, „zzz" = Ruhetag. */
.dbub .dbadge { position: absolute; right: -2px; top: -2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--bg); color: var(--muted); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.dbub .dbadge .icon { width: 13px; height: 13px; }
.dbub .dm-cross { position: relative; display: block; width: 10px; height: 10px; }
.dbub .dm-cross::before, .dbub .dm-cross::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--muted); border-radius: 2px; }
.dbub .dm-cross::before { width: 10px; height: 2.4px; margin: -1.2px 0 0 -5px; }
.dbub .dm-cross::after { width: 2.4px; height: 10px; margin: -5px 0 0 -1.2px; }
/* audit379: Bestwert-Stapel (iOS `PRWallet`) — eingeklappt ein Streifen über der
   Dock, Tipp fächert auf, Wischen blättert. */
.prw { position: fixed; left: 14px; right: 14px; z-index: 30; height: 60px; overflow: hidden;
  bottom: calc(12px + env(safe-area-inset-bottom) + 52px + 8px);
  transition: height .34s cubic-bezier(.2,.9,.2,1); }
.prw.open { height: 146px; }
.prw-stack { position: relative; height: 146px; }
.prw-card { position: absolute; left: 2px; right: 2px; top: 0; min-height: 118px; padding: 14px;
  border-radius: 16px; background: var(--ac); color: #121214;
  display: flex; flex-direction: column; gap: 8px; transform-origin: 50% 0;
  transition: transform .28s cubic-bezier(.2,.9,.2,1); will-change: transform; }
.prw-head { display: flex; align-items: center; gap: 8px; }
.prw-head .icon { width: 16px; height: 16px; }
.prw-date { font-size: .78rem; font-weight: 600; opacity: .85; }
.prw-sp { flex: 1; }
.prw-share { width: 30px; height: 30px; border: none; border-radius: 50%; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,18,20,.18); color: #121214; }
.prw-share .icon { width: 14px; height: 14px; }
.prw-name { font-size: .95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prw-sub { font-size: .82rem; opacity: .92; font-variant-numeric: tabular-nums; }
body.has-sheet .prw, body.has-kb .prw { visibility: hidden; }
/* Monats-Kopf: Titelbreite wie iOS (`minWidth 150`) — Chevrons springen nicht */
.top-nav .kwg #trackMonthTitle { flex: none; min-width: 150px; }

/* ---------- Pausen-Timer (Rest) ---------- */
.sessbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Volumen-Ziel pro Ãœbung: nur Balken, Tap klappt kompakte Info auf/zu */
.exvol { margin: 10px 0 2px; }
.exvol[hidden] { display: none; }
.exvol-row { display: flex; align-items: center; gap: 4px; }
.exvol-bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 6px 2px; font: inherit; cursor: pointer; }
.exvol-cal { width: 34px; height: 34px; flex-shrink: 0; position: relative; border-radius: 8px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; overflow: hidden; }
.exvol-cal .icon { width: 18px; height: 18px; }
.exvol-cal:active { transform: scale(.92); color: var(--ac); }
.exvol-cal input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; padding: 0; font-size: 16px; cursor: pointer; }
.exvol-track { flex: 1; min-width: 0; height: 8px; border-radius: 4px; background: rgba(var(--ink-rgb),.12); overflow: hidden; }
.exvol-track i { display: block; height: 100%; width: 0; background: #3ddc84; border-radius: 4px; transition: width .2s ease; }
.exvol-chev { color: var(--muted); display: inline-flex; transition: transform .18s ease; }
.exvol-chev .icon { width: 16px; height: 16px; }
.exvol-bar[aria-expanded="true"] .exvol-chev { transform: rotate(180deg); }
.exvol-info { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .78rem; color: #b9b8b3; padding: 2px 2px 4px; font-variant-numeric: tabular-nums; }
.exvol-info[hidden] { display: none; }
.rest-chip {
  margin-left: auto; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid rgba(var(--ink-rgb),.25); color: var(--ink);
  font: inherit; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 6px;
}
.rest-chip .icon { width: 16px; height: 16px; }
.rest-chip.run { border-color: var(--ac); color: var(--ac); }
.rest-chip.done { background: var(--ac); border-color: var(--ac); color: #121214; }
.rest-ov {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s;
}
.rest-ov.open { opacity: 1; visibility: visible; }
.rest-panel {
  position: relative;
  width: 100%; max-width: 480px; max-height: 88vh; max-height: 88dvh; overflow-y: auto;
  background: var(--face); border-radius: 18px 18px 0 0; padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(24px); transition: transform .18s ease;
}
.rest-ov.open .rest-panel { transform: translateY(0); }
@media (min-width: 560px) {
  .rest-ov { align-items: center; }
  .rest-panel { border-radius: 18px; }
}
.rest-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.rest-head h3 { margin: 0; font-size: 1.05rem; }
/* Timer-Overlay icon-only (audit172): Timer-Icon oben, Start/Pause rund darunter */
.rest-top { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 4px; min-height: 34px; }
.rest-timer-ic { color: var(--muted); display: inline-flex; }
.rest-timer-ic .icon { width: 26px; height: 26px; }
.rest-top .mini { position: absolute; right: 0; top: 0; }
.rest-go { width: 64px; height: 64px; border-radius: 50%; border: none; background: var(--ac); color: #121214; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.rest-go .icon { width: 26px; height: 26px; }
.rest-go:active { transform: scale(.94); }
.rest-center { display: flex; justify-content: center; gap: 14px; margin: 12px 0 4px; }
.rest-plain { display: block; margin: 10px auto 0; background: none; border: none; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; padding: 8px; }
.rest-big {
  text-align: center; font-size: 4.2rem; font-weight: 800; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; margin: 8px 0 2px; color: var(--ink);
}
.rest-big.done { color: var(--ac); }
/* audit379: Pausen-Timer (iOS `PauseTimerSheet`) — Zeit + Caption + flacher Slider */
.pause-lbl { text-align: center; font-size: .8rem; color: var(--muted); margin: 0 0 2px; }
.pause-lbl.done { color: var(--ac); }
.pause-slider { margin: 6px 30px 2px; }
.pause-slider input[type="range"] { width: 100%; accent-color: var(--ac); background: none; padding: 0; }
.pause-slider-lbl { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); margin-top: 2px; }
.rest-row { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.rest-row .mini { min-width: 76px; }
.rest-wheels { display: flex; align-items: stretch; justify-content: center; gap: 6px; margin: 6px 0 2px; }
.rest-wcol { display: flex; flex-direction: column; align-items: center; }
.rest-wcap { font-size: .75rem; color: var(--muted); margin-bottom: 2px; }
.rest-wheel {
  height: 132px; width: 92px; overflow-y: scroll; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.rest-wheel::-webkit-scrollbar { display: none; }
.rest-wpad { height: 44px; flex: none; }
.rest-witem {
  height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--muted);
}
.rest-wsep { display: flex; align-items: center; font-size: 1.6rem; color: var(--muted); padding-top: 18px; }

/* ---------- Timer-Bubble (links, Milchglas wie Dock + gleiche HÃ¶he wie Quickstart) ---------- */
.rest-bub {
  position: fixed; left: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 31;
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: rgba(var(--glass-rgb),.62); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: none; color: var(--ink);
  box-shadow: 0 8px 22px rgba(0,0,0,.45); touch-action: none; user-select: none; -webkit-user-select: none;
  font: inherit; padding: 0;
}
.rest-bub .icon { width: 26px; height: 26px; }
/* Stoppuhr-Badge (audit171): Zeit als Badge ueber dem Button bis Stopp */
.rest-bub { overflow: visible; }
.rest-bub [data-rest-b] { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ac); color: #121214; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; padding: 4px 10px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.45); margin: 0; }
.rest-bub [data-rest-b][hidden] { display: none; }
.rest-bub.run { color: var(--ac); }
.rest-bub.done { background: var(--ac); border: none; color: #121214; }
.rest-bub.drag { opacity: .92; box-shadow: 0 14px 34px rgba(0,0,0,.6); }
.rest-bub.docked { left: 0; border-radius: 0 999px 999px 0; width: 44px; transform: translateX(-6px); }
/* ---------- Scan-Bubble (Food, rechts unten â€” Spiegel der Timer-Bubble) ---------- */
.scan-bub {
  position: fixed; right: 14px; bottom: calc(140px + env(safe-area-inset-bottom)); z-index: 31;
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--ac); border: none; color: #121214;
  box-shadow: 0 8px 22px rgba(0,0,0,.45); touch-action: none; user-select: none; -webkit-user-select: none;
  font: inherit; padding: 0;
}
.scan-bub .icon { width: 26px; height: 26px; }
.scan-bub.drag { opacity: .92; box-shadow: 0 14px 34px rgba(0,0,0,.6); }
.scan-bub.docked { right: 0; border-radius: 999px 0 0 999px; width: 44px; transform: translateX(6px); }
/* ---------- Voice-Bubble (Food, rechts oben Ã¼ber Scan, flach) ---------- */
.voice-bub {
  position: fixed; right: 14px; bottom: calc(212px + env(safe-area-inset-bottom)); z-index: 31;
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--glass-rgb),.92); border: none; color: var(--ink);
  box-shadow: 0 8px 22px rgba(0,0,0,.45); touch-action: none; user-select: none; -webkit-user-select: none;
  font: inherit; padding: 0;
}
.voice-bub .icon { width: 26px; height: 26px; }
.voice-bub.drag { opacity: .92; box-shadow: 0 14px 34px rgba(0,0,0,.6); }
.voice-bub.docked { right: 0; border-radius: 999px 0 0 999px; width: 44px; transform: translateX(6px); }

/* ---------- Satztypen (Warm-up / Fehler / Drop) ---------- */
.setrow.hasty { grid-template-columns: 34px minmax(0,1.35fr) minmax(0,.75fr) 34px; }
.tyb {
  width: auto; min-width: 34px; height: 34px; padding: 0 7px; gap: 3px;
  border: none; border-radius: 8px; background: rgba(var(--ink-rgb),.08); color: var(--muted);
  font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.tyb .icon { width: 17px; height: 17px; }
.tyb:active { transform: scale(.92); }
/* Bewertung: mittige Milchglas-Card â€” 5 Sterne (Tap/Slide) + Clear rechts mit Trennlinie */
.rate-ov { position: fixed; inset: 0; z-index: 360; display: flex; align-items: center; justify-content: center; background: rgba(8,8,10,.55); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; }
.rate-ov.open { opacity: 1; visibility: visible; }
.rate-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: rgba(var(--glass-rgb),.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(var(--ink-rgb),.1); box-shadow: 0 18px 50px rgba(0,0,0,.55); transform: scale(.94); transition: transform .2s ease; }
.rate-img { width: 132px; height: 132px; object-fit: cover; border-radius: 14px; background: rgba(var(--ink-rgb),.06); }
.rate-row { display: flex; align-items: center; gap: 12px; }
.rate-ov.open .rate-card { transform: scale(1); }
.rate-stars { display: flex; gap: 2px; touch-action: none; color: var(--muted); }
.rate-stars button { background: none; border: none; padding: 6px; cursor: pointer; }
.rate-stars .st { width: 30px; height: 30px; stroke: currentColor; }
.rate-stars .st.on { fill: var(--ac); stroke: var(--ac); }
.rate-div { width: 1px; align-self: stretch; background: rgba(var(--ink-rgb),.14); }
.rate-fav { background: none; border: none; padding: 6px; cursor: pointer; color: var(--muted); display: inline-flex; }
.rate-fav .ht { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.rate-fav .ht.on, .rate-fav.on .ht { fill: var(--ac); stroke: var(--ac); }
.rate-fav.on { color: var(--ac); }
.rate-fav:active { transform: scale(.92); }
.rate-fav:active { transform: scale(.92); }
.tyb.on-warm { background: rgba(109,180,255,.16); color: #6db4ff; }
.tyb.on-fail { background: rgba(255,93,115,.14); color: #ff5d73; }
.tyb.on-drop { background: rgba(245,197,24,.14); color: #f5c518; }
ul.sets li > .tyb { flex-shrink: 0; }
.wkb-sets .ty { margin: 0 6px 0 0; }
.ty {
  display: inline-block; min-width: 20px; text-align: center;
  font-size: .68rem; font-weight: 800; border-radius: 6px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px;
}
.ty .icon { width: 12px; height: 12px; vertical-align: -1px; }
.ty-warm { background: rgba(109,180,255,.16); color: #6db4ff; }
.ty-fail { background: rgba(255,93,115,.14); color: #ff5d73; }
.ty-drop { background: rgba(245,197,24,.14); color: #f5c518; }

/* ---------- Statistik (openGym-Vorbild, audit56) ---------- */
.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stile { background: rgba(var(--ink-rgb),.06); border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stile b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.stile span { color: var(--muted); font-size: .72rem; display: inline-flex; align-items: center; }
.stile span .icon { width: 14px; height: 14px; }
.stile span i { font-style: normal; margin-left: 4px; font-size: .68rem; }
/* Ãœbungen als eine swipebare Line mit Volumen (nicht separat) */
#stUsed { flex-wrap: nowrap; }
#stUsed .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
#stUsed .chip:not(.on) { opacity: .45; }
#stUsed .sdot2 { width: 9px; height: 9px; border-radius: 50%; flex: none; }
#stUsed .chip em { font-style: normal; color: var(--muted); font-size: .76rem; }
#stUsed .chip.on em { color: inherit; opacity: .75; }
#stPrCard h3 { display: flex; align-items: center; gap: 8px; }
#stPrCard h3 .icon { width: 17px; height: 17px; color: var(--ac); flex: none; }
/* Verlauf aufklappbar, ab Werk zu (audit173) */
.st-vhead { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; color: var(--ink); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; padding: 2px; }
.st-vhead .icon { width: 17px; height: 17px; color: var(--muted); }
.st-vhead span { flex: 1; text-align: left; }
.st-vhead.on { color: var(--ac); }
.st-vhead.on .icon { color: var(--ac); }
.st-vhead .icon:last-child { transition: transform .15s ease; }
.st-vhead.on .icon:last-child { transform: rotate(180deg); }
#stVerlaufBody[hidden] { display: none; }
#stVerlaufBody { padding-top: 12px; }
#resetBody[hidden] { display: none; }
#resetBody { padding-top: 12px; }
/* Heute-IndikatorkÃ¤stchen in der Heatmap */
.st-h.today { outline: 2px solid var(--ac); outline-offset: 1px; }
/* Swipe-Reiter statt Volumenanzeige */
#stSumTabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 10px; }
#stSumTabs::-webkit-scrollbar { display: none; }
#stSumTabs .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
#stSumTabs .chip:not(.on) { opacity: .38; }
#stSumTabs .sdot2 { width: 9px; height: 9px; border-radius: 50%; flex: none; }
/* audit266: Innenabstand, damit der Heute-Ring (outline + offset) am Rand nicht abgeschnitten wird */
.st-heat { display: flex; gap: 3px; overflow-x: auto; padding: 4px 6px 6px 4px; }
.st-hcol { display: flex; flex-direction: column; gap: 3px; flex: none; }
.st-h { width: 11px; height: 11px; border-radius: 3px; background: rgba(var(--ink-rgb),.08); border: none; padding: 0; }
.st-h.e { background: transparent; }
.st-h.l1 { background: rgba(123,216,143,.35); }
.st-h.l2 { background: rgba(123,216,143,.6); }
.st-h.l3 { background: rgba(123,216,143,.85); }
.st-h.l4 { background: #7bd88f; }
button.st-h { cursor: pointer; }
.st-pplrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .86rem; }
.st-pplrow > span { width: 44px; color: var(--ink-soft); flex: none; }
.st-pplbar { flex: 1; height: 10px; border-radius: 6px; background: rgba(var(--ink-rgb),.08); overflow: hidden; }
.st-pplbar i { display: block; height: 100%; border-radius: 6px; }
.st-pplrow b { width: 40px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.st-prrow { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-top: 1px solid rgba(var(--ink-rgb),.08); font-size: .88rem; }
.st-prrow:first-child { border-top: none; }
.st-prrow > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-prrow b { color: var(--ac); white-space: nowrap; }
.st-prrow em { color: var(--muted); font-style: normal; font-size: .76rem; white-space: nowrap; }
/* P1-30: Tastatur-Fokus sichtbar (schlÃ¤gt :focus{outline:none} oben) */
input:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible, a:focus-visible { outline: 2px solid var(--ac, #3ddc84) !important; outline-offset: 1px; }
/* Food-Reiter (audit119): Summenbalken, Makrozeilen, Eintragszeilen (44px-Targets via .mini-Pattern) */
/* Makros: drei gleich breite Spalten unter dem Gesamtbalken, Gramm darunter */
/* Ãœbersicht oben als Card (dezent abgehoben, weiter flach ohne Linien) */
.card.food-sumcard { background: rgba(var(--ink-rgb),.06); border-radius: 16px; padding: 20px; margin-top: 4px; }
.card.food-sumcard h3 { margin-bottom: 12px; }
/* Quick-Add-Chips zentriert */
/* audit264: leere Food-Insel nicht anzeigen (Vanilla bleibt sichtbar, bis die Insel gemountet ist) */
#food-island:empty { display: none; }
#food-vanilla #fqMeal { justify-content: center; }
.food-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(var(--ink-rgb),.08); font-size: .88rem; }
.food-row > div { flex: 1; min-width: 0; }
.food-row .mini { flex: none; }
/* Food-Reiter: Icons in Chips/Buttons/Headlines (flach, ohne Linien â€” wie .chip/.mini) */
#food-vanilla .chip { display: inline-flex; align-items: center; gap: 6px; }
#food-vanilla .card h3 { display: flex; align-items: center; gap: 8px; }
#food-vanilla .card h3 .icon { width: 16px; height: 16px; flex: none; }
#food-vanilla .mini.wide { display: flex; align-items: center; justify-content: center; gap: 8px; }
.food-sub { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.food-macrolines { text-align: right; color: var(--muted); font-size: .76rem; margin-top: 2px; line-height: 1.5; }
.acc-hint { color: var(--muted3); font-size: .76rem; margin-top: 10px; line-height: 1.5; }

/* ---------- audit280/281: Library — fullscreen, zwei vertikale Akkordeon-Spalten ---------- */
.lib-ov { position: fixed; inset: 0; z-index: 92; display: flex; justify-content: center;
  background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease; }
.lib-ov.on { opacity: 1; }
.lib-sheet { width: 100%; max-width: 640px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px;
  height: 100%; padding: calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
  background: rgba(20,20,24,.97); transform: translateY(10px); transition: transform .26s ease; }
.lib-ov.on .lib-sheet { transform: none; }
.lib-top { display: flex; align-items: center; gap: 8px; }
.lib-top .sec-ic { margin: 0; }
.lib-top b { font-size: 1rem; }
.lib-top .mini { background: none; }              /* audit292: nur das Icon, kein Hintergrundfeld */
.lib-wrap { flex: 1; min-height: 0; display: flex; flex-direction: row; gap: 10px; }
.lib-panel { flex: 0 0 60px; min-width: 0; min-height: 0; overflow: hidden; border-radius: 18px;
  background: rgba(var(--ink-rgb),.04);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: flex-grow .45s cubic-bezier(.22,.61,.36,1), background .3s ease; }
.lib-panel.on { flex-grow: 1; background: rgba(var(--ink-rgb),.07); }
.lib-head { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; cursor: pointer; border: none;
  background: none; color: #9a9aa0; font: inherit; font-weight: 700; text-align: left; -webkit-tap-highlight-color: transparent; }
.lib-head .icon { width: 20px; height: 20px; flex: none; }
.lib-panel.on .lib-head { color: var(--ink); }
.lib-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; }
.lib-panel:not(.on) .lib-body { display: none; }
.lib-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 0; background: color-mix(in srgb, var(--ac-face, var(--face)) 68%, #000);   /* audit295: dunkler als die Fläche, folgt dem Heller-Slider */
  -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.lib-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lib-name { flex: 1; min-width: 0; font-size: .84rem; font-weight: 500; overflow: hidden; white-space: nowrap; }
.lib-name.fade, .lib-ename.fade { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); }   /* audit295: kein „…", sondern verblassen */
.lib-chip { font-size: .64rem; line-height: 1.5; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(var(--ink-rgb),.06); color: #9a9aa0; flex: none; }
.lib-chips { display: flex; gap: 4px; flex: none; }
/* Library-Zeilen als Swipe-Zeilen (audit285): Aktionen erst durch die Geste */
.lib-row-wrap { position: relative; border-radius: 12px; overflow: hidden; background: transparent;
  isolation: isolate;
  transition: height .2s cubic-bezier(.23,1,.32,1), opacity .2s ease, margin .2s ease; }
.lib-row-wrap .wb-sr-rail { position: absolute; inset: 0; background: color-mix(in srgb, var(--ac-face, var(--face)) 68%, #000); border-radius: 0; visibility: hidden; }
.lib-row-wrap .wb-sr-act { top: 0; height: 100%; }
.lib-row-wrap .wb-sr-act.ins { left: 0; right: auto; background: var(--ac); border-radius: 0; }
.lib-row-wrap .wb-sr-act.edit { right: 79px; background: #6db4ff; }
.lib-row-wrap .wb-sr-act.del { right: 0; width: 82px; background: #ff5d73; border-radius: 0; }
.lib-row-wrap .wb-sr-act.del.leap { width: 100%; border-radius: 0; }
.lib-row-wrap.fold { height: 0 !important; opacity: 0; margin-bottom: 0 !important; }
.lib-empty { color: var(--muted); font-size: .8rem; padding: 0 4px; margin: 0; text-align: center; }
.lib-empty-info { display: grid; gap: 8px; justify-items: center; padding: 6px 0 2px; }
.lib-info { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none;
  border-radius: 50%; background: rgba(var(--ink-rgb),.05); color: var(--muted); cursor: pointer; }
.lib-info .icon { width: 18px; height: 18px; flex: 0 0 auto; }
.lib-info:active { background: rgba(var(--ink-rgb),.1); }
.lib-addrow { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  justify-self: start; padding: 5px 14px; border: none; border-radius: 999px; background: rgba(var(--ink-rgb),.05); color: var(--ac); cursor: pointer; }
.lib-addrow .icon { width: 13px; height: 13px; flex: 0 0 auto; }
/* audit293/295: Inline-Bearbeiten direkt unter der Zeile (Chips, kein Sheet) */
.lib-epane { overflow: hidden; height: 0; opacity: 0;
  transition: height .22s cubic-bezier(.23,1,.32,1), opacity .18s ease; }
.lib-epane.on { opacity: 1; }
.lib-epane-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 2px 0; }
.lib-eitem { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
  min-height: 40px; padding: 6px 8px 6px 12px; border-radius: 12px; background: rgba(var(--ink-rgb),.05);
  font-size: .8rem; font-weight: 500; cursor: pointer; }
.lib-ename { flex: 1; min-width: 0; color: #e8e7e3; overflow: hidden; white-space: nowrap; }
.lib-menu { display: none; align-items: center; gap: 4px; flex: none; }
.lib-eitem.on .lib-menu { display: inline-flex; animation: libMenuIn .16s ease; }
@keyframes libMenuIn { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.lib-ebtn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: none;
  border-radius: 9px; background: rgba(var(--ink-rgb),.08); color: #ecebe7; cursor: pointer; flex: none; }
.lib-ebtn:active { background: rgba(var(--ink-rgb),.16); }
.lib-ebtn .icon { width: 13px; height: 13px; flex: 0 0 auto; }
.lib-ebtn.del { color: #ff5d73; }
.lib-ecount { min-width: 14px; text-align: center; font-size: .76rem; font-weight: 500; color: var(--ink-soft); }
/* audit291: kleines zentriertes Fenster (Name + Akzentfarbe, Tap-Hold) */
.lib-edit-ov { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease; }
.lib-edit-ov.open { opacity: 1; }
.lib-edit-card { width: min(320px, calc(100vw - 40px)); display: grid; gap: 12px; padding: 16px;
  border-radius: 20px; background: #232327; transform: scale(.97); transition: transform .2s ease; }
.lib-edit-ov.open .lib-edit-card { transform: none; }
.lib-edit-card input { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; border: none;
  background: rgba(var(--ink-rgb),.06); color: var(--ink); font: inherit; }
.lib-edit-colors { display: flex; gap: 10px; justify-content: center; }
.lib-sw { width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer; opacity: .55;
  transition: opacity .15s ease, transform .15s ease; }
.lib-sw.on { opacity: 1; transform: scale(1.14); }
.lib-edit-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- audit306: kompakte Profilkarte (Avatar links, Angaben-Chips, Fortschritt integriert) ---------- */
.pf-card .pf-top { display: flex; align-items: center; gap: 12px; }
.pf-id { flex: 1; min-width: 0; display: grid; gap: 6px; }
.pf-name { font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-chip { border: none; border-radius: 999px; background: rgba(var(--ink-rgb),.06); color: #b9b9bf;
  padding: 3px 9px; font: inherit; font-size: .7rem; cursor: pointer; }
.pf-chip:active { background: rgba(var(--ink-rgb),.12); }
.pf-card .av-badge { transition: transform .18s ease; }
.pf-card #avPrev.open .av-badge { transform: rotate(180deg); }
.pf-data { display: grid; gap: 10px; margin-top: 12px; }
.pf-data[hidden] { display: none; }
.pdata-grid { display: grid; gap: 8px; }
/* audit391: Beschriftung **im** Feld (Platzhalter) statt darüber — spart die Label-Zeilen. */
.pdata-grid input { height: 40px; }
.pf-acts { display: flex; gap: 8px; }
.pf-card .pf-rank { margin-top: 12px; }
/* audit307: Profil-Chips mit SVG-Icons statt Emojis */
.pf-chip { display: inline-flex; align-items: center; gap: 5px; }
.pf-chip .icon { width: 12px; height: 12px; flex: 0 0 auto; color: var(--muted); }

/* ---------- audit308: gesperrte Achievement-Karten im Fortschritt (Flip wie auf der Startseite) ---------- */
.pf-badge.flip { position: relative; width: 58px; height: 58px; padding: 0; border: none; background: none;
  perspective: 620px; cursor: pointer; flex: none; }
.pf-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,1.35,.6,1); }
.pf-badge.flip.on .pf-flip { transform: rotateY(180deg); }
.pf-face { position: absolute; inset: 0; display: grid; place-items: center; gap: 2px; border-radius: 14px;
  background: rgba(var(--ink-rgb),.05); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pf-face.pf-back { transform: rotateY(180deg); padding: 5px; text-align: center; }
.pf-face.pf-back b { font-size: .58rem; font-weight: 600; color: var(--ink-soft); }
.pf-face.pf-back span { font-size: .52rem; color: var(--muted); line-height: 1.25; }
.pf-face.pf-back em { font-size: .56rem; font-style: normal; color: var(--ac); font-variant-numeric: tabular-nums; }
.pf-lock { position: absolute; right: 5px; bottom: 4px; color: var(--muted3); }
.pf-lock .icon { width: 12px; height: 12px; }

/* ---------- audit309: Fortschritts-Karten als Swipe-Reihe mit sanftem Kanten-Fade ---------- */
.pf-badges { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  padding: 2px 0 6px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
.pf-badges::-webkit-scrollbar { display: none; }
.pf-badge { width: 112px; height: 104px; box-sizing: border-box; display: grid; place-items: center; gap: 2px;
  padding: 8px 6px; border-radius: 16px; background: rgba(var(--ink-rgb),.05); text-align: center;
  scroll-snap-align: center; flex: 0 0 auto; }
.pf-badge .ic-set { display: grid; place-items: center; gap: 2px; }
.pf-badge em { font-size: .62rem; font-style: normal; font-weight: 700; }
.pf-badge > span:last-child { font-size: .62rem; color: #b9b9bf; line-height: 1.2; }
.pf-badge.flip { width: 112px; height: 104px; }
.pf-face.pf-back b { font-size: .68rem; }
.pf-face.pf-back span { font-size: .6rem; line-height: 1.3; }
.pf-face.pf-back em { font-size: .64rem; }
.pf-lock { right: 7px; bottom: 6px; }
.pf-lock .icon { width: 14px; height: 14px; }
/* audit309: Name auf der Start-Karte als Chip */
.ac-name { background: rgba(var(--ink-rgb),.06); border-radius: 999px; padding: 3px 10px; }

/* audit310: Reihe wirklich als Reihe (alte Regel setzte wrap + max-width + Border) */
.pf-badges { flex-wrap: nowrap; margin-top: 10px; }
.pf-badge { flex: 0 0 auto; max-width: none; border: none; }
.pf-badge.flip { border: none; }

 50% { transform: translateY(-50%) translateX(3px); } }

/* audit312: statt Indikator wackelt die Reihe (4 s, dann alle 10 s) */
.pf-badges.wig { animation: pfWig .7s ease; }
@keyframes pfWig { 0%, 100% { transform: translateX(0); } 16% { transform: translateX(-8px); } 36% { transform: translateX(6px); } 56% { transform: translateX(-4px); } 76% { transform: translateX(2px); } }

/* audit314 (Audit-Fund): audit311s richtungsabhängige Fade-Regeln waren beim Indikator-Umbau mitgelöscht
 * worden — wieder hergestellt. Fade nur an der Seite, an der es noch weitergeht. */
.pf-badges { -webkit-mask-image: none; mask-image: none; }
.pf-badges.sc-r { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%); }
.pf-badges.sc-l { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 100%); }
.pf-badges.sc-l.sc-r { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
/* toter Rest aus audit306 (Felder liegen jetzt inline) */
.prof-fields { display: none; }

/* audit315: Balken direkt unter Bild/Angaben, Rang darunter, Achievements per Chevron am Kronen-Icon */
.pf-xpbar { margin-top: 12px; }
.pf-card .pf-rank { margin-top: 8px; }
.pf-rank-badge { display: inline-flex; align-items: center; gap: 1px; padding: 0; border: none; background: none; cursor: pointer; }
.pf-chev { display: inline-flex; margin-left: -3px; opacity: .75; transition: transform .18s ease; }
.pf-chev .icon { width: 11px; height: 11px; }
.pf-rank-badge.open .pf-chev { transform: rotate(180deg); }
.pf-rowwrap[hidden] { display: none; }
.pf-card .pf-badges { margin-top: 10px; }

/* audit316: Kronen-Kontrolle wie beim Profilbild — Kreis mit Hintergrund + Chevron im Eckkreis */
.pf-rank-badge { position: relative; width: 46px; height: 46px; border-radius: 50%; padding: 0; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: rgba(var(--ink-rgb),.07); color: var(--ac); }
.pf-rank-badge .icon { width: 26px; height: 26px; }
.pf-chev { position: absolute; right: -4px; bottom: -4px; margin: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ac); color: #121214; display: inline-flex; align-items: center; justify-content: center; opacity: 1;
  transition: transform .18s ease; }
.pf-chev .icon { width: 13px; height: 13px; }
.pf-rank-badge.open .pf-chev { transform: rotate(180deg); }

/* audit322: Chips — Sync in Akzentfarbe, einheitliche Optik */
.pf-chip.pf-chip-info { cursor: default; }

/* audit327: Skeleton-Zeilen (Gruppen-Modul-Start) */
.sk-rows { display: grid; gap: 10px; }
.sk-rows3 { display: flex; gap: 8px; }
.sk-rows3 .sugg-ph { width: 44px; height: 44px; }
.picker .sugg-item .sugg-ph, .pk-list .sugg-item .sugg-ph { width: 44px; height: 44px; border-radius: 6px; background: rgba(var(--ink-rgb),.06); flex: none; }
.picker .sugg-item .sk-l, .pk-list .sugg-item .sk-l { height: 10px; border-radius: 6px; background: rgba(var(--ink-rgb),.06); flex: 1; }

/* audit327: Messwerte aus dem Waechter-Test (Skeleton = echte Blockhoehen) */
#boot .skv-home > .hm-top { min-height: 76px; }
#boot .skv-home > .food-sumcard { min-height: 224px; }   /* audit387: Ring-Höhe (.fk-ring) */
/* audit380: Ring-Skeleton (gleiche Container-Klasse → Höhe stimmt automatisch) */
.sk-circ { position: absolute; left: 50%; top: 50%; display: block; border-radius: 50%;
  background: rgba(var(--ink-rgb),.05); transform: translate(-50%,-50%); }
.sk-circ.big { width: 124px; height: 124px; }
.sk-circ.m0 { width: 56px; height: 56px; margin: -40px 0 0 -96px; }
.sk-circ.m1 { width: 56px; height: 56px; margin: 36px 0 0 0; }
.sk-circ.m2 { width: 56px; height: 56px; margin: -40px 0 0 96px; }
#boot .sk-circ { animation: skPulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #boot .sk-circ { animation: none; } }
#boot .skv-home > .sk-water { min-height: 134px; }
#boot .skv-home > .sk-fasten { min-height: 117px; }

/* audit328: Messwerte Kalender-Skeleton (Waechter) */
#boot .skv-kal > .top-nav { min-height: 40px; }
#boot .skv-kal > .moncal { min-height: 228px; }

/* audit329: Skeletons "nur makro" - keine kleinen Detail-Loader mehr */
#boot .skv-home .sk-macros, #boot .skv-home .sk-coffee, #boot .skv-home .sk-ticks,
#boot .skv-home .sk-track, #boot .skv-food .sk-macros, #boot .skv-food .sk-bar.sm,
#boot .skv-kal .sk-bar, #boot .sk-rows3 { display: none; }
#boot .skv-kat .sugg-ph { display: none; }
#boot .skv-kat > .cat-row { min-height: 56px; }

/* audit330: Skeletons konsequent makro — kein innerer Detail-Loader mehr, nur große Flaechen */
#boot .skv > * > * { display: none; }
#boot .skv > * { animation: skPulse 1.4s ease-in-out infinite; }
#boot .skv-home > .hm-top, #boot .skv-home > .dt-sec,
#boot .skv-kal > .top-nav, #boot .skv-kal > .moncal,
#boot .skv-food > .sk-chips,
#boot .skv-kat > .cat-row { background: rgba(var(--ink-rgb),.045); border-radius: 16px; }
#boot .skv-kat > .cat-row { min-height: 64px; }

/* audit331: Karussell-Block im Home-Skeleton in gemessener Hoehe (236) */
#boot .skv-home > .ac-sec { min-height: 236px; }

/* audit332: Milchiger Blur-Loader — echte Inhalte hinter Milchglas statt Detail-Skeletons */
#boot { background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); }
#boot .skv, #boot[class*="boot-"] .skv { display: none; }
body.booted #boot { opacity: 0; }

/* audit333: animierte Hantel im Loader (Scheiben fahren von aussen auf die Stange) */
.bootbar { position: absolute; left: 0; right: 0; top: 50%; display: flex; justify-content: center; transform: translateY(-50%); }
.bootbar-svg { width: 120px; height: 40px; color: var(--ac); overflow: visible; }
.bootbar .bar, .bootbar .collar { fill: var(--muted3); }
.bootbar .plate { fill: var(--ac); animation: bootPlateIn 2.8s cubic-bezier(.32,1.25,.5,1) infinite; }
.bootbar .p1 { --dx: 42px; animation-delay: 0s; }
.bootbar .p2 { --dx: 58px; animation-delay: .16s; }
.bootbar .p3 { --dx: -42px; animation-delay: .08s; }
.bootbar .p4 { --dx: -58px; animation-delay: .24s; }
@keyframes bootPlateIn {
  0%, 6% { transform: translateX(0); opacity: 0; }
  14% { opacity: 1; }
  42%, 72% { transform: translateX(var(--dx)); opacity: 1; }
  86%, 100% { transform: translateX(var(--dx)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bootbar .plate { animation: none; opacity: 1; transform: translateX(var(--dx)); }
}

/* audit334: Hantel-Loader simpler — nur eine Scheibe je Seite, ruhiger und kleiner */
.bootbar-svg { width: 100px; height: 34px; }
.bootbar .p2, .bootbar .p4 { display: none; }
.bootbar .p1 { --dx: 46px; animation-delay: 0s; }
.bootbar .p3 { --dx: -46px; animation-delay: 0s; }
.bootbar .plate { animation-duration: 3.2s; }

/* audit335: Hantel-Loader einfacher — ohne Akzentfarbe; Scheiben wachsen vertikal an und wieder ab (loop) */
.bootbar-svg { color: var(--muted3); }
.bootbar .bar, .bootbar .collar, .bootbar .plate { fill: currentColor; }
.bootbar .plate { animation: none; opacity: 1; transform: none; transform-box: fill-box; transform-origin: center; }
.bootbar .p2, .bootbar .p4 { display: block; }
.bootbar .p1, .bootbar .p3 { animation: bootGrow 3.6s ease-in-out infinite; }
.bootbar .p1 { animation-delay: 0s; }
.bootbar .p3 { animation-delay: .18s; }
.bootbar .p2 { animation-delay: .55s; }
.bootbar .p4 { animation-delay: .73s; }
@keyframes bootGrow {
  0%, 100% { transform: scaleY(0); }
  30%, 72% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bootbar .p1, .bootbar .p2, .bootbar .p3, .bootbar .p4 { animation: none; transform: scaleY(1); }
}

/* audit336: Loader = Uebungs-Icon (dumb) 1:1 — gestrichelte Linien, Vertikalen wachsen */
.bootbar-svg { width: 92px; height: 92px; color: var(--muted3); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.bootbar-svg .bar { stroke: currentColor; }
.bootbar .plate { fill: none; animation: bootGrow 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bootbar .pl-in { animation-delay: 0s; }
.bootbar .pl-out { animation-delay: .7s; }

/* audit337: milchiger Schleier ruhiger (PWA) — laengerer Fade, mehr Deckkraft, Compositor-Hinweise */
#boot { background: color-mix(in srgb, var(--bg) 76%, transparent); transition: opacity .38s ease; }
#boot.bootbar { will-change: opacity; }
.bootbar, .bootbar-svg, .bootbar .plate { will-change: transform, opacity; }
.bootbar-svg { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* audit338: Loader folgt dem sichtbaren Zentrum (stabil beim Einfahren der Adressleiste) */
#boot .bootbar { top: var(--bootcenter, 50%); }

/* audit341: Loader als eigenes Fixed-Overlay — unabhaengig vom Safe-Area-Padding der Maske */
.bootbar { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  top: auto; transform: none; pointer-events: none; }
.bootbar-svg { width: 92px; height: 92px; }

/* audit342: kleine optische Korrektur nach oben + Debug-Overlay aus dem Weg */
.bootbar-svg { margin-bottom: 9vh; }

/* audit345 (Debug-Fund): .bootbar war nur in der unteren Bildhaelfte (top:auto hob inset:0 aus) */
.bootbar { position: fixed; inset: 0; top: 0; bottom: 0; left: 0; right: 0; transform: none;
  display: flex; align-items: center; justify-content: center; pointer-events: none; }
.bootbar-svg { margin-bottom: 0; }

/* audit346 (Debug-Fund): (1) audit338-Override top:50% aushebeln -> Box wieder vollflaechig
   (2) Hantel auf feste 360px von oben -> stabil, auch wenn der PWA-Viewport um ~59px waechst */
#boot .bootbar { top: 0; }
.bootbar { display: flex; align-items: flex-start; justify-content: center; padding-top: min(360px, 46vh); }

/* audit349: Sync-Chip akzentuiert im App-Stil (wie .pf-chev / .mini.ok: Akzentflaeche + dunkle Schrift) */
.pf-chip-sync { background: var(--ac); color: #121214; }
.pf-chip-sync .icon { color: #121214; }

/* audit350: Bild-Fade + Skeleton-Fläche in Ladecontainern (Emojis solange ausgeblendet) */
img { transition: opacity .2s ease; }
img:not([data-il]) { opacity: 0 !important; }
.imgpend > :not(img) { opacity: 0; transition: opacity .2s ease; }

/* audit352: Gruppen-Sheet — X ohne Hintergrund (Icon only) */
.gs-close { display: flex; align-items: center; justify-content: center; padding: 8px; border: none; background: none; color: var(--ink-soft); cursor: pointer; }
.gs-close .icon { width: 18px; height: 18px; }

/* audit353: Gruppen-Sheet — weniger Raum, X rechts */
.gs-head { justify-content: flex-end; padding: 4px 10px 0; }
.gs-close { padding: 6px; }

/* audit354: Gruppen-Sheet — X rechts (robust) + kompakter Kopf */
.gs-head { display: flex; align-items: center; justify-content: flex-end; padding: 2px 8px 0; }
.gs-close { margin-left: auto; padding: 6px; }

/* audit355: Gruppen-Sheet-Kopf — Avatar links (Männchen-Fallback), Kamera-Icon, X rechts, Felder mit Stift */
.gs-head { display: flex; align-items: center; gap: 8px; padding: 2px 8px 0; }
.gs-spacer { flex: 1; }
.g-av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(var(--ink-rgb),.08); color: var(--muted); flex: none; }
.g-av img { width: 100%; height: 100%; object-fit: cover; }
.g-ph .icon { width: 26px; height: 26px; }
.g-pick, .gs-del { width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(var(--ink-rgb),.06); color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.g-pick .icon, .gs-del .icon { width: 15px; height: 15px; }
#gImg { display: none; }
.g-field { position: relative; display: block; margin-bottom: 8px; }
.g-field input { width: 100%; box-sizing: border-box; padding-right: 36px; }
.g-pen { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.g-pen .icon { width: 15px; height: 15px; }

/* audit356: Avatar ist der Button (kein extra Kreis), kompakter Kopf */
.g-av { border: none; padding: 0; cursor: pointer; }
.g-pick, .gs-del { display: none; }

/* audit359: Gruppenbild-Sheet (zwei grosse Icon-Aktionen) */
.gimg-acts { display: flex; gap: 14px; justify-content: center; padding: 6px 0 16px; }
.gi-btn { width: 56px; height: 56px; border: none; border-radius: 50%; background: color-mix(in srgb, var(--ac-face, var(--face)) 92%, transparent);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gi-btn.del { color: #ff5d73; }
.gi-btn .icon { width: 24px; height: 24px; }

/* audit361: Gruppen-Feed-Kopf — Zahnrad unakzentuiert neben dem Namen, Kamera als Badge am Bild */
.grp-setbtn { margin-left: 6px; vertical-align: middle; width: 28px; height: 28px; border: none; background: none;
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.grp-setbtn .icon { width: 17px; height: 17px; }
.grp-cam { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border: none; border-radius: 50%;
  background: rgba(var(--glass-rgb),.92); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.grp-cam .icon { width: 13px; height: 13px; }
/* Bild-Sheet kompakter */
.gimg-panel { max-width: 300px; }
.gimg-acts { padding: 2px 0 10px; gap: 10px; }
.gi-btn { width: 48px; height: 48px; }
.gi-btn .icon { width: 21px; height: 21px; }

/* audit362: Kamera-Badge sauber (runde Fläche, Rand in Hintergrundfarbe) */
.grp-cam { right: -1px; bottom: -1px; width: 26px; height: 26px; border: 2px solid var(--bg); box-sizing: border-box;
  background: color-mix(in srgb, var(--ac-face, var(--face)) 92%, transparent); color: var(--ink); }
.grp-cam .icon { width: 14px; height: 14px; }

/* audit363: Kamera-Badge hart quadratisch (nichts darf sie oval ziehen) */
.grp-cam { display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; min-width: 26px; max-width: 26px; min-height: 26px; max-height: 26px;
  aspect-ratio: 1 / 1; padding: 0; line-height: 0; box-sizing: border-box; border-radius: 50%; overflow: hidden; }
.grp-cam .icon { width: 14px; height: 14px; flex: 0 0 auto; }

/* audit364: Kopf-Zeile bleibt einzeilig (Name verblasst), Zahnrad flex-none, Kamera-Badge in Akzentfarbe */
.grp-head h1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.grp-nm { min-width: 0; overflow: hidden; white-space: nowrap; }
.grp-nm.fade { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); }
.grp-setbtn { flex: 0 0 auto; }
.grp-cam { background: var(--ac); color: #121214; }
.grp-cam .icon { color: #121214; }

/* audit365: Update-Banner — Press wirkt nur auf der Schrift; nie vor der Boot-Maske */
#updbar { z-index: 400; }
body.booting #updbar, body.booting #updbar * { display: none; }
#updbar:active, #updbar:focus, #updbar:focus-visible { transform: none; outline: none; }
#updbar:active > * { opacity: .75; }

/* audit367: Boot-Maske vollflaechig decken (vorher max-width:640px -> Seitenteile blitzten unmaskiert) */
#boot { max-width: none; width: 100%; left: 0; right: 0; margin: 0; z-index: 600; }
#boot .bootbar { position: fixed; }
/* waehrend des Boots keine Bild-Fades (ein Bauteil weniger, das sich bewegt) */
body.booting img:not([data-il]) { opacity: 1 !important; }
body.booting .imgpend { background: none !important; }

/* audit375: Körper-Heatmap (Port der iOS-Karte) — zwei Körper, 8 Stufen,
   mittrainierte Bereiche eigene schwache Staffel. */
#stBodyCard .chips { margin-top: 8px; }
.body-wrap { display: flex; gap: 12px; justify-content: center; align-items: flex-start; margin-top: 10px; }
.body-wrap .body-svg { width: auto; height: 300px; max-width: 48%; }

/* audit376: Slide-to-log (iOS-Geste) + Scheibenrechner */
#hmTrack { position: relative; }
#hmDay .fast-arm { position: absolute; inset: 0; z-index: 3; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; overflow: hidden; }
#hmDay .fast-arm[hidden] { display: none; }
/* audit386: Knopf = ChevronBar (iOS, Spitze 16 px), weiß 12 %, 96 px + Zug */
#hmDay .fast-arm i { position: absolute; left: 0; top: 0; bottom: 0; width: 96px;
  background: rgba(var(--ink-rgb),.12);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  transition: width .35s cubic-bezier(.2,1.25,.4,1); }
#hmDay .fast-arm.drag i { transition: none; }
#hmDay .fast-arm span { position: relative; font-size: .94rem; font-weight: 600; color: var(--bg); }
#hmDay.logarm .hm-handle, #hmDay.logarm .hm-now, #hmDay.logarm .hm-meta, #hmDay.logarm .hm-act { opacity: 0; pointer-events: none; }
#hmDay.logarm .hm-ticks span { opacity: 0; }   /* audit386: Zahlen weg im Zieh-Modus (iOS) */
/* ============ audit392: Scheibenrechner (1:1 iOS `PlateCalculatorSheet`) ============ */
.plate-ov { align-items: flex-end; }
.plate-panel { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 16px;
  height: 660px; max-height: calc(100dvh - 24px); padding: 30px 22px 24px; }
.plate-grab { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 38px; height: 5px;
  border-radius: 999px; background: rgba(var(--ink-rgb),.28); }
/* Ziel: ‹ [Zahl] › — Wischen ±0,25 kg, Chevrons zeigen das an */
.plate-target { display: flex; align-items: center; gap: 12px; min-height: 64px; touch-action: pan-y; user-select: none; }
.plate-chev { display: inline-flex; color: var(--muted); }
.plate-chev .icon { width: 13px; height: 13px; }
.plate-target-box { position: relative; flex: 1; display: grid; place-items: center; }
.plate-target-box input { width: 100%; text-align: center; font-size: 42px; font-weight: 800; letter-spacing: -.02em;
  background: none; border: 0; padding: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.plate-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; color: var(--muted); pointer-events: none; }
.plate-ph[hidden] { display: none; }
/* Stange: Stepper mit × daneben ↔ Chip „Stange?" */
.plate-bar { display: flex; justify-content: center; }
.plate-bar-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.plate-bar-label { font-size: 11px; color: var(--muted); }
.plate-step { position: relative; display: flex; align-items: center; border-radius: 12px; background: rgba(var(--ink-rgb),.08); }
.plate-panel .plate-step-btn { width: 34px; height: 40px; background: none; border: 0; color: var(--ink); font-size: 17px; font-weight: 600; cursor: pointer; }
.plate-step-val { min-width: 64px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.plate-panel .plate-bar-x { position: absolute; left: 100%; top: 0; width: 30px; height: 40px; display: inline-flex; align-items: center;
  justify-content: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.plate-panel .plate-bar-x .icon { width: 12px; height: 12px; flex: none; }
.plate-panel .plate-bar-chip { align-self: center; padding: 8px 16px; border-radius: 999px; border: 0; background: rgba(var(--ink-rgb),.06);
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
/* Langhantel: Stange + Scheiben an den Enden, Drop-Ziel */
.plate-barbell { display: flex; align-items: center; justify-content: center; height: 250px; transition: transform .22s ease, filter .22s ease; }
.plate-barbell.empty { opacity: .5; }
.plate-barbell.drop { transform: scale(1.02); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--ac) 35%, transparent)); }
.plate-barbell-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  width: 100%; padding: 0 16px; box-sizing: border-box; }
.plate-bar-line { position: absolute; left: 0; right: 0; top: 50%; height: 14px; margin-top: -7px; border-radius: 7px; background: rgba(var(--ink-rgb),.35); }
.plate-side { position: relative; display: flex; align-items: center; }
.plate-panel .plate-disc { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 5px 0 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; }
.plate-disc-num { font-weight: 700; line-height: 1.1; white-space: nowrap; }
.plate-disc-rest { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-size: 10px; font-weight: 600; }
/* Ablage: lose Scheiben (Donut) */
.plate-tray { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 86px; margin-top: auto; }
.plate-panel .plate-loose { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: grab; touch-action: none; }
.plate-loose.drag { opacity: .35; }
.plate-donut { display: block; border-radius: 50%; }
.plate-loose-num { font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* Zahnrad + Bestand */
.plate-panel .plate-gear { align-self: center; width: 44px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--muted); cursor: pointer; }
.plate-panel .plate-gear .icon { width: 15px; height: 15px; flex: none; }
.plate-stock { width: max-content; max-width: calc(100vw - 16px); position: absolute; left: 50%; bottom: 68px; transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--ac-face, var(--face));
  box-shadow: 0 6px 14px rgba(0,0,0,.18); z-index: 5; }
.plate-stock[hidden] { display: none; }
.plate-stock-label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.plate-stock-chips { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; }
.plate-panel .plate-stock-chip { padding: 7px 9px; border-radius: 999px; border: 0; background: rgba(var(--ink-rgb),.06); color: var(--muted);
  font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.plate-panel .plate-stock-chip.on { background: var(--ac); color: #fff; font-weight: 600; }
/* Finger-Scheibe (folgt dem Zeiger) */
.plate-ghost { position: fixed; z-index: 360; display: flex; flex-direction: column; align-items: center; gap: 4px;
  transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }

/* ---------- audit397: Pausen-Fenster (iOS `PauseTimerSheet`) ---------- */
.rest-plates { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--ac); color: var(--on-ac); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rest-plates .icon { width: 16px; height: 16px; }
.rest-win { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 6px; }
.rest-sum { display: flex; flex-direction: column; gap: 2px; }
.rest-row { display: grid; grid-template-columns: minmax(0,1fr) 22px auto auto; gap: 8px; align-items: center;
  font-size: .82rem; color: var(--ink-soft); padding: 3px 0; }
.rest-row i { font-style: normal; color: var(--muted); text-align: center; }
.rest-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rest-vol { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.rest-vol b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rest-pct { font-style: normal; font-size: .74rem; color: var(--muted); }
.rest-pct.up { color: #50c878; }
.rest-pct.down { color: #ff5d73; }
.rest-sugg { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2px; }
.rest-sugg-card { flex: 0 0 100%; scroll-snap-align: center; display: grid; grid-template-columns: 132px minmax(0,1fr);
  gap: 14px; align-items: start; text-align: left; background: rgba(var(--ink-rgb),.05); border: 0; border-radius: 14px;
  padding: 12px; cursor: pointer; font: inherit; }
.rest-sugg-l { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rest-sugg-l .rest-sugg-img { width: 132px; height: 132px; border-radius: 12px; object-fit: cover; background: rgba(var(--ink-rgb),.06); }
.rest-sugg-l > span { font-size: .94rem; font-weight: 600; color: var(--ink); }
.rest-sugg-r { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rest-sugg-r em { font-style: normal; font-size: .76rem; color: var(--muted); line-height: 1.35; }
.rest-sugg-r b { font-size: 1.06rem; color: var(--ink); font-variant-numeric: tabular-nums; }
#weightStepRow { display: flex; gap: 8px; align-items: center; }
#weightStepRow input { flex: 1; min-width: 0; }

/* ---------- audit401: „Letzte Werte"-Chip (iOS `lastValuesSection`) ---------- */
.lv-row { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; overflow-x: auto; padding: 1px 0 3px; }
.lv-row[hidden] { display: none; }
.lv-chip { flex: none; border: 0; border-radius: 999px; padding: 7px 14px; font-size: .78rem; font-weight: 600;
  font-family: inherit; cursor: pointer; background: rgba(var(--ink-rgb),.06); color: var(--ink); }
.lv-chip.main { background: var(--ac); color: var(--on-ac); padding: 7px 14px; }
.lv-chip.more { font-weight: 400; color: color-mix(in srgb, var(--ink) 80%, transparent); padding: 7px 12px; }
