:root {
    /* Brand and semantic colours */
    --color-accent: #ff6b47;
    --color-accent-strong: #ae3112;
    --color-accent-soft: #fff0ec;
    --color-ink: #191c1d;
    --color-ink-muted: #5f5e5e;
    --color-canvas: #f8f9fa;
    --color-surface: #fff;
    --color-field: #f3f4f5;
    --color-border: #e1e3e4;
    --color-danger: #ba1a1a;
    --color-success: #28a745;

    /* Spacing */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;

    /* Shape, elevation, and motion */
    --radius-sm: .5rem;
    --radius-md: .75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-pill: 999px;
    --shadow-card: 0 .125rem .625rem rgba(0, 0, 0, .08);
    --shadow-panel: 0 .25rem 1.25rem rgba(0, 0, 0, .05);
    --shadow-list-card: 0 .5625rem 1.625rem rgba(31, 35, 38, .055);
    --shadow-raised: 0 .7rem 2.2rem rgba(33, 37, 41, .07);
    --motion-fast: .15s ease;

    /* Shared controls and layout */
    --control-height: 2.85rem;
    --content-width: 72rem;
}

body {
    background-color: var(--color-canvas);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
}

/* Shared legacy shell components */
.navbar-brand {
    color: var(--color-accent) !important;
    font-weight: 600;
}

.btn-primary {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    border-color: var(--color-accent-strong);
    background-color: var(--color-accent-strong);
}

.chef-hat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-pill);
    color: var(--color-surface);
    background: var(--color-accent);
    font-size: 1.25rem;
}

.chef-hat-icon img {
    width: 100%;
    height: 100%;
}

.content-card,
.sidebar {
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.page-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: var(--radius-pill);
    color: var(--color-ink-muted);
    background: var(--color-border);
    font-size: .875rem;
    font-weight: 600;
}

.progress-step.active {
    color: var(--color-surface);
    background: var(--color-accent);
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 .2rem rgba(255, 107, 71, .25);
}

.main-content {
    min-height: calc(100vh - 7.5rem);
}

.unsubscribe-success-icon {
    font-size: 3rem;
}

.home-hero-mark {
    width: 6.25rem;
    height: 6.25rem;
    font-size: 3.125rem;
}

.home-lead {
    max-width: 37.5rem;
}

.home-feature-icon {
    width: 5rem;
    height: 5rem;
}

.home-cta {
    color: var(--color-surface);
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff8a65 100%);
}

@media (max-width: 768px) {
    .container-fluid {
        padding: var(--space-2);
    }
}

/* Login */
#app_login {
    background: var(--color-surface);
    color: var(--color-ink);
}

#app_login > .container-fluid {
    max-width: none;
    min-height: 100svh;
    margin-top: 0 !important;
    padding: 0;
}

#app_login > .container-fluid > .row {
    margin: 0;
}

#app_login > .container-fluid > .row > [class*="col-"] {
    padding: 0;
}

#app_login .main-content {
    min-height: 100svh;
}

.login-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100svh;
    padding: clamp(4rem, 17vh, 9.5rem) 1rem 3rem;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 104, 72, .035), transparent 24rem),
        #fff;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
}

.login-brand__mark {
    display: grid;
    place-items: center;
    width: 3.65rem;
    height: 3.65rem;
    border-radius: 50%;
    color: #5e1709;
    background: var(--color-accent);
    box-shadow: 0 .15rem .25rem rgba(45, 17, 10, .1);
}

.login-brand__mark svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: currentColor;
}

.login-brand__name {
    font-size: clamp(2rem, 8.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.login-card {
    width: min(100%, 40.5rem);
    margin-top: clamp(3rem, 8vh, 5.5rem);
    padding: 2.8rem 2.6rem 2.7rem;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-raised);
}

.login-card__header {
    margin-bottom: 2.65rem;
    text-align: center;
}

.login-card__header h1 {
    margin: 0 0 .75rem;
    color: var(--color-ink);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.login-card__header p {
    margin: 0;
    color: var(--color-ink-muted);
    font-size: 1.35rem;
    line-height: 1.45;
}

.login-error {
    margin: -1.3rem 0 1.5rem;
    padding: .85rem 1rem;
    border-radius: .6rem;
    color: #8f1c12;
    background: #fff0ed;
    font-size: .95rem;
}

.login-form {
    display: grid;
    gap: 1.65rem;
}

.login-field {
    display: grid;
    gap: .65rem;
}

.login-field label {
    color: #4d2e28;
    font-size: 1.1rem;
    font-weight: 500;
}

.login-field__control {
    position: relative;
}

.login-field__control svg {
    position: absolute;
    top: 50%;
    left: 1.15rem;
    width: 1.55rem;
    height: 1.55rem;
    transform: translateY(-50%);
    fill: none;
    stroke: #68717c;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    pointer-events: none;
}

.login-field__control input {
    width: 100%;
    min-height: 4.35rem;
    padding: .9rem 1rem .9rem 4rem;
    border: 1px solid #e8b8ad;
    border-radius: .7rem;
    outline: 0;
    color: var(--color-ink);
    background: var(--color-canvas);
    font: inherit;
    font-size: 1.35rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.login-field__control input::placeholder {
    color: #707887;
    opacity: 1;
}

.login-field__control:focus-within svg {
    stroke: #b62c12;
}

.login-field__control input:focus {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 .22rem rgba(255, 104, 72, .18);
}

.login-remember {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: .75rem;
    min-height: 2.75rem;
    margin: -.25rem 0;
    color: #4d2e28;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.login-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.login-remember__toggle {
    position: relative;
    flex: 0 0 auto;
    width: 2.65rem;
    height: 1.5rem;
    border: 1px solid #b8bec5;
    border-radius: var(--radius-pill);
    background: #e9ecef;
    transition: border-color .15s ease, background-color .15s ease;
}

.login-remember__toggle::before {
    position: absolute;
    top: .16rem;
    left: .16rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(23, 26, 29, .24);
    content: "";
    transition: transform .15s ease;
}

.login-remember input:checked + .login-remember__toggle {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.login-remember input:checked + .login-remember__toggle::before {
    transform: translateX(1.15rem);
}

.login-remember input:focus-visible + .login-remember__toggle {
    outline: 3px solid rgba(255, 104, 72, .32);
    outline-offset: 3px;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    min-height: 4.35rem;
    margin-top: .95rem;
    padding: .85rem 1.5rem;
    border: 0;
    border-radius: .7rem;
    color: #fff;
    background: var(--color-accent);
    box-shadow: 0 .25rem .45rem rgba(255, 104, 72, .18);
    font-size: 1.35rem;
    font-weight: 600;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.login-submit svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.login-submit:hover {
    background: #f45535;
    box-shadow: 0 .35rem .65rem rgba(255, 104, 72, .24);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-submit:focus-visible {
    outline: 3px solid rgba(255, 104, 72, .32);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .login-brand__name {
        font-size: 1.65rem;
    }

    .login-card {
        width: min(100%, 20.5rem);
        margin-top: 3rem;
        padding: 1.55rem 1.35rem 1.45rem;
        border-radius: .8rem;
    }

    .login-card__header {
        margin-bottom: 1.8rem;
    }

    .login-card__header h1 {
        margin-bottom: .55rem;
        font-size: 1.45rem;
    }

    .login-card__header p,
    .login-field__control input,
    .login-submit {
        font-size: 1rem;
    }

    .login-field label {
        font-size: .9rem;
    }

    .login-remember {
        font-size: .85rem;
    }

    .login-form {
        gap: 1.15rem;
    }

    .login-field {
        gap: .5rem;
    }

    .login-field__control input,
    .login-submit {
        min-height: 3rem;
    }

    .login-field__control input {
        padding-left: 2.9rem;
    }

    .login-field__control svg {
        left: .9rem;
        width: 1.25rem;
        height: 1.25rem;
    }

    .login-submit {
        margin-top: .7rem;
    }
}

@media (max-height: 720px) {
    .login-shell {
        padding-top: 3rem;
    }

    .login-card {
        margin-top: 2.5rem;
    }
}

/* Collection snapshot dashboard */
#app_dashboard_index {
    background: var(--color-canvas);
    color: var(--color-ink);
}

#app_schedules_index,
#app_shopping_lists_index,
#app_shopping_lists_show {
    background: var(--color-canvas);
    color: var(--color-ink);
}

#app_schedules_index > .container-fluid,
#app_shopping_lists_index > .container-fluid,
#app_shopping_lists_show > .container-fluid {
    max-width: none;
    margin-top: 0 !important;
    padding: 0;
}

#app_schedules_index > .container-fluid > .row,
#app_shopping_lists_index > .container-fluid > .row,
#app_shopping_lists_show > .container-fluid > .row {
    margin: 0;
}

#app_schedules_index > .container-fluid > .row > [class*="col-"],
#app_shopping_lists_index > .container-fluid > .row > [class*="col-"],
#app_shopping_lists_show > .container-fluid > .row > [class*="col-"] {
    padding: 0;
}

#app_schedules_index .main-content,
#app_shopping_lists_index .main-content,
#app_shopping_lists_show .main-content {
    min-height: 0;
}

#app_dashboard_index > .container-fluid {
    max-width: none;
    margin-top: 0 !important;
    padding: 0;
}

#app_dashboard_index > .container-fluid > .row {
    margin: 0;
}

#app_dashboard_index > .container-fluid > .row > [class*="col-"] {
    padding: 0;
}

#app_dashboard_index .main-content {
    min-height: 0;
}

.snapshot-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid #e9eaeb;
    background: rgba(247, 248, 249, .96);
    backdrop-filter: blur(12px);
}

.snapshot-header__inner,
.snapshot-menu__inner,
.snapshot-dashboard {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.snapshot-header__inner {
    display: grid;
    grid-template-columns: 2.75rem 1fr 2.75rem;
    align-items: center;
    gap: .75rem;
    min-height: 5.4rem;
    padding: 0 1.35rem;
}

.snapshot-brand {
    color: var(--color-accent-strong);
    font-size: clamp(1.55rem, 5vw, 2rem);
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
}

.snapshot-brand:hover,
.snapshot-brand:focus-visible {
    color: var(--color-accent-strong);
}

.snapshot-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--color-accent-strong);
    background: transparent;
}

.snapshot-icon-button svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.snapshot-profile-link {
    color: #4e5154;
    background: #e5e5e5;
}

.snapshot-icon-button:hover,
.snapshot-icon-button:focus-visible {
    color: var(--color-accent-strong);
    background: #ffe6df;
}

.snapshot-icon-button:focus-visible,
.snapshot-primary-action:focus-visible,
.snapshot-recipe-card:focus-visible,
.snapshot-schedule-item:focus-visible,
.snapshot-import-item:focus-visible,
.snapshot-bottom-nav a:focus-visible {
    outline: 3px solid rgba(255, 104, 72, .35);
    outline-offset: 3px;
}

.snapshot-menu {
    border-top: 1px solid #ececed;
    background: #fff;
}

.snapshot-menu__inner {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .75rem 1.35rem 1rem;
}

.snapshot-menu a {
    padding: .6rem .85rem;
    border-radius: var(--radius-pill);
    color: var(--color-ink-muted);
    font-weight: 600;
    text-decoration: none;
}

.snapshot-menu a:hover,
.snapshot-menu a:focus-visible,
.snapshot-menu a.is-active {
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
}

.snapshot-dashboard {
    padding: 2.1rem 1.35rem calc(7.8rem + env(safe-area-inset-bottom));
}

.snapshot-hero {
    padding: 0 0 3.4rem;
}

