:root {
    --canvas: #fff1f6;
    --surface: #fffdfd;
    --surface-soft: #f9e3ec;
    --ink: #4d2134;
    --ink-soft: #8b6575;
    --line: rgba(105, 38, 68, 0.11);
    --mint: #f7c8dc;
    --mint-deep: #a92f62;
    --coral: #e94f87;
    --coral-deep: #c52d68;
    --yellow: #eed8f8;
    --danger: #b42352;
    --shadow: 0 18px 50px rgba(128, 45, 80, 0.13);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--canvas);
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(circle at 88% 4%, rgba(229, 137, 184, 0.28), transparent 25rem),
        radial-gradient(circle at 4% 36%, rgba(220, 184, 242, 0.23), transparent 20rem),
        var(--canvas);
    overscroll-behavior-y: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(233, 79, 135, 0.32);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.app-shell {
    position: relative;
    width: min(100%, 480px);
    min-height: 100dvh;
    margin: 0 auto;
    padding-bottom: calc(160px + var(--safe-bottom));
}

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

.offline-banner {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 50%;
    width: min(100%, 480px);
    padding: calc(8px + var(--safe-top)) 18px 9px;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    text-align: center;
}

.app-header {
    padding: calc(18px + var(--safe-top)) max(22px, var(--safe-right))
             22px max(22px, var(--safe-left));
}

.offline-banner:not([hidden]) ~ .app-header {
    padding-top: calc(52px + var(--safe-top));
}

.topline,
.title-row,
.section-heading,
.sheet-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.eyebrow,
.section-kicker {
    margin: 0;
    color: var(--mint-deep);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sync-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 253, 0.72);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 650;
}

.sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 3px rgba(238, 216, 248, 0.45);
}

.sync-status.is-online .sync-dot {
    background: #bd4778;
    box-shadow: 0 0 0 3px rgba(189, 71, 120, 0.16);
}

.sync-status.is-offline .sync-dot {
    background: var(--coral);
    box-shadow: 0 0 0 3px rgba(233, 79, 135, 0.16);
}

.title-row {
    align-items: flex-end;
    margin-top: 24px;
}

h1,
h2,
h3,
p {
    text-wrap: pretty;
}

