/* /Layout/MainLayout.razor.rz.scp.css */
/* ==========================================================================
   DIETOWNIK — MAIN LAYOUT
   ========================================================================== */

.page[b-6sgh9nkbu8] {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-text-primary);
}

.main-content[b-6sgh9nkbu8] {
    flex: 1 1 auto;
    min-height: 100%;
    display: flex;
    width: 100%;
}

.content[b-6sgh9nkbu8] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

@supports (padding: max(0px)) {
    .content[b-6sgh9nkbu8] {
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: 0;
    }
}

/* --------------------------------------------------------------------------
   DESKTOP / TABLET
   -------------------------------------------------------------------------- */
@media (min-width: 641px) {
    .content[b-6sgh9nkbu8] {
        padding: 1.5rem;
    }

    @supports (padding: max(0px)) {
        .content[b-6sgh9nkbu8] {
            padding-top: max(1.5rem, env(safe-area-inset-top));
            padding-left: max(1.5rem, env(safe-area-inset-left));
            padding-right: max(1.5rem, env(safe-area-inset-right));
            padding-bottom: 0;
        }
    }
}

/* --------------------------------------------------------------------------
   MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 640.98px) {
    .content[b-6sgh9nkbu8] {
        padding: 0.65rem;
    }

    @supports (padding: max(0px)) {
        .content[b-6sgh9nkbu8] {
            padding-top: max(0.65rem, env(safe-area-inset-top));
            padding-left: max(0.65rem, env(safe-area-inset-left));
            padding-right: max(0.65rem, env(safe-area-inset-right));
            padding-bottom: 0;
        }
    }
}

/* --------------------------------------------------------------------------
   IPHONE / SAFE AREA
   -------------------------------------------------------------------------- */
@supports (padding: max(0px)) {
    .page[b-6sgh9nkbu8] {
        min-height: 100dvh;
    }
}
/* /Pages/Home.razor.rz.scp.css */
/* ===================================================================
   HOME – STYLE SPECYFICZNE DLA STRONY GŁÓWNEJ
   =================================================================== */

.home-page[b-v7jhpfr0py] {
    width: 100%;
    max-width: 680px;
    min-height: 100%;
    margin: 0 auto;
    padding: 1rem 0.75rem 0.2rem;
    font-family: var(--font-family);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.home-loading-container[b-v7jhpfr0py] {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
}

/* ============================================================
   HEADER – STAŁA WYSOKOŚĆ (NIE SKACZE)
   ============================================================ */
.home-header[b-v7jhpfr0py] {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: 1.25rem 1.25rem 1.1rem;
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, #ffffff 0%, #f9fcfa 60%, #f1f8f3 100%);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 166px;
}

    .home-header[b-v7jhpfr0py]::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        right: -80px;
        top: -100px;
        border-radius: 50%;
        background: var(--color-green-bg);
        pointer-events: none;
    }

    .home-header[b-v7jhpfr0py]::after {
        content: "";
        position: absolute;
        left: 12%;
        right: 12%;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(37, 166, 106, 0.18), transparent);
    }

