:root {
    color-scheme: light;
    --background: #f8f5ec;
    --surface: #fffdf8;
    --text: #253329;
    --muted: #68736b;
    --primary: #2f6c50;
    --primary-dark: #24553f;
    --accent: #e8764c;
    --border: #dcded5;
    --danger: #9b352e;
    --danger-background: #fff0ec;
    --success-background: #edf7ef;
    --shadow: 0 24px 70px rgb(55 67 57 / 12%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 4%, rgb(232 118 76 / 11%), transparent 28rem),
        radial-gradient(circle at 92% 88%, rgb(47 108 80 / 11%), transparent 30rem),
        var(--background);
}

button,
input {
    font: inherit;
}

button,
input[type="email"],
input[type="password"],
input[type="text"] {
    min-height: 48px;
}

.page-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.auth-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 30px 22px 26px;
    border: 1px solid rgb(47 108 80 / 10%);
    border-radius: 28px;
    background: rgb(255 253 248 / 91%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.home-account-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.home-account-actions a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgb(47 108 80 / 14%);
    border-radius: 13px;
    color: var(--primary-dark);
    background: var(--success-background);
    font-size: 1.05rem;
    text-decoration: none;
    transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.home-account-actions a:hover {
    border-color: var(--primary);
    background: #fff;
}

.home-account-actions a:active {
    transform: translateY(1px);
}

.home-account-actions a:focus-visible {
    outline: 3px solid rgb(232 118 76 / 42%);
    outline-offset: 2px;
}

.brand-mark {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 28px;
    border-radius: 22px;
    background: var(--primary);
    box-shadow: 0 12px 28px rgb(47 108 80 / 22%);
}

.brand-mark__plate {
    position: absolute;
    right: 14px;
    bottom: 13px;
    left: 14px;
    height: 20px;
    border: 3px solid #fffdf8;
    border-top-width: 7px;
    border-radius: 6px 6px 17px 17px;
}

.brand-mark__leaf {
    position: absolute;
    top: 12px;
    width: 13px;
    height: 24px;
    background: #d9e7c2;
    border-radius: 90% 10% 90% 10%;
}

.brand-mark__leaf--left {
    left: 22px;
    transform: rotate(-32deg);
}

.brand-mark__leaf--right {
    right: 20px;
    transform: rotate(42deg) scale(.85);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 9vw, 2.65rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.intro {
    margin: 13px 0 28px;
    color: var(--muted);
    line-height: 1.55;
}

.intro strong {
    color: var(--text);
    font-weight: 650;
}

.login-form {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 8px;
}

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

.field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    color: var(--text);
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder {
    color: #9ba29c;
}

.field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgb(47 108 80 / 12%);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 88px;
}

.password-toggle {
    position: absolute;
    top: 4px;
    right: 5px;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    color: var(--primary);
    background: transparent;
    font-size: .8rem;
    font-weight: 750;
    cursor: pointer;
}

.password-toggle:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
    outline: 3px solid rgb(232 118 76 / 42%);
    outline-offset: 3px;
}

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 120ms ease, background-color 120ms ease;
}

.primary-button {
    margin-top: 4px;
    border: 1px solid var(--primary);
    color: #fff;
    background: var(--primary);
    box-shadow: 0 11px 24px rgb(47 108 80 / 20%);
}

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

.primary-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.primary-button:active,
.secondary-button:active {
    transform: translateY(1px);
}

.secondary-button {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

.secondary-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.alert {
    margin: -8px 0 20px;
    padding: 12px 14px;
    border: 1px solid rgb(155 53 46 / 18%);
    border-radius: 12px;
    color: var(--danger);
    background: var(--danger-background);
    font-size: .9rem;
    line-height: 1.45;
}

.success-card {
    display: flex;
    gap: 13px;
    margin: 4px 0 24px;
    padding: 16px;
    border: 1px solid rgb(47 108 80 / 13%);
    border-radius: 15px;
    background: var(--success-background);
}

.success-card__icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-weight: 800;
}

.success-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0 24px;
    padding: 16px;
    border: 1px solid rgb(47 108 80 / 13%);
    border-radius: 15px;
    color: inherit;
    background: var(--success-background);
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease;
}

.module-card:hover {
    border-color: rgb(47 108 80 / 35%);
    transform: translateY(-1px);
}

.module-card__icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #fff;
    font-size: 1.35rem;
}

.module-card strong {
    display: block;
}

.module-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.4;
}

.module-card__arrow {
    margin-left: auto;
    color: var(--primary);
    font-size: 1.8rem;
}

.app-body {
    padding-bottom: 78px;
}