.snapshot-eyebrow {
    margin: 0 0 1.45rem;
    color: var(--color-accent-strong);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.snapshot-hero h1 {
    max-width: 760px;
    margin: 0 0 2rem;
    font-size: clamp(2.25rem, 8vw, 4.75rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.snapshot-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 1.15rem;
    min-height: 3.55rem;
    padding: .8rem 1.95rem;
    border-radius: var(--radius-pill);
    color: #32120c;
    background: var(--color-accent);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
}

.snapshot-primary-action:hover {
    color: #32120c;
    background: #ff795c;
}

.snapshot-primary-action svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.snapshot-card,
.snapshot-recipe-card {
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: 0 10px 28px rgba(31, 35, 38, .06);
}

.snapshot-stats {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 2.35rem 2rem 1.85rem;
}

.snapshot-stats__value {
    margin: 0;
    font-size: clamp(3.4rem, 14vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: .9;
}

.snapshot-stats__label {
    margin: .75rem 0 0;
    color: var(--color-ink-muted);
    font-size: 1rem;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.snapshot-stats__create button {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 3.25rem;
    padding: .75rem 1.2rem;
    border: 0;
    border-radius: var(--radius-pill);
    color: #32120c;
    background: var(--color-accent);
    font-weight: 600;
    cursor: pointer;
}

.snapshot-stats__create button:hover {
    background: #ff795c;
}

.snapshot-stats__create svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.snapshot-stats__details {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 1.45rem;
    border-top: 1px solid #d9dbdd;
}

.snapshot-stats__details > div {
    display: grid;
    gap: .25rem;
    padding: 0 .7rem;
    text-align: center;
}

.snapshot-stats__details > div + div {
    border-left: 1px solid #d9dbdd;
}

.snapshot-stats__details strong {
    font-size: 1.55rem;
    font-weight: 650;
    line-height: 1;
}

.snapshot-stats__details span {
    color: #45494d;
    font-size: .82rem;
}

.snapshot-section {
    margin-top: 3.5rem;
}

.snapshot-section h2 {
    margin: 0 0 1.4rem;
    font-size: clamp(1.55rem, 5vw, 2rem);
    font-weight: 650;
    letter-spacing: -.02em;
}

.snapshot-recipe-list {
    display: grid;
    grid-auto-columns: min(74vw, 19rem);
    grid-auto-flow: column;
    gap: 1.2rem;
    margin-right: -1.35rem;
    padding: 0 1.35rem 1.25rem 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.snapshot-recipe-list::-webkit-scrollbar {
    display: none;
}

.snapshot-recipe-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--color-ink);
    scroll-snap-align: start;
    text-decoration: none;
}

.snapshot-recipe-card:hover {
    color: var(--color-ink);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(31, 35, 38, .1);
}

.snapshot-recipe-card > img,
.snapshot-recipe-card__placeholder {
    display: grid;
    width: 100%;
    height: 10.6rem;
    object-fit: cover;
}

.snapshot-recipe-card__placeholder {
    color: var(--color-accent);
    background: linear-gradient(135deg, #fff0eb, #f7d9d1);
    place-items: center;
}

.snapshot-recipe-card__placeholder svg {
    width: 3rem;
    height: 3rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.3;
}

.snapshot-recipe-card__body {
    display: grid;
    gap: .9rem;
    padding: 1.2rem 1.25rem 1.35rem;
}

.snapshot-recipe-card__body > strong {
    overflow: hidden;
    font-size: 1.25rem;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snapshot-recipe-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.snapshot-chip {
    padding: .35rem .75rem;
    border-radius: var(--radius-pill);
    color: #51555a;
    background: #e7e8e9;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
}

.snapshot-chip--accent {
    color: var(--color-accent);
    background: var(--color-accent-soft);
}

.snapshot-schedule-section {
    scroll-margin-top: 6.5rem;
}

.snapshot-section__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.snapshot-section__heading a {
    color: var(--color-accent-strong);
    font-weight: 650;
    text-decoration: none;
}

.snapshot-import-count {
    display: inline-grid;
    min-width: 2rem;
    min-height: 2rem;
    padding: .3rem .65rem;
    border-radius: var(--radius-pill);
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
    font-size: .85rem;
    font-weight: 700;
    place-items: center;
}

.snapshot-import-list {
    overflow: hidden;
}

.snapshot-import-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 1.25rem;
    align-items: center;
    gap: 1rem;
    min-height: 5.75rem;
    padding: 1.15rem 1.35rem;
    color: var(--color-ink);
    text-decoration: none;
}

.snapshot-import-item + .snapshot-import-item {
    border-top: 1px solid var(--color-border);
}

.snapshot-import-item:hover {
    color: var(--color-ink);
    background: var(--color-accent-soft);
}

.snapshot-import-item__content {
    display: grid;
    min-width: 0;
    gap: .3rem;
}

.snapshot-import-item__content strong,
.snapshot-import-item__content span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snapshot-import-item__content strong {
    font-size: 1.05rem;
    font-weight: 650;
}

.snapshot-import-item__content span {
    color: var(--color-ink-muted);
    font-size: .8rem;
}

.snapshot-import-item > svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: var(--color-ink-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.recipe-import-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: .35rem .7rem;
    border-radius: var(--radius-pill);
    color: var(--color-ink-muted);
    background: var(--color-field);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.recipe-import-status--progress {
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
}

.recipe-import-status--danger {
    color: var(--color-danger);
    background: color-mix(in srgb, var(--color-danger) 12%, var(--color-surface));
}

.recipe-import-status--success {
    color: var(--color-success);
    background: color-mix(in srgb, var(--color-success) 12%, var(--color-surface));
}

.recipe-import-detail {
    padding-bottom: 5rem;
}

.recipe-import-detail__header {
    margin-bottom: 1.5rem;
}

.recipe-import-detail__header .snapshot-eyebrow {
    margin-bottom: .75rem;
}

.recipe-import-detail__header h1 {
    margin: 0;
    font-size: clamp(2rem, 8vw, 3.25rem);
    letter-spacing: -.035em;
}

.recipe-import-detail__header > p:last-child {
    margin: .7rem 0 0;
    color: var(--color-ink-muted);
}

.recipe-import-detail__card {
    padding: clamp(1.35rem, 5vw, 2.25rem);
}

.recipe-import-detail__status {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.recipe-import-detail__label {
    margin: 0 0 .3rem;
    color: var(--color-ink-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.recipe-import-detail__status h2 {
    margin: 0;
    font-size: 1.45rem;
}

.recipe-import-detail__diagnosis {
    margin: 1.5rem 0;
    padding: 1.15rem;
    border-radius: var(--radius-md);
    background: var(--color-field);
    color: var(--color-ink);
    line-height: 1.55;
}

.recipe-import-detail__metadata {
    display: grid;
    gap: 0;
    margin: 0;
}

.recipe-import-detail__metadata > div {
    display: grid;
    grid-template-columns: minmax(6rem, .65fr) minmax(0, 1fr);
    gap: 1rem;
    padding: .9rem 0;
    border-top: 1px solid var(--color-border);
}

.recipe-import-detail__metadata dt {
    color: var(--color-ink-muted);
    font-weight: 600;
}

.recipe-import-detail__metadata dd {
    margin: 0;
}

.recipe-import-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.recipe-import-detail__actions form,
.recipe-import-detail__actions button {
    min-width: min(100%, 10rem);
}

@media (max-width: 575px) {
    .snapshot-import-item {
        grid-template-columns: minmax(0, 1fr) 1.25rem;
    }

    .snapshot-import-item .recipe-import-status {
        grid-column: 1;
        justify-self: start;
    }

    .snapshot-import-item > svg {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .recipe-import-detail__status {
        align-items: flex-start;
        flex-direction: column;
    }

    .recipe-import-detail__actions,
    .recipe-import-detail__actions form,
    .recipe-import-detail__actions button {
        width: 100%;
    }
}

.snapshot-schedule-item__content small {
    overflow: hidden;
    color: var(--color-ink-muted);
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Household planner and shopping lists */
.planner-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 2.4rem 1.35rem 5rem;
}

.planner-page__title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.planner-page__title .snapshot-eyebrow {
    margin-bottom: .7rem;
}

.planner-page__title h1 {
    margin: 0;
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 700;
    letter-spacing: -.035em;
}

.planner-page__title p:last-child,
.planner-results__heading p {
    margin: .55rem 0 0;
    color: var(--color-ink-muted);
}

.planner-secondary-link {
    flex: 0 0 auto;
    padding: .75rem 1.1rem;
    border: 1px solid #d7d9db;
    border-radius: var(--radius-pill);
    color: var(--color-accent-strong);
    background: #fff;
    font-weight: 650;
    text-decoration: none;
}

.planner-filter {
    display: grid;
    grid-template-columns: minmax(12rem, 1.3fr) repeat(2, minmax(10rem, 1fr)) auto;
    align-items: end;
    gap: 1rem;
    padding: 1.25rem;
}

.planner-field {
    display: grid;
    min-width: 0;
    gap: .45rem;
}

.planner-field label {
    color: var(--color-ink-muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.planner-field input,
.planner-field select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 3rem;
    padding: .65rem .8rem;
    border: 1px solid #d9dbdd;
    border-radius: .7rem;
    color: var(--color-ink);
    background: var(--color-canvas);
}

/* iOS 26 WebKit miscalculates padded date widths and collapses empty controls. */
.planner-field input[type="date"] {
    display: block;
    width: -webkit-fill-available;
    min-width: 0;
    height: 3rem;
    overflow: hidden;
    padding: 0;
}

.planner-field input[type="date"]::-webkit-date-and-time-value {
    min-width: 0;
    padding: .65rem .8rem;
    text-align: left;
}

.planner-filter__submit,
.planner-create-bar button {
    min-height: 3rem;
    padding: .7rem 1.25rem;
    border: 0;
    border-radius: var(--radius-pill);
    color: #fff;
    background: var(--color-accent);
    font-weight: 700;
}

.planner-filter__error,
.planner-alert {
    margin: 1rem 0 0;
    padding: .8rem 1rem;
    border-radius: .7rem;
    color: #8b1e13;
    background: var(--color-accent-soft);
}

.planner-results {
    margin-top: 2.5rem;
}

.planner-results__heading {
    margin-bottom: 1rem;
}

.planner-results__heading h2 {
    margin: 0;
    font-size: 1.6rem;
}

.planner-cook-list {
    overflow: hidden;
}

.planner-cook {
    display: grid;
    grid-template-columns: auto 4rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 6.5rem;
    padding: 1rem 1.2rem;
    color: var(--color-ink);
}

.planner-cook + .planner-cook {
    border-top: 1px solid #e1e2e3;
}

.planner-cook--link {
    grid-template-columns: 4rem minmax(0, 1fr);
    text-decoration: none;
}

.planner-cook > input {
    width: 1.35rem;
    height: 1.35rem;
    accent-color: var(--color-accent);
}

.planner-cook time {
    display: grid;
    min-height: 4rem;
    border-radius: .65rem;
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
    text-align: center;
    place-content: center;
}

.planner-cook time span {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.planner-cook time strong {
    font-size: 1.45rem;
    line-height: 1;
}

.planner-cook__content {
    display: grid;
    min-width: 0;
    gap: .25rem;
}

.planner-cook__content strong {
    overflow: hidden;
    font-size: 1.08rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planner-cook__content span {
    overflow: hidden;
    color: var(--color-ink-muted);
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planner-create-bar {
    position: sticky;
    bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #dedfe0;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 28px rgba(23, 26, 29, .12);
    backdrop-filter: blur(10px);
}

.planner-create-bar span {
    color: var(--color-ink-muted);
    font-weight: 650;
}

.planner-create-bar button:disabled {
    opacity: .45;
}

.shopping-history {
    display: grid;
    gap: .85rem;
}

.shopping-history__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    color: var(--color-ink);
    text-decoration: none;
}

.shopping-history__item > span {
    display: grid;
    gap: .3rem;
}

.shopping-history__item small,
.shopping-history__item time {
    color: var(--color-ink-muted);
    font-size: .8rem;
}

.shopping-checklist {
    overflow: hidden;
}

.shopping-checklist__item + .shopping-checklist__item {
    border-top: 1px solid #e1e2e3;
}

.shopping-checklist__item button {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.2rem;
    border: 0;
    color: var(--color-ink);
    background: #fff;
    text-align: left;
}

.shopping-checklist__box {
    display: grid;
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #b7bbbe;
    border-radius: .4rem;
    color: #fff;
    background: #fff;
    font-size: .85rem;
    place-content: center;
}

.shopping-checklist__content {
    display: grid;
    gap: .2rem;
}

.shopping-checklist__content > span {
    color: var(--color-ink-muted);
    font-size: .82rem;
}

.shopping-checklist__content em {
    margin-left: .5rem;
    color: var(--color-accent-strong);
}

.shopping-checklist__item.is-checked button {
    background: #f6f7f7;
}

.shopping-checklist__item.is-checked .shopping-checklist__box {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.shopping-checklist__item.is-checked strong {
    color: var(--color-ink-muted);
    text-decoration: line-through;
}

.shopping-cooks {
    margin-top: 1.25rem;
    padding: 1rem 1.2rem;
}

.shopping-cooks summary {
    cursor: pointer;
    font-weight: 700;
}

.shopping-cooks ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.shopping-cooks li + li {
    margin-top: .45rem;
}

.shopping-cooks small {
    color: var(--color-ink-muted);
}

@media (max-width: 760px) {
    .planner-page__title {
        display: grid;
        align-items: start;
    }

    .planner-secondary-link {
        justify-self: start;
    }

    .planner-filter {
        grid-template-columns: 1fr 1fr;
    }

    .planner-field--scope,
    .planner-filter__submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .planner-page {
        padding-inline: .9rem;
    }

    .planner-filter {
        grid-template-columns: 1fr;
    }

    .planner-field--scope,
    .planner-filter__submit {
        grid-column: auto;
    }

    .planner-cook {
        grid-template-columns: auto 3.6rem minmax(0, 1fr);
        gap: .75rem;
        padding-inline: .9rem;
    }

    .planner-cook--link {
        grid-template-columns: 3.6rem minmax(0, 1fr);
    }

    .planner-create-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .shopping-history__item {
        align-items: flex-start;
        flex-direction: column;
    }
}

.snapshot-schedule-list {
    overflow: hidden;
}

.snapshot-schedule-item {
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr) 1.5rem;
    align-items: center;
    gap: 1.2rem;
    min-height: 7rem;
    padding: 1.25rem 1.35rem;
    color: var(--color-ink);
    text-decoration: none;
}

.snapshot-schedule-item + .snapshot-schedule-item {
    border-top: 1px solid #dfe0e1;
}

.snapshot-schedule-item:hover {
    color: var(--color-ink);
    background: #fffaf8;
}

.snapshot-schedule-item time {
    display: grid;
    min-height: 4.65rem;
    padding: .55rem;
    border-radius: .7rem;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    text-align: center;
    place-content: center;
}

.snapshot-schedule-item time span {
    font-size: .72rem;
    font-weight: 650;
    line-height: 1;
    text-transform: uppercase;
}

.snapshot-schedule-item time strong {
    margin-top: .2rem;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
}

.snapshot-schedule-item__content {
    display: grid;
    min-width: 0;
    gap: .2rem;
}

.snapshot-schedule-item__content span {
    color: var(--color-ink-muted);
    font-size: .85rem;
}

.snapshot-schedule-item__content strong {
    overflow: hidden;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snapshot-schedule-item > svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: #596168;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.snapshot-empty {
    padding: 2rem;
    color: var(--color-ink-muted);
    text-align: center;
}

.snapshot-empty p {
    margin: 0 0 .65rem;
}

.snapshot-empty a {
    color: var(--color-accent-strong);
    font-weight: 650;
}

.snapshot-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .35rem;
    padding: .8rem max(1rem, env(safe-area-inset-right)) calc(.8rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    border-top: 1px solid #e5e5e5;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 28px rgba(31, 35, 38, .08);
    backdrop-filter: blur(12px);
}

.snapshot-bottom-nav a {
    display: grid;
    justify-items: center;
    gap: .25rem;
    min-height: 4.15rem;
    padding: .5rem .75rem;
    border-radius: var(--radius-pill);
    color: #55595d;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

.snapshot-bottom-nav a.is-active {
    color: #32120c;
    background: var(--color-accent);
}

.snapshot-bottom-nav svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (min-width: 769px) {
    .snapshot-dashboard {
        padding: 3.5rem 2rem 5rem;
    }

    .snapshot-header__inner {
        padding: 0 2rem;
    }

    .snapshot-hero {
        padding: 1rem 0 4.5rem;
    }

    .snapshot-stats {
        grid-template-columns: 1fr auto 1.5fr;
        padding: 2.5rem 3rem;
    }

    .snapshot-stats__details {
        grid-column: auto;
        padding: .75rem 0 .75rem 2rem;
        border-top: 0;
        border-left: 1px solid #d9dbdd;
    }

    .snapshot-recipe-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-columns: auto;
        grid-auto-flow: row;
        margin-right: 0;
        padding-right: 0;
        overflow: visible;
    }

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

/* Guided ingredient and instruction forms */
#app_recipes_add_ingredient,
#app_recipes_edit_ingredient,
#app_recipes_add_instruction,
#app_recipes_edit_instruction {
    background: var(--color-canvas);
    color: var(--color-ink);
}

#app_recipes_add_ingredient #content,
#app_recipes_edit_ingredient #content,
#app_recipes_add_instruction #content,
#app_recipes_edit_instruction #content {
    padding: 0 !important;
}

.ingredient-guided {
    width: min(100%, 32rem);
    min-height: 100svh;
    margin: 0 auto;
    background: var(--color-canvas);
}

.ingredient-guided__form {
    min-height: 100svh;
}

.ingredient-guided__toolbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: 4.5rem 1fr 4.5rem;
    align-items: center;
    min-height: 3.5rem;
    padding: 0 .5rem;
    border-bottom: 1px solid rgba(225, 227, 228, .9);
    background: rgba(248, 249, 250, .94);
    backdrop-filter: blur(12px);
}

.ingredient-guided__toolbar strong {
    overflow: hidden;
    font-size: 1rem;
    font-weight: 650;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ingredient-guided__back,
.ingredient-guided__save {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    border: 0;
    color: var(--color-accent-strong);
    background: transparent;
    text-decoration: none;
}

.ingredient-guided__back {
    justify-content: center;
    width: 2.75rem;
    border-radius: 50%;
    color: var(--color-ink);
}

.ingredient-guided__back svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.ingredient-guided__save {
    justify-self: end;
    padding: 0 .7rem;
    border-radius: var(--radius-pill);
    font-size: .9rem;
    font-weight: 600;
}

.ingredient-guided__back:hover,
.ingredient-guided__back:focus-visible,
.ingredient-guided__save:hover,
.ingredient-guided__save:focus-visible {
    color: var(--color-accent-strong);
    background: rgba(255, 107, 71, .1);
}

.ingredient-guided__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem 1rem calc(7rem + env(safe-area-inset-bottom));
}

.ingredient-guided__intro p {
    margin: 0 0 .3rem;
    color: var(--color-ink-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ingredient-guided__intro h1 {
    margin: 0;
    font-size: clamp(1.7rem, 8vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.ingredient-guided__card {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1rem;
    border: 1px solid rgba(225, 227, 228, .9);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-panel);
}

.ingredient-guided__field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
}

.ingredient-guided__field > label {
    margin: 0;
    color: var(--color-ink-muted);
    font-size: .85rem;
    font-weight: 600;
}

.ingredient-guided__field .form-control,
.ingredient-guided__unit {
    width: 100%;
    min-height: 3.25rem;
    padding: .75rem .85rem;
    border: 1px solid var(--color-border);
    border-radius: .55rem;
    outline: 0;
    color: var(--color-ink);
    background: var(--color-field);
    font: inherit;
    font-size: 1rem;
}

.ingredient-guided__field textarea.form-control {
    min-height: 4.25rem;
    resize: vertical;
}

.ingredient-guided__field .form-control::placeholder,
.ingredient-guided__unit::placeholder {
    color: #8a8d91;
    opacity: .58;
}

.ingredient-guided__unit {
    color: #8a8d91;
    background: #f8f8f8;
}

.ingredient-guided__field .form-control:focus {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(255, 107, 71, .14);
}

.ingredient-guided__amount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.ingredient-guided__ingredient-control {
    position: relative;
}

.ingredient-guided__ingredient-control > svg {
    position: absolute;
    top: 50%;
    left: .85rem;
    z-index: 2;
    width: 1.35rem;
    height: 1.35rem;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--color-ink-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    pointer-events: none;
}

.ingredient-guided .ingredient-dropdown,
.ingredient-guided .ingredient-dropdown .k-dropdownlist,
.ingredient-guided .ingredient-dropdown .k-picker {
    width: 100%;
}

.ingredient-guided .ingredient-dropdown .k-dropdownlist,
.ingredient-guided .ingredient-dropdown .k-picker {
    min-height: 3.25rem;
    padding-left: 2.55rem;
    border: 1px solid var(--color-border);
    border-radius: .55rem;
    color: var(--color-ink);
    background: var(--color-field);
    box-shadow: none;
}

.ingredient-guided .ingredient-dropdown .k-input-inner {
    padding-block: .7rem;
    font-size: 1rem;
}

.ingredient-guided .ingredient-dropdown .k-button {
    color: var(--color-ink-muted);
    background: transparent;
}

.ingredient-guided .ingredient-dropdown .k-dropdownlist:focus,
.ingredient-guided .ingredient-dropdown .k-dropdownlist.k-focus,
.ingredient-guided .ingredient-dropdown .k-picker:focus,
.ingredient-guided .ingredient-dropdown .k-picker.k-focus {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(255, 107, 71, .14);
}

.ingredient-dropdown__empty {
    display: block;
    padding: 1.5rem 1rem;
    color: #60666c;
    text-align: center;
}

.ingredient-dropdown__create {
    display: block;
    width: 100%;
    padding: 1.25rem 1rem;
    border: 0;
    color: #b33118;
    background: transparent;
    font: inherit;
    font-weight: 650;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.ingredient-dropdown__create:hover,
.ingredient-dropdown__create:focus-visible {
    color: #7f2110;
    background: #fff4f0;
}

.ingredient-dropdown__create:focus-visible {
    outline: 3px solid rgba(255, 107, 71, .3);
    outline-offset: -3px;
}

.ingredient-create-modal .modal-content {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px rgba(25, 28, 29, .2);
}

.ingredient-create-modal .modal-header,
.ingredient-create-modal .modal-footer {
    border-color: var(--color-border);
}

.ingredient-create-modal__prompt {
    color: var(--color-ink-muted);
}

.ingredient-create-modal .btn-primary {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.ingredient-create-modal .btn-primary:hover,
.ingredient-create-modal .btn-primary:focus-visible {
    border-color: #f45a38;
    background: #f45a38;
}

.ingredient-guided__optional {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--color-border);
}

.ingredient-guided__optional label {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    margin: 0;
    cursor: pointer;
}

.ingredient-guided__optional label strong {
    font-size: .95rem;
    font-weight: 650;
}

.ingredient-guided__optional label span {
    color: var(--color-ink-muted);
    font-size: .78rem;
    line-height: 1.35;
}

.ingredient-guided__switch-input {
    position: relative;
    flex: 0 0 auto;
    width: 3rem;
    height: 1.75rem;
    margin: 0;
    border: 0;
    border-radius: var(--radius-pill);
    appearance: none;
    background: #dfe2e4;
    cursor: pointer;
    transition: background-color .15s ease;
}

.ingredient-guided__switch-input::before {
    position: absolute;
    top: .18rem;
    left: .18rem;
    width: 1.39rem;
    height: 1.39rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(25, 28, 29, .22);
    content: '';
    transition: transform .15s ease;
}

.ingredient-guided__switch-input:checked {
    background: var(--color-accent);
}

.ingredient-guided__switch-input:checked::before {
    transform: translateX(1.25rem);
}

.ingredient-guided__switch-input:focus-visible {
    outline: 3px solid rgba(255, 107, 71, .28);
    outline-offset: 3px;
}

.ingredient-guided__field .invalid-feedback,
.ingredient-guided__optional .invalid-feedback {
    display: block;
    margin: 0;
    color: var(--color-danger);
    font-size: .78rem;
}

.instruction-guided__card {
    gap: 1.75rem;
    padding: 1.5rem;
}

.instruction-guided__step {
    width: 5.25rem;
}

.instruction-guided__description textarea.form-control {
    min-height: 9.5rem;
    line-height: 1.45;
}

.instruction-guided__help {
    margin: -.05rem 0 0;
    color: var(--color-ink-muted);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
}

.ingredient-guided__footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1025;
    width: min(100%, 32rem);
    margin: 0 auto;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(225, 227, 228, .9);
    background: rgba(248, 249, 250, .96);
    backdrop-filter: blur(12px);
}

.ingredient-guided__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    padding: .75rem 1.25rem;
    border: 0;
    border-radius: var(--radius-md);
    color: #fff;
    background: var(--color-accent);
    box-shadow: 0 5px 12px rgba(174, 49, 18, .18);
    font-size: 1.05rem;
    font-weight: 600;
}

.ingredient-guided__submit:hover,
.ingredient-guided__submit:focus-visible {
    color: #fff;
    background: #f45a38;
}

.ingredient-guided__submit:focus-visible {
    outline: 3px solid rgba(255, 107, 71, .3);
    outline-offset: 3px;
}

@media (min-width: 769px) {
    .ingredient-guided {
        min-height: calc(100svh - 3rem);
        margin-top: 1.5rem;
        border: 1px solid var(--color-border);
        box-shadow: 0 18px 50px rgba(25, 28, 29, .12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ingredient-guided__switch-input,
    .ingredient-guided__switch-input::before {
        transition: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .snapshot-recipe-card,
    .snapshot-primary-action {
        transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    }
}

/* Compact recipe collection */
#app_recipes_index {
    background: var(--color-canvas);
    color: var(--color-ink);
}

#app_recipes_index > .container-fluid {
    max-width: none;
    margin-top: 0 !important;
    padding: 0;
}

#app_recipes_index > .container-fluid > .row {
    margin: 0;
}

#app_recipes_index > .container-fluid > .row > [class*="col-"] {
    padding: 0;
}

#app_recipes_index .main-content {
    min-height: 0;
}

.collection-header .snapshot-brand {
    justify-self: center;
}

.recipe-collection {
    width: min(100%, 760px);
    min-height: calc(100vh - 5.4rem);
    margin: 0 auto;
    padding: 2.5rem 1.5rem calc(8.5rem + env(safe-area-inset-bottom));
}

.recipe-collection__intro h1 {
    margin: 0;
    font-size: clamp(2.15rem, 9vw, 3rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.recipe-collection__intro p {
    margin: .75rem 0 0;
    color: var(--color-ink-muted);
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
}

.recipe-collection__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .8rem;
    margin-top: 2.7rem;
}

.recipe-search {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    min-height: 3.6rem;
    padding: 0 1.2rem;
    border: 1px solid #d9dbdd;
    border-radius: var(--radius-lg);
    background: #f4f5f6;
}

.recipe-search:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 104, 72, .16);
}

.recipe-search svg,
.recipe-results-toolbar svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.recipe-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--color-ink);
    background: transparent;
    font-size: 1rem;
}

.recipe-search input::placeholder {
    color: #676b6f;
    opacity: 1;
}

.collection-view-toggle {
    display: grid;
    grid-template-columns: repeat(2, 3.25rem);
    align-items: center;
    padding: .2rem;
    border: 1px solid #dddfe1;
    border-radius: var(--radius-lg);
    background: #f2f3f4;
}

.collection-view-toggle a {
    display: grid;
    width: 3.25rem;
    height: 3.1rem;
    border-radius: .8rem;
    color: #565a5e;
    place-items: center;
}

.collection-view-toggle a.is-active {
    color: var(--color-accent);
    background: #fff;
    box-shadow: 0 3px 10px rgba(27, 31, 34, .06);
}

.collection-view-toggle svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.recipe-filter-chips {
    display: flex;
    gap: .7rem;
    margin: 1.6rem -1.5rem 0;
    padding: 0 1.5rem .4rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.recipe-filter-chips::-webkit-scrollbar {
    display: none;
}

.recipe-filter-chips a {
    flex: 0 0 auto;
    min-height: 2.7rem;
    padding: .65rem 1.25rem;
    border: 1px solid #dcdedf;
    border-radius: var(--radius-pill);
    color: #4e5256;
    background: #f5f6f7;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
}

.recipe-filter-chips a.is-active {
    border-color: #ffc0b1;
    color: #ef5738;
    background: var(--color-accent-soft);
}

.recipe-collection__results {
    margin: 1.25rem -1.5rem 0;
    padding: 1.6rem 1.5rem 0;
    border-top: 1px solid #dcdee0;
}

.recipe-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.recipe-results-toolbar > div {
    min-width: 0;
}

.recipe-results-toolbar h2 {
    margin: 0;
    color: #575b5f;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.recipe-results-toolbar > div > span {
    display: block;
    margin-top: .25rem;
    color: #74787c;
    font-size: .78rem;
}

.recipe-results-toolbar form {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-height: 2.75rem;
    color: #55595d;
}

.recipe-results-toolbar form svg {
    width: 1.2rem;
    height: 1.2rem;
}

.recipe-results-toolbar select {
    min-height: 2.75rem;
    padding: .35rem 1.65rem .35rem .25rem;
    border: 0;
    outline: 0;
    color: #55595d;
    background-color: transparent;
    font-weight: 600;
}

.compact-recipe-list {
    display: grid;
    gap: 1rem;
}

.compact-recipe-card {
    position: relative;
    min-width: 0;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-list-card);
}

.compact-recipe-card__main {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr) 1.4rem;
    align-items: center;
    gap: 1rem;
    min-height: 10rem;
    padding: 1rem 1.1rem;
    color: var(--color-ink);
    text-decoration: none;
}

.compact-recipe-card__main:hover {
    color: var(--color-ink);
}

.compact-recipe-card__image,
.compact-recipe-card__placeholder {
    display: grid;
    width: 8rem;
    height: 8rem;
    border-radius: .8rem;
    object-fit: cover;
}

.compact-recipe-card__placeholder {
    color: var(--color-accent);
    background: var(--color-accent-soft);
    place-items: center;
}

.compact-recipe-card__placeholder svg {
    width: 2.6rem;
    height: 2.6rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
}

.compact-recipe-card__content {
    display: grid;
    min-width: 0;
    gap: .45rem;
    padding-right: 2.25rem;
}

.compact-recipe-card__content > strong,
.compact-recipe-card__description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-recipe-card__content > strong {
    font-size: 1.1rem;
    font-weight: 650;
}

.compact-recipe-card__description {
    color: #5e6266;
    font-size: .95rem;
}

.compact-recipe-card__metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .75rem;
    color: #606468;
    font-size: .82rem;
}

.compact-recipe-card__metadata > span:not(.collection-status) {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.compact-recipe-card__metadata svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.collection-status {
    padding: .3rem .55rem;
    border-radius: .35rem;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1;
}

.collection-status--planned,
.collection-status--draft {
    color: #5b6065;
    background: #e9ebed;
}

.collection-status--cooked_recently {
    color: #ef5738;
    background: var(--color-accent-soft);
}

.compact-recipe-card__chevron {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: #565b5f;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.compact-recipe-card__favourite {
    position: absolute;
    top: .95rem;
    right: 2.8rem;
}

.compact-recipe-card__favourite button {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #65696c;
    background: transparent;
    place-items: center;
}

.compact-recipe-card__favourite button:hover,
.compact-recipe-card__favourite button:focus-visible {
    color: var(--color-accent);
    background: var(--color-accent-soft);
}

.compact-recipe-card__favourite button.is-favourite {
    color: var(--color-accent);
}

.compact-recipe-card__favourite svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.compact-recipe-card__favourite button.is-favourite svg {
    fill: currentColor;
}

.collection-add-menu {
    position: fixed;
    right: max(1.5rem, calc((100vw - 760px) / 2 + 1.5rem));
    bottom: calc(7.4rem + env(safe-area-inset-bottom));
    z-index: 1035;
}

.collection-add-action {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--color-accent);
    box-shadow: 0 12px 30px rgba(175, 29, 12, .22);
    place-items: center;
}

.collection-add-action:hover,
.collection-add-action:focus-visible {
    color: #fff;
    background: #f65a3b;
}

.collection-add-menu--native {
    bottom: calc(11rem + env(safe-area-inset-bottom));
}

.collection-add-action svg {
    width: 2.25rem;
    height: 2.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.collection-add-menu .dropdown-menu {
    min-width: 12rem;
    padding: var(--space-1);
    border-color: var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
}

.collection-add-menu form {
    margin: 0;
}

.collection-add-menu .dropdown-item {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
}

.collection-empty-state {
    padding: 3.5rem 1.5rem;
    border-radius: var(--radius-lg);
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-list-card);
}

.collection-empty-state > span {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    place-items: center;
}

.collection-empty-state svg {
    width: 2.2rem;
    height: 2.2rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.collection-empty-state h3 {
    margin: 0;
    font-size: 1.3rem;
}

.collection-empty-state p {
    margin: .55rem 0 0;
    color: var(--color-ink-muted);
}

.collection-empty-state a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-accent-strong);
    font-weight: 650;
}

.collection-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    color: #666a6e;
    background: #fff;
    font-size: .9rem;
}

.collection-pagination > :last-child {
    justify-self: end;
}

.collection-pagination a {
    color: var(--color-accent-strong);
    font-weight: 650;
    text-decoration: none;
}

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

.recipe-collection--grid .compact-recipe-card__main {
    grid-template-columns: minmax(0, 1fr) 1.2rem;
    align-items: start;
    min-height: 100%;
    padding: 0 0 1.1rem;
    overflow: hidden;
}

.recipe-collection--grid .compact-recipe-card__image,
.recipe-collection--grid .compact-recipe-card__placeholder {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 1rem 1rem 0 0;
}

.recipe-collection--grid .compact-recipe-card__content {
    padding: .9rem 0 0 1rem;
}

.recipe-collection--grid .compact-recipe-card__chevron {
    margin-top: 1.2rem;
}

.recipe-collection--grid .compact-recipe-card__description {
    display: none;
}

.recipe-collection--grid .compact-recipe-card__metadata {
    align-items: flex-start;
    flex-direction: column;
}

.recipe-collection--grid .compact-recipe-card__favourite {
    top: .65rem;
    right: .65rem;
}

.recipe-collection--grid .compact-recipe-card__favourite button {
    color: #fff;
    background: rgba(23, 26, 29, .48);
    backdrop-filter: blur(6px);
}

.recipe-collection--grid .compact-recipe-card__favourite button.is-favourite {
    color: var(--color-accent);
    background: rgba(255, 255, 255, .94);
}

.recipe-search:focus-within,
.collection-view-toggle a:focus-visible,
.recipe-filter-chips a:focus-visible,
.compact-recipe-card__main:focus-visible,
.compact-recipe-card__favourite button:focus-visible,
.collection-add-action:focus-visible,
.collection-add-menu .dropdown-item:focus-visible,
.collection-pagination a:focus-visible {
    outline: 3px solid rgba(255, 104, 72, .35);
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .recipe-collection {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .recipe-filter-chips,
    .recipe-collection__results {
        margin-right: -1rem;
        margin-left: -1rem;
    }

    .recipe-filter-chips,
    .recipe-collection__results {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .recipe-collection__controls {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .collection-view-toggle {
        grid-template-columns: repeat(2, 2.9rem);
    }

    .collection-view-toggle a {
        width: 2.9rem;
    }

    .compact-recipe-card__main {
        grid-template-columns: 6.4rem minmax(0, 1fr) 1.1rem;
        gap: .8rem;
        min-height: 8.4rem;
        padding: .85rem;
    }

    .compact-recipe-card__image,
    .compact-recipe-card__placeholder {
        width: 6.4rem;
        height: 6.4rem;
    }

    .compact-recipe-card__content {
        padding-right: 1.6rem;
    }

    .compact-recipe-card__favourite {
        top: .55rem;
        right: 2.1rem;
    }

    .compact-recipe-card__content > strong {
        font-size: 1rem;
    }

    .compact-recipe-card__description {
        font-size: .88rem;
    }

    .compact-recipe-card__metadata {
        gap: .35rem .55rem;
        font-size: .74rem;
    }
}

@media (min-width: 769px) {
    .recipe-collection {
        width: min(100%, 1120px);
        padding: 3.5rem 2rem 6rem;
    }

    .recipe-collection__results,
    .recipe-filter-chips {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .recipe-collection__results {
        padding-top: 1.8rem;
    }

    .recipe-collection--list .compact-recipe-list {
        max-width: 820px;
        margin: 0 auto;
    }

    .recipe-collection--grid .compact-recipe-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .collection-add-menu:not(.collection-add-menu--native) {
        right: max(2rem, calc((100vw - 1120px) / 2 + 2rem));
        bottom: 2rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .compact-recipe-card,
    .collection-add-action,
    .recipe-filter-chips a,
    .collection-view-toggle a {
        transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
    }

    .compact-recipe-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 13px 30px rgba(31, 35, 38, .09);
    }
}

.page-shell {
    max-width: 960px;
    margin: 0 auto;
}

.surtitle {
    margin-bottom: .5rem;
    color: rgba(255, 255, 255, .68);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

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

.recipe-name {
    margin-bottom: .5rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.recipe-description {
    display: -webkit-box;
    margin-bottom: .75rem;
    overflow: hidden;
    color: var(--color-ink-muted);
    font-size: .875rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.recipe-chip,
.tag-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .3rem .6rem;
    border-radius: var(--radius-pill);
    color: #495057;
    background: #f1f3f5;
    font-size: .72rem;
    font-weight: 600;
}

.tag-chip {
    color: #9f341d;
    background: rgba(255, 107, 71, .14);
}

.tag-metadata {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.tag-metadata__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    min-height: 3.5rem;
}

.tag-metadata__label {
    color: var(--color-ink-muted);
    font-size: .875rem;
    font-weight: 600;
}

.tag-metadata__empty {
    color: var(--color-ink-muted);
    font-size: .875rem;
}

.tag-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 107, 71, .38);
    border-radius: 50%;
    color: #9f341d;
    background: rgba(255, 107, 71, .1);
    font-size: 1.4rem;
    line-height: 1;
}

.tag-add-button:hover,
.tag-add-button:focus-visible,
.tag-add-button[aria-expanded="true"] {
    color: #fff;
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.tag-add-button:focus-visible {
    outline: 3px solid rgba(255, 107, 71, .25);
    outline-offset: 2px;
}

.tag-editor {
    border-top: 1px solid var(--color-border);
}

.tag-editor__form {
    padding-top: 1rem;
}

.tag-chip__add,
.tag-chip__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: .25rem;
    border-radius: 50%;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
}

.tag-chip__add:hover,
.tag-chip__add:focus-visible {
    color: #fff;
    background: #9f341d;
}

.tag-chip__delete:hover,
.tag-chip__delete:focus-visible {
    color: #fff;
    background: var(--color-danger);
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.ingredient-list,
.instruction-list {
    border-top: 1px solid var(--color-border);
}

.ingredient-group,
.instruction-group {
    margin: 1rem 0 .25rem;
    color: var(--color-ink-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ingredient-row,
.instruction-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.ingredient-row {
    justify-content: space-between;
}

.ingredient-swipe-row {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.ingredient-swipe-row .ingredient-row,
.ingredient-swipe-content,
.instruction-swipe-content {
    position: relative;
    z-index: 1;
    margin: 0;
    border-bottom: 0;
    background: #fff;
    touch-action: pan-y;
    user-select: none;
}

.ingredient-swipe-content,
.instruction-swipe-content {
    will-change: transform;
}

.ingredient-delete-form,
.instruction-delete-form {
    position: absolute;
    inset: 0 0 0 auto;
    width: 5.5rem;
}

.ingredient-delete-action {
    width: 100%;
    height: 100%;
    border: 0;
    color: #fff;
    background: var(--bs-danger, #dc3545);
    font-weight: 700;
}

.ingredient-delete-action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .9);
    outline-offset: -5px;
}

@media (prefers-reduced-motion: reduce) {
    .ingredient-swipe-content,
    .instruction-swipe-content {
        transition-duration: 0ms !important;
    }
}

.instruction-row {
    align-items: flex-start;
}

.step-badge {
    display: inline-flex;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #fff;
    background: var(--color-accent);
    font-size: .8rem;
    font-weight: 700;
}

[data-bridge-components~="button"]
[data-controller~="button"] {
    display: none;
}

.recipe-import {
    max-width: 42rem;
    padding: 1.5rem;
}

.recipe-text-import__content {
    min-height: 22rem;
    resize: vertical;
}

.recipe-photo-import__picker,
.recipe-photo-import__preview,
.recipe-photo-import__progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.recipe-photo-import__preview img {
    display: block;
    width: 100%;
    max-height: 32rem;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--color-canvas);
}

.recipe-photo-import__progress {
    flex-direction: row;
    justify-content: center;
}

.recipe-photo-import__picker[hidden],
.recipe-photo-import__preview[hidden],
.recipe-photo-import__progress[hidden] {
    display: none;
}
@media (max-width: 767.98px) {
    .recipe-list {
        grid-template-columns: 1fr;
    }
}

/* Recipe workbench — Stitch "Alternative 1: Inline Tags" */
#app_recipes_show {
    background: var(--color-canvas);
    color: var(--color-ink);
}

#app_recipes_show > .container-fluid {
    max-width: none;
    margin-top: 0 !important;
    padding: 0;
}

#app_recipes_show > .container-fluid > .row {
    margin: 0;
}

#app_recipes_show > .container-fluid > .row > [class*="col-"] {
    padding: 0;
}

#app_recipes_show .main-content {
    min-height: 0;
}

.recipe-workbench {
    width: min(100%, 760px);
    min-height: calc(100vh - 5.4rem);
    margin: 0 auto;
    background: var(--color-canvas);
}

.recipe-workbench__toolbar {
    position: relative;
    z-index: 1030;
    display: grid;
    grid-template-columns: 4.5rem 1fr 4.5rem;
    align-items: center;
    min-height: 3.5rem;
    padding: 0 .5rem;
    background: rgba(248, 249, 250, .96);
    box-shadow: 0 2px 8px rgba(25, 28, 29, .05);
    backdrop-filter: blur(12px);
}

.recipe-workbench__toolbar strong {
    overflow: hidden;
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-workbench__back,
.recipe-workbench__save {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    border: 0;
    color: var(--color-accent-strong);
    background: transparent;
    text-decoration: none;
}

.recipe-workbench__back {
    justify-content: center;
    width: 2.75rem;
    border-radius: 50%;
}

.recipe-workbench__back svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.recipe-workbench__save {
    justify-self: end;
    padding: 0 .75rem;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 650;
}

.recipe-workbench__back:hover,
.recipe-workbench__back:focus-visible,
.recipe-workbench__save:hover,
.recipe-workbench__save:focus-visible {
    color: var(--color-accent-strong);
    background: rgba(255, 107, 71, .11);
}

.recipe-workbench__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1rem calc(6.8rem + env(safe-area-inset-bottom));
}

.recipe-workbench__intro {
    padding: .1rem 0 .35rem;
}

.recipe-workbench__intro p {
    margin: 0 0 .25rem;
    color: var(--color-ink-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.recipe-workbench__intro h1 {
    margin: 0;
    font-size: clamp(1.35rem, 6vw, 1.65rem);
    font-weight: 600;
    line-height: 1.25;
}

.recipe-workbench__notification:empty {
    display: none;
}

.recipe-workbench__notification .alert {
    margin: 0;
}

.workbench-panel {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-panel);
}

.recipe-details-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-photo-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-photo-panel__current,
.recipe-photo-panel__preview img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: .65rem;
    object-fit: cover;
}

.recipe-photo-panel__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 11rem;
    padding: 1.25rem;
    border: 1px dashed #a8afb5;
    border-radius: .65rem;
    color: var(--workbench-muted);
    background: var(--workbench-field);
    font-size: .82rem;
    text-align: center;
}

.recipe-photo-panel__empty svg {
    width: 2.25rem;
    height: 2.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.recipe-photo-panel__form,
.recipe-photo-panel__picker,
.recipe-photo-panel__preview {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.recipe-photo-panel__picker p {
    margin: 0;
    color: var(--workbench-muted);
    font-size: .72rem;
    line-height: 1.5;
}

.recipe-photo-panel__progress {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--workbench-muted);
    font-size: .78rem;
}

.recipe-photo-panel__progress[hidden] {
    display: none;
}

.workbench-field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.workbench-field label {
    color: var(--color-ink-muted);
    font-size: .72rem;
    font-weight: 600;
}

.workbench-field .form-control {
    min-height: 2.9rem;
    padding: .7rem .85rem;
    border-color: var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    background: var(--color-field);
    font-size: .9rem;
    line-height: 1.45;
}

.workbench-field textarea.form-control {
    min-height: 5rem;
    resize: none;
}

.workbench-field textarea[readonly] {
    opacity: 1;
}

.workbench-field .form-control:focus {
    border-color: var(--color-accent);
    background: var(--color-field);
    box-shadow: 0 0 0 .2rem rgba(255, 107, 71, .14);
}

.recipe-details-panel .tag-metadata {
    border: 0;
}

.recipe-details-panel .tag-metadata__row {
    display: flex;
    gap: .75rem;
    min-height: 3rem;
    padding: .25rem 0;
}

.recipe-details-panel .tag-metadata__label {
    flex: 0 0 auto;
    font-size: .72rem;
}

.recipe-details-panel .tag-list {
    flex: 1;
    flex-wrap: nowrap;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.recipe-details-panel .tag-list::-webkit-scrollbar {
    display: none;
}

.recipe-details-panel .tag-chip {
    flex: 0 0 auto;
    padding: .35rem .7rem;
    border: 1px solid rgba(255, 107, 71, .2);
    color: var(--color-accent-strong);
    background: rgba(255, 107, 71, .1);
    font-size: .75rem;
    font-weight: 500;
}

.recipe-details-panel .tag-chip__delete {
    width: 1.15rem;
    height: 1.15rem;
    font-size: 1rem;
}

.recipe-details-panel .tag-add-button {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px dashed #929ba3;
    color: #575f67;
    background: #fff;
    font-size: 1.25rem;
}

.recipe-details-panel .tag-add-button:hover,
.recipe-details-panel .tag-add-button:focus-visible,
.recipe-details-panel .tag-add-button[aria-expanded="true"] {
    border-color: var(--color-accent);
    color: var(--color-accent-strong);
    background: rgba(255, 107, 71, .1);
}

.recipe-details-panel .tag-editor {
    border-top: 1px solid var(--color-border);
}

.recipe-primary-actions {
    display: flex;
    gap: .75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.recipe-cook-button,
.recipe-print-button,
.recipe-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-height);
    border-radius: var(--radius-sm);
}

.recipe-cook-button {
    flex: 1;
    gap: .5rem;
    border: 0;
    color: #fff;
    background: var(--color-accent);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.recipe-cook-button:hover,
.recipe-cook-button:focus-visible {
    color: #fff;
    background: var(--color-accent-strong);
}

.recipe-print-button {
    flex: 0 0 3rem;
    border: 0;
    color: #fff;
    background: var(--color-accent);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.recipe-print-button:hover,
.recipe-print-button:focus-visible {
    color: #fff;
    background: var(--color-accent-strong);
}

.recipe-delete-button {
    flex: 0 0 3rem;
    border: 1px solid rgba(186, 26, 26, .3);
    color: var(--color-danger);
    background: #fff;
}

/* Full-screen cook mode */
body#app_recipes_cook {
    overflow: hidden;
    background: #1e1d1c;
}

body#app_recipes_cook #content {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0 !important;
}

/* Recipe assistant */
.recipe-chat {
    position: fixed;
    z-index: 1100;
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    color: #191c1d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.recipe-chat,
.recipe-chat * {
    box-sizing: border-box;
}

body#app_recipes_show .recipe-chat {
    bottom: calc(5.75rem + env(safe-area-inset-bottom));
}

.recipe-chat__launcher {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: #ff6b47;
    box-shadow: 0 10px 28px rgba(46, 35, 31, .28);
}

.recipe-chat__launcher:hover,
.recipe-chat__launcher:focus-visible,
.recipe-chat__launcher[aria-expanded="true"] {
    background: #d94a27;
}

.recipe-chat__launcher img {
    width: 2.5rem;
    height: 2.5rem;
}

.recipe-chat__launcher-bubble {
    position: absolute;
    right: -.1rem;
    bottom: -.05rem;
    width: 1.15rem;
    height: .9rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ff6b47;
}

.recipe-chat__launcher-bubble::after {
    position: absolute;
    right: -.15rem;
    bottom: -.25rem;
    width: .4rem;
    height: .45rem;
    border-left: 2px solid #fff;
    background: #ff6b47;
    content: "";
    transform: rotate(-35deg);
}

.recipe-chat__panel {
    width: 90%;
    max-width: 90%;
    min-width: 0;
    margin-bottom: .75rem;
    overflow: hidden;
    border: 1px solid #e1e3e4;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 16px 48px rgba(25, 28, 29, .24);
}

.recipe-chat__header {
    display: grid;
    grid-template-columns: 2.5rem 1fr 2.5rem;
    align-items: center;
    gap: .65rem;
    padding: .75rem;
    color: #fff;
    background: #ff6b47;
}

.recipe-chat__header > * {
    min-width: 0;
}

.recipe-chat__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
}

.recipe-chat__avatar img {
    width: 2rem;
    height: 2rem;
}

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

.recipe-chat__header strong {
    font-size: .9rem;
}

.recipe-chat__header small {
    margin-top: .1rem;
    font-size: .7rem;
    opacity: .86;
}

.recipe-chat__header button {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
}

.recipe-chat__header button:hover,
.recipe-chat__header button:focus-visible {
    background: rgba(255, 255, 255, .16);
}

.recipe-chat__messages {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .6rem;
    max-height: min(45vh, 20rem);
    padding: .85rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.recipe-chat__message {
    max-width: 88%;
    margin: 0;
    padding: .65rem .75rem;
    border-radius: .8rem;
    font-size: .82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.recipe-chat__message--assistant {
    align-self: flex-start;
    border-bottom-left-radius: .2rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(25, 28, 29, .08);
}

.recipe-chat__message--user {
    align-self: flex-end;
    border-bottom-right-radius: .2rem;
    color: #fff;
    background: #d94a27;
}

.recipe-chat__form {
    display: flex;
    align-items: end;
    gap: .5rem;
    width: 100%;
    min-width: 0;
    padding: .75rem;
    border-top: 1px solid #e1e3e4;
}

.recipe-chat__form textarea {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 2.75rem;
    max-height: 7rem;
    padding: .6rem .7rem;
    resize: vertical;
    border: 1px solid #cfd3d5;
    border-radius: .6rem;
    font: inherit;
    font-size: 1rem;
}

.recipe-chat__form textarea:focus {
    border-color: #ff6b47;
    outline: 3px solid rgba(255, 107, 71, .16);
}

.recipe-chat__form button {
    flex: 0 0 auto;
    min-width: 3.5rem;
    min-height: 2.75rem;
    border: 0;
    border-radius: .6rem;
    color: #fff;
    background: #ff6b47;
    font-size: .78rem;
    font-weight: 700;
}

.recipe-chat__form button:disabled {
    opacity: .55;
}

.recipe-chat__status {
    margin: 0;
    padding: 0 .75rem .65rem;
    color: #9f3016;
    font-size: .72rem;
}

.recipe-chat__status:empty {
    display: none;
}

@media (min-width: 769px) {
    body#app_recipes_show .recipe-chat {
        bottom: 1.5rem;
    }

    .recipe-chat {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        width: 23rem;
        max-width: calc(100vw - 3rem);
    }

    .recipe-chat__form textarea {
        font-size: .82rem;
    }
}

.cook-mode,
.cook-mode * {
    box-sizing: border-box;
}

.cook-mode {
    --cook-accent-dark: #d94726;
    --cook-charcoal: #1e1d1c;
    --cook-charcoal-soft: #2c2a28;
    --cook-cream: #fffaf7;
    --cook-line: #eaded9;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 32rem;
    overflow: hidden;
    color: var(--color-ink);
    background: var(--cook-cream);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cook-mode [hidden] {
    display: none !important;
}

.cook-mode button,
.cook-mode a,
.cook-mode input {
    font: inherit;
}

.cook-mode button:focus-visible,
.cook-mode a:focus-visible,
.cook-mode input:focus-visible {
    outline: 3px solid #ffb4a2;
    outline-offset: 3px;
}

.cook-mode__workspace {
    display: grid;
    grid-template-rows: minmax(0, 1.15fr) minmax(0, .85fr);
    width: 100%;
    height: 100%;
}

.cook-mode__instruction {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
    overflow-y: auto;
    color: #fff;
    background: var(--cook-charcoal);
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

.cook-mode__header {
    display: grid;
    grid-template-columns: minmax(4rem, auto) minmax(0, 1fr) minmax(4.5rem, auto);
    align-items: center;
    gap: .6rem;
}

.cook-mode__header h1 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: clamp(.9rem, 3.8vw, 1.1rem);
    font-weight: 650;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cook-mode__exit {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 2.75rem;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.cook-mode__exit:hover {
    color: #ffd9d0;
}

.cook-mode__exit svg,
.cook-mode__nav-button svg,
.cook-timer__heading svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.cook-mode__step-count {
    color: #d4ceca;
    font-size: .75rem;
    font-weight: 600;
    text-align: right;
}

.cook-mode__progress {
    flex: 0 0 .3rem;
    margin: .65rem 0;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .16);
}

.cook-mode__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--color-accent);
    transition: width 220ms ease-out;
}

.cook-mode__steps {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 8.5rem;
    padding: .25rem 0 .75rem;
}

.cook-mode__step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .85rem;
    width: min(100%, 42rem);
    margin: 0 auto;
}

.cook-mode__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    color: #fff;
    background: var(--color-accent);
    font-size: 1.15rem;
    font-weight: 750;
}

.cook-mode__step p {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 5vw, 2rem);
    font-weight: 650;
    line-height: 1.3;
}

