/* RULEPATH: Reliable_Rule_Path.txt im Projektroot lesen.
   cellRESET Guide UI v2 – Tokens + Komponenten. Mobile-first, ohne Framework. */

:root {
  --bg: #f4f6f1;
  --bg-elev: #ffffff;
  --bg-soft: #eef1ea;
  --bg-toned: #f0efe9;

  --ink: #1a1c18;
  --ink-soft: #3d4239;
  --ink-mute: #6b7065;
  --line: #d2d6cc;

  --brand: #2f4d2f;
  --brand-strong: #1f3a1f;
  --brand-soft: #e7efe1;
  --accent: #6b8c4a;

  --warn: #b46a1d;
  --danger: #8a1c1c;
  --info: #205a78;

  --pill-white-bg: #f5f5f0;  --pill-white-fg: #2b2e26;
  --pill-green-bg: #dcecc7;  --pill-green-fg: #2b4a14;
  --pill-red-bg:   #f3d4d4;  --pill-red-fg:   #6e1e1e;
  --pill-yellow-bg:#f5e7b9;  --pill-yellow-fg:#5a4810;
  --pill-stab-bg:  #d9e7e1;  --pill-stab-fg:  #1a4538;
  --pill-life-bg:  #d9e1ec;  --pill-life-fg:  #1d3658;

  --warm-bg: #fff2dd;
  --warm-fg: #6a3a0e;
  --warm-border: #ecd2a8;
  --confirm-bg: #fff5f4;
  --confirm-border: #f3c4be;
  --confirm-fg: #7a2c25;
  --confirm-input-bg: #ffffff;
  --confirm-input-border: #e3cbc7;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-1: 0 1px 2px rgba(20,30,15,.06), 0 1px 3px rgba(20,30,15,.05);
  --shadow-2: 0 6px 18px rgba(20,30,15,.08);

  --tap: 44px;

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

[data-theme="dark"] {
  --bg: #101010;
  --bg-elev: #1c1c1c;
  --bg-soft: #181818;
  --bg-toned: #1f1f1f;

  --ink: #eaeaea;
  --ink-soft: #cccccc;
  --ink-mute: #9aa0a6;
  --line: #2f2f2f;

  --brand: #b3cb87;
  --brand-strong: #d2e3a8;
  --brand-soft: #2a3a25;
  --accent: #d2b86a;

  --warn: #e5a564;
  --danger: #d97a6e;
  --info: #7cb1cb;

  --pill-white-bg: #2a2a2a;  --pill-white-fg: #eaeaea;
  --pill-green-bg: #243424;  --pill-green-fg: #c8e4b0;
  --pill-red-bg:   #382423;  --pill-red-fg:   #f0bdb6;
  --pill-yellow-bg:#3a3320;  --pill-yellow-fg:#f1d896;
  --pill-stab-bg:  #243333;  --pill-stab-fg:  #aedccd;
  --pill-life-bg:  #1f2837;  --pill-life-fg:  #b0c2e0;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.35);
  --shadow-2: 0 6px 18px rgba(0,0,0,.45);

  --warm-bg: #2e2418;
  --warm-fg: #f0c98a;
  --warm-border: #4a3e26;
  --confirm-bg: #2a1d1c;
  --confirm-border: #4a2c28;
  --confirm-fg: #f5beb8;
  --confirm-input-bg: #1f1413;
  --confirm-input-border: #3d2624;

  color-scheme: dark;
}

[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

/* Page-Shell ---------------------------------------------------- */
.app {
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 1rem 6rem; /* Platz für Bottom-Nav */
  min-height: 100vh;
}
.app--wide { max-width: 42rem; }

a { color: var(--brand-strong); }
a.inline-link { text-decoration: underline; }
a:focus, button:focus, [role="button"]:focus { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Hero ---------------------------------------------------------- */
.hero {
  padding: 1.2rem 0.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hero__greet {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.15;
}
.hero__sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-mute);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.hero__day {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: 0.01em;
}
.hero__pill-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

/* Pills (Tagfarben + Phasen) ------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.pill--white  { background: var(--pill-white-bg);  color: var(--pill-white-fg);  border-color: #d8d9d2; }
.pill--green  { background: var(--pill-green-bg);  color: var(--pill-green-fg);  border-color: #c4d9a6; }
.pill--red    { background: var(--pill-red-bg);    color: var(--pill-red-fg);    border-color: #e3b6b6; }
.pill--yellow { background: var(--pill-yellow-bg); color: var(--pill-yellow-fg); border-color: #e6d691; }
.pill--stab   { background: var(--pill-stab-bg);   color: var(--pill-stab-fg);   border-color: #b9d4ca; }
.pill--life   { background: var(--pill-life-bg);   color: var(--pill-life-fg);   border-color: #b6c2d6; }
.pill--soft   { background: var(--bg-soft); color: var(--ink-soft); }

.pill-edit {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* Card --------------------------------------------------------- */
.card {
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  margin: 0 0 0.75rem;
  box-shadow: var(--shadow-1);
}
.card__title {
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}
.card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.card__sub { color: var(--ink-mute); font-size: 0.86rem; margin: 0 0 0.25rem; }

/* Phase-Progress ----------------------------------------------- */
.phase-progress { display: flex; flex-direction: column; gap: 0.35rem; }
.phase-progress__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.phase-progress__bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-soft);
  overflow: hidden;
}
.phase-progress__fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  border-radius: 3px;
}

