@import '_content/CarbCue.UI/CarbCue.UI.bnc4o7ak0o.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Web top nav — themed to La Petite Pâtisserie. Crème ground, espresso text,
   bordeaux active state, doré rule. The web keeps a top nav (more destinations
   than the app's two tabs). Tokens come from the RCL theme. */

.app-nav[b-o65xks19vo] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.55rem 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--dore);
}

.app-nav .brand[b-o65xks19vo] {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--espresso);
    text-decoration: none;
}

.app-nav nav[b-o65xks19vo] {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.app-nav nav[b-o65xks19vo]  a {
    color: var(--espresso-soft);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.app-nav nav[b-o65xks19vo]  a:hover {
    background: var(--creme);
    color: var(--espresso);
}

.app-nav nav[b-o65xks19vo]  a.active {
    background: var(--bordeaux);
    color: var(--bordeaux-ink);
    font-weight: 600;
}

.nav-actions[b-o65xks19vo] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-form[b-o65xks19vo] {
    margin: 0;
}

.logout-form button[b-o65xks19vo] {
    background: none;
    border: 1px solid var(--line);
    color: var(--espresso-soft);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}

.logout-form button:hover[b-o65xks19vo] {
    background: var(--creme);
    color: var(--espresso);
}

.greeting[b-o65xks19vo] {
    margin: 1rem auto 0;
    max-width: 720px;
    padding: 0 1rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--espresso);
}

.page-body[b-o65xks19vo] {
    display: block;
    padding: 0.5rem 1rem 3rem;
}

#blazor-error-ui[b-o65xks19vo] {
    background: var(--warn-bg);
    color: var(--warn-ink);
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-o65xks19vo] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-p77wpmu42l],
.components-reconnect-repeated-attempt-visible[b-p77wpmu42l],
.components-reconnect-failed-visible[b-p77wpmu42l],
.components-pause-visible[b-p77wpmu42l],
.components-resume-failed-visible[b-p77wpmu42l],
.components-rejoining-animation[b-p77wpmu42l] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-p77wpmu42l],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-p77wpmu42l],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-p77wpmu42l],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-p77wpmu42l],
#components-reconnect-modal.components-reconnect-retrying[b-p77wpmu42l],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-p77wpmu42l],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-p77wpmu42l],
#components-reconnect-modal.components-reconnect-failed[b-p77wpmu42l],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-p77wpmu42l] {
    display: block;
}


#components-reconnect-modal[b-p77wpmu42l] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-p77wpmu42l 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-p77wpmu42l 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-p77wpmu42l 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-p77wpmu42l]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-p77wpmu42l 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-p77wpmu42l {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-p77wpmu42l {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-p77wpmu42l {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-p77wpmu42l] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-p77wpmu42l] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-p77wpmu42l] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-p77wpmu42l] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-p77wpmu42l] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-p77wpmu42l] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-p77wpmu42l] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-p77wpmu42l 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-p77wpmu42l] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-p77wpmu42l {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Foods.razor.rz.scp.css */
/* Foods library — themed. Tokens from the RCL theme. */

.foods-page[b-2vk6q3zyhd] {
    max-width: 640px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1rem;
}

h1[b-2vk6q3zyhd] {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card[b-2vk6q3zyhd] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.card h2[b-2vk6q3zyhd] {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--espresso-soft);
    margin: 0 0 0.75rem;
}

.food-form[b-2vk6q3zyhd] {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 0.5rem;
}

.food-form label[b-2vk6q3zyhd] {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: var(--espresso-soft);
    gap: 0.3rem;
}