.cook-timer {
    width: min(100%, 42rem);
    margin: 0 auto .75rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: .8rem;
    background: var(--cook-charcoal-soft);
}

.cook-timer__heading,
.cook-timer__controls,
.cook-timer__inputs,
.cook-timer__actions {
    display: flex;
    align-items: center;
}

.cook-timer__heading {
    gap: .45rem;
}

.cook-timer__heading h2 {
    margin: 0;
    font-size: .9rem;
    font-weight: 650;
}

.cook-timer__display {
    margin-left: auto;
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: .04em;
}

.cook-timer__controls {
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .55rem;
}

.cook-timer__inputs {
    gap: .3rem;
}

.cook-timer__inputs label {
    display: grid;
    gap: .1rem;
    color: #cbc4c0;
    font-size: .65rem;
    font-weight: 600;
}

.cook-timer__inputs input {
    width: 4.25rem;
    min-height: 2.75rem;
    padding: .35rem .5rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: .45rem;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.cook-timer__inputs.is-locked {
    opacity: .65;
}

.cook-timer__separator {
    margin-top: .85rem;
    font-weight: 750;
}

.cook-timer__actions {
    flex: 1;
    justify-content: flex-end;
    gap: .4rem;
}

.cook-timer__button {
    min-height: 2.75rem;
    padding: .5rem .8rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: .55rem;
    color: #fff;
    background: transparent;
    font-size: .78rem;
    font-weight: 700;
}

.cook-timer__button--start {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.cook-timer__button--quiet {
    color: #d9d3cf;
}

.cook-timer__button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.cook-timer__status {
    min-height: 1rem;
    margin: .35rem 0 0;
    color: #ffd9d0;
    font-size: .72rem;
    text-align: right;
}

.cook-mode__step-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: .7rem;
    width: min(100%, 42rem);
    margin: 0 auto;
}

.cook-mode__nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 3.25rem;
    padding: .65rem 1rem;
    border-radius: .7rem;
    font-size: .9rem;
    font-weight: 750;
}

