@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&display=swap');

:root {
    --font-brand-script: "Caveat", "Segoe Script", "Brush Script MT", "Apple Chancery", "Bradley Hand", cursive;
    --mpr-cream: #fbf7ef;
    --mpr-brown: #4b2d1f;
    --mpr-caramel: #c9822f;
    --mpr-gold: #e7ad36;
    --mpr-sage: #8ca06d;
    --mpr-deep-green: #1f321f;
    --mpr-soft-green: #dfe9d2;
    --warm-white: #FCFAF5;
    --soft-cream: #F6F1E7;
    --mist-gray: #E9E6DF;
    --sage: #BFD3C1;
    --basil: #6FA377;
    --herb: #4F7A57;
    --tomato: #E46F5A;
    --citrus: #E8B94E;
    --olive: #C6A04A;
    --plum: #7F4B5D;
    --ink: #28352A;
    --muted: #6F756B;
    --white: #FFFFFF;
    --shadow: 0 18px 45px rgba(63, 72, 57, 0.12);
    --radius: 8px;
}

/* Party Planner */
.party-planner-heading {
    margin-bottom: 1.25rem;
}

.party-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
    border: 1px solid rgba(233, 230, 223, 0.92);
    border-radius: 1.5rem;
    padding: 1.25rem;
    background:
        linear-gradient(135deg, rgba(34, 74, 45, 0.92), rgba(62, 88, 55, 0.74)),
        radial-gradient(circle at 18% 20%, rgba(232, 185, 78, 0.34), transparent 32%);
    color: var(--warm-white);
    box-shadow: 0 24px 70px rgba(33, 45, 35, 0.16);
}

.party-hero-card h2,
.party-hero-card p {
    margin: 0;
}

.party-hero-card h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.95;
}

.party-hero-card .eyebrow,
.party-hero-card .muted {
    color: rgba(255, 250, 240, 0.82);
}

.party-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.party-stat-grid span,
.party-summary-card .party-mini-list span {
    display: grid;
    gap: 0.2rem;
    align-content: center;
    border: 1px solid rgba(255, 250, 240, 0.28);
    border-radius: 1rem;
    padding: 0.85rem;
    background: rgba(255, 250, 240, 0.12);
}

.party-stat-grid strong {
    font-size: 1.05rem;
}

.party-stat-grid small {
    color: rgba(255, 250, 240, 0.74);
    font-weight: 800;
}

.party-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.party-event-layout {
    grid-template-columns: minmax(0, 1fr);
}

.party-section-nav {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.85rem;
    margin: 0 0 0.75rem;
    scrollbar-width: thin;
}

.party-section-nav button {
    flex: 0 0 auto;
    border: 1px solid rgba(79, 122, 87, 0.22);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 250, 240, 0.84);
    color: var(--forest);
    font-weight: 900;
}

.party-section-card {
    margin-bottom: 0.85rem;
    border: 1px solid rgba(79, 122, 87, 0.18);
    border-radius: 1.2rem;
    background: rgba(255, 250, 240, 0.9);
    box-shadow: 0 14px 34px rgba(33, 45, 35, 0.08);
    overflow: hidden;
}

.party-section-card:not(.is-collapsed) {
    border-color: rgba(79, 122, 87, 0.28);
    box-shadow: 0 20px 48px rgba(33, 45, 35, 0.12);
}

.party-section-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    border: 0;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(245, 238, 222, 0.86));
    color: var(--forest);
    text-align: left;
    cursor: pointer;
}

.party-section-toggle span {
    display: grid;
    gap: 0.2rem;
}

.party-section-toggle small {
    color: var(--tomato);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.party-section-toggle strong {
    font-size: 1.05rem;
}

.party-section-toggle em {
    color: var(--muted);
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
}

.party-section-badge {
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: rgba(79, 122, 87, 0.12);
    color: var(--forest);
    font-size: 0.78rem;
}

.party-section-chevron {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: rgba(79, 122, 87, 0.12);
    color: var(--forest);
    font-style: normal;
    font-weight: 950;
    transition: transform 160ms ease;
}

.party-section-card:not(.is-collapsed) .party-section-chevron {
    transform: rotate(45deg);
}

.party-section-body {
    padding: 1rem;
}

.party-section-body[hidden] {
    display: none;
}

.party-section-action {
    margin-bottom: 0.8rem;
}

.party-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.party-form-grid label,
.party-inline-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--herb);
    font-weight: 900;
}

.party-span-2 {
    grid-column: span 2;
}

.party-form-card input,
.party-form-card select,
.party-form-card textarea,
.party-inline-form input,
.party-inline-form select {
    min-width: 0;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
}

.party-menu-builder {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(79, 122, 87, 0.16);
    border-radius: 1rem;
    background: rgba(255, 250, 240, 0.76);
}

.party-menu-group {
    margin: 0;
    padding: 0.85rem;
    border: 1px solid rgba(79, 122, 87, 0.14);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.72);
}

.party-menu-group legend {
    padding: 0 0.35rem;
    color: var(--herb);
    font-weight: 900;
}

.party-menu-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.party-mode-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.party-menu-option {
    display: flex !important;
    align-items: center;
    gap: 0.4rem !important;
    min-height: 2.4rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(79, 122, 87, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
}

.party-menu-option input {
    width: auto;
}

.party-selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.party-selected-chips span {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(79, 122, 87, 0.12);
    color: var(--forest);
    font-weight: 900;
    font-size: 0.82rem;
}

.party-custom-menu-list {
    display: grid;
    gap: 0.6rem;
}

.party-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.party-role-grid label {
    display: grid;
    gap: 0.35rem;
}

.party-role-grid span {
    color: var(--forest);
    font-weight: 900;
    font-size: 0.9rem;
}

.party-custom-menu-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.45fr);
    gap: 0.6rem;
    align-items: center;
}

.party-summary-card {
    display: grid;
    gap: 0.85rem;
}

.party-summary-card h2,
.party-summary-card p {
    margin: 0;
}

.party-mini-list {
    display: grid;
    gap: 0.55rem;
}

.party-master-summary {
    display: grid;
    gap: 1rem;
}

.party-master-group {
    display: grid;
    gap: 0.55rem;
}

.party-master-group h3 {
    margin: 0;
    color: var(--herb);
    font-size: 1rem;
}

.party-master-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.party-master-grid article {
    display: grid;
    gap: 0.2rem;
    min-height: 0;
    border: 1px solid rgba(233, 230, 223, 0.88);
    border-radius: 0.9rem;
    padding: 0.75rem;
    background: rgba(255, 250, 240, 0.78);
}

.party-master-grid strong {
    color: var(--forest);
}

.party-master-grid span {
    color: var(--herb-dark);
    font-weight: 950;
}

.party-master-grid small {
    color: var(--muted);
    line-height: 1.35;
}

.party-summary-card .party-mini-list span {
    border-color: rgba(79, 122, 87, 0.18);
    background: rgba(191, 211, 193, 0.18);
}

.party-import-form,
.party-import-review,
.party-cocktail-panel {
    display: grid;
    gap: 0.85rem;
}

.party-import-action {
    display: flex;
    align-items: end;
}

.party-import-status {
    border-radius: 0.9rem;
    padding: 0.75rem;
    background: rgba(191, 211, 193, 0.2);
    color: var(--forest);
    font-weight: 900;
}

.party-import-status.is-error {
    background: rgba(228, 111, 90, 0.14);
    color: #9d3a29;
}

.party-import-review-head h3,
.party-cocktail-panel h3 {
    margin: 0;
}

.party-import-review-grid,
.party-cocktail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.party-import-review-card,
.party-import-simple-list article,
.party-cocktail-card {
    display: grid;
    gap: 0.55rem;
    border: 1px solid rgba(79, 122, 87, 0.16);
    border-radius: 1rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.76);
}

.party-import-review-card input,
.party-import-review-card textarea,
.party-import-simple-list input,
.party-import-simple-list textarea,
.party-import-form input,
.party-import-form select {
    min-width: 0;
    border-radius: 0.8rem;
}

.party-import-simple-list {
    display: grid;
    gap: 0.55rem;
}

.compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.party-import-history {
    display: grid;
    gap: 0.45rem;
    border-top: 1px solid rgba(79, 122, 87, 0.12);
    padding-top: 0.85rem;
}

.party-cocktail-card h4,
.party-cocktail-card p,
.party-cocktail-card dl,
.party-cocktail-card ul {
    margin: 0;
}

.party-cocktail-card dl {
    display: grid;
    gap: 0.25rem;
}

.party-cocktail-card dl div {
    display: flex;
    gap: 0.35rem;
}

.party-cocktail-card dt {
    color: var(--herb);
    font-weight: 900;
}

.party-cocktail-card dd {
    margin: 0;
}

.party-cocktail-update {
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
}

.party-cocktail-update label {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    color: var(--forest);
    font-weight: 900;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.party-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.party-estimate-card,
.party-item-group,
.party-task-list,
.party-timeline,
.party-summary-card {
    display: grid;
}

.party-estimate-card {
    display: block;
    gap: 0.7rem;
    min-height: 0;
}

.party-estimate-card > *:first-child {
    margin-top: 0;
}

.party-estimate-card h2 {
    margin: 0;
}

.party-estimate-subhead {
    margin: 0.75rem 0 0.15rem;
    color: var(--herb);
    font-size: 0.92rem;
}

.party-estimate-list,
.party-timeline,
.party-task-list,
.party-items-grid,
.party-vendor-grid {
    display: grid;
    gap: 0.75rem;
}

.party-estimate-list div,
.party-item-row,
.party-timeline div,
.party-task-list p {
    display: grid;
    gap: 0.18rem;
    border: 1px solid rgba(233, 230, 223, 0.86);
    border-radius: 0.9rem;
    padding: 0.75rem;
    background: rgba(255, 250, 240, 0.74);
}

.party-estimate-list span {
    color: var(--herb-dark);
    font-weight: 950;
}

.party-estimate-list small,
.party-task-list small,
.party-item-row small,
.party-vendor-card small {
    color: var(--muted);
}

.party-inline-form {
    display: grid;
    grid-template-columns: 1fr 1fr 0.6fr 0.6fr 0.7fr auto;
    gap: 0.6rem;
    align-items: end;
    margin-bottom: 1rem;
}

.party-items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.party-item-group {
    gap: 0.55rem;
}

.party-item-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}

.party-item-row form {
    margin: 0;
}

.party-item-row select,
.party-vendor-filter select {
    min-height: 2.4rem;
    border-radius: 999px;
}

.party-vendor-filter {
    min-width: min(100%, 18rem);
}

.party-vendor-filter select {
    width: 100%;
}

.party-vendor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.party-vendor-card {
    display: grid;
    gap: 0.4rem;
    border: 1px solid rgba(233, 230, 223, 0.86);
    border-radius: 1rem;
    padding: 0.85rem;
    background: rgba(255, 250, 240, 0.78);
}

.party-vendor-card h3,
.party-vendor-card p {
    margin: 0;
}

.party-vendor-card em {
    color: var(--tomato);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

.party-vendor-add {
    grid-template-columns: 1fr 0.8fr 0.7fr 1fr 1fr 1fr auto;
}

@media (max-width: 760px) {
    .party-hero-card,
    .party-layout,
    .party-card-grid,
    .party-form-grid,
    .party-items-grid,
    .party-vendor-grid,
    .party-import-review-grid,
    .party-cocktail-grid,
    .party-inline-form,
    .party-vendor-add,
    .party-menu-options,
    .party-role-grid,
    .party-custom-menu-row,
    .party-master-grid {
        grid-template-columns: 1fr;
    }

    .party-section-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .party-section-toggle em {
        display: none;
    }

    .party-section-badge {
        justify-self: start;
        grid-column: 1;
    }

    .party-section-chevron {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .party-span-2 {
        grid-column: span 1;
    }

    .party-stat-grid {
        grid-template-columns: 1fr;
    }

    .party-item-row {
        grid-template-columns: 1fr;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(191, 211, 193, 0.38), transparent 34rem),
        linear-gradient(180deg, var(--warm-white), var(--soft-cream));
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--herb);
    text-decoration: none;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--mist-gray);
    border-radius: var(--radius);
    padding: 0.75rem 0.85rem;
    background: var(--white);
    color: var(--ink);
}

select option {
    color: var(--ink);
    background: var(--white);
}

label {
    display: grid;
    gap: 0.4rem;
    color: var(--herb);
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    font-size: clamp(2.35rem, 7vw, 5.25rem);
    line-height: 0.98;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.35rem;
}

h3 {
    font-size: 1.05rem;
}

.app-shell {
    width: min(1180px, calc(100% - 1.25rem));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    font-weight: 900;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--herb);
    color: var(--warm-white);
    box-shadow: var(--shadow);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    font-weight: 700;
}

.top-nav a {
    color: var(--ink);
}

.nav-pill {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: var(--sage);
}

.content {
    padding: 1.25rem 0 3rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: center;
    min-height: 74vh;
}

.hero-copy p {
    max-width: 620px;
    font-size: 1.2rem;
    color: var(--muted);
}

.eyebrow {
    margin-bottom: 0.6rem;
    color: var(--tomato);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.produce-board {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius);
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(246, 241, 231, 0.84)),
        repeating-linear-gradient(90deg, rgba(198, 160, 74, 0.09) 0 12px, transparent 12px 24px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.produce {
    position: absolute;
    display: block;
    border-radius: 999px;
    box-shadow: inset -14px -16px 28px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(63, 72, 57, 0.13);
}

.tomato { width: 125px; height: 125px; left: 14%; top: 18%; background: var(--tomato); }
.herb { width: 150px; height: 70px; right: 13%; top: 18%; background: var(--basil); transform: rotate(-18deg); }
.lemon { width: 142px; height: 92px; left: 20%; bottom: 18%; background: var(--citrus); transform: rotate(16deg); }
.plum { width: 96px; height: 96px; right: 22%; bottom: 18%; background: var(--plum); }
.leaf { width: 105px; height: 52px; right: 32%; top: 48%; background: var(--sage); transform: rotate(35deg); }

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    border: 0;
    border-radius: 999px;
    padding: 0.72rem 1.05rem;
    background: var(--herb);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
}

.button.primary {
    background: var(--herb);
}

.button.ghost {
    background: var(--white);
    color: var(--herb);
    border: 1px solid var(--sage);
}

