/* ─── Dashboard (Verwaltung) ─── */
.dash-screen { position: fixed; inset: 0; background: var(--bg); z-index: 250; display: none; flex-direction: column; }
.dash-screen.visible { display: flex; }
.dash-topbar { display: flex; align-items: center; gap: 6px; padding: calc(10px + var(--safe-top)) 14px 10px; background: var(--card); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; }
.dash-back { background: none; border: none; color: var(--primary); font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 2px; padding: 6px 4px; cursor: pointer; }
.dash-title { font-size: 17px; font-weight: 800; flex: 1; text-align: center; letter-spacing: -0.02em; }
.dash-topbar .dash-spacer { width: 64px; }
.dash-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px calc(28px + var(--safe-bottom)); }
.dash-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.dash-card-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
.dash-card-head .ico { font-size: 17px; }
.dash-hint { font-size: 12.5px; color: var(--gray-400); margin-top: 2px; }

/* ─── Chat / Assistent (Mockup 07) ─── */
/* Tastatur-Ausweiche macht seit v43 die .chat-input-row selbst (translateY
   unten) — KEIN padding-bottom mehr am Screen, sonst hebt sich die Eingabe
   doppelt (Padding + Transform) und hängt am oberen Rand (Flo 09.07. abends;
   die v42-Regel hier war beim v43-Umbau übersehen worden). */