.cook-mode__nav-button--back {
    border: 1px solid rgba(255, 255, 255, .32);
    color: #fff;
    background: transparent;
}

.cook-mode__nav-button--next {
    border: 1px solid var(--color-accent);
    color: #fff;
    background: var(--color-accent);
}

.cook-mode__nav-button:disabled {
    opacity: .36;
}

.cook-mode__ingredients {
    min-height: 0;
    padding: 1.1rem 1rem max(1.1rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #fff;
}

.cook-mode__ingredients-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 42rem);
    margin: 0 auto 1rem;
}

.cook-mode__ingredients-header p {
    margin: 0 0 .1rem;
    color: var(--cook-accent-dark);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cook-mode__ingredients-header h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 750;
}

.cook-mode__ingredients-header > span {
    color: var(--color-ink-muted);
    font-size: .78rem;
}

.cook-ingredients-list {
    display: grid;
    gap: 1rem;
    width: min(100%, 42rem);
    margin: 0 auto;
}

.cook-ingredients-group h3 {
    margin: 0 0 .35rem;
    color: var(--color-ink-muted);
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cook-ingredient {
    position: relative;
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 3.25rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--cook-line);
    cursor: pointer;
}

.cook-ingredient input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cook-ingredient__check {
    display: inline-flex;
    flex: 0 0 1.7rem;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border: 2px solid #b9aaa4;
    border-radius: .45rem;
    color: transparent;
    background: #fff;
}

