/* ============================================================
   styles.css – TRAIN design system
   Mobile-first · Dark theme · WCAG 2.1 AA touch targets (44px)
   ============================================================ */

/* ── Selbst gehostete Schriftarten ─────────────────────────────
   Ersetzt den früheren Live-Aufruf von fonts.googleapis.com/
   fonts.gstatic.com (einziger externer Netzwerk-Aufruf der App —
   widersprach der eigenen "kein Server"-Datenschutz-Positionierung).
   Dateien 1:1 von Google Fonts übernommen (Bebas Neue v16, DM Sans
   v17), unicode-range unverändert übernommen für Latin/Latin-Ext. */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/BebasNeue-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/BebasNeue-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('./fonts/DMSans-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('./fonts/DMSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --c-bg:        #0E0E10;
  --c-surface:   #1A1A1E;
  --c-surface2:  #242428;
  --c-border:    #2E2E35;
  --c-border-hi: #48484F;

  --c-accent:    #C8FF00;
  --c-accent-dk: #9DCC00;
  --c-deload:    #FF6B35;
  --c-deload-bg: #1E1508;
  --c-deload-bd: #6B3A00;

  --c-ok:        #00E676;
  --c-warn:      #FFB300;
  --c-danger:    #FF4444;
  --c-blue:      #4FC3F7;

  --c-text:      #F0F0F0;
  --c-text-2:    #B0B0B8;
  --c-text-3:    #90909A;

  --font-sans:   'DM Sans', system-ui, sans-serif;
  --font-display:'Bebas Neue', var(--font-sans);

  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;

  --r-sm:  6px; --r-md: 10px; --r-lg: 14px;
  --r-xl: 20px; --r-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 12px rgba(0,0,0,.5);

  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast:   120ms var(--ease);
  --t-normal: 220ms var(--ease);

  --touch: 44px;
  --nav-h: 44px;
  --day-h: 58px;
  --tabs-h: 108px; /* fallback; overridden dynamically after first render */

  /* iOS safe-area insets — env() falls back to 0px on Android/Desktop */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--c-bg);
  /* html and body are fixed, non-scrolling shells.
     #app is the single scroll container.
     This prevents phantom scroll space when content is short
     (e.g. all day-accordions collapsed). */
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Fixed shell – no scrolling, no min-height that creates phantom space */
  height: 100%;
  overflow: hidden;
}
img { display: block; }
svg { display: block; }
button, input, select, textarea { font: inherit; }

/* ── #app – the ONE scroll container ──────────────────────────
   All scrolling happens here. html+body are fixed shells.
   This guarantees:
   1. No phantom scroll space when content is short.
   2. No rubber-band overscroll showing the bg colour.
   3. Sticky children (nav, day headers) work correctly because
      their nearest scroll ancestor is #app, not body.          */
#app {
  /* Fill the full viewport */
  position: fixed;
  inset: 0;
  /* Scroll vertically, clip horizontally */
  overflow-x: hidden;
  overflow-y: auto;
  /* Kill overscroll/rubber-band on iOS and Android */
  overscroll-behavior: none;
  /* Smooth momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  background: var(--c-bg);
}

/* ── Accessibility ─────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: var(--r-sm); }
:focus:not(:focus-visible) { outline: none; }

/* ── Pages ─────────────────────────────────────────────────── */
.page {
  display: none;
  padding: var(--sp-3);
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  /* Bottom padding so content clears the toast/storage-warning bar + iOS home indicator */
  padding-bottom: calc(var(--sp-3) + 80px + var(--sab));
}
.page.is-active { display: block; }
.page-title { font-family: var(--font-display); font-size: 24px; letter-spacing: .1em; margin-bottom: 2px; }
.page-subtitle { font-size: 12px; color: var(--c-text-3); margin-bottom: var(--sp-4); }

/* ── Top nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 300;
  height: calc(var(--nav-h) + var(--sat));
  padding-top: var(--sat);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: var(--sp-3); padding-right: var(--sp-3); gap: var(--sp-2);
}
/* 5.1: logo is a home button */
.nav__logo {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: .18em;
  color: var(--c-accent); flex-shrink: 0; line-height: 1;
  background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: none;
}
.nav__logo:hover { opacity: .8; }
.nav__tabs { display: flex; gap: var(--sp-1); overflow-x: auto; scrollbar-width: none; }
.nav__tabs::-webkit-scrollbar { display: none; }
.nav__tab {
  min-height: var(--touch); min-width: var(--touch);
  padding: 0 var(--sp-3);
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: var(--r-full); background: none;
  color: var(--c-text-3); cursor: pointer; position: relative;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__tab svg { width: 22px; height: 22px; }
.nav__tab:hover { background: var(--c-surface2); color: var(--c-text-2); }
.nav__tab.is-active { background: var(--c-surface2); color: var(--c-text); }

/* Icon-only Tabs sind schon schmal genug für 5 Stück — etwas engerer
   Abstand auf sehr schmalen Screens, damit alle 5 ohne Scroll passen. */
@media (max-width: 359px) {
  .nav__tab { padding: 0 var(--sp-2); }
  .nav__tab svg { width: 20px; height: 20px; }
}

/* ── Week navigation ───────────────────────────────────────── */
.week-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) 0 var(--sp-2); gap: var(--sp-2);
}
.week-nav__btn {
  width: var(--touch); height: var(--touch);
  border-radius: var(--r-full); border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.week-nav__btn svg { width: 20px; height: 20px; }
.week-nav__btn:hover { background: var(--c-surface2); border-color: var(--c-border-hi); }
.week-nav__btn:disabled { opacity: .35; cursor: not-allowed; }
.week-nav__info { text-align: center; flex: 1; min-width: 0; }
.week-nav__label {
  font-family: var(--font-display); font-size: 20px; letter-spacing: .06em;
  line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.week-nav__label--deload { color: var(--c-deload); }
.week-nav__label--vacation { color: #D97706; }
.wk-badge-vacation {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  background: #D97706; color: #fff;
  padding: 1px 7px; border-radius: var(--r-full); letter-spacing: .04em;
  flex-shrink: 0;
}
.week-nav__range { font-size: 11px; color: var(--c-text-3); }

/* ── Toolbar (now lives inside .day-tab-bar) ───────────────── */
.toolbar {
  display: flex; gap: var(--sp-2); align-items: center;
  padding-bottom: var(--sp-3); flex-wrap: wrap;
}
.day-tab-bar__toolbar {
  display: flex; gap: var(--sp-2); align-items: center;
  padding-bottom: var(--sp-2);
  overflow-x: auto; scrollbar-width: none;
}
.day-tab-bar__toolbar::-webkit-scrollbar { display: none; }
/* B1: Compact deload toggle (replaces two-button mode-pill) */
.deload-toggle {
  height: 30px; padding: 0 var(--sp-3);
  border: 1px solid var(--c-border); border-radius: var(--r-full);
  background: var(--c-surface); color: var(--c-text-3);
  font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 2px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0; white-space: nowrap;
}
.deload-toggle svg { width: 12px; height: 12px; }
.deload-toggle:hover { color: var(--c-text-2); border-color: var(--c-border-hi); }
.deload-toggle.is-active { background: var(--c-deload); color: #000; border-color: transparent; }
.deload-toggle.is-active--vacation { background: #D97706; color: #fff; border-color: #D97706; }

.toolbar__spacer { flex: 1; }
.toolbar__btn {
  width: var(--touch); height: var(--touch);
  border-radius: var(--r-md); border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.toolbar__btn svg { width: 20px; height: 20px; }
.toolbar__btn:hover { background: var(--c-surface2); color: var(--c-text); border-color: var(--c-border-hi); }
.toolbar__btn--accent { background: var(--c-accent); color: #000; border-color: transparent; }
.toolbar__btn--accent:hover { background: var(--c-accent-dk); }
.toolbar__btn--danger:hover { border-color: var(--c-danger); color: var(--c-danger); }
.toolbar__btn--deload.is-dl { background: var(--c-deload); color: #000; border-color: transparent; }
.toolbar__btn--vacation { font-size: 20px; }
.toolbar__btn--vacation.is-vac { background: #D97706; color: #fff; border-color: #D97706; }

/* ── Generic buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); min-height: var(--touch); padding: 0 var(--sp-4);
  border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--ghost  { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }
.btn--ghost:hover { background: var(--c-surface2); }
.btn--accent { background: var(--c-accent); color: #000; }
.btn--accent:hover { background: var(--c-accent-dk); }
.btn--danger { background: transparent; border-color: var(--c-danger); color: var(--c-danger); }
.btn--danger:hover { background: var(--c-danger); color: #fff; }
.btn--sm { min-height: 36px; font-size: 13px; padding: 0 var(--sp-3); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════
   DAY TABS ROW – horizontal header strip
   ══════════════════════════════════════════════════════════════ */
/* 2.1: sticky tab-bar wrapper */
.day-tab-bar {
  position: sticky; top: calc(var(--nav-h) + var(--sat)); z-index: 250;
  background: var(--c-bg); border-bottom: 1px solid var(--c-border);
  padding: var(--sp-2) var(--sp-3);
  margin: 0 calc(-1 * var(--sp-3));
}
/* Sprint B (train-v107): Pillen + 🔥-Badge in EINER Zeile — Badge bleibt
   immer sichtbar (flex-shrink:0), Pillen-Container schrumpft/scrollt statt
   den Badge aus dem sichtbaren Bereich zu drängen. */
.day-tab-pills-row {
  display: flex; align-items: center; gap: var(--sp-2); overflow: hidden;
}
.day-tab-pills-scroll {
  flex: 1; min-width: 0;
  overflow-x: scroll; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.day-tab-pills-scroll::-webkit-scrollbar { display: none; }
.day-tab-pills {
  display: inline-flex; gap: var(--sp-2); align-items: center;
  white-space: nowrap; padding-right: 4px;
}

/* 2.1: full-text pill */
.day-tab {
  display: flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 var(--sp-3); flex-shrink: 0;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .05em;
  color: var(--c-text-2); white-space: nowrap;
  border: 1px solid var(--c-border); border-radius: var(--r-full);
  background: var(--c-surface); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  user-select: none;
}
.day-tab:hover { background: var(--c-surface2); border-color: var(--c-border-hi); }
.day-tab.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #000; }
.day-tab--done { border-color: var(--c-ok); color: var(--c-ok); }
.day-tab--done.is-active { background: var(--c-ok); border-color: var(--c-ok); color: #000; }
.day-tab--deload { background: var(--c-deload-bg); border-color: var(--c-deload-bd); color: var(--c-deload); }
.day-tab--vacation { border-color: rgba(217,119,6,.4); color: #D97706; }

.day-card__dot {
  width: 8px; height: 8px; border-radius: var(--r-full);
  background: var(--c-border); flex-shrink: 0;
  transition: background var(--t-normal), box-shadow var(--t-normal);
}
.day-card__dot--done   { background: var(--c-ok); box-shadow: 0 0 5px var(--c-ok); }
.day-card__dot--locked { background: var(--c-deload); }

.day-tab__title {
  font-family: var(--font-display); font-size: 17px; letter-spacing: .1em;
  color: var(--c-accent); line-height: 1; white-space: nowrap;
}
.day-tab--deload .day-tab__title { color: var(--c-deload); }
.day-tab__counts {
  font-size: 10px; color: var(--c-text-3); white-space: nowrap;
}
.day-tab__counts strong { color: var(--c-text-2); }

.deload-badge {
  display: inline-block; font-family: var(--font-sans);
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--c-deload); color: #000; padding: 1px 4px;
  border-radius: var(--r-sm); margin-left: 3px; vertical-align: middle;
}
.vacation-badge {
  display: inline-block; font-family: var(--font-sans);
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
  background: #D97706; color: #fff; padding: 1px 4px;
  border-radius: var(--r-sm); margin-left: 3px; vertical-align: middle;
}

/* ── Day content panel (full-width, below tabs) ─────────────── */
.day-panel {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); margin-top: var(--sp-2);
  /* No overflow:hidden – breaks sticky exercise names */
}
.day-panel.day-card--done   { border-color: var(--c-ok); }
.day-panel.day-card--deload { background: var(--c-deload-bg); border-color: var(--c-deload-bd); }
.day-card__body-inner {
  overflow: visible;
  padding: var(--sp-3);
  padding-bottom: var(--sp-4);
}

/* ── Training progress bar ─────────────────────────────────── */
.training-progress {
  position: relative; height: 28px;
  background: var(--c-surface2); border-radius: var(--r-full);
  overflow: hidden; margin-top: var(--sp-2);
}
.training-progress__bar {
  position: absolute; inset: 0; right: auto;
  background: var(--c-accent); border-radius: var(--r-full);
  transition: width var(--t-normal);
  min-width: 0;
}
.training-progress__label {
  position: relative; z-index: 1;
  display: flex; align-items: center; height: 100%;
  padding: 0 var(--sp-3);
  font-size: 11px; font-weight: 600;
  color: #000;
  mix-blend-mode: difference;
  filter: invert(1);
}

/* ── Info blocks ───────────────────────────────────────────── */
.info-block {
  background: var(--c-surface2); border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3); margin: var(--sp-2) 0;
}
.info-block__label {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; display: block; margin-bottom: var(--sp-1);
}
.info-block--warmup .info-block__label   { color: var(--c-accent); }
.info-block--cooldown .info-block__label { color: var(--c-text-3); }
.info-block--note .info-block__label     { color: var(--c-accent); }
.info-block--note textarea               { min-height: 56px; max-height: 120px; overflow-y: auto; }
.info-block textarea {
  width: 100%; background: none; border: none;
  color: var(--c-text-2); font-size: 12px; line-height: 1.65;
  resize: none; min-height: 36px;
}
.info-block textarea:focus { color: var(--c-text); outline: none; }
.info-block textarea:disabled { opacity: .6; }

/* ── Session note (2.4) ────────────────────────────────────── */
.session-note-block   { margin: var(--sp-2) 0; }
.session-note-toggle  {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--c-text-3); background: none; border: none;
  cursor: pointer; padding: 4px 0; min-height: var(--touch); width: 100%;
}
.session-note-toggle.has-note { color: var(--c-accent); }
.session-note-toggle::after { content: '▼'; font-size: 9px; margin-left: auto; opacity: 0.5; }
.session-note-toggle.is-expanded::after { content: '▲'; }
.session-note-body    { display: none; }
.session-note-body.is-open { display: block; }
.session-note-input   {
  width: 100%; background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-md); color: var(--c-text); font-size: 13px;
  padding: var(--sp-2) var(--sp-3); resize: vertical; min-height: 60px;
  margin-top: 4px;
}
.session-note-input:focus { border-color: var(--c-accent); outline: none; }
.session-note-input:disabled { opacity: .6; }

.prev-banner {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 11px; color: var(--c-accent);
  background: rgba(200,255,0,.08); border: 1px solid rgba(200,255,0,.2);
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-2);
}

/* ── Pre-Session Check-in + Briefing (B76) ─────────────────── */
.session-checkin-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  /* B87: weniger Padding oben als unten/seitlich -- sitzt direkt unter dem
     Tag-Header, will keinen zusätzlichen Leerraum wie ein freistehendes Panel. */
  padding: var(--sp-2) var(--sp-4) var(--sp-4); margin-bottom: var(--sp-3);
}
.session-checkin-card__headline {
  font-size: 11px; color: var(--c-text-2); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: var(--sp-3); text-align: center;
}
.session-checkin-card__label {
  font-size: 11px; color: var(--c-text-2); margin: var(--sp-3) 0 var(--sp-2);
}
.session-checkin-card__row {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
}
.session-checkin-btn {
  flex: 1; min-width: 64px; min-height: var(--touch);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--c-surface2); border: 1px solid transparent; border-radius: var(--r-md);
  color: var(--c-text-2); font-size: 10px; padding: var(--sp-2);
}
.session-checkin-btn.is-selected { border-color: var(--c-accent); color: var(--c-text); }
.session-checkin-btn__icon { font-size: 18px; }
.session-checkin-skip {
  display: block; margin: var(--sp-3) auto 0; background: none; border: none;
  color: var(--c-text-2); opacity: 0.5; font-size: 10px; min-height: var(--touch); padding: var(--sp-1) var(--sp-3);
}

.session-briefing-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  /* B87: siehe .session-checkin-card oben, gleicher Grund */
  padding: var(--sp-2) var(--sp-4) var(--sp-3); margin-bottom: var(--sp-3);
}
.session-briefing-card__toggle {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%;
  background: none; border: none; color: var(--c-text); text-align: left;
  font-size: 13px; min-height: var(--touch); padding: 0;
}
.session-briefing-card__icon { font-size: 18px; flex-shrink: 0; }
.session-briefing-card__msg { flex: 1; }
.session-briefing-card__focus {
  margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--c-border);
  font-size: 12px; color: var(--c-text-2); line-height: 1.6;
}
.session-briefing-card.is-collapsed .session-briefing-card__focus { display: none; }

/* B87 Fix 3: Reduzierungs-Button -- dämpfende Aktion, bewusst NICHT
   --c-accent (das ist für positive/bestätigende Aktionen reserviert). */
.session-briefing-card__reduce-row {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-2); align-items: stretch;
}
.session-briefing-card__reduce-btn {
  display: block; flex: 1; margin-top: 0;
  min-height: var(--touch); padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface2); border: 1px solid var(--c-text);
  border-radius: var(--r-md); color: var(--c-text); font-size: 12px;
}
/* Solotest-Feedback (2026-08-16): explizite Ablehnen-Option neben dem
   Bestätigen-Button — bewusst unauffälliger (schmaler, gedämpfter) als
   dieser, da Bestätigen die häufigere/empfohlene Aktion bleibt. */