.app-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid rgb(47 108 80 / 10%);
    background: rgb(248 245 236 / 88%);
    backdrop-filter: blur(14px);
}

.app-header__inner {
    width: min(1120px, 100%);
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto;
    padding: 8px 18px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.app-brand__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

.header-button {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    background: rgb(255 255 255 / 55%);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.forgot-password-link,
.auth-back-link {
    display: block;
    color: var(--primary);
    font-size: .84rem;
    font-weight: 700;
    text-align: center;
}

.forgot-password-link {
    margin-top: 12px;
}

.login-support-links {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-top: 12px;
}

.login-support-links .forgot-password-link {
    margin-top: 0;
}

.changelog-button {
    display: inline-grid;
    width: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    background: var(--surface);
    font-size: 1.05rem;
    cursor: pointer;
}

.changelog-button:hover {
    border-color: var(--primary);
    background: rgb(47 108 80 / 8%);
}

.changelog-button:focus-visible {
    outline: 3px solid rgb(47 108 80 / 25%);
    outline-offset: 2px;
}

.auth-back-link {
    margin-top: 22px;
}

.app-main {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 20px 18px 44px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: .82rem;
}

.breadcrumbs a {
    color: var(--primary);
}

.module-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.module-heading h1 {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
}

.module-heading > div > p:last-child {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.item-count {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid rgb(47 108 80 / 13%);
    border-radius: 999px;
    color: var(--primary);
    background: var(--success-background);
    font-size: .78rem;
    font-weight: 750;
}

.notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: .9rem;
    line-height: 1.45;
}

.notice--success {
    border: 1px solid rgb(47 108 80 / 18%);
    color: var(--primary-dark);
    background: var(--success-background);
}

.notice--error {
    border: 1px solid rgb(155 53 46 / 18%);
    color: var(--danger);
    background: var(--danger-background);
}

.creation-card {
    overflow: hidden;
    margin-bottom: 34px;
    border: 1px solid rgb(47 108 80 / 13%);
    border-radius: 19px;
    background: var(--surface);
    box-shadow: 0 12px 38px rgb(55 67 57 / 7%);
}

.creation-card > summary {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    list-style: none;
    cursor: pointer;
}

.creation-card > summary::-webkit-details-marker {
    display: none;
}

.creation-card > summary strong,
.creation-card > summary small {
    display: block;
}

.creation-card > summary small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 400;
}

.summary-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
    font-size: 1.45rem;
    line-height: 1;
}

.summary-chevron {
    width: 10px;
    height: 10px;
    margin-left: auto;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 150ms ease;
}

.creation-card[open] .summary-chevron {
    transform: rotate(225deg);
}

.ingredient-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px 16px 18px;
    border-top: 1px solid var(--border);
}

.field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 38px 11px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    color: var(--text);
    background-color: #fff;
}

.field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgb(47 108 80 / 12%);
}

.field input[type="file"] {
    min-height: 48px;
    padding: 8px;
    cursor: pointer;
}

.field input[type="file"]::file-selector-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    color: var(--primary);
    background: var(--success-background);
    font-weight: 700;
    cursor: pointer;
}

.field-unit,
.field-help {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 500;
}

.field-help,
.field-error {
    display: block;
    line-height: 1.35;
}

.field-error {
    color: var(--danger);
    font-size: .78rem;
    font-weight: 650;
}

.installation-steps {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
    padding-left: 22px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.45;
}

.installation-form {
    margin-top: 4px;
}

.field [aria-invalid="true"] {
    border-color: var(--danger);
}

.form-actions .primary-button {
    margin: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.empty-state {
    padding: 40px 22px;
    border: 1px dashed #cbd2ca;
    border-radius: 18px;
    text-align: center;
    background: rgb(255 253 248 / 62%);
}

.empty-state > span {
    font-size: 2.4rem;
}

.empty-state h3 {
    margin: 12px 0 5px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.empty-state--compact {
    padding: 28px 18px;
}

.empty-state--compact > span {
    font-size: 1.8rem;
}

.ingredient-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
}

.ingredient-list-filter {
    position: relative;
    display: block;
    margin-bottom: 14px;
}

.ingredient-list-filter > span:first-child {
    position: absolute;
    top: 50%;
    left: 14px;
    display: grid;
    place-items: center;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.ingredient-list-filter svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.ingredient-list-filter input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: 0;
    color: var(--text);
    background: var(--surface);
    font-size: 1rem;
}

.ingredient-list-filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgb(47 108 80 / 12%);
}