.button.gold {
    background: linear-gradient(135deg, #ffc42d, #e8a900);
    color: #231a04;
}

.button.tomato {
    background: var(--tomato);
}

.button:disabled,
button.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.button.small {
    min-height: 2.25rem;
    padding: 0.48rem 0.85rem;
    font-size: 0.9rem;
}

.card,
.metric-card,
.mini-card {
    border: 1px solid rgba(233, 230, 223, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(63, 72, 57, 0.08);
}

.card {
    padding: 1.15rem;
}

.auth-panel,
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
    gap: 1.25rem;
    align-items: start;
}

.page-heading,
.recipe-hero,
.placeholder-panel {
    padding: 2rem 0;
}

.form-card {
    display: grid;
    gap: 1rem;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0.25rem;
    z-index: 2;
}

.password-toggle:hover,
.password-toggle:focus {
    opacity: 0.75;
    outline: 2px solid rgba(80, 130, 90, 0.25);
    border-radius: 999px;
}

.form-note {
    margin-bottom: 0;
    color: var(--muted);
}

.two-col,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.check-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.check-row input {
    width: auto;
}

.metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.metric-card {
    padding: 1rem;
}

.metric-card span {
    display: block;
    color: var(--herb);
    font-size: 2rem;
    font-weight: 950;
}

.metric-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.quick-add-bar {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.15rem;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(233, 230, 223, 0.95);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 241, 231, 0.86)),
        rgba(191, 211, 193, 0.18);
    box-shadow: 0 14px 34px rgba(63, 72, 57, 0.09);
}

.quick-add-bar h2 {
    margin-bottom: 0.25rem;
}

.quick-add-bar p {
    margin-bottom: 0;
}

.quick-add-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.quick-action {
    display: grid;
    gap: 0.3rem;
    place-items: center;
    min-height: 4.7rem;
    border: 1px solid rgba(191, 211, 193, 0.9);
    border-radius: var(--radius);
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    text-align: center;
    font-size: 0.86rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(63, 72, 57, 0.06);
}

.quick-action span {
    display: inline-grid;
    place-items: center;
    min-width: 2.1rem;
    min-height: 2.1rem;
    border-radius: 999px;
    background: var(--sage);
    color: var(--herb);
    font-size: 0.72rem;
    font-weight: 950;
}

.daily-delicious-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 1.25rem;
    align-items: stretch;
    margin-bottom: 1.4rem;
    padding: 1.35rem;
    border: 1px solid rgba(233, 230, 223, 0.95);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 241, 231, 0.72)),
        rgba(232, 185, 78, 0.1);
    box-shadow: var(--shadow);
}

.daily-delicious-copy {
    display: grid;
    align-content: center;
    gap: 0.75rem;
}

.daily-delicious-copy h2 {
    max-width: 760px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 0;
}

.daily-video-card,
.video-placeholder-link {
    min-height: 280px;
}

.video-placeholder-link {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.6rem;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 26% 20%, rgba(232, 185, 78, 0.52), transparent 13rem),
        radial-gradient(circle at 78% 74%, rgba(228, 111, 90, 0.34), transparent 12rem),
        linear-gradient(135deg, rgba(111, 163, 119, 0.7), rgba(246, 241, 231, 0.9));
    color: var(--ink);
    text-align: center;
    overflow: hidden;
}

.play-button {
    display: grid;
    place-items: center;
    width: 4.7rem;
    height: 4.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--herb);
    font-weight: 950;
    box-shadow: 0 16px 30px rgba(63, 72, 57, 0.13);
}

.video-placeholder-link strong,
.video-placeholder-link small,
.video-placeholder-link em {
    display: block;
    max-width: 260px;
}

.kitchen-calendar-card,
.calendar-list,
.calendar-day-group {
    display: grid;
    gap: 0.75rem;
}

.calendar-filter-row,
.calendar-actions {
    margin-bottom: 0.2rem;
}

.calendar-date-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 2rem;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: var(--soft-cream);
    color: var(--herb);
    font-weight: 950;
}

.calendar-event {
    border: 1px solid rgba(233, 230, 223, 0.95);
    border-radius: var(--radius);
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.76);
}

.calendar-event summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    cursor: pointer;
}

.calendar-event p {
    margin: 0.7rem 0 0;
}

.event-expiration {
    border-color: rgba(228, 111, 90, 0.28);
}

.event-guest,
.event-party {
    border-color: rgba(127, 75, 93, 0.28);
}

.metric-value {
    margin-bottom: 0.2rem;
    color: var(--herb);
    font-size: 3rem;
    line-height: 1;
    font-weight: 950;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pack-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pack-grid form,
.recipe-card form {
    margin: 0;
}

.pack-grid .button {
    width: 100%;
}

.stack {
    display: grid;
    gap: 0.75rem;
}

.mini-card {
    padding: 0.9rem;
}

.mini-card strong,
.mini-card span {
    display: block;
}

.mini-card span {
    color: var(--muted);
}

.inventory-layout {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.inventory-item,
.shopping-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.section-heading h2 {
    margin-bottom: 0;
}

.quick-meal-card {
    border-color: rgba(111, 163, 119, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 241, 0.9)),
        var(--white);
}

.quick-meal-rows {
    display: grid;
    gap: 0.7rem;
}

.quick-meal-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(7rem, 0.45fr);
    gap: 0.65rem;
    align-items: end;
    padding: 0.65rem;
    border: 1px solid rgba(111, 163, 119, 0.16);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.72);
}

.inventory-actions {
    display: grid;
    justify-items: end;
    gap: 0.45rem;
    min-width: min(100%, 21rem);
}

.inventory-actions form {
    margin: 0;
}

.inventory-quick-action {
    min-height: 2.35rem;
    border: 1px solid rgba(111, 163, 119, 0.25);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    background: rgba(238, 247, 232, 0.88);
    color: var(--herb);
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 0.35rem 1rem rgba(44, 73, 53, 0.08);
}

.inventory-quick-action:disabled {
    cursor: wait;
    opacity: 0.68;
}

.inventory-quick-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.inventory-serving-note {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.inventory-quick-action:hover,
.inventory-quick-action:focus {
    border-color: rgba(111, 163, 119, 0.55);
    background: rgba(221, 241, 205, 0.98);
}

.inventory-use-form {
    display: block;
    width: 100%;
}

.inventory-use-form input,
.inventory-use-form select {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(69, 94, 42, 0.18);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.88);
}

.inventory-use-form label {
    display: grid;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.inventory-update-status {
    min-height: 1rem;
    margin: 0;
    color: var(--herb);
    font-size: 0.78rem;
    font-weight: 900;
}

.inventory-update-status[data-tone="error"] {
    color: var(--coral);
}

.inventory-update-status[data-tone="neutral"] {
    color: var(--muted);
}

.inventory-item.is-depleted {
    opacity: 0.72;
}

.badge-row,
.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.badge,
.recipe-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    background: var(--mist-gray);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
}

.brand-mark-img,
.asset-inline-icon,
.bottom-nav-icon,
.premium-lock-img,
.recipe-card-img,
.avatar-photo {
    display: block;
    max-width: 100%;
}

.brand-mark {
    overflow: hidden;
}

.brand-mark-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-inline-icon {
    width: 1.15rem;
    height: 1.15rem;
    object-fit: contain;
}

.tier-pill,
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.bottom-nav-icon {
    width: 1.65rem;
    height: 1.65rem;
    object-fit: contain;
}

.premium-lock-img {
    width: 5.2rem;
    height: 5.2rem;
    object-fit: contain;
    margin: 0 auto;
}

.avatar-circle {
    overflow: hidden;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-card-media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    background:
        radial-gradient(circle at top left, rgba(191, 211, 193, 0.4), transparent 52%),
        linear-gradient(135deg, rgba(79, 122, 87, 0.45), rgba(40, 53, 42, 0.92));
}

.recipe-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom-app-nav {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.55rem max(0.75rem, env(safe-area-inset-left)) calc(0.55rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-right));
    background: rgba(148, 195, 76, 0.96);
    box-shadow: 0 -16px 36px rgba(23, 32, 22, 0.18);
}

.bottom-app-nav a,
.bottom-app-nav button {
    border: 0;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.2rem;
    min-height: 3.75rem;
    border-radius: 1.3rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.bottom-app-nav strong {
    display: block;
    max-width: 100%;
    line-height: 1.05;
    overflow-wrap: anywhere;
    text-align: center;
}

.bottom-app-nav a span,
.bottom-app-nav button span {
    display: grid;
    place-items: center;
}

.bottom-app-nav a.active {
    background: rgba(215, 230, 40, 0.5);
    color: var(--white);
}

.bottom-app-nav a.active .bottom-nav-icon {
    filter: drop-shadow(0 8px 14px rgba(23, 32, 22, 0.22));
}

.bottom-nav-quick-action {
    color: var(--herb);
}

.bottom-nav-plus {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.56), transparent 30%),
        linear-gradient(135deg, #d7ef56, #9fd266);
    box-shadow: 0 10px 22px rgba(23, 32, 22, 0.2);
}

.bottom-nav-quick-action .bottom-nav-icon {
    width: 1.18rem;
    height: 1.18rem;
}

.mobile-quick-action-sheet {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    align-items: end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

.mobile-quick-action-sheet.is-open {
    pointer-events: auto;
    opacity: 1;
}

.mobile-quick-action-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(10, 16, 12, 0.48);
}

.mobile-quick-action-panel {
    position: relative;
    margin: 0 auto;
    width: min(100%, 520px);
    padding: 1rem max(1rem, env(safe-area-inset-left)) calc(1rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
    border-radius: 1.65rem 1.65rem 0 0;
    border: 1px solid rgba(191, 211, 193, 0.24);
    background:
        radial-gradient(circle at top right, rgba(159, 210, 102, 0.2), transparent 36%),
        linear-gradient(180deg, rgba(28, 39, 29, 0.98), rgba(16, 23, 18, 0.98));
    box-shadow: 0 -20px 48px rgba(10, 16, 12, 0.34);
    color: var(--cream);
    transform: translateY(1.2rem);
    transition: transform 180ms ease;
}

.mobile-quick-action-sheet.is-open .mobile-quick-action-panel {
    transform: translateY(0);
}

.quick-actions-open {
    overflow: hidden;
}

.quick-action-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.quick-action-sheet-header h2 {
    margin: 0;
    color: var(--white);
}

.quick-action-close {
    border: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.quick-action-sheet-list {
    display: grid;
    gap: 0.65rem;
}

.quick-action-sheet-item {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-height: 4.5rem;
    padding: 0.75rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    text-decoration: none;
}

.quick-action-sheet-item:focus,
.quick-action-sheet-item:hover {
    outline: 2px solid rgba(215, 239, 86, 0.72);
    outline-offset: 2px;
    background: rgba(159, 210, 102, 0.14);
}

.quick-action-sheet-icon {
    width: 2rem;
    height: 2rem;
}

.quick-action-sheet-item small {
    display: block;
    margin-top: 0.15rem;
    color: rgba(246, 241, 231, 0.74);
    font-weight: 700;
}

.badge.sage { background: var(--sage); color: var(--herb); }
.badge.coral { background: rgba(228, 111, 90, 0.16); color: #A94231; }
.badge.gold { background: rgba(232, 185, 78, 0.22); color: #765E18; }
.badge.plum { background: rgba(127, 75, 93, 0.16); color: var(--plum); }

.icon-button {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
}

.icon-button.danger {
    background: rgba(228, 111, 90, 0.14);
    color: #A94231;
}

.match-bar {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--mist-gray);
    margin: 1rem 0 0.55rem;
}

.match-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--basil), var(--citrus));
}

.missing-preview {
    color: var(--plum);
    font-weight: 700;
}

.recipe-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.ingredient-list,
.steps {
    padding-left: 1.1rem;
}

.ingredient-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--mist-gray);
}

.steps li {
    margin-bottom: 0.75rem;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 100px 110px 150px auto;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.shopping-list-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.shopping-list-actions form {
    margin: 0;
}

.shopping-add-card {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.shopping-add-grid {
    display: grid;
    grid-template-columns: minmax(5rem, 0.5fr) minmax(6rem, 0.7fr) minmax(11rem, 1fr);
    gap: 0.65rem;
}

.alexa-copy-card,
.alexa-foundation-card {
    margin-bottom: 1rem;
    border-color: rgba(111, 163, 119, 0.2);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 241, 229, 0.92)),
        var(--white);
}

.alexa-copy-card textarea {
    width: 100%;
    min-height: 10rem;
    resize: vertical;
    font: inherit;
}

.shopping-list-stack {
    margin-top: 1rem;
}

.shopping-zone {
    display: grid;
    gap: 0.7rem;
}

.shopping-item.purchased {
    opacity: 0.55;
}

.shopping-item.purchased h3 {
    text-decoration: line-through;
}

.shopping-item-main {
    flex: 1;
    min-width: 0;
}

.shopping-item-main h3,
.shopping-item-main p {
    margin: 0;
}

.shopping-item-main p {
    color: var(--muted);
    font-weight: 750;
}

.shopping-check-form,
.shopping-delete-form {
    margin: 0;
}

.shopping-check {
    width: 2.65rem;
    height: 2.65rem;
    border: 2px solid rgba(69, 94, 42, 0.32);
    border-radius: 999px;
    background: rgba(255, 252, 244, 0.95);
    cursor: pointer;
    box-shadow: 0 0.45rem 1.1rem rgba(44, 73, 53, 0.08);
}

.shopping-check:hover,
.shopping-check:focus {
    border-color: var(--herb);
    background: rgba(232, 243, 218, 0.95);
}

.shopping-check.is-checked {
    border-color: var(--herb);
    background: var(--herb);
    position: relative;
}

.shopping-check.is-checked::after {
    content: "";
    position: absolute;
    left: 0.86rem;
    top: 0.58rem;
    width: 0.55rem;
    height: 1rem;
    border: solid var(--white);
    border-width: 0 0.18rem 0.18rem 0;
    transform: rotate(45deg);
}

.group-heading {
    margin: 1rem 0 0;
    color: var(--herb);
}

.recipe-match-section {
    margin-bottom: 2rem;
}

.cook-refresh-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cook-board {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 1.25rem;
    align-items: start;
}

.recipe-match-column,
.inventory-match-panel {
    min-width: 0;
}

.recipe-match-stack {
    display: grid;
    gap: 0.85rem;
}

.recipe-match-card {
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 180ms ease;
}

.recipe-match-card:hover,
.recipe-match-card:focus {
    border-color: rgba(111, 163, 119, 0.55);
    outline: 0;
    transform: translateY(-1px);
}

.recipe-match-card.selected {
    border-color: var(--basil);
    box-shadow: 0 16px 34px rgba(79, 122, 87, 0.18);
}

.recipe-match-card.is-hidden-extra {
    display: none;
}

