/* Forster's Planer – Farben aus dem App-Icon (Variante 2b): Navy, Creme, Terrakotta als einzelner Akzent. */

:root {
  --bg: #F8F5EF;            /* Creme (Punkte im Icon) */
  --surface: #FFFFFF;
  --surface-2: #F1ECE3;
  --text: #1A3647;          /* Navy (Icon-Hintergrund) */
  --muted: #6E7D88;
  --line: #E8E2D8;
  --accent: #1A3647;        /* Hauptfarbe für Knöpfe & Auswahl */
  --accent-ink: #F8F5EF;
  --accent-strong: #B5603A; /* Terrakotta, dunkel genug für Text */
  --accent-soft: #F4E6DD;
  --hot: #E39A78;           /* Terrakotta (Mittelpunkt im Icon) */
  --hot-ink: #1A3647;
  --dark: #1A3647;
  --dark-2: #234558;
  --deal: #C8473A;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgb(26 54 71 / 0.05), 0 4px 16px rgb(26 54 71 / 0.07);
  --shadow-lg: 0 18px 50px rgb(26 54 71 / 0.2);
  --nav-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F222D;
    --surface: #1A3647;
    --surface-2: #22435A;
    --text: #F8F5EF;
    --muted: #9DB0BC;
    --line: #2B4A5D;
    --accent: #E39A78;
    --accent-ink: #1A3647;
    --accent-strong: #EDB295;
    --accent-soft: #3A3F45;
    --hot: #E39A78;
    --hot-ink: #1A3647;
    --dark: #132B39;
    --dark-2: #1A3647;
    --deal: #F08474;
    --shadow: 0 0 0 1px rgb(248 245 239 / 0.05);
    --shadow-lg: 0 18px 50px rgb(0 0 0 / 0.55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 22px; height: 22px; flex: none; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 0.88em; }
.muted { color: var(--muted); }
.spacer { flex: 1; }

/* ---------- Kopfzeile ---------- */

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  max-width: 640px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 12px) 18px 12px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.topbar:has(.hdr-pill) { grid-template-columns: 96px 1fr 96px; }
.topbar h1 {
  margin: 0; text-align: center; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.hdr-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow);
}
.hdr-btn svg { width: 20px; height: 20px; }
.hdr-btn.avatars { display: flex; align-items: center; justify-content: center; }
.hdr-btn.avatars .avatar + .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.hdr-pill {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 34px; padding: 0 14px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.82rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}
.hdr-pill svg { width: 15px; height: 15px; stroke-width: 2.6; }
.hdr-pill.is-done { background: var(--accent-soft); color: var(--accent-strong); box-shadow: none; }
.hdr-space { width: 40px; }
.demo { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-strong); }

main {
  max-width: 640px; margin: 0 auto;
  padding: 4px 18px calc(var(--nav-h) + env(safe-area-inset-bottom) + 40px);
}

/* ---------- Untere Leiste mit Scan-Knopf ---------- */

.tabs {
  position: fixed; z-index: 10; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 max(8px, calc(50vw - 320px)) env(safe-area-inset-bottom);
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -6px 24px rgb(23 35 28 / 0.07);
}
.tabs button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 100%; color: var(--muted);
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  transition: color 0.2s;
}
.tabs button svg { width: 22px; height: 22px; }
.tabs button.on { color: var(--accent-strong); }
.tabs button.on svg { stroke-width: 2.3; }
.tabs .scan-btn {
  justify-self: center; align-self: start;
  width: 62px; height: 62px; margin-top: -22px; border-radius: 50%;
  background: var(--hot); color: var(--hot-ink);
  box-shadow: 0 0 0 6px var(--surface), 0 10px 24px color-mix(in srgb, var(--hot) 55%, transparent);
  transition: transform 0.15s;
}
.tabs .scan-btn:active { transform: scale(0.94); }
.tabs .scan-btn svg { width: 28px; height: 28px; stroke-width: 2.2; }

