/* EasyEinkauf Web-App — shares the marketing site's brand variables (styles.css)
   but is self-contained so landing-page styles never bleed into the app. */

/* Palette + scale mirror the mobile app's Theme.js (Colors/Radius) so the web
   looks like the app. The app is LIGHT-only — no dark mode here. */
:root {
    --primary: #00A86B;
    --primary-dark: #007A4D;
    --primary-light: #E6F7F1;
    --accent: #22C55E;
    --warning: #F59E0B;
    --text: #111827;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --bg: #F2F4F7;
    --bg-soft: #F2F4F7;
    --card-bg: #FFFFFF;
    --border: #E5E7EB;
    --border-input: #E5E7EB;
    --input-bg: #F2F4F7;
    --danger: #EF4444;
    --shadow: rgba(17, 24, 39, 0.06);
    --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-full: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    /* System font = the app's font (San Francisco on Apple devices). */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg); color: var(--text);
    font-size: 16px; line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
input { font: inherit; }

/* The `hidden` attribute must always win. Without this, `display:flex` on
   .auth-wrap / .app-shell beats the UA `[hidden]{display:none}` rule, so a hidden
   view stays rendered — the login screen and the app end up stacked (you'd have to
   scroll past the login to reach the app). */
[hidden] { display: none !important; }

.web-tag {
    font-size: 0.7em; font-weight: 800; color: var(--primary);
    border: 1.5px solid var(--primary); border-radius: 6px;
    padding: 1px 6px; vertical-align: 2px; letter-spacing: 0.04em;
}

/* ── Auth ─────────────────────────────────────────────────────────────── */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
        var(--bg);
    padding: 24px;
}
.auth-card {
    width: 100%; max-width: 400px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 18px;
    padding: 32px; box-shadow: 0 18px 50px var(--shadow);
    animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.auth-brand { display: block; text-decoration: none; color: var(--text); font-size: 1.3rem; margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-soft); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button {
    flex: 1; border: 0; background: transparent; color: var(--text-light);
    padding: 8px; border-radius: 8px; font-weight: 600;
}
.auth-tabs button.active { background: var(--card-bg); color: var(--text); box-shadow: 0 1px 4px var(--shadow); }
#auth-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-light); margin: 12px 0 4px; }
#auth-form input {
    width: 100%; padding: 11px 12px; border-radius: 10px;
    border: 1px solid var(--border-input); background: var(--input-bg); color: var(--text);
}
#auth-form input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.btn-primary {
    background: var(--primary); color: #fff; border: 0; border-radius: 10px;
    padding: 12px 18px; font-weight: 700; width: 100%; margin-top: 12px;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.cf-turnstile { margin-top: 16px; width: 100%; }
.error { color: var(--danger); font-size: 0.9rem; margin: 10px 0 0; }
.auth-hint { color: var(--text-muted); font-size: 0.85rem; margin-top: 18px; }

/* ── App shell ────────────────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px; flex-shrink: 0; display: flex; flex-direction: column;
    background: var(--card-bg); border-right: 1px solid var(--border);
    padding: 20px 14px; position: sticky; top: 0; height: 100vh;
}
.side-brand { text-decoration: none; color: var(--text); font-size: 1.1rem; padding: 0 8px; margin-bottom: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.side-tab {
    text-align: left; border: 0; background: transparent; color: var(--text-light);
    padding: 9px 10px; border-radius: 9px; font-weight: 600;
}
.side-tab:hover { background: var(--bg-soft); }
.side-tab.active { background: var(--primary-light); color: var(--primary-dark); }
.side-heading {
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-muted); margin: 4px 8px 8px;
}
.lists { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.lists button {
    width: 100%; text-align: left; border: 0; background: transparent; color: var(--text);
    padding: 8px 10px; border-radius: 9px; display: flex; justify-content: space-between; gap: 8px;
}
.lists button:hover { background: var(--bg-soft); }
.lists li.active button { background: var(--primary); color: #fff; font-weight: 600; }
.lists .count { color: var(--text-muted); font-size: 0.8rem; }
.lists li.active .count { color: rgba(255, 255, 255, 0.8); }
.side-actions { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.side-actions button, .side-footer button {
    text-align: left; border: 0; background: transparent; color: var(--text-light);
    padding: 8px 10px; border-radius: 9px; font-size: 0.92rem;
}
.side-actions button:hover, .side-footer button:hover { background: var(--bg-soft); color: var(--text); }
.side-footer { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; }
.user-email { display: block; font-size: 0.78rem; color: var(--text-muted); padding: 0 10px 4px; overflow: hidden; text-overflow: ellipsis; }

/* ── Main / Liste ─────────────────────────────────────────────────────── */
.main { flex: 1; max-width: 760px; padding: 28px 32px 60px; margin: 0 auto; }
.main-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.main-head h1 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.meta { color: var(--text-muted); font-size: 0.85rem; }
.head-actions { display: flex; gap: 8px; }
.head-actions button {
    border: 1px solid var(--border); background: var(--card-bg); color: var(--text);
    border-radius: 10px; padding: 8px 12px; font-weight: 600;
}
.head-actions button:hover { border-color: var(--primary); color: var(--primary); }

