/* ─── Variables ────────────────────────────────────────────────── */
:root {
    --bg:           #F8F9FA;
    --surface:      #FFFFFF;
    --surface-2:    #F1F3F5;
    --border:       #E9ECEF;
    --accent:       #2ECC71;
    --accent-dark:  #27AE60;
    --text:         #1A1A2E;
    --text-muted:   #6C757D;
    --danger:       #E74C3C;
    --danger-dark:  #C0392B;
    --warning:      #F39C12;
    --info:         #3498DB;
    --sidebar-w:    240px;
    --radius:       12px;
    --shadow:       0 2px 8px rgba(0,0,0,0.07);
    --shadow-lg:    0 8px 24px rgba(0,0,0,0.12);
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
img { max-width: 100%; }

/* ─── Layout ─────────────────────────────────────────────────────── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.sidebar {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}
.brand-icon { font-size: 1.5rem; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--text); }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
}
.nav-link.active {
    background: rgba(46,204,113,0.08);
    color: var(--accent-dark);
    border-left-color: var(--accent);
    font-weight: 600;
}
.nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }

/* ─── Main Content ───────────────────────────────────────────────── */
.main-content {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
}
.page-inner {
    padding: 32px;
    max-width: 1200px;
    width: 100%;
}

/* ─── Page Header ────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}
.page-title { font-size: 1.75rem; font-weight: 700; color: var(--text); }
.page-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 2px; }

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.card-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}
.card-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Grid layouts ───────────────────────────────────────────────── */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* ─── Progress Bars ──────────────────────────────────────────────── */
.progress-wrap { margin-top: 12px; }
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.progress-bar-bg {
    background: var(--surface-2);
    border-radius: 99px;
    height: 10px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--accent);
    transition: width 0.6s ease, background 0.3s;
    min-width: 0;
}
.progress-bar-fill.over { background: var(--warning); }
.progress-bar-fill.danger { background: var(--danger); }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: var(--danger-dark); }
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 6px 10px;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 0.82rem; }
.btn-icon { padding: 6px 8px; border-radius: 6px; font-size: 1rem; }

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46,204,113,0.15);
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C757D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ─── Tabs ───────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}
.tab-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
}
.tab-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Badges ─────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-low      { background: rgba(52,152,219,0.12); color: #2980b9; }
.badge-moderate { background: rgba(243,156,18,0.12); color: #d68910; }
.badge-high     { background: rgba(231,76,60,0.12);  color: #c0392b; }
.badge-green    { background: rgba(46,204,113,0.12); color: var(--accent-dark); }

/* ─── Table ──────────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }

/* ─── Meal Sections ──────────────────────────────────────────────── */
.meal-section { margin-bottom: 24px; }
.meal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface-2);
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--border);
}
.meal-title {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.meal-total { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.meal-body {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    background: var(--surface);
}
.food-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}
.food-entry:last-child { border-bottom: none; }
.food-entry-name { font-weight: 500; flex: 1; }
.food-entry-macros { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.food-entry-cal { font-weight: 700; font-size: 0.95rem; white-space: nowrap; min-width: 60px; text-align: right; }

.empty-state {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ─── Exercise Entries ───────────────────────────────────────────── */
.exercise-entry {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.exercise-entry:last-child { border-bottom: none; }
.exercise-icon { font-size: 1.6rem; width: 40px; text-align: center; }
.exercise-info { flex: 1; }
.exercise-name { font-weight: 600; }
.exercise-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.exercise-cal { font-weight: 700; font-size: 1rem; white-space: nowrap; }

/* ─── Recipe Cards ───────────────────────────────────────────────── */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.recipe-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.recipe-card-title { font-size: 1.05rem; font-weight: 700; }
.recipe-card-desc { font-size: 0.83rem; color: var(--text-muted); }
.recipe-macros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--surface-2);
    border-radius: 8px;
    padding: 10px;
}
.macro-item { text-align: center; }
.macro-value { font-weight: 700; font-size: 0.95rem; }
.macro-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.recipe-card-actions { display: flex; gap: 8px; margin-top: auto; }

/* ─── Ingredient Row ─────────────────────────────────────────────── */
.ingredient-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr auto;
    gap: 6px;
    align-items: end;
    margin-bottom: 8px;
}
.ingredient-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr auto;
    gap: 6px;
    margin-bottom: 4px;
}
.ingredient-header span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    padding: 0 2px;
}