/* Stats-Row ---------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.stat {
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.6rem;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.stat__val { font-size: 1.05rem; font-weight: 700; color: var(--brand-strong); line-height: 1.1; }
.stat__lbl { font-size: 0.72rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.15rem; }

/* Button-Group (single-select) -------------------------------- */
.btn-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.45rem;
}
.btn-group--col4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.btn-opt {
  appearance: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.6rem 0.45rem;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: var(--tap);
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-opt:hover { background: #e8ebe4; }
.btn-opt[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-strong);
}
.btn-opt:disabled { opacity: 0.6; cursor: progress; }

/* Chip-Group (multi-select Symptome) -------------------------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 36px;
}
.chip[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-strong);
  font-weight: 600;
}
.chip[data-polarity="negative"][aria-pressed="true"] {
  background: var(--warm-bg);
  border-color: var(--warn);
  color: var(--warm-fg);
}

/* Checkin-Block (in Hero-Karte) ------------------------------- */
.checkin {
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.checkin__qst {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.45rem;
}
.checkin__note {
  position: relative;
  margin: 0 0 0.7rem;
}
.checkin__note-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.7rem;
  resize: vertical;
  min-height: 2.4rem;
}
.checkin__note-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(202, 161, 75, 0.25);
}
.checkin__note-count {
  position: absolute;
  right: 0.55rem;
  bottom: 0.4rem;
  font-size: 0.72rem;
  color: var(--ink-mute);
  pointer-events: none;
  background: var(--bg-elev);
  padding: 0 0.2rem;
}
.checkin__summary-row--note { align-items: flex-start; }
.checkin__summary-note {
  font-style: italic;
  color: var(--ink-soft);
  white-space: pre-wrap;
  text-align: right;
  flex: 1;
}
.checkin__summary {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.checkin__summary-row { display: flex; justify-content: space-between; gap: 0.5rem; }
.checkin__summary-key { color: var(--ink-mute); }

/* Mahlzeiten-Karte -------------------------------------------- */
.meal-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  margin-bottom: 0.55rem;
  transition: box-shadow 0.18s ease;
}
.meal-card.is-active {
  box-shadow: var(--shadow-2);
}
.meal-card.is-active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand);
}
.meal-card__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  user-select: none;
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  color: var(--ink);
  min-height: 56px;
}
.meal-card__icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 50%;
}
.meal-card.is-active .meal-card__icon {
  background: var(--brand);
  color: #fff;
}
.meal-card__title { flex: 1; min-width: 0; font-weight: 600; font-size: 0.96rem; }
.meal-card__time {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.meal-card__chev { color: var(--ink-mute); transition: transform 0.2s ease; }
.meal-card.is-open .meal-card__chev { transform: rotate(90deg); }
.meal-card.is-active .meal-card__head { background: linear-gradient(180deg, var(--brand-soft) 0%, transparent 100%); }
.meal-card__body {
  display: none;
  padding: 0 0.85rem 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.meal-card.is-open .meal-card__body { display: block; }
.meal-card__headline {
  margin: 0.25rem 0 0.55rem;
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.meal-card__sub { margin: 0 0 0.65rem; }
.meal-card__steps {
  margin: 0 0 0.7rem;
  padding-left: 1.1rem;
  display: flex; flex-direction: column; gap: 0.32rem;
}
.meal-card__steps li {
  padding-left: 0.15rem;
}
.meal-card__steps li::marker { color: var(--brand); font-weight: 600; }
.meal-card__tip {
  margin: 0 0 0.7rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.meal-card__action {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.meal-card__action .btn { margin: 0; width: 100%; min-height: 44px; font-weight: 600; }
.meal-card.is-done {
  opacity: 0.85;
}
.meal-card.is-done .meal-card__title::after {
  content: " · erledigt";
  color: var(--accent);
  font-weight: 500;
}

/* Tagescheck (daily-checks) ----------------------------------- */
.daily-checks { display: flex; flex-direction: column; gap: 0.45rem; }
.check-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg-elev);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  min-height: var(--tap);
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.check-row:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(202, 161, 75, 0.25);
}
.check-row__text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.check-row__title { display: block; }
.check-row__sub { display: block; margin-top: 0; }
.check-row__box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  font-size: 14px;
  font-weight: 700;
}
.check-row.is-done .check-row__box {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.check-row__title { font-weight: 600; font-size: 0.92rem; line-height: 1.2; }
.check-row__sub   { font-size: 0.8rem; color: var(--ink-mute); margin-top: 0.1rem; }
.check-row__icon  { color: var(--ink-mute); }

/* Onboarding-Card --------------------------------------------- */
.onboarding {
  background: linear-gradient(180deg, var(--brand-soft), var(--bg-elev));
  border: 1px solid #cee0c4;
  border-radius: var(--radius-md);
  padding: 1rem 1rem 0.85rem;
  margin: 0 0 0.85rem;
}
.onboarding label { display: block; font-size: 0.85rem; margin: 0.55rem 0 0.2rem; }
.onboarding input[type="date"],
.onboarding input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-elev);
  color: var(--ink);
}
.onboarding .row { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.55rem 0 0.4rem; font-size: 0.88rem; }
.onboarding input[type="checkbox"] { margin-top: 0.18rem; }

/* Wizard-Onboarding */
.wizard__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem; margin-bottom: 0.4rem;
}
.wizard__count {
  font-size: 0.78rem; color: var(--ink-mute); font-weight: 600;
  letter-spacing: 0.04em;
}
.wizard__dots {
  display: flex; gap: 0.35rem; margin-bottom: 0.7rem;
}
.wizard__dot {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(0,0,0,0.08);
  transition: background 0.2s ease;
}
.wizard__dot.is-active {
  background: var(--brand);
}
.wizard__choices {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem; margin: 0.45rem 0 0.55rem;
}
.wizard__choice {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.5rem;
  font: inherit; cursor: pointer;
  min-height: 64px;
}
.wizard__choice strong { font-size: 1.0rem; color: var(--ink); }
.wizard__choice small { font-size: 0.74rem; color: var(--ink-mute); margin-top: 0.15rem; }
.wizard__choice.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.wizard__help {
  font-size: 0.85rem; color: var(--ink-mute); margin: 0.4rem 0 0;
  line-height: 1.45;
}
.wizard__summary {
  background: var(--bg-elev); border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem; margin: 0.55rem 0 0.45rem;
  border: 1px solid var(--line);
}
.wizard__sum-row {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; padding: 0.18rem 0;
}
.wizard__sum-key { color: var(--ink-mute); }
.wizard__nav {
  display: flex; gap: 0.5rem; margin-top: 0.7rem;
}
.wizard__nav .btn--ghost { flex: 0 0 auto; }
.wizard__nav .btn--block { flex: 1; }

/* Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: var(--tap);
}
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--brand-strong);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-soft); }
.btn--danger { background: var(--danger); }

/* Bottom-Tab-Bar --------------------------------------------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(140%) blur(6px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 50;
}
.tabbar__inner {
  max-width: 28rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.4rem 0.65rem;
  text-decoration: none;
  color: var(--ink-mute);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-height: var(--tap);
}
.tab-link[aria-current="page"] { color: var(--brand-strong); }
.tab-link svg { width: 22px; height: 22px; display: block; }

/* Stats ------------------------------------------------------- */
.range-switch {
  display: inline-flex;
  background: var(--bg-soft);
  padding: 0.2rem;
  border-radius: 999px;
  margin: 0 0 0.65rem;
  gap: 0.15rem;
}
.range-switch__btn {
  padding: 0.4rem 0.85rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--ink-mute);
  cursor: pointer;
  min-height: 36px;
}
.range-switch__btn[aria-pressed="true"] {
  background: var(--bg-elev);
  color: var(--brand-strong);
  box-shadow: var(--shadow-1);
}

.chart-card { padding: 0.95rem 1rem; }
.chart-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.45rem; gap: 0.5rem; flex-wrap: wrap; }
.chart-card__title { font-size: 0.95rem; font-weight: 700; margin: 0; }
.chart-card__legend { font-size: 0.78rem; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 0.3rem; }
.chart-card__legend .legend-line {
  display: inline-block; width: 14px; height: 2px; background: var(--brand-strong); border-radius: 2px;
}
.chart-svg { display: block; width: 100%; height: auto; }
.chart-empty {
  font-size: 0.86rem;
  color: var(--ink-mute);
  padding: 0.85rem 0;
  text-align: center;
}