.recipe-match-card.is-revealed {
    animation: recipeReveal 220ms ease both;
}

@keyframes recipeReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recipe-match-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.match-percent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    min-height: 2.2rem;
    border-radius: 999px;
    background: var(--herb);
    color: var(--white);
    font-weight: 950;
}

.inventory-match-panel {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
}

.selected-recipe-summary,
.match-detail-block,
.inventory-panel-section {
    border: 1px solid rgba(233, 230, 223, 0.95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(63, 72, 57, 0.08);
    padding: 1rem;
}

.selected-recipe-summary h2 {
    margin: 0.55rem 0 0.4rem;
}

.section-title.compact {
    margin-bottom: 0.25rem;
}

.chip-list,
.ingredient-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.detail-chip,
.ingredient-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 0.08rem;
    border-radius: 999px;
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(233, 230, 223, 0.95);
    background: var(--warm-white);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 850;
}

.ingredient-pill small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.ingredient-pill.is-used,
.detail-chip.is-used {
    border-color: rgba(111, 163, 119, 0.55);
    background: rgba(191, 211, 193, 0.72);
    color: var(--herb);
}

.ingredient-pill.is-optional,
.detail-chip.is-optional {
    border-color: rgba(232, 185, 78, 0.55);
    background: rgba(232, 185, 78, 0.2);
    color: #765E18;
}

.ingredient-pill.is-missing,
.detail-chip.is-missing {
    border-color: rgba(228, 111, 90, 0.5);
    background: rgba(228, 111, 90, 0.14);
    color: #A94231;
}

.detail-chip.is-empty {
    color: var(--muted);
}

.inventory-location-group {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.75rem;
}

.inventory-location-group h3 {
    margin-bottom: 0;
    color: var(--herb);
}

.show-more-recipes-wrap {
    display: flex;
    justify-content: center;
    padding: 1.1rem 0 0.25rem;
}

.show-more-recipes-button {
    min-height: 3rem;
    border: 0;
    border-radius: 999px;
    padding: 0.78rem 1.35rem;
    background: linear-gradient(135deg, var(--herb), var(--basil));
    color: var(--white);
    box-shadow: 0 14px 28px rgba(79, 122, 87, 0.18);
    cursor: pointer;
    font-weight: 950;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.show-more-recipes-button:hover,
.show-more-recipes-button:focus {
    outline: 0;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(79, 122, 87, 0.22);
}

.show-more-recipes-button:disabled {
    opacity: 0.62;
    cursor: default;
    transform: none;
    box-shadow: 0 10px 22px rgba(79, 122, 87, 0.12);
}

.cook-filter-panel {
    margin-bottom: 1.3rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 241, 231, 0.78)),
        rgba(191, 211, 193, 0.16);
}

.cook-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
}

.cook-filter-form label {
    margin: 0;
}

.cook-filter-form select {
    border-color: rgba(191, 211, 193, 0.85);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font-weight: 800;
}

.filter-summary {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    margin-top: 0.8rem;
    background: rgba(191, 211, 193, 0.45);
    color: var(--herb);
    font-weight: 850;
}

.filter-summary.compact {
    margin: 0 0 0.9rem;
}

.effort-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.9rem 0 1rem;
}

.effort-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    border: 1px solid rgba(191, 211, 193, 0.75);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.78);
    color: var(--herb);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(63, 72, 57, 0.06);
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.effort-pill:hover,
.effort-pill:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(79, 122, 87, 0.13);
}

.effort-pill.active {
    border-color: rgba(79, 122, 87, 0.68);
    background: linear-gradient(135deg, var(--herb), var(--basil));
    color: var(--white);
}

.effort-pill[href*="michelin_star"] {
    border-color: rgba(201, 130, 47, 0.42);
}

.effort-pill[href*="michelin_star"]::before {
    content: "★";
    margin-right: 0.35rem;
    color: #c9822f;
}

.effort-pill[href*="michelin_star"].active {
    color: #fffaf0;
    background: linear-gradient(135deg, #2f4f25, #71501f);
    box-shadow: 0 12px 26px rgba(113, 80, 31, 0.22);
}

.recipe-vibe-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    background: rgba(232, 185, 78, 0.22);
    color: #765E18;
    font-size: 0.78rem;
    font-weight: 900;
}

.vibe-mini-control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 1rem;
}

.vibe-mini-control span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.vibe-mini-control a {
    border-radius: 999px;
    padding: 0.42rem 0.65rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--herb);
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
}

.kitchen-calendar-widget {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(232, 185, 78, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 241, 231, 0.76));
}

.calendar-view-switcher {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid rgba(233, 230, 223, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.calendar-view-switcher button {
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 950;
}

.calendar-view-switcher button.is-active {
    background: var(--herb);
    color: var(--warm-white);
    box-shadow: 0 10px 24px rgba(79, 122, 87, 0.18);
}

.calendar-view {
    display: none;
}

.calendar-view[hidden] {
    display: none !important;
}

.calendar-view.is-active {
    display: block;
}

.kitchen-calendar-grid {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0;
}

.kitchen-calendar-grid.is-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.kitchen-calendar-grid.is-month {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-date-cell {
    min-height: 8.6rem;
    border: 1px solid rgba(233, 230, 223, 0.92);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 0.2rem;
    padding: 0.75rem;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 28px rgba(63, 72, 57, 0.06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.calendar-date-cell span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.calendar-date-cell strong {
    font-size: 1.45rem;
    line-height: 1;
}

.calendar-date-cell em {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    min-width: 1.45rem;
    min-height: 1.45rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--tomato);
    color: var(--white);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 950;
}

.calendar-date-cell {
    position: relative;
}

.calendar-date-cell.is-muted-month {
    opacity: 0.54;
}

.calendar-cell-details {
    display: grid;
    gap: 0.25rem;
    width: 100%;
    margin-top: 0.35rem;
}

.calendar-cell-details small {
    color: var(--tomato);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.calendar-mini-event,
.calendar-expiring-pill,
.calendar-more,
.calendar-empty-line {
    display: block;
    width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-mini-event .badge {
    margin-right: 0.25rem;
    padding: 0.18rem 0.38rem;
    font-size: 0.62rem;
}

.calendar-expiring-pill {
    color: #A94231;
}

.calendar-more {
    color: var(--herb);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
}

.calendar-weekdays span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 950;
    text-align: center;
    text-transform: uppercase;
}

.calendar-year-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 1rem 0;
}

.calendar-month-summary {
    border: 1px solid rgba(233, 230, 223, 0.92);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.calendar-month-summary strong,
.calendar-month-summary span {
    display: block;
}

.calendar-month-summary span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 850;
}

.calendar-date-cell:hover,
.calendar-date-cell.is-selected {
    transform: translateY(-1px);
    border-color: rgba(111, 163, 119, 0.58);
    background: rgba(191, 211, 193, 0.32);
    box-shadow: 0 18px 38px rgba(79, 122, 87, 0.14);
}

.calendar-date-cell.is-today {
    border-color: rgba(232, 185, 78, 0.72);
}

.calendar-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1rem;
}

.calendar-day-panel {
    display: none;
    min-height: 16rem;
    border: 1px solid rgba(233, 230, 223, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    padding: 1rem;
}

.calendar-day-panel.is-active {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.calendar-modal[hidden] {
    display: none !important;
}

.calendar-modal.is-open {
    display: flex;
}

.calendar-modal-backdrop,
.calendar-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 38, 31, 0.44);
}

body.calendar-modal-open {
    overflow: hidden;
}

.calendar-modal-panel,
.calendar-modal__panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    width: min(720px, 100%);
    max-height: min(84dvh, 760px);
    overflow: auto;
    border: 1px solid rgba(233, 230, 223, 0.92);
    border-radius: 1.35rem;
    padding: 1rem;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 28px 80px rgba(32, 38, 31, 0.24);
}

.calendar-modal-close,
.calendar-modal__close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: rgba(233, 230, 223, 0.72);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 900;
}

.calendar-modal-section {
    display: grid;
    gap: 0.35rem;
    border: 1px solid rgba(233, 230, 223, 0.78);
    border-radius: 1rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.72);
}

.calendar-modal-section h4 {
    margin: 0;
}

.meal-plan-section {
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.95), rgba(246, 241, 231, 0.72));
}

.meal-plan-stack {
    display: grid;
    gap: 1rem;
}

.meal-plan-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.35fr);
    gap: 0;
    align-items: stretch;
    border: 1px solid rgba(233, 230, 223, 0.95);
    border-radius: 1.25rem;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 250, 240, 0.92);
    box-shadow: 0 22px 54px rgba(63, 72, 57, 0.11);
}

.meal-plan-card__controls {
    order: 2;
    display: grid;
    gap: 0.72rem;
    align-content: start;
    padding: 1.25rem;
    background:
        linear-gradient(90deg, rgba(15, 23, 20, 0.72), rgba(15, 23, 20, 0.18) 0.5rem, rgba(255, 250, 240, 0.94) 1.4rem),
        rgba(255, 250, 240, 0.94);
}

.meal-plan-card > [data-meal-visual-wrap] {
    order: 1;
    display: flex;
    min-width: 0;
    min-height: 100%;
}

.meal-plan-card__controls h3,
.meal-plan-card__controls p {
    margin: 0;
}

.meal-plan-card__eyebrow {
    color: var(--tomato);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.meal-search-label {
    position: relative;
    display: block;
}

.meal-search-label input {
    width: 100%;
    padding-left: 2.2rem;
    min-height: 3.2rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    font-weight: 850;
}

.meal-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    z-index: 1;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 950;
    transform: translateY(-50%);
}

.meal-filter-group {
    display: grid;
    gap: 0.45rem;
}

.meal-filter-group > strong {
    display: none;
}

.meal-ingredient-dropdown {
    border: 1px solid rgba(233, 230, 223, 0.92);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
}

.meal-ingredient-dropdown summary {
    min-height: 3.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    color: var(--ink);
    cursor: pointer;
    font-weight: 950;
    list-style: none;
}

.meal-ingredient-dropdown summary::-webkit-details-marker {
    display: none;
}

.meal-ingredient-dropdown summary::after {
    content: "⌄";
    color: var(--herb);
    font-size: 1.4rem;
    line-height: 1;
}

.meal-ingredient-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-height: 5.6rem;
    overflow: auto;
    padding: 0.1rem;
}

.meal-ingredient-pill {
    cursor: pointer;
}

.meal-ingredient-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.meal-ingredient-pill span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border: 1px solid rgba(233, 230, 223, 0.95);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 250, 240, 0.82);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.meal-ingredient-pill input:checked + span {
    border-color: rgba(79, 122, 87, 0.58);
    background: rgba(191, 211, 193, 0.45);
    color: var(--herb-dark);
}

.meal-ingredient-select {
    width: 100%;
    min-height: 8.75rem;
    border: 1px solid rgba(233, 230, 223, 0.92);
    border-radius: 0.75rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font-weight: 850;
}

.meal-ingredient-select option {
    border-radius: 0.45rem;
    padding: 0.45rem 0.5rem;
}

.meal-ingredient-dropdown {
    overflow: hidden;
}

.meal-ingredient-dropdown summary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meal-ingredient-dropdown summary::after {
    content: "v";
    font-size: 0.9rem;
    margin-left: 0.75rem;
}

.meal-ingredient-picker {
    display: grid;
    gap: 0;
    max-height: 10.5rem;
    overflow: auto;
    padding: 0.35rem;
    border-top: 1px solid rgba(233, 230, 223, 0.8);
}

.meal-ingredient-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.55rem;
    color: var(--ink);
    cursor: pointer;
    font-weight: 850;
}

.meal-ingredient-row:hover,
.meal-ingredient-row:has(input:checked) {
    background: rgba(191, 211, 193, 0.34);
}

.meal-ingredient-row input {
    accent-color: var(--herb);
}

.meal-plan-card__visual {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 24rem;
    overflow: hidden;
    border-radius: 0;
    border: 0;
    background: var(--herb-dark);
    color: var(--warm-white);
    display: block;
    position: relative;
    box-shadow: none;
}

.meal-preview-media {
    position: absolute;
    inset: 0;
}

.meal-preview-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meal-preview-placeholder {
    min-height: 9rem;
    background:
        radial-gradient(circle at 32% 42%, rgba(255, 250, 240, 0.76) 0 10%, transparent 11%),
        radial-gradient(circle at 58% 36%, rgba(232, 185, 78, 0.62) 0 8%, transparent 9%),
        radial-gradient(circle at 68% 62%, rgba(191, 211, 193, 0.62) 0 12%, transparent 13%);
}

.meal-preview-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    background: linear-gradient(0deg, rgba(15, 23, 20, 0.72), transparent);
}

.meal-preview-copy h4,
.meal-preview-copy p {
    margin: 0;
}

.meal-preview-copy p {
    color: rgba(255, 253, 248, 0.82);
    font-size: 0.9rem;
}

.meal-empty-state {
    margin: 0.25rem 0 0;
    color: #A94231;
    font-size: 0.85rem;
    font-weight: 850;
}

.meal-plan-card__controls label {
    display: grid;
    gap: 0.35rem;
    color: var(--herb);
    font-weight: 950;
}

.meal-plan-card__controls select,
.meal-plan-card__controls input:not([type="checkbox"]) {
    min-height: 3.1rem;
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.96);
}

.meal-plan-card__controls .button {
    justify-self: end;
    min-width: min(100%, 16rem);
    border-radius: 999px;
}

.meal-plan-card {
    position: relative;
    display: block;
    min-height: 29rem;
    isolation: isolate;
}

.meal-plan-card > [data-meal-visual-wrap] {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    min-height: 100%;
}

.meal-plan-card__visual {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.meal-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.meal-plan-card__controls {
    position: relative;
    z-index: 2;
    width: min(100%, 23rem);
    margin-left: auto;
    min-height: 29rem;
    background: linear-gradient(90deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0.82) 18%, rgba(255, 250, 240, 0.88));
    backdrop-filter: blur(4px);
}

.meal-preview-copy {
    right: auto;
    width: min(46%, 19rem);
}

.calendar-save-success {
    color: var(--herb-dark);
    font-weight: 900;
}

.calendar-event-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.calendar-event-form label,
.calendar-event-form textarea,
.calendar-event-form .button-row {
    grid-column: span 2;
}

.calendar-event-form .calendar-meal-field,
.calendar-event-form .calendar-recipe-field,
.calendar-event-form .calendar-guest-field {
    grid-column: span 1;
}

.calendar-meal-slot {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    border-top: 1px solid rgba(233, 230, 223, 0.8);
    padding-top: 0.75rem;
}