.ingredient-list-filter-empty {
    margin: 0;
    padding: 28px 18px;
    border: 1px dashed #cbd2ca;
    border-radius: 16px;
    color: var(--muted);
    background: rgb(255 253 248 / 62%);
    text-align: center;
}

.ingredient-list-filter-empty[hidden],
.ingredient-card[hidden] {
    display: none !important;
}

.ingredient-card {
    position: relative;
    min-width: 0;
    display: flex;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgb(47 108 80 / 11%);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 8px 25px rgb(55 67 57 / 5%);
}

.ingredient-card__photo {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    border-radius: 13px;
    object-fit: cover;
    background: #edf1e9;
}

.ingredient-card__photo--placeholder {
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.ingredient-card__body {
    min-width: 0;
    align-self: center;
    padding-right: 42px;
}

.ingredient-card__actions {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: grid;
    gap: 6px;
}

.ingredient-card__actions .edit-button {
    position: static;
}

.ingredient-card__shopping-form {
    margin: 0;
}

.ingredient-card__shopping-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(232 118 76 / 25%);
    border-radius: 12px;
    color: var(--accent);
    background: rgb(255 244 238 / 96%);
    box-shadow: 0 5px 16px rgb(55 67 57 / 10%);
    cursor: pointer;
}

.ingredient-card__shopping-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ingredient-card__shopping-button:hover {
    color: #fff;
    background: var(--accent);
}

.ingredient-card__shopping-button:focus-visible {
    outline: 3px solid rgb(232 118 76 / 35%);
    outline-offset: 2px;
}

.ingredient-card h3 {
    overflow: hidden;
    margin: 7px 0 8px;
    font-size: 1rem;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.type-badge {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: var(--accent);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ingredient-facts,
.ingredient-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ingredient-facts span {
    color: var(--muted);
    font-size: .78rem;
}

.ingredient-facts span:not(:last-child)::after {
    margin-left: 6px;
    content: "·";
}

.ingredient-tags {
    margin-top: 9px;
}

.soft-tag {
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--success-background);
    font-size: .67rem;
    font-weight: 750;
}

.soft-tag--accent {
    color: #9a4b2f;
    background: #fff0e8;
}

.mobile-nav {
    position: fixed;
    z-index: 9;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    min-height: 61px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 5px;
    border: 1px solid rgb(47 108 80 / 13%);
    border-radius: 18px;
    background: rgb(255 253 248 / 94%);
    box-shadow: 0 15px 40px rgb(55 67 57 / 18%);
    backdrop-filter: blur(14px);
}

.mobile-nav--three {
    grid-template-columns: repeat(3, 1fr);
}

.mobile-nav--four {
    grid-template-columns: repeat(4, 1fr);
}

.mobile-nav--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ingredient-prerequisite {
    padding: 22px 16px;
    border-top: 1px solid var(--border);
}

.ingredient-prerequisite p {
    margin: 0 0 14px;
    color: var(--muted);
}

.inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 46px;
    margin: 0;
    padding: 0 16px;
    text-decoration: none;
}

.ingredient-picker {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ingredient-picker legend {
    margin-bottom: 8px;
    font-size: .9rem;
    font-weight: 700;
}

.ingredient-search {
    display: block;
    margin-bottom: 9px;
}

.ingredient-search input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: 0;
    color: var(--text);
    background: #fff;
}

.ingredient-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgb(47 108 80 / 12%);
}

.ingredient-options {
    max-height: 300px;
    display: grid;
    gap: 7px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    overscroll-behavior: contain;
}

.ingredient-options [hidden] {
    display: none !important;
}

.ingredient-option {
    position: relative;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}

.ingredient-option:hover {
    background: var(--background);
}

.ingredient-option:has(input:checked) {
    border-color: rgb(47 108 80 / 23%);
    background: var(--success-background);
}

.ingredient-option input {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 10px;
    width: 25px;
    height: 25px;
    margin: 0;
    opacity: 0;
    transform: translateY(-50%);
    cursor: pointer;
}

.ingredient-option__check {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 2px solid #bdc7bf;
    border-radius: 8px;
    color: transparent;
    background: #fff;
    font-size: .75rem;
    font-weight: 900;
}

.ingredient-option input:focus-visible + .ingredient-option__check {
    outline: 3px solid rgb(232 118 76 / 42%);
    outline-offset: 2px;
}

.ingredient-option input:checked + .ingredient-option__check {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

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

.ingredient-option strong {
    font-size: .86rem;
}

.ingredient-option small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .7rem;
}