/* ---------- Bausteine ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border-radius: 16px; font-weight: 800;
  transition: transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 19px; height: 19px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.ghost { background: var(--surface); box-shadow: var(--shadow); }
.btn.danger { color: var(--deal); padding: 0 10px; }
.block { width: 100%; }
.link { color: var(--accent-strong); font-weight: 800; font-size: 0.88rem; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 99px;
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 0.85rem; font-weight: 800; cursor: pointer;
}
.pill-btn svg { width: 16px; height: 16px; }
.pill-btn.accent { background: var(--accent); color: var(--accent-ink); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 10px; font-weight: 800; box-shadow: none; background: var(--surface-2); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 800; font-size: 0.95rem;
}
.avatar.sm { width: 30px; height: 30px; font-size: 0.78rem; }
.avatar.xs { width: 22px; height: 22px; font-size: 0.62rem; }

/* Markt-Logos */
.logo {
  position: relative; overflow: hidden; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--lbg, var(--accent-soft)); color: var(--lfg, var(--accent-strong));
  font-weight: 800; font-size: 1.05rem; line-height: 1;
}
.logo svg { width: 55%; height: 55%; }
.logo.lg { width: 50px; height: 50px; border-radius: 15px; }
.logo.xs { width: 20px; height: 20px; border-radius: 5px; font-size: 0.55rem; vertical-align: -5px; display: inline-grid; }
/* Bilder absolut einpassen (Prozent-Padding würde sich auf die Kartenbreite beziehen). */
.logo-img { background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); }
.logo-img img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.logo.xs.logo-img img { inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); }
.logo-all { --lbg: var(--surface-2); --lfg: var(--text); }
.logo-add { --lbg: transparent; --lfg: var(--accent-strong); box-shadow: inset 0 0 0 2px var(--accent-soft); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .rail::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  min-height: 38px; padding: 0 16px 0 10px; border-radius: 99px;
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 0.88rem; font-weight: 700;
}
.chip:not(:has(.avatar)) { padding-left: 16px; }
.chip.on { background: var(--accent); color: var(--accent-ink); }

.seg { display: flex; padding: 4px; margin-bottom: 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); }
.seg button { flex: 1; min-height: 38px; border-radius: 99px; font-weight: 800; font-size: 0.88rem; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 4px 10px; }
.section-title h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.section-title span { color: var(--muted); font-size: 0.85rem; }

.empty-state { text-align: center; padding: 30px 16px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.empty-state > span { font-size: 2.2rem; }
.empty-state p { margin: 6px 0 14px; color: var(--muted); }

.stack { display: grid; gap: 10px; }

/* ---------- Listen (Aufgaben, Familie) ---------- */

.list { list-style: none; margin: 0 0 12px; padding: 4px 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 4px; padding: 0 14px 0 8px; min-height: 58px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 56px; right: 14px; height: 1px; background: var(--line); }
.row-main {
  flex: 1; min-width: 0; min-height: 58px; padding: 8px 6px;
  display: flex; flex-direction: column; justify-content: center; text-align: left;
}
.row-main.with-icon { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.row-title { font-weight: 700; overflow-wrap: anywhere; }
.row-sub { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.row-sub.late { color: var(--deal); font-weight: 700; }
.is-done .row-title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }

/* Runde Checkbox */
.tick { display: grid; place-items: center; width: 44px; height: 44px; flex: none; cursor: pointer; }
.tick input { position: absolute; opacity: 0; pointer-events: none; }
.tick span {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--muted) 40%, transparent);
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.tick span::after {
  content: ""; width: 6px; height: 11px; margin-top: -3px;
  border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tick input:checked + span { background: var(--accent); border-color: var(--accent); animation: pop 0.3s; }
.tick input:checked + span::after { transform: rotate(45deg) scale(1); }
.tick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes pop { 50% { transform: scale(1.18); } }

.done-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 4px 10px; }
.done-toggle { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--muted); }
.done-toggle svg { width: 18px; height: 18px; transition: transform 0.2s; }
.done-toggle.open svg { transform: rotate(180deg); }