.cook-ingredient__check svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.cook-ingredient input:focus-visible + .cook-ingredient__check {
    outline: 3px solid #ffb4a2;
    outline-offset: 3px;
}

.cook-ingredient input:checked + .cook-ingredient__check {
    border-color: var(--color-accent);
    color: #fff;
    background: var(--color-accent);
}

.cook-ingredient__content {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

.cook-ingredient__name {
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.35;
}

.cook-ingredient__meta {
    color: var(--color-ink-muted);
    font-size: .78rem;
}

.cook-ingredient input:checked ~ .cook-ingredient__content {
    color: #9b918c;
    text-decoration: line-through;
}

.cook-mode__empty {
    display: grid;
    justify-items: center;
    gap: .4rem;
    width: min(100%, 32rem);
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: .8rem;
    text-align: center;
    background: var(--cook-cream);
}

.cook-mode__empty > span {
    font-size: 2rem;
}

.cook-mode__empty h2,
.cook-mode__empty h3,
.cook-mode__empty p {
    margin: 0;
}

.cook-mode__empty p {
    color: var(--color-ink-muted);
}

.cook-mode__empty--steps {
    margin: auto;
    color: var(--color-ink);
}

.cook-mode__empty a {
    min-height: 2.75rem;
    padding: .7rem 1rem;
    border-radius: .55rem;
    color: #fff;
    background: var(--color-accent);
    font-weight: 700;
    text-decoration: none;
}

.cook-celebration {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, #fff 0, #fff7f3 42%, #ffe1d8 100%);
}

.cook-celebration__content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    width: min(100%, 34rem);
    text-align: center;
}

