:root {
    --pantry-ink: #27211f;
    --pantry-muted: #74665d;
    --pantry-line: rgba(77, 55, 39, 0.16);
    --pantry-cream: #fff8ea;
    --pantry-card: rgba(255, 252, 244, 0.92);
    --pantry-green: #4f8f5d;
    --pantry-green-dark: #2f6b43;
    --pantry-orange: #d75a3d;
    --pantry-gold: #f1bc42;
    --bs-primary: #d75a3d;
    --bs-primary-rgb: 215, 90, 61;
    --bs-success: #4f8f5d;
    --bs-success-rgb: 79, 143, 93;
    --bs-body-font-family: "Inter", sans-serif;
}

/* Item text acts as the edit trigger; keep it looking like row content. */
.item-editor-row {
    min-width: 0;
}

.item-editor-row > summary.compact-main {
    width: 100%;
    cursor: pointer;
    list-style: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.item-editor-row > summary.compact-main::-webkit-details-marker {
    display: none;
}

.compact-item > .item-editor-row {
    margin-top: 0;
}

@media (max-width: 768px) {
    .purchase-count {
        display: none;
    }
}

/* Compact Pantry Petition list */
.list-section {
    border: 1px solid var(--pantry-line);
    border-radius: 1.1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
}

.list-section + .list-section {
    margin-top: 1rem;
}

.active-list-section {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.active-add-form + .list-section {
    margin-top: 1rem;
}

.list-section > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.95rem;
    background: rgba(255, 246, 218, 0.9);
}

.section-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.list-section h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
}

.section-sort-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 2.35rem;
    height: 1.7rem;
    border: 1px solid rgba(77, 55, 39, 0.14);
    border-radius: 999px;
    padding: 0 0.55rem;
    background: rgba(255, 255, 255, 0.65);
    color: var(--pantry-muted);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.section-sort-toggle:hover,
.section-sort-toggle.active {
    border-color: rgba(215, 90, 61, 0.34);
    background: rgba(215, 90, 61, 0.12);
    color: var(--pantry-orange);
}

.list-section > header span,
.compact-main small,
.compact-main em {
    color: var(--pantry-muted);
}

.compact-list {
    display: grid;
}

.active-add-form {
    border: 1px solid var(--pantry-line);
    border-top: 1px solid rgba(77, 55, 39, 0.09);
    margin-top: -1px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-right-radius: 1.1rem;
    border-bottom-left-radius: 1.1rem;
    padding: 0;
    overflow: visible;
    background: rgba(255, 252, 244, 0.88);
}

.compact-item,
.obtained-item.compact-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    min-height: 3.05rem;
    border-radius: 0;
    padding: 0.48rem 0.7rem;
    background: rgba(255, 255, 255, 0.78);
}

.compact-item > *,
.obtained-item.compact-item > * {
    align-self: center;
}

.compact-item + .compact-item {
    border-top: 1px solid rgba(77, 55, 39, 0.09);
}

.inactive-item {
    opacity: 0.78;
}

.compact-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.55rem;
    align-items: center;
    min-width: 0;
    line-height: 1.15;
}

.item-edit-trigger {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.item-edit-trigger:hover strong {
    color: var(--pantry-orange);
}

.compact-main strong {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
}

.compact-main > span {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    min-width: 0;
    line-height: 1.15;
}

.compact-main small,
.compact-main b,
.compact-main em {
    display: inline-flex;
    align-items: center;
    line-height: 1.15;
}

.compact-main b {
    color: var(--pantry-green-dark);
}

.compact-main em {
    font-style: normal;
}

.check-form {
    line-height: 0;
    display: flex;
    align-items: center;
}

.dismiss-form,
.quantity-form {
    display: flex;
    align-items: center;
}

.active-quantity-controls,
.obtained-quantity-controls {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.required-quantity-count {
    display: inline-grid;
    min-width: 1.8rem;
    height: 1.85rem;
    border: 0;
    border-radius: 999px;
    padding: 0 0.2rem;
    background: transparent;
    place-items: center;
    color: var(--pantry-muted);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
}

.required-quantity-count:hover {
    background: rgba(215, 90, 61, 0.1);
    color: var(--pantry-orange);
}

.obtained-quantity-count {
    pointer-events: none;
}

.dismiss-button,
.add-again-button {
    display: inline-grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(39, 33, 31, 0.48);
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1;
}

.add-again-form {
    display: flex;
    align-items: center;
}

.add-again-button {
    border: 0;
    color: rgba(39, 33, 31, 0.48);
    font-size: 1.3rem;
}

.dismiss-button:hover,
.add-again-button:hover {
    background: rgba(215, 90, 61, 0.1);
    color: var(--pantry-orange);
}

.pantry-edit-modal .modal-content {
    border: 1px solid var(--pantry-line);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top left, rgba(241, 188, 66, 0.16), transparent 18rem),
        var(--pantry-card);
    box-shadow: 0 1.4rem 3rem rgba(39, 33, 31, 0.18);
}

.pantry-edit-modal .modal-header,
.pantry-edit-modal .modal-footer {
    border-color: var(--pantry-line);
}

.pantry-edit-modal .modal-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.pantry-edit-form .modal-body {
    display: grid;
    gap: 0.55rem;
}

.trash-button {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(215, 90, 61, 0.28);
    border-radius: 999px;
    background: rgba(215, 90, 61, 0.08);
    color: var(--pantry-orange);
    line-height: 1;
}

.trash-button:hover {
    border-color: rgba(215, 90, 61, 0.5);
    background: rgba(215, 90, 61, 0.14);
    color: #bd482f;
}

.trash-button svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
    fill: currentColor;
}