.session-briefing-card__reduce-dismiss {
  flex-shrink: 0; margin-top: 0; min-height: var(--touch); padding: var(--sp-2) var(--sp-3);
  background: none; border: 1px solid var(--c-border);
  border-radius: var(--r-md); color: var(--c-text-3); font-size: 12px;
}
.session-briefing-card__reduce-done {
  margin-top: var(--sp-2); font-size: 12px; color: var(--c-text-2);
}
/* B87 Fix 2: bewusst wie ein reiner Text-Link, kein Button-Chrome. */
.session-briefing-card__edit-link {
  display: block; margin-top: var(--sp-2); background: none; border: none;
  color: var(--c-text-2); opacity: .7; font-size: 11px; min-height: var(--touch);
  padding: var(--sp-1) 0; text-align: left;
}
.session-briefing-card.is-collapsed .session-briefing-card__reduce-row,
.session-briefing-card.is-collapsed .session-briefing-card__reduce-done,
.session-briefing-card.is-collapsed .session-briefing-card__edit-link { display: none; }

/* ── B128: Auto-Steigerung-Banner (Opt-out) ──────────────────── */
.auto-plan-banner {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3);
}
.auto-plan-banner__header {
  font-size: 13px; font-weight: 700; color: var(--c-text);
  margin-bottom: var(--sp-2);
}
.auto-plan-banner__list { display: flex; flex-direction: column; gap: var(--sp-1); }
.auto-plan-banner__row {
  font-size: 12px; color: var(--c-text-2); line-height: 1.5;
}
.auto-plan-banner__row--item {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--c-border);
}
.auto-plan-banner__row--item:last-child { border-bottom: none; }
.auto-plan-banner__row-actions { display: flex; gap: var(--sp-1); flex-shrink: 0; }
.auto-plan-banner__actions {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-3);
}
.auto-plan-banner__actions .btn { flex: 1; min-height: var(--touch); font-size: 13px; }

/* ── Intra-Session Coach (B77) ──────────────────────────────── */
.set-feedback {
  display: flex; flex-direction: column; gap: 2px;
  padding: 2px var(--sp-2) var(--sp-1) calc(var(--sp-2) + 18px);
  animation: set-feedback-fade-in 200ms ease;
  /* Android-Bugfix: verhindert, dass scrollIntoView() das Feedback direkt an
     der unteren Kante stoppt, wo der fixe Pause-Timer-Pill (timer.js,
     bottom:88px) es sonst überlagern könnte. */
  scroll-margin-bottom: 100px;
}
@keyframes set-feedback-fade-in { from { opacity: 0; } to { opacity: 1; } }
.set-feedback__line { font-size: 11px; color: var(--c-text-2); line-height: 1.4; }
.set-feedback__line--sub { opacity: .85; }
/* Runde 20 (Befund 3): Diagnose ergab, dass die eigentliche Empfehlung
   ("→ Nächster Satz: Xkg") optisch nicht von der restlichen 11px-Fliesstext-
   Zeile absetzte -- Erstnutzer fanden sie laut Feedback nicht. Eigene, etwas
   größere Akzentzeile nur für die Empfehlung selbst, Begründung/Sub-Zeile
   bleibt unverändert gedämpft. */
.set-feedback__line--primary { font-size: 13px; color: var(--c-accent); font-weight: 600; }
/* B87 Fix 4+5: bestätigende Aktion -> --c-accent Text, im Unterschied zum
   dämpfenden Reduzierungs-Button oben. */
.set-feedback__line--confirm { color: var(--c-accent); font-weight: 600; }
/* Runde 19/Cluster 1: Haken/X-Icon-Buttons statt der alten "Übernehmen ↗"-
   Textpille -- eigene .set-feedback__actions-Zeile (siehe unten), da 44px
   Touch-Targets nicht mehr inline neben den 11px-Fliesstext passen. */
.set-feedback__icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--c-surface2); border: none; cursor: pointer;
  flex-shrink: 0;
}
.set-feedback__icon-btn svg { width: 20px; height: 20px; }
.set-feedback__icon-btn--accept { color: var(--c-accent); }
.set-feedback__icon-btn--reject { color: var(--c-text-3); }
.set-feedback__icon-btn:hover { background: var(--c-surface); }
/* B92-B94: Entscheidungsmatrix-Begründung ("▾ Warum?") + dauerhafte
   Übernehmen-Bestätigung (löst die B89-2s-Auto-Ausblendung ab). */
.set-feedback__why-toggle {
  display: inline-block; margin-left: var(--sp-2); background: none;
  border: none; color: var(--c-text-2); opacity: .75; font-size: 11px;
  min-height: 24px; vertical-align: baseline;
}
.set-feedback__why-body {
  margin-top: var(--sp-1); padding-left: var(--sp-2);
  border-left: 2px solid var(--c-border);
}
.set-feedback__why-body .set-feedback__line { display: block; margin-top: 2px; }
.set-feedback__line--reverted { opacity: .75; }
.set-feedback--action { padding-bottom: var(--sp-2); }
.set-feedback__actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-1); }
.set-feedback__btn {
  min-height: 32px; padding: 0 var(--sp-3); border-radius: var(--r-sm);
  background: var(--c-accent); border: 1px solid var(--c-accent);
  color: #000; font-size: 11px; font-weight: 600;
}
.set-feedback__btn--ghost {
  background: none; color: var(--c-text-2); border-color: var(--c-border);
}

.rpe-nudge--favorite { border-color: var(--c-accent); }
.rpe-nudge__label--favorite { color: var(--c-accent); opacity: .9; flex-basis: 100%; }
.rpe-nudge__skip {
  flex-basis: 100%; background: none; border: none;
  color: var(--c-text-3); opacity: .6; font-size: 10px;
  min-height: 28px; text-align: left; padding: 0;
  pointer-events: auto;
}

.warmup-rec-block {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3);
}
.warmup-rec-toggle {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%;
  background: none; border: none; color: var(--c-text); text-align: left;
  font-size: 13px; min-height: var(--touch); padding: 0;
}
.warmup-rec-toggle__arrow { font-size: 11px; color: var(--c-text-2); flex-shrink: 0; }
.warmup-rec-body {
  margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--c-border);
  font-size: 12px; color: var(--c-text-2); line-height: 1.6;
}

/* ── Session Summary + Schlaf-Korrelation + Deload-Plan (B79) ─ */
.session-summary-screen {
  position: fixed; inset: 0; z-index: 950;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto; padding: var(--sp-6) 0;
  animation: cs-in 280ms var(--ease) both;
}
.session-summary-screen__inner {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  padding: var(--sp-6); max-width: 340px; width: 100%;
}
.session-summary-screen__title {
  font-family: var(--font-display); font-size: 22px; letter-spacing: .04em;
  color: var(--c-accent);
}
.session-summary-screen__highlights {
  display: flex; flex-direction: column; gap: var(--sp-1); width: 100%;
}
.session-summary-screen__highlight {
  font-size: 14px; color: var(--c-text); background: var(--c-surface2);
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3);
}
.session-summary-screen__einordnung {
  font-size: 15px; color: var(--c-text); text-align: center; line-height: 1.6;
}
.session-summary-screen__next {
  font-size: 13px; color: var(--c-text-2); text-align: center;
}
.session-summary-screen__btn {
  min-height: var(--touch); padding: var(--sp-2) var(--sp-6); margin-top: var(--sp-2);
}

.sleep-insight-card {
  width: 100%; background: var(--c-surface2); border: 1px solid var(--c-accent);
  border-radius: var(--r-lg); padding: var(--sp-4); text-align: center;
}
.sleep-insight-card__title {
  font-size: 11px; color: var(--c-accent); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: var(--sp-2);
}
.sleep-insight-card__body {
  font-size: 13px; color: var(--c-text); line-height: 1.6; margin: 0 0 var(--sp-2);
}
.sleep-insight-card__conclusion {
  font-size: 13px; color: var(--c-text-2); font-style: italic; margin: 0;
}

/* B140: Intra-Session-Erschöpfung — bewusst neutral/informativ, kein
   Warn-Rand (kein --c-danger/--c-accent), siehe DECISIONS.md. */
.session-fatigue-card {
  width: 100%; background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-4); text-align: left;
}
.session-fatigue-card__title {
  font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: var(--sp-2);
}
.session-fatigue-card__body {
  font-size: 13px; color: var(--c-text); line-height: 1.6; margin: 0 0 var(--sp-2);
}
.session-fatigue-card__options {
  font-size: 12px; color: var(--c-text-2); margin: 0; padding-left: var(--sp-4);
}

.deload-plan-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4); margin-top: var(--sp-2);
}
.deload-plan-card__title {
  font-size: 11px; color: var(--c-text-2); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: var(--sp-2);
}
.deload-plan-row {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  font-size: 13px; padding: var(--sp-1) 0;
}
.deload-plan-row__name { color: var(--c-text); }
.deload-plan-row__weights { color: var(--c-text-2); flex-shrink: 0; }
.deload-plan-card__btn { width: 100%; margin-top: var(--sp-2); }

/* Sprint B (train-v107): Badge sitzt jetzt rechtsbündig in der
   Pillen-Zeile (.day-tab-pills-row) statt in einer eigenen sticky-Zeile —
   .day-tab-bar__streak-row entfällt. */
.streak-badge {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: var(--c-text); white-space: nowrap;
}
.streak-badge__num { font-family: var(--font-display); font-size: 15px; }

/* Trainings-Ritual: dezenter Kontext-Anker vor der ersten Übung — bewusst
   kein Card-Rahmen, wirkt wie ein Sub-Header direkt unter dem Tagestitel.
   Sprint B (train-v107): 3 Zeilen statt 1 — Zeile 1+2 (allgemeines
   Athletenbild) teilen sich Farbe/Abstand, Zeile 3 (tagesbezogen,
   "Selber Tag letzte Woche") ist mit Trennlinie + gedämpfterer Farbe
   visuell abgesetzt. */