#chatScreen { background: var(--app-bg); }
#chatScreen .dash-topbar { background: transparent; border-bottom: none; }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 82%; padding: 10px 14px; border-radius: 15px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
/* KI helles Creme, User helles Pfirsich (Feedback Flo) */
.chat-bubble.user { align-self: flex-end; background: var(--bubble-user); color: var(--ink); border-bottom-right-radius: 4px; }
.chat-bubble.assistant { align-self: flex-start; background: var(--bubble-bot); color: var(--ink); border-bottom-left-radius: 4px; }
/* Nachrichten anderer Mitglieder: ebenfalls rechts, Absender-Chip zur Unterscheidung */
.chat-bubble.user.foreign { align-self: flex-end; background: var(--bubble-user); color: var(--ink); border-bottom-right-radius: 4px; }
.chat-sender { align-self: flex-end; font-size: 11px; font-weight: 700; color: var(--gray-500); margin: 2px 4px -6px; }
.chat-bubble.pending { opacity: 0.6; }
/* Strukturierte Item-Karte unter Assistent-Antworten */
.chat-card { align-self: flex-start; width: 88%; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 11px 13px; }
.chat-card-head { font-size: 13.5px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.01em; }
.chat-card-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid rgba(var(--border-warm), 0.14); }
.chat-card-row:last-child { border-bottom: none; padding-bottom: 2px; }
.chat-card-ico { display: flex; flex-shrink: 0; }
.chat-card-ico svg { width: 18px; height: 18px; }
.chat-card-name { flex: 1; font-size: 14px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-card-arrow { color: var(--gray-400); font-size: 13px; flex-shrink: 0; }
.chat-card .badge { font-size: 9.5px; padding: 3px 7px; border-radius: 6px; }
/* ─── Nachfrage-Vorschläge (Mockup 09, Flo 09.07.): Checkbox-Karte des
   Assistenten — Interaktion wie der Zutaten-Check im Wochenplan ─── */
.chat-sug-row { cursor: pointer; user-select: none; -webkit-user-select: none; }
.chat-sug-row.done { cursor: default; }
.chat-sug-box { width: 20px; height: 20px; border-radius: var(--radius-xs); border: 1.5px solid var(--gray-300);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.chat-sug-row.sel .chat-sug-box { background: var(--primary); border-color: var(--primary); }
.chat-sug-row:not(.sel) .chat-card-name { color: var(--gray-400); font-weight: 500; }
.chat-sug-amount { color: var(--gray-500); font-weight: 500; font-size: 12.5px; }
.chat-sug-btn { display: block; width: 100%; margin-top: 10px; padding: 10px 0; font-size: 14px; }
.chat-sug-btn:disabled { opacity: 0.5; cursor: default; }
/* Schwebende Pill-Eingabe auf dem Verlauf (kein weißer Balken).
   translateY(-–kb): hebt sich per Compositor über die iOS-Tastatur — Layout-
   Padding rendert Safari dort erst beim Scroll (s. .overlay in components.css);
   .chat-body bekommt --kb als padding-bottom, damit die letzten Nachrichten
   beim Scrollen erreichbar bleiben. */
/* flex-end statt center: die mehrzeilige Textarea wächst nach oben, der
   Senden-Knopf bleibt unten an der Eingabe (margin gleicht 1-Zeilen-Optik aus) */
.chat-input-row { display: flex; align-items: flex-end; gap: 10px; background: transparent; border-top: none; padding: 8px 14px calc(12px + var(--safe-bottom)); transform: translateY(calc(var(--kb) * -1)); will-change: transform; transition: transform 0.15s ease; }
#chatScreen .chat-body { padding-bottom: var(--kb); }
/* Gleiche Maße wie die Login-Textfelder (19/18 Padding, Radius 12, halbtransparent) */
.chat-input-row textarea { flex: 1; resize: none; max-height: 128px; line-height: 1.4; font-family: inherit; display: block; background: rgba(255, 255, 255, 0.32); border: 1px solid rgba(var(--border-warm), 0.45); border-radius: 12px; padding: 19px 18px; font-size: 16px; outline: none; box-shadow: 0 1px 3px rgba(140, 90, 50, 0.05); transition: background 0.2s; }
.chat-input-row textarea:focus { background: rgba(255, 255, 255, 0.7); }
.chat-input-row textarea::placeholder { color: var(--gray-400); }
.chat-input-row .add-send { width: 46px; height: 46px; border-radius: 50%; }
.chat-input-row textarea:disabled { opacity: 0.55; }
/* Gesperrter Docked-Chat (Tablet/PC, Free/Supporter): Pro-Teaser statt Verlauf */
.chat-locked { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; text-align: center; color: var(--gray-500); font-size: 14px; line-height: 1.6; }
.chat-locked-ico { font-size: 34px; }
.chat-locked strong { color: var(--ink); }

/* Mitglieder */
.mem-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--gray-100); }
.mem-row:last-child { border-bottom: none; }
.mem-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.mem-name { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem-role { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-xs); }
.mem-role.owner { background: #fef3c7; color: #92400e; }
.mem-role.coadmin { background: #ede9fe; color: #6d28d9; }
.mem-role.member { background: var(--gray-100); color: var(--gray-500); }
.mem-kebab { background: none; border: none; color: var(--gray-400); font-size: 18px; padding: 4px 6px; cursor: pointer; flex-shrink: 0; }
.invite-row { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
.invite-row .invite-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.invite-row .invite-label { flex: 1; font-size: 14px; font-weight: 600; color: var(--gray-600); }
.btn-primary { background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); padding: 9px 16px; font-size: 14px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.btn-primary:active { background: var(--primary-dark); }
.invite-out { margin-top: 10px; display: none; }
.invite-out.show { display: block; }
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 13px; background: var(--gray-100); color: var(--gray-600); }
.role-seg { display: inline-flex; gap: 4px; background: var(--gray-100); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 10px; }
.role-seg button { background: none; border: none; padding: 6px 12px; border-radius: var(--radius-xs); font-size: 13px; font-weight: 700; color: var(--gray-500); cursor: pointer; }
.role-seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* Meine Läden (§25.5): PLZ/Radius + Zeilen-Liste mit Umkreis-Automatik */
.store-plz-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.store-plz-row label { font-size: 12px; font-weight: 700; color: var(--gray-500); }
.store-plz-row input { width: 86px; padding: 8px 10px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.store-plz-row select { flex: 0 0 auto; padding: 8px 10px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 13px; appearance: none; -webkit-appearance: none; background: #fff; }
.store-rows { margin: 10px 0 14px; }
.store-grp { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); margin: 12px 2px 5px; }
.store-rows .store-grp:first-child { margin-top: 2px; }
.store-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.store-row.on { background: var(--gray-100); }
.store-row.far { opacity: 0.45; }
.store-tile { flex: 0 0 auto; width: 40px; height: 26px; border-radius: var(--radius-xs); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.02em; }
.store-rowinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.store-rowname { font-size: 14px; font-weight: 700; line-height: 1.2; }
.store-rowdist { font-size: 11.5px; color: var(--gray-500); }
.store-touched { flex: 0 0 auto; font-size: 12px; color: var(--gray-500); }
.store-rowcheck { flex: 0 0 auto; width: 22px; height: 22px; border-radius: var(--radius-xs); border: 1.5px solid var(--gray-200); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; background: #fff; }
.store-row.on .store-rowcheck { background: var(--grad-b); border-color: transparent; }

/* Gänge (Laden-Detail) + Läden-Prio (§28) */
.aisle-list { list-style: none; }
.aisle-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--gray-100); border-radius: var(--radius-sm); margin-bottom: 7px; touch-action: none; }
.aisle-item.dragging { opacity: 0.5; }
.aisle-item.over { box-shadow: inset 0 0 0 2px var(--primary); }
.aisle-idx { font-size: 13px; font-weight: 800; color: var(--gray-400); width: 18px; text-align: center; flex-shrink: 0; }
.aisle-emoji { font-size: 17px; }
.aisle-name { flex: 1; font-size: 14px; font-weight: 600; }
.aisle-handle { color: var(--gray-300); font-size: 18px; cursor: grab; padding: 0 2px; flex-shrink: 0; }
.store-prio-row .store-tile { width: 40px; height: 26px; }
.store-edit { background: none; border: none; color: var(--gray-400); padding: 4px 6px; cursor: pointer; flex-shrink: 0; display: inline-flex; }
.store-edit svg { width: 16px; height: 16px; }
.store-add-link { border-bottom: 0; margin-top: 4px; }
.store-det-head { display: flex; align-items: center; gap: 12px; }
.store-det-head .store-tile { width: 48px; height: 32px; font-size: 12px; }
.store-det-head .store-det-name { flex: 1; font-size: 16px; font-weight: 800; }

/* Abo */
.abo-row { display: flex; align-items: center; gap: 12px; }
.abo-row .abo-info { flex: 1; }
.abo-row .abo-cur { font-size: 14px; font-weight: 600; color: var(--gray-600); }
.abo-row .abo-cur b { color: var(--ink); }
.btn-outline { background: #fff; border: 2px solid #a855f7; color: #7c3aed; border-radius: var(--radius-sm); padding: 9px 14px; font-size: 14px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.btn-outline:active { background: #faf5ff; }

/* Rote Aktionen (die Gefahrenzonen-Karte ist aufgelöst — Umbau 07.07.) */
.danger-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; padding: 12px 4px; font-size: 15px; font-weight: 600; color: var(--red); text-align: left; cursor: pointer; border-top: 1px solid #fecaca; }
.danger-btn:first-of-type { border-top: none; }
.danger-btn .ico { font-size: 17px; }
/* Nach einem grauen Link reicht dessen Trennlinie — keine rote obendrauf */
.dash-link + .danger-btn { border-top: none; }

/* ─── SVG-Icons statt Emojis (07.07.) ─── */
.dash-card-head .ico, .dl-ico, .danger-btn .ico, .mem-kebab { display: inline-flex; align-items: center; justify-content: center; }
.dash-card-head .ico svg { width: 19px; height: 19px; color: var(--grad-b); }
.dl-ico svg { width: 18px; height: 18px; color: var(--gray-500); }
.invite-ico svg { width: 18px; height: 18px; }
.danger-btn .ico svg { width: 17px; height: 17px; }
.mem-kebab svg { width: 16px; height: 16px; }

/* ─── Bereichs-Überschriften + einklappbare Karten (Umbau 07.07.) ─── */
.dash-sec { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-400); margin: 20px 6px 8px; }
.dash-sec:first-child { margin-top: 2px; }
.dash-card-head.clickable { cursor: pointer; user-select: none; -webkit-user-select: none; }
.dash-chev { margin-left: auto; color: var(--gray-400); font-size: 13px; transition: transform 0.18s; }
.dash-card.closed .dash-chev { transform: rotate(-90deg); }
.dash-card.closed > *:not(.dash-card-head) { display: none; }
.dash-card.closed .dash-card-head { margin-bottom: 0; }

/* ─── Farbschema (Farbtemplates pro Liste) ─── */
.theme-swatches { display: flex; gap: 16px; padding: 8px 2px 4px; }
.theme-swatch { width: 46px; height: 46px; border-radius: 50%; border: none; box-shadow: inset 0 0 0 2.5px rgba(255,255,255,0.65), 0 2px 6px rgba(0,0,0,0.15); cursor: pointer; position: relative; transition: transform 0.12s; }
.theme-swatch:active { transform: scale(0.92); }
.theme-swatch.on { outline: 3px solid var(--ink); outline-offset: 3px; }
.theme-swatch.on::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 800; }
.theme-swatch.t-terracotta { background: linear-gradient(180deg, #D2603A 0%, #C4552C 100%); }
.theme-swatch.t-green      { background: linear-gradient(180deg, #4C8C5C 0%, #41794F 100%); }
.theme-swatch.t-blue       { background: linear-gradient(180deg, #4680BC 0%, #3A6EA5 100%); }
.theme-swatch.t-amber      { background: linear-gradient(180deg, #C89232 0%, #B37F24 100%); }
.theme-swatch.t-berry      { background: linear-gradient(180deg, #96599E 0%, #84478C 100%); }
.theme-swatch.t-rose       { background: linear-gradient(180deg, #C95A7C 0%, #B84A6C 100%); }

/* ─── Mein Profil (Anzeigename, E-Mail, Passwort) ─── */
.prof-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--gray-500); margin: 0 0 6px; }
.prof-row { display: flex; gap: 8px; }
.prof-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 14px; background: var(--card); }
.prof-row input:disabled { background: var(--gray-100); color: var(--gray-600); }
.prof-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.prof-col input { align-self: stretch; padding: 10px 12px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 14px; background: var(--card); }
.prof-sep { height: 1px; background: var(--gray-100); margin: 14px 0; }

/* ═══════════ Rezeptbuch (Pro) ═══════════ */
.rb-empty { text-align: center; color: var(--gray-600); padding: 48px 20px; }
.rb-empty-ico { font-size: 44px; margin-bottom: 8px; }
.rb-empty-sub { font-size: 13px; color: var(--gray-500); max-width: 320px; margin: 6px auto 0; }

.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rb-card { text-align: left; background: var(--card); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 14px; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.rb-card:active { transform: scale(.98); }
.rb-card-title { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--gray-900);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-card-meta { display: flex; align-items: center; gap: 6px; }
.rb-card-sub { font-size: 12px; color: var(--gray-500); }
.rb-avg { font-size: 12px; color: var(--gray-600); font-weight: 600; }
.rb-unrated { font-size: 12px; color: var(--gray-400); }

.rb-stars { display: inline-flex; gap: 1px; }
.rb-star { color: var(--gray-300); font-size: 16px; line-height: 1; }
.rb-star.on { color: var(--gold, #E6A817); }
.rb-stars-int .rb-star { font-size: 30px; background: none; border: 0; cursor: pointer; padding: 0 3px; color: var(--gray-300); }
.rb-stars-int .rb-star.on { color: var(--gold, #E6A817); }

.rb-detail { max-width: 620px; margin: 0 auto; }
.rb-detail-head { display: flex; align-items: center; gap: 8px; }
.rb-title-input { flex: 1; min-width: 0; font-size: 20px; font-weight: 700; color: var(--gray-900);
  border: 2px solid transparent; border-radius: 10px; padding: 6px 8px; background: transparent; }
.rb-title-input:focus { border-color: var(--gray-200); background: var(--card); outline: none; }
.rb-del { background: none; border: 0; font-size: 20px; cursor: pointer; padding: 6px; border-radius: 8px; opacity: .7; }
.rb-del:active { background: var(--gray-100); }

.rb-rate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 4px; }
.rb-rate-label { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.rb-avg-row { font-size: 12.5px; color: var(--gray-500); margin-bottom: 16px; }

.rb-cook { width: 100%; background: var(--grad); color: #fff; border: 0; border-radius: 12px;
  padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.rb-cook:active { transform: scale(.99); }

.rb-h { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500);
  margin: 24px 0 8px; font-weight: 700; }
.rb-ingredients { list-style: none; padding: 0; margin: 0; }
.rb-ingredients li { padding: 8px 2px; border-bottom: 1px solid var(--gray-100); font-size: 14.5px; color: var(--gray-900); }
.rb-amt { color: var(--gray-500); font-size: 13px; }
.rb-notes { list-style: none; padding: 0; margin: 0; }
.rb-notes li { padding: 9px 12px; background: var(--gray-100); border-radius: 10px; margin-bottom: 6px; font-size: 14px; color: var(--gray-900); }
.rb-note-who { color: var(--gray-500); font-size: 12.5px; }
.rb-none { font-size: 13.5px; color: var(--gray-500); }
.rb-note-add { display: flex; gap: 8px; margin-top: 10px; }
.rb-note-input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--gray-200); border-radius: 11px; font-size: 14px; background: var(--card); }
.rb-note-btn { background: var(--gray-100); color: var(--gray-700); border: 0; border-radius: 11px; padding: 0 16px; font-weight: 650; font-size: 14px; cursor: pointer; }
.rb-source { display: inline-block; margin-top: 22px; color: var(--gray-600); font-size: 13.5px; text-decoration: underline; }

/* Rezeptbuch: Kategorie-Filter + Tags */
.rb-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rb-chip { border: 1px solid var(--gray-200); background: var(--card); color: var(--gray-600);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.rb-chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.rb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.rb-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--gray-100); color: var(--gray-700);
  border-radius: 999px; padding: 4px 6px 4px 11px; font-size: 12.5px; font-weight: 600; }
.rb-tag-x { background: none; border: 0; color: var(--gray-500); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 3px; }
.rb-tag-add { border: 1px dashed var(--gray-300); background: none; color: var(--gray-600);
  border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; }

/* App & mehr — Zeilen (früheres ⋯-Menü, jetzt in der Verwaltung) */
.dash-link { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0;
  padding: 12px 4px; font-size: 15px; font-weight: 600; color: var(--gray-900); cursor: pointer;
  border-bottom: 1px solid var(--gray-100); text-align: left; }
.dash-link:last-of-type { border-bottom: 0; }
.dash-link:active { background: var(--gray-100); border-radius: var(--radius-xs); }
.dl-ico { font-size: 17px; width: 22px; text-align: center; }
.dl-tag { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--gray-500);
  background: var(--gray-100); border-radius: 999px; padding: 2px 9px; }
.dash-cols-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 4px 8px; }
/* Abmelden + Legal-Links: immer ganz unten (Flo 07.07.) */
#dashScreen .dash-body { display: flex; flex-direction: column; }
#dashScreen .dash-body > * { flex-shrink: 0; }
.dash-card.dash-logout { margin-top: auto; margin-bottom: 0; padding: 4px 16px; }
.dash-legal-footer { display: flex; justify-content: center; gap: 20px; padding: 18px 4px 6px; }
.dash-legal { background: none; border: 0; color: var(--gray-500); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }

/* ─── Feedback-Sheet (§25.1) ─── */
.fb-kinds { display: flex; gap: 8px; margin-bottom: 12px; }
.fb-kind { flex: 1; padding: 9px 0; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--card); font-size: 14px; font-weight: 700; color: var(--gray-500); cursor: pointer; }
.fb-kind.active { background: var(--primary); border-color: var(--primary); color: #fff; }
#feedbackText { width: 100%; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 11px 13px;
  font: inherit; font-size: 15px; resize: vertical; min-height: 110px; background: var(--card); color: var(--ink); }
#feedbackText:focus { outline: none; border-color: var(--primary); }
.fb-send { display: block; width: 100%; margin-top: 12px; padding: 12px 0; font-size: 15px; }

/* ─── Wochenplan (§25.2 Stufe 2) ─── */
/* Topbar-Aktion rechts (Gegenstück zum Zurück-Knopf) */
.dash-top-action { background: none; border: none; color: var(--primary); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 5px; padding: 6px 4px; cursor: pointer; width: 64px; justify-content: flex-end; }
.dash-top-action svg { width: 18px; height: 18px; }
.plan-hint { font-size: 13px; color: var(--gray-500); margin: 2px 2px 14px; line-height: 1.45; }
.plan-week { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 6px 12px 8px; margin-bottom: 14px; }
.plan-week-head { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gray-500); padding: 8px 4px 6px; }
.plan-day { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(var(--border-warm), 0.14); min-height: 44px; }
.plan-day:last-child { border-bottom: none; }
.plan-day.empty { cursor: pointer; }
.plan-day-tap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.plan-date { display: flex; flex-direction: column; align-items: center; width: 44px; flex-shrink: 0;
  border-radius: 10px; padding: 3px 0; }
.plan-date.today { background: var(--primary); color: #fff; }
.plan-wd { font-size: 12px; font-weight: 800; line-height: 1.2; }
.plan-dm { font-size: 10.5px; opacity: .75; line-height: 1.2; }
.plan-dish { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-book { font-size: 12px; }
.plan-empty-hint { flex: 1; font-size: 13.5px; color: var(--gray-400); }
.plan-btn { background: none; border: 1px solid var(--gray-200); border-radius: 9px; width: 32px; height: 32px;
  flex-shrink: 0; font-size: 14px; color: var(--gray-500); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.plan-btn.save { background: var(--primary); border-color: var(--primary); color: #fff; }
.plan-day.editing input { flex: 1; min-width: 0; border: 1px solid var(--primary); border-radius: 10px;
  padding: 7px 10px; font: inherit; font-size: 14.5px; background: var(--card); color: var(--ink); }
.plan-day.editing input:focus { outline: none; }

/* ─── Zutaten-Check nach dem Planen (Bruder-Feedback 08.07.) ─── */
.plan-check-row { display: flex; align-items: center; gap: 11px; padding: 10px 2px;
  border-bottom: 1px solid rgba(var(--border-warm), 0.16); cursor: pointer; }
.plan-check-row:last-child { border-bottom: none; }
.plan-check-box { width: 22px; height: 22px; border-radius: var(--radius-xs); border: 1.5px solid var(--gray-300);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.plan-check-row.sel .plan-check-box { background: var(--primary); border-color: var(--primary); }
.plan-check-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.plan-check-row:not(.sel) .plan-check-name { color: var(--gray-400); font-weight: 500; }
.plan-check-amount { color: var(--gray-500); font-weight: 500; font-size: 13px; }
.plan-check-onlist { font-size: 11.5px; font-weight: 700; color: var(--gray-500); background: var(--gray-100);
  border-radius: 8px; padding: 2px 8px; flex-shrink: 0; }
.plan-check-loading { padding: 18px 2px; font-size: 14px; color: var(--gray-500); }
#planCheckAddBtn { margin-top: 14px; }
#planCheckAddBtn:disabled { opacity: 0.5; }