.shopping-check {
    position: relative;
    display: inline-block;
    width: 1.45rem;
    height: 1.45rem;
    border: 2px solid rgba(47, 107, 67, 0.45);
    border-radius: 0.45rem;
    background: #fff;
}

.shopping-check:hover {
    border-color: var(--pantry-green);
    background: rgba(79, 143, 93, 0.1);
}

.shopping-check.checked {
    border-color: var(--pantry-green);
    background: var(--pantry-green);
}

.shopping-check.checked::after {
    content: "";
    position: absolute;
    left: 0.42rem;
    top: 0.18rem;
    width: 0.45rem;
    height: 0.78rem;
    border: solid #fff;
    border-width: 0 0.18rem 0.18rem 0;
    transform: rotate(45deg);
}

.plus-check::before,
.plus-check::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.72rem;
    height: 0.15rem;
    border-radius: 999px;
    background: var(--pantry-orange);
    transform: translate(-50%, -50%);
}

.plus-check::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.empty-row {
    padding: 0.9rem;
    color: var(--pantry-muted);
}

@media (max-width: 768px) {
    .compact-item,
    .obtained-item.compact-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.45rem;
    }

    .compact-item > form:not(.check-form):not(.dismiss-form):not(.add-again-form),
    .compact-item > details {
        grid-column: 2;
    }

    .compact-item > .dismiss-form,
    .compact-item > .add-again-form,
    .compact-item > .active-quantity-controls,
    .compact-item > .obtained-quantity-controls {
        grid-column: 3;
    }

    .compact-main {
        flex-wrap: nowrap;
    }

    .active-item .compact-main,
    .obtained-item .compact-main {
        flex-wrap: wrap;
    }

    .compact-main > span {
        flex-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .active-item .compact-main > span,
    .obtained-item .compact-main > span {
        flex-wrap: wrap;
        overflow: visible;
        white-space: normal;
    }

    .compact-item .btn {
        width: 100%;
    }
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--pantry-ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(241, 188, 66, 0.38), transparent 30rem),
        radial-gradient(circle at 90% 18%, rgba(79, 143, 93, 0.16), transparent 28rem),
        linear-gradient(135deg, #fff7df 0%, #fffaf0 48%, #fdf2e9 100%);
}

a {
    color: var(--pantry-orange);
}

.btn {
    border-radius: 999px;
    font-weight: 850;
}

.btn-primary {
    --bs-btn-bg: var(--pantry-orange);
    --bs-btn-border-color: var(--pantry-orange);
    --bs-btn-hover-bg: #bd482f;
    --bs-btn-hover-border-color: #bd482f;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--pantry-line);
    background: rgba(255, 248, 234, 0.72);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    margin-right: 1.2rem;
    padding-block: .2rem;
}

.app-family-link {
    color: var(--pantry-orange) !important;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.app-family-link:hover {
    color: var(--pantry-orange) !important;
}

.app-icon-link {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .58rem;
    border: 1px solid transparent;
    text-decoration: none;
    opacity: .5;
}

.app-icon-link:hover,
.app-icon-link-active {
    opacity: 1;
    border-color: rgba(215, 90, 61, .24);
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 .35rem .9rem rgba(39, 33, 31, .08);
}

.app-brand img {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav-link {
    color: var(--pantry-ink);
    font-weight: 650;
}

.app-header .navbar {
    --bs-navbar-padding-y: .5rem;
}

.app-header .btn-sm {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: .875rem;
    --bs-btn-border-radius: .25rem;
    font-weight: 400;
    line-height: 1.5;
}

.app-header form {
    display: flex;
    margin: 0;
}

.account-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(215, 90, 61, 0.28);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    color: var(--pantry-ink);
    font-weight: 850;
}

.account-button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border-radius: 999px;
    border: 1px solid rgba(215, 90, 61, .25);
    padding: .28rem .8rem .28rem .32rem;
    color: var(--pantry-ink);
    background:
        linear-gradient(135deg, rgba(215, 90, 61, .1), rgba(241, 188, 66, .16)),
        #ffffff;
    text-decoration: none;
    box-shadow: 0 .45rem 1rem rgba(39, 33, 31, .08);
}