.training-context-anchor {
  font-size: 12px; color: var(--c-text-3);
  margin: 0 0 var(--sp-3);
}
.ritual-anchor__row { margin-bottom: 2px; }
.ritual-anchor__row:last-child { margin-bottom: 0; }
.ritual-anchor__day-row {
  margin-top: var(--sp-2); padding-top: var(--sp-2);
  border-top: 1px solid var(--c-border);
}

/* ══════════════════════════════════════════════════════════════
   EXERCISE – STICKY NAME + SET GRID
   ══════════════════════════════════════════════════════════════ */
exercise { position: unset; }
.exercise + .exercise { border-top: 1px solid var(--c-border); }

/* Sticky exercise name – sits below the sticky day header */
.exercise__name-sticky {
  position: sticky;
  top: calc(var(--nav-h) + var(--sat) + var(--tabs-h));
  z-index: 100;
  display: flex; align-items: center; gap: var(--sp-1);
  padding: var(--sp-1) 0;
  /* Must match card background. Extend left/right to cover
     the body-inner padding so the sticky strip looks clean. */
  background: var(--c-surface);
  margin: 0 calc(-1 * var(--sp-3));
  padding-left: var(--sp-3);
  padding-right: var(--sp-3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.day-card--deload .exercise__name-sticky { background: var(--c-deload-bg); }
/* Runde 6: das offene ⋮-Menü (.ex-menu-dropdown, z-index 400) liegt als
   Nachfahre dieses Elements -- sein z-index gilt nur INNERHALB dieses
   Stacking-Contexts. Ohne Anhebung hier gewinnt eine spätere Übung mit
   gleichem z-index:100 (nach DOM-Reihenfolge) die Stapelung und verdeckt
   das eigentlich höher priorisierte Dropdown. Nur aktiv, solange das
   Menü DIESER Übung offen ist. */
.exercise__name-sticky.has-open-menu { z-index: 500; }
.exercise__name-sticky.is-stuck {
  border-bottom-color: var(--c-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.exercise__drag-handle {
  color: var(--c-text-3); cursor: grab; touch-action: none;
  flex-shrink: 0; padding: var(--sp-1);
  display: flex; align-items: center;
}
.exercise__drag-handle:active { cursor: grabbing; }
.exercise__drag-handle svg { width: 18px; height: 18px; }

.exercise__name-input {
  flex: 1; background: none; border: none; color: var(--c-text);
  font-weight: 600; font-size: 14px; padding: 2px 0; min-width: 0;
}
.exercise__name-input:focus { border-bottom: 1px solid var(--c-accent); outline: none; }
.exercise__name-input:disabled { opacity: .7; }

.btn-icon {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-shrink: 0;
  color: var(--c-text-3);
  transition: color var(--t-fast), background var(--t-fast);
}
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon:hover { color: var(--c-accent); background: var(--c-surface2); }
.btn-icon:disabled { opacity: .4; cursor: not-allowed; }
.btn-icon.is-planned { color: var(--c-accent); }

.exercise__cfg-btn, .exercise__remove-btn {
  width: 36px; height: 36px; border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); cursor: pointer; flex-shrink: 0;
}
.exercise__cfg-btn { color: var(--c-text-3); transition: color var(--t-fast), background var(--t-fast); }
.exercise__cfg-btn svg { width: 16px; height: 16px; }
.exercise__cfg-btn:hover { color: var(--c-accent); background: var(--c-surface2); }
.exercise__remove-btn { color: var(--c-text-3); transition: color var(--t-fast); }
.exercise__remove-btn svg { width: 16px; height: 16px; }
.exercise__remove-btn:hover { color: var(--c-danger); }

.exercise__settings {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  margin: var(--sp-2) 0 var(--sp-2);
}

.pause-row { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) 0 var(--sp-2); flex-wrap: wrap; }
.pause-row__label { font-size: 11px; color: var(--c-text-3); }
.pause-opt {
  border: 1px solid var(--c-border); background: var(--c-surface2);
  color: var(--c-text-3); border-radius: var(--r-sm);
  padding: 3px 10px; font-size: 11px; cursor: pointer; min-height: 28px;
  transition: all var(--t-fast);
}
.pause-opt:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pause-opt.is-selected { background: var(--c-accent); border-color: var(--c-accent); color: #000; font-weight: 700; }

.weight-plan-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-1) 0 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(46,46,53,.6);
  margin-top: var(--sp-1);
}
.weight-step-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.exercise__next-goal {
  width: 100%; color: var(--c-text-3); font-size: 12px; font-style: italic;
  padding: var(--sp-1) 0; margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-border);
}

/* Set grid: #idx | kg | reps | rpe | done | remove | note */
.set-header, .set-row {
  display: grid;
  grid-template-columns: 22px 1fr 1fr 60px 36px 28px 24px;
  gap: var(--sp-1); align-items: start;
}
.set-header {
  padding: var(--sp-1) 0; border-bottom: 1px solid var(--c-border); margin-bottom: var(--sp-1);
}
.set-header span {
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text-3); text-align: center;
}
.set-header span:first-child { text-align: left; }
.set-row { padding: 3px 0; }
.set-row + .set-row { border-top: 1px solid rgba(46,46,53,.5); }
.set-row--deload-skip { opacity: .55; } /* Sprint C2 (Teil B) — Satz strukturell diese Woche übersprungen */
.set-idx { font-size: 11px; color: var(--c-text-3); padding-top: 8px; }

.set-cell { display: flex; flex-direction: column; gap: 2px; }
.num-input {
  width: 100%; background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); color: var(--c-text);
  /* B16: <16px löst iOS' Zoom-bei-Fokus aus (unabhängig vom Doppeltipp-
     Zoom am +kg-Button, siehe .btn-icon--kg) — 16px ist der niedrigste
     Wert, der das vermeidet. */
  font-size: 16px;
  text-align: center; padding: 5px 2px; min-height: 34px;
  appearance: textfield; -moz-appearance: textfield;
  transition: border-color var(--t-fast);
}
.num-input::-webkit-outer-spin-button,
.num-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.num-input:focus { border-color: var(--c-accent); outline: none; }
.num-input:disabled { opacity: .6; }

.rpe-input {
  width: 100%; background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); color: var(--c-deload); font-size: 13px; font-weight: 600;
  text-align: center; padding: 5px 2px; min-height: 34px;
  appearance: textfield; -moz-appearance: textfield;
  transition: border-color var(--t-fast);
}
.rpe-input::-webkit-outer-spin-button,
.rpe-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rpe-input::placeholder { color: var(--c-border); font-weight: 400; }
.rpe-input:focus { border-color: var(--c-deload); outline: none; }
.rpe-input:disabled { opacity: .6; }

.prev-hint {
  font-size: 9px; color: var(--c-text-3); text-align: center;
  height: 13px; line-height: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
/* ── B133: Scheiben-Hinweis, dezenter Text (B130s Chip-Design zurückgebaut,
   siehe DECISIONS.md) — eine Zeile, kein Badge/Hintergrund. Leerer Slot
   (kein Satz braucht Scheiben) nimmt keinen Platz ein. ──────────────── */
.plate-hint {
  font-size: 11px; color: var(--c-text-2); opacity: .7;
  line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 2px 0 0;
}
.plate-hint:empty { display: none; padding: 0; }

.set-cell__footer {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 13px;
}
.set-cell__footer .prev-hint {
  flex: 1;
  min-width: 0;
}
.prev-hint--btn {
  background: none;
  border: none;
  font-size: 9px;
  font-family: var(--font-sans);
  color: var(--c-text-3);
  cursor: pointer;
  padding: 0;
  line-height: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prev-hint--btn:hover { color: var(--c-accent); }

/* ─── Vorwoche mini-table ─────────────────────────────────────── */
.prev-grid-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 4px 0 2px;
}
.prev-grid-toggle {
  background: none;
  border: none;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--c-text-3);
  cursor: pointer;
  border-radius: var(--r-sm);
  line-height: 1.4;
}
.prev-grid-toggle:hover { color: var(--c-text-2); }
.prev-grid-toggle.is-open { color: var(--c-text-2); }
.prev-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--c-surface2);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 4px;
  font-size: 11px;
}
.prev-grid-row {
  display: grid;
  grid-template-columns: 20px 1fr 1fr 20px;
  gap: 0;
  padding: 3px 8px;
  align-items: center;
  color: var(--c-text-2);
}
.prev-grid-row + .prev-grid-row {
  border-top: 1px solid var(--c-border);
}
.prev-grid-header {
  background: var(--c-surface3, var(--c-surface2));
  color: var(--c-text-3);
  font-size: 10px;
  font-weight: 500;
}
.prev-grid--rpe .prev-grid-row { grid-template-columns: 20px 1fr 1fr 1fr 20px; }
.prev-grid-ok  { color: var(--c-ok); }
.prev-grid-fail { color: var(--c-danger); }

.btn-autofill {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-text-3);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.btn-autofill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}
.btn-autofill:hover {
  color: var(--c-accent);
}