.calendar-meal-slot:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.calendar-meal-slot select,
.calendar-meal-slot input {
    min-width: 0;
}

.calendar-meal-slot .button {
    justify-self: start;
}

.calendar-save-status {
    min-height: 1.2rem;
}

.calendar-save-error {
    color: #A94231;
    font-weight: 900;
}

.calendar-event-chip {
    border: 1px solid rgba(233, 230, 223, 0.92);
    border-radius: 0.95rem;
    background: rgba(252, 250, 245, 0.9);
    padding: 0.75rem;
}

.calendar-event-chip summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    list-style: none;
}

.calendar-event-chip summary::-webkit-details-marker {
    display: none;
}

.calendar-event-chip.event-expiration {
    border-color: rgba(228, 111, 90, 0.36);
}

.calendar-event-chip.event-guest,
.calendar-event-chip.event-party {
    border-color: rgba(127, 75, 93, 0.34);
}

.calendar-add-form {
    display: grid;
    gap: 0.75rem;
    border: 1px solid rgba(191, 211, 193, 0.48);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    padding: 1rem;
}

.calendar-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.calendar-quick-actions button {
    border: 1px solid rgba(111, 163, 119, 0.3);
    border-radius: 999px;
    background: rgba(191, 211, 193, 0.26);
    color: var(--herb);
    cursor: pointer;
    font-weight: 850;
    padding: 0.45rem 0.65rem;
}

.barcode-upload-card,
.barcode-review-card,
.barcode-beta-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 241, 231, 0.8)),
        rgba(191, 211, 193, 0.14);
}

.barcode-preview {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius);
    border: 1px solid rgba(233, 230, 223, 0.95);
    object-fit: contain;
    background: var(--warm-white);
}

.barcode-suggestion-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    border-radius: 0.9rem;
    padding: 0.7rem;
    background: rgba(232, 185, 78, 0.15);
    color: var(--ink);
    font-weight: 850;
}

.barcode-debug-panel {
    display: grid;
    gap: 0.25rem;
    border: 1px dashed rgba(79, 122, 87, 0.35);
    border-radius: 0.9rem;
    padding: 0.75rem;
    background: rgba(191, 211, 193, 0.16);
    color: var(--herb);
    font-size: 0.9rem;
    font-weight: 800;
}

.barcode-intake-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}

.barcode-intake-methods {
    display: grid;
    gap: 1rem;
}

.barcode-intake-card {
    position: relative;
    overflow: hidden;
}

.barcode-intake-card::after {
    content: "";
    position: absolute;
    inset: auto -3rem -4rem auto;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background: rgba(191, 211, 193, 0.2);
    pointer-events: none;
}

.camera-preview-frame {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 260px;
    border: 1px solid rgba(191, 211, 193, 0.65);
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(79, 122, 87, 0.1), rgba(232, 185, 78, 0.13)),
        var(--warm-white);
}

.camera-preview-frame video {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.camera-preview-frame.is-scanning {
    background: #101811;
}

.camera-scan-target {
    position: absolute;
    inset: 18%;
    z-index: 2;
    border: 2px solid rgba(215, 239, 86, 0.95);
    border-radius: 1.15rem;
    box-shadow:
        0 0 0 999px rgba(10, 18, 12, 0.18),
        0 0 24px rgba(215, 239, 86, 0.22);
    pointer-events: none;
}

.camera-scan-target::before,
.camera-scan-target::after,
.camera-scan-target span::before,
.camera-scan-target span::after {
    content: "";
    position: absolute;
    width: 1.8rem;
    height: 1.8rem;
    border-color: var(--cream);
    border-style: solid;
}

.camera-scan-target::before {
    top: -2px;
    left: -2px;
    border-width: 3px 0 0 3px;
    border-radius: 1rem 0 0 0;
}

.camera-scan-target::after {
    top: -2px;
    right: -2px;
    border-width: 3px 3px 0 0;
    border-radius: 0 1rem 0 0;
}

.camera-scan-target span::before {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 1rem;
}

.camera-scan-target span::after {
    right: -2px;
    bottom: -2px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 1rem 0;
}

.camera-placeholder {
    position: absolute;
    inset: 1rem;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(79, 122, 87, 0.38);
    border-radius: calc(var(--radius) - 0.3rem);
    color: var(--herb);
    font-weight: 950;
}

[data-barcode-scanner-status] {
    border-radius: 999px;
    padding: 0.48rem 0.7rem;
    background: rgba(191, 211, 193, 0.16);
}

[data-barcode-scanner-status][data-state="loading"] {
    color: #8c661d;
    background: rgba(232, 185, 78, 0.18);
}

[data-barcode-scanner-status][data-state="success"] {
    color: var(--herb);
    background: rgba(79, 122, 87, 0.15);
}

[data-barcode-scanner-status][data-state="error"] {
    color: #8f3427;
    background: rgba(181, 82, 62, 0.12);
}

.barcode-fallback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.barcode-fallback-actions a {
    border-radius: 999px;
    padding: 0.48rem 0.7rem;
    background: rgba(191, 211, 193, 0.18);
    color: var(--herb);
    font-size: 0.85rem;
    font-weight: 900;
    text-decoration: none;
}

.barcode-result-actions {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.9rem;
    padding: 0.85rem;
    border-radius: var(--radius);
    border: 1px solid rgba(79, 122, 87, 0.22);
    background: rgba(191, 211, 193, 0.16);
}

.barcode-lookup-state {
    margin-bottom: 0.85rem;
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    background: rgba(191, 211, 193, 0.18);
    color: var(--herb);
    font-size: 0.9rem;
    font-weight: 850;
}

.barcode-lookup-state[data-state="loading"] {
    background: rgba(232, 185, 78, 0.18);
    color: #8c661d;
}

.barcode-lookup-state[data-state="error"] {
    background: rgba(181, 82, 62, 0.12);
    color: #8f3427;
}

.barcode-lookup-state[data-state="success"] {
    background: rgba(79, 122, 87, 0.15);
    color: var(--herb);
}

.barcode-result-actions .button-row {
    margin: 0;
}

.detected-barcode-pill {
    width: fit-content;
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    background: rgba(191, 211, 193, 0.58);
    color: var(--herb);
    font-weight: 950;
}

.barcode-review-card {
    position: sticky;
    top: 1rem;
}

.barcode-review-card textarea {
    min-height: 7rem;
}

.item-review-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.item-review-modal.is-open {
    display: flex;
}

.item-review-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 32, 22, 0.5);
    backdrop-filter: blur(5px);
}

.item-review-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
    width: min(100%, 560px);
    max-height: min(88vh, 760px);
    overflow: auto;
    padding: 1.15rem;
    border: 1px solid rgba(69, 94, 42, 0.18);
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(185, 221, 143, 0.18), transparent 34%),
        rgba(255, 252, 245, 0.98);
    box-shadow: 0 28px 70px rgba(23, 32, 22, 0.28);
}

.item-review-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(69, 94, 42, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--herb);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.item-review-panel h2 {
    margin: 0;
    padding-right: 2.5rem;
}

.item-review-message {
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(69, 94, 42, 0.1);
    color: var(--herb);
    font-weight: 800;
}

.item-review-message[data-state="error"] {
    background: rgba(228, 111, 90, 0.14);
    color: #A94231;
}

.item-review-message[data-state="success"] {
    background: rgba(191, 211, 193, 0.48);
}

.item-review-actions {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
}

.quick-dictation-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.65fr);
}

.quick-dictation-form textarea {
    min-height: 15rem;
    line-height: 1.45;
}

.dictation-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(69, 94, 42, 0.16);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 94% 0%, rgba(231, 173, 54, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(255, 252, 245, 0.98), rgba(242, 248, 235, 0.92));
    box-shadow: 0 16px 36px rgba(69, 94, 42, 0.1);
}

.dictation-card h2 {
    margin: 0;
}

.dictation-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.dictation-start {
    min-height: 3.35rem;
    padding-inline: 1.2rem;
}

.dictation-mic {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.45rem;
}

.dictation-mic svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}

.dictation-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 1.9rem;
    margin: 0;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(69, 94, 42, 0.1);
    color: var(--herb);
    font-size: 0.9rem;
    font-weight: 850;
}

.dictation-status[data-state="listening"] {
    background: rgba(232, 185, 78, 0.22);
    color: #765E18;
}

.dictation-status[data-state="error"] {
    background: rgba(228, 111, 90, 0.14);
    color: #A94231;
}

.dictation-preview {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    border: 1px dashed rgba(69, 94, 42, 0.24);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.68);
}

.dictation-preview span {
    color: var(--herb);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dictation-preview p {
    margin: 0;
    color: var(--charcoal);
}

.quick-format-card details {
    display: grid;
    gap: 0.75rem;
}

.quick-format-card summary {
    cursor: pointer;
    color: var(--herb);
    font-size: 1.1rem;
    font-weight: 950;
}

.highlight-card {
    margin-bottom: 1.5rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 241, 231, 0.82)),
        rgba(191, 211, 193, 0.16);
}

.ai-result-links {
    margin-top: 1rem;
}

.placeholder-panel {
    min-height: 56vh;
    display: grid;
    align-content: center;
}

.zinger-card {
    display: grid;
    gap: 0.9rem;
}

.tutorial-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(111, 163, 119, 0.28), rgba(232, 185, 78, 0.24)),
        var(--soft-cream);
    color: var(--herb);
    font-weight: 950;
}

.notice {
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.notice.success {
    background: rgba(191, 211, 193, 0.55);
    color: var(--herb);
}

.notice.error {
    background: rgba(228, 111, 90, 0.13);
    color: #A94231;
}

.site-header {
    margin-top: 0.8rem;
    border: 1px solid rgba(191, 211, 193, 0.38);
    border-radius: 1.5rem;
    padding: 0.85rem;
    background:
        radial-gradient(circle at top left, rgba(148, 195, 76, 0.16), transparent 20rem),
        linear-gradient(135deg, rgba(23, 28, 23, 0.96), rgba(36, 51, 34, 0.93));
    box-shadow: 0 18px 42px rgba(23, 32, 22, 0.2);
}

.site-header .brand,
.site-header .top-nav a {
    color: var(--warm-white);
}

.site-header .brand {
    letter-spacing: 0;
}

.brand-mark {
    border: 1px solid rgba(191, 211, 193, 0.42);
    background: linear-gradient(135deg, rgba(148, 195, 76, 0.28), rgba(23, 32, 22, 0.8));
}

.nav-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 2.45rem;
    border: 1px solid rgba(191, 211, 193, 0.18);
    border-radius: 999px;
    padding: 0.42rem 0.68rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(252, 250, 245, 0.86);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-icon-link:hover,
.nav-icon-link:focus,
.nav-icon-link.active {
    border-color: rgba(191, 211, 193, 0.52);
    background: rgba(148, 195, 76, 0.18);
    transform: translateY(-1px);
}

.top-nav-icon {
    width: 1.18rem;
    height: 1.18rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.24));
}

.landing-hero-visual,
.auth-hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(191, 211, 193, 0.42);
    border-radius: 1.6rem;
    background: linear-gradient(135deg, rgba(23, 28, 23, 0.94), rgba(46, 67, 42, 0.9));
    box-shadow: 0 24px 58px rgba(23, 32, 22, 0.24);
}

.landing-hero-img,
.auth-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-hero-visual {
    min-height: 430px;
}

.landing-hero-img {
    min-height: 430px;
}

.landing-hero-badge {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 1.25rem;
    padding: 0.85rem;
    background: rgba(12, 17, 13, 0.84);
    color: var(--warm-white);
    backdrop-filter: blur(12px);
}

.landing-hero-badge strong {
    display: block;
    color: #B9DD8F;
}

.landing-badge-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.auth-hero-card {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem;
}

.auth-hero-img {
    aspect-ratio: 1 / 1;
    border-radius: 1.1rem;
}

.auth-hero-card strong {
    display: block;
    color: var(--warm-white);
}

.auth-hero-card span {
    color: rgba(252, 250, 245, 0.76);
}

.pantry-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.pantry-image-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid rgba(23, 32, 22, 0.12);
    border-radius: 1.15rem;
    background-color: #243322;
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 40px rgba(23, 32, 22, 0.16);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.pantry-image-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 13, 9, 0.06), rgba(9, 13, 9, 0.4));
}

.pantry-image-card:hover,
.pantry-image-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(23, 32, 22, 0.22);
}

.pantry-image-label {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.05rem 0.55rem;
    align-items: center;
    min-width: min(78%, 15rem);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    padding: 0.7rem 0.85rem;
    background: rgba(54, 78, 42, 0.72);
    color: var(--white);
    backdrop-filter: blur(12px);
}

.pantry-image-label .asset-inline-icon {
    grid-row: span 2;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    padding: 0.25rem;
    background: rgba(12, 17, 13, 0.32);
}

.pantry-image-label strong {
    font-size: 1.2rem;
    line-height: 1.1;
}

.pantry-image-label small {
    color: rgba(252, 250, 245, 0.88);
}

.premium-lock-img {
    width: min(14rem, 70vw);
    height: auto;
    max-height: 14rem;
    border-radius: 1.2rem;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(23, 32, 22, 0.22);
}