/* Stats-Hero (Streak-Banner) ---------------------------------- */
.stats-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.5rem;
  margin: 0.4rem 0 0.85rem;
}
.stats-hero__tile {
  background: linear-gradient(160deg, var(--brand-soft), var(--bg-elev));
  border-radius: var(--radius-md);
  padding: 0.7rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.stats-hero__val {
  font-size: 1.55rem; font-weight: 800; color: var(--brand-strong);
  line-height: 1;
}
.stats-hero__suf {
  font-size: 0.7rem; color: var(--ink-mute); margin-top: 0.18rem;
  letter-spacing: 0.02em;
}
.stats-hero__lbl {
  font-size: 0.78rem; color: var(--ink-soft); font-weight: 600;
  margin-top: 0.4rem;
}

/* Mood-Heatmap ------------------------------------------------ */
.heatmap {
  display: grid;
  gap: 3px;
  font-size: 10px;
}
.heatmap__head {
  text-align: center;
  color: var(--ink-mute);
  padding: 2px 0;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.heatmap__rowlbl {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); font-weight: 600;
  width: 18px; padding-right: 2px;
}
.heatmap__cell {
  height: 18px;
  border-radius: 3px;
  background: var(--bg-soft);
}
.heatmap__cell--empty { background: #ecede7; }

/* Symptome (positiv/negativ) --------------------------------- */
.sym-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.sym-col__title {
  font-size: 0.82rem;
  margin: 0 0 0.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sym-col--positive .sym-col__title { color: var(--brand-strong); }
.sym-col--negative .sym-col__title { color: var(--warn); }
.sym-col__empty { color: var(--ink-mute); font-size: 0.85rem; margin: 0; }
.sym-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.22rem;
  font-size: 0.85rem;
}
.sym-row__lbl { color: var(--ink-soft); }
.sym-row__bar {
  display: block;
  position: relative;
  grid-column: 1 / span 2;
  height: 5px;
  background: var(--bg-soft);
  border-radius: 3px;
}
.sym-row__fill {
  position: absolute; inset: 0 auto 0 0;
  height: 5px; border-radius: 3px;
}
.sym-col--positive .sym-row__fill { background: var(--brand); }
.sym-col--negative .sym-row__fill { background: var(--warn); }
.sym-row__cnt {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-weight: 600;
  text-align: right;
}

/* Insights ---------------------------------------------------- */
.insight-row {
  position: relative;
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.insight-row__dot {
  position: absolute; left: 0; top: 0.55rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* Auth-Seite -------------------------------------------------- */
.auth-card { padding: 1.05rem 1.1rem 1.15rem; }
.auth-card label { display: block; font-size: 0.85rem; margin: 0.55rem 0 0.2rem; }
.auth-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-elev);
  color: var(--ink);
}
.auth-tablist {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.75rem;
  gap: 0.35rem;
}
.auth-tablist .tab {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--line);
  border-bottom: none;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}
.auth-tablist .tab.is-active {
  background: var(--bg-elev);
  color: var(--brand-strong);
  position: relative;
  bottom: -1px;
}
.tab-panel { padding-top: 0.2rem; }

.msg { font-size: 0.88rem; margin: 0.55rem 0 0; white-space: pre-wrap; }
.msg.err { color: var(--danger); }
.msg.ok  { color: var(--brand-strong); }

/* Streak-Pill + Konfetti -------------------------------------- */
.streak-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--warm-fg);
  background: var(--warm-bg);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid var(--warm-border);
}
.confetti {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.card { position: relative; }
.confetti__piece {
  position: absolute;
  top: -8px;
  width: 7px;
  height: 12px;
  border-radius: 1.5px;
  animation: cr-fall 1.2s ease-in forwards;
}
.confetti__piece--c1 { background: var(--brand); }
.confetti__piece--c2 { background: var(--accent); }
.confetti__piece--c3 { background: var(--warn); }
.confetti__piece--c4 { background: var(--info); }
@keyframes cr-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.95; }
  100% { transform: translateY(180px) rotate(540deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti, .confetti__piece { display: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Wissen / Reader -------------------------------------------- */
.guide-toc-bar {
  margin: 0 -1rem 0.85rem;
  padding: 0 1rem 0.2rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.guide-toc-bar::-webkit-scrollbar { display: none; }
.guide-toc-chips { display: inline-flex; gap: 0.4rem; padding: 0.1rem 0; }
.guide-toc-chip {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-elev);
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  white-space: nowrap;
  box-shadow: var(--shadow-1);
}
.guide-toc-chip.is-current {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.guide-main {
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem 1.2rem;
  box-shadow: var(--shadow-1);
}
.guide-chapter-head {
  margin: 0 0 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.guide-chapter-meta {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.2rem;
}
.guide-chapter-lead {
  margin: 0;
  font-size: 1.0rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.prose :is(h1,h2,h3) { margin: 1.0rem 0 0.4rem; font-weight: 700; line-height: 1.3; }
.prose h1 { font-size: 1.45rem; letter-spacing: -0.01em; }
.prose h2 { font-size: 1.05rem; }
.prose h3 { font-size: 0.96rem; }
.prose p  { margin: 0.5rem 0; font-size: 0.94rem; line-height: 1.55; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0.45rem 0; padding-left: 1.15rem; }
.prose ul li, .prose ol li { margin: 0.2rem 0; font-size: 0.94rem; color: var(--ink-soft); }
.prose blockquote {
  margin: 0.85rem 0; padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, var(--brand-soft), var(--bg-soft));
  border-radius: var(--radius-sm);
  font-size: 1.0rem;
  font-style: normal;
  color: var(--ink);
}
.prose blockquote p { margin: 0; color: var(--ink); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 0.6rem 0; }
.guide-table th, .guide-table td { border: 1px solid var(--line); padding: 0.4rem 0.5rem; text-align: left; vertical-align: top; }
.guide-table thead th { background: var(--bg-soft); }
.fallback-pre { font-size: 0.82rem; white-space: pre-wrap; word-break: break-word; }
.guide-figure {
  margin: 0.85rem -0.3rem;
  padding: 0;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-soft);
}
.guide-figure-cap {
  margin: 0;
  padding: 0.45rem 0.85rem 0.55rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.35;
  text-align: center;
}
.guide-chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.guide-chapter-nav__btn {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-soft);
  min-height: 56px;
  border: 1px solid var(--line);
}
.guide-chapter-nav__btn small {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.guide-chapter-nav__btn strong {
  font-size: 0.92rem;
  color: var(--brand-strong);
  white-space: normal;
}
.guide-chapter-nav__next { text-align: right; }

/* Profil-Hero ------------------------------------------------ */
.profile-hero {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.1rem 0.1rem 0.85rem;
}
.profile-hero__badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-2);
}
.profile-hero__name {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: -0.01em;
}
.profile-hero__status {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-mute);
}

/* Phasen-Trail ----------------------------------------------- */
.phase-trail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  position: relative;
  margin-top: 0.5rem;
}
.phase-trail::before {
  content: "";
  position: absolute;
  top: 9px; left: 12px; right: 12px;
  height: 2px;
  background: var(--bg-soft);
  z-index: 0;
}
.phase-trail__node {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  z-index: 1;
}
.phase-trail__dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 2px solid var(--line);
}
.phase-trail__node.is-passed .phase-trail__dot {
  background: var(--accent);
  border-color: var(--accent);
}
.phase-trail__node.is-current .phase-trail__dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47,77,47,0.18);
}
.phase-trail__lbl {
  font-size: 0.7rem;
  text-align: center;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.phase-trail__node.is-current .phase-trail__lbl {
  color: var(--brand-strong);
  font-weight: 600;
}

/* Achievements / Trophäen ------------------------------------ */
.trophies {
  display: flex; flex-direction: column; gap: 0.45rem;
  margin-top: 0.4rem;
}
.trophy {
  display: flex; gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  align-items: center;
  transition: background 0.18s ease;
}
.trophy.is-unlocked {
  background: linear-gradient(160deg, var(--brand-soft), #fff7e9);
  box-shadow: var(--shadow-1);
}
.trophy.is-locked { opacity: 0.55; }
.trophy__icon { font-size: 1.4rem; line-height: 1; }
.trophy__meta { display: flex; flex-direction: column; gap: 0.05rem; }
.trophy__meta strong { font-size: 0.9rem; color: var(--ink); }
.trophy__meta small { font-size: 0.78rem; color: var(--ink-mute); }

/* Profil-Seite – Setup-Form ------------------------------------ */
.setup-form label { display: block; font-size: 0.85rem; margin: 0.55rem 0 0.2rem; }
.setup-form input[type="date"],
.setup-form input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-elev);
  color: var(--ink);
}
.slot-rows { display: grid; gap: 0.4rem; }
.slot-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 0.4rem;
}
.slot-row__label { font-size: 0.88rem; }
.slot-row input[type="time"] {
  font: inherit;
  width: auto;
  min-width: 6.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--ink);
}