/* Done button – same height as inputs for grid alignment */
.set-done-wrap { display: flex; flex-direction: column; gap: 2px; }
.set-done-btn {
  width: 36px; height: 34px; border-radius: var(--r-full);
  border: 2px solid var(--c-border); background: none; color: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.set-done-btn svg { width: 16px; height: 16px; }
.set-done-btn:hover:not(.is-done):not(.is-fail) { border-color: var(--c-accent); }
.set-done-btn.is-done { background: var(--c-accent); border-color: var(--c-accent); color: #000; }
.set-done-btn.is-fail {
  background: var(--c-danger);
  border-color: var(--c-danger);
  color: #fff;
}
.set-done-btn.is-fail:hover:not(:disabled) {
  background: #e53935;
  border-color: #e53935;
}
.set-done-btn:disabled { opacity: .5; cursor: not-allowed; }

.set-remove-btn {
  width: 28px; height: 34px; background: none; border: none;
  color: var(--c-text-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); transition: color var(--t-fast);
}
.set-remove-btn svg { width: 16px; height: 16px; }
.set-remove-btn:hover { color: var(--c-danger); }
.set-remove-btn:disabled { opacity: .3; cursor: not-allowed; }

.set-note-btn {
  width: 24px; height: 34px; background: none; border: none;
  color: var(--c-text-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
  /* expand touch area beyond visual size */
  padding: 0 2px; margin: 0 -2px;
}
.set-note-btn svg { width: 14px; height: 14px; }
.set-note-btn:hover { color: var(--c-blue); }
.set-note-btn.has-note { color: var(--c-blue); }
.set-note-btn.set-note-btn--anomaly { color: var(--c-warn); }

.set-note-row {
  padding: 4px 0 6px;
  border-bottom: 1px solid rgba(46,46,53,.5);
}
.set-note-input {
  width: 100%; background: var(--c-surface2); border: 1px solid var(--c-blue);
  border-radius: var(--r-sm); color: var(--c-text); font-size: 13px;
  padding: 5px var(--sp-2); outline: none;
}
.set-note-input::placeholder { color: var(--c-text-3); }
.set-note-input:disabled { opacity: .6; }

/* ── Soll-Ist (2.5) ─────────────────────────────────────────── */
.soll-ist-badge {
  display: inline-block; font-size: 10px; letter-spacing: .08em;
  background: rgba(200,255,0,.1); border: 1px solid rgba(200,255,0,.25);
  border-radius: var(--r-full); padding: 2px 8px; margin-bottom: 4px;
  color: var(--c-accent);
}
.fulfill-meter { display: flex; align-items: center; gap: var(--sp-2); margin: 4px 0 var(--sp-2); }
.fulfill-meter__bar-wrap { flex: 1; height: 4px; background: var(--c-surface2); border-radius: var(--r-full); overflow: hidden; }
.fulfill-meter__bar      { height: 100%; border-radius: var(--r-full); transition: width .3s; }
.fulfill-meter__label    { font-size: 10px; white-space: nowrap; }

.confirm-set-btn {
  display: block; width: 100%; background: var(--c-accent); color: #000;
  border: none; border-radius: var(--r-sm); padding: var(--sp-2) var(--sp-3);
  font-size: 14px; font-weight: 600; cursor: pointer; margin: var(--sp-2) 0;
  min-height: 40px; transition: opacity var(--t-fast);
}
.confirm-set-btn:hover { opacity: .88; }
.confirm-set-btn:active { opacity: .75; }
.confirm-set-btn.is-done, .confirm-set-btn:disabled {
  background: var(--c-surface2); color: var(--c-text-3); cursor: not-allowed; opacity: 1;
}
@keyframes confirm-pulse {
  0%   { background: #22c55e; }
  100% { background: var(--c-accent); }
}
.confirm-set-btn.is-flashing { animation: confirm-pulse 350ms ease-out forwards; }
.confirm-set-no-target {
  background: var(--c-surface2); border: 1px solid var(--c-border-hi);
  border-radius: var(--r-md); color: var(--c-text-2); font-size: 12px;
  line-height: 1.5; padding: var(--sp-2) var(--sp-3); margin-top: 4px;
}
@keyframes set-row-flash {
  0%   { background: rgba(251,191,36,.35); }
  100% { background: transparent; }
}
.set-row--flash { animation: set-row-flash .6s ease-out forwards; }

.add-set-btn {
  display: flex; align-items: center; gap: var(--sp-1);
  border: 1px dashed var(--c-border); background: none; color: var(--c-text-3);
  border-radius: var(--r-sm); padding: var(--sp-1) var(--sp-3);
  font-size: 12px; cursor: pointer; margin: var(--sp-2) 0; min-height: 32px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.add-set-btn svg { width: 14px; height: 14px; }
.add-set-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ── Spontaner Übungswechsel ─────────────────────────────────────────── */
.btn-sub {
  font-size: 11px; padding: 0 var(--sp-2); height: 26px;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: none; color: var(--c-text-3); cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.btn-sub:hover { color: var(--c-text-2); border-color: var(--c-text-3); }
.btn-sub.is-sub { color: #f59e0b; border-color: #f59e0b; }
.sub-banner {
  font-size: 12px; color: #92400e;
  background: rgba(251,191,36,.13);
  border-left: 3px solid #f59e0b;
  padding: 4px var(--sp-3);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: var(--sp-1) 0 var(--sp-2);
}
.sub-form {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface2); border-radius: var(--r-sm);
  margin: var(--sp-1) 0 var(--sp-2);
}
.sub-form__label { font-size: 12px; color: var(--c-text-2); }
/* D2: Vorschlagsliste aus früheren "Heute anders"-Ersetzungen */
.sub-suggestions { display: flex; flex-direction: column; gap: var(--sp-1); }
.sub-suggestion {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%;
  background: var(--c-surface); border: none; border-radius: var(--r-md);
  color: var(--c-text); font-size: 13px; text-align: left; cursor: pointer;
  padding: var(--sp-2) var(--sp-3); min-height: var(--touch);
  font-family: var(--font-body);
}
.sub-suggestion:hover, .sub-suggestion:focus-visible { background: var(--c-border); }
.sub-suggestion__icon { flex-shrink: 0; }
.sub-suggestion__name { flex: 1; }
.sub-suggestion__count { color: var(--c-text-2); font-size: 12px; flex-shrink: 0; }
/* B138: kuratierte Alternativ-Chips (exerciseAlternatives.js) — neutral, NICHT
   --c-accent, bewusst optisch schwächer als der bestehende Bestätigen-Button. */
.alt-chips-block { display: flex; flex-direction: column; gap: var(--sp-1); }
.alt-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.alt-chip {
  background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: 8px; color: var(--c-text); font-size: 12px;
  padding: var(--sp-1) var(--sp-2); cursor: pointer; font-family: var(--font-body);
}
.alt-chip:hover, .alt-chip:focus-visible { border-color: var(--c-text-2); }
.save-alt-btn.is-hidden { display: none; }
.sub-name-input {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); color: var(--c-text);
  font-size: 14px; padding: var(--sp-1) var(--sp-2); width: 100%;
  font-family: var(--font-body);
}
.sub-name-input:focus { outline: none; border-color: var(--c-accent); }
.sub-form__btns { display: flex; gap: var(--sp-2); }

/* ── B127: Übungsweite Notizen (Heute/Immer) ─────────────────────────── */
.btn-ex-note {
  background: none; border: none; padding: 2px 4px; margin: 0;
  font-size: 14px; line-height: 1; cursor: pointer;
  color: var(--c-text-3); opacity: 0.55;
  transition: opacity var(--t-fast);
  flex-shrink: 0;
}
.btn-ex-note:hover { opacity: 1; }
.btn-ex-note.has-note { opacity: 1; color: var(--c-accent); }
.ex-note-hint {
  font-size: 12px; color: var(--c-text-3);
  background: var(--c-surface2);
  padding: 4px var(--sp-3);
  border-radius: var(--r-sm);
  margin: var(--sp-1) 0 var(--sp-2);
}
.ex-note-panel {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface2); border-radius: var(--r-sm);
  margin: var(--sp-1) 0 var(--sp-2);
}
.ex-note-tabs { display: flex; gap: var(--sp-1); }
.ex-note-tab {
  flex: 1; height: 30px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); color: var(--c-text-3);
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all var(--t-fast);
}
.ex-note-tab:hover { border-color: var(--c-accent); color: var(--c-accent); }
.ex-note-tab.is-active {
  background: var(--c-accent); border-color: var(--c-accent);
  color: #000; font-weight: 700;
}
.ex-note-textarea {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); color: var(--c-text);
  font-size: 13px; font-family: var(--font-body);
  padding: var(--sp-2); width: 100%; min-height: 60px;
  resize: vertical;
}
.ex-note-textarea:focus { outline: none; border-color: var(--c-accent); }

/* ── Exercise ⋮ context menu ─────────────────────────────────────────── */
.ex-menu-wrap { position: relative; flex-shrink: 0; }
.ex-menu-btn {
  width: 36px; height: 36px;
  border: none; background: none;
  color: var(--c-text-3); font-size: 20px; line-height: 1;
  border-radius: var(--r-sm); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--t-fast), background var(--t-fast);
}
.ex-menu-btn:hover { color: var(--c-text); background: var(--c-surface2); }
.ex-menu-btn.is-planned { color: var(--c-accent); }
.ex-menu-dropdown {
  position: fixed; z-index: 400;
  background: var(--c-surface2);
  border: 1px solid var(--c-border-hi);
  border-radius: var(--r-md);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ex-menu-item {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  min-height: 44px; width: 100%;
  font-size: 13px; color: var(--c-text-2);
  cursor: pointer; background: none; border: none;
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}
.ex-menu-item + .ex-menu-item { border-top: 1px solid var(--c-border); }
.ex-menu-item:hover { background: var(--c-surface); color: var(--c-text); }
.ex-menu-section-header {
  padding: var(--sp-2) var(--sp-3) calc(var(--sp-1) / 2);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-text-3); pointer-events: none; user-select: none;
  border-top: 1px solid var(--c-border);
  margin-top: 0;
}
.ex-menu-section-header:first-child { border-top: none; }
.ex-menu-item.is-planned { color: var(--c-accent); }
.ex-menu-item--danger { color: var(--c-danger); }
.ex-menu-item--danger:hover { background: rgba(255,68,68,.1); color: var(--c-danger); }
.ex-menu-item:disabled { opacity: .4; cursor: not-allowed; }

.add-exercise-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); align-items: center; }

/* ── Exercise search modal ─────────────────────────────────────────────── */
.modal-overlay--search { z-index: 9000; }
#ex-search-results { margin-top: var(--sp-3); max-height: 50vh; overflow-y: auto; }
.ex-search-group-title {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text-3); margin: var(--sp-3) 0 var(--sp-1);
}
.ex-search-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--c-text); font-size: 14px; padding: var(--sp-2) var(--sp-1);
  border-radius: var(--r-sm); cursor: pointer; min-height: var(--touch);
}
.ex-search-item:hover, .ex-search-item:focus-visible { background: var(--c-surface2); }
.ex-search-item--create { color: var(--c-accent); font-weight: 600; border-top: 1px solid var(--c-border); margin-top: var(--sp-2); padding-top: var(--sp-3); }
.ex-search-empty { font-size: 13px; color: var(--c-text-3); padding: var(--sp-3) 0; }

/* ── Exercise create/edit modal ────────────────────────────────────────── */
.ex-form-error { font-size: 12px; color: var(--c-danger); margin-top: var(--sp-1); min-height: 1em; }

/* ── "Meine Übungen" settings list ─────────────────────────────────────── */
.custom-ex-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--c-border); }
.custom-ex-row:last-child { border-bottom: none; }
.custom-ex-row__main { flex: 1; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.custom-ex-row__name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-ex-row__meta { font-size: 11px; color: var(--c-text-3); }

/* Übungsnamen-Bereinigung (Duplikate + Tippfehler-Kandidaten) */
.name-dup-section { margin-bottom: var(--sp-3); }
.name-dup-section__title {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-warn, #FFB400); margin-bottom: var(--sp-2);
}
.name-dup-card {
  background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-3); margin-bottom: var(--sp-2);
}
.name-dup-variant { font-size: 13px; color: var(--c-text); }
.name-dup-hint { font-size: 12px; color: var(--c-text-2); margin-top: 2px; }
.name-dup-merge-row { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); }
.name-dup-merge-label { font-size: 12px; color: var(--c-text-3); white-space: nowrap; }
.name-dup-select { flex: 1; }
.name-dup-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); flex-wrap: wrap; }

.complete-btn {
  width: 100%; margin-top: var(--sp-3); padding: 0 var(--sp-4); height: var(--touch);
  border-radius: var(--r-md); border: 1px solid var(--c-border);
  background: none; color: var(--c-text-3); font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  transition: all var(--t-fast);
}
.complete-btn svg { width: 18px; height: 18px; }
.complete-btn:hover { border-color: var(--c-ok); color: var(--c-ok); }
.complete-btn.is-done { background: var(--c-ok); border-color: var(--c-ok); color: #000; }
/* Solotest-Feedback (2026-08-16): auffälliger Hinweisstil, sobald alle Sätze
   des Tages bewertet sind — der Button wurde zuvor trotz erledigtem
   Training als unauffälliger Standard-Button übersehen. */
.complete-btn--ready {
  border-color: var(--c-ok); color: var(--c-ok);
  animation: complete-btn-ready-pulse 1.8s ease-in-out infinite;
}
@keyframes complete-btn-ready-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, .35); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}

.day-actions {
  display: flex; gap: var(--sp-2); align-items: stretch;
  margin-top: var(--sp-3); flex-wrap: wrap;
}
.day-actions .complete-btn { flex: 1; min-width: 160px; margin-top: 0; }
.day-actions .deload-toggle { flex-shrink: 0; }

.day-vacation-banner {
  background: rgba(217,119,6,.1); border: 1px solid #D97706;
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3);
  font-size: 13px; color: #D97706; margin-bottom: var(--sp-2);
}

.vac-days-hint {
  font-size: 9px; font-weight: 600; color: #D97706;
  margin-left: 3px; vertical-align: middle; letter-spacing: .02em;
}

.exercise.drag-over { outline: 2px solid var(--c-accent); border-radius: var(--r-sm); }

/* ══════════════════════════════════════════════════════════════
   BODY TAB
   ══════════════════════════════════════════════════════════════ */
.body-section {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); margin-bottom: var(--sp-3); overflow: hidden;
}
.body-section__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3) var(--sp-4); cursor: pointer; user-select: none; min-height: var(--touch);
}
.body-section__title { font-family: var(--font-display); font-size: 17px; letter-spacing: .08em; }
.body-section__body {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-normal);
  padding: 0 var(--sp-4);
}
.body-section__body.is-open { grid-template-rows: 1fr; }
.body-section__body-inner { overflow: hidden; padding-bottom: var(--sp-4); }
.body-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.body-field label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text-3); display: block; margin-bottom: var(--sp-1);
}
.body-input {
  width: 100%; background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-md); color: var(--c-text); font-size: 15px;
  padding: var(--sp-2) var(--sp-3); height: var(--touch);
  transition: border-color var(--t-fast);
}
.body-input:focus { border-color: var(--c-accent); outline: none; }
.body-badge {
  margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--c-accent);
  display: flex; gap: 6px; align-items: center;
}
.body-badge span { font-weight: 400; color: var(--c-text-3); font-size: 11px; }
.body-today-row { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.body-today-row__label { font-size: 13px; color: var(--c-text-3); }
.body-week-log { margin-top: var(--sp-2); font-size: 12px; color: var(--c-text-2); line-height: 1.5; }
.body-metrics-row { display: flex; gap: var(--sp-4); margin-top: var(--sp-3); flex-wrap: wrap; }
.body-metric__val { font-family: var(--font-display); font-size: 18px; }
.body-metric__lbl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); margin-top: 2px; }
.rs-context { font-size: 12px; color: var(--c-text-2); margin: var(--sp-2) 0 0; line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   ANALYSIS TAB
   ══════════════════════════════════════════════════════════════ */
.chart-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-3);
}
.chart-card__title { font-family: var(--font-display); font-size: 17px; letter-spacing: .08em; margin-bottom: var(--sp-3); display: flex; align-items: center; gap: 6px; }
.chart-card__title svg { width: 18px; height: 18px; flex-shrink: 0; }
.chart-card__title-link {
  margin-left: auto; background: none; border: none; font-family: var(--font-body);
  font-size: 12px; letter-spacing: normal; color: var(--c-accent); padding: var(--sp-1);
  min-height: var(--touch); cursor: pointer;
}
.erkenntnis-line { font-size: 13px; color: var(--c-text-2); margin: 0 0 var(--sp-2); }
.erkenntnis-line:last-child { margin-bottom: 0; }
.erkenntnisse-divider { border: none; border-top: 1px solid var(--c-border); margin: var(--sp-3) 0; }
.erkenntnis-stepper { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-1); }
.erkenntnis-stepper__btn { min-width: 32px; width: 32px; height: 32px; padding: 0; flex-shrink: 0; font-size: 16px; line-height: 1; }
.erkenntnis-stepper__label { font-size: 14px; font-weight: 600; color: var(--c-text); min-width: 80px; text-align: center; }
.erkenntnis-stepper__hint { font-size: 11px; color: var(--c-text-3); margin: 0 0 var(--sp-3); }
.coach-focus-card { border-left: 3px solid var(--c-accent); }
.coach-focus-week-stamp { font-size: 11px; color: var(--c-text-3); margin: 0 0 var(--sp-2); }
.coach-focus-status { font-family: var(--font-display); font-size: 20px; letter-spacing: .04em; margin-bottom: var(--sp-3); }
.coach-focus-reasoning { font-size: 13px; color: var(--c-text-2); margin: 0 0 var(--sp-3); }
.coach-focus-recommendation { font-size: 14px; font-weight: 600; color: var(--c-text); margin: 0; }
.coach-focus-directive { font-size: 16px; font-weight: 700; color: var(--c-text); margin: 0 0 var(--sp-2); line-height: 1.4; }
.coach-focus-subtext { font-size: 12px; color: var(--c-text-2); margin: 0 0 var(--sp-2); line-height: 1.4; }
.coach-plateau-feedback { font-size: 14px; font-weight: 600; color: var(--c-text); margin: 0; line-height: 1.4; }
.coach-confidence { font-size: 13px; margin: 0 0 var(--sp-3); }
.coach-confidence--high   { color: var(--c-ok); }
.coach-confidence--medium { color: #e8a020; }
.coach-confidence--low    { color: var(--c-text-3); }
.coach-data-hint { font-size: 11px; color: var(--c-text-3); margin: calc(-1 * var(--sp-2)) 0 var(--sp-3); }
.coach-question-card { margin-top: var(--sp-3); }
.coach-question__text { font-size: 14px; color: var(--c-text); margin: 0 0 var(--sp-3); line-height: 1.5; }
.coach-question__options { display: flex; flex-direction: column; gap: var(--sp-2); }
.coach-question__btn { width: 100%; text-align: left; justify-content: flex-start; }
.coach-bilanz-card { /* inherits chart-card */ }
.coach-bilanz-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--c-text-2); margin-bottom: var(--sp-2); }
.coach-bilanz-divider { border: none; border-top: 1px solid var(--c-border); margin: var(--sp-2) 0; }
.coach-bilanz-conclusion { font-size: 13px; color: var(--c-text-2); margin: var(--sp-3) 0 0; line-height: 1.5; }
.coach-bilanz-subtitle { font-size: 12px; font-weight: 600; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .06em; margin: var(--sp-2) 0 var(--sp-3); }
.coach-question__hint { display: block; font-size: 11px; color: var(--c-ok); margin-top: var(--sp-1); }
.coach-perf-summary { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-2) var(--sp-3); gap: var(--sp-3); }
.coach-perf-summary__text { font-size: 13px; color: var(--c-text-2); }
.coach-perf-summary__link { background: none; border: none; font-size: 13px; color: var(--c-text-3); cursor: pointer; padding: 0; white-space: nowrap; }
.coach-why-collapse { margin-top: var(--sp-3); }
.coach-balance-collapse { margin-top: var(--sp-3); }
.coach-balance-option { margin-bottom: var(--sp-3); }
.coach-balance-option:last-of-type { margin-bottom: var(--sp-2); }
.coach-balance-option__label { font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 4px; }
.coach-balance-pro { font-size: 12px; color: var(--c-ok); margin-bottom: 2px; }
.coach-balance-con { font-size: 12px; color: var(--c-text-3); margin-bottom: 2px; }
.coach-balance-closing { font-size: 12px; color: var(--c-text-2); font-style: italic; margin: var(--sp-2) 0 0; }
/* Runde 18 (Cluster 1): vormals .coach-decision-history, gedämpft und im
   "Basis dieser Einschätzung"-Collapse versteckt -- jetzt immer sichtbar,
   gleiche Bedeutungsebene wie .coach-confidence (Akzentfarbe statt
   Kursiv-Fußnote). */