.food-form input[b-2vk6q3zyhd] {
    padding: 0.55rem 0.65rem;
    font-size: 1rem;
    color: var(--espresso);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.form-actions[b-2vk6q3zyhd] {
    display: flex;
    gap: 0.5rem;
}

.save-btn[b-2vk6q3zyhd] {
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--bordeaux-ink);
    background: var(--bordeaux);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.save-btn:disabled[b-2vk6q3zyhd] {
    opacity: 0.55;
}

.cancel-btn[b-2vk6q3zyhd] {
    padding: 0.55rem 1rem;
    font-family: inherit;
    color: var(--espresso);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.food-table[b-2vk6q3zyhd] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.food-table th[b-2vk6q3zyhd] {
    text-align: left;
    color: var(--espresso-soft);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.5rem;
    border-bottom: 2px solid var(--line);
}

.food-table td[b-2vk6q3zyhd] {
    padding: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.food-table .num[b-2vk6q3zyhd] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.row-actions[b-2vk6q3zyhd] {
    text-align: right;
    white-space: nowrap;
}

.row-actions button[b-2vk6q3zyhd] {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--espresso);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    margin-left: 0.35rem;
}

.row-actions button.danger[b-2vk6q3zyhd] {
    color: var(--alert-ink);
    border-color: var(--alert-ink);
}

.banner-invalid[b-2vk6q3zyhd] {
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-left: 4px solid var(--warn-ink);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.hint[b-2vk6q3zyhd] {
    color: var(--espresso-soft);
    font-size: 0.9rem;
}

/* Provenance: publisher allergen/ingredient context — small and quiet, never a claim. */
.dietary-notes[b-2vk6q3zyhd] {
    display: block;
    font-size: 11px;
    color: var(--espresso-soft);
    margin-top: 2px;
}
/* /Components/Pages/History.razor.rz.scp.css */
/* Dose history — themed. Macaron period badges (abricot/pistache/lavande) match
   the calculator chips so "which meal was that dose?" reads at a glance. Tokens
   from the RCL theme. */

.history-page[b-c43nrvemd6] {
    max-width: 720px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1rem;
}

h1[b-c43nrvemd6] {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hint[b-c43nrvemd6] {
    color: var(--espresso-soft);
    font-size: 0.9rem;
}

.log-list[b-c43nrvemd6] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.card[b-c43nrvemd6] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    box-shadow: var(--shadow);
}

.log-entry header[b-c43nrvemd6] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.log-entry time[b-c43nrvemd6] {
    color: var(--espresso-soft);
    font-size: 0.85rem;
}

.period-badge[b-c43nrvemd6] {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2A1A12;
}

.macaron-Breakfast[b-c43nrvemd6] { background: var(--abricot); }
.macaron-Lunch[b-c43nrvemd6] { background: var(--pistache); }
.macaron-Dinner[b-c43nrvemd6] { background: var(--lavande); }

.meal-badge[b-c43nrvemd6] {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.55rem;
    background: var(--creme);
    color: var(--espresso-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.totals[b-c43nrvemd6] {
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.totals strong[b-c43nrvemd6] { color: var(--espresso); }

.totals .given.differs strong[b-c43nrvemd6] {
    color: var(--bordeaux);
}

.totals .given.none[b-c43nrvemd6] {
    color: var(--espresso-soft);
    font-size: 0.85rem;
}

.log-detail[b-c43nrvemd6] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    font-size: 0.9rem;
    color: var(--espresso);
    font-variant-numeric: tabular-nums;
}

.log-detail strong[b-c43nrvemd6] { font-weight: 600; }

.log-snapshot[b-c43nrvemd6] {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--espresso-soft);
}

.log-notes[b-c43nrvemd6] {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--espresso);
    background: var(--creme);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
}

.pager[b-c43nrvemd6] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--espresso-soft);
}

.pager button[b-c43nrvemd6] {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--espresso);
    border-radius: 999px;
    font-family: inherit;
    cursor: pointer;
}

.pager button:disabled[b-c43nrvemd6] {
    color: var(--espresso-soft);
    opacity: 0.5;
    cursor: default;
}
/* /Components/Pages/Import.razor.rz.scp.css */
.import-page[b-0i1dbfybqk] {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.import-head h1[b-0i1dbfybqk] {
    margin: 0 0 4px;
    color: var(--bordeaux);
}

.caveat[b-0i1dbfybqk] {
    margin: 0 0 20px;
    padding: 10px 14px;
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-radius: 10px;
    font-size: 14px;
}

.hint[b-0i1dbfybqk] {
    color: var(--espresso-soft);
}

.card[b-0i1dbfybqk] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px 18px;
    margin-bottom: 16px;
}