.account-button:hover {
    color: var(--pantry-ink);
    border-color: rgba(215, 90, 61, .45);
    transform: translateY(-1px);
}

.account-button-avatar {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pantry-orange), var(--pantry-gold));
}

.account-button strong,
.account-button small {
    display: block;
    line-height: 1.05;
}

.account-button strong {
    font-size: .9rem;
    font-weight: 850;
}

.account-button small {
    color: var(--pantry-muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.app-main {
    padding-top: 1.4rem;
    padding-bottom: 4rem;
}

.app-footer {
    padding: 2rem 0;
    color: var(--pantry-muted);
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0;
    border: 1px solid var(--pantry-line);
    border-radius: 999px;
    padding: .3rem .7rem;
    background: #ffffff;
    color: #6d5b53;
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pantry-hero,
.admin-hero {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.2rem;
    border-radius: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(105deg, #d75a3d 0%, #df7b3d 58%, #f1bc42 100%);
    color: #fff;
    box-shadow: 0 1.25rem 2.5rem rgba(99, 61, 38, 0.18);
}

.pantry-hero .eyebrow,
.admin-hero .eyebrow {
    color: #8a4e35;
}

.pantry-hero h1,
.admin-hero h1 {
    margin: 1.0rem 0 .67rem;
    font-weight: 850;
    letter-spacing: normal;
}

.hero-copy,
.admin-hero p:last-child {
    max-width: 42rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: revert;
    line-height: normal;
}

.hero-stats {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 1.25rem;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.16);
}

.hero-stats strong {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}

.hero-stats span {
    font-size: 1.1rem;
    font-weight: 900;
}

.hero-stats small {
    margin-top: 0.4rem;
    opacity: 0.88;
}

.petition-shell,
.admin-card,
.login-card,
.pantry-board {
    border: 1px solid var(--pantry-line);
    border-radius: 1.45rem;
    background: var(--pantry-card);
    box-shadow: 0 1rem 2.5rem rgba(77, 55, 39, 0.08);
}

.petition-shell {
    position: sticky;
    top: 5rem;
    z-index: 10;
    margin-bottom: 1.2rem;
    padding: 1rem;
}

.petition-form {
    display: grid;
    grid-template-columns: minmax(15rem, 1.5fr) minmax(10rem, 0.8fr) minmax(9rem, 0.7fr) minmax(12rem, 1fr) auto;
    gap: 0.8rem;
    align-items: end;
}

.form-label {
    color: var(--pantry-muted);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.form-hint {
    margin-top: 0.35rem;
    color: var(--pantry-muted);
    font-size: 0.82rem;
}

.form-control,
.form-select {
    border-radius: 1rem;
    border-color: var(--pantry-line);
    font-weight: 750;
}

.petition-button {
    min-height: 3.55rem;
    padding-inline: 1.4rem;
}

.simple-petition-form {
    display: block;
}

.simple-petition-form .petition-button {
    grid-column: auto !important;
}

.pantry-add-control {
    position: relative;
}

.pantry-add-control .form-control {
    border: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 1rem;
    box-shadow: none;
}

.pantry-add-control .plus-button {
    border: 0;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 1rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    box-shadow: none;
}

.plus-button {
    width: 3.75rem;
    padding: 0;
    font-size: 2rem;
    line-height: 1;
}

.simple-petition-form > div,
.pantry-input-group {
    position: relative;
}

.pantry-autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 30;
    overflow: hidden;
    border: 1px solid var(--pantry-line);
    border-radius: 1rem;
    background: rgba(255, 252, 244, 0.98);
    box-shadow: 0 1rem 2rem rgba(77, 55, 39, 0.16);
}

.pantry-autocomplete[hidden] {
    display: none;
}

.pantry-autocomplete button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0.72rem 0.95rem;
    background: transparent;
    color: var(--pantry-ink);
    font-weight: 850;
    text-align: left;
}

.pantry-autocomplete button:hover,
.pantry-autocomplete button.active {
    background: rgba(215, 90, 61, 0.12);
    color: var(--pantry-orange);
}

.suggestion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.85rem;
}

.suggestion-row span {
    color: var(--pantry-muted);
    font-size: 0.85rem;
}

.suggestion-chip {
    border: 1px solid rgba(215, 90, 61, 0.22);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.78);
    color: var(--pantry-orange);
    font-weight: 850;
}

.pantry-board {
    padding: clamp(1rem, 3vw, 1.4rem);
}

.board-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.board-heading .eyebrow {
    margin-bottom: 0.75rem;
}