.coach-decision-track-record { font-size: 13px; font-weight: 600; color: var(--c-accent-dk); margin: 0 0 var(--sp-3); }
.coach-decision-btns { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.coach-decision-btns .btn { flex: 1; min-width: 130px; }
.coach-decision-btns .btn.is-selected { border-color: var(--c-accent); background: rgba(200,255,0,.10); color: var(--c-text); }
.coach-decision-btns .btn.is-dimmed { opacity: 0.45; }
.coach-decision-hint { font-size: 11px; color: var(--c-text-3); font-style: italic; margin: var(--sp-2) 0 0; }

/* Sprint C2 (train-v109): Plateau-Aktionen — dezent, kein Accent-CTA. */
.coach-plateau-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.coach-plateau-actions .btn { flex: 1; min-width: 140px; }

/* Sprint "Coach-Tab Architektur": Strukturkarte für computeStructuralSignals() —
   bewusst kein .chart-card-Look (kein Border-Radius, kein Schatten): diese
   Hinweise sind über mehrere Wochen relevant statt eine wöchentliche
   Entscheidung zu verlangen, sollen optisch sekundär hinter der Hauptkarte
   bleiben. */
.coach-structural-card { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); margin-bottom: var(--sp-3); }
.coach-structural-item { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 13px; color: var(--c-text-2); }
.coach-structural-item + .coach-structural-item { margin-top: var(--sp-2); }
.coach-structural-icon { flex-shrink: 0; }
.coach-structural-text { line-height: 1.4; }
.deload-info { flex-basis: 100%; margin-top: 2px; }
.deload-info__badge {
  display: inline-block; font-size: 12px; color: var(--c-text-2);
  border: 1px solid var(--c-border); border-radius: 50%; padding: 0 4px;
  cursor: pointer; list-style: none;
}
.deload-info__badge::-webkit-details-marker { display: none; }
.deload-info__body {
  margin-top: var(--sp-2); background: var(--c-surface2); color: var(--c-text-2);
  font-size: 12px; line-height: 1.5; border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3);
}
/* E1 (Transparenz Coach-Tab) — "▾ Basis dieser Einschätzung" auf Strukturkarten,
   analog zu .deload-info: flex-basis:100% lässt die Disclosure unter
   Icon+Text umbrechen statt das Layout zu quetschen. */
.coach-structural-why { flex-basis: 100%; }
.coach-evidence-list {
  list-style: none; margin: var(--sp-2) 0 0; padding: 0;
  font-size: 12px; line-height: 1.6;
}
.coach-evidence-list li { margin-top: 2px; }
.coach-evidence-label { color: var(--c-text-2); font-weight: 600; }
.coach-evidence-value { color: var(--c-text); }
.chart-wrap { position: relative; min-height: 60px; }
.chart-wrap canvas { width: 100% !important; }
#chart-ex-wrap svg { display: block; }
.chart-corridor-hint { font-size: 11px; color: var(--c-text-3); margin: 4px 0 0; }

/* +kg-Button im Übungskopf */
/* B16: touch-action:manipulation verhindert, dass iOS' natives
   Doppeltipp-Zoom-Gesture mit der eigenen 400ms-Doppeltipp-Erkennung
   (ui.js _handleClick 'inc-weight') kollidiert — ohne das zoomt iOS
   die Seite, wenn der Nutzer schnell zweimal tippt um den Picker zu
   öffnen, statt nur den Picker zu öffnen. */
.btn-icon--kg { font-size: 11px; font-weight: 700; letter-spacing: -0.02em; opacity: 0.6; touch-action: manipulation; }
.btn-icon--kg:hover { opacity: 1; }
.btn-icon--kg.is-planned:not(.is-confirmed) { color: var(--c-ok); opacity: 1; }
.btn-icon--kg.is-confirmed { color: var(--c-ok); opacity: 1; box-shadow: 0 0 0 1.5px var(--c-ok); border-radius: var(--r-sm); }

/* Gewichts-Vergleich Pfeile in Satzzeilen */
.w-arrow--up { color: var(--c-ok); }
.w-arrow--eq { color: var(--c-text-3); }
.w-arrow--dn { color: var(--c-danger); }

/* Timer Reset-Button */
.toolbar__btn--reset {
  font-size: 16px; font-weight: 700;
  width: 30px; height: 30px;
  border-radius: var(--r-md); border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text-3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.toolbar__btn--reset:hover { color: var(--c-text); border-color: var(--c-border-hi); }

/* +kg Picker Popover */
.ex-kg-wrap { position: relative; flex-shrink: 0; }
.ex-kg-picker {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 300;
  background: var(--c-surface2); border: 1px solid var(--c-border-hi);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; white-space: nowrap;
  max-width: calc(100vw - 16px);
}
.ex-kg-picker-btn {
  min-width: 36px; height: 32px; padding: 0 6px;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: var(--c-surface); color: var(--c-text-2);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.ex-kg-picker-btn--other { color: var(--c-text-3); font-style: italic; }
.ex-kg-picker-btn:hover { background: var(--c-surface2); color: var(--c-text); border-color: var(--c-accent); }
.ex-kg-picker-btn.is-selected { background: var(--c-accent); color: #000; border-color: var(--c-accent); }
.ex-kg-picker-custom { display: flex; gap: 4px; align-items: center; width: 100%; }
.ex-kg-picker-custom .num-input { width: 70px; height: 32px; }

/* ⭐-Favorit-Button */
.btn-fav {
  background: none; border: none; padding: 2px 4px; margin: 0;
  font-size: 15px; line-height: 1; cursor: pointer;
  color: var(--c-text-3); opacity: 0.55;
  transition: opacity var(--t-fast);
  flex-shrink: 0;
}
.btn-fav:hover { opacity: 1; }
.btn-fav.is-fav { opacity: 1; }
.heatmap { display: grid; grid-template-columns: repeat(12,1fr); gap: 3px; margin-top: var(--sp-2); }
.hm-cell { aspect-ratio: 1; border-radius: 3px; background: var(--c-surface2); }
.hm-cell--1 { background: rgba(200,255,0,.25); }
.hm-cell--2 { background: rgba(200,255,0,.55); }
.hm-cell--3    { background: rgba(200,255,0,.85); }

/* ── PR (3.1) ──────────────────────────────────────────────── */
/* B117: checkmark itself stays uniform (.is-done) regardless of PR status —
   PR is already conveyed by the separate .pr-badge trophy, so no color override here. */
.pr-badge { display: flex; justify-content: center; line-height: 0; }
.pr-badge svg { width: 16px; height: 16px; color: #FFD700; }
.pr-row { padding: 6px 0; border-bottom: 1px solid var(--c-border); font-size: 13px; }
.pr-row:last-child { border-bottom: none; }
/* Runde 19 (Cluster 5): .pr-row-Inhalt lebt jetzt in einem Button (Detail-Ebene-Toggle) statt direkt im Row-Div. */
.pr-row__main { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pr-name { flex: 1; }
.pr-val  { font-family: var(--font-display); font-size: 16px; color: var(--c-accent); }
.pr-date { font-size: 10px; color: var(--c-text-3); }
.pr-row__detail { margin: 6px 0 2px; padding: 8px 10px; background: var(--c-surface-2); border-radius: var(--r-sm); font-size: 12px; }
.pr-detail-set { color: var(--c-text-2); line-height: 1.6; }
.pr-detail-date { margin-top: 4px; color: var(--c-text-3); font-size: 11px; }
.pr-row--fav { background: color-mix(in srgb, var(--c-accent) 6%, transparent); border-radius: var(--r-sm); padding-left: 6px; }
.pr-row--fav .pr-name { font-weight: 600; }
.pr-collapse { margin-top: var(--sp-3); }
.pr-collapse__summary { cursor: pointer; font-size: 12px; color: var(--c-text-3); padding: var(--sp-2) 0; list-style: none; user-select: none; }
.pr-collapse__summary::-webkit-details-marker { display: none; }
.pr-collapse__body { margin-top: var(--sp-2); }

/* ── RPE popover (2.2) ─────────────────────────────────────── */
.set-cell--rpe { position: relative; overflow: visible; }
.rpe-trigger {
  width: 100%; min-height: 34px; font-size: 14px;
  background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); color: var(--c-text-3); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.rpe-trigger.has-val { background: var(--c-accent); border-color: var(--c-accent); color: #000; font-weight: 700; }
.rpe-popover {
  position: absolute; bottom: calc(100% + 4px); left: 50%;
  transform: translateX(-50%);
  z-index: 350;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-2);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.rpe-popover__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rpe-popover__btn {
  width: 44px; height: 36px;
  background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); font-size: 12px; color: var(--c-text-2);
  cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
}
.rpe-popover__btn.is-selected { background: var(--c-accent); border-color: var(--c-accent); color: #000; font-weight: 700; }
.rpe-popover__btn:hover:not(.is-selected) { border-color: var(--c-border-hi); color: var(--c-text); }
.rpe-static { font-size: 13px; color: var(--c-text-3); padding: 4px 0; display: block; text-align: center; }

/* ── Session rating / fatigue (3.5) ────────────────────────── */
.session-rating { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-3) 0; }
.session-rating__lbl { font-size: 11px; color: var(--c-text-3); }
.session-rating__btn {
  font-size: 24px; background: none; border: 2px solid transparent;
  border-radius: var(--r-md); padding: 4px 8px; cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.session-rating__btn.is-selected { border-color: var(--c-accent); transform: scale(1.1); }
.session-rating__btn:hover { transform: scale(1.05); }

.streak-row {
  display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.streak-row::-webkit-scrollbar { display: none; }
.streak-card { flex: 0 0 auto; min-width: 56px; background: var(--c-surface2); border-radius: var(--r-md); padding: var(--sp-3); text-align: center; }
.streak-num { font-family: var(--font-display); font-size: 32px; color: var(--c-accent); line-height: 1; }
.streak-lbl { font-size: 9px; color: var(--c-text-3); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.streak-card[data-action] { cursor: pointer; border: none; font-family: inherit; }
.metric-tooltip {
  margin-top: var(--sp-2);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-3);
  font-size: 12px; line-height: 1.5; color: var(--c-text-2);
}
.diff-up { color: var(--c-ok); } .diff-dn { color: var(--c-danger); }
.progress-bar-wrap { margin-top: var(--sp-2); background: var(--c-surface2); border-radius: var(--r-full); height: 3px; overflow: hidden; }

/* Body-tab correlation insight card */
.insight-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-3); margin-bottom: var(--sp-3);
  font-size: 13px; line-height: 1.5;
}
.progress-bar { height: 100%; background: var(--c-accent); border-radius: var(--r-full); transition: width var(--t-normal); }
.chart-select {
  width: 100%; background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-md); color: var(--c-text); font-size: 13px;
  padding: var(--sp-2) var(--sp-3); height: var(--touch); margin-bottom: var(--sp-3); cursor: pointer;
}
.chart-select:focus { border-color: var(--c-accent); outline: none; }

/* ── Letzte 4 Einheiten (Analyse-Tab) ─────────────────────────── */
.l4-details { margin-top: var(--sp-3); }
.l4-summary {
  font-size: 13px; color: var(--c-text-2); cursor: pointer;
  list-style: none; padding: var(--sp-2) 0; user-select: none;
}
.l4-summary::-webkit-details-marker { display: none; }
.l4-body { margin-top: var(--sp-2); }
.l4-week { margin-bottom: var(--sp-3); }
.l4-week-hdr {
  font-size: 11px; color: var(--c-text-3); letter-spacing: .04em;
  border-bottom: 1px solid var(--c-border); padding-bottom: 4px; margin-bottom: 4px;
}
.l4-table { width: 100%; }
.l4-row {
  display: grid; grid-template-columns: 20px 1fr 1fr 20px;
  padding: 2px 0; gap: 4px; font-size: 12px; color: var(--c-text-2); opacity: 0.8;
}
.l4-table--rpe .l4-row { grid-template-columns: 20px 1fr 1fr 1fr 20px; }
.l4-row--hdr { color: var(--c-text-3); font-size: 10px; font-weight: 500; opacity: 0.7; }
.l4-ok  { color: var(--c-ok); }
.l4-fail { color: var(--c-danger); }

/* ══════════════════════════════════════════════════════════════
   SETTINGS TAB
   ══════════════════════════════════════════════════════════════ */
.settings-section {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); margin-bottom: var(--sp-3); overflow: hidden;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4); min-height: var(--touch);
  border-bottom: 1px solid var(--c-border); gap: var(--sp-3);
}
.settings-row:last-child { border-bottom: none; }
.settings-row--clickable { cursor: pointer; }
.settings-row--clickable:hover { background: var(--c-surface2); }
.settings-row__label { font-size: 14px; font-weight: 500; }
.settings-row__desc  { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.settings-row__inline-link {
  background: none; border: none; padding: 0; margin-left: 2px;
  font-family: inherit; font-size: inherit; color: var(--c-accent);
  text-decoration: underline; cursor: pointer; display: inline;
}
.settings-row__action { flex-shrink: 0; display: flex; align-items: center; gap: var(--sp-2); }
.settings-row__action svg { width: 18px; height: 18px; color: var(--c-text-3); }
.toggle {
  position: relative; width: 44px; height: 24px; border-radius: var(--r-full);
  background: var(--c-border); border: none; cursor: pointer;
  transition: background var(--t-normal); flex-shrink: 0;
}
.toggle.is-on { background: var(--c-accent); }
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: var(--r-full);
  background: #fff; box-shadow: var(--shadow-sm); transition: left var(--t-normal);
}
.toggle.is-on::after { left: 23px; }
.toggle:disabled { cursor: not-allowed; opacity: .5; }

/* Sprint C3 (train-v110): eingerückte Suboptionen der automatischen
   Wochenerstellung — bleiben sichtbar, werden bei deaktiviertem
   Hauptschalter nur ausgegraut (nicht versteckt). */
.settings-row.autoweek-sub { padding-left: calc(var(--sp-4) + var(--sp-4)); }
.settings-row.autoweek-sub.is-disabled { opacity: .45; }

.tpl-day-section { margin-bottom: var(--sp-4); }
.tpl-day-title { font-family: var(--font-display); font-size: 15px; letter-spacing: .08em; color: var(--c-accent); margin-bottom: var(--sp-2); }
.tpl-exercise { background: var(--c-surface2); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--sp-3); margin-bottom: var(--sp-2); }
.tpl-ex-top { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.tpl-name-input { flex: 1; background: none; border: none; color: var(--c-text); font-weight: 600; font-size: 14px; outline: none; }
.tpl-note-input { width: 100%; background: none; border: none; border-bottom: 1px solid var(--c-border); color: var(--c-text-3); font-size: 12px; font-style: italic; padding: 2px 0; outline: none; margin-bottom: var(--sp-2); }
.tpl-sets-row { display: flex; align-items: center; gap: var(--sp-2); font-size: 12px; color: var(--c-text-3); flex-wrap: wrap; }
.tpl-num { width: 50px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-sm); color: var(--c-text); font-size: 13px; text-align: center; padding: 3px; outline: none; }

/* ══════════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.75); z-index: 400;
  align-items: center; justify-content: center;
  padding: var(--sp-4); overflow-y: auto;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: var(--sp-5);
  width: 100%; max-width: 420px;
  max-height: calc(100dvh - 64px); overflow-y: auto;
  animation: modalIn var(--t-normal) var(--ease);
}
@keyframes modalIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal__title { font-family: var(--font-display); font-size: 20px; letter-spacing: .1em; margin-bottom: var(--sp-4); }
.modal__actions { display: flex; gap: var(--sp-2); justify-content: flex-end; margin-top: var(--sp-4); flex-wrap: wrap; }
.form-group { margin-bottom: var(--sp-3); }
.form-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); display: block; margin-bottom: var(--sp-1); }
.form-input {
  width: 100%; background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-md); color: var(--c-text); font-size: 15px;
  padding: var(--sp-2) var(--sp-3); height: var(--touch);
  transition: border-color var(--t-fast);
}
.form-input:focus { border-color: var(--c-accent); outline: none; }

/* ── New week: source chooser (prev vs template) ─────────────────────────── */
.nw-source {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: var(--c-surface2);
  cursor: pointer;
  margin-bottom: 8px;
}
.nw-source:hover { border-color: var(--c-border-hi); }
.nw-source input[type="radio"] { margin-top: 3px; }
.nw-source__ttl { font-size: 13px; font-weight: 700; color: var(--c-text); }
.nw-source__desc { font-size: 12px; color: var(--c-text-3); margin-top: 2px; line-height: 1.35; }
.nw-source:has(input:checked) {
  border-color: rgba(200,255,0,.35);
  box-shadow: 0 0 0 2px rgba(200,255,0,.08) inset;
}
.nw-source--check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: none; border: none; padding: 0; font-size: 14px; color: var(--c-text);
}
.nw-source--check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--c-accent); cursor: pointer; }