.ingredient-search-empty {
    margin: 0;
    padding: 20px;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

.picker-empty {
    padding: 18px;
    border: 1px dashed #cbd2ca;
    border-radius: 12px;
    color: var(--muted);
    background: rgb(255 255 255 / 55%);
    font-size: .82rem;
    text-align: center;
}

.ingredient-option--dish:has(input:checked) {
    border-color: rgb(232 118 76 / 25%);
    background: #fff4ee;
}

.ingredient-option--dish input:checked + .ingredient-option__check {
    border-color: var(--accent);
    background: var(--accent);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.dish-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
}

.inactive-dishes {
    overflow: hidden;
    margin-top: 28px;
    border: 1px solid rgb(47 108 80 / 13%);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgb(55 67 57 / 5%);
}

.inactive-dishes > summary {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    list-style: none;
    cursor: pointer;
}

.inactive-dishes > summary::-webkit-details-marker {
    display: none;
}

.inactive-dishes > summary > strong {
    min-width: 0;
    font-size: .95rem;
}

.inactive-dishes__icon {
    color: var(--muted);
    background: #e6ebe5;
    font-size: 1rem;
    font-weight: 850;
}

.inactive-dishes__count {
    flex: 0 0 auto;
    min-width: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--background);
    font-size: .74rem;
    font-weight: 800;
    text-align: center;
}

.inactive-dishes[open] .summary-chevron {
    transform: rotate(225deg);
}

.inactive-dishes__grid {
    padding: 14px;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.dish-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgb(47 108 80 / 11%);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgb(55 67 57 / 6%);
}

.dish-card__photo {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
    background: #edf1e9;
}

.dish-card__photo--placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 25% 25%, rgb(232 118 76 / 15%), transparent 45%),
        #edf1e9;
    font-size: 3.1rem;
}

.dish-card__body {
    padding: 16px;
}

.dish-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.card-title-row {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.card-title-row h3 {
    min-width: 0;
    overflow-wrap: anywhere;
}

.edit-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(47 108 80 / 16%);
    border-radius: 12px;
    color: var(--primary);
    background: rgb(255 253 248 / 94%);
    box-shadow: 0 5px 16px rgb(55 67 57 / 10%);
    cursor: pointer;
}

.edit-button--inline {
    position: static;
    flex: 0 0 42px;
    margin-top: -5px;
    box-shadow: none;
}

.edit-button svg {
    fill: currentColor;
}

.edit-button:hover {
    color: #fff;
    background: var(--primary);
}

.edit-button:focus-visible,
.dialog-close:focus-visible {
    outline: 3px solid rgb(232 118 76 / 42%);
    outline-offset: 2px;
}