.site-footer {
    padding: 2rem 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .hero,
    .auth-panel,
    .split-grid,
    .recipe-hero,
    .quick-add-bar,
    .daily-delicious-hero {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .card-grid,
    .quick-add-actions,
    .cook-filter-form,
    .pantry-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cook-board {
        grid-template-columns: 1fr;
    }

    .inventory-match-panel {
        position: static;
    }

    .inline-form {
        grid-template-columns: 1fr 1fr;
    }

    .calendar-details-grid {
        grid-template-columns: 1fr;
    }

    .barcode-intake-layout {
        grid-template-columns: 1fr;
    }

    .barcode-review-card {
        position: static;
    }

    .quick-dictation-layout {
        grid-template-columns: 1fr;
    }

    .pantry-snap-modal {
        padding: 0;
    }

    .pantry-snap-panel {
        width: 100%;
        min-height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .pantry-snap-camera-frame,
    .pantry-snap-camera-frame video {
        min-height: min(58dvh, 460px);
    }

    .pantry-snap-actions {
        grid-template-columns: 1fr;
    }

    .kitchen-calendar-grid.is-week,
    .kitchen-calendar-grid.is-month {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .calendar-year-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .app-shell {
        width: min(100% - 1rem, 1180px);
    }

    .site-header {
        align-items: center;
        flex-direction: row;
    }

    .top-nav {
        justify-content: flex-end;
        margin-left: auto;
    }

    .produce-board {
        min-height: 300px;
    }

    .nav-icon-link {
        padding: 0.45rem;
    }

    .nav-icon-link span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .landing-hero-visual,
    .landing-hero-img {
        min-height: 330px;
    }

    .auth-hero-card {
        grid-template-columns: 5.5rem minmax(0, 1fr);
    }

    .metric-grid,
    .card-grid,
    .two-col,
    .inline-form,
    .quick-meal-row,
    .quick-add-actions,
    .cook-filter-form,
    .pantry-image-grid {
        grid-template-columns: 1fr;
    }

    .kitchen-calendar-grid.is-week,
    .kitchen-calendar-grid.is-month {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-view-switcher,
    .calendar-view-switcher button {
        width: 100%;
    }

    .calendar-view-switcher {
        border-radius: 1rem;
    }

    .calendar-date-cell {
        min-height: 9rem;
    }

    .calendar-weekdays {
        display: none;
    }

    .calendar-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-modal {
        align-items: flex-end;
        padding: 0;
    }

    .calendar-modal-panel,
    .calendar-modal__panel {
        width: 100%;
        max-height: 88dvh;
        border-radius: 1.35rem 1.35rem 0 0;
        padding: 1rem;
    }

    .calendar-event-form,
    .calendar-event-form .calendar-meal-field,
    .calendar-event-form .calendar-recipe-field,
    .calendar-event-form .calendar-guest-field {
        grid-template-columns: 1fr;
        grid-column: span 1;
    }

    .calendar-event-form label,
    .calendar-event-form textarea,
    .calendar-event-form .button-row {
        grid-column: span 1;
    }

    .calendar-meal-slot {
        grid-template-columns: 1fr;
    }

    .meal-plan-card {
        min-height: 34rem;
    }

    .meal-plan-card__visual {
        min-height: 100%;
    }

    .meal-plan-card__controls {
        width: 100%;
        min-height: 0;
        margin-left: 0;
        background: rgba(255, 250, 240, 0.92);
    }

    .meal-preview-copy {
        bottom: 0;
        width: 100%;
        padding-top: 4rem;
    }

    .inventory-item,
    .shopping-item,
    .ingredient-list li {
        align-items: flex-start;
        flex-direction: column;
    }

    .inventory-actions {
        justify-content: flex-start;
        justify-items: stretch;
        width: 100%;
    }

    .shopping-list-actions,
    .shopping-list-actions .button,
    .shopping-list-actions form,
    .shopping-list-actions form .button {
        width: 100%;
    }

    .shopping-list-actions .button {
        justify-content: center;
    }

    .shopping-add-grid {
        grid-template-columns: 1fr;
    }

    .shopping-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .shopping-delete-form {
        grid-column: 2;
    }

    .inventory-quick-row {
        justify-content: flex-start;
    }

    .inventory-quick-action {
        min-height: 2.55rem;
    }

    .inventory-more-actions {
        text-align: left;
    }

    .inventory-more-grid {
        grid-template-columns: 1fr;
    }

    .cook-refresh-card,
    .recipe-match-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .dictation-controls,
    .dictation-controls .button {
        width: 100%;
    }

    .dictation-controls .button {
        justify-content: center;
    }

    .quick-dictation-form textarea {
        min-height: 13rem;
    }

    .item-review-modal {
        align-items: flex-end;
        padding: 0;
    }

    .item-review-panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 1.2rem 1.2rem 0 0;
    }

    .item-review-actions,
    .item-review-actions .button {
        width: 100%;
    }

    .item-review-actions {
        flex-direction: column-reverse;
    }
}

/* Warm culinary brand refresh: coffee/croissant line-art identity and lighter app chrome. */
.site-header {
    align-items: center;
    margin-top: 0.65rem;
    border-radius: 1.35rem;
    padding: 0.58rem 0.72rem;
    background:
        linear-gradient(135deg, rgba(251, 247, 239, 0.98), rgba(246, 238, 222, 0.94)),
        var(--mpr-cream);
    border: 1px solid rgba(75, 45, 31, 0.08);
    box-shadow: 0 14px 34px rgba(75, 45, 31, 0.08);
}

.site-header .brand {
    min-width: 0;
    gap: 0.72rem;
    color: var(--mpr-brown);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 600;
    white-space: nowrap;
}

.brand-mark {
    flex: 0 0 auto;
    width: 2.82rem;
    height: 2.82rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.brand-mark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-mark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-wordmark {
    max-width: min(38vw, 25rem);
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-brand-script);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 0.88;
    color: var(--mpr-brown);
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.top-nav {
    flex-wrap: nowrap;
    gap: 0.44rem;
}

.nav-icon-link {
    width: 2.34rem;
    min-width: 2.34rem;
    height: 2.34rem;
    min-height: 2.34rem;
    border-radius: 999px;
    border: 1px solid rgba(75, 45, 31, 0.1);
    background: rgba(255, 255, 255, 0.68);
    color: var(--mpr-brown);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-icon-link:hover,
.nav-icon-link:focus,
.nav-icon-link.active {
    border-color: rgba(201, 130, 47, 0.44);
    background: rgba(255, 248, 234, 0.96);
    box-shadow: 0 0 0 3px rgba(231, 173, 54, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    outline: none;
}

.nav-icon-link.active::after {
    content: "";
    position: absolute;
    bottom: 0.26rem;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: var(--mpr-caramel);
}

.top-nav-icon {
    width: 1.12rem;
    height: 1.12rem;
    filter: sepia(0.3) saturate(1.05) hue-rotate(344deg) brightness(0.72);
}

.nav-tooltip {
    background: rgba(75, 45, 31, 0.96);
    color: var(--mpr-cream);
    border: 1px solid rgba(251, 247, 239, 0.16);
    box-shadow: 0 12px 26px rgba(75, 45, 31, 0.2);
}

@media (max-width: 760px) {
    .site-header {
        padding: 0.52rem 0.56rem;
        border-radius: 1.1rem;
    }

    .site-header .brand {
        flex: 1 1 auto;
        gap: 0.5rem;
        font-size: clamp(1.52rem, 7.2vw, 2rem);
    }

    .brand-mark {
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 0.85rem;
    }

    .brand-wordmark {
        max-width: calc(100vw - 9.8rem);
        line-height: 0.9;
    }

    .site-header .top-nav {
        flex: 0 0 auto;
        margin-left: auto;
        gap: 0.34rem;
    }

    .site-header .top-nav .is-primary-nav {
        display: none;
    }

    .nav-icon-link {
        width: 2.22rem;
        min-width: 2.22rem;
        height: 2.22rem;
        min-height: 2.22rem;
    }
}

@media (max-width: 390px) {
    .brand-wordmark {
        max-width: calc(100vw - 8.2rem);
        font-size: clamp(1.34rem, 6.6vw, 1.68rem);
    }

    .brand-mark {
        width: 2.25rem;
        height: 2.25rem;
    }
}

/* Corrective graphics pass: compact chrome, real imagery, mobile-only bottom nav. */
.site-header {
    align-items: center;
    margin-top: 0.55rem;
    border-radius: 1.15rem;
    padding: 0.48rem 0.72rem;
    background:
        linear-gradient(135deg, rgba(246, 241, 224, 0.06), rgba(125, 166, 82, 0.05)),
        rgba(21, 27, 20, 0.96);
    border: 1px solid rgba(221, 230, 203, 0.14);
    box-shadow: 0 12px 28px rgba(12, 17, 13, 0.12);
}

.site-header .brand {
    gap: 0.66rem;
    color: #f8f3e6;
    font-size: clamp(1.12rem, 2.25vw, 1.62rem);
    white-space: nowrap;
}

.brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(211, 235, 161, 0.24);
    background: rgba(246, 241, 224, 0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 18px rgba(8, 12, 9, 0.16);
    overflow: hidden;
}

.brand-mark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-wordmark {
    font-family: var(--font-brand-script);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-shadow: 0 1px 14px rgba(185, 221, 143, 0.12);
}

.top-nav {
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.42rem;
}

.nav-icon-link {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.28rem;
    min-width: 2.28rem;
    height: 2.28rem;
    min-height: 2.28rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(221, 230, 203, 0.14);
    background: rgba(255, 255, 255, 0.045);
    color: var(--warm-white);
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.nav-icon-link:hover,
.nav-icon-link:focus,
.nav-icon-link.active {
    border-color: rgba(185, 221, 143, 0.64);
    background: rgba(185, 221, 143, 0.17);
    box-shadow: 0 0 0 3px rgba(185, 221, 143, 0.08), inset 0 1px 0 rgba(255,255,255,0.07);
    transform: translateY(-1px);
    outline: none;
}

.nav-icon-link.is-account-nav {
    margin-left: 0.18rem;
}

.top-nav-icon {
    width: 1.12rem;
    height: 1.12rem;
    object-fit: contain;
    pointer-events: none;
}

.nav-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.5rem);
    z-index: 100;
    width: max-content;
    max-width: 12rem;
    padding: 0.34rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(12, 17, 13, 0.94);
    color: var(--warm-white);
    font-size: 0.72rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -0.25rem);
    transition: opacity 150ms ease, transform 150ms ease;
    box-shadow: 0 12px 26px rgba(12, 17, 13, 0.24);
}

.nav-icon-link:hover .nav-tooltip,
.nav-icon-link:focus .nav-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.bottom-app-nav {
    display: none;
}

.hero {
    align-items: center;
}

.landing-hero-visual {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    border-radius: 1.35rem;
    background: #f6f1e8;
    border: 1px solid rgba(69, 94, 42, 0.14);
    box-shadow: 0 22px 48px rgba(23, 32, 22, 0.16);
}

.landing-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.landing-hero-badge {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border-radius: 1rem;
    background: rgba(12, 17, 13, 0.76);
    box-shadow: 0 16px 34px rgba(12, 17, 13, 0.2);
}

.auth-hero-card {
    border-radius: 1.1rem;
    background: rgba(246, 241, 232, 0.82);
    border: 1px solid rgba(69, 94, 42, 0.12);
    box-shadow: 0 14px 30px rgba(23, 32, 22, 0.1);
}

.auth-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-hero-card strong {
    color: var(--herb);
}

.auth-hero-card span {
    color: var(--charcoal);
}

.daily-video-card {
    overflow: hidden;
    border-radius: 1.25rem;
    background-position: center;
    background-size: cover;
    box-shadow: 0 22px 48px rgba(23, 32, 22, 0.14);
}

.video-placeholder-link {
    min-height: 280px;
    background: rgba(12, 17, 13, 0.1);
}

.intake-mode-field {
    padding: 0.72rem;
    border-radius: 0.9rem;
    background: rgba(185, 221, 143, 0.1);
    border: 1px solid rgba(69, 94, 42, 0.14);
}

.intake-mode-field select {
    margin-top: 0.35rem;
    min-height: 2.75rem;
    border-color: rgba(69, 94, 42, 0.18);
    background-color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.subtle-callout {
    margin: -0.15rem 0 0;
    padding: 0.72rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted);
    font-size: 0.92rem;
}

.photo-scan-heading {
    max-width: 760px;
}

.photo-scan-layout {
    align-items: start;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.photo-scan-card {
    overflow: hidden;
    border: 1px solid rgba(77, 106, 43, 0.14);
    background:
        radial-gradient(circle at 100% 0%, rgba(185, 221, 143, 0.24), transparent 36%),
        rgba(255, 255, 255, 0.92);
}

.photo-scan-dropzone {
    display: grid;
    gap: 0.35rem;
    min-height: 11rem;
    place-items: center;
    padding: 1.3rem;
    border: 1px dashed rgba(69, 94, 42, 0.34);
    border-radius: 1.15rem;
    background: rgba(251, 249, 241, 0.82);
    color: var(--ink);
    text-align: center;
    cursor: pointer;
}

.photo-scan-dropzone input {
    max-width: 100%;
}

.photo-scan-dropzone-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(69, 94, 42, 0.12);
    color: var(--herb);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.photo-scan-preview {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 1.15rem;
    box-shadow: 0 18px 38px rgba(23, 32, 22, 0.14);
}

.photo-scan-actions,
.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.photo-scan-loading {
    margin: 0;
    color: var(--herb);
    font-weight: 800;
}

.photo-scan-tips ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.photo-scan-results-card {
    display: grid;
    gap: 1rem;
}

.photo-scan-review-form {
    display: grid;
    gap: 0.85rem;
}

.photo-suggestion-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.9rem;
    border: 1px solid rgba(69, 94, 42, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.74);
}

.photo-suggestion-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    padding: 0.36rem 0.6rem;
    border-radius: 999px;
    background: rgba(185, 221, 143, 0.22);
    color: var(--herb);
    font-weight: 800;
}

.photo-suggestion-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.photo-suggestion-meta small {
    color: var(--muted);
}

.photo-scan-empty,
.photo-scan-placeholder {
    text-align: center;
}

.pantry-snap-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    padding: 1rem;
}

.pantry-snap-modal.is-open {
    display: grid;
    place-items: center;
}

.pantry-snap-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 31, 20, 0.62);
    backdrop-filter: blur(8px);
}

.pantry-snap-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.8rem;
    width: min(720px, 100%);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 1rem;
    border-radius: 24px;
    background: var(--warm-white);
    box-shadow: 0 28px 80px rgba(31, 50, 31, 0.28);
}

.pantry-snap-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 2.8rem;
}

.pantry-snap-header h2 {
    margin: 0;
}

.pantry-snap-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(47, 79, 37, 0.18);
    border-radius: 999px;
    background: #fffaf0;
    color: #22351f;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.pantry-snap-camera-frame {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1f321f, #3f5f33);
}

.pantry-snap-camera-frame video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.pantry-snap-placeholder,
.pantry-snap-loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    color: #fffaf0;
}

.pantry-snap-placeholder {
    background: linear-gradient(135deg, rgba(31, 50, 31, 0.9), rgba(111, 163, 119, 0.42));
    font-weight: 900;
}

.pantry-snap-camera-frame.is-active .pantry-snap-placeholder {
    display: none;
}

.pantry-snap-loader {
    gap: 0.3rem;
    background: rgba(31, 50, 31, 0.72);
}

.pantry-snap-spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 3px solid rgba(255, 250, 240, 0.3);
    border-top-color: #e7ad36;
    animation: pantrySnapSpin 0.9s linear infinite;
}

@keyframes pantrySnapSpin {
    to {
        transform: rotate(360deg);
    }
}

.pantry-snap-status {
    margin: 0;
    font-weight: 800;
    color: var(--herb);
}