/* ---------- Kalender ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--dark); color: #F8F5EF;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hot); }
.hero-label svg { width: 15px; height: 15px; }
.hero h2 { margin: 8px 0 2px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.hero p { margin: 0; color: rgb(255 255 255 / 0.75); font-weight: 600; }

.stats { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; margin-top: 10px; }
.stat {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px;
  min-height: 82px; padding: 14px; border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow); text-align: left; min-width: 0;
}
.stat b { font-size: 1.55rem; font-weight: 800; line-height: 1; color: var(--accent-strong); }
.stat b.stat-text { font-size: 0.95rem; line-height: 1.25; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stat span { font-size: 0.76rem; font-weight: 700; color: var(--muted); }

.weekhead { display: flex; align-items: center; justify-content: space-between; margin: 24px 4px 12px; }
.weekhead h2 { margin: 0; font-size: 1.05rem; font-weight: 800; text-transform: capitalize; }
.weekbtns { display: flex; gap: 6px; }

.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daypill {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 0 8px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow);
}
.daypill small { font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.daypill b { font-size: 1.08rem; font-weight: 800; }
.daypill .dots { display: flex; gap: 3px; height: 6px; }
.daypill .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.daypill.is-today b { color: var(--accent-strong); }
.daypill.on { background: var(--accent); color: var(--accent-ink); }
.daypill.on small, .daypill.on b { color: inherit; }
.daypill.on .dots i { box-shadow: 0 0 0 1.5px var(--accent-ink); }

.event {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px 14px 18px; border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow); text-align: left;
  position: relative; overflow: hidden;
}
.event::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.ev-time { display: flex; flex-direction: column; min-width: 50px; font-variant-numeric: tabular-nums; }
.ev-time b { font-weight: 800; font-size: 0.95rem; }
.ev-time small { color: var(--muted); font-size: 0.78rem; }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev-body b { font-weight: 700; overflow-wrap: anywhere; }
.ev-body small { color: var(--muted); font-size: 0.82rem; }
.event.is-task { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }

.meal-banner {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 10px;
  padding: 12px 16px; border-radius: var(--r); text-align: left;
  background: var(--accent-soft);
}
.meal-banner .emoji { font-size: 1.5rem; }
.meal-banner small { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-strong); }

/* ---------- Einkauf ---------- */

.rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 18px 14px; margin: 0 -18px; scroll-snap-type: x proximity; scrollbar-width: none; }
.store-card {
  flex: none; width: 120px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 14px; border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow); text-align: left;
  transition: box-shadow 0.2s;
}
.store-card .logo { margin-bottom: 6px; }
.sc-name { font-weight: 800; font-size: 0.9rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sc-meta { font-size: 0.74rem; color: var(--muted); font-weight: 700; }
.store-card.on { box-shadow: 0 0 0 2.5px var(--accent), var(--shadow); }
.store-card.add { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }

/* Zusammenfassung wie "89 Items | $1,500 Value" */
.summary {
  display: flex; align-items: center; justify-content: space-around; gap: 8px;
  padding: 12px 10px; border-radius: 99px;
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 0.84rem; color: var(--muted); font-weight: 600;
}
.summary b { color: var(--accent-strong); font-weight: 800; font-size: 0.95rem; }
.summary i { width: 1px; height: 18px; background: var(--line); }
.bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 15%, transparent); margin: 12px 14px 0; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--hot); transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hint { margin: 10px 6px 14px; font-size: 0.8rem; color: var(--muted); text-align: center; }
.hint .link { font-size: inherit; }