.edit-dialog {
    width: min(680px, calc(100% - 20px));
    max-width: none;
    max-height: calc(100dvh - 20px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgb(47 108 80 / 16%);
    border-radius: 20px;
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 24px 80px rgb(35 45 38 / 28%);
}

.edit-dialog--wide {
    width: min(820px, calc(100% - 20px));
}

.edit-dialog::backdrop {
    background: rgb(24 33 28 / 55%);
    backdrop-filter: blur(3px);
}

.changelog-dialog {
    width: min(680px, calc(100% - 20px));
    max-width: none;
    max-height: calc(100dvh - 20px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgb(47 108 80 / 16%);
    border-radius: 20px;
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 24px 80px rgb(35 45 38 / 28%);
}

.changelog-dialog::backdrop {
    background: rgb(24 33 28 / 55%);
    backdrop-filter: blur(3px);
}

.changelog-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.changelog-dialog__header .eyebrow {
    margin-bottom: 3px;
}

.changelog-dialog__header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.changelog-dialog__content {
    max-height: min(62dvh, 560px);
    overflow-y: auto;
    padding: 18px;
}

.changelog-dialog__content pre {
    margin: 0;
    color: var(--text);
    font: inherit;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.edit-dialog__form {
    max-height: calc(100dvh - 20px);
    display: flex;
    flex-direction: column;
}

.edit-dialog__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border);
}

.edit-dialog__header .eyebrow {
    margin-bottom: 3px;
}

.edit-dialog__header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.dialog-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    background: var(--background);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.edit-dialog__content {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    overflow-y: auto;
    padding: 18px;
    overscroll-behavior: contain;
}

.edit-dialog__actions {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 18px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.edit-dialog__actions .primary-button,
.edit-dialog__actions .secondary-button {
    min-height: 48px;
    margin: 0;
}

.edit-dialog [hidden] {
    display: none !important;
}

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

.danger-link-button,
.danger-button {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 13px;
    font-weight: 750;
    cursor: pointer;
}

.danger-link-button {
    grid-column: 1 / -1;
    border: 1px solid rgb(155 53 46 / 20%);
    color: var(--danger);
    background: var(--danger-background);
}

.danger-link-button:hover {
    border-color: var(--danger);
}

.danger-button {
    border: 1px solid var(--danger);
    color: #fff;
    background: var(--danger);
}

.danger-button:hover {
    background: #7f2c27;
}

.danger-link-button:focus-visible,
.danger-button:focus-visible {
    outline: 3px solid rgb(155 53 46 / 28%);
    outline-offset: 2px;
}

.delete-confirmation {
    flex: 0 0 auto;
    display: grid;
    gap: 12px;
    padding: 14px 18px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid rgb(155 53 46 / 18%);
    color: var(--danger);
    background: var(--danger-background);
}

.delete-confirmation strong,
.delete-confirmation p {
    display: block;
}

.delete-confirmation p {
    margin: 4px 0 0;
    color: #714641;
    font-size: .78rem;
    line-height: 1.4;
}

.delete-confirmation__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.delete-confirmation__actions .secondary-button {
    min-height: 48px;
    background: var(--surface);
}

.ingredient-option:has(input:disabled) {
    display: none;
}

.edit-dialog__actions--three:has(.danger-link-button[hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
}

.menu-heading .primary-button {
    width: 100%;
    white-space: nowrap;
}

.week-list {
    display: grid;
    gap: 13px;
}

.week-list .section-heading {
    margin-bottom: 2px;
}

.week-card {
    overflow: hidden;
    border: 1px solid rgb(47 108 80 / 13%);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgb(55 67 57 / 5%);
}

.week-card > summary {
    min-height: 82px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    list-style: none;
    cursor: pointer;
}

.week-card > summary::-webkit-details-marker {
    display: none;
}

.week-card > summary .summary-chevron {
    margin-left: 0;
}

.week-card[open] > summary .summary-chevron {
    transform: rotate(225deg);
}

.week-card__calendar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.week-card__title {
    min-width: 0;
}

.week-card__title strong,
.week-card__title small {
    display: block;
}

.week-card__title strong {
    font-size: .92rem;
    line-height: 1.35;
}

.week-card__title small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
}

.week-status {
    grid-column: 2;
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
}

.week-status--empty {
    color: var(--muted);
    background: #eff0ec;
}

.week-status--incomplete {
    color: #925124;
    background: #fff1df;
}

.week-status--complete {
    color: var(--primary-dark);
    background: var(--success-background);
}

.week-card__details {
    padding: 15px;
    border-top: 1px solid var(--border);
    background: rgb(248 245 236 / 42%);
}

.week-empty {
    padding: 18px 4px;
    text-align: center;
}

.week-empty p {
    margin: 0 0 13px;
    color: var(--muted);
}

.menu-week-actions {
    display: grid;
    gap: 9px;
    margin: 0 0 14px;
}

.menu-week-actions form {
    margin: 0;
}

.menu-regeneration-action,
.menu-reset-action {
    min-width: 0;
}

.menu-week-actions .secondary-button,
.menu-week-actions .danger-link-button {
    width: 100%;
}

.menu-regeneration-confirmation,
.menu-reset-confirmation {
    margin-bottom: 14px;
}

.week-days {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
}

.menu-day {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgb(47 108 80 / 11%);
    border-radius: 15px;
    background: var(--surface);
}

.menu-day h3 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.03rem;
}

.meal-row {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 10px 0;
    border-top: 1px solid rgb(220 222 213 / 72%);
}

.meal-row > div {
    min-width: 0;
}

.meal-row__type,
.meal-row strong,
.meal-row small {
    display: block;
}

.meal-row__type {
    margin-bottom: 3px;
    color: var(--accent);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.meal-row strong {
    overflow: hidden;
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meal-row small,
.meal-row__missing {
    margin-top: 2px;
    color: var(--muted);
    font-size: .7rem;
}

.meal-row--empty {
    opacity: .82;
}

.meal-action {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 11px;
    border: 1px solid rgb(47 108 80 / 16%);
    border-radius: 10px;
    color: var(--primary);
    background: var(--success-background);
    font-size: .72rem;
    font-weight: 750;
    cursor: pointer;
}

.shopping-list-callout {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 15px;
    border: 1px dashed rgb(47 108 80 / 23%);
    border-radius: 15px;
    background: var(--surface);
}

.shopping-list-callout strong,
.shopping-list-callout p {
    display: block;
}

.shopping-list-callout p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.shopping-list-callout button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.shopping-list-callout button span {
    margin-left: 5px;
    font-size: .65rem;
    text-transform: uppercase;
}

.shopping-list-callout form,
.shopping-list-actions form,
.regeneration-confirmation form {
    margin: 0;
}

.shopping-list-callout form .secondary-button,
.shopping-list-actions form .secondary-button,
.regeneration-confirmation form .primary-button {
    width: 100%;
}

.regeneration-confirmation form .danger-button {
    width: 100%;
}

.shopping-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
}

.shopping-heading .primary-button {
    width: 100%;
}

.shopping-heading__actions {
    display: grid;
    gap: 9px;
}

.shopping-heading__actions .primary-button,
.shopping-heading__actions .secondary-button {
    width: 100%;
    margin: 0;
}

.shopping-list-switcher {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.shopping-list-switcher a {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface);
    font-size: .75rem;
    font-weight: 750;
    text-decoration: none;
}

.shopping-list-switcher a[aria-current="page"] {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.shopping-list,
.shopping-items {
    display: grid;
}

.shopping-list {
    gap: 18px;
}

.shopping-group {
    overflow: hidden;
    border: 1px solid rgb(47 108 80 / 13%);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgb(55 67 57 / 5%);
}

.shopping-group > h2 {
    margin: 0;
    padding: 12px 15px;
    color: var(--primary-dark);
    background: var(--success-background);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.shopping-item {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 46px 44px;
    align-items: center;
    gap: 8px;
    padding: 9px 11px 9px 15px;
    border-top: 1px solid var(--border);
}

.shopping-item:first-child {
    border-top: 0;
}

.shopping-item strong {
    min-width: 0;
    overflow: hidden;
    font-size: .92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopping-item > span {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 850;
}

.shopping-item .edit-button {
    position: static;
}

.shopping-item__increment {
    margin: 0;
}

.shopping-item__increment button {
    width: 46px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgb(47 108 80 / 18%);
    border-radius: 12px;
    color: var(--primary);
    background: var(--success-background);
    font-size: .78rem;
    font-weight: 850;
    cursor: pointer;
}

.shopping-item__increment button:hover {
    border-color: var(--primary);
    background: #fff;
}

.shopping-empty {
    display: grid;
    justify-items: center;
    padding: 38px 20px;
    border: 1px dashed rgb(47 108 80 / 23%);
    border-radius: 20px;
    background: rgb(255 253 248 / 72%);
    text-align: center;
}

.shopping-empty > span {
    margin-bottom: 10px;
    font-size: 2rem;
}

.shopping-empty h2,
.regeneration-confirmation h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.shopping-empty p,
.regeneration-confirmation p {
    max-width: 580px;
    margin: 8px 0 18px;
    color: var(--muted);
    line-height: 1.5;
}

.shopping-empty--compact {
    padding: 28px 18px;
}

.shopping-list-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.shopping-list-actions--single {
    grid-template-columns: minmax(0, 1fr);
}

.shopping-list-actions .secondary-button,
.regeneration-confirmation__actions .secondary-button {
    text-decoration: none;
}

.shopping-list-actions > a,
.regeneration-confirmation__actions > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    text-align: center;
}

.shopping-run-body {
    min-height: 100vh;
    background: #f4f7f1;
}

.shopping-run-header {
    position: sticky;
    z-index: 8;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgb(47 108 80 / 13%);
    background: rgb(248 245 236 / 96%);
    backdrop-filter: blur(14px);
}

.shopping-run-header .eyebrow {
    margin-bottom: 2px;
}

.shopping-run-header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 7vw, 2rem);
}

.shopping-run-close {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
}

.shopping-run-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.shopping-barcode-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid rgb(47 108 80 / 24%);
    border-radius: 12px;
    color: var(--primary);
    background: var(--surface);
    cursor: pointer;
}

.shopping-barcode-button:hover {
    border-color: var(--primary);
    background: var(--success-background);
}

.shopping-barcode-button:focus-visible {
    outline: 3px solid rgb(232 118 76 / 42%);
    outline-offset: 2px;
}

.shopping-barcode-button svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-width: 2.5;
}