.pantry-snap-status[data-state="error"] {
    color: var(--tomato);
}

.scan-mode-control {
    display: grid;
    gap: 0.45rem;
    width: min(100%, 22rem);
    margin: 1rem auto 0;
    color: var(--herb);
    font-weight: 900;
}

.scan-mode-control.is-modal {
    width: min(100%, 20rem);
    margin: 0;
}

.scan-mode-control select {
    min-height: 2.8rem;
    border-color: rgba(79, 122, 87, 0.28);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font-weight: 800;
}

.pantry-snap-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.pantry-snap-upload {
    position: relative;
    text-align: center;
    cursor: pointer;
}

.pantry-snap-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.pantry-snap-open {
    overflow: hidden;
}

.dashboard-hero-carousel {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 1.25rem;
    border-radius: 1.35rem;
    background: #f3f0e8;
    border: 1px solid rgba(69, 94, 42, 0.16);
    box-shadow: 0 18px 42px rgba(23, 32, 22, 0.14);
}

.dashboard-carousel-track {
    position: relative;
    min-height: 390px;
}

.dashboard-carousel-slide,
.dashboard-carousel-empty {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
}

.dashboard-carousel-slide {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 360ms ease, transform 520ms ease;
}

.dashboard-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.dashboard-carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03) brightness(1.08);
}

.dashboard-carousel-slide.is-image-pending .dashboard-carousel-image {
    opacity: 0;
    visibility: hidden;
}

.dashboard-carousel-slide.is-image-ready .dashboard-carousel-image {
    opacity: 1;
    visibility: visible;
}

.dashboard-carousel-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(10, 18, 12, 0.88) 0%, rgba(10, 18, 12, 0.72) 35%, rgba(10, 18, 12, 0.25) 62%, rgba(10, 18, 12, 0.05) 100%),
        linear-gradient(180deg, rgba(10, 15, 11, 0.02), rgba(10, 15, 11, 0.12));
}

.dashboard-carousel-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: clamp(1.2rem, 4vw, 2.4rem);
    color: var(--warm-white);
}

.dashboard-carousel-content h2 {
    max-width: 500px;
    margin: 0.25rem 0 0.55rem;
    color: var(--warm-white);
    font-size: clamp(1.6rem, 3vw, 3rem);
    line-height: 1;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.dashboard-carousel-content p:not(.eyebrow) {
    max-width: 34rem;
    color: rgba(252, 250, 245, 0.9);
    font-size: clamp(0.98rem, 2vw, 1.18rem);
}

.dashboard-carousel-content .button-row {
    margin-top: 1rem;
}

.mpr-carousel-footer {
    position: relative;
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 64px;
    padding: 0.72rem clamp(0.85rem, 3vw, 1.15rem);
    border-top: 1px solid rgba(252, 250, 245, 0.1);
    background: rgba(18, 28, 22, 0.82);
    backdrop-filter: blur(12px);
}

.dashboard-carousel-controls {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    padding: 0.26rem;
    border-radius: 999px;
    background: rgba(252, 250, 245, 0.12);
    pointer-events: auto;
}

.dashboard-carousel-arrow,
.dashboard-carousel-dot {
    border: 0;
    cursor: pointer;
}

.dashboard-carousel-arrow {
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--herb);
    font-size: 1.45rem;
    line-height: 1;
}

.dashboard-carousel-arrow:hover,
.dashboard-carousel-arrow:focus,
.dashboard-carousel-dot:hover,
.dashboard-carousel-dot:focus {
    outline: 2px solid rgba(185, 221, 143, 0.72);
    outline-offset: 2px;
}

.dashboard-carousel-arrow:disabled {
    cursor: default;
    opacity: 0.45;
}

.dashboard-carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.32rem;
}

.dashboard-carousel-dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: rgba(252, 250, 245, 0.52);
    transition: width 160ms ease, background 160ms ease;
}

.dashboard-carousel-dot.is-active {
    width: 1.65rem;
    background: var(--leaf);
}

.vibe-mini-control.is-carousel,
.mpr-vibe-controls {
    margin: 0;
    min-width: 0;
}

.vibe-mini-control.is-carousel span {
    color: rgba(252, 250, 245, 0.76);
}

.vibe-mini-control.is-carousel a {
    background: rgba(252, 250, 245, 0.88);
    color: var(--forest);
}

.mpr-recipe-image-loader {
    position: absolute;
    inset: 0 0 0 44%;
    z-index: 1;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: rgba(252, 250, 245, 0.92);
    text-align: center;
    background:
        radial-gradient(circle at 62% 34%, rgba(232, 185, 78, 0.34), transparent 18%),
        radial-gradient(circle at 52% 50%, rgba(185, 221, 143, 0.24), transparent 31%),
        linear-gradient(135deg, rgba(34, 56, 35, 0.92), rgba(12, 22, 18, 0.98));
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms ease, visibility 240ms ease;
}

.dashboard-carousel-slide.is-image-pending .mpr-recipe-image-loader {
    opacity: 1;
    visibility: visible;
}

.mpr-loader-glow {
    display: grid;
    place-items: center;
    width: 7.4rem;
    height: 7.4rem;
    border: 1px solid rgba(185, 221, 143, 0.4);
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(185, 221, 143, 0.2), transparent 62%),
        rgba(10, 18, 12, 0.32);
    box-shadow: 0 0 42px rgba(185, 221, 143, 0.24);
    animation: mpr-loader-glow 2.4s ease-in-out infinite;
}

.mpr-loader-pot {
    position: relative;
    width: 4.2rem;
    height: 3.1rem;
    border: 0.34rem solid rgba(252, 250, 245, 0.88);
    border-top: 0;
    border-radius: 0 0 1.2rem 1.2rem;
    transform-origin: center bottom;
    animation: mpr-loader-simmer 1.55s ease-in-out infinite;
}

.mpr-loader-pot::before,
.mpr-loader-pot::after {
    content: "";
    position: absolute;
    top: 0.35rem;
    width: 0.85rem;
    height: 0.5rem;
    border: 0.22rem solid rgba(252, 250, 245, 0.8);
}

.mpr-loader-pot::before {
    left: -1.05rem;
    border-right: 0;
    border-radius: 999px 0 0 999px;
}

.mpr-loader-pot::after {
    right: -1.05rem;
    border-left: 0;
    border-radius: 0 999px 999px 0;
}

.mpr-steam {
    position: absolute;
    bottom: 3.05rem;
    width: 0.32rem;
    height: 1.7rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(252, 250, 245, 0), rgba(252, 250, 245, 0.82));
    opacity: 0;
    animation: mpr-steam-rise 1.7s ease-in-out infinite;
}

.mpr-steam-1 {
    left: 0.8rem;
}

.mpr-steam-2 {
    left: 1.85rem;
    animation-delay: 0.28s;
}

.mpr-steam-3 {
    left: 2.9rem;
    animation-delay: 0.54s;
}

.mpr-loader-text {
    font-weight: 900;
    letter-spacing: 0;
}

.mpr-loader-subtext {
    color: rgba(252, 250, 245, 0.68);
    font-size: 0.86rem;
    font-weight: 800;
}

@keyframes mpr-steam-rise {
    0% {
        transform: translateY(0) scaleY(0.8);
        opacity: 0;
    }
    34% {
        opacity: 0.82;
    }
    100% {
        transform: translateY(-1.45rem) scaleY(1.16);
        opacity: 0;
    }
}

@keyframes mpr-loader-simmer {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-0.12rem) rotate(1deg);
    }
}

@keyframes mpr-loader-glow {
    0%, 100% {
        box-shadow: 0 0 32px rgba(185, 221, 143, 0.18);
    }
    50% {
        box-shadow: 0 0 52px rgba(185, 221, 143, 0.34);
    }
}

.pantry-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
}

.pantry-image-card {
    min-height: 158px;
    border-radius: 1rem;
    box-shadow: 0 14px 30px rgba(23, 32, 22, 0.13);
}

.pantry-image-card::before {
    background: linear-gradient(180deg, rgba(12, 17, 13, 0.04), rgba(12, 17, 13, 0.48));
}

.pantry-image-label {
    border-radius: 0.85rem;
    padding: 0.62rem 0.72rem;
    background: rgba(23, 32, 22, 0.62);
}

.recipe-option-section {
    margin: 1.25rem 0 1.5rem;
}

.recipe-option-section.is-secondary {
    margin-top: 0.85rem;
}

.section-title.compact {
    margin-bottom: 0.75rem;
}

.recipe-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.95rem;
    align-items: stretch;
}

.recipe-option-section.is-secondary .recipe-option-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.recipe-option-tile {
    position: relative;
    display: block;
    min-height: 210px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(31, 50, 31, 0.12);
    border-radius: 1.05rem;
    color: var(--warm-white);
    background: #243322;
    box-shadow: 0 16px 34px rgba(23, 32, 22, 0.14);
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.recipe-option-section.is-secondary .recipe-option-tile {
    min-height: 158px;
    aspect-ratio: 5 / 4;
    border-radius: 0.9rem;
}

.recipe-option-tile:hover,
.recipe-option-tile:focus {
    transform: translateY(-2px);
    border-color: rgba(183, 217, 139, 0.72);
    box-shadow: 0 22px 44px rgba(23, 32, 22, 0.2);
    outline: none;
}

.recipe-option-tile:focus-visible {
    outline: 3px solid rgba(183, 217, 139, 0.72);
    outline-offset: 3px;
}

.recipe-option-img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
    transition: transform 220ms ease;
}

.recipe-option-section.is-secondary .recipe-option-img {
    min-height: 158px;
}

.recipe-option-tile:hover .recipe-option-img,
.recipe-option-tile:focus .recipe-option-img {
    transform: scale(1.035);
}

.recipe-option-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(12, 17, 13, 0), rgba(12, 17, 13, 0.88));
}

.recipe-option-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    background: rgba(185, 221, 143, 0.22);
}

.recipe-option-tile strong,
.recipe-option-tile small {
    display: block;
}

.recipe-option-tile strong {
    color: #fffaf0;
    font-size: 1.08rem;
    line-height: 1.05;
}

.recipe-option-tile small {
    color: rgba(252, 250, 245, 0.86);
    font-weight: 800;
}

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav {
        justify-content: flex-start;
    }

    .dashboard-carousel-track {
        min-height: 480px;
    }

    .mpr-recipe-image-loader {
        inset: 0;
        align-content: start;
        padding-top: 2rem;
    }

    .dashboard-carousel-overlay {
        background:
            linear-gradient(180deg, rgba(10, 15, 11, 0.08) 0%, rgba(10, 15, 11, 0.2) 34%, rgba(10, 15, 11, 0.82) 100%),
            linear-gradient(90deg, rgba(10, 15, 11, 0.28), rgba(10, 15, 11, 0.02) 64%);
    }

    .mpr-carousel-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-carousel-controls {
        justify-content: space-between;
        width: 100%;
        border-radius: 1rem;
    }
}

@media (min-width: 761px) {
    .bottom-app-nav {
        display: none;
    }
}