.add-line { display: flex; gap: 8px; margin-bottom: 6px; }
.add-line input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 18px;
  border: 0; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow);
  font-weight: 600;
}
.add-line input:focus { outline: 2px solid var(--accent); }
.add-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--accent-ink);
}
.add-btn svg { stroke-width: 2.4; }

.group h3 { display: flex; align-items: center; gap: 8px; margin: 20px 6px 8px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.gicon { font-size: 1rem; }
.group .count { margin-left: auto; font-size: 0.72rem; padding: 1px 8px; border-radius: 99px; background: var(--surface); }

/* Artikel als Karten mit Bild – wie die Bücher-Liste der Vorlage */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card-row {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 6px 8px 8px; border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow);
}
.card-row .row-main { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 0; padding: 0; }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-price { margin-top: 2px; font-weight: 800; font-size: 0.92rem; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.row-price small { font-weight: 600; color: var(--muted); font-size: 0.76rem; }
.card-row.is-done { opacity: 0.6; }
.thumb {
  position: relative; width: 56px; height: 56px; border-radius: 14px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--surface-2); font-size: 1.6rem;
}
.thumb:has(img) { background: #fff; }
.thumb img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.thumb.lg { width: 72px; height: 72px; }

.deal {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; border-radius: 99px;
  background: var(--deal); color: #fff; font-size: 0.84rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.elsewhere { font-size: 0.82rem; color: var(--muted); margin: 16px 6px; line-height: 1.8; }

.deal-banner {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px;
  padding: 12px 12px 12px 14px; border-radius: var(--r); text-align: left;
  background: var(--surface); box-shadow: var(--shadow);
}
.deal-banner > span:nth-child(2) { flex: 1; min-width: 0; }
.deal-banner b { display: block; font-weight: 800; font-size: 0.95rem; }
.deal-banner small { display: block; color: var(--muted); font-size: 0.78rem; }
.deal-banner .pill-btn { flex: none; background: var(--surface-2); box-shadow: none; }
.deal-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--deal) 12%, var(--surface)); color: var(--deal); }
.deal-banner.setup { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--deal) 30%, transparent); }

/* ---------- Produktseite (Vorlage: "Product Info") ---------- */

.product-hero { text-align: center; padding: 8px 8px 22px; }
.product-img {
  position: relative; width: 168px; height: 168px; margin: 4px auto 16px; border-radius: 22px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); font-size: 4.5rem;
}
.product-img:has(img) { background: #fff; }
.product-img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.product-hero h2 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.product-hero p { margin: 6px auto 0; max-width: 34ch; color: var(--muted); font-size: 0.86rem; }
.range { display: block; margin-top: 10px; font-size: 1.15rem; font-weight: 800; color: var(--accent-strong); }
.range .muted { font-size: 0.9rem; font-weight: 600; }
.cheapest-hint { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-strong); font-size: 0.76rem; font-weight: 800; }

.graph { margin: 0 -18px; }
.graph-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 100%; padding: 18px 0 12px; border-radius: 26px 26px 0 0;
  background: var(--dark); color: #F8F5EF;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