.board-heading h2,
.obtained-panel h2 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: rgba(79, 143, 93, 0.12);
    color: var(--pantry-green-dark);
    font-weight: 900;
    text-transform: uppercase;
}

.live-badge span {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: var(--pantry-green);
    box-shadow: 0 0 0 0.35rem rgba(79, 143, 93, 0.15);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.area-card {
    overflow: hidden;
    border: 1px solid var(--pantry-line);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.72);
}

.area-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 246, 218, 0.9);
}

.area-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
}

.area-card header span {
    color: var(--pantry-muted);
    font-size: 0.85rem;
}

.item-stack {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
}

.pantry-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    border-radius: 1rem;
    padding: 0.85rem;
    background: #fff;
}

.pantry-item h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
}

.pantry-item p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.25rem 0;
    color: var(--pantry-muted);
}

.pantry-item small,
.obtained-item small {
    color: var(--pantry-muted);
}

.item-editor {
    margin-top: 0.65rem;
}

.compact-item > .item-editor {
    margin-top: 0;
    display: flex;
    align-items: center;
}

.item-editor summary {
    width: fit-content;
    cursor: pointer;
    color: var(--pantry-orange);
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1;
}

.item-editor form {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(9rem, 0.7fr);
    gap: 0.55rem;
    margin-top: 0.6rem;
}

.empty-pantry {
    border: 2px dashed rgba(215, 90, 61, 0.25);
    border-radius: 1.2rem;
    padding: 2rem;
    text-align: center;
}

.empty-pantry h3 {
    font-weight: 900;
}

.obtained-panel {
    margin-top: 1.2rem;
    border-radius: 1.2rem;
    padding: 1rem;
    background: rgba(79, 143, 93, 0.08);
}

.obtained-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.obtained-item {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
    gap: 0.75rem;
    align-items: center;
    border-radius: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.72);
}

.obtained-item span {
    font-weight: 900;
}

.purchase-history {
    display: grid;
    gap: 0.15rem;
}

.login-shell {
    display: grid;
    min-height: calc(100vh - 8rem);
    place-items: center;
    margin: -1.25rem calc(50% - 50vw) -3rem;
    padding: 2.5rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(255, 250, 243, .52), rgba(255, 244, 223, .68)),
        url("../img/table-bg.jpg") repeat;
}

.login-card {
    width: min(100%, 32rem);
    margin: 0;
    padding: clamp(1.25rem, 5vw, 2rem);
    text-align: center;
}

.login-avatar {
    width: 10.5rem;
    height: 10.5rem;
    object-fit: contain;
    object-position: center;
    border-radius: 2rem;
    display: block;
    margin: 0 auto 1rem;
    border: .45rem solid #ffffff;
    background: #ffffff;
    box-shadow: 0 .9rem 2rem rgba(39, 33, 31, .18);
}

.login-card h1 {
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.2;
}

.login-card p {
    color: var(--pantry-muted);
}

.silly-line {
    min-height: 3rem;
}

.selected-user-card {
    border-radius: 1rem;
    padding: .85rem;
    background: var(--pantry-cream);
    border: 1px solid var(--pantry-line);
    margin-bottom: 1rem;
}

.selected-user-card span,
.selected-user-card strong {
    display: block;
}

.selected-user-card span {
    color: var(--pantry-muted);
    font-size: .85rem;
}

.selected-user-card strong {
    font-size: 1.2rem;
}

.password-manager-username {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-card {
    padding: 1rem;
}

.area-add-form,
.area-admin-list article,
.area-admin-list article form {
    display: flex;
    gap: 0.7rem;
}

.area-add-form {
    margin-bottom: 1rem;
}

.area-admin-list {
    display: grid;
    gap: 0.75rem;
}

.area-admin-list article {
    justify-content: space-between;
    border-radius: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.75);
}

.area-admin-list article form:first-child {
    flex: 1;
}

@media (max-width: 1100px) {
    .petition-form {
        grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.7fr);
    }

    .petition-button {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    html {
        font-size: 16px;
    }

    .pantry-hero {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .app-navbar .container,
    .navbar-actions {
        align-items: flex-start;
    }

    .navbar-actions {
        margin-top: 0.75rem;
    }

    .pantry-hero {
        grid-template-columns: 1fr;
    }

    .hero-stats strong {
        font-size: 3rem;
    }

    .petition-shell {
        position: static;
    }

    .petition-form,
    .area-grid {
        grid-template-columns: 1fr;
    }

    .pantry-item,
    .obtained-item {
        grid-template-columns: 1fr;
        border-radius: 1rem;
    }

    .item-editor form {
        grid-template-columns: 1fr;
    }

    .pantry-item .btn {
        width: 100%;
    }

    .area-add-form,
    .area-admin-list article,
    .area-admin-list article form {
        flex-direction: column;
    }
}