@media (max-width: 760px) {
    .site-header {
        align-items: center;
        flex-direction: row;
    }

    .site-header .top-nav {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .site-header .top-nav .is-primary-nav {
        display: none;
    }

    .site-header .brand {
        min-width: 0;
        gap: 0.5rem;
        font-size: clamp(1.38rem, 6.1vw, 1.72rem);
    }

    .brand-mark {
        flex: 0 0 auto;
        width: 2.28rem;
        height: 2.28rem;
        border-radius: 0.82rem;
    }

    .brand-wordmark {
        max-width: calc(100vw - 9.4rem);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bottom-app-nav {
        position: sticky;
        bottom: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.12rem;
        padding: 0.42rem max(0.6rem, env(safe-area-inset-left)) calc(0.42rem + env(safe-area-inset-bottom)) max(0.6rem, env(safe-area-inset-right));
        border-radius: 1.15rem 1.15rem 0 0;
        background: rgba(148, 195, 76, 0.94);
        box-shadow: 0 -10px 24px rgba(23, 32, 22, 0.16);
    }

    .bottom-app-nav a,
    .bottom-app-nav button {
        min-height: 3.15rem;
        border-radius: 1rem;
        font-size: 0.62rem;
    }

    .bottom-nav-plus {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 0.52rem;
    }

    .nav-icon-link {
        width: 2.25rem;
        min-width: 2.25rem;
        height: 2.25rem;
        min-height: 2.25rem;
        padding: 0;
    }

    .nav-tooltip {
        display: none;
    }

    .brand-wordmark {
        font-size: clamp(1.32rem, 6vw, 1.6rem);
    }

    .landing-hero-visual,
    .landing-hero-img {
        min-height: 330px;
    }

    .brand-coach-avatar {
        width: 1.95rem;
        height: 1.95rem;
    }

    .dashboard-carousel-track {
        min-height: 520px;
    }

    .dashboard-carousel-content {
        padding: 1rem;
    }

    .dashboard-carousel-content h2 {
        max-width: 100%;
        font-size: clamp(1.35rem, 7vw, 2.1rem);
        line-height: 1.02;
    }

    .mpr-vibe-controls {
        align-items: flex-start;
    }

    .mpr-vibe-controls span {
        flex-basis: 100%;
    }

    .dashboard-carousel-arrow {
        width: 2.3rem;
        height: 2.3rem;
    }
}

/* Mobile-first inventory intake and category browsing. */
.inventory-mobile-heading {
    display: grid;
    gap: 0.55rem;
}

.inventory-add-cta {
    width: fit-content;
    min-height: 3rem;
    padding-inline: 1.25rem;
}

.pantry-image-card {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.pantry-image-card:focus-visible {
    outline: 3px solid rgba(185, 221, 143, 0.78);
    outline-offset: 3px;
}

.inventory-secondary-stack {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.inventory-secondary-stack details > summary {
    cursor: pointer;
    color: var(--herb);
    font-weight: 950;
}

.inventory-intake-sheet,
.inventory-add-sheet,
.inventory-category-sheet {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    align-items: end;
    justify-content: center;
}

.inventory-intake-sheet.is-open,
.inventory-add-sheet.is-open,
.inventory-category-sheet.is-open {
    display: flex;
}

.inventory-sheet-open {
    overflow: hidden;
}

.inventory-sheet-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(9, 14, 10, 0.54);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.inventory-sheet-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: min(86vh, 760px);
    overflow: auto;
    border-radius: 1.35rem 1.35rem 0 0;
    border: 1px solid rgba(221, 230, 203, 0.18);
    background:
        radial-gradient(circle at 100% 0%, rgba(185, 221, 143, 0.18), transparent 22rem),
        rgba(252, 250, 245, 0.98);
    padding: 1rem max(1rem, env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    box-shadow: 0 -22px 48px rgba(10, 16, 12, 0.24);
}

.inventory-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.inventory-sheet-close {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: rgba(69, 94, 42, 0.12);
    color: var(--herb);
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 950;
}

.inventory-intake-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
}

.inventory-intake-option {
    display: grid;
    gap: 0.35rem;
    min-height: 6rem;
    border: 1px solid rgba(69, 94, 42, 0.14);
    border-radius: 1.05rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(23, 32, 22, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.inventory-intake-option:hover,
.inventory-intake-option:focus {
    outline: 0;
    transform: translateY(-1px);
    border-color: rgba(69, 94, 42, 0.34);
    background: rgba(255, 252, 245, 0.96);
    box-shadow: 0 18px 36px rgba(23, 32, 22, 0.13);
}

.intake-option-icon {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.9rem;
    background: rgba(69, 94, 42, 0.1);
    color: var(--herb);
}

.intake-option-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.inventory-intake-option strong {
    color: var(--herb);
    font-size: 1rem;
}

.inventory-intake-option > span:not(.intake-option-icon) {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.inventory-category-items,
.receipt-review-list {
    display: grid;
    gap: 0.75rem;
}

.inventory-item.is-in-sheet,
.receipt-suggestion-card {
    display: grid;
    gap: 0.7rem;
    border: 1px solid rgba(69, 94, 42, 0.12);
    border-radius: 1rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 26px rgba(23, 32, 22, 0.08);
}

.inventory-item-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.inventory-item-main h3 {
    margin: 0;
}

.inventory-item-main p,
.receipt-confidence {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.inventory-item-quick {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.inventory-item-quick form {
    margin: 0;
}

.inventory-item-quick .button {
    min-height: 2.4rem;
    padding: 0.48rem 0.72rem;
}

.primary-use {
    background: linear-gradient(135deg, var(--herb), var(--basil));
    color: var(--white);
}

.inventory-more-actions {
    width: 100%;
    text-align: right;
}

.inventory-more-actions summary {
    cursor: pointer;
    color: var(--herb);
    font-weight: 900;
    list-style: none;
    min-height: 2rem;
}

.inventory-more-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(7rem, 1fr) minmax(5.5rem, 0.75fr) minmax(5.5rem, 0.75fr);
    align-items: end;
    margin-top: 0.55rem;
    padding: 0.65rem;
    border: 1px solid rgba(111, 163, 119, 0.16);
    border-radius: 1rem;
    background: rgba(255, 252, 244, 0.72);
    text-align: left;
}

.inventory-more-grid .inventory-quick-action {
    grid-column: 1 / -1;
    width: 100%;
    align-self: end;
}

.inventory-empty-category {
    border: 1px dashed rgba(69, 94, 42, 0.28);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.58);
}

.receipt-scan-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 1rem;
    align-items: start;
}

.receipt-preview {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border: 1px solid rgba(69, 94, 42, 0.14);
    border-radius: 1rem;
    background: rgba(252, 250, 245, 0.9);
}

.receipt-suggestion-card {
    grid-template-columns: minmax(120px, 1.2fr) repeat(2, minmax(110px, 0.7fr));
}

.form-grid.small {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.receipt-suggestion-card .photo-suggestion-check,
.receipt-suggestion-card .receipt-confidence {
    grid-column: 1 / -1;
}

.receipt-confidence span {
    display: block;
}

@media (min-width: 900px) {
    .inventory-category-sheet {
        justify-content: flex-end;
        align-items: stretch;
    }

    .inventory-category-sheet .inventory-sheet-panel {
        width: min(520px, 42vw);
        max-height: 100vh;
        border-radius: 1.35rem 0 0 1.35rem;
        padding-top: 1.25rem;
    }

    .inventory-add-sheet .inventory-sheet-panel,
    .inventory-intake-sheet .inventory-sheet-panel {
        margin-bottom: 2rem;
        border-radius: 1.35rem;
    }
}

@media (max-width: 760px) {
    .inventory-mobile-heading {
        padding-bottom: 0.2rem;
    }

    .inventory-add-cta {
        width: 100%;
        justify-content: center;
    }

    .pantry-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .pantry-image-card {
        min-height: 132px;
    }

    .pantry-image-label {
        max-width: calc(100% - 1rem);
        padding: 0.55rem 0.62rem;
    }

    .pantry-image-label strong {
        font-size: 1rem;
    }

    .inventory-intake-options {
        grid-template-columns: 1fr;
    }

    .inventory-more-grid,
    .receipt-scan-layout,
    .receipt-suggestion-card {
        grid-template-columns: 1fr;
    }

    .inventory-secondary-stack {
        margin-bottom: 1rem;
    }
}

/* Final header brand override: keep the approved warm culinary mark active after later mobile rules. */
.site-header {
    position: relative;
    z-index: 90;
    align-items: center;
    margin-top: 0.65rem;
    border-radius: 1.35rem;
    padding: 0.6rem 0.76rem;
    overflow: visible;
    background: linear-gradient(135deg, rgba(251, 247, 239, 1), rgba(246, 238, 222, 0.97)), var(--mpr-cream);
    border: 1px solid rgba(75, 45, 31, 0.12);
    box-shadow: 0 14px 34px rgba(75, 45, 31, 0.1);
}

.site-header .brand {
    min-width: 0;
    gap: 0.72rem;
    color: var(--mpr-brown);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 600;
    white-space: nowrap;
}

.brand-mark {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(75, 45, 31, 0.08);
    background: var(--mpr-cream);
    box-shadow: 0 8px 20px rgba(75, 45, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.brand-wordmark {
    max-width: min(38vw, 25rem);
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-brand-script);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 0.88;
    color: var(--mpr-brown);
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site-header .top-nav {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    overflow: visible;
    gap: 0.56rem;
}

.nav-icon-link {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.72rem;
    min-width: 2.72rem;
    height: 2.72rem;
    min-height: 2.72rem;
    padding: 0;
    border: 1px solid rgba(47, 79, 37, 0.26);
    border-radius: 0.95rem;
    background: #fffaf0;
    color: #24351f;
    opacity: 1;
    overflow: visible;
    box-shadow: 0 5px 14px rgba(75, 45, 31, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.nav-icon-link:hover,
.nav-icon-link:focus,
.nav-icon-link.active {
    border-color: rgba(47, 79, 37, 0.48);
    background: #edf7d1;
    color: #1d2b17;
    box-shadow: 0 0 0 3px rgba(140, 160, 109, 0.18), 0 9px 18px rgba(75, 45, 31, 0.12);
}

.nav-icon-link:hover,
.nav-icon-link:focus {
    transform: translateY(-1px);
}

.nav-icon-link.active {
    border-color: rgba(47, 79, 37, 0.75);
    background: #2f4f25;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(183, 217, 139, 0.34), 0 12px 22px rgba(31, 50, 31, 0.18);
}

.top-nav-icon {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
    stroke: currentColor;
    stroke-width: 2.2;
    opacity: 1;
    fill: none;
    filter: none;
    object-fit: unset;
    flex: 0 0 auto;
}

.nav-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.56rem);
    bottom: auto;
    z-index: 999;
    width: max-content;
    max-width: 12rem;
    transform: translate(-50%, -0.2rem);
    border-radius: 999px;
    padding: 0.42rem 0.66rem;
    background: #1f321f;
    color: #fffaf0;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.1;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(31, 50, 31, 0.24);
    transition: opacity 140ms ease, transform 140ms ease;
}

.nav-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 0.52rem;
    height: 0.52rem;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
}

.nav-icon-link:hover .nav-tooltip,
.nav-icon-link:focus .nav-tooltip,
.nav-icon-link:focus-visible .nav-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 760px) {
    .site-header {
        padding: 0.52rem 0.56rem;
        border-radius: 1.1rem;
        overflow: visible;
    }

    .site-header .brand {
        flex: 1 1 auto;
        gap: 0.5rem;
        font-size: clamp(1.52rem, 7.2vw, 2rem);
    }

    .brand-mark {
        width: 2.38rem;
        height: 2.38rem;
        border-radius: 0;
    }

    .brand-wordmark {
        max-width: calc(100vw - 9.8rem);
        line-height: 0.9;
    }

    .site-header .top-nav .is-primary-nav {
        display: none;
    }

    .site-header .top-nav {
        gap: 0.42rem;
        overflow: visible;
    }

    .nav-icon-link {
        width: 2.72rem;
        min-width: 2.72rem;
        height: 2.72rem;
        min-height: 2.72rem;
        border-radius: 0.95rem;
    }

    .top-nav-icon {
        width: 1.42rem;
        height: 1.42rem;
    }

    .nav-tooltip {
        display: none;
    }
}

/* Basil header polish: final cascade guard for the simplified brand mark and readable nav. */
.site-header .brand-mark {
    flex: 0 0 auto;
    width: 2.82rem;
    height: 2.82rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.site-header .brand-mark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-header .nav-icon-link {
    border-color: rgba(47, 79, 37, 0.26);
    background: #fffaf0;
    color: #24351f;
    opacity: 1;
}

.site-header .nav-icon-link:hover,
.site-header .nav-icon-link:focus {
    border-color: rgba(47, 79, 37, 0.48);
    background: #edf7d1;
    color: #1d2b17;
}

.site-header .nav-icon-link.active {
    border-color: rgba(47, 79, 37, 0.75);
    background: #2f4f25;
    color: #ffffff;
}

.site-header .top-nav-icon {
    width: 1.45rem;
    height: 1.45rem;
    display: block;
    opacity: 1;
    filter: none;
    color: currentColor;
    stroke: currentColor;
    fill: none;
    overflow: visible;
}

.site-header .top-nav-icon-lines,
.site-header .top-nav-icon path,
.site-header .top-nav-icon rect,
.site-header .top-nav-icon circle,
.site-header .top-nav-icon line,
.site-header .top-nav-icon polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    opacity: 1;
}

@media (max-width: 760px) {
    .site-header .brand-mark {
        width: 2.38rem;
        height: 2.38rem;
    }

    .site-header .top-nav-icon {
        width: 1.42rem;
        height: 1.42rem;
    }
}

/* Urgent nav icon contrast guard: inactive icons must stay visible on cream buttons. */
.site-header .header-nav .nav-icon-link:not(.active) {
    background: rgba(255, 252, 241, 0.96) !important;
    border-color: rgba(34, 53, 31, 0.22) !important;
    color: #22351f !important;
    opacity: 1 !important;
}

.site-header .header-nav .nav-icon-link:not(.active) .top-nav-icon,
.site-header .header-nav .nav-icon-link:not(.active) .top-nav-icon *,
.site-header .header-nav .nav-icon-link:not(.active) i {
    color: #22351f !important;
    stroke: #22351f !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.site-header .header-nav .nav-icon-link.active {
    background: #2f4f25 !important;
    border-color: rgba(47, 79, 37, 0.78) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.site-header .header-nav .nav-icon-link.active .top-nav-icon,
.site-header .header-nav .nav-icon-link.active .top-nav-icon *,
.site-header .header-nav .nav-icon-link.active i {
    color: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.site-header .header-nav .nav-icon-link:hover:not(.active),
.site-header .header-nav .nav-icon-link:focus:not(.active) {
    background: #f3ead8 !important;
    border-color: rgba(34, 53, 31, 0.34) !important;
    color: #22351f !important;
}

.site-header .header-nav .top-nav-icon {
    display: block !important;
    width: 1.45rem !important;
    height: 1.45rem !important;
    min-width: 1.45rem !important;
    min-height: 1.45rem !important;
    fill: none !important;
    stroke-width: 2.4 !important;
    pointer-events: none;
}

.site-header .header-nav .top-nav-icon-lines,
.site-header .header-nav .top-nav-icon path,
.site-header .header-nav .top-nav-icon rect,
.site-header .header-nav .top-nav-icon circle,
.site-header .header-nav .top-nav-icon line,
.site-header .header-nav .top-nav-icon polyline {
    fill: none !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    vector-effect: non-scaling-stroke;
}

/* Approved horizontal logo lockup: image-based wordmark for consistent Safari/mobile rendering. */
.site-header .brand-logo-link,
.mpr-logo,
.site-logo,
.brand-logo {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0;
    line-height: 1;
}

.site-header .brand-logo-img,
.mpr-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-height: 52px;
    max-width: 360px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 760px) {
    .site-header .brand-logo-link,
    .mpr-logo {
        flex: 1 1 auto;
    }

    .site-header .brand-logo-img,
    .mpr-logo-img {
        max-height: 42px;
        max-width: min(230px, calc(100vw - 9.6rem));
    }
}

.inventory-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.dashboard-primary-actions {
    margin: 0.4rem auto 1rem;
    max-width: 760px;
}

.recipe-card-image-pending {
    display: grid;
    place-items: center;
    min-height: 100%;
    aspect-ratio: 4 / 3;
    border-radius: inherit;
    background:
        radial-gradient(circle at 72% 24%, rgba(232, 185, 78, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(34, 56, 35, 0.94), rgba(12, 22, 18, 0.98));
    color: rgba(252, 250, 245, 0.92);
    font-weight: 900;
    text-align: center;
}

.recipe-card-image-pending span {
    display: inline-grid;
    place-items: center;
    min-height: 2.2rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(252, 250, 245, 0.12);
}

.pantry-onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgba(12, 20, 14, 0.48);
    backdrop-filter: blur(8px);
}

.pantry-onboarding-overlay.is-open {
    display: grid;
}

.pantry-onboarding-modal {
    width: min(940px, 100%);
    max-height: min(88vh, 780px);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    overflow: hidden;
    border: 1px solid rgba(47, 79, 37, 0.18);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 10% 0%, rgba(231, 173, 54, 0.16), transparent 34%),
        #fffaf0;
    box-shadow: 0 30px 90px rgba(20, 31, 20, 0.28);
    color: #1f321f;
}

.pantry-onboarding-header {
    padding: 1.2rem 1.25rem 0.65rem;
}

.pantry-onboarding-header h2 {
    margin: 0.12rem 0 0.4rem;
    color: #1f321f;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1;
}

.pantry-onboarding-header p:last-child {
    margin: 0;
    color: rgba(31, 50, 31, 0.76);
    font-weight: 700;
}

.pantry-onboarding-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem 0.85rem;
    border-top: 1px solid rgba(47, 79, 37, 0.1);
    border-bottom: 1px solid rgba(47, 79, 37, 0.1);
    background: rgba(255, 255, 255, 0.44);
}

.pantry-onboarding-tools span {
    color: rgba(31, 50, 31, 0.7);
    font-size: 0.94rem;
    font-weight: 800;
}

.pantry-onboarding-groups {
    overflow: auto;
    padding: 0.8rem 1.25rem 1rem;
}

.pantry-onboarding-group {
    border: 1px solid rgba(47, 79, 37, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.62);
}

.pantry-onboarding-group + .pantry-onboarding-group {
    margin-top: 0.75rem;
}

.pantry-onboarding-group summary {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    color: #24351f;
    font-weight: 950;
}

.pantry-onboarding-group summary button {
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(47, 79, 37, 0.2);
    border-radius: 999px;
    background: #fffaf0;
    color: #24351f;
    cursor: pointer;
    font-weight: 900;
}

.pantry-onboarding-checkgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 0.55rem;
    padding: 0 0.8rem 0.85rem;
}

.pantry-onboarding-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: center;
    min-height: 3.45rem;
    padding: 0.65rem;
    border: 1px solid rgba(47, 79, 37, 0.13);
    border-radius: 0.85rem;
    background: rgba(251, 247, 239, 0.82);
    cursor: pointer;
}

.pantry-onboarding-check.is-selected,
.pantry-onboarding-check:has(input:checked) {
    border-color: rgba(47, 79, 37, 0.45);
    background: #eef6db;
    box-shadow: 0 8px 18px rgba(47, 79, 37, 0.12);
}

.pantry-onboarding-check input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #2f4f25;
}

.pantry-onboarding-check strong,
.pantry-onboarding-check small {
    display: block;
}

.pantry-onboarding-check strong {
    line-height: 1.05;
}

.pantry-onboarding-check small {
    margin-top: 0.2rem;
    color: rgba(31, 50, 31, 0.64);
    font-size: 0.82rem;
    font-weight: 800;
}

.pantry-onboarding-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(47, 79, 37, 0.14);
    background: rgba(255, 250, 240, 0.96);
    box-shadow: 0 -12px 28px rgba(31, 50, 31, 0.08);
}

.pantry-onboarding-overlay.is-saving .pantry-onboarding-modal {
    cursor: progress;
}

@media (max-width: 640px) {
    .pantry-onboarding-overlay {
        align-items: end;
        padding: 0;
    }

    .pantry-onboarding-modal {
        width: 100%;
        max-height: 92vh;
        border-radius: 1.2rem 1.2rem 0 0;
    }

    .pantry-onboarding-header,
    .pantry-onboarding-tools,
    .pantry-onboarding-groups,
    .pantry-onboarding-actions {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pantry-onboarding-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .pantry-onboarding-checkgrid {
        grid-template-columns: 1fr;
    }

    .pantry-onboarding-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pantry-onboarding-actions .button {
        width: 100%;
        min-height: 3rem;
    }
}

/* Dashboard carousel guard: keep long recipe titles and CTAs above the footer. */
.dashboard-hero-carousel {
    overflow: hidden;
}

.dashboard-hero-carousel .dashboard-carousel-track {
    min-height: 430px !important;
}

.dashboard-hero-carousel .dashboard-carousel-slide,
.dashboard-hero-carousel .dashboard-carousel-empty {
    align-items: stretch !important;
}

.dashboard-hero-carousel .dashboard-carousel-content {
    align-self: end !important;
    max-width: 56% !important;
    padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.75rem) 5.25rem !important;
}

.dashboard-hero-carousel .dashboard-carousel-content h2 {
    max-width: 100% !important;
    margin-bottom: 0.45rem !important;
    font-size: clamp(1.45rem, 2.4vw, 2.6rem) !important;
    line-height: 0.98 !important;
}

.dashboard-hero-carousel .dashboard-carousel-content .button-row {
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin-top: 0.75rem !important;
}

.dashboard-hero-carousel .mpr-carousel-footer {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 4 !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding-block: 0.45rem !important;
}

@media (max-width: 700px) {
    .dashboard-hero-carousel .dashboard-carousel-track {
        min-height: 500px !important;
    }

    .dashboard-hero-carousel .dashboard-carousel-content {
        max-width: 92% !important;
        padding: 1rem 1rem 5rem !important;
    }

    .dashboard-hero-carousel .dashboard-carousel-content h2 {
        font-size: clamp(1.25rem, 6vw, 1.85rem) !important;
        line-height: 1.02 !important;
    }

    .dashboard-hero-carousel .mpr-carousel-footer {
        min-height: 52px !important;
        max-height: 52px !important;
    }
}

.daily-use-heading {
    max-width: 980px;
    margin-inline: auto;
}

.daily-use-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 1.2rem;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.daily-use-items,
.daily-use-category {
    display: grid;
    gap: 1rem;
}

.daily-use-category {
    background: rgba(255, 252, 241, 0.72);
    border: 1px solid rgba(75, 45, 31, 0.1);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: 0 18px 42px rgba(31, 50, 31, 0.08);
}

.daily-use-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.daily-use-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 1px solid rgba(47, 79, 37, 0.13);
    border-radius: 18px;
    background: #fffaf0;
    box-shadow: 0 10px 24px rgba(75, 45, 31, 0.07);
}