/* Utility ----------------------------------------------------- */
.is-hidden { display: none !important; }
.text-center { text-align: center; }
.text-mute { color: var(--ink-mute); }
.fineprint { font-size: 0.8rem; color: var(--ink-mute); margin: 0 0 0.5rem; }
.row { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; }

/* Hero Top-Row + Streak-Pill (Hero-Variant) -------------------- */
.hero__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.hero__top .hero__greet { margin: 0; flex: 1 1 auto; }
.streak-pill--hero {
  font-size: 0.92rem;
  padding: 0.3rem 0.7rem;
  background: var(--warm-bg);
  color: var(--warm-fg);
  border-color: var(--warm-border);
  box-shadow: var(--shadow-1);
}

/* Theme-Card (Profil) ----------------------------------------- */
.theme-card__group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.55rem;
}
.theme-card__choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.7rem 0.5rem;
  border: 1.5px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: var(--radius-md);
  font: inherit;
  cursor: pointer;
  min-height: 64px;
}
.theme-card__choice.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 600;
}
.theme-card__choice:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(202, 161, 75, 0.25);
}
.theme-card__icon { font-size: 1.4rem; line-height: 1; }
.theme-card__label { font-size: 0.85rem; }

/* Privacy-Card (Profil) --------------------------------------- */
.privacy-card .privacy-card__btn { display: block; width: 100%; margin-top: 0.55rem; text-align: center; }
.privacy-card__confirm {
  margin-top: 0.7rem;
  padding: 0.75rem;
  background: var(--confirm-bg);
  border: 1px solid var(--confirm-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.privacy-card__warn { margin: 0; color: var(--confirm-fg); }
.privacy-card .input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--confirm-input-border);
  background: var(--confirm-input-bg);
  font: inherit;
  color: var(--ink);
}
.privacy-card .input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(202, 161, 75, 0.25);
}
.privacy-card .input--error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(165, 92, 44, 0.18);
}
.privacy-card__actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}
.privacy-card__actions .btn { flex: 1; }