/* KI-Gewichtsempfehlungs-Chips im Neue-Woche-Dialog */
.nw-weight-recs { margin-top: var(--sp-2); }
.nw-rec-section-header {
  padding: var(--sp-2) 0 calc(var(--sp-1) / 2);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-text-3); pointer-events: none; user-select: none;
}
.nw-weight-rec-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  width: 100%; text-align: left;
  background: var(--c-surface2); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: 7px 10px; margin-bottom: 6px;
  font-size: 12px; cursor: pointer;
  transition: opacity var(--t-fast), background var(--t-fast);
}
.nw-weight-rec-chip:hover { background: var(--c-surface3, #232D42); }
.nw-weight-rec-chip--confirmed {
  border-color: var(--c-ok); box-shadow: 0 0 0 1px var(--c-ok);
}
.nw-rec-top    { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 8px; }
.nw-rec-name   { font-weight: 600; flex: 1; min-width: 0; color: var(--c-text); }
.nw-rec-action { font-weight: 700; color: var(--c-accent); white-space: nowrap; font-size: 12px; }
.nw-rec-subline { font-size: 11px; color: var(--c-text-2); }
/* Feature B (2026-07-14): anpassbare Steigerungsmenge — Wrapper braucht
   position:relative als Anker für den absolut positionierten .ex-kg-picker
   (wiederverwendet, siehe dortige Deklaration). */
.nw-weight-rec-wrap { position: relative; margin-bottom: 6px; }
.nw-weight-rec-wrap .nw-weight-rec-chip { margin-bottom: 4px; }
.nw-rec-adjust-btn {
  background: none; border: none; padding: 2px 0; margin-bottom: 6px;
  font-size: 11px; color: var(--c-text-3); font-style: italic; cursor: pointer;
}
.nw-rec-adjust-btn:hover { color: var(--c-text-2); }
.nw-more-recs-toggle {
  width: 100%; text-align: center; background: none; border: none;
  color: var(--c-text-2); font-size: 11px; padding: var(--sp-2) 0;
  cursor: pointer;
}
.nw-more-recs-toggle:hover { color: var(--c-text); }

.export-option {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  cursor: pointer; margin-bottom: var(--sp-2); min-height: var(--touch);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.export-option:hover { border-color: var(--c-accent); }
.export-option svg { width: 22px; height: 22px; color: var(--c-accent); flex-shrink: 0; margin-top: 1px; }
.export-option__title { font-weight: 600; font-size: 14px; }
.export-option__desc  { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: calc(88px + var(--sab)); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--c-surface2); border: 1px solid var(--c-border);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full);
  font-size: 13px; font-weight: 500; z-index: 500;
  opacity: 0; transition: opacity var(--t-normal), transform var(--t-normal);
  pointer-events: none; white-space: nowrap;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--ok   { border-color: var(--c-ok);     color: var(--c-ok); }
.toast--warn { border-color: var(--c-warn);   color: var(--c-warn); }
.toast--info { border-color: var(--c-accent); color: var(--c-accent); }

/* A2: .toast sits at the same bottom:88px height as timer.js' .pause-overlay
   (fixed, bottom:88px, right:16px, min-width:220px — see timer.js inline
   <style>). Since .toast is horizontally centered, its center point already
   falls inside the pause overlay's right-side horizontal span on typical
   phone widths — collides even for short messages, not just long ones.
   Lift the toast clear of the pause overlay whenever it is visible
   (.pause-overlay--visible, toggled by timer.js). Both elements are appended
   to <body> (toast inside #app's static shell, pause overlay directly), so
   :has() on the shared body ancestor is used instead of a sibling combinator. */
/* Runde 21 (Kurzartikel-Feature): der Offset wurde von 168px auf 240px
   angehoben -- das Pause-Overlay kann jetzt durch den optionalen
   Trainings-Tipp (timer.js) spürbar höher werden als die ursprüngliche
   Ein-Zeilen-Pille, gegen die 168px kalibriert war. */
body:has(.pause-overlay--visible) .toast {
  bottom: calc(240px + var(--sab));
}
body:has(.pause-overlay--visible) .pr-moment-toast {
  bottom: calc(240px + var(--sab));
}

/* PR-Moment-Toast (B73) — dezenter, klickbarer Banner direkt nach einem
   echten Gewichts-PR, unabhängig vom Toast-System oben (braucht einen
   Klick-Handler, den showToast() nicht unterstützt). */
.pr-moment-toast {
  position: fixed; bottom: calc(88px + var(--sab)); left: 50%;
  transform: translateX(-50%);
  z-index: 501;
  animation: pr-toast-in 240ms var(--ease) both;
}
@keyframes pr-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.pr-moment-toast__btn {
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--c-accent); color: var(--c-bg);
  border: none; border-radius: var(--r-full);
  padding: 0 var(--sp-5); font-size: 14px; font-weight: 700;
  min-height: var(--touch); white-space: nowrap;
  box-shadow: var(--shadow-md);
}

/* Storage warning banner */
.storage-warning {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  background: var(--c-danger); color: #fff; font-size: 13px;
  padding: var(--sp-2) var(--sp-4); text-align: center;
  display: none; gap: var(--sp-3); align-items: center; justify-content: center; flex-wrap: wrap;
}
.storage-warning.is-visible { display: flex; }
.storage-warning .btn { min-height: 30px; font-size: 12px; background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); color: #fff; }

/* Service-Worker update banner — persistent, kein Auto-Dismiss */
.sw-update-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  background: var(--c-accent); color: #0E0E10; font-size: 13px; font-weight: 600;
  padding: var(--sp-2) var(--sp-4); text-align: center;
  display: none; gap: var(--sp-3); align-items: center; justify-content: center; flex-wrap: wrap;
}
.sw-update-banner.is-visible { display: flex; }
.sw-update-banner .btn { min-height: 30px; font-size: 12px; background: rgba(14,14,16,.15); border-color: rgba(14,14,16,.4); color: #0E0E10; }
.sw-update-banner .btn--ghost { opacity: .7; }
/* Runde 20 (Befund 4): "mehr Details"-Aufklapp-Bereich -- eigene Zeile
   unter den Aktions-Buttons, statt zwischen ihnen zu quetschen. */
.sw-update-banner__row {
  display: flex; gap: var(--sp-3); align-items: center; justify-content: center; flex-wrap: wrap;
}
.sw-update-banner__details-toggle {
  background: none; border: none; color: #0E0E10; opacity: .75;
  font-size: 11px; font-weight: 600; min-height: 24px; padding: 0;
}
.sw-update-banner__details {
  flex-basis: 100%; text-align: left; font-weight: 400; font-size: 12px;
}
.sw-update-banner__details-list { margin: var(--sp-1) 0 0; padding-left: var(--sp-4); }
.sw-update-banner__details-list li { margin-bottom: 2px; }
.sw-update-banner__details-empty { opacity: .75; }

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 480px) {
  .week-nav__label { font-size: 28px; }
  .day-card__title { font-size: 22px; }
  .body-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

/* ── FIX: SVG-Größen in Inline-Kontexten ───────────────────────────────────
   Das globale "svg { display: block }" lässt SVG-Icons ohne explizite
   Größe auf die volle Container-Breite aufblähen.
   Hier werden alle bekannten Icon-Kontexte auf 16-22 px begrenzt.        */

/* Vorwoche-Banner: Bar-Chart-Icon war riesig */
.prev-banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Alle SVGs direkt in Buttons ohne eigene Größenklasse */
button > svg,
label > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Settings-Row Label-Icons (download/upload vor dem Text) */
.settings-row__label svg {
  display: inline;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Exercise config & remove buttons */
.exercise__cfg-btn svg,
.exercise__remove-btn svg {
  width: 16px;
  height: 16px;
}

/* Complete-Button Lock/Unlock Icon */
.complete-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mode-pill Deload Zap-Icon */
.mode-pill__btn svg {
  width: 14px;
  height: 14px;
  display: inline;
  vertical-align: middle;
}

/* ── Layout-Korrekturen ─────────────────────────────────────────────────────
   Stellt sicher dass alle Karten gleich breit sind und korrekt im
   Page-Container sitzen.                                                   */
#days-container {
  width: 100%;
  box-sizing: border-box;
}

/* Override für ältere !important-Regeln die noch im Browser-Cache sein könnten */
.day-card {
  position: relative;
  margin-left: 0;
  margin-right: 0;
}
.week-menu-wrap { position: relative; flex-shrink: 0; }
.ex-menu-item--active { color: var(--c-accent); }
.ex-menu-item--vacation { color: var(--c-warn); }

/* --- MANUELLE ÜBUNGS-SORTIERUNG (PFEILE) --- */
.exercise__order-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 8px;
  flex-shrink: 0;
}