.shopping-barcode-dialog {
    width: calc(100vw - 24px);
    max-width: 1100px;
    height: calc(100dvh - 24px);
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 18px;
    background: transparent;
}

.shopping-barcode-dialog::backdrop {
    background: rgb(24 33 28 / 72%);
    backdrop-filter: blur(3px);
}

.shopping-barcode-dialog__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.shopping-barcode-dialog__close-form {
    position: absolute;
    z-index: 1;
    top: 8px;
    right: 8px;
    margin: 0;
}

.shopping-barcode-dialog .dialog-close {
    border-color: rgb(255 255 255 / 65%);
    color: var(--text);
    background: rgb(255 255 255 / 90%);
    box-shadow: 0 2px 10px rgb(24 33 28 / 22%);
}

.shopping-barcode-dialog img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 16px 50px rgb(24 33 28 / 30%);
}

.shopping-barcode-fallback-open::before {
    position: fixed;
    z-index: 90;
    inset: 0;
    content: "";
    background: rgb(24 33 28 / 72%);
    backdrop-filter: blur(3px);
}

.shopping-barcode-dialog--fallback-open {
    position: fixed;
    z-index: 91;
    inset: 12px;
    display: block;
    width: calc(100vw - 24px);
    max-width: 1100px;
    height: calc(100dvh - 24px);
    margin: auto;
}