.add-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.add-bar input {
    flex: 1; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border-input); background: var(--input-bg); color: var(--text);
}
.add-bar input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.add-bar .btn-primary { width: auto; margin: 0; }

.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.items li {
    display: flex; align-items: center; gap: 12px;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 12px 14px; box-shadow: 0 1px 3px var(--shadow); animation: rise 0.25s ease;
}
/* Rounded-square check, matching the app's 24×24 / radius-7 checkbox. */
.check {
    width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px;
    border: 2px solid #D1D5DB; background: transparent; color: transparent;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    transition: background 0.15s, border-color 0.15s;
}
.check:hover { border-color: var(--primary); }
li.done .check, .check:active { background: var(--primary); border-color: var(--primary); color: #fff; }
.item-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
li.done .item-text { color: var(--text-muted); text-decoration: line-through; }
.badge {
    font-size: 0.75rem; font-weight: 700; border-radius: var(--r-full); padding: 3px 9px; white-space: nowrap;
    background: #F3F4F6; color: var(--text-light);
}
.badge.deal { background: var(--primary-light); color: var(--primary-dark); }
.item-del {
    border: 0; background: transparent; color: var(--text-muted); font-size: 1.05rem;
    border-radius: 8px; padding: 4px 8px; opacity: 0; transition: opacity 0.12s;
}
.items li:hover .item-del { opacity: 1; }
.item-del:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }

/* drag-to-reorder */
.drag-handle { cursor: grab; color: var(--text-muted); font-size: 1rem; line-height: 1; user-select: none; flex-shrink: 0; opacity: 0; transition: opacity 0.12s; }
.items li:hover .drag-handle { opacity: 0.6; }
.drag-handle:active { cursor: grabbing; }
.items li.dragging { opacity: 0.4; }
.items li.drag-over { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }

#done-wrap { margin-top: 22px; }
#done-wrap summary { cursor: pointer; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.items-done li { opacity: 0.75; }
.empty { color: var(--text-muted); text-align: center; margin-top: 48px; }