/* Streak-Status (Profil) -------------------------------------- */
.streak-status__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.streak-status__tile {
  background: linear-gradient(160deg, var(--brand-soft), var(--bg-toned));
  border-radius: var(--radius-md);
  padding: 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border: 1px solid var(--line);
}
.streak-status__val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-strong);
  line-height: 1.05;
}
.streak-status__lbl {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.streak-status__hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.3;
}
.streak-status__help { margin: 0.55rem 0 0; }

/* Wochen-Zusammenfassung -------------------------------------- */
.week-summary__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.week-summary__tile {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.week-summary__val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-strong);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.week-summary__lbl {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.week-summary__hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* Empty-State Soft-Variante ----------------------------------- */
.chart-card--empty { background: var(--bg-soft); }
.chart-empty--soft {
  padding: 1rem 0.85rem 1.1rem;
  color: var(--ink-mute);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

/* Phasenwechsel-Banner ---------------------------------------- */
.phase-celebration {
  position: relative;
  margin: 0.85rem 0 0;
  padding: 0.85rem 2.4rem 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--accent), var(--brand-strong));
  color: #fff;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.phase-celebration__icon { font-size: 1.7rem; line-height: 1; }
.phase-celebration__meta { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }
.phase-celebration__meta strong { font-size: 1.0rem; color: #fff; letter-spacing: 0.01em; }
.phase-celebration__meta small { font-size: 0.82rem; color: #fff7e9; }
.phase-celebration__close {
  position: absolute;
  right: 0.5rem;
  top: 0.4rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
}
.phase-celebration__close:hover,
.phase-celebration__close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

/* Tag-abgeschlossen-Banner ------------------------------------ */
.day-done-banner {
  position: relative;
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, #243a52 0%, #1a2a3d 100%);
  color: #f5f5f0;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.day-done-banner__icon { font-size: 1.6rem; line-height: 1; }
.day-done-banner__meta { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }
.day-done-banner__meta strong { font-size: 1.0rem; color: #fff; letter-spacing: 0.01em; }
.day-done-banner__meta small { font-size: 0.82rem; color: #d4dceb; }

/* Profil – Erinnerungen --------------------------------------- */
.notify-row {
  align-items: center;
  margin-top: 0.55rem;
}
.notify-row__label {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.95rem;
  cursor: pointer;
}
.notify-row__toggle {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand);
}
.notify-row__status { margin: 0.4rem 0 0; }

/* Hero – Nächster Slot --------------------------------------- */
.hero__next-slot {
  margin: 0.7rem 0 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  max-width: 100%;
}
.hero__next-slot-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__next-slot-value {
  font-size: 0.92rem;
  color: var(--brand-strong);
  font-weight: 700;
}
.hero__next-slot-delta {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

/* Milestone-Banner -------------------------------------------- */
.milestone-banner {
  position: relative;
  margin: 0.85rem 0 0;
  padding: 0.75rem 2.4rem 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--brand-soft), #fff7e9);
  box-shadow: var(--shadow-1);
}
.milestone-banner__icon { font-size: 1.4rem; line-height: 1; }
.milestone-banner__meta { display: flex; flex-direction: column; gap: 0.05rem; flex: 1; }
.milestone-banner__meta strong { font-size: 0.95rem; color: var(--brand-strong); }
.milestone-banner__meta small { font-size: 0.8rem; color: var(--ink-mute); }
.milestone-banner__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-mute);
  font-size: 1.1rem;
  cursor: pointer;
}
.milestone-banner__close:hover { background: rgba(0,0,0,0.05); color: var(--ink); }

/* Pending-State für Mahlzeiten-Slots --------------------------- */
.meal-card.is-pending {
  border-left: 3px solid var(--warn);
}
.meal-card.is-pending .meal-card__head { background: var(--warm-bg); color: var(--warm-fg); }
.meal-card__flag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--warm-fg);
  background: var(--warm-bg);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--warm-border);
}