.daily-use-select {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    cursor: pointer;
}

.daily-use-select input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    accent-color: #2f4f25;
}

.daily-use-select strong {
    display: block;
    color: #21351f;
    font-size: 1rem;
}

.daily-use-select small {
    display: block;
    color: rgba(33, 53, 31, 0.68);
    margin-top: 0.2rem;
}

.daily-use-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.daily-use-chip {
    border: 1px solid rgba(47, 79, 37, 0.18);
    background: #f6efd9;
    color: #22351f;
    border-radius: 999px;
    padding: 0.55rem 0.75rem;
    min-height: 40px;
    font-weight: 800;
    cursor: pointer;
}

.daily-use-chip:hover,
.daily-use-chip:focus {
    background: #d9efaa;
    border-color: rgba(47, 79, 37, 0.34);
}

.daily-use-custom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.daily-use-custom label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(33, 53, 31, 0.72);
}

.daily-use-custom input {
    width: 100%;
    border: 1px solid rgba(47, 79, 37, 0.18);
    border-radius: 12px;
    padding: 0.62rem 0.7rem;
    background: rgba(255, 255, 255, 0.86);
    color: #21351f;
}

.daily-use-summary {
    position: sticky;
    top: 6rem;
}

.daily-use-summary-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 22px;
    background: #21351f;
    color: #fffaf0;
    box-shadow: 0 18px 42px rgba(31, 50, 31, 0.16);
}

.daily-use-summary-card h2,
.daily-use-summary-card .eyebrow {
    color: inherit;
}

.daily-use-summary-card .muted {
    color: rgba(255, 250, 240, 0.72);
}

.daily-use-summary-list {
    display: grid;
    gap: 0.5rem;
}

.daily-use-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 250, 240, 0.1);
    color: #fffaf0;
    font-weight: 700;
}

.full-width {
    width: 100%;
}

.beta-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.95rem;
    align-items: start;
    max-width: 1060px;
    margin: 1.25rem auto;
    padding: 1rem;
    border: 1px solid rgba(111, 163, 119, 0.28);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(246, 241, 231, 0.92)),
        radial-gradient(circle at top left, rgba(231, 173, 54, 0.18), transparent 18rem);
    box-shadow: 0 16px 42px rgba(75, 45, 31, 0.09);
    color: #24351f;
}

.beta-notice[hidden] {
    display: none;
}

.beta-notice-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(223, 233, 210, 0.84);
    border: 1px solid rgba(111, 163, 119, 0.24);
}

.beta-notice-mark {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.beta-notice-copy {
    display: grid;
    gap: 0.35rem;
}

.beta-notice-copy p {
    margin: 0;
}

.beta-notice-copy .eyebrow {
    color: #6f6a3d;
}

.beta-notice-dismiss {
    width: auto;
    min-height: 40px;
    border: 1px solid rgba(47, 79, 37, 0.2);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: #fffaf0;
    color: #2f4f25;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(75, 45, 31, 0.08);
}

.beta-notice-dismiss:hover,
.beta-notice-dismiss:focus {
    background: #dfe9d2;
    border-color: rgba(47, 79, 37, 0.34);
}

.beta-notice--home {
    margin-top: -0.25rem;
}

@media (max-width: 820px) {
    .daily-use-layout {
        display: flex;
        flex-direction: column;
        padding-inline: 0.85rem;
    }

    .daily-use-summary {
        position: sticky;
        bottom: 4.8rem;
        top: auto;
        width: 100%;
        z-index: 12;
    }

    .daily-use-summary-card {
        border-radius: 18px;
    }

    .beta-notice {
        grid-template-columns: auto minmax(0, 1fr);
        margin: 1rem 0.85rem;
        padding: 0.9rem;
    }

    .beta-notice-dismiss {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
}

@media (max-width: 520px) {
    .inventory-primary-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-primary-actions .button {
        width: 100%;
    }

    .daily-use-grid {
        grid-template-columns: 1fr;
    }
}

.social-recipe-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1rem;
    align-items: start;
}

.social-recipe-import-card,
.social-recipe-review {
    display: grid;
    gap: 0.9rem;
}

.social-recipe-import-card textarea,
.social-recipe-review textarea {
    min-height: 8rem;
}

.social-ingredient-list {
    display: grid;
    gap: 0.6rem;
}

.social-ingredient-row {
    display: grid;
    grid-template-columns: minmax(130px, 1.4fr) 0.45fr 0.55fr minmax(120px, 1fr);
    gap: 0.5rem;
}

.social-saved-card {
    margin-top: 1rem;
}

.social-saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.social-saved-item {
    border: 1px solid rgba(47, 79, 37, 0.14);
    border-radius: 18px;
    background: rgba(255, 252, 241, 0.72);
    padding: 1rem;
    display: grid;
    gap: 0.65rem;
}

.shopping-reason-line {
    margin-top: 0.25rem;
    font-size: 0.86rem;
    color: #4b2d1f;
}

@media (max-width: 820px) {
    .social-recipe-layout {
        grid-template-columns: 1fr;
        padding-inline: 0.85rem;
    }

    .social-saved-card {
        margin-inline: 0.85rem;
    }

    .social-ingredient-row {
        grid-template-columns: 1fr 0.6fr;
    }
}

.recipe-book-heading .button-row {
    margin-top: 0.85rem;
}

.recipe-book-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    max-width: 1120px;
    margin: 0 auto 1rem;
}

.recipe-book-action-card {
    display: grid;
    gap: 0.2rem;
    min-height: 82px;
    align-content: center;
    border: 1px solid rgba(47, 79, 37, 0.14);
    border-radius: 18px;
    padding: 0.85rem;
    background: rgba(255, 252, 241, 0.86);
    color: #22351f;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(75, 45, 31, 0.07);
}

.recipe-book-action-card span {
    font-weight: 900;
}

.recipe-book-action-card small {
    color: rgba(33, 53, 31, 0.68);
    line-height: 1.25;
}

.recipe-book-action-card:hover,
.recipe-book-action-card:focus,
.recipe-book-action-card.is-primary {
    background: #2f4f25;
    border-color: rgba(47, 79, 37, 0.36);
    color: #fffaf0;
}

.recipe-book-action-card:hover small,
.recipe-book-action-card:focus small,
.recipe-book-action-card.is-primary small {
    color: rgba(255, 250, 240, 0.78);
}

.recipe-book-filters {
    display: flex;
    gap: 0.55rem;
    max-width: 1120px;
    margin: 0 auto 1rem;
    padding: 0.2rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.recipe-book-filters a {
    flex: 0 0 auto;
    border: 1px solid rgba(47, 79, 37, 0.16);
    border-radius: 999px;
    padding: 0.58rem 0.86rem;
    background: rgba(255, 252, 241, 0.82);
    color: #22351f;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(75, 45, 31, 0.06);
}

.recipe-book-filters a.active,
.recipe-book-filters a:hover,
.recipe-book-filters a:focus {
    background: #2f4f25;
    border-color: rgba(47, 79, 37, 0.44);
    color: #fffaf0;
}

.recipe-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    max-width: 1120px;
    margin: 0 auto 1.2rem;
}

.recipe-book-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid rgba(47, 79, 37, 0.14);
    border-radius: 22px;
    background: rgba(255, 252, 241, 0.88);
    box-shadow: 0 18px 42px rgba(75, 45, 31, 0.08);
}

.recipe-book-image,
.recipe-book-view-image {
    display: grid;
    place-items: center;
    min-height: 180px;
    background:
        radial-gradient(circle at 30% 20%, rgba(217, 239, 170, 0.44), transparent 12rem),
        linear-gradient(135deg, #2f4f25, #172414);
    color: #fffaf0;
    text-decoration: none;
    font-size: 4rem;
    font-weight: 900;
}

.recipe-book-image img,
.recipe-book-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-book-card-body {
    display: grid;
    gap: 0.62rem;
    padding: 1rem;
}

.recipe-book-card h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.08;
}

.recipe-book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: rgba(33, 53, 31, 0.72);
    font-size: 0.86rem;
    font-weight: 800;
}

.recipe-book-empty,
.recipe-book-manual,
.recipe-book-access {
    max-width: 980px;
    margin-inline: auto;
}

.recipe-book-manual-form,
.recipe-book-access-form {
    display: grid;
    gap: 0.85rem;
}

.recipe-book-view-hero {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    align-items: stretch;
    max-width: 1120px;
    margin: 0 auto 1rem;
}

.recipe-book-view-image {
    min-height: 320px;
    border-radius: 24px;
    overflow: hidden;
}

.recipe-book-view-copy {
    display: grid;
    align-content: center;
    gap: 0.9rem;
    border: 1px solid rgba(47, 79, 37, 0.14);
    border-radius: 24px;
    background: rgba(255, 252, 241, 0.9);
    padding: 1.25rem;
    box-shadow: 0 18px 42px rgba(75, 45, 31, 0.08);
}

.recipe-book-view-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.98;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 700;
}

.checkbox-line input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
}

@media (max-width: 820px) {
    .recipe-book-filters,
    .recipe-book-actions,
    .recipe-book-grid,
    .recipe-book-empty,
    .recipe-book-manual,
    .recipe-book-access,
    .recipe-book-view-hero {
        margin-inline: 0.85rem;
    }

    .recipe-book-view-hero {
        grid-template-columns: 1fr;
    }

    .recipe-book-view-image {
        min-height: 220px;
    }

    .recipe-book-card .button-row,
    .recipe-book-view-copy .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-book-card .button,
    .recipe-book-view-copy .button {
        width: 100%;
    }
}