/* --- controls ------------------------------------------------------------ */
.import-controls[b-0i1dbfybqk] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 20px;
}

.import-controls label[b-0i1dbfybqk] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--espresso-soft);
}

.import-controls select[b-0i1dbfybqk],
.import-controls input[b-0i1dbfybqk],
.meal-name input[b-0i1dbfybqk],
.carbs-field input[b-0i1dbfybqk] {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--espresso);
    padding: 7px 10px;
    font-size: 15px;
    font-family: var(--font-body);
}

.fetch-btn[b-0i1dbfybqk],
.save-btn[b-0i1dbfybqk] {
    border: 1px solid var(--bordeaux);
    background: var(--bordeaux);
    color: var(--bordeaux-ink);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
}

.fetch-btn:disabled[b-0i1dbfybqk],
.save-btn:disabled[b-0i1dbfybqk] {
    opacity: 0.5;
    cursor: default;
}

/* --- block --------------------------------------------------------------- */
.block-head[b-0i1dbfybqk] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.block-name[b-0i1dbfybqk] {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--espresso);
}

.provenance[b-0i1dbfybqk] {
    display: block;
    font-size: 12px;
    color: var(--espresso-soft);
    margin-top: 2px;
}

.meal-name[b-0i1dbfybqk] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: var(--espresso-soft);
}

.meal-name input[b-0i1dbfybqk] {
    min-width: 220px;
}

/* --- items --------------------------------------------------------------- */
.items[b-0i1dbfybqk] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.item[b-0i1dbfybqk] {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.item:last-child[b-0i1dbfybqk] {
    border-bottom: 0;
}

.item.picked[b-0i1dbfybqk] {
    background: color-mix(in srgb, var(--pistache) 20%, transparent);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.tick input[b-0i1dbfybqk] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--bordeaux);
}

.item-line[b-0i1dbfybqk] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.item-name[b-0i1dbfybqk] {
    font-weight: 600;
}

.serving[b-0i1dbfybqk] {
    font-size: 12px;
    color: var(--espresso-soft);
}

.in-library[b-0i1dbfybqk] {
    font-size: 11px;
    color: var(--ok-ink);
    background: var(--ok-bg);
    border-radius: 999px;
    padding: 1px 8px;
}

.allergens[b-0i1dbfybqk] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.chip[b-0i1dbfybqk] {
    font-size: 11px;
    color: var(--espresso-soft);
    background: var(--creme);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1px 8px;
}

.discrepancy[b-0i1dbfybqk] {
    margin-top: 5px;
    font-size: 12px;
    color: var(--warn-ink);
}

.carbs-field[b-0i1dbfybqk] {
    display: flex;
    align-items: center;
    gap: 5px;
}

.carbs-field input[b-0i1dbfybqk] {
    width: 68px;
    text-align: right;
}

.carbs-field .unit[b-0i1dbfybqk] {
    font-size: 12px;
    color: var(--espresso-soft);
}

/* --- actions ------------------------------------------------------------- */
.block-actions[b-0i1dbfybqk] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.picked-count[b-0i1dbfybqk] {
    font-size: 13px;
    color: var(--espresso-soft);
}

.banner.invalid[b-0i1dbfybqk] {
    margin-top: 12px;
    padding: 9px 12px;
    background: var(--alert-bg);
    color: var(--alert-ink);
    border-radius: 8px;
    font-size: 14px;
}

.saved[b-0i1dbfybqk] {
    margin-top: 12px;
    padding: 9px 12px;
    background: var(--ok-bg);
    color: var(--ok-ink);
    border-radius: 8px;
    font-size: 14px;
}

.saved a[b-0i1dbfybqk] {
    color: var(--ok-ink);
    font-weight: 600;
}