.graph:not(.open) .graph-tab { border-radius: 26px; margin: 0 18px; width: calc(100% - 36px); }
.knob {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dark); color: #F8F5EF; box-shadow: 0 0 0 4px var(--bg);
}
.knob svg { width: 16px; height: 16px; stroke-width: 2.6; transition: transform 0.2s; }
.graph.open .knob svg { transform: rotate(180deg); }
.graph-panel {
  padding: 4px 18px 22px; background: var(--dark); color: #F8F5EF;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: rgb(255 255 255 / 0.12); stroke-width: 1; }
.chart .gt { fill: rgb(255 255 255 / 0.6); font-size: 9px; font-weight: 600; font-family: inherit; }
.chart .ln { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart .pt { stroke: var(--dark); stroke-width: 3; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 0.78rem; font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; }
.chart-empty { margin: 8px 0 0; color: rgb(255 255 255 / 0.7); font-size: 0.86rem; text-align: center; }

.listings { margin-top: 22px; }
.graph.open + .listings {
  margin: 0 -18px; padding: 20px 18px 4px;
  background: var(--bg); border-radius: 26px 26px 0 0; position: relative; top: -18px;
}
.listings h3 { margin: 0 4px 10px; font-size: 0.98rem; font-weight: 800; }
.listing {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 8px;
  padding: 10px 16px 10px 10px; border-radius: var(--r); text-align: left;
  background: var(--surface); box-shadow: var(--shadow);
}
.l-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.l-body b { font-weight: 800; }
.l-body small { color: var(--muted); font-size: 0.8rem; }
.l-price { font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--text); }
.l-price svg { width: 18px; height: 18px; color: var(--accent-strong); }
.l-price.is-deal, .deal-text { color: var(--deal); }
.deal-text { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.deal-text svg { width: 13px; height: 13px; }
.product-actions { display: flex; gap: 10px; margin-top: 18px; }
.product-actions .btn.ghost { flex: 1; }

/* ---------- Essensplan ---------- */

.meal-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 10px 16px 10px 10px; border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow); text-align: left;
}
.daybox { width: 54px; height: 54px; border-radius: 15px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-2); }
.daybox small { font-size: 0.68rem; font-weight: 800; color: var(--muted); }
.daybox b { font-size: 1.12rem; font-weight: 800; line-height: 1.1; }
.meal-card.is-today .daybox { background: var(--accent); color: var(--accent-ink); }
.meal-card.is-today .daybox small { color: inherit; opacity: 0.8; }
.dish { flex: 1; font-weight: 700; }
.meal-card.is-empty .dish { color: var(--muted); font-weight: 600; }
.meal-card .plus { color: var(--accent-strong); }

/* ---------- Familie ---------- */