.exercise__order-btn {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  border-radius: 4px;
  width: 28px;
  height: 20px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.exercise__order-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* ── Gewicht erhöhen (sticky header chip) ──────────────────── */

/* Kompakter Chip im sticky Header */
.btn-inc-weight-sticky {
  height: 28px;
  padding: 0 var(--sp-2);
  background: var(--c-accent);
  color: #000;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
  /* Touch-Target trotz kleiner Optik */
  min-width: 44px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-inc-weight-sticky:hover  { background: var(--c-accent-dk); }
.btn-inc-weight-sticky:active { transform: scale(.95); }

/* Stufenwahl im cfg-Panel (hinter ⚙️) */
.weight-step-btn {
  height: 28px;
  min-width: 40px;
  padding: 0 var(--sp-2);
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text-3);
  font-family: var(--font-sans);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.weight-step-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.weight-step-btn.is-selected {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #000;
  font-weight: 700;
}
/* ── Zielvorgaben Inputs im ⚙️-Panel ──────────────────────── */
.target-input {
  width: 58px;
  height: 28px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 12px;
  text-align: center;
  padding: 0 var(--sp-1);
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
  transition: border-color var(--t-fast);
}
.target-input::-webkit-outer-spin-button,
.target-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.target-input:focus { border-color: var(--c-accent); }
.target-input::placeholder { color: var(--c-text-3); font-size: 11px; }

/* ── Ziel-Vorschlag (Ø letzte Woche) ────────────────────────── */
.target-suggestion {
  font-size: 11px;
  color: var(--c-text-3);
  white-space: nowrap;
}
.btn-adopt-target {
  font-size: 11px;
  padding: 2px 8px;
  height: 22px;
  background: none;
  border: 1px solid var(--c-accent);
  border-radius: var(--r-full);
  color: var(--c-accent);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-adopt-target:hover {
  background: var(--c-accent);
  color: #000;
}

/* ── Satz-Notiz ─────────────────────────────────────────────── */
.set-note-btn {
  background: none;
  border: none;
  color: var(--c-text-3);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.4;
  transition: opacity var(--t-fast), color var(--t-fast);
  /* Kein eigener Grid-Slot – schwebt hinter dem minus-Button */
  grid-column: 6;
  align-self: start;
  margin-top: 6px;
}
.set-note-btn:hover  { opacity: 1; color: var(--c-accent); }
.set-note-btn.has-note { opacity: 1; color: var(--c-accent); }
.set-note-btn.set-note-btn--anomaly { opacity: 1; color: var(--c-warn); }

.set-note-row {
  /* Erstreckt sich über alle 6 Grid-Spalten */
  grid-column: 1 / -1;
  padding: var(--sp-1) 0 var(--sp-2);
}
.set-note-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: italic;
  padding: 2px 0;
  outline: none;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.set-note-input::placeholder { color: var(--c-text-3); }
.set-note-input:focus {
  border-color: var(--c-accent);
  color: var(--c-text);
}

/* ── Overview mode toggle button ─────────────────────────── */
.day-overview-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: var(--touch);
  padding: 0;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text-3);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.day-overview-toggle svg { width: 18px; height: 18px; }
.day-overview-toggle:hover,
.day-overview-toggle.is-active {
  color: var(--c-accent);
  border-color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 10%, transparent);
}

/* ── Overview grid ───────────────────────────────────────── */
/* Runde 19, Cluster 8: Kacheln-Grid -> volle-Breite-Zeilen (Nutzer-Wunsch:
   "Tage in Zeilen anzeigen um den Bildschirm zu füllen"). Titel/Subtitle
   links, Sätze/Volumen/Fortschrittsbalken rechts, statt vertikal
   gestapelt in einer schmalen Kachel — nutzt die volle Breite pro Zeile
   statt mehrspaltigem Grid. */
.day-overview-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
}
.day-overview-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  position: relative;
  transition: border-color var(--t-fast), background var(--t-fast);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.day-overview-card:hover  { border-color: var(--c-accent); background: var(--c-surface2); }
.day-overview-card--done  { border-color: var(--c-ok); opacity: .85; }
.day-overview-card--deload { border-color: var(--c-deload-bd); }
.day-overview-card__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.day-overview-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .08em;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.day-overview-card__sub {
  font-size: 10px;
  color: var(--c-text-3);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day-overview-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}
.day-overview-card__stats {
  display: flex;
  flex-direction: row;
  gap: var(--sp-2);
  font-size: 11px;
  color: var(--c-text-2);
  white-space: nowrap;
}
.day-overview-card__bar {
  background: var(--c-border);
  border-radius: 2px;
  height: 3px;
  width: 72px;
  overflow: hidden;
}
.day-overview-card__done-badge {
  position: static;
  font-size: 12px;
  color: var(--c-ok);
  flex: 0 0 auto;
}

/* ── Settings section title ──────────────────────────────── */
.settings-section__title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-text-3);
  padding: var(--sp-2) var(--sp-4) var(--sp-1);
}
/* B3 (Einstellungen restrukturieren) — dezente Zwischenüberschrift INNERHALB
   einer bestehenden .settings-section-Karte (im Unterschied zu
   .settings-section__title oben, das den Titel EINER ganzen Karte trägt).
   Bewusst kein Trennstrich/Border — Whitespace (margin) allein trennt die
   Gruppen. */
.settings-group-title {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--c-text-2);
  text-transform: uppercase;
  margin: 24px var(--sp-4) 8px;
}
.settings-group-title:first-child { margin-top: 0; }

/* ── Deload details ──────────────────────────────────────── */
.deload-details {
  width: 100%;
}
.deload-details__summary {
  font-size: 12px;
  color: var(--c-text-3);
  cursor: pointer;
  padding: var(--sp-1) 0;
  list-style: none;
  user-select: none;
}
.deload-details__summary::-webkit-details-marker { display: none; }
.deload-details__summary::before {
  content: '▸ ';
  font-size: 10px;
}
details[open] > .deload-details__summary::before { content: '▾ '; }
.deload-details__body {
  padding: var(--sp-2) 0;
}

/* ══════════════════════════════════════════════════════════════
   KATEGORIE 3 – NEUE FEATURES
   ══════════════════════════════════════════════════════════════ */

/* ── Superset (3.10) ───────────────────────────────────────── */
.exercise.is-superset { border-left: 3px solid var(--c-accent); padding-left: 8px; }
.ss-badge {
  display: inline-block; font-size: 9px; font-weight: 700;
  letter-spacing: .1em; background: var(--c-accent); color: #000;
  border-radius: var(--r-full); padding: 1px 6px; margin-bottom: 4px;
}

/* ── 1RM hint (3.7) ────────────────────────────────────────── */
.orm-hint {
  font-size: 10px; color: var(--c-text-3); letter-spacing: .05em;
  margin-top: 2px; margin-bottom: 4px;
}
.orm-hint--analysis {
  margin: var(--sp-2) 0; padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface2); border-radius: var(--r-sm);
  font-size: 13px; color: var(--c-accent); font-family: var(--font-display); letter-spacing: .05em;
}
.orm-hint__basis { font-size: 11px; color: var(--c-text-3); font-family: var(--font-body); margin-left: 6px; letter-spacing: 0; }

/* ── Kraftzuwachs (Runde 20, Befund 5) ────────────────────────── */
.strength-gain-row {
  display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2);
}
.strength-gain-row__label { font-size: 12px; color: var(--c-text-2); white-space: nowrap; }
.chart-select--sm { width: auto; height: 32px; margin-bottom: 0; padding: 0 var(--sp-2); font-size: 12px; }
.strength-gain-hint {
  margin: var(--sp-2) 0; padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface2); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
}
.strength-gain-hint--empty { color: var(--c-text-3); font-weight: 400; font-size: 12px; }
.strength-gain-hint__basis { display: block; font-size: 11px; color: var(--c-text-3); font-weight: 400; margin-top: 2px; }
.movement-warning {
  margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-3);
  background: rgba(255,180,0,.1); border: 1px solid rgba(255,180,0,.3);
  border-radius: var(--r-sm); font-size: 12px; color: #FFB400;
}

/* ── Muscle group bar chart (3.13) ─────────────────────────── */
.mg-bar-row   { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: 6px; }
.mg-bar-label { width: 80px; font-size: 11px; flex-shrink: 0; }
.mg-bar-wrap  { flex: 1; height: 8px; background: var(--c-surface2); border-radius: var(--r-full); overflow: hidden; }
.mg-bar       { height: 100%; background: var(--c-accent); border-radius: var(--r-full); transition: width .3s; }
.mg-bar-val   { width: 24px; text-align: right; font-size: 11px; color: var(--c-text-3); }

/* ── Named templates list (3.4) ────────────────────────────── */
.tpl-list-item { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--c-border); }
.tpl-list-item:last-child { border-bottom: none; }

/* ── Day inline edit (2.3) ─────────────────────────────────── */
/* Runde 16 (Phase-C-Cluster-2a): .day-body-header/.day-card__title/
   .day-card__subtitle wiederhergestellt -- die offene Tagesansicht zeigte
   Titel/Subtitle seit B169 (Runde 6) gar nicht mehr an. */
.day-body-header { margin-bottom: var(--sp-3); }
.day-card__title {
  font-family: var(--font-display); font-size: 18px; letter-spacing: .08em;
  color: var(--c-text);
}
.day-card__subtitle { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.day-editable-wrap { display: flex; align-items: center; gap: 4px; }
.day-editable {
  cursor: text; border-radius: 3px;
  transition: background var(--t-fast);
}
.day-editable:hover { background: rgba(255,255,255,.06); }
.day-subtitle-placeholder { color: var(--c-text-3); font-style: italic; font-size: 12px; }
.day-inline-edit {
  background: var(--c-surface2); border: 1px solid var(--c-accent);
  border-radius: var(--r-sm); color: var(--c-text); outline: none;
  padding: 2px 6px; width: 100%; max-width: 240px;
}
.day-inline-edit--title {
  font-family: var(--font-display); font-size: 19px; letter-spacing: .06em;
  color: var(--c-accent);
}
.day-inline-edit--sub { font-size: 12px; color: var(--c-text-2); }

/* ── Wochenrückblick ────────────────────────────────────────────────────────── */
.wr-modal { max-width: 460px; }
.wr-modal-header { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.wr-modal-icon { font-size: 28px; line-height: 1; }
.wr-modal-sub { font-size: 13px; color: var(--c-text-3); margin-top: 2px; }

.wr-deload-banner {
  background: var(--c-deload-bg); border: 1px solid var(--c-deload-bd);
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3);
  font-size: 12px; color: var(--c-deload); margin-bottom: var(--sp-3);
}
.wr-vacation-banner {
  background: rgba(217,119,6,.12); border: 1px solid #D97706;
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3);
  font-size: 12px; color: #D97706; margin-bottom: var(--sp-3);
}

.wr-kw-row { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.wr-kw { font-family: var(--font-display); font-size: 22px; letter-spacing: .08em; color: var(--c-accent); }
.wr-note { font-size: 13px; color: var(--c-text-3); }

.wr-section-title {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text-3); margin: var(--sp-4) 0 var(--sp-2);
}

/* Compact single-line summary row, scrolls horizontally if needed */
.wr-metrics-row {
  display: flex; align-items: center; gap: var(--sp-2);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; white-space: nowrap;
  font-size: 13px; color: var(--c-text); padding: var(--sp-1) 0;
}
.wr-metrics-row::-webkit-scrollbar { display: none; }
.wr-metric     { flex: 0 0 auto; }
.wr-metric-sep { flex: 0 0 auto; color: var(--c-text-3); }
.wr-vol-pct { font-size: 12px; margin-left: 4px; }
.wr-vol-pct--up  { color: var(--c-ok); }
.wr-vol-pct--dn  { color: var(--c-danger); }