/* ── Angebote ─────────────────────────────────────────────────────────── */
.offers-search {
    width: 100%; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px;
    border: 1px solid var(--border-input); background: var(--input-bg); color: var(--text);
}
.offers-search:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.offers details { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.offers summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
.offers summary .count { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 0 14px 14px; }
.offer-card {
    border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
    background: var(--bg-soft); display: flex; flex-direction: column; gap: 4px;
}
.offer-name { font-weight: 600; font-size: 0.92rem; }
.offer-sub { color: var(--text-muted); font-size: 0.78rem; }
.offer-price { font-weight: 800; color: var(--primary-dark); }
.offer-uvp { color: var(--text-muted); text-decoration: line-through; font-weight: 400; font-size: 0.82rem; margin-left: 6px; }
.offer-store-badge { font-size: 0.72rem; color: var(--text-light); }

/* ── Toast ────────────────────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
    background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px;
    font-weight: 600; box-shadow: 0 8px 30px var(--shadow); z-index: 50;
    animation: rise 0.25s ease;
}

/* ── Vorrat / Pantry ──────────────────────────────────────────────────── */
.pantry-list { display: flex; flex-direction: column; gap: 8px; }
.pantry-section-head {
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); margin: 16px 0 2px;
}
.pantry-section-head:first-child { margin-top: 0; }
.pantry-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--card-bg); border: 1px solid var(--border); border-left: 4px solid var(--border);
    border-radius: 12px; padding: 10px 14px; animation: rise 0.25s ease;
}
.pantry-row.ok { border-left-color: var(--primary); }
.pantry-row.soon { border-left-color: #f59e0b; }
.pantry-row.expired { border-left-color: var(--danger); }
.mhd-label { font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.mhd-label.soon { color: #d97706; }
.mhd-label.expired { color: var(--danger); }
.mhd-input {
    border: 1px solid var(--border-input); background: var(--input-bg); color: var(--text-light);
    border-radius: 8px; padding: 4px 7px; font-size: 0.8rem; max-width: 140px;
}
.mhd-input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.icon-btn {
    border: 0; background: transparent; color: var(--text-muted); font-size: 1rem;
    border-radius: 8px; padding: 4px 8px;
}
.icon-btn:hover { color: var(--primary); background: var(--bg-soft); }
#pantry-date { flex: 0 0 auto; max-width: 170px; }

/* ── Plan / Wochenplan ────────────────────────────────────────────────── */
.week-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.week-nav > button {
    border: 1px solid var(--border); background: var(--card-bg); color: var(--text);
    border-radius: 9px; padding: 6px 12px; font-weight: 700;
}
.week-nav > button:hover { border-color: var(--primary); color: var(--primary); }
#week-label { font-weight: 700; min-width: 150px; }
.week-nav .week-today { margin-left: auto; font-weight: 600; }

.plan-days { display: flex; flex-direction: column; gap: 8px; }
.day-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.day-card.today { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.day-head { display: flex; flex-direction: column; min-width: 96px; }
.day-name { font-weight: 700; }
.day-date { color: var(--text-muted); font-size: 0.8rem; }
.meal-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-dark);
    border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 0.88rem; font-weight: 600;
}
.meal-chip .srv { font-weight: 400; opacity: 0.8; font-size: 0.8rem; }
.chip-remove { border: 0; background: transparent; color: inherit; opacity: 0.6; border-radius: 50%; padding: 0 5px; font-size: 0.85rem; }
.chip-remove:hover { opacity: 1; }
.add-meal {
    border: 1px dashed var(--border-input); background: transparent; color: var(--text-light);
    border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; font-weight: 600; margin-left: auto;
}
.add-meal:hover { border-color: var(--primary); color: var(--primary); }

.recipe-lib { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 18px; }
.lib-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lib-head .side-heading { margin: 0; }
.lib-head > button { border: 1px solid var(--border); background: var(--card-bg); color: var(--text); border-radius: 9px; padding: 6px 12px; font-weight: 600; }
.lib-head > button:hover { border-color: var(--primary); color: var(--primary); }
.recipe-list { display: flex; flex-direction: column; gap: 6px; }
.recipe-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px;
}
.recipe-title { font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.recipe-sub { color: var(--text-muted); font-size: 0.8rem; }

/* ── Statistik ────────────────────────────────────────────────────────── */
.range-toggle { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 9px; padding: 3px; }
.range-toggle button { border: 0; background: transparent; color: var(--text-light); border-radius: 7px; padding: 5px 10px; font-weight: 600; font-size: 0.85rem; }
.range-toggle button.active { background: var(--card-bg); color: var(--text); box-shadow: 0 1px 4px var(--shadow); }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.stat-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
    padding: 16px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
}
.stat-num { font-size: 1.5rem; font-weight: 800; }
.stat-card.saved .stat-num { color: var(--primary-dark); }
.stat-label { color: var(--text-muted); font-size: 0.82rem; }

.stat-section { margin-bottom: 22px; }
.stat-section .side-heading { padding: 0; margin: 0 0 8px; }
.rank-row {
    position: relative; display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px;
    background: var(--card-bg); overflow: hidden;
}
.rank-bar { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--primary) 14%, transparent); z-index: 0; }
.rank-name, .rank-val, .rank-spent { position: relative; z-index: 1; }
.rank-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.rank-val { color: var(--text-light); font-size: 0.85rem; white-space: nowrap; }
.rank-spent { font-weight: 700; white-space: nowrap; }
.recent-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--border); }
.recent-row:last-child { border-bottom: 0; }
.recent-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.recent-date { color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; }