@media (max-width: 620px) {
    .item[b-0i1dbfybqk] {
        grid-template-columns: auto 1fr;
    }

    .carbs-field[b-0i1dbfybqk] {
        grid-column: 2;
        justify-content: flex-start;
    }
}


.school-label[b-0i1dbfybqk] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--espresso-soft);
}

.school-label strong[b-0i1dbfybqk] {
    color: var(--espresso);
    font-weight: 650;
}

.inline-toggle[b-0i1dbfybqk] {
    flex-direction: row !important;
    align-items: center;
    gap: 7px !important;
    min-height: 35px;
}

.inline-toggle input[b-0i1dbfybqk] {
    accent-color: var(--bordeaux);
}

.gf-filter-note[b-0i1dbfybqk] {
    margin: 0 0 14px;
    color: var(--espresso-soft);
    font-size: 13px;
}

.dupe-warning[b-0i1dbfybqk] {
    color: var(--warn-ink);
    font-size: 12px;
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* Web login — themed to match. Tokens from the RCL theme. */

.login-page[b-jpg1tnxtv3] {
    max-width: 400px;
    margin: 9vh auto 0;
    padding: 1rem;
}

h1[b-jpg1tnxtv3] {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

.card[b-jpg1tnxtv3] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.card h2[b-jpg1tnxtv3] {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--espresso-soft);
    margin: 0 0 0.75rem;
}

.card label[b-jpg1tnxtv3] {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--espresso-soft);
    gap: 0.3rem;
    margin-bottom: 0.85rem;
}

.card input[b-jpg1tnxtv3] {
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    color: var(--espresso);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 10px;
}

.card button[b-jpg1tnxtv3] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--bordeaux-ink);
    background: var(--bordeaux);
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.card button:disabled[b-jpg1tnxtv3] {
    opacity: 0.55;
    cursor: default;
}

.login-error[b-jpg1tnxtv3] {
    background: var(--alert-bg);
    color: var(--alert-ink);
    border-left: 4px solid var(--alert-ink);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}
/* /Components/Pages/MealEditor.razor.rz.scp.css */
/* Meal editor — themed. Tokens from the RCL theme. */

.meal-editor-page[b-a4zceoqd2x] {
    max-width: 720px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1rem;
}