/* Review cards */
.wr-card {
  border-left: 3px solid transparent;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-2);
}
.wr-card--ok   { border-color: #16A34A; background: #0F2417; }
.wr-card--warn { border-color: #D97706; background: #1C1500; }
.wr-card--info { border-color: #1A73E8; background: #0D1F3C; }
.wr-card__lbl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: 2px; }
.wr-card__txt { font-size: 14px; color: var(--c-text); line-height: 1.45; }

/* Continue button */
.wr-continue { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.wr-continue__btn { width: 100%; flex: 1 1 100%; }
.wr-share__btn { flex: 1 1 calc(50% - var(--sp-3) / 2); min-height: var(--touch); font-size: 13px; padding-left: var(--sp-2); padding-right: var(--sp-2); }

/* ── RPE Nudge (Sprint 5) ─────────────────────────────────── */
.confirm-set-wrap { position: relative; }
.rpe-nudge {
  position: absolute; bottom: calc(100% + 6px); left: 0; right: 0;
  background: var(--c-surface2); border: 1px solid var(--c-border-hi);
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
  box-shadow: var(--shadow-md); z-index: 200;
  flex-wrap: wrap;
  /* B118: container must not block clicks on the set-row controls underneath —
     only its own interactive children (below) re-enable hit-testing. */
  pointer-events: none;
}
.rpe-nudge__label { font-size: 12px; color: var(--c-text-3); flex-shrink: 0; }
.rpe-nudge__btn {
  min-width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast);
  pointer-events: auto;
}
.rpe-nudge__btn:hover { background: var(--c-accent); border-color: var(--c-accent); color: #000; }

/* ── Exercise settings two-level panel (Sprint 4) ─────────── */
.cfg-adv-toggle {
  background: none; border: none;
  color: var(--c-text-3); font-size: 12px;
  padding: var(--sp-2) 0 var(--sp-1);
  cursor: pointer; text-align: left; width: 100%;
  transition: color var(--t-fast);
}
.cfg-adv-toggle:hover, .cfg-adv-toggle.is-open { color: var(--c-text-2); }
.cfg-adv-panel {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding-top: var(--sp-2); border-top: 1px solid var(--c-border);
}

/* ── Session rating: static read-only after locking ──────── */
.session-rating--static { pointer-events: none; }
.session-rating__chosen { font-size: 22px; }
.session-rating__meta { font-size: 12px; color: var(--c-text-3); padding: 2px 6px;
  background: var(--c-surface2); border-radius: var(--r-full); }

/* ── Day completion modal (Sprint 3) ──────────────────────── */
.completion-modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
}
.completion-modal {
  background: var(--c-surface2); border: 1px solid var(--c-border-hi);
  border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  padding: var(--sp-6); width: 100%; max-width: 340px;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
}
.completion-modal__title {
  font-family: var(--font-display); font-size: 22px; letter-spacing: .08em;
  color: var(--c-text); text-align: center;
}
.completion-modal__ratings { display: flex; gap: var(--sp-4); justify-content: center; }
.completion-modal__rate-btn {
  font-size: 36px; background: none; border: 2px solid transparent;
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3);
  cursor: pointer; transition: transform var(--t-fast), border-color var(--t-fast);
  min-height: var(--touch); min-width: var(--touch);
}
.completion-modal__rate-btn:hover { transform: scale(1.15); border-color: var(--c-border-hi); }
.completion-modal__slider-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--sp-3); width: 100%;
}
.completion-modal__label { font-size: 14px; color: var(--c-text-2); white-space: nowrap; }
.completion-modal__slider {
  width: 100%; accent-color: var(--c-accent); cursor: pointer;
}
.completion-modal__val {
  font-size: 14px; font-weight: 600; color: var(--c-accent);
  min-width: 36px; text-align: right;
}
.completion-modal__confirm {
  width: 100%; height: var(--touch); border-radius: var(--r-md);
  background: var(--c-accent); color: #000; font-weight: 600;
  font-size: 15px; border: none; cursor: pointer;
  transition: opacity var(--t-fast);
}
.completion-modal__confirm:hover { opacity: .85; }
.completion-modal__skip {
  background: none; border: none; color: var(--c-text-3);
  font-size: 13px; cursor: pointer; text-decoration: underline;
  padding: var(--sp-1);
}

/* ── Day completion screen (Sprint 3) ─────────────────────── */
.day-completion-screen {
  position: fixed; inset: 0; z-index: 950;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  animation: cs-in 280ms var(--ease) both;
}
@keyframes cs-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.day-completion-screen__inner {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
  padding: var(--sp-8);
}
.day-completion-screen__icon { font-size: 64px; line-height: 1; }
.day-completion-screen__pct {
  font-family: var(--font-display); font-size: 80px; line-height: 1;
  color: var(--c-accent); letter-spacing: .04em;
}
/* B67: Label direkt unter der großen Erfolgsquote-Zahl, damit sie nicht
   mit der abweichenden Zielerfüllung (.day-completion-screen__effort,
   inkl. übersprungener Sätze — bewusst zwei unterschiedliche Kennzahlen)
   verwechselt wird. Negativer margin-top rückt das Label eng an die
   Zahl heran, statt wie ein weiterer gleichrangiger Block zu wirken. */
.day-completion-screen__pct-label {
  font-size: 13px; color: var(--c-text-2); margin-top: -6px;
  text-align: center; max-width: 240px;
}
.day-completion-screen__sets { font-size: 18px; color: var(--c-text-2); }
.day-completion-screen__pr {
  font-size: 20px; font-weight: 700; color: var(--c-warn);
  background: rgba(255,179,0,.12); border-radius: var(--r-full);
  padding: var(--sp-1) var(--sp-4);
}
.day-completion-screen__quote {
  font-size: 14px; color: var(--c-text-3); text-align: center;
  font-style: italic; max-width: 260px; line-height: 1.6;
  margin-top: var(--sp-2);
}
.day-completion-screen__share-btn {
  min-height: var(--touch); padding: var(--sp-2) var(--sp-5);
  font-size: 14px;
}

/* ── Effort-Score (Sprint 6) ──────────────────────────────── */
.effort-pct {
  font-size: 11px; font-weight: 600;
  margin: 2px 0 4px; display: block;
}
.pr-badge { display: flex; align-items: center; gap: 3px; justify-content: center; font-size: 10px; font-weight: 700; color: #FFD700; line-height: 1.3; }
.pr-badge svg { width: 16px; height: 16px; color: #FFD700; flex-shrink: 0; }
.pr-badge--goal { color: var(--c-ok); }
.pr-badge--reps { color: var(--c-ok); }
.day-completion-screen__effort {
  font-size: 20px; font-weight: 700; color: var(--c-ok);
  background: rgba(0,230,118,.12); border-radius: var(--r-full);
  padding: var(--sp-1) var(--sp-4);
}

/* Streak-Kette (.streak-chain-wrap) + Abzeichen-System (.badge-gallery,
   .badge-item, .badge-earned-overlay) entfernt (Runde 19, Cluster 10) —
   siehe ui.js-Kommentar an derselben Stelle. */

/* ── Onboarding ──────────────────────────────────────────── */
.onboarding {
  position: fixed; inset: 0; z-index: 970;
  background: var(--c-bg);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto;
}
.ob-screen {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-4); padding: var(--sp-8) var(--sp-5);
  width: 100%; max-width: 440px;
  min-height: 100svh; justify-content: center;
}
.ob-indicator { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.ob-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E2E35; transition: background 200ms; }
.ob-dot--active { background: var(--c-accent); }
.ob-logo {
  font-family: var(--font-display); font-size: 88px;
  color: var(--c-accent); line-height: 1; letter-spacing: .1em;
}
.ob-title {
  font-family: var(--font-display); font-size: 30px;
  color: var(--c-text); letter-spacing: .04em;
  text-align: center; margin: 0;
}
.ob-title--sm { font-size: 22px; }
.ob-sub {
  font-size: 14px; color: var(--c-text-2);
  text-align: center; line-height: 1.6;
  margin: 0; max-width: 320px;
}
/* Solotest-Feedback (2026-08-16): ersetzt den vorherigen Fließtext-Satz auf
   dem Datenschutz-Screen — als kurze, scannbare Liste statt eines Satzes
   leichter auf einen Blick erfassbar. */
.ob-privacy-list {
  list-style: none; margin: 0; padding: 0; max-width: 320px;
  display: flex; flex-direction: column; gap: var(--sp-2);
  text-align: left;
}
.ob-privacy-list li {
  font-size: 14px; color: var(--c-text-2); line-height: 1.5;
}
.ob-backup-warn {
  background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  font-size: 13px; color: var(--c-text-2); line-height: 1.6;
  text-align: center; max-width: 320px;
}
.ob-btn { width: 100%; max-width: 320px; }
.ob-btn--sm { font-size: 13px; opacity: .6; margin-top: calc(-1 * var(--sp-1)); }
.ob-ios-help {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: var(--sp-2);
}
.ob-ios-help__step { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 13px; color: var(--c-text-2); line-height: 1.5; }
.ob-ios-help__num {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-bg); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ob-tpl-list { display: flex; flex-direction: column; gap: var(--sp-3); width: 100%; }
.ob-tpl-card {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg); border: 2px solid var(--c-border);
  background: var(--c-surface); cursor: pointer;
  transition: border-color 140ms, background 140ms;
  user-select: none;
}
.ob-tpl-card--recommended { border-color: var(--c-ok); box-shadow: 0 0 0 1px var(--c-ok); }
.ob-tpl-card.is-selected { border-color: var(--c-accent); background: rgba(200,255,0,.07); box-shadow: none; }
.ob-tpl-icon { font-size: 26px; flex-shrink: 0; }
.ob-tpl-title { font-size: 14px; font-weight: 600; color: var(--c-text); }
.ob-tpl-meta { font-size: 12px; color: var(--c-text-2); margin-top: 2px; }
.ob-tpl-sub { font-size: 11px; color: var(--c-text-3); margin-top: 1px; }
.ob-tpl-exercises { font-size: 11px; color: var(--c-text-3); margin-top: 4px; }
.ob-tpl-recommended { font-size: 11px; color: var(--c-ok); font-weight: 600; margin-top: 4px; }

.ob-choice-block { width: 100%; }
.ob-choice-label { font-size: 13px; color: var(--c-text-2); margin-bottom: var(--sp-2); text-align: center; }
.ob-choice-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-3); }
.ob-choice-btn {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-full); color: var(--c-text-2);
  font-size: 13px; padding: 7px 14px; cursor: pointer;
  transition: border-color 140ms, color 140ms, background 140ms;
}
.ob-choice-btn:hover { border-color: var(--c-text-3); }
.ob-choice-btn.is-selected { border-color: var(--c-accent); color: var(--c-text); background: rgba(200,255,0,.07); }
.ob-optional { width: 100%; margin-top: var(--sp-2); }
.ob-optional__summary {
  font-size: 13px; color: var(--c-text-2); cursor: pointer;
  text-align: center; padding: var(--sp-2) 0; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.ob-optional__summary::-webkit-details-marker { display: none; }
.ob-optional__body { padding-top: var(--sp-3); }
.ob-startwerte__hint { font-size: 12px; color: var(--c-text-3); margin: 0 0 var(--sp-3); line-height: 1.5; }
.ob-startwert-row { margin-bottom: var(--sp-3); }
.ob-startwert-name { font-size: 14px; font-weight: 600; color: var(--c-text-2); margin-bottom: var(--sp-1); }
.ob-startwert-inputs { display: flex; gap: var(--sp-2); }
.ob-startwert-input {
  flex: 1; background: var(--c-surface2); border: 1.5px solid var(--c-border);
  border-radius: 8px; color: var(--c-text); font-size: 15px; font-family: inherit;
  padding: 8px 10px; min-width: 0; width: 100%;
  -webkit-appearance: none; text-align: center;
}
.ob-startwert-input::placeholder { color: var(--c-text-3); }
.ob-startwert-input:focus { outline: none; border-color: var(--c-accent); }
.ob-startwert-input--sm { flex: 0 0 58px; }

/* ── One-time tip banner ──────────────────────────────────── */
.tip-banner {
  position: fixed; z-index: 9990;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 50%; transform: translateX(-50%);
  background: var(--c-surface2);
  border: 1px solid var(--c-border-hi);
  color: var(--c-text);
  font-size: 13px; line-height: 1.5;
  padding: 10px 16px;
  border-radius: var(--r-md);
  max-width: min(320px, calc(100vw - 24px));
  box-shadow: var(--shadow-md);
  pointer-events: none;
  text-align: center;
}

/* ── Empty states ─────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-4); padding: var(--sp-8) var(--sp-5);
  text-align: center;
}
.empty-state__icon { font-size: 48px; line-height: 1; }
.empty-state__text {
  font-size: 14px; color: var(--c-text-2); line-height: 1.6;
  max-width: 280px; margin: 0;
}
.empty-state__hint {
  font-size: 13px; color: var(--c-text-3); line-height: 1.5;
  padding: var(--sp-3) 0; margin: 0;
}


/* ── Backup reminder banner (C2) ──────────────────────────── */
.backup-reminder {
  position: fixed; bottom: calc(var(--sp-5) + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  background: var(--c-surface2); border: 1px solid var(--c-border-hi);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  /* Runde 19 (Bundlefolgefund): war z-index 800 UND (in ui.js) an
     document.body statt #app gehängt. #app hat `position:fixed`, das
     IMMER einen neuen Stacking-Context erzeugt (unabhängig vom z-index-
     Wert) -- ein an body gehängtes Element mit explizitem z-index
     rendert dadurch über JEDEM Inhalt innerhalb #app, egal welchen
     z-index dieser Inhalt intern nutzt (Ursache des seit Phase B
     dokumentierten "Backup-Reminder-Toast-Overlap"-Flakes in
     deload_volumen.spec.js, jetzt auch reproduzierbar in
     settings_combination_smoke.spec.js Szenario 20, seit die Wochenrück-
     blick-Share-Buttons den Modal-Inhalt höher machen). Fix hat zwei
     Teile: (1) hier z-index auf 350 gesenkt (über Sticky-Kopfzeile
     300/Tab-Nav 250, unter jedem Modal-Overlay 400+), (2) in ui.js
     _showBackupReminderToast() an #app statt document.body gehängt --
     erst dadurch wirkt der Wert hier überhaupt innerhalb desselben
     Stacking-Context wie die Modals. */
  max-width: min(380px, calc(100vw - 32px)); z-index: 350;
  font-size: 14px; color: var(--c-text-2);
}
.backup-reminder__btns { display: flex; gap: var(--sp-2); justify-content: flex-end; }
.bk-status      { font-size: 12px; }
.bk-status--ok  { color: var(--c-ok); }
.bk-status--warn { color: var(--c-warn); }

/* ── Vacation plan modal (Sprint 2) ────────────────────────── */
.vac-plan-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
}
.vac-plan-modal {
  background: var(--c-surface2); border: 1px solid var(--c-border-hi);
  border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  width: 100%; max-width: 340px;
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5);
}
.vac-plan-modal__title {
  font-family: var(--font-display); font-size: 22px; letter-spacing: .08em;
  color: var(--c-text); text-align: center;
}
.vac-plan-modal__sub {
  font-size: 14px; color: var(--c-text-2); text-align: center; margin: 0;
}
.vac-plan-option {
  width: 100%; min-height: var(--touch);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); color: var(--c-text);
  font-size: 15px; font-weight: 500; text-align: left;
  padding: 0 var(--sp-4); cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.vac-plan-option:hover { background: var(--c-surface2); border-color: var(--c-border-hi); }