.shopping-run-main {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 18px 14px 42px;
}

.shopping-run-help {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

.shopping-save-status {
    min-height: 20px;
    margin: 7px 0 10px;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
}

.shopping-save-status--error {
    color: var(--danger);
}

.shopping-run-list {
    display: grid;
    gap: 18px;
}

.shopping-run-group {
    display: grid;
    gap: 8px;
}

.shopping-run-group > h2 {
    margin: 0;
    padding: 0 2px 6px;
    border-bottom: 1px solid rgb(47 108 80 / 14%);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shopping-run-group__items {
    display: grid;
    gap: 10px;
}

.shopping-run-item {
    margin: 0;
    transition: opacity 160ms ease, transform 160ms ease;
}

.shopping-run-item button {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgb(47 108 80 / 15%);
    border-radius: 17px;
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 8px 22px rgb(55 67 57 / 6%);
    text-align: left;
    cursor: pointer;
}

.shopping-run-item button:active {
    border-color: var(--primary);
    background: var(--success-background);
    transform: scale(.985);
}

.shopping-run-item button:focus-visible {
    outline: 3px solid rgb(232 118 76 / 42%);
    outline-offset: 2px;
}

.shopping-run-item__photo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: #edf1e9;
}

.shopping-run-item__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shopping-run-item__photo-placeholder {
    font-size: 1.3rem;
    line-height: 1;
}

.shopping-run-item__name {
    min-width: 0;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopping-run-item__quantity {
    min-width: 48px;
    color: var(--primary);
    font-size: 1.08rem;
    font-weight: 850;
    text-align: right;
}

.shopping-run-item--saving {
    opacity: .58;
}

.shopping-run-item--removed {
    opacity: 0;
    transform: translateX(16px);
}

.shopping-run-empty {
    display: grid;
    justify-items: center;
    padding: 44px 20px;
    text-align: center;
}

.shopping-run-empty > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-size: 1.55rem;
    font-weight: 850;
}

.shopping-run-empty h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.shopping-run-empty p {
    margin: 8px 0 20px;
    color: var(--muted);
}

.shopping-run-empty[hidden],
.shopping-run-list[hidden] {
    display: none;
}

.account-main {
    max-width: 820px;
}

.account-card {
    display: grid;
    gap: 22px;
    padding: 18px;
    border: 1px solid rgb(47 108 80 / 13%);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgb(55 67 57 / 6%);
}

.account-photo {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
}

.account-photo > img,
.account-photo > span {
    width: 78px;
    height: 78px;
    border-radius: 50%;
}

.account-photo > img {
    object-fit: cover;
}

.account-photo > span,
.user-card__avatar {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    font-weight: 850;
}

.account-photo input[type="file"] {
    padding: 9px;
}

.account-photo small:not(.field-error) {
    color: var(--muted);
    font-size: .74rem;
}

.check-row {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 5px;
    font-size: .82rem;
    cursor: pointer;
}

.check-row input {
    width: 20px;
    height: 20px;
}

.account-fields {
    display: grid;
    gap: 14px;
}

.account-password {
    margin: 0;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.account-password legend {
    margin-bottom: 14px;
    padding: 0;
    font-weight: 800;
}

.account-password legend span {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
}

.admin-invite {
    margin-bottom: 26px;
}

.admin-invite h2,
.user-list h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.admin-invite > div > p:last-child {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.user-list {
    display: grid;
    gap: 10px;
}

.user-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgb(47 108 80 / 13%);
    border-radius: 16px;
    background: var(--surface);
}

.user-card__identity {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.user-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: .8rem;
}

.user-card__identity div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.user-card__identity strong,
.user-card__identity span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card__identity span,
.user-card > small {
    color: var(--muted);
    font-size: .75rem;
}

.user-card form {
    grid-column: 1 / -1;
    margin: 0;
}

.user-card .danger-link-button {
    width: 100%;
    min-height: 42px;
}

.user-status {
    padding: 5px 8px;
    border-radius: 999px;
    color: #946329;
    background: #fff4df;
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}

.user-status--active {
    color: var(--primary-dark);
    background: var(--success-background);
}

.auth-panel--wide {
    width: min(520px, 100%);
}

.reset-request-form {
    margin-bottom: 0;
}

.reset-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 750;
}

.reset-separator::before,
.reset-separator::after {
    height: 1px;
    flex: 1;
    background: var(--border);
    content: "";
}

.reset-code-input {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .32em;
    text-align: center;
}

.regeneration-confirmation {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgb(232 118 76 / 32%);
    border-radius: 18px;
    background: #fff8f2;
}

.regeneration-confirmation p {
    margin-bottom: 0;
}

.regeneration-confirmation__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.menu-program-content {
    gap: 20px;
}

.day-picker,
.meal-people-details {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.day-picker legend,
.meal-people-details legend {
    width: 100%;
    margin-bottom: 9px;
    font-size: .9rem;
    font-weight: 750;
}

.day-picker legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.day-picker legend small {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 600;
}

.day-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.day-option {
    cursor: pointer;
}

.day-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.day-option span {
    min-height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--muted);
    background: #fff;
    font-size: .75rem;
    font-weight: 750;
}

.day-option input:checked + span {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.day-option input:focus-visible + span {
    outline: 3px solid rgb(232 118 76 / 42%);
    outline-offset: 2px;
}

.people-default-row {
    display: grid;
    gap: 9px;
}

.people-default-row .inline-button {
    width: 100%;
}

.meal-people-details {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgb(255 255 255 / 58%);
}

.meal-people-grid {
    display: grid;
    gap: 8px;
}

.meal-people-grid label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    align-items: center;
    gap: 10px;
}

.meal-people-grid label > span {
    font-size: .78rem;
}

.meal-people-grid select {
    min-height: 42px;
    padding: 7px 28px 7px 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.dish-meta,
.dish-composition {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dish-meta {
    margin-bottom: 13px;
    color: var(--muted);
    font-size: .73rem;
}

.dish-meta span:not(:last-child)::after {
    margin-left: 6px;
    content: "·";
}

.dish-composition span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--success-background);
    font-size: .7rem;
    font-weight: 650;
}

.dish-composition .dish-component-tag {
    color: #8c462f;
    background: #fff0e8;
}

.mobile-nav a {
    min-width: 0;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 13px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
}

.mobile-nav--five a {
    font-size: clamp(.58rem, 2.7vw, .7rem);
}

.mobile-nav a > span {
    font-size: 1.15rem;
    line-height: 1;
}

.mobile-nav a[aria-current="page"] {
    color: var(--primary);
    background: var(--success-background);
}

.page-footer {
    margin: 22px auto 0;
    color: var(--muted);
    font-size: .78rem;
    text-align: center;
}

@media (min-width: 600px) {
    .auth-panel {
        padding: 42px 42px 36px;
    }

    .ingredient-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 24px;
    }

    .form-wide {
        grid-column: 1 / -1;
    }

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

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

    .edit-dialog__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 22px;
    }

    .edit-dialog__actions--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .edit-dialog__actions--three .danger-link-button {
        grid-column: auto;
    }

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

    .week-card > summary {
        grid-template-columns: 52px minmax(0, 1fr) auto 12px;
        gap: 14px;
        padding: 14px 18px;
    }

    .menu-heading {
        align-items: flex-end;
        flex-direction: row;
        gap: 20px;
    }

    .menu-heading .primary-button {
        width: auto;
    }

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

    .week-status {
        grid-column: auto;
    }

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

    .shopping-list-callout {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .shopping-heading {
        align-items: flex-end;
        flex-direction: row;
        gap: 20px;
    }

    .shopping-heading .primary-button {
        width: auto;
    }

    .shopping-heading__actions {
        grid-template-columns: repeat(2, auto);
    }

    .shopping-heading__actions .primary-button,
    .shopping-heading__actions .secondary-button {
        width: auto;
    }

    .account-card {
        padding: 24px;
    }

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

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

    .user-card form {
        grid-column: auto;
    }

    .user-card .danger-link-button {
        width: auto;
    }

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

    .day-options {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

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

    .people-default-row .inline-button {
        width: auto;
    }
}

@media (min-width: 900px) {
    .app-body {
        padding-bottom: 0;
    }

    .app-main {
        padding-top: 32px;
    }

    .creation-card > summary {
        padding-right: 22px;
        padding-left: 22px;
    }

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

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

    .mobile-nav {
        position: static;
        width: min(330px, calc(100% - 36px));
        margin: 0 auto 24px;
        box-shadow: none;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