/* Year-Pixels ------------------------------------------------- */
.pixel-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem;
  margin-top: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}
.pixel-grid::-webkit-scrollbar { display: none; }
.pixel-grid__labels {
  display: grid;
  grid-template-rows: repeat(7, 14px);
  row-gap: 3px;
  font-size: 0.65rem;
  color: var(--ink-mute);
  align-content: start;
  padding-top: 1px;
}
.pixel-grid__cells {
  display: flex;
  gap: 3px;
}
.pixel-grid__col {
  display: grid;
  grid-template-rows: repeat(7, 14px);
  row-gap: 3px;
}
.pixel-cell {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--bg-soft);
  display: block;
}
.pixel-cell--empty { background: rgba(0,0,0,0.04); }
.pixel-scale {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.55rem;
  padding-left: 0.1rem;
}
.pixel-scale__sw {
  width: 12px; height: 12px;
  border-radius: 3px;
}
.pixel-scale__lbl { font-size: 0.7rem; color: var(--ink-mute); }
.pixel-scale__lbl--l { margin-right: 0.25rem; }
.pixel-scale__lbl--r { margin-left: 0.25rem; }

/* Tagebuch-Liste (Stats-Tab) ---------------------------------- */
.notes-list__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.notes-list__date {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.notes-list__date:first-child { margin-top: 0; }
.notes-list__item {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.notes-list__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}
.notes-list__slot {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.72rem;
}
.notes-list__mood { font-size: 1rem; }
.notes-list__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
}