.info { margin-top: 24px; padding: 18px; border-radius: var(--r); background: var(--accent-soft); }
.info h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; }
.info p { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Bottom Sheet ---------- */

dialog {
  width: min(560px, 100vw); max-width: 100vw; max-height: 92dvh;
  margin: auto auto 0; padding: 0; border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow-y: auto; overscroll-behavior: contain;
}
dialog[open] { animation: sheet-up 0.32s cubic-bezier(0.2, 0.9, 0.25, 1); }
dialog::backdrop { background: rgb(8 18 12 / 0.45); backdrop-filter: blur(3px); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { dialog { margin: auto; border-radius: 28px; } }
.grabber { width: 40px; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 35%, transparent); margin: 10px auto 0; }

.form { padding: 14px 20px calc(22px + env(safe-area-inset-bottom)); }
.form h2 { margin: 6px 0 18px; font-size: 1.2rem; font-weight: 800; text-align: center; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; }
.field.half { grid-column: span 1; }
.field > span, .label { font-size: 0.78rem; font-weight: 800; color: var(--muted); }
.label { margin: 18px 4px 8px; }
.form > .label:first-of-type { margin-top: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid transparent; border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input[type="color"] { padding: 6px; height: 50px; }
.field-note { grid-column: span 2; margin: 0; font-size: 0.84rem; color: var(--muted); }
.price-list { display: flex; flex-wrap: wrap; gap: 8px; }
.price-list > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 99px; background: var(--surface); font-weight: 800; color: var(--text); }
.price-list .cheapest { background: var(--accent-soft); color: var(--accent-strong); }
.actions { display: flex; align-items: center; gap: 8px; margin-top: 24px; }

.chain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.chain {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; border-radius: 14px; background: var(--surface);
  font-size: 0.7rem; font-weight: 800; text-align: center;
  box-shadow: var(--shadow); transition: box-shadow 0.15s;
}
.chain.on { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.chain-grid + .fields { margin-top: 18px; }

.logo-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.logo-row b { display: block; font-size: 0.9rem; }
.logo-row small { color: var(--muted); font-size: 0.76rem; }
.logo-row .pill-btn { box-shadow: none; background: var(--surface-2); }

.order { list-style: none; margin: 0; padding: 4px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); counter-reset: step; }
.order li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 12px; counter-increment: step; }
.order li::before { content: counter(step); width: 18px; color: var(--muted); font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.order .o-label { flex: 1; font-weight: 700; font-size: 0.9rem; }

.switch { display: flex; align-items: center; gap: 10px; margin: 12px 4px; font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }

.offer-list { display: grid; gap: 8px; margin-bottom: 12px; }
.offer-list > p { text-align: center; padding: 18px 0; margin: 0; }
.offer { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.offer-img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: #fff; flex: none; }
.offer-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.offer-body b { font-weight: 700; font-size: 0.9rem; line-height: 1.25; overflow-wrap: anywhere; }
.offer-body small { color: var(--muted); font-size: 0.74rem; }
.offer-store { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.offer-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.offer-price b { font-size: 1.02rem; font-weight: 800; color: var(--deal); font-variant-numeric: tabular-nums; }
.offer-price s { font-size: 0.74rem; color: var(--muted); }
.offer-price .off { font-size: 0.68rem; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: var(--deal); color: #fff; }

button:focus-visible, .pill-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Scanner ---------- */

#scanner { position: fixed; inset: 0; z-index: 50; background: #000; color: #fff; }
#scanner[hidden] { display: none; }
#scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: calc(env(safe-area-inset-top) + 12px) 18px 12px;
  background: linear-gradient(rgb(0 0 0 / 0.55), transparent);
}
.scan-top h1 { margin: 0; text-align: center; font-size: 1.05rem; font-weight: 800; }
.scan-top .hdr-btn { background: rgb(255 255 255 / 0.15); box-shadow: none; color: #fff; }
.scan-frame {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: min(78vw, 340px); aspect-ratio: 1.6; border-radius: 22px;
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.45);
  outline: 3px solid var(--accent);
}
.scan-frame i {
  position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: scanline 1.6s ease-in-out infinite alternate;
}
@keyframes scanline { from { top: 18%; } to { top: 82%; } }
.scan-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 18px calc(env(safe-area-inset-bottom) + 22px);
  background: linear-gradient(transparent, rgb(0 0 0 / 0.7) 30%);
  text-align: center;
}
.scan-bottom p { margin: 0 0 14px; font-weight: 700; }
.scan-bottom .add-line { max-width: 420px; margin: 0 auto; }
.scan-bottom input { background: rgb(255 255 255 / 0.95); color: #17231c; }

/* ---------- Login & Toast ---------- */

.login { max-width: 400px; margin: 0 auto; padding: 14vh 24px 32px; text-align: center; }
.login img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.login h1 { margin: 18px 0 6px; font-size: 1.7rem; font-weight: 800; }
.login .form { text-align: left; padding: 22px 0; display: grid; gap: 14px; }

#toast {
  position: fixed; left: 50%; z-index: 60;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--dark); color: #F8F5EF; font-size: 0.88rem; font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s, transform 0.25s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Märkte, Filialen & Prospekt ---------- */

.sc-deal { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.72rem; font-weight: 800; color: var(--deal); }
.sc-deal svg { width: 13px; height: 13px; }

.branch-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; }
.branch-bar .pin { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.branch-bar .pin svg { width: 18px; height: 18px; }
.branch-bar .chips { padding-bottom: 4px; }
.chip.add { color: var(--accent-strong); box-shadow: inset 0 0 0 1.5px var(--accent-soft); background: transparent; }

.deal-banner .chev { color: var(--muted); }
.deal-banner .chev svg { width: 18px; height: 18px; }
.deal-banner em { font-style: normal; color: var(--deal); }

.deal { max-width: 46%; }
.deal-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; min-width: 0; }
.deal-brand { font-size: 0.66rem; font-weight: 700; opacity: 0.9; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.offer-body .brand { font-weight: 800; color: var(--accent-strong); }
.brand-tag { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-size: 0.78rem; font-weight: 800; color: var(--accent-strong); }

.l-price { display: flex; flex-direction: column; align-items: flex-end; }
.l-price small { font-size: 0.72rem; font-weight: 600; color: var(--muted); }

.flyer-meta { margin: 0 4px 12px; font-size: 0.88rem; color: var(--muted); }
.flyer-meta b { color: var(--accent-strong); font-size: 1rem; }
.flyer-meta span { font-size: 0.8rem; }
.sub-h { margin: 18px 4px 8px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
#flyer-q { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
#flyer-q:focus { outline: 2px solid var(--accent); }

.btn.danger.is-armed { background: var(--deal); color: #fff; padding: 0 16px; animation: pop 0.25s; }

/* ---------- Unsere Artikel, Schnell hinzufügen, Listen ---------- */

.seg small { font-size: 0.72rem; opacity: 0.7; margin-left: 2px; }
.list-bar { padding-top: 0; }
.list-chip .n { min-width: 20px; padding: 0 6px; border-radius: 99px; font-size: 0.72rem; background: color-mix(in srgb, currentColor 14%, transparent); }
.list-chip .edit-dot svg { width: 14px; height: 14px; opacity: 0.8; }

.quick { margin: 4px 0 2px; }
.quick .chips { flex-wrap: wrap; overflow: visible; padding-bottom: 6px; }
.quick .chip { min-height: 34px; font-size: 0.84rem; }

.suggest { display: grid; gap: 6px; margin: 0 0 6px; }
.suggest:empty { display: none; }
.sugg {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 16px; text-align: left;
  border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-size: 0.92rem;
}
.sugg small { color: var(--muted); display: inline-flex; gap: 3px; align-items: center; }

.catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
#catalog-q { flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
#catalog-q:focus { outline: 2px solid var(--accent); }
.add-mini { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); margin-right: 4px; }
.add-mini svg { width: 18px; height: 18px; stroke-width: 2.4; }
.on-list { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: var(--accent-strong); margin-right: 4px; }

.chain-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px 0 8px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: 0.86rem; }
.chip-check input:checked + span { background: var(--accent); color: var(--accent-ink); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-row { flex-direction: row !important; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9rem; cursor: pointer; margin-top: 12px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.field textarea { resize: vertical; line-height: 1.5; }

.receipt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 52dvh; overflow-y: auto; }
.receipt-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.receipt-row > input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.rr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rr-main input { width: 100%; min-height: 38px; padding: 6px 10px; border: 1.5px solid transparent; border-radius: 10px; background: var(--surface-2); font-weight: 700; }
.rr-main input:focus { outline: none; border-color: var(--accent); }
.rr-main small { color: var(--muted); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-row.is-known .rr-main small { color: var(--accent-strong); }
.rr-price { width: 76px; flex: none; min-height: 38px; padding: 6px 8px; text-align: right; border: 1.5px solid transparent; border-radius: 10px; background: var(--surface-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.rr-price:focus { outline: none; border-color: var(--accent); }

/* ---------- Kacheln im Einkauf & Kamera-Menü ---------- */

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 14px; }
.tool {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 12px; border-radius: var(--r); text-align: left;
  background: var(--surface); box-shadow: var(--shadow);
}
.tool-ic { font-size: 1.35rem; margin-bottom: 4px; }
.tool b { font-size: 0.86rem; font-weight: 800; line-height: 1.2; }
.tool small { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.scan-menu { display: grid; gap: 10px; }
.scan-opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border-radius: var(--r); text-align: left;
  background: var(--surface); box-shadow: var(--shadow);
}
.scan-opt b { display: block; font-weight: 800; }
.scan-opt small { display: block; color: var(--muted); font-size: 0.8rem; }
.so-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--hot); color: var(--hot-ink); font-size: 1.4rem; }
.so-ic svg { width: 24px; height: 24px; stroke-width: 2.2; }

/* ---------- Artikelfoto ---------- */

.photo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-row .thumb.lg { font-size: 1.6rem; box-shadow: var(--shadow); }
.photo-row .pill-btn { box-shadow: var(--shadow); }
.danger-link { color: var(--deal); }
.danger-link[hidden] { display: none; }
.product-img .photo-btn {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-lg);
}
.product-img .photo-btn svg { width: 17px; height: 17px; }

.img-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 10px; }
.img-pick:empty { display: none; }
.img-pick > p { grid-column: 1 / -1; margin: 4px 0; font-size: 0.85rem; }
.pick { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.pick img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #fff; }
.pick small { font-size: 0.66rem; line-height: 1.2; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick.on { box-shadow: 0 0 0 2.5px var(--accent), var(--shadow); }

.ocr-box { display: grid; gap: 6px; margin-bottom: 14px; }
.ocr-box .btn { cursor: pointer; }
.ocr-box .btn:has(input:disabled) { opacity: 0.6; pointer-events: none; }
.ocr-status { margin: 0; font-size: 0.82rem; text-align: center; }
.tool-ic svg { width: 24px; height: 24px; color: var(--accent-strong); stroke-width: 2.2; }
.hdr-btn.avatars[aria-current] { box-shadow: 0 0 0 2.5px var(--accent), var(--shadow); }

/* Kacheln 2×2: Symbol links, Text rechts */
.tool { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.tool .tool-ic { grid-row: span 2; margin: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); font-size: 1.2rem; }

.web-search { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 10px; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-size: 0.9rem; text-align: left; }
.web-search svg { width: 18px; height: 18px; }

.result-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.icon-btn.sm.accent { background: var(--accent); color: var(--accent-ink); }
.offer-img.thumb { display: grid; place-items: center; font-size: 1.5rem; background: var(--surface-2); }

/* ---------- Zutaten & Nährwerte ---------- */

.info-card { padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 12px; }
.info-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nutri { display: inline-flex; border-radius: 10px; overflow: hidden; font-weight: 800; font-size: 0.82rem; }
.nutri span { width: 28px; height: 30px; display: grid; place-items: center; color: #fff; opacity: 0.35; }
.nutri span.on { opacity: 1; width: 38px; height: 34px; font-size: 1rem; border-radius: 8px; margin: -2px 0; box-shadow: 0 2px 8px rgb(0 0 0 / 0.2); }
.ns-a { background: #038141; } .ns-b { background: #85bb2f; } .ns-c { background: #fecb02; color: #1A3647 !important; } .ns-d { background: #ee8100; } .ns-e { background: #e63e11; }
.info-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-info { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.chip-info.good { background: var(--accent-soft); color: var(--accent-strong); }
.allergens { margin: 0; font-size: 0.9rem; }
.allergens b { color: var(--deal); }
.traces { margin: 0; font-size: 0.8rem; color: var(--muted); }
.nutr { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.nutr caption { text-align: left; font-size: 0.75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 6px; }
.nutr th { text-align: left; font-weight: 600; padding: 6px 0; border-top: 1px solid var(--line); }
.nutr td { text-align: right; font-weight: 800; padding: 6px 0; border-top: 1px solid var(--line); }
.nutr tr.sub th { padding-left: 14px; color: var(--muted); font-weight: 500; }
.nutr tr.sub td { font-weight: 600; color: var(--muted); }
.ingredients summary { cursor: pointer; font-weight: 800; font-size: 0.9rem; }
.ingredients p { margin: 6px 0 0; font-size: 0.86rem; line-height: 1.55; color: var(--text); }
.source { margin: 0; font-size: 0.72rem; color: var(--muted); }
.info-loading { padding: 8px 4px; }