/* ─── Date Nav ───────────────────────────────────────────────────── */
.date-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.date-nav-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 1rem;
    color: var(--text);
    transition: background 0.15s;
}
.date-nav-btn:hover { background: var(--surface-2); }
.date-nav-btn-disabled { opacity: 0.35; pointer-events: none; }
.date-label {
    font-size: 1rem;
    font-weight: 600;
    min-width: 140px;
    text-align: center;
}

/* ─── Modal ──────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modal-in 0.2s ease;
}
@keyframes modal-in {
    from { transform: translateY(-16px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-header {
    padding: 24px 24px 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.modal-body, #modal-content { padding: 20px 24px 24px; }
.modal-header { padding-right: 56px; }

/* ─── Summary Row ────────────────────────────────────────────────── */
.summary-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}
.summary-cell {
    background: var(--surface);
    padding: 14px;
    text-align: center;
}
.summary-cell-val { font-size: 1.2rem; font-weight: 700; }
.summary-cell-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }

/* ─── Toast ──────────────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toast-in 0.2s ease;
    color: #fff;
}
.toast-success { background: var(--accent-dark); }
.toast-error   { background: var(--danger); }
@keyframes toast-in {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Misc helpers ───────────────────────────────────────────────── */
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-dark); }
.text-danger { color: var(--danger); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ─── Ingredient Autocomplete ────────────────────────────────────── */
.autocomplete-wrap { position: relative; }
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border: 1.5px solid var(--accent);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    max-height: 220px;
    overflow-y: auto;
}
.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.autocomplete-item:hover, .autocomplete-item.focused {
    background: rgba(46,204,113,0.08);
}
.autocomplete-item-name { font-weight: 500; }
.autocomplete-item-meta { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.autocomplete-empty { padding: 10px 12px; font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
.ing-autofilled { background: rgba(46,204,113,0.06) !important; }
.ing-db-badge {
    font-size: 0.65rem;
    background: rgba(46,204,113,0.15);
    color: var(--accent-dark);
    border-radius: 4px;
    padding: 1px 5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* ─── Ingredient log rows (food-log by-ingredients tab) ──────────── */
.ing-log-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr auto;
    gap: 8px;
    align-items: end;
    margin-bottom: 8px;
}
.ing-log-totals {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin: 12px 0;
}

/* ─── Weight Chart Container ─────────────────────────────────────── */
.chart-container {
    position: relative;
    height: 280px;
    margin-bottom: 24px;
}

/* ─── Goals Form ─────────────────────────────────────────────────── */
.goals-form { max-width: 640px; }
.goals-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ─── Dashboard specific ─────────────────────────────────────────── */
.dash-hero { }
.dash-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.dash-net-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.05;
    margin-top: 4px;
}
.dash-hero-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface-2);
    border-radius: 12px;
    padding: 16px 24px;
}
.dash-stat { text-align: center; }
.dash-stat-val { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.dash-stat-lbl { display: block; font-size: 0.72rem; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.dash-stat-sep { font-size: 1.5rem; color: var(--text-muted); font-weight: 300; }

.dash-secondary-strip {
    display: flex;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.dash-sec-item {
    flex: 1;
    background: var(--surface);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dash-sec-lbl { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.dash-sec-val { font-size: 0.95rem; font-weight: 700; }
.dash-sec-val small { font-size: 0.75rem; font-weight: 500; }

/* ─── Responsive ─────────────────────────────────────────────────── */

/* ── Tablet / small laptop (769px – 1100px): icon-only sidebar ── */
@media (min-width: 769px) and (max-width: 1100px) {
    :root { --sidebar-w: 68px; }

    .sidebar-brand { justify-content: center; padding: 20px 0; }
    .brand-name { display: none; }
    .nav-link {
        justify-content: center;
        padding: 14px 0;
        border-left: none;
        border-right: 3px solid transparent;
    }
    .nav-link:hover { border-left-color: transparent; border-right-color: var(--border); }
    .nav-link.active {
        border-left-color: transparent;
        border-right-color: var(--accent);
    }
    .nav-label { display: none; }
    .nav-icon { font-size: 1.25rem; width: auto; }

    .page-inner { padding: 24px 20px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .summary-row { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile (≤768px): horizontal top nav ───────────────────────── */
/* "More" dropdown — hidden on desktop */
.nav-more { display: none; }

@media (max-width: 768px) {
    .app-shell { flex-direction: column; }

    .sidebar {
        position: fixed;
        top: auto;
        bottom: 0; left: 0; right: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: none;
        background: var(--surface);
        z-index: 50;
        overflow: visible;
    }
    .sidebar-brand { display: none; }
    .sidebar-nav {
        flex-direction: row;
        padding: 0;
        width: 100%;
        justify-content: space-around;
        overflow: visible;
    }
    .nav-link {
        flex: 1;
        flex-direction: column;
        gap: 3px;
        padding: 10px 6px;
        border-left: none;
        border-bottom: none;
        border-top: 3px solid transparent;
        white-space: nowrap;
        font-size: 0.75rem;
        background: none;
    }
    .nav-link.active {
        border-left-color: transparent;
        border-top-color: var(--accent);
    }
    .nav-icon { font-size: 1.3rem; width: auto; }
    .nav-label { display: block; font-size: 0.68rem; }

    /* Hide overflow nav items in the bottom bar (they live in the dropdown) */
    .nav-overflow { display: none; }

    /* "More" button + dropdown */
    .nav-more { display: block; flex: 1; position: relative; }
    .nav-more-btn {
        width: 100%;
        background: none; border: none; cursor: pointer;
        color: inherit;
    }
    .nav-more-dropdown {
        display: none;
        position: absolute;
        bottom: calc(100% + 6px);
        right: 8px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
        min-width: 180px;
        padding: 6px;
        z-index: 60;
    }
    .nav-more.open .nav-more-dropdown { display: block; }
    .nav-more-dropdown a {
        display: flex; align-items: center; gap: 10px;
        padding: 10px 12px; border-radius: 6px;
        font-size: 0.9rem; color: inherit; text-decoration: none;
    }
    .nav-more-dropdown a:hover { background: var(--surface-2); }
    .nav-more-dropdown a.active { background: var(--surface-2); color: var(--accent); font-weight: 600; }

    /* Leave room above the fixed bottom bar */
    .main-content { padding-bottom: 80px; }

    .page-inner { padding: 16px; }
    .card { padding: 16px; }
    .card-value { font-size: 1.6rem; }

    .page-header { flex-direction: column; align-items: flex-start; margin-bottom: 20px; gap: 12px; }
    .page-title { font-size: 1.4rem; }

    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
    .grid-2 { grid-template-columns: 1fr; gap: 12px; }

    .summary-row { grid-template-columns: repeat(3, 1fr); }

    .ingredient-row { grid-template-columns: 1fr 1fr; }
    .ingredient-header { display: none; }

    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-box { border-radius: 16px 16px 0 0; max-height: 92vh; }

    .recipe-card-actions { flex-wrap: wrap; gap: 6px; }
    .food-entry-macros { display: none; }

    #toast-container { bottom: 16px; right: 12px; left: 12px; }
    .toast { text-align: center; }

    .data-table th:nth-child(n+4),
    .data-table td:nth-child(n+4) { display: none; }
}