/* ── Dialogs (Rezept anlegen / wählen) ────────────────────────────────── */
.dlg {
    border: 1px solid var(--border); border-radius: 16px; background: var(--card-bg); color: var(--text);
    padding: 24px; width: min(460px, 92vw); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.dlg::backdrop { background: rgba(0, 0, 0, 0.4); }
.dlg h3 { margin: 0 0 16px; font-size: 1.2rem; }
.dlg-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-light); margin: 12px 0 4px; }
.dlg-form input, .dlg-form textarea {
    width: 100%; padding: 10px 12px; border-radius: 10px; font: inherit;
    border: 1px solid var(--border-input); background: var(--input-bg); color: var(--text); resize: vertical;
}
.dlg-form input:focus, .dlg-form textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.url-import { display: flex; gap: 8px; }
.url-import input { flex: 1; }
.url-import button { border: 1px solid var(--border-input); background: var(--bg-soft); color: var(--text); border-radius: 10px; padding: 0 14px; font-weight: 600; white-space: nowrap; }
.url-import button:hover { border-color: var(--primary); color: var(--primary); }
.url-import button:disabled { opacity: 0.6; cursor: wait; }
.dlg-msg { font-size: 0.85rem; margin: 8px 0 0; color: var(--text-light); }
.dlg-msg.error { color: var(--danger); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 20px 0 0; padding: 0; }
.dlg-actions button { border: 1px solid var(--border); background: var(--card-bg); color: var(--text); border-radius: 10px; padding: 10px 16px; font-weight: 600; }
.dlg-actions .btn-primary { width: auto; margin: 0; border: 0; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.pick-item {
    display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left;
    border: 1px solid var(--border); background: var(--card-bg); color: var(--text);
    border-radius: 10px; padding: 10px 12px; font-weight: 600;
}
.pick-item:hover { border-color: var(--primary); background: var(--bg-soft); }

/* ── Store grouping (Nach Geschäft) + settings ────────────────────────── */
.head-actions button.active { background: var(--primary-light); color: var(--primary-dark); border-color: transparent; }
.store-section { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; border-radius: var(--r-lg); }
.store-section.drop-store { outline: 2px dashed var(--primary); outline-offset: 4px; }
.store-head { display: flex; align-items: center; gap: 8px; margin: 2px; }
.store-name { font-weight: 800; font-size: 0.95rem; }
.store-count { font-size: 0.72rem; font-weight: 700; color: var(--text-light); background: #F3F4F6; border-radius: var(--r-full); padding: 1px 8px; }

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; }
.setting-row small { color: var(--text-muted); }
.setting-row input[type="checkbox"], .store-check input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.setting-sub { margin: 16px 0 2px; font-size: 1rem; }
.store-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; max-height: 42vh; overflow-y: auto; margin-top: 8px; }
.store-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; padding: 5px 0; cursor: pointer; }

/* ── Sparcheck dialog ─────────────────────────────────────────────────── */
.sparcheck-stores { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; }
.sparcheck-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; background: var(--card-bg); }
.sc-head { display: flex; align-items: center; gap: 8px; }
.sc-medal { font-size: 1.1rem; }
.sc-store { font-weight: 800; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sc-cover { font-size: 0.75rem; font-weight: 700; color: var(--text-light); background: #F3F4F6; border-radius: var(--r-full); padding: 1px 8px; white-space: nowrap; }
.sc-totals { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; }
.sc-total { font-size: 1.2rem; font-weight: 800; }
.sc-saved { font-size: 0.85rem; font-weight: 700; color: var(--primary-dark); }
.sc-lines { margin: 4px 0; }
.sc-lines summary { cursor: pointer; color: var(--text-light); font-size: 0.85rem; }
.sc-line { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; padding: 3px 0; }
.sc-line-name { overflow-wrap: anywhere; }
.sc-line-price { font-weight: 700; white-space: nowrap; color: var(--primary-dark); }
.sc-apply { width: 100%; margin-top: 8px; border: 0; background: var(--primary); color: #fff; border-radius: var(--r-md); padding: 9px; font-weight: 700; }
.sc-apply:hover { background: var(--primary-dark); }

/* ── Barcode dialog ───────────────────────────────────────────────────── */
.add-scan { border: 1px solid var(--border-input); background: var(--card-bg); border-radius: var(--r-md); padding: 0 14px; font-size: 1.15rem; }
.add-scan:hover { border-color: var(--primary); }
#bc-video { width: 100%; max-height: 40vh; border-radius: var(--r-md); background: #000; object-fit: cover; margin-bottom: 8px; }
.bc-found { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: 26vh; overflow-y: auto; }
.bc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.9rem; padding: 7px 0; border-bottom: 1px solid var(--border); }
.bc-row:last-child { border-bottom: 0; }
.bc-add { border: 1px solid var(--border); background: var(--card-bg); color: var(--text); border-radius: var(--r-sm); padding: 4px 9px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.bc-add:hover { border-color: var(--primary); color: var(--primary); }

/* ── Receipt dialog ───────────────────────────────────────────────────── */
#rc-review > label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-light); margin: 12px 0 4px; }
#rc-store, #rc-total { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-input); background: var(--input-bg); color: var(--text); }
#rc-store:focus, #rc-total:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.rc-items { display: flex; flex-direction: column; gap: 6px; max-height: 34vh; overflow-y: auto; margin-top: 4px; }
.rc-item { display: flex; align-items: center; gap: 8px; }
.rc-item-name { flex: 1; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--border-input); background: var(--input-bg); color: var(--text); }
.rc-item-name:focus { outline: 2px solid var(--primary); outline-offset: -1px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--border); }
    .main { padding: 20px 16px 50px; }
    .stat-cards { grid-template-columns: 1fr; }
    .day-card { align-items: flex-start; }
    .add-meal { margin-left: 0; }
}