.cook-celebration__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    color: #fff;
    background: var(--color-accent);
    box-shadow: 0 18px 50px rgba(217, 71, 38, .25);
    font-size: 3rem;
    font-weight: 800;
    animation: cook-celebration-pop 600ms cubic-bezier(.2, .9, .3, 1.25) both;
}

.cook-celebration__content > p {
    margin: 0 0 .35rem;
    color: var(--cook-accent-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cook-celebration__content h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(2.5rem, 11vw, 5rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

.cook-celebration__content > strong {
    margin-top: .7rem;
    font-size: clamp(1.15rem, 4.5vw, 1.7rem);
}

.cook-celebration__content > span:not(.cook-celebration__icon) {
    margin-top: .25rem;
    color: var(--color-ink-muted);
}

.cook-celebration__actions {
    display: grid;
    gap: .75rem;
    width: min(100%, 22rem);
    margin-top: 2.25rem;
}

.cook-celebration__actions a,
.cook-celebration__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: .7rem 1rem;
    border-radius: .7rem;
    font-weight: 750;
    text-decoration: none;
}

.cook-celebration__actions a {
    border: 1px solid var(--color-accent);
    color: #fff;
    background: var(--color-accent);
}

.cook-celebration__actions button {
    border: 1px solid #d9c8c1;
    color: var(--color-ink);
    background: rgba(255, 255, 255, .72);
}

.cook-celebration__confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cook-celebration__confetti i {
    position: absolute;
    top: -8%;
    left: var(--confetti-left);
    width: .55rem;
    height: 1rem;
    border-radius: .15rem;
    background: var(--confetti-color);
    animation: cook-confetti-fall var(--confetti-duration) linear var(--confetti-delay) infinite;
}

.cook-celebration__confetti i:nth-child(3n + 1) { --confetti-color: #ff6b47; transform: rotate(18deg); }
.cook-celebration__confetti i:nth-child(3n + 2) { --confetti-color: #ffc857; transform: rotate(54deg); }
.cook-celebration__confetti i:nth-child(3n) { --confetti-color: #47b39c; transform: rotate(88deg); }
.cook-celebration__confetti i:nth-child(1) { --confetti-left: 5%; --confetti-delay: -.8s; --confetti-duration: 4.2s; }
.cook-celebration__confetti i:nth-child(2) { --confetti-left: 11%; --confetti-delay: -2.1s; --confetti-duration: 5.1s; }
.cook-celebration__confetti i:nth-child(3) { --confetti-left: 18%; --confetti-delay: -3.2s; --confetti-duration: 4.7s; }
.cook-celebration__confetti i:nth-child(4) { --confetti-left: 25%; --confetti-delay: -1.4s; --confetti-duration: 5.3s; }
.cook-celebration__confetti i:nth-child(5) { --confetti-left: 31%; --confetti-delay: -4.1s; --confetti-duration: 5.8s; }
.cook-celebration__confetti i:nth-child(6) { --confetti-left: 38%; --confetti-delay: -.4s; --confetti-duration: 4.6s; }
.cook-celebration__confetti i:nth-child(7) { --confetti-left: 44%; --confetti-delay: -2.8s; --confetti-duration: 5.5s; }
.cook-celebration__confetti i:nth-child(8) { --confetti-left: 49%; --confetti-delay: -1.7s; --confetti-duration: 4.9s; }
.cook-celebration__confetti i:nth-child(9) { --confetti-left: 55%; --confetti-delay: -3.5s; --confetti-duration: 5.7s; }
.cook-celebration__confetti i:nth-child(10) { --confetti-left: 61%; --confetti-delay: -.9s; --confetti-duration: 4.4s; }
.cook-celebration__confetti i:nth-child(11) { --confetti-left: 67%; --confetti-delay: -2.5s; --confetti-duration: 5.2s; }
.cook-celebration__confetti i:nth-child(12) { --confetti-left: 72%; --confetti-delay: -3.8s; --confetti-duration: 4.8s; }
.cook-celebration__confetti i:nth-child(13) { --confetti-left: 77%; --confetti-delay: -1.1s; --confetti-duration: 5.6s; }
.cook-celebration__confetti i:nth-child(14) { --confetti-left: 82%; --confetti-delay: -4.4s; --confetti-duration: 5.9s; }
.cook-celebration__confetti i:nth-child(15) { --confetti-left: 87%; --confetti-delay: -2s; --confetti-duration: 4.5s; }
.cook-celebration__confetti i:nth-child(16) { --confetti-left: 91%; --confetti-delay: -3s; --confetti-duration: 5.4s; }
.cook-celebration__confetti i:nth-child(17) { --confetti-left: 95%; --confetti-delay: -.6s; --confetti-duration: 4.3s; }
.cook-celebration__confetti i:nth-child(18) { --confetti-left: 98%; --confetti-delay: -4s; --confetti-duration: 5s; }

@keyframes cook-celebration-pop {
    from { opacity: 0; transform: scale(.6) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes cook-confetti-fall {
    from { translate: 0 -10vh; rotate: 0deg; }
    to { translate: 1.5rem 120vh; rotate: 520deg; }
}

@media (min-width: 769px) {
    .cook-mode__workspace {
        grid-template-rows: minmax(0, 1fr);
        grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr);
    }

    .cook-mode__instruction {
        padding: max(1.5rem, env(safe-area-inset-top)) clamp(1.5rem, 4vw, 4rem) max(1.5rem, env(safe-area-inset-bottom));
    }

    .cook-mode__ingredients {
        padding: max(2rem, env(safe-area-inset-top)) clamp(1.5rem, 4vw, 4rem) max(2rem, env(safe-area-inset-bottom));
    }

    .cook-mode__steps {
        min-height: 12rem;
    }

    .cook-mode__step p {
        font-size: clamp(1.5rem, 2.4vw, 2.5rem);
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    .cook-mode__steps {
        min-height: 7rem;
    }

    .cook-mode__step p {
        font-size: 1.1rem;
    }

    .cook-mode__step-number {
        width: 2.2rem;
        height: 2.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cook-mode__progress span,
    .cook-celebration__icon {
        transition: none;
        animation: none;
    }

    .cook-celebration__confetti {
        display: none;
    }
}

.recipe-cook-button:disabled,
.recipe-delete-button:disabled,
.workbench-panel__add:disabled {
    opacity: 1;
}

.recipe-cook-button svg,
.recipe-print-button svg,
.recipe-delete-button svg,
.workbench-panel__title svg {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (min-width: 992px) {
    .recipe-print-button {
        display: inline-flex;
    }
}

.workbench-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.workbench-panel__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.workbench-panel__title svg {
    color: var(--color-accent);
}

.workbench-panel__add {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .4rem .25rem;
    border: 0;
    color: var(--color-accent-strong);
    background: transparent;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

.workbench-panel__add:hover,
.workbench-panel__add:focus-visible {
    color: var(--color-accent-strong);
}

.workbench-add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    min-height: 2.8rem;
    border: 1px dashed #929ba3;
    border-radius: var(--radius-sm);
    color: var(--color-ink-muted);
    background: #fff;
    font-size: .82rem;
    font-weight: 600;
}

.workbench-panel .ingredient-list,
.workbench-panel .instruction-list {
    margin-top: .8rem;
    border-top: 0;
}

.workbench-panel .ingredient-group,
.workbench-panel .instruction-group {
    margin: .9rem 0 .3rem;
}

.workbench-panel .ingredient-swipe-row {
    border-bottom: 0;
}

.swipe-action-row {
    position: relative;
    overflow: hidden;
}

.swipe-action-row:has(.dropdown-menu.show) {
    z-index: 10;
    overflow: visible;
}

.ingredient-swipe-content,
.instruction-swipe-content {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.ingredient-swipe-content .ingredient-row {
    flex: 1;
    min-width: 0;
}

.workbench-panel .ingredient-swipe-row .ingredient-row,
.workbench-panel .instruction-row {
    min-height: 2.35rem;
    padding: .45rem 0;
    border-bottom: 0;
    background: #fff;
    font-size: .86rem;
}

.ingredient-row__content {
    display: flex;
    flex: 1;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.ingredient-row__bullet {
    flex: 0 0 .4rem;
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: var(--color-accent);
}

.row-actions {
    display: flex;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: flex-end;
    background: #fff;
}

.row-actions__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--color-ink-muted);
    background: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.row-actions__toggle:hover,
.row-actions__toggle:focus-visible,
.row-actions__toggle[aria-expanded="true"] {
    color: var(--color-accent-strong);
    background: rgba(255, 107, 71, .1);
}

.row-actions .dropdown-menu {
    min-width: 8rem;
    padding: .35rem;
    border-color: var(--color-border);
    border-radius: .6rem;
    box-shadow: 0 10px 30px rgba(25, 28, 29, .14);
}

.row-actions .dropdown-item {
    padding: .55rem .7rem;
    border-radius: .35rem;
    font-size: .85rem;
}

.row-actions .dropdown-item--danger {
    color: var(--color-danger);
}

.row-actions .dropdown-item--danger:hover,
.row-actions .dropdown-item--danger:focus-visible {
    color: #93000a;
    background: #ffdad6;
}

.workbench-panel .instruction-list {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.workbench-panel .instruction-row {
    align-items: flex-start;
    gap: .65rem;
    flex: 1;
    min-width: 0;
}

.workbench-panel .instruction-row p {
    flex: 1;
    min-width: 0;
}

.workbench-panel .step-badge {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: .1rem;
    color: var(--color-ink);
    background: #e7e8e9;
    font-size: .68rem;
}

.recipe-workbench__bottom-nav {
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .recipe-workbench {
        width: 100%;
        min-height: calc(100vh - 5.4rem);
        margin-top: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .recipe-workbench__toolbar {
        grid-template-columns: 7rem 1fr 7rem;
        min-height: 4rem;
        padding: 0 1.25rem;
        border-radius: 0;
    }

    .recipe-workbench__toolbar strong {
        font-size: 1rem;
    }

    .recipe-workbench__content {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
        gap: 1.5rem;
        width: min(100%, 1120px);
        margin: 0 auto;
        padding: 2rem;
    }

    .recipe-workbench__intro,
    .recipe-workbench__notification {
        grid-column: 1 / -1;
    }

    .recipe-workbench__intro {
        padding: 0 0 .25rem;
    }

    .recipe-workbench__intro h1 {
        font-size: 2rem;
    }

    .workbench-panel {
        align-self: start;
        padding: 1.5rem;
    }

    .recipe-details-panel {
        grid-column: 1;
    }

    .recipe-photo-panel {
        grid-column: 2;
    }

    .recipe-schedule-panel {
        grid-column: 2;
    }

    .recipe-ingredients-panel {
        grid-column: 1;
    }

    .recipe-instructions-panel {
        grid-column: 2;
    }

    .recipe-details-panel .tag-list {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* Account profile and household management */
#account_profile,
#account_password,
#household_create,
#household_show,
#household_invitation_accept,
#household_join_legacy {
    background: var(--color-canvas);
    color: var(--color-ink);
}

#account_profile #content,
#account_password #content,
#household_create #content,
#household_show #content,
#household_invitation_accept #content,
#household_join_legacy #content {
    padding: 0 !important;
}

.account-shell {
    width: 100%;
    min-height: 100svh;
    margin: 0 auto;
    background: var(--color-canvas);
}

.account-toolbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: 3rem 1fr 3rem;
    align-items: center;
    min-height: 3.5rem;
    padding: env(safe-area-inset-top) .45rem 0;
    border-bottom: 1px solid rgba(225, 227, 228, .9);
    background: rgba(248, 249, 250, .95);
    backdrop-filter: blur(12px);
}

.account-toolbar strong {
    overflow: hidden;
    font-size: 1rem;
    font-weight: 650;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-toolbar__back {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: var(--color-ink);
    place-items: center;
}

.account-toolbar__back:hover,
.account-toolbar__back:focus-visible {
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
}

.account-toolbar__back svg,
.account-row-icon svg,
.account-chevron {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.account-toolbar__back svg {
    width: 1.45rem;
    height: 1.45rem;
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: min(100%, 36rem);
    margin: 0 auto;
    padding: .8rem 1rem calc(2rem + env(safe-area-inset-bottom));
}

.account-content--form {
    gap: 1.25rem;
    padding-top: 1.5rem;
}

.account-profile-card,
.account-card,
.account-list,
.account-action-row,
.account-form,
.household-summary {
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-panel);
}

.account-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.6rem 1rem 1.25rem;
}

.account-avatar {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    color: #4e160a;
    background: var(--color-accent);
    font-size: .88rem;
    font-weight: 600;
    place-items: center;
}

.account-avatar--small {
    width: 2.45rem;
    height: 2.45rem;
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
    font-size: .72rem;
}

.account-profile-card__email {
    max-width: 100%;
    margin-top: .75rem;
    overflow: hidden;
    font-size: .95rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .45rem;
    padding: .22rem .55rem;
    border-radius: var(--radius-pill);
    color: #51555a;
    background: #f3f4f5;
    font-size: .63rem;
}

.account-status i {
    width: .38rem;
    height: .38rem;
    border-radius: 50%;
    background: #23a55a;
}

.account-section {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.account-section__heading {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.account-section__heading h1,
.account-section__heading h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
}

.account-section__heading > span {
    display: grid;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .25rem;
    border-radius: var(--radius-pill);
    color: #fff;
    background: var(--color-accent);
    font-size: .62rem;
    font-weight: 700;
    place-items: center;
}

.account-list {
    overflow: hidden;
}

.account-household-row,
.account-action-row,
.household-member-row,
.household-pending-row {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto 1rem;
    align-items: center;
    gap: .65rem;
    min-height: 4.2rem;
    padding: .75rem .8rem;
    color: var(--color-ink);
    text-decoration: none;
}

.account-household-row + .account-household-row,
.household-member-row + .household-member-row,
.household-pending-row + .household-pending-row {
    border-top: 1px solid #eceeef;
}

.account-household-row:hover,
.account-household-row:focus-visible,
.account-action-row:hover,
.account-action-row:focus-visible {
    color: var(--color-ink);
    background: #fffaf8;
}

.account-row-icon {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    color: #62676b;
    background: #f1f2f3;
    place-items: center;
}

.account-row-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.account-row-icon--large {
    width: 3.25rem;
    height: 3.25rem;
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
}

.account-row-icon--large svg {
    width: 1.65rem;
    height: 1.65rem;
}

.account-row-copy {
    display: grid;
    min-width: 0;
    gap: .13rem;
}

.account-row-copy strong {
    overflow: hidden;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-row-copy small {
    color: var(--color-ink-muted);
    font-size: .65rem;
    line-height: 1.3;
}

.account-role {
    padding: .25rem .5rem;
    border-radius: .3rem;
    color: #55595d;
    background: #e7e8e9;
    font-size: .6rem;
    font-weight: 650;
}

.account-role--owner {
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
}

.account-chevron {
    width: .95rem;
    height: .95rem;
    color: #666b70;
}

.account-helper,
.account-form__intro {
    margin: 0;
    color: var(--color-ink-muted);
    font-size: .68rem;
    line-height: 1.45;
}

.account-text-action {
    align-self: flex-start;
    min-height: 2.75rem;
    padding: .7rem .1rem;
    color: var(--color-accent-strong);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
}

.account-action-row {
    grid-template-columns: 2.25rem minmax(0, 1fr) 1rem;
}

.account-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    margin-top: .2rem;
    padding: .7rem 1rem;
    border: 1px solid #edc6bd;
    border-radius: var(--radius-sm);
    color: var(--color-accent-strong);
    background: transparent;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

.account-logout:hover,
.account-logout:focus-visible {
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
}

.account-footer {
    width: 100%;
}

.account-empty,
.account-join-note {
    padding: 1rem;
}

.account-empty strong,
.account-join-note strong {
    font-size: .85rem;
}

.account-empty p,
.account-join-note p {
    margin: .35rem 0 0;
    color: var(--color-ink-muted);
    font-size: .72rem;
    line-height: 1.5;
}

.account-page-intro,
.household-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.account-page-intro h1,
.household-summary h1,
.account-invalid-invite h1 {
    margin: .85rem 0 .35rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.account-page-intro p,
.household-summary p,
.account-invalid-invite p {
    max-width: 28rem;
    margin: 0;
    color: var(--color-ink-muted);
    font-size: .82rem;
    line-height: 1.5;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.account-form__field {
    display: flex;
    flex-direction: column;
    gap: .42rem;
}

.account-form__field label {
    margin: 0;
    color: #4f5357;
    font-size: .78rem;
    font-weight: 600;
}

.account-form__field input {
    width: 100%;
    min-height: 3rem;
    padding: .7rem .8rem;
    border: 1px solid var(--color-border);
    border-radius: .55rem;
    outline: 0;
    color: var(--color-ink);
    background: #f3f4f5;
    font: inherit;
    font-size: .9rem;
}

.account-form__field input:focus {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(255, 107, 71, .14);
}

.account-form ul,
.account-form__field ul {
    margin: 0;
    padding: 0;
    color: var(--color-danger);
    font-size: .7rem;
    list-style: none;
}

.account-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .7rem 1rem;
    border: 0;
    border-radius: .55rem;
    color: #fff;
    background: var(--color-accent);
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
}

.account-primary-button:hover,
.account-primary-button:focus-visible {
    color: #fff;
    background: #f45535;
}

.account-flash {
    padding: .75rem .9rem;
    border-radius: .6rem;
    color: #176439;
    background: #e7f7ed;
    font-size: .76rem;
    line-height: 1.4;
}

.account-flashes {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.account-flash--error {
    color: #8c261c;
    background: #fff0ed;
}

.household-summary {
    padding: 1.35rem 1rem;
}

.household-summary .account-role {
    margin-top: .75rem;
}

.household-member-row {
    grid-template-columns: 2.45rem minmax(0, 1fr) auto;
}

.household-pending-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.household-row-actions {
    display: flex;
    gap: .35rem;
}

.household-row-actions form,
.household-member-row form {
    margin: 0;
}

.account-small-button {
    min-height: 2.4rem;
    padding: .45rem .6rem;
    border: 0;
    border-radius: .45rem;
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
    font-size: .66rem;
    font-weight: 650;
}

.account-small-button--danger {
    color: #8c261c;
    background: #f8e8e5;
}

.account-invalid-invite {
    padding: 1.5rem;
    text-align: center;
}

.account-invalid-invite .account-primary-button {
    width: 100%;
    margin-top: 1.25rem;
}

.account-toolbar__back:focus-visible,
.account-household-row:focus-visible,
.account-action-row:focus-visible,
.account-text-action:focus-visible,
.account-logout:focus-visible,
.account-primary-button:focus-visible,
.account-small-button:focus-visible {
    outline: 3px solid rgba(255, 107, 71, .3);
    outline-offset: 2px;
}

@media (min-width: 900px) {
    .account-shell {
        min-height: 100vh;
        margin: 0;
    }

    .account-content {
        width: min(100%, 1120px);
        padding: 2.5rem clamp(2rem, 5vw, 4rem) 4rem;
    }

    #account_profile .account-content {
        display: grid;
        grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr);
        grid-template-areas:
            "flashes flashes"
            "profile households"
            "logout security";
        align-items: start;
        column-gap: clamp(2rem, 5vw, 4rem);
        row-gap: 2rem;
    }

    #account_profile .account-profile-card {
        grid-area: profile;
        min-height: 16rem;
        justify-content: center;
        padding: 2rem;
    }

    #account_profile .account-section[aria-labelledby="households-heading"] {
        grid-area: households;
    }

    #account_profile .account-section[aria-labelledby="security-heading"] {
        grid-area: security;
    }

    #account_profile .account-footer {
        grid-area: logout;
    }

    #account_profile .account-footer .account-logout {
        margin-top: 0;
    }

    #account_profile .account-flashes {
        grid-area: flashes;
    }

    .account-household-row,
    .account-action-row,
    .household-member-row,
    .household-pending-row {
        min-height: 4.75rem;
        padding: .9rem 1rem;
    }

    .account-row-copy strong {
        font-size: .9rem;
    }

    .account-row-copy small,
    .account-helper,
    .account-form__intro {
        font-size: .75rem;
    }

    .account-content.account-content--form {
        display: flex;
        width: min(100%, 46rem);
        padding-top: 3rem;
    }

    .household-content {
        display: grid;
        grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr);
        grid-template-areas:
            "flashes flashes"
            "summary members"
            "secondary members"
            ". pending";
        align-items: start;
        column-gap: clamp(2rem, 5vw, 4rem);
        row-gap: 2rem;
    }

    .household-content > .account-flashes {
        grid-area: flashes;
    }

    .household-content > .household-summary {
        grid-area: summary;
        min-height: 16rem;
        justify-content: center;
    }

    .household-content > .account-section[aria-labelledby="members-heading"] {
        grid-area: members;
    }

    .household-content > .account-section[aria-labelledby="invite-heading"],
    .household-content > form {
        grid-area: secondary;
    }

    .household-content > .account-section[aria-labelledby="pending-heading"] {
        grid-area: pending;
    }
}