h1 {
    margin: 0;
    font-size: clamp(42px, 12vw, 58px);
    font-weight: 780;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.date-label {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 520;
}

.avatar-pair {
    display: flex;
    min-width: 48px;
    justify-content: flex-end;
    padding-bottom: 3px;
}

.avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 3px solid var(--canvas);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.avatar + .avatar {
    margin-left: -10px;
}

.avatar-c {
    background: linear-gradient(145deg, #ed73a4, #bd356d);
    box-shadow: 0 10px 24px rgba(189, 53, 109, 0.24);
}

.avatar-f {
    background: var(--yellow);
}

.progress-card {
    margin-top: 25px;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 253, 0.74);
    box-shadow: 0 8px 30px rgba(125, 45, 80, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.progress-copy {
    display: flex;
    justify-content: space-between;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 650;
}

.progress-copy span:first-child {
    color: var(--ink);
}

.progress-track {
    height: 7px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--coral);
    transition: width 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.content {
    padding: 0 max(14px, var(--safe-right)) 24px max(14px, var(--safe-left));
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 13px;
}

.quick-action {
    display: grid;
    min-height: 92px;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border: 1px solid rgba(105, 38, 68, 0.07);
    border-radius: 22px;
    text-align: left;
    cursor: pointer;
}

.quick-action:active {
    transform: scale(0.98);
}

.quick-add {
    background: linear-gradient(145deg, #f8cbdd, #f5b8d2);
}

.quick-scan {
    background: linear-gradient(145deg, #eedafa, #e4c9f2);
}

.quick-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--ink);
    color: #fff;
    font-size: 23px;
}

.quick-action small,
.quick-action strong {
    display: block;
}

.quick-action small {
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.quick-action strong {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.15;
}

.list-card {
    min-height: 300px;
    padding: 25px 8px 10px;
    border: 1px solid rgba(105, 38, 68, 0.06);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.list-instruction {
    margin: -5px 16px 16px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

.section-heading {
    padding: 0 16px 18px;
}

.section-heading h2,
.sheet-heading h2 {
    margin: 5px 0 0;
    font-size: 25px;
    letter-spacing: -0.035em;
}

.count-badge {
    display: grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 13px;
    background: var(--mint);
    color: var(--mint-deep);
    font-size: 14px;
    font-weight: 800;
}

.list-tools {
    display: grid;
    gap: 10px;
    padding: 0 12px 14px;
}

.list-search {
    display: grid;
    min-height: 48px;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff7fa;
    color: var(--mint-deep);
}

.list-search > span {
    font-size: 23px;
    line-height: 1;
    transform: translateY(-1px);
}

.list-search input {
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
}

.list-search input::placeholder {
    color: #aa8292;
}

.filter-chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 1px 0 2px;
    scrollbar-width: none;
}

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

.filter-chip {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.filter-chip.is-active {
    border-color: transparent;
    background: var(--mint);
    color: var(--ink);
}

.shopping-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shopping-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: center;
    border-top: 1px solid var(--line);
    transition: opacity 180ms ease, background 180ms ease;
}

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

.item-label {
    display: grid;
    min-height: 72px;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.item-edit {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-right: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff7fa;
    color: var(--mint-deep);
    font-size: 19px;
    font-weight: 800;
    cursor: pointer;
}

.item-edit:active {
    background: var(--mint);
    transform: scale(0.96);
}

.native-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.check-control {
    position: relative;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 2px solid #bdc4bc;
    border-radius: 10px;
    background: #fff;
    transition: 160ms ease;
}

.check-control::after {
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    content: "";
    opacity: 0;
    transform: translateY(-1px) rotate(45deg) scale(0.6);
    transition: 160ms ease;
}

.native-checkbox:checked + .check-control {
    border-color: var(--mint-deep);
    background: var(--mint-deep);
}

.native-checkbox:checked + .check-control::after {
    opacity: 1;
    transform: translateY(-1px) rotate(45deg) scale(1);
}

.native-checkbox:focus-visible + .check-control {
    outline: 3px solid rgba(233, 79, 135, 0.32);
    outline-offset: 3px;
}

.item-copy {
    min-width: 0;
}

.item-name {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    font-weight: 680;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 180ms ease;
}

.item-meta {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopping-item.is-purchased {
    opacity: 0.58;
}

.shopping-item.is-purchased .item-name {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.shopping-item.is-updating {
    pointer-events: none;
}

.empty-state {
    display: grid;
    min-height: 235px;
    place-items: center;
    align-content: center;
    padding: 24px;
    text-align: center;
}

.no-results-state {
    min-height: 205px;
}

.empty-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 18px;
    background: var(--mint);
    color: var(--mint-deep);
    font-size: 25px;
    font-weight: 800;
    transform: rotate(-4deg);
}

.empty-state h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.025em;
}

.empty-state p {
    max-width: 260px;
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.45;
}

.text-button {
    min-height: 44px;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: var(--coral-deep);
    font-weight: 750;
}

.loading-state {
    display: grid;
    gap: 13px;
    padding: 8px 15px 22px;
}

.loading-state span {
    height: 58px;
    border-radius: 17px;
    background: linear-gradient(100deg, #f0eee7 20%, #faf8f2 42%, #f0eee7 64%);
    background-size: 220% 100%;
    animation: shimmer 1.35s infinite linear;
}

.install-tip {
    max-width: 320px;
    margin: 20px auto 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.floating-button {
    position: fixed;
    z-index: 20;
    right: max(calc((100vw - 480px) / 2 + 18px), calc(18px + var(--safe-right)));
    bottom: calc(92px + var(--safe-bottom));
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 0;
    border-radius: 23px;
    background: var(--coral);
    box-shadow: 0 14px 30px rgba(214, 78, 52, 0.3);
    color: #fff;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}

.floating-button span {
    font-size: 37px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-1px);
}

.floating-button:active {
    background: var(--coral-deep);
    transform: scale(0.94);
}

.bottom-nav {
    position: fixed;
    z-index: 18;
    right: 50%;
    bottom: 0;
    display: grid;
    width: min(100%, 480px);
    height: calc(76px + var(--safe-bottom));
    grid-template-columns: 1fr 1fr;
    padding: 7px max(78px, calc(74px + var(--safe-right)))
             var(--safe-bottom) max(20px, var(--safe-left));
    border-top: 1px solid rgba(105, 38, 68, 0.08);
    background: rgba(255, 253, 253, 0.93);
    box-shadow: 0 -12px 40px rgba(105, 38, 68, 0.09);
    transform: translateX(50%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-button {
    display: grid;
    min-width: 66px;
    min-height: 52px;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
}

.nav-button > span {
    font-size: 22px;
    line-height: 1;
}

.nav-button small {
    font-size: 10px;
    font-weight: 760;
}

.nav-button.is-active {
    background: var(--mint);
    color: var(--ink);
}

.bottom-sheet {
    position: fixed;
    inset: auto 0 0;
    width: min(100%, 480px);
    max-height: calc(100dvh - var(--safe-top) - 14px);
    margin: auto auto 0;
    padding: 10px 22px calc(22px + var(--safe-bottom));
    overflow: auto;
    border: 0;
    border-radius: 30px 30px 0 0;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 -16px 60px rgba(94, 32, 60, 0.2);
}

.bottom-sheet[open] {
    animation: sheet-in 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bottom-sheet::backdrop {
    background: rgba(55, 21, 37, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fade-in 180ms ease-out;
}

.sheet-handle {
    width: 40px;
    height: 5px;
    margin: 0 auto 19px;
    border-radius: 999px;
    background: #d5d3cc;
}

.sheet-heading {
    align-items: flex-start;
}

.icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--ink-soft);
    font-size: 26px;
    cursor: pointer;
}

.scan-button {
    display: grid;
    width: 100%;
    min-height: 76px;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 13px;
    margin-top: 23px;
    padding: 12px 15px;
    border: 1px solid rgba(169, 47, 98, 0.14);
    border-radius: 19px;
    background: var(--mint);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.scan-button:active {
    background: #f0b6d0;
}

.scan-symbol {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    font-size: 25px;
}

.scan-button strong,
.scan-button small {
    display: block;
}

.scan-button strong {
    font-size: 15px;
}

.scan-button small {
    margin-top: 3px;
    color: var(--mint-deep);
    font-size: 12px;
    font-weight: 600;
}

.camera-panel {
    position: relative;
    aspect-ratio: 4 / 3;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 20px;
    background: #10251f;
}

.camera-panel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78%;
    height: 36%;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    box-shadow: 0 0 0 999px rgba(3, 16, 12, 0.32);
    transform: translate(-50%, -50%);
}

.camera-panel p {
    position: absolute;
    right: 18px;
    bottom: 13px;
    left: 18px;
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    text-align: center;
    text-shadow: 0 1px 4px #000;
}

.camera-close {
    position: absolute;
    top: 10px;
    right: 10px;
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 20, 16, 0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 21px 0;
    color: #989d97;
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.field {
    display: block;
    margin-bottom: 16px;
}

.field > span {
    display: block;
    margin: 0 4px 7px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.field small {
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff5f9;
    color: var(--ink);
    font-size: 16px;
    outline: 0;
    transition: border 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(169, 47, 98, 0.55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(233, 79, 135, 0.11);
}

.field input::placeholder {
    color: #a3a6a0;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
        linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
    background-position:
        calc(100% - 19px) 23px,
        calc(100% - 14px) 23px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.field textarea {
    height: 94px;
    padding-top: 14px;
    resize: vertical;
    line-height: 1.4;
}

.primary-button {
    width: 100%;
    min-height: 56px;
    margin-top: 2px;
    border: 0;
    border-radius: 18px;
    background: var(--coral);
    color: #fff;
    font-weight: 780;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(197, 45, 104, 0.24);
}

.primary-button:active {
    background: var(--coral-deep);
    transform: translateY(1px);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.danger-button {
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
    border: 1px solid rgba(180, 35, 82, 0.18);
    border-radius: 17px;
    background: #fff0f4;
    color: var(--danger);
    font-weight: 760;
    cursor: pointer;
}

.danger-button:active {
    background: #fbdce6;
}

.purchase-product {
    display: grid;
    min-height: 78px;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    margin: 23px 0 21px;
    padding: 12px 15px;
    border: 1px solid rgba(169, 47, 98, 0.12);
    border-radius: 19px;
    background: var(--mint);
}

.purchase-check {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    background: var(--mint-deep);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.purchase-product strong,
.purchase-product small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-product strong {
    font-size: 16px;
}

.purchase-product small {
    margin-top: 4px;
    color: var(--mint-deep);
    font-size: 12px;
    font-weight: 620;
}

.price-field {
    margin-bottom: 7px;
}

.price-input-wrap {
    position: relative;
    display: block;
}

.price-input-wrap .currency-symbol {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 17px;
    color: var(--mint-deep);
    font-size: 25px;
    font-weight: 760;
    transform: translateY(-50%);
    pointer-events: none;
}

.price-input-wrap #purchase-price {
    height: 68px;
    padding-left: 43px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.last-price-hint {
    min-height: 35px;
    margin: 0 4px 13px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.45;
}

.meal-form {
    margin-top: 23px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.plan-add-button {
    display: flex;
    width: calc(100% - 24px);
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 12px 13px;
    border: 1px solid rgba(169, 47, 98, 0.16);
    border-radius: 16px;
    background: var(--mint);
    color: var(--mint-deep);
    font-size: 14px;
    font-weight: 760;
    cursor: pointer;
}

.plan-add-button span {
    font-size: 21px;
}

.meal-plan-list {
    padding: 0 8px 8px;
}

.meal-day-group {
    margin-top: 17px;
}

.meal-day-title {
    margin: 0 8px 8px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meal-entry {
    position: relative;
    padding: 15px 14px;
    border-top: 1px solid var(--line);
}

.meal-entry:first-of-type {
    border-top: 0;
}

.meal-entry-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.meal-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.meal-edit,
.meal-delete {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.meal-edit {
    background: #f8e1eb;
    color: var(--mint-deep);
    font-size: 16px;
}

.meal-type {
    display: inline-flex;
    margin-bottom: 5px;
    color: var(--coral-deep);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.meal-name {
    display: block;
    font-size: 16px;
    font-weight: 730;
}

.meal-ingredients {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.45;
}

.meal-delete {
    background: #fde4ec;
    color: var(--danger);
    font-size: 19px;
    cursor: pointer;
}

.ingredients-button {
    min-height: 42px;
    margin-top: 10px;
    padding: 0 13px;
    border: 1px solid rgba(169, 47, 98, 0.16);
    border-radius: 13px;
    background: transparent;
    color: var(--mint-deep);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.meal-mark {
    background: var(--yellow);
    color: var(--ink);
}

.toast {
    position: fixed;
    z-index: 80;
    right: 20px;
    bottom: calc(160px + var(--safe-bottom));
    left: 20px;
    max-width: 430px;
    min-height: 48px;
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 15px;
    background: var(--ink);
    box-shadow: 0 10px 30px rgba(15, 31, 26, 0.28);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    animation: toast-in 180ms ease-out;
}

.toast.is-error {
    background: var(--danger);
}

@keyframes shimmer {
    to {
        background-position-x: -220%;
    }
}

@keyframes sheet-in {
    from {
        opacity: 0.5;
        transform: translateY(30px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (min-width: 600px) {
    body {
        padding: 18px 0;
    }

    .app-shell {
        min-height: calc(100dvh - 36px);
        overflow: hidden;
        border: 1px solid rgba(105, 38, 68, 0.08);
        border-radius: 38px;
        box-shadow: 0 28px 80px rgba(105, 38, 68, 0.14);
    }

    .floating-button {
        right: calc((100vw - 480px) / 2 + 18px);
        bottom: 112px;
    }

    .bottom-nav {
        bottom: 18px;
        overflow: hidden;
        border-radius: 0 0 38px 38px;
    }

    .offline-banner {
        top: 18px;
        overflow: hidden;
        border-radius: 38px 38px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