.home-header-top[b-v7jhpfr0py] {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

/* Kontener na przycisk "Wróć do dzisiaj" – ZAWSZE istnieje */
.btn-today-pill-wrapper[b-v7jhpfr0py] {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.btn-today-pill-wrapper.has-button[b-v7jhpfr0py] {
    align-items: flex-end;
    min-height: 42px;
    margin-top: 0.22rem;
    margin-bottom: 0;
}

.btn-today-pill-wrapper.is-empty[b-v7jhpfr0py] {
    min-height: 42px;
    margin-top: 0.22rem;
    margin-bottom: 0;
}

.btn-today-pill[b-v7jhpfr0py] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.28rem 0.92rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #f2fbf6 0%, #e7f7ee 100%);
    border: 1px solid #bfe4cd;
    color: #1f7f50;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.72px;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(31, 127, 80, 0.14);
    transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .btn-today-pill:hover[b-v7jhpfr0py] {
        background: linear-gradient(180deg, #e9f7ef 0%, #ddf1e6 100%);
        border-color: #a9d8bb;
        color: #156840;
        box-shadow: 0 4px 12px rgba(31, 127, 80, 0.18);
        transform: translateY(-1px);
    }

    .btn-today-pill:active[b-v7jhpfr0py] {
        transform: scale(0.98);
    }

/* APP BRAND – wariant 5 (minimalistyczny) */
.app-brand[b-v7jhpfr0py] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: max-content;
    z-index: 3;
}

.brand-icon[b-v7jhpfr0py] {
    display: none;
}

.brand-title[b-v7jhpfr0py] {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
    text-transform: lowercase;
}

    .brand-title[b-v7jhpfr0py]::before {
        content: "✦ ";
        color: var(--color-green);
        font-weight: 400;
    }

.cloud-status-badge[b-v7jhpfr0py] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    background: #f5f8f6;
    border: 1px solid #e5ebe7;
    color: #718078;
    font-size: 0.68rem;
    font-weight: var(--font-weight-bold);
}

.status-dot[b-v7jhpfr0py] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-online .status-dot[b-v7jhpfr0py] {
    background: #32b875;
    box-shadow: 0 0 0 3px rgba(50, 184, 117, 0.11);
}

.status-offline .status-dot[b-v7jhpfr0py] {
    background: #f0ae45;
    box-shadow: 0 0 0 3px rgba(240, 174, 69, 0.12);
}

.btn-icon-profile[b-v7jhpfr0py] {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-btn);
    background: var(--color-surface);
    border: 1px solid #e3e9e5;
    color: #425048;
    font-size: 0.77rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(31, 55, 42, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .btn-icon-profile:hover[b-v7jhpfr0py] {
        background: #f9fcfa;
        border-color: #cddbd2;
        box-shadow: 0 5px 14px rgba(31, 55, 42, 0.08);
        transform: translateY(-1px);
    }

    .btn-icon-profile:active[b-v7jhpfr0py] {
        transform: scale(0.97);
    }

/* DATE PICKER */
.date-picker-bar[b-v7jhpfr0py] {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem;
    border-radius: 15px;
    background: #f5f8f6;
    border: 1px solid #e5ebe7;
    box-shadow: inset 0 1px 3px rgba(40, 60, 48, 0.035);
    flex-shrink: 0;
}

.btn-date-nav[b-v7jhpfr0py] {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-btn);
    background: var(--color-surface);
    border: 1px solid #e5ebe8;
    color: #68756d;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(31, 55, 42, 0.035);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .btn-date-nav:hover[b-v7jhpfr0py] {
        background: #edf8f1;
        border-color: #cbe5d5;
        color: var(--color-green);
        transform: translateY(-1px);
    }

    .btn-date-nav:active[b-v7jhpfr0py] {
        transform: scale(0.94);
    }

.date-display-wrapper[b-v7jhpfr0py] {
    position: relative;
    min-width: 0;
    padding: 0.15rem 0.3rem;
    text-align: center;
    cursor: pointer;
}

.date-text[b-v7jhpfr0py] {
    display: block;
    font-size: 0.94rem;
    font-weight: 700;
    color: #4e5954;
    letter-spacing: -0.15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hidden-native-date[b-v7jhpfr0py] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.hidden-native-date[b-v7jhpfr0py]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.hidden-native-date:focus-visible ~ .date-text[b-v7jhpfr0py],
.date-display-wrapper:focus-within .date-text[b-v7jhpfr0py] {
    color: var(--color-green);
}

.date-display-wrapper:focus-within[b-v7jhpfr0py] {
    background: rgba(37, 166, 106, 0.06);
    border-radius: 12px;
}

.hidden-native-date[b-v7jhpfr0py]::-webkit-inner-spin-button,
.hidden-native-date[b-v7jhpfr0py]::-webkit-clear-button {
    display: none;
}

.hidden-native-date[b-v7jhpfr0py]::-webkit-datetime-edit {
    color: transparent;
}

.hidden-native-date[b-v7jhpfr0py]::-webkit-datetime-edit-fields-wrapper {
    color: transparent;
}

.hidden-native-date[b-v7jhpfr0py]::-webkit-datetime-edit-text,
.hidden-native-date[b-v7jhpfr0py]::-webkit-datetime-edit-month-field,
.hidden-native-date[b-v7jhpfr0py]::-webkit-datetime-edit-day-field,
.hidden-native-date[b-v7jhpfr0py]::-webkit-datetime-edit-year-field {
    color: transparent;
}

.date-display-wrapper[b-v7jhpfr0py] {
    position: relative;
    min-width: 0;
    padding: 0.15rem 0.3rem;
    text-align: center;
    cursor: pointer;
}

.date-text[b-v7jhpfr0py] {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #29372f;
    font-size: 0.94rem;
    font-weight: 750;
    letter-spacing: -0.2px;
}

.hidden-native-date[b-v7jhpfr0py] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* KARTY */
.home-card[b-v7jhpfr0py] {
    position: relative;
    margin-bottom: 0.9rem;
    padding: 1.35rem 1.3rem;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

    .home-card:hover[b-v7jhpfr0py] {
        border-color: #dde6e0;
        box-shadow: var(--shadow-hover);
    }

    .home-card:has(.calories-main-value)[b-v7jhpfr0py] {
        overflow: hidden;
        background: radial-gradient(circle at 100% 0%, rgba(47, 166, 106, 0.10), transparent 31%), linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #f4faf6 100%);
    }

        .home-card:has(.calories-main-value)[b-v7jhpfr0py]::after {
            content: "";
            position: absolute;
            width: 120px;
            height: 120px;
            right: -65px;
            bottom: -65px;
            border-radius: 50%;
            background: rgba(37, 166, 106, 0.045);
            pointer-events: none;
        }

.recipes-promo-card[b-v7jhpfr0py] {
    overflow: hidden;
    padding: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbf8 100%);
}

.recipes-promo-button[b-v7jhpfr0py] {
    width: 100%;
    display: block;
    padding: 1.1rem 1.15rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.recipes-promo-card[b-v7jhpfr0py]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(37, 166, 106, 0.12), transparent 38%);
    pointer-events: none;
}

.recipes-promo-content[b-v7jhpfr0py] {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.recipes-promo-topline[b-v7jhpfr0py] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.recipes-promo-topline-main[b-v7jhpfr0py] {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
}

.recipes-promo-icon[b-v7jhpfr0py] {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #2ebb76, #1d8f58);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(30, 142, 86, 0.24);
}

.recipes-promo-title[b-v7jhpfr0py] {
    color: #18251e;
    font-size: 1.18rem;
    font-weight: 860;
    letter-spacing: -0.25px;
    line-height: 1.1;
}

.recipes-promo-text[b-v7jhpfr0py] {
    color: #55645d;
    font-size: 0.94rem;
    line-height: 1.42;
}

.recipes-promo-action[b-v7jhpfr0py] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: #eef8f2;
    border: 1px solid #d4e7da;
    color: #1e7b4d;
    font-weight: 800;
    font-size: 0.8rem;
    white-space: nowrap;
}

.recipes-promo-button:hover .recipes-promo-action[b-v7jhpfr0py] {
    background: #e5f4eb;
    border-color: #c9e2d4;
}

.recipes-promo-button:active[b-v7jhpfr0py] {
    transform: scale(0.998);
}

.recipes-promo-button:focus-visible[b-v7jhpfr0py] {
    outline: none;
}

.recipes-promo-card:focus-within[b-v7jhpfr0py] {
    box-shadow: var(--shadow-hover);
    border-color: #cfe4d6;
}


.hero-title[b-v7jhpfr0py] {
    color: #87948c;
    font-size: 0.67rem;
    font-weight: var(--font-weight-black);
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.hero-subtitle[b-v7jhpfr0py] {
    margin-top: 0.15rem;
    color: var(--color-text-secondary);
    font-size: 0.81rem;
    font-weight: var(--font-weight-normal);
}

    .hero-subtitle strong[b-v7jhpfr0py] {
        color: var(--color-green);
        font-weight: 750;
    }

.calories-main-value[b-v7jhpfr0py] {
    margin: 0.38rem 0 0;
    color: #18251e;
    font-size: clamp(2.75rem, 9vw, 3.45rem);
    line-height: 1;
    font-weight: 850;
    letter-spacing: -2.5px;
    font-variant-numeric: tabular-nums;
}

.calories-goal-value[b-v7jhpfr0py] {
    margin-left: 0.3rem;
    color: #9aa59f;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.divider-line[b-v7jhpfr0py] {
    margin: 1.15rem 0;
    border: 0;
    border-top: 1px solid #edf0ee;
}

/* MAKRO */
.hero-macros-block[b-v7jhpfr0py] {
    display: flex;
    flex-direction: column;
    gap: 0.82rem;
}

.macro-header[b-v7jhpfr0py] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.79rem;
}

.macro-name[b-v7jhpfr0py] {
    color: #35423a;
    font-weight: var(--font-weight-bold);
}

.macro-val[b-v7jhpfr0py] {
    color: #8a968f;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.macro-protein-text[b-v7jhpfr0py] {
    color: #2ba56a;
}

.macro-fats-text[b-v7jhpfr0py] {
    color: #e39b27;
}

.macro-carbs-text[b-v7jhpfr0py] {
    color: #319dca;
}

/* PROGRESS */
.home-progress-main[b-v7jhpfr0py],
.home-progress-thin[b-v7jhpfr0py],
.home-water-progress[b-v7jhpfr0py] {
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: #edf1ee;
    border: 1px solid #e8ece9;
    box-shadow: inset 0 1px 2px rgba(30, 50, 39, 0.045);
}

.home-progress-main[b-v7jhpfr0py] {
    height: 10px;
}

.home-progress-thin[b-v7jhpfr0py] {
    height: 7px;
}

.progress-text-inside[b-v7jhpfr0py] {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0.45rem;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: var(--font-weight-black);
}

.bg-primary-gradient[b-v7jhpfr0py] {
    background: linear-gradient(90deg, var(--color-green), #42bd7f) !important;
    box-shadow: 0 1px 5px rgba(37, 166, 106, 0.18);
}

.bg-macro-protein[b-v7jhpfr0py] {
    background: linear-gradient(90deg, #22a466, #4bc985) !important;
}

.bg-macro-fats[b-v7jhpfr0py] {
    background: linear-gradient(90deg, #e09a22, #f3ba50) !important;
}

.bg-macro-carbs[b-v7jhpfr0py] {
    background: linear-gradient(90deg, #3199c5, #55b9df) !important;
}

/* LISTA POSIŁKÓW */
.home-meal-list[b-v7jhpfr0py] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

/* KARTA POSIŁKU */
.meal-card[b-v7jhpfr0py] {
    overflow: hidden;
    border-radius: var(--radius-card-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

    .meal-card:hover[b-v7jhpfr0py] {
        border-color: #dce5df;
        box-shadow: var(--shadow-hover);
    }

.meal-card-header[b-v7jhpfr0py] {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.85rem 1.05rem;
}

.meal-icon[b-v7jhpfr0py] {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-btn);
    background: #f3f7f4;
    border: 1px solid #e6ece8;
    font-size: 1.1rem;
}

.meal-title[b-v7jhpfr0py] {
    margin: 0;
    color: #29362f;
    font-size: 0.96rem;
    font-weight: 750;
    letter-spacing: -0.2px;
}

.meal-badge[b-v7jhpfr0py] {
    padding: 0.3rem 0.55rem;
    border-radius: 9px;
    background: #f5f7f6;
    border: 1px solid #e9eeeb;
    color: #7b8780;
    font-size: 0.72rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.btn-quick-add[b-v7jhpfr0py] {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    border-radius: var(--radius-btn);
    background: #eaf7ef;
    border: 1px solid #d4ebdc;
    color: #24945d;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .btn-quick-add:hover[b-v7jhpfr0py] {
        background: #dff3e7;
        border-color: #bfdfca;
        color: #147a4b;
        transform: translateY(-1px);
    }

    .btn-quick-add:active[b-v7jhpfr0py] {
        transform: scale(0.92);
    }

.btn-meal-copy[b-v7jhpfr0py] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid #d9e7dd;
    color: #4d6a58;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.28px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn-meal-copy:hover[b-v7jhpfr0py] {
        background: #eef8f2;
        border-color: #bfdcc9;
        color: #1f7f50;
        transform: translateY(-1px);
    }

    .btn-meal-copy:active[b-v7jhpfr0py] {
        transform: scale(0.96);
    }

.meal-card-actions[b-v7jhpfr0py] {
    flex-wrap: nowrap;
}

.meal-copy-popover[b-v7jhpfr0py] {
    margin: 0 1.05rem 0.8rem;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdfb 0%, #f4faf6 100%);
    border: 1px solid #dce8e0;
    box-shadow: 0 8px 22px rgba(38, 58, 45, 0.08);
}

.meal-copy-date-bar[b-v7jhpfr0py] {
    margin-bottom: 0.65rem;
}

.meal-copy-popover-header[b-v7jhpfr0py] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.meal-copy-popover-subtitle[b-v7jhpfr0py] {
    color: #74837a;
    font-size: 0.72rem;
    font-weight: 700;
}

.meal-copy-date-field[b-v7jhpfr0py] {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    color: #516156;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.28px;
}

.meal-copy-date-field .form-control[b-v7jhpfr0py] {
    min-height: 34px;
    font-size: 0.82rem;
}

/* ELEMENTY POSIŁKÓW */
.meal-item-list[b-v7jhpfr0py] {
    background: #fafcfb;
    border-top: 1px solid #edf1ee;
}

.meal-item[b-v7jhpfr0py] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem;
    padding: 0.78rem 1.05rem !important;
    background: transparent !important;
    border-bottom: 1px solid #eef1ef !important;
    transition: background 0.18s ease !important;
}

    .meal-item:last-child[b-v7jhpfr0py] {
        border-bottom: none !important;
    }

    .meal-item:hover[b-v7jhpfr0py] {
        background: #f5faf7 !important;
    }

.meal-item-info[b-v7jhpfr0py] {
    flex: 1;
    min-width: 0;
}

.meal-item-name[b-v7jhpfr0py] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #39463f !important;
    font-size: 0.84rem;
    font-weight: 650;
    letter-spacing: -0.1px;
}

.meal-item-details[b-v7jhpfr0py] {
    margin-top: 0.12rem;
    color: #89948e !important;
    font-size: 0.73rem;
    font-variant-numeric: tabular-nums;
}

.btn-delete-entry[b-v7jhpfr0py] {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin-left: 0.25rem;
    border-radius: 9px;
    background: transparent;
    border: none;
    color: #aab3ad;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

    .btn-delete-entry:hover[b-v7jhpfr0py] {
        color: #d85e5e;
        background: #fff0f0;
    }

.meal-empty-state[b-v7jhpfr0py] {
    padding: 0.8rem 1.05rem;
    text-align: center;
    background: #fbfcfb;
    border-top: 1px solid #eef1ef;
    color: #98a29c;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

    .meal-empty-state:hover[b-v7jhpfr0py] {
        background: #f1f9f4;
        color: #27965e;
    }

.meal-card-title-group[b-v7jhpfr0py] {
    min-width: 0;
}

.meal-title-wrap[b-v7jhpfr0py] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.meal-time[b-v7jhpfr0py] {
    color: var(--color-text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
}

.sync-key-card[b-v7jhpfr0py] {
    margin-bottom: 1rem;
}

.sync-key-hint[b-v7jhpfr0py] {
    font-size: 0.75rem;
    line-height: 1.35;
}

.meal-plan-editor[b-v7jhpfr0py] {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 0;
}

.meal-plan-editor-header[b-v7jhpfr0py] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.meal-plan-editor-list[b-v7jhpfr0py] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meal-plan-row[b-v7jhpfr0py] {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 0.55rem 0.65rem;
    background: var(--color-surface-soft);
}

.meal-plan-row.is-disabled[b-v7jhpfr0py] {
    opacity: 0.68;
}

.meal-plan-row-main[b-v7jhpfr0py] {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.45fr) auto;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.meal-plan-row-toggle[b-v7jhpfr0py] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.meal-plan-check[b-v7jhpfr0py] {
    margin-top: 0;
    flex: 0 0 auto;
}

.meal-plan-row-title[b-v7jhpfr0py] {
    font-weight: 700;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.meal-plan-name-input[b-v7jhpfr0py],
.meal-plan-time-input[b-v7jhpfr0py] {
    min-width: 0;
    min-height: 34px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.84rem;
}

.meal-plan-time-group[b-v7jhpfr0py] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    justify-content: flex-end;
}

.meal-plan-time-group-popup[b-v7jhpfr0py] {
    position: relative;
}

.meal-plan-time-field[b-v7jhpfr0py] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex: 0 0 auto;
    width: 5.9rem;
    min-height: 34px;
    padding: 0.28rem 0.45rem;
    border: 1px solid var(--color-border);
    border-radius: 11px;
    background: var(--color-surface);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    overflow: hidden;
    cursor: pointer;
    color: var(--color-text-primary);
}

.meal-plan-time-field:disabled[b-v7jhpfr0py] {
    cursor: default;
    opacity: 0.72;
}

.meal-plan-time-display[b-v7jhpfr0py] {
    color: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.meal-plan-time-icon[b-v7jhpfr0py] {
    flex: 0 0 auto;
    font-size: 0.92rem;
    line-height: 1;
    color: var(--color-green-dark);
}

.meal-time-editor-card[b-v7jhpfr0py] {
    margin-top: 0.25rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface-soft);
    box-shadow: var(--shadow-card);
}

.meal-time-editor-popover[b-v7jhpfr0py] {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    width: min(18rem, calc(100vw - 2rem));
    z-index: 25;
}

.meal-time-editor-header[b-v7jhpfr0py] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.meal-time-editor-body[b-v7jhpfr0py] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.meal-time-editor-picker[b-v7jhpfr0py] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.meal-time-editor-label[b-v7jhpfr0py] {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.meal-time-editor-select[b-v7jhpfr0py] {
    min-height: 38px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    border-color: var(--color-border);
    color-scheme: light;
}

.meal-plan-row .form-control:disabled[b-v7jhpfr0py] {
    background: var(--color-surface);
    opacity: 0.72;
}

.meal-plan-row .form-control:disabled[b-v7jhpfr0py] {
    background: var(--color-surface);
    opacity: 0.72;
}

/* WODA */
.water-card[b-v7jhpfr0py] {
    overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(56, 169, 214, 0.10), transparent 33%), linear-gradient(135deg, #ffffff 0%, #f6fbfd 100%);
    border-color: #e0ebef;
}

.water-icon[b-v7jhpfr0py] {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-btn);
    background: #e9f7fc;
    border: 1px solid #d9edf5;
    font-size: 1.1rem;
}

.water-title[b-v7jhpfr0py] {
    color: #2d687f;
    font-size: 0.96rem;
    font-weight: 750;
}

.water-stats[b-v7jhpfr0py] {
    color: #329bc4;
    font-size: 0.82rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.home-water-progress[b-v7jhpfr0py] {
    height: 10px;
}

.bg-water[b-v7jhpfr0py] {
    background: linear-gradient(90deg, #35a8d3, #62c4e5) !important;
    box-shadow: 0 1px 5px rgba(53, 168, 211, 0.20);
}

.water-actions[b-v7jhpfr0py] {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.btn-water-action[b-v7jhpfr0py] {
    flex: 1;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--radius-btn);
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-water-plus[b-v7jhpfr0py] {
    background: linear-gradient(135deg, #42afd6, #2998c4);
    border: 1px solid #2793bd;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(42, 153, 196, 0.16);
}

    .btn-water-plus:hover[b-v7jhpfr0py] {
        background: linear-gradient(135deg, #4db8dc, #2998c4);
        box-shadow: 0 7px 18px rgba(42, 153, 196, 0.23);
    }

    .btn-water-plus:active[b-v7jhpfr0py],
    .btn-water-minus:active[b-v7jhpfr0py] {
        transform: scale(0.96);
    }

.btn-water-minus[b-v7jhpfr0py] {
    background: var(--color-surface);
    border: 1px solid #f0dada;
    color: #d87373;
}

    .btn-water-minus:hover[b-v7jhpfr0py] {
        background: #fff5f5;
        border-color: #e8c5c5;
    }

/* ============================================================
   MODALE
   ============================================================ */
.home-modal-overlay[b-v7jhpfr0py] {
    position: fixed;
    inset: 0;
    z-index: 1060;
    overflow-y: auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left));
    background: rgba(32, 43, 37, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-dialog[b-v7jhpfr0py] {
    width: 100%;
    max-width: 520px !important;
    margin: 0 auto !important;
    pointer-events: none;
    max-height: 90vh !important;
}

.modal-dialog-scrollable[b-v7jhpfr0py] {
    max-height: 100vh !important;
}

.modal-content[b-v7jhpfr0py] {
    pointer-events: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-modal);
    overflow: visible !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-header[b-v7jhpfr0py] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border-soft);
    background: var(--color-surface-soft);
}

    .modal-header .modal-title[b-v7jhpfr0py] {
        font-size: 1.1rem;
        font-weight: var(--font-weight-black);
        letter-spacing: -0.3px;
        color: var(--color-text-primary);
        margin: 0;
    }

    .modal-header .btn-close[b-v7jhpfr0py] {
        background: transparent;
        border: none;
        color: var(--color-text-muted);
        font-size: 1.2rem;
        padding: 0.25rem 0.5rem;
        cursor: pointer;
        transition: color 0.2s ease;
    }

        .modal-header .btn-close:hover[b-v7jhpfr0py] {
            color: var(--color-text-primary);
        }

.modal-body[b-v7jhpfr0py] {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 1.2rem 1.5rem;
    min-height: 520px;
    max-height: 720px;
}

.modal-footer[b-v7jhpfr0py] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--color-border-soft);
    background: var(--color-surface-soft);
}

    .modal-footer .btn[b-v7jhpfr0py] {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

@media (min-width: 992px) {
    .modal-dialog[b-v7jhpfr0py] {
        max-width: 700px !important;
    }
}

/* ============================================================
   PROFILE MODAL – STAŁA WYSOKOŚĆ, BEZ PRZEWIJANIA
   ============================================================ */
.profile-modal-content[b-v7jhpfr0py] {
    border-radius: var(--radius-card);
    max-height: 94vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

    .home-modal-overlay .modal-dialog.moje-okno-interaktywne[b-v7jhpfr0py] {
        width: min(90vw, 470px) !important;
        max-width: 470px !important;
        max-height: 94vh !important;
    }

    .profile-modal-content.moje-okno-interaktywne[b-v7jhpfr0py] {
        max-height: 94vh !important;
    }

    .profile-modal-content .modal-body[b-v7jhpfr0py] {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        max-height: 700px;
        padding: 1.2rem 1.35rem;
    }

    .profile-modal-content .modal-footer[b-v7jhpfr0py] {
        padding: 0.8rem 1.5rem;
        flex-shrink: 0;
    }

        .profile-modal-content .modal-footer .btn[b-v7jhpfr0py] {
            font-size: 0.875rem;
            min-height: 40px;
            padding: 0.5rem 1.2rem;
        }

.moje-okno-interaktywne[b-v7jhpfr0py] {
    animation: fadeInScale-b-v7jhpfr0py 0.2s ease-out forwards;
}

@keyframes fadeInScale-b-v7jhpfr0py {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   ONBOARDING MODAL
   ============================================================ */
.dietownik-modal-overlay[b-v7jhpfr0py] {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(0.7rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.2rem max(1rem, env(safe-area-inset-left));
    background: rgba(32, 43, 37, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: dietownikWelcomeOverlayIn-b-v7jhpfr0py 0.2s ease-out;
}

@supports (height: 100dvh) {
    .dietownik-modal-overlay[b-v7jhpfr0py] {
        min-height: calc(var(--dietownik-vh, 1vh) * 100);
    }
}

.dietownik-welcome-modal[b-v7jhpfr0py] {
    position: relative;
    width: min(100%, 404px);
    max-height: calc((var(--dietownik-vh, 1vh) * 100) - max(0.65rem, env(safe-area-inset-top)) - 1.4rem);
    overflow: hidden;
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
    border: 1px solid #dbe9e1;
    box-shadow: var(--shadow-modal);
    display: flex;
    flex-direction: column;
    animation: dietownikWelcomeModalIn-b-v7jhpfr0py 0.28s cubic-bezier(.2, .8, .2, 1);
}

    .dietownik-welcome-modal[b-v7jhpfr0py]::before,
    .dietownik-welcome-modal[b-v7jhpfr0py]::after {
        display: none;
    }

.dietownik-welcome-logo[b-v7jhpfr0py] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.58rem auto 0.2rem;
}

.dietownik-welcome-brand-icon[b-v7jhpfr0py] {
    font-size: 1.45rem;
    color: var(--color-green);
    font-weight: 400;
    text-shadow: 0 0 18px rgba(76, 219, 149, 0.18);
}

.dietownik-welcome-brand-title[b-v7jhpfr0py] {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
    text-transform: lowercase;
}

.dietownik-welcome-content[b-v7jhpfr0py] {
    position: relative;
    z-index: 1;
    padding: 0 1.1rem 0.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


.dietownik-welcome-content h2[b-v7jhpfr0py] {
    margin: 0 0 0.28rem;
    text-align: center;
    color: #19261f;
    font-size: 1.28rem;
    line-height: 1.12;
    font-weight: 860;
    letter-spacing: -0.6px;
}

.dietownik-welcome-hero[b-v7jhpfr0py] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.dietownik-welcome-hero-copy[b-v7jhpfr0py] {
    min-width: 0;
    position: relative;
    padding: 0.68rem 0.72rem 0.64rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(76, 219, 149, 0.14), rgba(76, 219, 149, 0.05));
    border: 1px solid rgba(76, 219, 149, 0.22);
    box-shadow: 0 7px 18px rgba(35, 126, 80, 0.10);
}

.dietownik-welcome-description[b-v7jhpfr0py] {
    max-width: 340px;
    margin: 0 auto;
    text-align: center;
    color: #6d7a72;
    font-size: 0.76rem;
    line-height: 1.34;
    font-weight: 560;
}

.dietownik-account-info[b-v7jhpfr0py] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.56rem;
    min-width: 0;
    padding: 0.5rem 0.58rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #f4fbf7 0%, #eef8f2 100%);
    border: 1px solid #deece3;
    box-shadow: 0 8px 20px rgba(30, 50, 39, 0.04);
}

.dietownik-info-icon[b-v7jhpfr0py] {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f3faf6 100%);
    border: 1px solid #dce9e0;
    color: #319c67;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(30, 50, 39, 0.06);
}

.dietownik-account-copy[b-v7jhpfr0py] {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.dietownik-account-info strong[b-v7jhpfr0py] {
    display: block;
    margin-bottom: 0.2rem;
    color: #34443b;
    font-size: 0.77rem;
    font-weight: var(--font-weight-black);
}

.dietownik-account-info span[b-v7jhpfr0py] {
    display: block;
    color: #819087;
    font-size: 0.7rem;
    line-height: 1.45;
    font-weight: var(--font-weight-normal);
}

.dietownik-input-group[b-v7jhpfr0py] {
    margin-bottom: 0.64rem;
}

    .dietownik-input-group label[b-v7jhpfr0py] {
        display: block;
        margin-bottom: 0.42rem;
        color: #3a4940;
        font-size: 0.76rem;
        font-weight: var(--font-weight-black);
    }

    .dietownik-input-group input[b-v7jhpfr0py] {
        width: 100%;
        height: 48px;
        box-sizing: border-box;
        padding: 0.7rem 0.9rem;
        border-radius: var(--radius-input);
        background: #ffffff;
        border: 1px solid #cfe1d7;
        color: #203229;
        font-family: inherit;
        font-size: 0.9rem;
        font-weight: 700;
        outline: none;
        box-shadow: inset 0 1px 2px rgba(30, 50, 39, 0.03);
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

        .dietownik-input-group input[b-v7jhpfr0py]::placeholder {
            color: #a7b0aa;
            font-weight: var(--font-weight-normal);
        }

        .dietownik-input-group input:hover[b-v7jhpfr0py] {
            border-color: #cbd9d0;
        }

        .dietownik-input-group input:focus[b-v7jhpfr0py] {
            background: var(--color-surface);
            border-color: #76bf94;
            box-shadow: 0 0 0 3px rgba(37, 166, 106, 0.10);
        }

    .dietownik-input-group small[b-v7jhpfr0py] {
        display: block;
        margin-top: 0.4rem;
        color: #98a39d;
        font-size: 0.65rem;
        line-height: 1.4;
    }

.dietownik-welcome-button[b-v7jhpfr0py] {
    width: 100%;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.62rem 0.9rem;
    border: 1px solid var(--color-green-dark);
    border-radius: var(--radius-input);
    background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
    color: #ffffff;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: var(--font-weight-black);
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

    .dietownik-welcome-button:hover:not(:disabled)[b-v7jhpfr0py] {
        background: linear-gradient(135deg, #2caf70, #1a8f57);
        box-shadow: var(--shadow-btn-hover);
        transform: translateY(-1px);
    }

.dietownik-button-badge[b-v7jhpfr0py] {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.88rem;
    line-height: 1;
    flex-shrink: 0;
}

    .dietownik-welcome-button:active:not(:disabled)[b-v7jhpfr0py] {
        transform: scale(0.97);
    }

    .dietownik-welcome-button:disabled[b-v7jhpfr0py] {
        opacity: 0.45;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }

.dietownik-button-arrow[b-v7jhpfr0py] {
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.dietownik-welcome-button:hover:not(:disabled) .dietownik-button-arrow[b-v7jhpfr0py] {
    transform: translateX(3px);
}

.dietownik-welcome-footer[b-v7jhpfr0py] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    margin-top: 0.48rem;
    color: #98a39d;
    text-align: center;
    font-size: 0.55rem;
    line-height: 1.28;
}

.dietownik-footer-dot[b-v7jhpfr0py] {
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #6fbd8f;
}

@keyframes dietownikWelcomeOverlayIn-b-v7jhpfr0py {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dietownikWelcomeModalIn-b-v7jhpfr0py {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   RESPONSYWNOŚĆ – SMARTFONY I TABLETY
   ============================================================ */

@media (max-width: 768px) and (orientation: portrait) {
    .home-page[b-v7jhpfr0py] {
        max-width: 100%;
        padding: 0.75rem 0.65rem 1rem;
    }

    .home-header[b-v7jhpfr0py] {
        padding: 0.9rem 1rem 0.8rem;
        min-height: 156px;
        border-radius: var(--radius-card-sm);
        margin-bottom: 0.85rem;
    }

    .home-header-top[b-v7jhpfr0py] {
        margin-bottom: 0.7rem;
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .app-brand[b-v7jhpfr0py] {
        gap: 0.4rem;
    }

    .brand-icon[b-v7jhpfr0py] {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .brand-title[b-v7jhpfr0py] {
        font-size: 1.05rem;
        letter-spacing: -0.3px;
    }

    .cloud-status-badge[b-v7jhpfr0py] {
        font-size: 0.55rem;
        padding: 0.2rem 0.5rem;
        gap: 0.3rem;
    }

    .status-dot[b-v7jhpfr0py] {
        width: 5px;
        height: 5px;
    }

    .btn-icon-profile[b-v7jhpfr0py] {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        min-height: 32px;
        gap: 0.2rem;
    }

        .btn-icon-profile span[b-v7jhpfr0py] {
            display: none !important;
        }

    .recipes-promo-button[b-v7jhpfr0py] {
        padding: 0.95rem;
    }

    .recipes-promo-topline[b-v7jhpfr0py] {
        align-items: flex-start;
        gap: 0.6rem;
    }

    .recipes-promo-topline-main[b-v7jhpfr0py] {
        gap: 0.52rem;
    }

    .recipes-promo-icon[b-v7jhpfr0py] {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
        font-size: 1.18rem;
    }

    .recipes-promo-title[b-v7jhpfr0py] {
        font-size: 1.03rem;
    }

    .recipes-promo-text[b-v7jhpfr0py] {
        font-size: 0.88rem;
    }

    .recipes-promo-action[b-v7jhpfr0py] {
        padding: 0.42rem 0.62rem;
        margin-top: 0.2rem;
    }

    .date-picker-bar[b-v7jhpfr0py] {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        padding: 0.2rem 0.25rem;
        gap: 0.3rem;
        border-radius: 12px;
    }

    .btn-date-nav[b-v7jhpfr0py] {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .date-text[b-v7jhpfr0py] {
        font-size: 0.82rem;
        font-weight: 700;
    }

    .btn-today-pill[b-v7jhpfr0py] {
        font-size: 0.62rem;
        padding: 0.24rem 0.8rem;
        letter-spacing: 0.65px;
    }

    .btn-today-pill-wrapper.has-button[b-v7jhpfr0py] {
        align-items: flex-end;
        min-height: 40px;
        margin-top: 0.42rem;
        margin-bottom: 0;
    }

    .btn-today-pill-wrapper.is-empty[b-v7jhpfr0py] {
        min-height: 40px;
        margin-top: 0.42rem;
        margin-bottom: 0;
    }

    .home-card[b-v7jhpfr0py] {
        padding: 1rem 1rem;
        border-radius: var(--radius-card-sm);
        margin-bottom: 0.75rem;
    }

    .hero-calories-block[b-v7jhpfr0py] {
        display: flex;
        flex-direction: column;
    }

    .hero-title[b-v7jhpfr0py] {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .hero-subtitle[b-v7jhpfr0py] {
        font-size: 0.72rem;
    }

    .calories-main-value[b-v7jhpfr0py] {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
        margin: 0.2rem 0 0.1rem 0;
    }

    .calories-goal-value[b-v7jhpfr0py] {
        font-size: 0.85rem;
        margin-left: 0.2rem;
    }

    .home-progress-main[b-v7jhpfr0py] {
        height: 8px;
        margin-top: 0.2rem;
    }

    .progress-text-inside[b-v7jhpfr0py] {
        font-size: 0.55rem;
        padding-left: 0.35rem;
    }

    .divider-line[b-v7jhpfr0py] {
        margin: 0.85rem 0;
    }

    .hero-macros-block[b-v7jhpfr0py] {
        gap: 0.6rem;
    }

    .macro-header[b-v7jhpfr0py] {
        font-size: 0.72rem;
        margin-bottom: 0.25rem;
    }

    .macro-name[b-v7jhpfr0py] {
        font-weight: 700;
    }

    .macro-val[b-v7jhpfr0py] {
        font-size: 0.72rem;
    }

    .home-progress-thin[b-v7jhpfr0py] {
        height: 5px;
    }

    .home-meal-list[b-v7jhpfr0py] {
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .meal-card[b-v7jhpfr0py] {
        border-radius: 16px;
    }

    .meal-card-header[b-v7jhpfr0py] {
        padding: 0.65rem 0.85rem;
        min-height: 56px;
        gap: 0.5rem;
    }

    .meal-icon[b-v7jhpfr0py] {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .meal-title[b-v7jhpfr0py] {
        font-size: 0.85rem;
        font-weight: 700;
    }

    .meal-badge[b-v7jhpfr0py] {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        border-radius: 8px;
    }

    .btn-quick-add[b-v7jhpfr0py] {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .meal-item[b-v7jhpfr0py] {
        padding: 0.6rem 0.85rem !important;
        gap: 0.5rem;
    }

    .meal-item-name[b-v7jhpfr0py] {
        font-size: 0.78rem;
        font-weight: 600;
    }

    .meal-item-details[b-v7jhpfr0py] {
        font-size: 0.68rem;
        margin-top: 0.05rem;
    }

        .meal-item-details strong[b-v7jhpfr0py] {
            font-weight: 600;
        }

    .meal-item-macros[b-v7jhpfr0py] {
        font-size: 0.62rem;
        display: inline-block;
        margin-left: 0.2rem;
    }

    .btn-delete-entry[b-v7jhpfr0py] {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin-left: 0.15rem;
    }

    .meal-empty-state[b-v7jhpfr0py] {
        font-size: 0.68rem;
        padding: 0.6rem 0.85rem;
    }

    .water-card[b-v7jhpfr0py] {
        padding: 1rem 1rem;
    }

    .water-icon[b-v7jhpfr0py] {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .water-title[b-v7jhpfr0py] {
        font-size: 0.85rem;
        font-weight: 700;
    }

    .water-stats[b-v7jhpfr0py] {
        font-size: 0.75rem;
        font-weight: 700;
    }

    .home-water-progress[b-v7jhpfr0py] {
        height: 8px;
    }

    .water-actions[b-v7jhpfr0py] {
        gap: 0.5rem;
        margin-top: 0.6rem;
    }

    .btn-water-action[b-v7jhpfr0py] {
        min-height: 36px;
        font-size: 0.72rem;
        border-radius: 10px;
        gap: 0.3rem;
    }

        .btn-water-action .water-btn-icon[b-v7jhpfr0py] {
            font-size: 0.9rem;
        }

    /* MODALE NA SMARTFONACH */
    .home-modal-overlay[b-v7jhpfr0py] {
        padding: 0.5rem;
        align-items: center !important;
    }

    .modal-dialog[b-v7jhpfr0py] {
        max-width: 95% !important;
        margin: 0.5rem auto !important;
        max-height: 95vh !important;
    }

    .modal-content[b-v7jhpfr0py] {
        border-radius: var(--radius-card-sm);
        max-height: 95vh !important;
        overflow: visible !important;
    }

    .modal-header[b-v7jhpfr0py] {
        padding: 0.75rem 1rem;
    }

        .modal-header .modal-title[b-v7jhpfr0py] {
            font-size: 0.95rem;
        }

        .modal-header .btn-close[b-v7jhpfr0py] {
            font-size: 1rem;
        }

    .modal-body[b-v7jhpfr0py] {
        padding: 0.8rem 1rem;
        overflow-y: auto !important;
        min-height: 0;
        max-height: 68vh !important;
    }

    .modal-footer[b-v7jhpfr0py] {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

        .modal-footer .btn[b-v7jhpfr0py] {
            width: 100%;
            justify-content: center;
            font-size: 0.8rem;
            min-height: 36px;
            padding: 0.4rem 0.8rem;
        }

    .profile-modal-content[b-v7jhpfr0py] {
        max-height: 95vh !important;
        border-radius: var(--radius-card-sm);
        overflow: visible !important;
    }

        .profile-modal-content .modal-header[b-v7jhpfr0py] {
            padding: 0.6rem 1rem;
        }

            .profile-modal-content .modal-header .modal-title[b-v7jhpfr0py] {
                font-size: 0.9rem;
            }

        /* ZMNIEJSZENIE ELEMENTÓW W ZAKŁADKACH, ABY ZMIEŚCIĆ WODĘ */
        .profile-modal-content .modal-body[b-v7jhpfr0py] {
            padding: 0.4rem 0.6rem !important;
        }

        .profile-modal-content .form-label[b-v7jhpfr0py] {
            font-size: 0.6rem !important;
            margin-bottom: 0.1rem !important;
        }

        .profile-modal-content .form-control[b-v7jhpfr0py],
        .profile-modal-content .form-select[b-v7jhpfr0py] {
            font-size: 0.7rem !important;
            min-height: 30px !important;
            padding: 0.2rem 0.4rem !important;
        }

        .profile-modal-content .form-control-lg[b-v7jhpfr0py],
        .profile-modal-content .form-select-lg[b-v7jhpfr0py] {
            font-size: 0.75rem !important;
            min-height: 32px !important;
            padding: 0.2rem 0.4rem !important;
        }

        .profile-modal-content .mb-3[b-v7jhpfr0py] {
            margin-bottom: 0.15rem !important;
        }

        .profile-modal-content .mb-4[b-v7jhpfr0py] {
            margin-bottom: 0.2rem !important;
        }

        .profile-modal-content .row[b-v7jhpfr0py] {
            gap: 0.1rem !important;
            margin-bottom: 0.1rem !important;
        }

        .profile-modal-content .col-6[b-v7jhpfr0py] {
            flex: 0 0 100% !important;
            max-width: 100% !important;
        }
        /* Przyciski +/− mniejsze */
        .profile-modal-content .input-group .btn-outline-secondary[b-v7jhpfr0py] {
            min-width: 28px !important;
            font-size: 0.9rem !important;
            padding: 0 0.3rem !important;
        }
        /* Przyciski na dole */
        .profile-modal-content .modal-footer .btn[b-v7jhpfr0py] {
            font-size: 0.75rem !important;
            min-height: 32px !important;
            padding: 0.2rem 0.6rem !important;
        }

    /* Onboarding modal */
    .dietownik-modal-overlay[b-v7jhpfr0py] {
        min-height: calc(var(--dietownik-vh, 1vh) * 100);
        padding: max(0.65rem, env(safe-area-inset-top)) max(0.55rem, env(safe-area-inset-right)) 0.08rem max(0.55rem, env(safe-area-inset-left));
        align-items: center;
    }

    .dietownik-welcome-modal[b-v7jhpfr0py] {
        width: 100%;
        max-height: calc((var(--dietownik-vh, 1vh) * 100) - max(0.65rem, env(safe-area-inset-top)) - 0.25rem);
        border-radius: var(--radius-card-sm);
    }

    .dietownik-welcome-logo[b-v7jhpfr0py] {
        margin: 0.42rem auto 0.2rem;
    }

    .dietownik-welcome-brand-icon[b-v7jhpfr0py] {
        font-size: 1.2rem;
    }

    .dietownik-welcome-brand-title[b-v7jhpfr0py] {
        font-size: 1.2rem;
    }

    .dietownik-welcome-content[b-v7jhpfr0py] {
        padding: 0 0.82rem 0.72rem;
    }

        .dietownik-welcome-content h2[b-v7jhpfr0py] {
            font-size: 1.06rem;
            margin-bottom: 0.22rem;
        }

    .dietownik-welcome-eyebrow[b-v7jhpfr0py] {
        font-size: 0.58rem;
    }

    .dietownik-welcome-hero[b-v7jhpfr0py] {
        flex-direction: column;
        gap: 0.42rem;
    }

    .dietownik-welcome-description[b-v7jhpfr0py] {
        max-width: none;
        font-size: 0.68rem;
        margin: 0.32rem auto 0.5rem;
    }

    .dietownik-account-info[b-v7jhpfr0py] {
        width: 100%;
        padding: 0.38rem 0.42rem;
        gap: 0.38rem;
    }

    .dietownik-info-icon[b-v7jhpfr0py] {
        width: 28px;
        height: 28px;
        font-size: 0.74rem;
    }

    .dietownik-account-info strong[b-v7jhpfr0py] {
        font-size: 0.62rem;
    }

    .dietownik-account-info span[b-v7jhpfr0py] {
        font-size: 0.56rem;
        line-height: 1.22;
    }

    .dietownik-input-group[b-v7jhpfr0py] {
        margin-bottom: 0.54rem;
    }

        .dietownik-input-group label[b-v7jhpfr0py] {
            font-size: 0.7rem;
            margin-bottom: 0.3rem;
        }

        .dietownik-input-group input[b-v7jhpfr0py] {
            height: 42px;
            font-size: 0.82rem;
            padding: 0.5rem 0.75rem;
        }

        .dietownik-input-group small[b-v7jhpfr0py] {
            font-size: 0.6rem;
        }

    .dietownik-welcome-button[b-v7jhpfr0py] {
        min-height: 38px;
        font-size: 0.72rem;
        padding: 0.46rem 0.78rem;
    }

    .dietownik-welcome-footer[b-v7jhpfr0py] {
        font-size: 0.48rem;
        margin-top: 0.38rem;
    }

    .dietownik-button-badge[b-v7jhpfr0py] {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.75rem;
    }
}

/* BARDZO MAŁE SMARTFONY (do 380px) – dodatkowe zmniejszenie */
@media (max-width: 380px) {
    .home-page[b-v7jhpfr0py] {
        padding: 0.5rem 0.4rem 0.9rem;
    }

    .home-header[b-v7jhpfr0py] {
        padding: 0.7rem 0.7rem 0.62rem;
        min-height: 146px;
        border-radius: 16px;
    }

    .brand-icon[b-v7jhpfr0py] {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .brand-title[b-v7jhpfr0py] {
        font-size: 0.9rem;
    }

    .cloud-status-badge[b-v7jhpfr0py] {
        font-size: 0.5rem;
        padding: 0.15rem 0.4rem;
    }

        .cloud-status-badge span.d-inline[b-v7jhpfr0py] {
            display: none !important;
        }

    .btn-icon-profile[b-v7jhpfr0py] {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        min-height: 28px;
    }

    .date-picker-bar[b-v7jhpfr0py] {
        grid-template-columns: 30px 1fr 30px;
        gap: 0.2rem;
        padding: 0.15rem;
        border-radius: 10px;
    }

    .btn-date-nav[b-v7jhpfr0py] {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
        border-radius: 8px;
    }

    .date-text[b-v7jhpfr0py] {
        font-size: 0.7rem;
    }

    .btn-today-pill[b-v7jhpfr0py] {
        font-size: 0.58rem;
        padding: 0.2rem 0.68rem;
        letter-spacing: 0.58px;
    }

    .btn-today-pill-wrapper.has-button[b-v7jhpfr0py] {
        align-items: flex-end;
        min-height: 36px;
        margin-top: 0.28rem;
        margin-bottom: 0;
    }

    .btn-today-pill-wrapper.is-empty[b-v7jhpfr0py] {
        min-height: 36px;
        margin-top: 0.28rem;
        margin-bottom: 0;
    }

    .home-card[b-v7jhpfr0py] {
        padding: 0.8rem 0.7rem;
        border-radius: 14px;
        margin-bottom: 0.6rem;
    }

    .calories-main-value[b-v7jhpfr0py] {
        font-size: 2.1rem;
    }

    .calories-goal-value[b-v7jhpfr0py] {
        font-size: 0.75rem;
    }

    .hero-title[b-v7jhpfr0py] {
        font-size: 0.55rem;
    }

    .hero-subtitle[b-v7jhpfr0py] {
        font-size: 0.65rem;
    }

    .macro-header[b-v7jhpfr0py] {
        font-size: 0.65rem;
    }

    .meal-card-header[b-v7jhpfr0py] {
        padding: 0.5rem 0.65rem;
        min-height: 48px;
    }

    .meal-icon[b-v7jhpfr0py] {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .meal-title[b-v7jhpfr0py] {
        font-size: 0.75rem;
    }

    .meal-badge[b-v7jhpfr0py] {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }

    .btn-quick-add[b-v7jhpfr0py] {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .meal-item[b-v7jhpfr0py] {
        padding: 0.5rem 0.65rem !important;
    }

    .meal-item-name[b-v7jhpfr0py] {
        font-size: 0.7rem;
    }

    .meal-item-details[b-v7jhpfr0py] {
        font-size: 0.6rem;
    }

    .meal-item-macros[b-v7jhpfr0py] {
        font-size: 0.55rem;
    }

    .btn-delete-entry[b-v7jhpfr0py] {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .water-icon[b-v7jhpfr0py] {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .water-title[b-v7jhpfr0py] {
        font-size: 0.75rem;
    }

    .water-stats[b-v7jhpfr0py] {
        font-size: 0.65rem;
    }

    .btn-water-action[b-v7jhpfr0py] {
        min-height: 32px;
        font-size: 0.65rem;
        border-radius: 8px;
    }

    .dietownik-welcome-content h2[b-v7jhpfr0py] {
        font-size: 1.1rem;
    }

    .dietownik-welcome-description[b-v7jhpfr0py] {
        font-size: 0.7rem;
    }

    .dietownik-welcome-logo[b-v7jhpfr0py] {
        margin: 0.3rem auto 0.2rem;
    }

    .dietownik-welcome-brand-icon[b-v7jhpfr0py] {
        font-size: 1rem;
    }

    .dietownik-welcome-brand-title[b-v7jhpfr0py] {
        font-size: 1rem;
    }
    /* Jeszcze mniejsze elementy w zakładkach */
    .profile-modal-content .modal-body[b-v7jhpfr0py] {
        padding: 0.3rem 0.4rem !important;
    }

    .profile-modal-content .form-label[b-v7jhpfr0py] {
        font-size: 0.55rem !important;
    }

    .profile-modal-content .form-control[b-v7jhpfr0py],
    .profile-modal-content .form-select[b-v7jhpfr0py] {
        font-size: 0.65rem !important;
        min-height: 26px !important;
        padding: 0.15rem 0.3rem !important;
    }

    .profile-modal-content .form-control-lg[b-v7jhpfr0py],
    .profile-modal-content .form-select-lg[b-v7jhpfr0py] {
        font-size: 0.7rem !important;
        min-height: 28px !important;
        padding: 0.15rem 0.3rem !important;
    }

    .profile-modal-content .mb-3[b-v7jhpfr0py] {
        margin-bottom: 0.1rem !important;
    }

    .profile-modal-content .mb-4[b-v7jhpfr0py] {
        margin-bottom: 0.15rem !important;
    }

    .profile-modal-content .input-group .btn-outline-secondary[b-v7jhpfr0py] {
        min-width: 24px !important;
        font-size: 0.8rem !important;
        padding: 0 0.2rem !important;
    }
}

/* LANDSCAPE – dla bardzo niskich ekranów */
@media (max-height: 500px) and (orientation: landscape) {
    .home-page[b-v7jhpfr0py] {
        max-width: 760px;
        padding-top: 0.5rem;
    }

    .home-header[b-v7jhpfr0py] {
        padding: 0.8rem 1rem 0.8rem;
        min-height: 140px;
        margin-bottom: 0.75rem;
    }

    .home-header-top[b-v7jhpfr0py] {
        margin-bottom: 0.5rem;
    }

    .home-card[b-v7jhpfr0py] {
        padding: 0.8rem 1rem;
        margin-bottom: 0.6rem;
    }

    .home-meal-list[b-v7jhpfr0py] {
        gap: 0.5rem;
    }

    .meal-card-header[b-v7jhpfr0py] {
        padding: 0.5rem 0.8rem;
        min-height: 48px;
    }

    .meal-copy-popover[b-v7jhpfr0py] {
        margin: 0 0.8rem 0.6rem;
    }

    .modal-dialog[b-v7jhpfr0py] {
        max-width: 80% !important;
        max-height: 90vh !important;
    }

    .profile-modal-content .modal-body[b-v7jhpfr0py] {
        padding: 0.4rem 0.6rem;
    }
}

/* REDUKCJA RUCHU */
@media (prefers-reduced-motion: reduce) {
    .home-page *[b-v7jhpfr0py],
    .home-page *[b-v7jhpfr0py]::before,
    .home-page *[b-v7jhpfr0py]::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* BRAK HOVER NA DOTYKOWYCH */
@media (hover: none) {
    .home-card:hover[b-v7jhpfr0py], .meal-card:hover[b-v7jhpfr0py] {
        transform: none;
    }

    .btn-icon-profile:hover[b-v7jhpfr0py], .btn-date-nav:hover[b-v7jhpfr0py], .btn-quick-add:hover[b-v7jhpfr0py] {
        transform: none;
    }
}

/* FOKUS */
.home-page button:focus-visible[b-v7jhpfr0py],
.home-page input:focus-visible[b-v7jhpfr0py],
.home-page [tabindex]:focus-visible[b-v7jhpfr0py] {
    outline: 2px solid rgba(37, 166, 106, 0.45);
    outline-offset: 2px;
}

/* SAFE AREA (iPhone z notchem) */
@supports (padding: max(0px)) {
    .home-page[b-v7jhpfr0py] {
        padding-left: max(0.55rem, env(safe-area-inset-left));
        padding-right: max(0.55rem, env(safe-area-inset-right));
        padding-bottom: 0.2rem;
    }

    .home-modal-overlay[b-v7jhpfr0py] {
        padding-left: max(0.65rem, env(safe-area-inset-left));
        padding-right: max(0.65rem, env(safe-area-inset-right));
        padding-bottom: 0.2rem;
    }

    .dietownik-modal-overlay[b-v7jhpfr0py] {
        padding-left: max(0.65rem, env(safe-area-inset-left));
        padding-right: max(0.65rem, env(safe-area-inset-right));
        padding-bottom: 0.2rem;
    }
}

/* KLAWIATURA OTWARTA */
body.keyboard-open .home-page[b-v7jhpfr0py],
html.keyboard-open .home-page[b-v7jhpfr0py] {
    padding-bottom: 0.2rem;
}

body.keyboard-open .home-header[b-v7jhpfr0py],
html.keyboard-open .home-header[b-v7jhpfr0py] {
    margin-bottom: 0.4rem;
    min-height: 118px;
}

body.keyboard-open .home-card[b-v7jhpfr0py],
html.keyboard-open .home-card[b-v7jhpfr0py] {
    margin-bottom: 0.4rem;
    padding: 0.52rem 0.62rem;
}

body.keyboard-open .home-meal-list[b-v7jhpfr0py],
html.keyboard-open .home-meal-list[b-v7jhpfr0py] {
    gap: 0.34rem;
    margin-bottom: 0.35rem;
}

body.keyboard-open .home-modal-overlay[b-v7jhpfr0py],
html.keyboard-open .home-modal-overlay[b-v7jhpfr0py] {
    align-items: flex-start !important;
    padding-top: max(0.8rem, env(safe-area-inset-top));
    padding-bottom: 0.45rem;
}

body.keyboard-open .dietownik-modal-overlay[b-v7jhpfr0py],
html.keyboard-open .dietownik-modal-overlay[b-v7jhpfr0py] {
    align-items: center !important;
    min-height: calc(var(--dietownik-vh, 1vh) * 100);
    padding-top: max(0.65rem, env(safe-area-inset-top));
    padding-bottom: 0.04rem;
}

body.keyboard-open .dietownik-welcome-modal[b-v7jhpfr0py],
html.keyboard-open .dietownik-welcome-modal[b-v7jhpfr0py] {
    max-height: calc((var(--dietownik-vh, 1vh) * 100) - max(0.65rem, env(safe-area-inset-top)) - 0.2rem);
    margin-top: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

body.keyboard-open .dietownik-welcome-content[b-v7jhpfr0py],
html.keyboard-open .dietownik-welcome-content[b-v7jhpfr0py] {
    padding: 0 0.72rem 0.5rem;
}

body.keyboard-open #firstTimeUserId[b-v7jhpfr0py],
html.keyboard-open #firstTimeUserId[b-v7jhpfr0py] {
    scroll-margin-top: max(1rem, env(safe-area-inset-top));
    scroll-margin-bottom: 1.25rem;
}

/* ============================================================
   USTAWIENIA – ZAKŁADKI ZE STAŁĄ WYSOKOŚCIĄ (BEZ PRZEWIJANIA)
   ============================================================ */
.settings-tabs[b-v7jhpfr0py] {
    border-bottom: 1px solid var(--color-border-soft);
    padding: 0.2rem 1.5rem 0;
    background: var(--color-surface-soft);
    flex-shrink: 0;
}

    .settings-tabs .nav[b-v7jhpfr0py] {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .settings-tabs .nav-item[b-v7jhpfr0py] {
        flex: 1 1 0;
        min-width: 0;
    }

    .settings-tabs .nav-link[b-v7jhpfr0py] {
        border: none;
        border-bottom: 2px solid transparent;
        color: var(--color-text-secondary);
        font-weight: var(--font-weight-normal);
        padding: 0.7rem 0.9rem;
        border-radius: 0;
        transition: color 0.2s ease, border-color 0.2s ease;
        font-size: 0.86rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .settings-tabs .nav-link:hover[b-v7jhpfr0py] {
            color: var(--color-text-primary);
            border-color: var(--color-border);
        }

        .settings-tabs .nav-link.active[b-v7jhpfr0py] {
            color: var(--color-green);
            border-bottom: 2px solid var(--color-green);
            background: transparent;
            font-weight: var(--font-weight-bold);
        }

/* STAŁA WYSOKOŚĆ – DOPASOWANA DO WIĘKSZEJ ZAKŁADKI (PROFIL) */
.settings-tab-content[b-v7jhpfr0py] {
    flex: 0 0 auto;
    max-height: 710px !important;
    min-height: 710px !important;
    overflow: hidden;
    position: relative;
}

    .settings-tab-content .settings-tab-pane[b-v7jhpfr0py] {
        padding-top: 0.35rem;
        overflow: hidden !important;
    }

    .settings-tab-content .modal-body[b-v7jhpfr0py] {
        position: relative;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0.9rem 1.2rem 1.05rem !important;
        min-height: 638px;
        max-height: 638px;
    }

    .settings-tab-content .settings-profile-body[b-v7jhpfr0py],
    .settings-tab-content .settings-app-body[b-v7jhpfr0py] {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .settings-tab-content .settings-app-body[b-v7jhpfr0py] {
        justify-content: space-between;
    }

    /* Selecty – wysoki z-index, nieprzycinane */
    .settings-tab-content .form-select[b-v7jhpfr0py] {
        max-width: 100%;
        position: relative;
        z-index: 1050 !important;
    }

        .settings-tab-content .form-select option[b-v7jhpfr0py] {
            padding: 0.4rem 0.6rem;
        }

/* Przyciski +/− w inputach */
.input-group .btn-outline-secondary[b-v7jhpfr0py] {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
    font-weight: 700;
    min-width: 38px;
    padding: 0 0.5rem;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: var(--radius-btn) 0 0 var(--radius-btn);
}

    .input-group .btn-outline-secondary:last-child[b-v7jhpfr0py] {
        border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
    }

    .input-group .btn-outline-secondary:hover[b-v7jhpfr0py] {
        background: var(--color-border-soft);
        color: var(--color-text-primary);
    }

.input-group .form-control-lg[b-v7jhpfr0py] {
    text-align: center;
    border-radius: 0;
}

.profile-modal-content .modal-body input[type="number"].form-control[b-v7jhpfr0py],
.settings-tab-content .modal-body input[type="number"].form-control[b-v7jhpfr0py],
.profile-modal-content .modal-body input[type="number"].form-control-lg[b-v7jhpfr0py],
.settings-tab-content .modal-body input[type="number"].form-control-lg[b-v7jhpfr0py] {
    padding-top: 0.16rem !important;
    padding-bottom: 0.16rem !important;
}

/* Przełączniki (switch) */
.form-switch .form-check-input[b-v7jhpfr0py] {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
    background-color: var(--color-border-soft);
    border-color: var(--color-border);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,0.25)'/%3e%3c/svg%3e");
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

    .form-switch .form-check-input:checked[b-v7jhpfr0py] {
        background-color: var(--color-green);
        border-color: var(--color-green);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
    }

.form-switch .form-check-label[b-v7jhpfr0py] {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    cursor: pointer;
    margin-left: 0.5rem;
}

.form-check.form-switch.mb-2[b-v7jhpfr0py] {
    margin-bottom: 1.25rem !important;
}

/* Stabilizacja list w modalach:
   - brak zawijania
   - elipsa dla długiego tekstu
   - stała wysokość wiersza, żeby nie "skakał" po pogrubieniu */
.modal-content .tab-section .list-group .list-group-item[b-v7jhpfr0py],
.modal-content .list-group .list-group-item[b-v7jhpfr0py] {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    height: 50px;
    min-height: 50px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.modal-content .tab-section.products-list .list-group .list-group-item[b-v7jhpfr0py],
.modal-content.products-list .list-group .list-group-item[b-v7jhpfr0py] {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.modal-content .tab-section .list-group .list-group-item > div[b-v7jhpfr0py],
.modal-content .tab-section .list-group .list-group-item .fw-bold[b-v7jhpfr0py],
.modal-content .tab-section .list-group .list-group-item small[b-v7jhpfr0py],
.modal-content .list-group .list-group-item > div[b-v7jhpfr0py],
.modal-content .list-group .list-group-item .fw-bold[b-v7jhpfr0py],
.modal-content .list-group .list-group-item small[b-v7jhpfr0py] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.modal-content .tab-section .list-group .list-group-item > div[b-v7jhpfr0py],
.modal-content .list-group .list-group-item > div[b-v7jhpfr0py] {
    flex: 1 1 auto;
    min-width: 0;
}

.modal-content .tab-section .list-group .list-group-item .d-flex[b-v7jhpfr0py],
.modal-content .list-group .list-group-item .d-flex[b-v7jhpfr0py] {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
}

.modal-content .tab-section .list-group .list-group-item .d-flex > div[b-v7jhpfr0py],
.modal-content .list-group .list-group-item .d-flex > div[b-v7jhpfr0py] {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.modal-content .tab-section .list-group .list-group-item .badge[b-v7jhpfr0py],
.modal-content .list-group .list-group-item .badge[b-v7jhpfr0py] {
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: 0.5rem;
}

.modal-content .tab-section .list-group .list-group-item .fw-bold[b-v7jhpfr0py],
.modal-content .list-group .list-group-item .fw-bold[b-v7jhpfr0py] {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.modal-content .tab-section .list-group .list-group-item img[b-v7jhpfr0py],
.modal-content .list-group .list-group-item img[b-v7jhpfr0py] {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 0.75rem;
}

/* Większe odstępy między przełącznikami w ustawieniach */
.settings-tab-content .form-check.form-switch.mb-2[b-v7jhpfr0py],
.profile-modal-content .form-check.form-switch.mb-2[b-v7jhpfr0py] {
    margin-bottom: 1.5rem !important;
}

.recipe-image-picker-desktop[b-v7jhpfr0py] {
    display: block;
}

.recipe-image-picker-mobile[b-v7jhpfr0py] {
    display: none;
    position: relative;
}

.recipe-image-input-desktop[b-v7jhpfr0py] {
    min-height: 42px;
}

.recipe-image-input-hidden[b-v7jhpfr0py] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.recipe-image-upload-btn[b-v7jhpfr0py] {
    min-height: 46px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.58rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #cde7d8;
    background: linear-gradient(180deg, #f5fcf8 0%, #edf8f1 100%);
    color: #1f8d57;
    font-size: 0.92rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .recipe-image-upload-btn:hover[b-v7jhpfr0py] {
        border-color: #b8dcc5;
        box-shadow: 0 6px 14px rgba(31, 141, 87, 0.12);
        transform: translateY(-1px);
    }

    .recipe-image-upload-btn:active[b-v7jhpfr0py] {
        transform: scale(0.98);
    }

.recipe-image-upload-icon[b-v7jhpfr0py] {
    font-size: 1.02rem;
    line-height: 1;
}

/* Desktop/laptop: lokalny wybór pliku (Przeglądaj) */
@media (hover: hover) and (pointer: fine) {
    .recipe-image-picker-desktop[b-v7jhpfr0py] {
        display: block;
    }

    .recipe-image-picker-mobile[b-v7jhpfr0py] {
        display: none;
    }
}

/* Telefon/tablet dotykowy: tylko aparat */
@media (hover: none), (pointer: coarse) {
    .recipe-image-picker-desktop[b-v7jhpfr0py] {
        display: none;
    }

    .recipe-image-picker-mobile[b-v7jhpfr0py] {
        display: block;
    }
}

@media (max-width: 576px) {
    .recipe-image-upload-btn[b-v7jhpfr0py] {
        min-height: 48px;
        font-size: 0.95rem;
        padding: 0.65rem 0.9rem;
    }

    .recipe-image-upload-icon[b-v7jhpfr0py] {
        font-size: 1.05rem;
    }
}

/* Przycisk resetu */
.btn-outline-danger[b-v7jhpfr0py] {
    background: transparent;
    border: 1px solid var(--color-red);
    color: var(--color-red);
    font-weight: var(--font-weight-bold);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-btn);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-outline-danger:hover[b-v7jhpfr0py] {
        background: var(--color-red-light);
        border-color: var(--color-red);
        color: var(--color-red);
    }

/* -------------------- RESPONSYWNOŚĆ ZAKŁADEK -------------------- */

/* Tablet (pionowo) i mniejsze ekrany do 768px */
@media (max-width: 768px) {
    .settings-tabs[b-v7jhpfr0py] {
        padding: 0.2rem 0.8rem 0;
    }

        .settings-tabs .nav-link[b-v7jhpfr0py] {
            font-size: 0.74rem;
            padding: 0.5rem 0.45rem;
            min-height: 44px;
        }

    .input-group .btn-outline-secondary[b-v7jhpfr0py] {
        min-width: 32px;
        font-size: 1rem;
    }

    .settings-tab-content[b-v7jhpfr0py] {
        max-height: 610px !important;
        min-height: 610px !important;
    }

    .settings-tab-content .modal-body[b-v7jhpfr0py] {
        min-height: 540px;
        max-height: 540px;
        padding: 0.95rem 1rem 1.2rem !important;
    }

    .settings-tab-content .settings-profile-body[b-v7jhpfr0py] {
        gap: 0.95rem;
    }

    .settings-tab-content .settings-app-body[b-v7jhpfr0py] {
        gap: 0.95rem;
    }
}

/* Smartfony (do 576px) – zostawiamy 560px (działa idealnie) */
@media (max-width: 576px) {
    .settings-tab-content[b-v7jhpfr0py] {
        max-height: 590px !important;
        min-height: 590px !important;
    }

    .settings-tab-content .modal-body[b-v7jhpfr0py] {
        min-height: 520px;
        max-height: 520px;
        padding: 0.9rem 0.95rem 1.15rem !important;
    }

    .settings-tab-content .settings-profile-body[b-v7jhpfr0py] {
        gap: 0.9rem;
    }

    .settings-tab-content .settings-app-body[b-v7jhpfr0py] {
        gap: 0.5rem;
    }

    .settings-tab-content .settings-app-body .form-check.form-switch.mb-2[b-v7jhpfr0py] {
        margin-bottom: 0.7rem !important;
    }

    .settings-tab-content .settings-app-body .mb-3[b-v7jhpfr0py],
    .settings-tab-content .settings-app-body .mb-2[b-v7jhpfr0py],
    .settings-tab-content .settings-app-body .mb-1[b-v7jhpfr0py],
    .settings-tab-content .settings-app-body .my-3[b-v7jhpfr0py],
    .settings-tab-content .settings-app-body .mt-4[b-v7jhpfr0py] {
        margin-top: 0.2rem !important;
        margin-bottom: 0.2rem !important;
    }

    .settings-tab-content .form-control[b-v7jhpfr0py],
    .settings-tab-content .form-select[b-v7jhpfr0py] {
        font-size: 0.8rem !important;
        min-height: 34px !important;
        padding: 0.28rem 0.45rem !important;
    }

    .settings-tab-content .form-control-lg[b-v7jhpfr0py],
    .settings-tab-content .form-select-lg[b-v7jhpfr0py] {
        font-size: 0.83rem !important;
        min-height: 36px !important;
        padding: 0.28rem 0.45rem !important;
    }

    .modal-footer[b-v7jhpfr0py] {
        padding: 0.75rem 0.9rem;
        gap: 0.55rem;
    }
}

/* Komputery i tablety poziomo (≥769px) – delikatne rozciągnięcie elementów */
@media (min-width: 769px) {
    .settings-tab-content[b-v7jhpfr0py] {
        max-height: 730px !important;
        min-height: 730px !important;
    }

    .settings-tab-content .modal-body[b-v7jhpfr0py] {
        padding: 1rem 1.25rem 1.2rem !important;
        min-height: 658px;
        max-height: 658px;
        overflow-y: hidden !important;
    }

    .settings-tab-content .settings-profile-body[b-v7jhpfr0py] {
        gap: 1rem;
    }

    .settings-tab-content .settings-app-body[b-v7jhpfr0py] {
        gap: 1rem;
    }

    .settings-tab-content .settings-profile-body .row[b-v7jhpfr0py],
    .settings-tab-content .settings-profile-body .mb-3[b-v7jhpfr0py],
    .settings-tab-content .settings-profile-body .mb-4[b-v7jhpfr0py] {
        margin-bottom: 0.75rem !important;
    }

    .settings-tab-content .settings-app-body .mb-3[b-v7jhpfr0py],
    .settings-tab-content .settings-app-body .mt-4[b-v7jhpfr0py],
    .settings-tab-content .settings-app-body hr.my-3[b-v7jhpfr0py] {
        margin-top: 0.6rem !important;
        margin-bottom: 0.6rem !important;
    }

    .settings-tab-content .form-check.form-switch.mb-2[b-v7jhpfr0py],
    .profile-modal-content .form-check.form-switch.mb-2[b-v7jhpfr0py] {
        margin-bottom: 1.55rem !important;
    }

    .settings-tab-content .form-control[b-v7jhpfr0py],
    .settings-tab-content .form-select[b-v7jhpfr0py] {
        min-height: 42px;
    }

    .settings-tab-content .form-control-lg[b-v7jhpfr0py],
    .settings-tab-content .form-select-lg[b-v7jhpfr0py] {
        min-height: 46px;
    }
}

@media (max-width: 420px) {
    .settings-tabs .nav-link[b-v7jhpfr0py] {
        font-size: 0.67rem;
    }

    .add-entry-tab-link[b-v7jhpfr0py] {
        font-size: 0.72rem;
        min-height: 56px;
        max-height: 56px;
    }

    .add-entry-tab-link.active .add-entry-tab-text[b-v7jhpfr0py] {
        max-width: 68px;
    }
}

/* Poprawka odstępów i wyrównania przycisków w Profilu – na wszystkich ekranach */
.tab-pane form > .d-flex.justify-content-end[b-v7jhpfr0py] {
    margin-top: 1rem !important;
    gap: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

    .tab-pane form > .d-flex.justify-content-end .btn[b-v7jhpfr0py] {
        flex: 1;
        min-height: 42px;
        font-size: 0.9rem;
        padding: 0.72rem 0.9rem;
    }

@media (max-width: 576px) {
    .tab-pane form > .d-flex.justify-content-end[b-v7jhpfr0py] {
        margin-top: 0.85rem !important;
        gap: 0.5rem !important;
    }

        .tab-pane form > .d-flex.justify-content-end .btn[b-v7jhpfr0py] {
            flex: 1;
            font-size: 0.9rem;
            min-height: 40px;
            padding: 0.7rem 0.65rem;
        }
}

/* ============================================================
   NOWE REGUŁY: Przyciski w zakładce Aplikacja – obok siebie na małych ekranach
   ============================================================ */
@media (max-width: 576px) {
    /* Nadpisanie reguły flex-direction: column – ustawiamy wiersz */
    .settings-tab-content .tab-pane[role="tabpanel"]:last-child .modal-body .app-action-buttons[b-v7jhpfr0py] {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
    }

    .app-action-buttons .btn[b-v7jhpfr0py] {
        flex: 1 !important;
        font-size: 0.76rem !important;
        padding: 0.4rem 0.55rem !important;
        min-height: 34px !important;
        white-space: nowrap;
    }
}

/* ============================================================
   PRZYCISKI W ZAKŁADCE APLIKACJA – ZAWSZE OBOK SIEBIE
   ============================================================ */
.app-action-buttons[b-v7jhpfr0py] {
    display: flex;
    flex-direction: row !important;
    gap: 0.65rem !important;
}

.settings-tab-content .app-list[b-v7jhpfr0py] {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-bottom: 2rem;
}

    .app-action-buttons .btn[b-v7jhpfr0py] {
        flex: 1;
        text-align: center;
        white-space: nowrap;
        min-height: 42px;
        font-size: 0.92rem;
        padding: 0.72rem 0.9rem;
    }

/* Dla bardzo małych ekranów zmniejszamy czcionkę, aby się zmieściły */
@media (max-width: 480px) {
    .modal-content .modal-body[b-v7jhpfr0py],
    .profile-modal-content .modal-body[b-v7jhpfr0py],
    .settings-tab-content .modal-body[b-v7jhpfr0py] {
        max-height: 640px !important;
        overflow-y: auto !important;
    }

    .meal-plan-row[b-v7jhpfr0py] {
        padding: 0.4rem 0.45rem;
    }

    .meal-plan-row-main[b-v7jhpfr0py] {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) auto;
        gap: 0.25rem;
    }

    .meal-plan-row-toggle[b-v7jhpfr0py] {
        gap: 0.3rem;
    }

    .meal-plan-row-title[b-v7jhpfr0py] {
        font-size: 0.74rem;
    }

    .meal-plan-name-input[b-v7jhpfr0py] {
        font-size: 0.74rem;
        min-height: 28px;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .meal-plan-time-field[b-v7jhpfr0py] {
        width: 4.9rem;
        min-height: 28px;
    }

    .meal-time-editor-popover[b-v7jhpfr0py] {
        width: min(16rem, calc(100vw - 1rem));
        right: -0.1rem;
    }

    .profile-modal-content .modal-body .form-control[b-v7jhpfr0py],
    .profile-modal-content .modal-body .form-select[b-v7jhpfr0py],
    .settings-tab-content .modal-body .form-control[b-v7jhpfr0py],
    .settings-tab-content .modal-body .form-select[b-v7jhpfr0py] {
        min-height: 28px !important;
        padding-top: 0.16rem !important;
        padding-bottom: 0.16rem !important;
    }

    .profile-modal-content .modal-body .form-check[b-v7jhpfr0py],
    .settings-tab-content .modal-body .form-check[b-v7jhpfr0py] {
        margin-bottom: 1.9rem;
    }

    .settings-tab-content .app-list[b-v7jhpfr0py] {
        gap: 0.8rem;
        padding-bottom: 2.2rem;
    }

    .app-action-buttons .btn[b-v7jhpfr0py] {
        font-size: 0.78rem;
        padding: 0.45rem 0.55rem;
        min-height: 36px;
    }
}

/* Poprawa widoczności w trybie ciemnym dla strony głównej */
.dark-theme .meal-icon[b-v7jhpfr0py] {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
}

.dark-theme .meal-title[b-v7jhpfr0py] {
    color: var(--color-text-primary);
}

.dark-theme .home-card:has(.calories-main-value)[b-v7jhpfr0py] {
    background: radial-gradient(circle at 100% 0%, rgba(76, 219, 149, 0.10), transparent 31%), linear-gradient(135deg, #1e2a24 0%, #1e2a24 58%, #1a3024 100%);
}

.dark-theme .calories-main-value[b-v7jhpfr0py] {
    color: #f4fbf7;
}

.dark-theme .calories-goal-value[b-v7jhpfr0py] {
    color: var(--color-text-muted);
}

.dark-theme .meal-item-list[b-v7jhpfr0py] {
    background: var(--color-surface);
}

.dark-theme .meal-item[b-v7jhpfr0py] {
    border-bottom-color: var(--color-border-soft) !important;
}

.dark-theme .meal-item-name[b-v7jhpfr0py] {
    color: var(--color-text-primary) !important;
}

.dark-theme .meal-item-details[b-v7jhpfr0py] {
    color: var(--color-text-secondary) !important;
}

.dark-theme .meal-empty-state[b-v7jhpfr0py] {
    background: var(--color-surface);
    border-top-color: var(--color-border-soft);
    color: var(--color-text-secondary);
}

    .dark-theme .meal-empty-state:hover[b-v7jhpfr0py] {
        background: var(--color-surface-soft);
        color: var(--color-green);
    }

.dark-theme .meal-badge[b-v7jhpfr0py] {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.dark-theme .btn-quick-add[b-v7jhpfr0py] {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
    color: var(--color-green);
}

    .dark-theme .btn-quick-add:hover[b-v7jhpfr0py] {
        background: var(--color-green-light);
        border-color: var(--color-green);
        color: #fff;
    }

.dark-theme .btn-meal-copy[b-v7jhpfr0py] {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

    .dark-theme .btn-meal-copy:hover[b-v7jhpfr0py] {
        background: var(--color-surface-soft);
        border-color: var(--color-green);
        color: var(--color-green);
    }

.dark-theme .meal-copy-popover[b-v7jhpfr0py] {
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-soft) 100%);
    border-color: var(--color-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.dark-theme .meal-copy-date-bar[b-v7jhpfr0py] {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
}

.dark-theme .meal-copy-nav-btn[b-v7jhpfr0py] {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

    .dark-theme .meal-copy-nav-btn:hover[b-v7jhpfr0py] {
        background: var(--color-green-light);
        border-color: var(--color-green);
        color: #fff;
    }

.dark-theme .meal-copy-popover-subtitle[b-v7jhpfr0py],
.dark-theme .meal-copy-date-field[b-v7jhpfr0py],
.dark-theme .meal-copy-hint[b-v7jhpfr0py] {
    color: var(--color-text-secondary);
}

.dark-theme .meal-copy-date-bar .date-text[b-v7jhpfr0py] {
    color: var(--color-text-primary);
}

.dark-theme .btn-delete-entry[b-v7jhpfr0py] {
    color: var(--color-text-muted);
}

    .dark-theme .btn-delete-entry:hover[b-v7jhpfr0py] {
        color: var(--color-red);
        background: var(--color-red-light);
    }

.dark-theme .btn-water-plus[b-v7jhpfr0py] {
    background: linear-gradient(135deg, #4aafd6, #2a98c4);
    border-color: #2a98c4;
}

    .dark-theme .btn-water-plus:hover[b-v7jhpfr0py] {
        background: linear-gradient(135deg, #5abfde, #2a98c4);
    }

.dark-theme .btn-water-minus[b-v7jhpfr0py] {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
    color: var(--color-red);
}

    .dark-theme .btn-water-minus:hover[b-v7jhpfr0py] {
        background: var(--color-red-light);
        border-color: var(--color-red);
    }

.dark-theme .btn-icon-profile[b-v7jhpfr0py] {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

    .dark-theme .btn-icon-profile:hover[b-v7jhpfr0py] {
        background: var(--color-surface);
        border-color: var(--color-border-soft);
        color: var(--color-text-primary);
    }

.dark-theme .recipes-promo-card[b-v7jhpfr0py] {
    background: linear-gradient(135deg, #2d3a34 0%, #27332e 100%);
    border-color: #4f665b;
}

.dark-theme .recipes-promo-card[b-v7jhpfr0py]::before {
    background: radial-gradient(circle at 100% 0%, rgba(96, 226, 157, 0.18), transparent 38%);
}

.dark-theme .recipes-promo-title[b-v7jhpfr0py] {
    color: #eef8f2;
}

.dark-theme .recipes-promo-text[b-v7jhpfr0py] {
    color: #c3d6cb;
}

.dark-theme .recipes-promo-action[b-v7jhpfr0py] {
    background: #30453c;
    border-color: #4d6b5e;
    color: #bff2d8;
}

.dark-theme .recipes-promo-button:hover .recipes-promo-action[b-v7jhpfr0py] {
    background: #365045;
    border-color: #5e8372;
}

.dark-theme .btn-date-nav[b-v7jhpfr0py] {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

    .dark-theme .btn-date-nav:hover[b-v7jhpfr0py] {
        background: var(--color-surface);
        border-color: var(--color-border-soft);
        color: var(--color-green);
    }

.dark-theme .date-picker-bar[b-v7jhpfr0py] {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
}

.dark-theme .date-text[b-v7jhpfr0py] {
    color: var(--color-text-primary);
}

.dark-theme .btn-today-pill[b-v7jhpfr0py] {
    background: linear-gradient(180deg, #2f4a3d 0%, #2a4237 100%);
    border-color: #527565;
    color: #c9f3dc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}

    .dark-theme .btn-today-pill:hover[b-v7jhpfr0py] {
        background: linear-gradient(180deg, #355243 0%, #2f4a3d 100%);
        border-color: #6a927f;
        color: #e6fff1;
    }

.dark-theme .dietownik-modal-overlay[b-v7jhpfr0py] {
    background: rgba(7, 11, 9, 0.6);
}

.dark-theme .dietownik-welcome-modal[b-v7jhpfr0py] {
    background: linear-gradient(180deg, #2b3933 0%, #25322d 100%);
    border-color: #4f685d;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(111, 216, 159, 0.06) inset;
}

.dark-theme .dietownik-welcome-description[b-v7jhpfr0py] {
    color: #c5d5cc;
}

.dark-theme .dietownik-account-info[b-v7jhpfr0py] {
    background: #31423a;
    border-color: #577065;
}

.dark-theme .dietownik-account-info strong[b-v7jhpfr0py] {
    color: #e8f2ec;
}

.dark-theme .dietownik-account-info span[b-v7jhpfr0py],
.dark-theme .dietownik-input-group small[b-v7jhpfr0py],
.dark-theme .dietownik-welcome-footer[b-v7jhpfr0py] {
    color: #b6c8be;
}

.dark-theme .dietownik-input-group label[b-v7jhpfr0py] {
    color: #deebe4;
}

.dark-theme .dietownik-input-group input[b-v7jhpfr0py] {
    background: #24312c;
    border-color: #557063;
    color: #edf6f1;
}

.dark-theme .dietownik-input-group input[b-v7jhpfr0py]::placeholder {
    color: #93aa9f;
}

.dark-theme .dietownik-input-group input:hover[b-v7jhpfr0py] {
    border-color: #6b8b7b;
}

.dark-theme .dietownik-input-group input:focus[b-v7jhpfr0py] {
    border-color: #6fd89f;
    box-shadow: 0 0 0 3px rgba(111, 216, 159, 0.2);
}

.dark-theme .meal-plan-row[b-v7jhpfr0py] {
    background: linear-gradient(180deg, #2a3731 0%, #25322d 100%);
    border-color: #4f665b;
}

.dark-theme .meal-plan-row-title[b-v7jhpfr0py] {
    color: #eef8f2;
}

.dark-theme .meal-plan-time-icon[b-v7jhpfr0py] {
    color: #94e9bc;
}

.dark-theme .meal-plan-name-input[b-v7jhpfr0py],
.dark-theme .meal-plan-time-field[b-v7jhpfr0py] {
    background: #26332d;
    border-color: #60766b;
    color: #f0f7f2;
}

.dark-theme .meal-plan-time-display[b-v7jhpfr0py] {
    color: #f4fbf7;
}

.dark-theme .meal-plan-time-field:hover[b-v7jhpfr0py] {
    border-color: #6fd89f;
}

.dark-theme .meal-time-editor-card[b-v7jhpfr0py] {
    background: linear-gradient(180deg, #2a3731 0%, #25322d 100%);
    border-color: #4f665b;
}

.dark-theme .meal-time-editor-label[b-v7jhpfr0py] {
    color: #c8d9cf;
}

.dark-theme .meal-time-editor-select[b-v7jhpfr0py] {
    background: #26332d;
    color: #f0f7f2;
    border-color: #60766b;
    color-scheme: dark;
}

.dark-theme .meal-plan-row .form-control:disabled[b-v7jhpfr0py] {
    background: #24312c;
    border-color: #4f665b;
    color: #a9bdb3;
}

/* ============================================================
   KOMPAKTOWY WIDOK – ZMNIEJSZONE ODSTĘPY
   ============================================================
.compact-view .home-header {
    padding: 0.85rem 1rem 0.75rem;
    min-height: 144px;
}

.compact-view .home-header-top {
    margin-bottom: 0.5rem;
}

.compact-view .home-card {
    padding: 0.8rem 0.8rem;
    margin-bottom: 0.6rem;
}

.compact-view .meal-card-header {
    padding: 0.4rem 0.6rem;
    min-height: 48px;
    gap: 0.4rem;
}

.compact-view .meal-plan-row {
    padding: 0.5rem 0.55rem;
}

.compact-view .meal-plan-row-main {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.08fr) auto;
    gap: 0.3rem;
}

.compact-view .meal-plan-row-title {
    font-size: 0.8rem;
}

.compact-view .meal-plan-name-input,
.compact-view .meal-plan-time-field {
    min-height: 30px;
    font-size: 0.78rem;
}

.compact-view .meal-plan-time-field {
    width: 5.25rem;
}

.compact-view .meal-plan-time-display {
    font-size: 0.75rem;
}

.compact-view .meal-plan-time-icon {
    font-size: 0.8rem;
}

.compact-view .meal-item {
    padding: 0.4rem 0.6rem !important;
    gap: 0.4rem;
}

.compact-view .meal-title {
    font-size: 0.8rem;
    font-weight: 700;
}

.compact-view .meal-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
}

.compact-view .meal-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}

.compact-view .btn-quick-add {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
}

.compact-view .btn-meal-copy {
    padding: 0.24rem 0.42rem;
    font-size: 0.56rem;
    letter-spacing: 0.18px;
}

.compact-view .meal-copy-popover {
    margin: 0 0.55rem 0.6rem;
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
}

.compact-view .meal-copy-date-bar {
    margin-bottom: 0.45rem;
}

.compact-view .meal-copy-popover-subtitle,
.compact-view .meal-copy-date-field,
.compact-view .meal-copy-hint {
    font-size: 0.55rem;
}

.compact-view .meal-copy-date-field .form-control {
    min-height: 30px;
    font-size: 0.74rem;
}

.compact-view .btn-delete-entry {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
}

.compact-view .hero-title {
    font-size: 0.55rem;
}

.compact-view .hero-subtitle {
    font-size: 0.7rem;
}

.compact-view .calories-main-value {
    font-size: clamp(2.2rem, 8vw, 2.8rem);
}

.compact-view .calories-goal-value {
    font-size: 0.85rem;
}

.compact-view .macro-header {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.compact-view .home-progress-main {
    height: 8px;
}

.compact-view .home-progress-thin {
    height: 5px;
}

.compact-view .home-water-progress {
    height: 8px;
}

.compact-view .water-card {
    padding: 0.8rem 0.8rem;
}

.compact-view .water-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}

.compact-view .water-title {
    font-size: 0.8rem;
}

.compact-view .water-stats {
    font-size: 0.7rem;
}

.compact-view .btn-water-action {
    min-height: 34px;
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
}

.compact-view .water-actions {
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.compact-view .meal-empty-state {
    padding: 0.5rem 0.6rem;
    font-size: 0.65rem;
}

.compact-view .meal-plan-editor {
    gap: 0.55rem;
}

.compact-view .meal-plan-editor-list {
    gap: 0.4rem;
}

.compact-view .meal-plan-row {
    padding: 0.65rem 0.7rem;
}

.compact-view .meal-plan-row-title {
    font-size: 0.78rem;
}

.compact-view .meal-plan-row-time {
    font-size: 0.64rem;
}

.compact-view .date-picker-bar {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    padding: 0.2rem 0.25rem;
    gap: 0.3rem;
}

.compact-view .btn-date-nav {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
}

.compact-view .date-text {
    font-size: 0.82rem;
}

.compact-view .btn-today-pill {
    font-size: 0.6rem;
    padding: 0.22rem 0.72rem;
    letter-spacing: 0.62px;
}

.compact-view .btn-today-pill-wrapper.has-button {
    align-items: flex-end;
    min-height: 38px;
    margin-top: 0.56rem;
}

.compact-view .btn-today-pill-wrapper.is-empty {
    min-height: 38px;
    margin-top: 0.56rem;
}

.compact-view .cloud-status-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
}

.compact-view .btn-icon-profile {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    min-height: 32px;
}

.compact-view .app-brand .brand-title {
    font-size: 1.1rem;
}

.compact-view .divider-line {
    margin: 0.7rem 0;
}

.compact-view .hero-macros-block {
    gap: 0.5rem;
}

.compact-view .home-meal-list {
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.compact-view .meal-item-details {
    font-size: 0.65rem;
}

.compact-view .meal-item-name {
    font-size: 0.75rem;
}

.compact-view .meal-item-macros {
    font-size: 0.55rem;
}

/* ============================================================
   DODATKOWE ZABEZPIECZENIE – POPRAWNE WYŚWIETLANIE ZAKŁADEK
   ============================================================ */
.settings-tab-content .tab-pane.show.active[b-v7jhpfr0py] {
    display: block !important;
}

.settings-tab-content .tab-pane:not(.show)[b-v7jhpfr0py] {
    display: none !important;
}