h1[b-a4zceoqd2x] {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.total-line[b-a4zceoqd2x] {
    color: var(--espresso-soft);
    margin-bottom: 1rem;
}

.total-line strong[b-a4zceoqd2x] {
    color: var(--espresso);
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.card[b-a4zceoqd2x] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.card h2[b-a4zceoqd2x] {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--espresso-soft);
    margin: 0 0 0.75rem;
}

.item-table[b-a4zceoqd2x] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.item-table th[b-a4zceoqd2x] {
    text-align: left;
    color: var(--espresso-soft);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.5rem;
    border-bottom: 2px solid var(--line);
}

.item-table td[b-a4zceoqd2x] {
    padding: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.item-table .num[b-a4zceoqd2x] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.qty-cell input[b-a4zceoqd2x] {
    width: 5rem;
    padding: 0.35rem 0.5rem;
    color: var(--espresso);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.row-actions[b-a4zceoqd2x] {
    text-align: right;
}

.row-actions button[b-a4zceoqd2x] {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--espresso);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.row-actions button.danger[b-a4zceoqd2x] {
    color: var(--alert-ink);
    border-color: var(--alert-ink);
}

.add-item-form[b-a4zceoqd2x] {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.add-item-form label[b-a4zceoqd2x] {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: var(--espresso-soft);
    gap: 0.3rem;
}

.add-item-form input[b-a4zceoqd2x] {
    padding: 0.55rem 0.65rem;
    font-size: 1rem;
    color: var(--espresso);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.save-btn[b-a4zceoqd2x] {
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--bordeaux-ink);
    background: var(--bordeaux);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.save-btn:disabled[b-a4zceoqd2x] {
    opacity: 0.55;
}

.typeahead[b-a4zceoqd2x] {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.typeahead li + li[b-a4zceoqd2x] {
    border-top: 1px solid var(--line);
}

.typeahead button[b-a4zceoqd2x] {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 0.8rem;
    color: var(--espresso);
    background: var(--surface);
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.typeahead button:hover[b-a4zceoqd2x] {
    background: var(--creme);
}

.typeahead .carbs[b-a4zceoqd2x] {
    color: var(--espresso-soft);
    font-variant-numeric: tabular-nums;
}

.banner-invalid[b-a4zceoqd2x] {
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-left: 4px solid var(--warn-ink);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.hint[b-a4zceoqd2x] {
    color: var(--espresso-soft);
    font-size: 0.9rem;
}

/* Provenance: publisher allergen/ingredient context — small and quiet, never a claim. */
.dietary-notes[b-a4zceoqd2x] {
    display: block;
    font-size: 11px;
    color: var(--espresso-soft);
    margin-top: 2px;
}


.meal-name-card[b-a4zceoqd2x] {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
}

.meal-name-card label[b-a4zceoqd2x] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--espresso-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.meal-name-card input[b-a4zceoqd2x] {
    min-width: 16rem;
    padding: 0.55rem 0.65rem;
    color: var(--espresso);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.rename-saved[b-a4zceoqd2x] {
    color: var(--ok-ink);
    font-size: 0.9rem;
}
/* /Components/Pages/Meals.razor.rz.scp.css */
/* Meals list — themed. Tokens from the RCL theme. */

.meals-page[b-32jbjtxzl0] {
    max-width: 640px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1rem;
}

h1[b-32jbjtxzl0] {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card[b-32jbjtxzl0] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.card h2[b-32jbjtxzl0] {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--espresso-soft);
    margin: 0 0 0.75rem;
}

.new-meal-form[b-32jbjtxzl0] {
    display: flex;
    gap: 0.75rem;
}

.new-meal-form input[b-32jbjtxzl0] {
    flex: 1;
    padding: 0.55rem 0.65rem;
    font-size: 1rem;
    color: var(--espresso);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 10px;
}

.save-btn[b-32jbjtxzl0] {
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--bordeaux-ink);
    background: var(--bordeaux);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.save-btn:disabled[b-32jbjtxzl0] {
    opacity: 0.55;
}

.meal-table[b-32jbjtxzl0] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.meal-table th[b-32jbjtxzl0] {
    text-align: left;
    color: var(--espresso-soft);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.5rem;
    border-bottom: 2px solid var(--line);
}

.meal-table td[b-32jbjtxzl0] {
    padding: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.meal-table .num[b-32jbjtxzl0] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.row-actions[b-32jbjtxzl0] {
    text-align: right;
}

.row-actions button[b-32jbjtxzl0] {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--espresso);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.row-actions button.danger[b-32jbjtxzl0] {
    color: var(--alert-ink);
    border-color: var(--alert-ink);
}

.banner-invalid[b-32jbjtxzl0] {
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-left: 4px solid var(--warn-ink);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
}

.hint[b-32jbjtxzl0] {
    color: var(--espresso-soft);
    font-size: 0.9rem;
}


.icon-btn[b-32jbjtxzl0] {
    margin-left: 0.35rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--espresso);
    border-radius: 999px;
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
}

.rename-inline[b-32jbjtxzl0] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.rename-inline input[b-32jbjtxzl0] {
    min-width: 12rem;
    padding: 0.35rem 0.45rem;
    color: var(--espresso);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.rename-inline button[b-32jbjtxzl0] {
    border: 1px solid var(--bordeaux);
    background: var(--bordeaux);
    color: var(--bordeaux-ink);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}
/* /Components/Pages/Parameters.razor.rz.scp.css */
/* Parameters editor — themed. Tokens from the RCL theme. */

.params-page[b-qh1d8qci4l] {
    max-width: 640px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1rem;
}

h1[b-qh1d8qci4l] {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.patient-line[b-qh1d8qci4l] {
    color: var(--espresso-soft);
    margin-bottom: 1rem;
}

.card[b-qh1d8qci4l] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.card h2[b-qh1d8qci4l] {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 0.75rem;
}

.name-field[b-qh1d8qci4l] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--espresso-soft);
    margin-bottom: 0.5rem;
    max-width: 22rem;
}

.name-field input[b-qh1d8qci4l] {
    padding: 0.55rem 0.65rem;
    font-size: 1.1rem;
    color: var(--espresso);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 10px;
}

.name-unit[b-qh1d8qci4l] {
    display: block;
    color: var(--espresso-soft);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.field-grid[b-qh1d8qci4l] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.field-grid label[b-qh1d8qci4l] {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--espresso-soft);
    gap: 0.3rem;
}

.field-grid input[b-qh1d8qci4l] {
    padding: 0.55rem 0.65rem;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    color: var(--espresso);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.save-btn[b-qh1d8qci4l] {
    padding: 0.7rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--bordeaux-ink);
    background: var(--bordeaux);
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.save-btn:disabled[b-qh1d8qci4l] {
    opacity: 0.55;
    cursor: default;
}

.banner-invalid[b-qh1d8qci4l] {
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-left: 4px solid var(--warn-ink);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.banner-saved[b-qh1d8qci4l] {
    background: var(--ok-bg);
    color: var(--ok-ink);
    border-left: 4px solid var(--ok-ink);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.hint[b-qh1d8qci4l] {
    color: var(--espresso-soft);
    font-size: 0.9rem;
}

.dexcom-card h2[b-qh1d8qci4l] {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.dexcom-actions[b-qh1d8qci4l] {
    margin: 0.5rem 0 0;
}

.dexcom-connect[b-qh1d8qci4l],
.dexcom-disconnect[b-qh1d8qci4l] {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
}

.dexcom-connect[b-qh1d8qci4l] {
    background: var(--bordeaux);
    color: var(--bordeaux-ink);
    border: none;
}

.dexcom-disconnect[b-qh1d8qci4l] {
    background: var(--surface);
    color: var(--espresso);
    border: 1px solid var(--line);
}


.toggle-line[b-qh1d8qci4l] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--espresso);
    margin: 0.35rem 0;
}

.toggle-line input[b-qh1d8qci4l] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--bordeaux);
}

.gf-caveat[b-qh1d8qci4l] {
    margin: 0.35rem 0 0.85rem;
    color: var(--espresso-soft);
    font-size: 0.85rem;
}

.school-actions[b-qh1d8qci4l] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.secondary-btn[b-qh1d8qci4l] {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--espresso);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.secondary-btn:disabled[b-qh1d8qci4l] {
    opacity: 0.55;
    cursor: default;
}
/* /Components/Pages/Reports.razor.rz.scp.css */
.reports-page[b-c6ysg2tive] {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.reports-head h1[b-c6ysg2tive] {
    margin: 0 0 4px;
    color: var(--bordeaux);
}

.delay-note[b-c6ysg2tive] {
    margin: 0 0 20px;
    padding: 10px 14px;
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-radius: 10px;
    font-size: 14px;
}

.hint[b-c6ysg2tive] {
    color: var(--espresso-soft);
}

.card[b-c6ysg2tive] {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.connect-cta[b-c6ysg2tive] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.btn[b-c6ysg2tive],
.print-btn[b-c6ysg2tive],
.today-btn[b-c6ysg2tive] {
    display: inline-block;
    border: 1px solid var(--bordeaux);
    background: var(--bordeaux);
    color: var(--bordeaux-ink);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

/* --- controls ------------------------------------------------------------ */
.reports-controls[b-c6ysg2tive] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.span-toggle[b-c6ysg2tive] {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.span-toggle button[b-c6ysg2tive] {
    border: 0;
    background: var(--surface);
    color: var(--espresso);
    padding: 7px 18px;
    font-size: 14px;
    cursor: pointer;
}

.span-toggle button.active[b-c6ysg2tive] {
    background: var(--bordeaux);
    color: var(--bordeaux-ink);
}

.date-nav[b-c6ysg2tive] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.date-nav button[b-c6ysg2tive] {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--espresso);
    border-radius: 999px;
    min-width: 34px;
    height: 34px;
    font-size: 16px;
    cursor: pointer;
}

.date-nav button:disabled[b-c6ysg2tive] {
    opacity: 0.4;
    cursor: default;
}

.range-label[b-c6ysg2tive] {
    min-width: 200px;
    text-align: center;
    font-weight: 600;
}

.today-btn[b-c6ysg2tive] {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

.print-btn[b-c6ysg2tive] {
    margin-left: auto;
}

/* --- TIR tiles ----------------------------------------------------------- */
.tir-tiles[b-c6ysg2tive] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.tile[b-c6ysg2tive] {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tile-label[b-c6ysg2tive] {
    font-size: 13px;
    font-weight: 600;
}

.tile-icon[b-c6ysg2tive] {
    font-size: 11px;
}

.tile-value[b-c6ysg2tive] {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.tile-sub[b-c6ysg2tive] {
    font-size: 12px;
    color: var(--espresso-soft);
}

.tile-below[b-c6ysg2tive] {
    background: var(--alert-bg);
    color: var(--alert-ink);
    border-color: var(--alert-ink);
}

.tile-inrange[b-c6ysg2tive] {
    background: var(--ok-bg);
    color: var(--ok-ink);
    border-color: var(--ok-ink);
}

.tile-above[b-c6ysg2tive] {
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-color: var(--warn-ink);
}

.tile-summary[b-c6ysg2tive] {
    justify-content: center;
    gap: 5px;
}

.tile-row[b-c6ysg2tive] {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--espresso-soft);
}

.tile-row strong[b-c6ysg2tive] {
    color: var(--espresso);
}

/* --- legend -------------------------------------------------------------- */
.chart-legend[b-c6ysg2tive] {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 10px 2px 20px;
    font-size: 13px;
    color: var(--espresso-soft);
}

.lg[b-c6ysg2tive] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lg[b-c6ysg2tive]::before {
    content: "";
    display: inline-block;
}

.lg-trace[b-c6ysg2tive]::before {
    width: 16px;
    height: 2px;
    background: var(--espresso);
}

.lg-band[b-c6ysg2tive]::before {
    width: 14px;
    height: 12px;
    border-radius: 3px;
    background: var(--pistache);
    opacity: 0.5;
}

.lg-dose[b-c6ysg2tive]::before {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid var(--bordeaux);
}

.lg-event[b-c6ysg2tive]::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warn-ink);
}

/* --- events table -------------------------------------------------------- */
.events-table[b-c6ysg2tive] {
    margin-top: 8px;
}

.events-table summary[b-c6ysg2tive] {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 8px;
}

.events-table table[b-c6ysg2tive] {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.events-table th[b-c6ysg2tive],
.events-table td[b-c6ysg2tive] {
    text-align: left;
    padding: 7px 10px;
    border-bottom: 1px solid var(--line);
}

.events-table th[b-c6ysg2tive] {
    color: var(--espresso-soft);
    font-weight: 600;
}

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 720px) {
    .tir-tiles[b-c6ysg2tive] {
        grid-template-columns: repeat(2, 1fr);
    }

    .print-btn[b-c6ysg2tive] {
        margin-left: 0;
    }

    .range-label[b-c6ysg2tive] {
        min-width: 150px;
    }
}

/* --- print --------------------------------------------------------------- */
.print-only[b-c6ysg2tive],
.range-print[b-c6ysg2tive] {
    display: none;
}

@media print {
    .no-print[b-c6ysg2tive] {
        display: none !important;
    }

    .print-only[b-c6ysg2tive] {
        display: block;
    }

    .range-print[b-c6ysg2tive] {
        font-weight: 600;
        margin: 0 0 12px;
    }

    .reports-page[b-c6ysg2tive] {
        padding: 0;
    }

    .delay-note[b-c6ysg2tive] {
        border: 1px solid #bbb;
    }

    .tile[b-c6ysg2tive],
    .events-table[b-c6ysg2tive] {
        break-inside: avoid;
    }
}
