:root {
    --bg: #f6f6f4;
    --card: #fff;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --line: #e2e2e0;
    --accent: #2d6a4f;
    --danger: #b00020;
    --nav-h: 64px;
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    padding-bottom: calc(var(--nav-h) + 16px);
}
/* главная без нижнего меню — отступ не нужен */
body.p-home {
    padding-bottom: 0;
    overflow-x: hidden;
}
body.p-home .page {
    padding: 0;
    max-width: none;
}

.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 14px 24px;
}

.title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    padding: 18px 0 12px;
    letter-spacing: 0.02em;
}

.center { text-align: center; }

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    margin: 18px 0 8px;
}

/* home */
.home {
    /* svh — без «лишней» высоты мобильного браузера */
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    box-sizing: border-box;
}
.home-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}
.home-sub {
    color: var(--muted);
    margin-bottom: 28px;
}
.home-grid {
    width: 100%;
    max-width: 360px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.home-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.home-btn:active { transform: scale(0.98); }
.home-ico { font-size: 1.8rem; }

/* nav */
.nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--nav-h);
    background: var(--card);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--muted);
    font-size: 1.1rem;
    padding: 6px 0;
}
.nav-item small {
    font-size: 0.65rem;
    font-weight: 600;
}
.nav-item.active { color: var(--accent); }

/* lists & cards */
.list { display: flex; flex-direction: column; gap: 8px; }
.card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.card-link {
    text-decoration: none;
    color: inherit;
    gap: 10px;
}
.card-link:active { opacity: 0.9; }
.card-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
}
.section-sub {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin: 8px 0 4px 4px;
    text-transform: capitalize;
}
.card-main { min-width: 0; flex: 1; }
.card-name {
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: capitalize;
}
.card-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 2px;
}
.card-note {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 4px;
}
.card-actions {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}
.icon-btn {
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    padding: 8px;
    cursor: pointer;
    color: var(--muted);
}
.empty {
    text-align: center;
    color: var(--muted);
    padding: 24px;
}

/* recipe grid */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.recipe-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.recipe-photo {
    height: 90px;
    border-radius: 10px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
}
.recipe-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recipe-name {
    font-weight: 700;
    text-transform: capitalize;
}

/* forms */
.form-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 12px;
}
.form-block .btn-add { margin: 4px 0 0; }
.form-block label input,
.form-block label select,
.form-block .cat-q,
.modal .cat-q {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    background: var(--bg);
}

.cat-pick { position: relative; width: 100%; }
.cat-pick-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cat-pick-row .cat-q { flex: 1; min-width: 0; }
.cat-clear {
    flex-shrink: 0;
    padding: 10px 12px;
    min-width: 44px;
}
.cat-q-btn {
    cursor: pointer;
    text-transform: capitalize;
}
.cat-q-btn::placeholder {
    text-transform: none;
}

/* unified center modal */
.ui-modal,
.cat-modal,
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ui-modal[hidden],
.cat-modal[hidden],
.modal[hidden] { display: none; }
.ui-modal-box,
.cat-modal-box,
.modal-box {
    width: 100%;
    max-width: 380px;
    max-height: min(85vh, 560px);
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    overflow-y: auto;
}
.ui-modal-title,
.cat-modal-title,
.modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}
.cat-modal-q {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem;
    background: var(--bg);
}
.cat-modal-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 120px;
    max-height: 40vh;
}
.cat-modal-opt {
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    text-transform: capitalize;
    cursor: pointer;
    color: var(--text);
}
.cat-modal-opt:active { background: #e8f5ee; border-color: var(--accent); }
.cat-modal-new {
    border-color: var(--accent);
    color: var(--accent);
}
.cat-modal-empty {
    text-align: center;
    color: var(--muted);
    padding: 24px 8px;
    font-size: 0.9rem;
}
.ui-modal-actions,
.cat-modal-actions,
.modal-actions {
    display: flex;
    gap: 8px;
}
.ui-modal-actions .btn,
.cat-modal-actions .btn,
.modal-actions .btn { flex: 1; }

/* nutrition badges */
.nutr-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 8px 0 4px;
}
.nutr-chip {
    background: #eef6f1;
    color: var(--accent);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}
.nutr-chip strong { font-weight: 900; }
.section-kcal {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
    margin-left: 6px;
}
.section-title-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
.section-row { width: 100%; }
.meal-edit-btn {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 1rem;
}

.warn-box {
    background: #fff8e8;
    border: 1px solid #f0d78c;
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 10px 0 14px;
    font-size: 0.88rem;
    line-height: 1.4;
}
.warn-title {
    font-weight: 800;
    color: #8a6d00;
    margin-bottom: 4px;
}
.warn-text { color: #6b5a20; margin-bottom: 8px; }
.warn-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
}
.warn-list li { margin-bottom: 6px; }
.warn-name { font-weight: 700; text-transform: capitalize; }
.warn-reason { color: var(--muted); font-size: 0.85em; }
.warn-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}
.card-warn { border-color: #f0d78c; background: #fffdf6; }
.warn-note { color: #8a6d00; }
.warn-note a { color: var(--accent); font-weight: 700; }

.photo-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.photo-preview {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #eee;
}
.photo-preview[hidden] { display: none; }
.photo-box input[type=file] {
    font-size: 0.9rem;
    width: 100%;
}

.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.search-bar input,
.search-bar .cat-q,
.inline-form input,
.inline-form select,
.modal label input,
.modal label select,
.ui-modal-box label input,
.ui-modal-box label select,
.cat-modal-box label input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    background: var(--card);
}
.search-bar input,
.search-bar .cat-pick { flex: 1; min-width: 100px; }

.inline-form {
    display: flex;
    gap: 6px;
    margin: 8px 0 16px;
}
.inline-form select,
.inline-form input { flex: 1; }

label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
}

.btn, .btn-add {
    border: 1px solid var(--text);
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 800;
    background: var(--card);
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-add {
    width: 100%;
    margin: 8px 0 14px;
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-sm { padding: 10px 12px; font-size: 0.85rem; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}
.row-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.row-actions > * { flex: 1; }

/* tabs */
.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 0.9rem;
}
.tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}



.steps {
    margin: 0;
    padding-left: 22px;
}
.steps li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* recipe view */
.view-hero {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    background: #eee;
    max-height: 240px;
}
.view-hero img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.view-title {
    text-transform: capitalize;
    padding-top: 12px;
}
.view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 8px;
}
.tag {
    background: #e8f5ee;
    color: var(--accent);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
}
.view-comment {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 8px 12px;
    line-height: 1.4;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 4px;
}
.step-list::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), #c8e6d5);
    border-radius: 2px;
}
.step-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(45, 106, 79, 0.35);
}
.step-body { min-width: 0; flex: 1; padding-top: 2px; }
.step-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 4px;
}
.step-text {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--text);
}

/* edit steps */
.step-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}
.step-num-sm {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 1rem;
    background: var(--bg);
}
.step-del { color: var(--danger); }

.item-edit {
    display: flex;
    align-items: center;
    gap: 8px;
}
.item-edit-main { flex: 1; min-width: 0; }
.item-amount-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.item-amount {
    width: 110px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 1rem;
    background: var(--bg);
}
.item-del { color: var(--danger); flex-shrink: 0; }

.cat-nav { margin: 0 0 12px; }
.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: capitalize;
}
.cat-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.cat-chip-new {
    border-style: dashed;
}
.cat-cnt {
    font-size: 0.75rem;
    opacity: 0.75;
    font-weight: 600;
}
.cat-all-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    padding: 4px 2px;
}
.card-link-plain {
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
a.btn-add {
    display: flex;
    text-decoration: none;
    box-sizing: border-box;
}

.shop-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.menu-btn:active {
    transform: scale(0.98);
}
.menu-btn-accent {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    border-color: #2d6a4f;
    color: #fff;
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.28);
}
.menu-btn-accent .menu-text small {
    color: rgba(255,255,255,0.85);
}
.menu-btn-accent .menu-arrow {
    color: rgba(255,255,255,0.8);
}
.menu-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0f5f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.menu-btn-accent .menu-ico {
    background: rgba(255,255,255,0.18);
}
.menu-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.menu-text strong {
    font-size: 1.02rem;
    font-weight: 800;
}
.menu-text small {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}
.menu-arrow {
    font-size: 1.4rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1;
}
.btn-icon {
    min-width: 44px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 1rem;
}

/* чек — отдельная карточка */
.receipt-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin: 16px 0;
    overflow: hidden;
}
.receipt-block + .receipt-block {
    margin-top: 14px;
}
.receipt-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: linear-gradient(180deg, #eef5f1 0%, #e8f0eb 100%);
    border-bottom: 1px solid var(--line);
    margin: 0;
}
.receipt-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.receipt-title {
    text-transform: none;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.01em;
}
.receipt-total {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}
.receipt-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}
.title-edit-btn {
    font-size: 0.95rem;
    color: var(--muted);
}
.receipt-add {
    margin: 0 !important;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: #fafafa;
}
.receipt-empty {
    padding: 16px 14px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* строка: [✓] название … вес */
.receipt-list {
    gap: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
}
.receipt-line {
    border-bottom: 1px solid var(--line);
}
.receipt-line:last-child {
    border-bottom: none;
}
.receipt-row {
    display: flex;
    flex-direction: row; /* перебить глобальный label { column } */
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    min-height: 44px;
    cursor: pointer;
    margin: 0;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
.receipt-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin: 0;
}
.receipt-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.receipt-amt {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.receipt-line.done .receipt-name,
.receipt-line.done .receipt-amt {
    color: #999;
    text-decoration: line-through;
}
.receipt-line.done {
    opacity: 0.7;
    background: #f5f5f3;
}
.receipt-block.receipt-closing {
    opacity: 0.65;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.receipt-list.receipt-closing {
    opacity: 0.55;
}
.receipt-close-hint {
    margin: 0;
    padding: 10px 14px 12px;
    color: var(--accent) !important;
    font-weight: 600;
    background: #eef5f1;
    border-top: 1px solid var(--line);
}

/* рацион: неделя / месяц — таблицы */
.ration-table-wrap {
    margin: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.ration-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 100%;
}
.ration-table th,
.ration-table td {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 8px 6px;
    vertical-align: top;
    text-align: left;
}
.ration-table th:last-child,
.ration-table td:last-child {
    border-right: none;
}
.ration-table tr:last-child td {
    border-bottom: none;
}
.ration-table thead th {
    background: #eef5f1;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: lowercase;
    color: var(--muted);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
.ration-th-date,
.ration-th-wd,
.ration-th-day,
.ration-date,
.ration-wd,
.ration-day {
    white-space: nowrap;
    font-weight: 800;
    color: var(--text);
    background: #f7f7f5;
    width: 1%;
}
.ration-wd {
    text-align: center;
    letter-spacing: 0.02em;
}
.ration-date {
    font-variant-numeric: tabular-nums;
}
.ration-day {
    text-align: center;
    vertical-align: middle;
    padding: 8px 10px;
}
.ration-day-wd {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.ration-day-num {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.ration-cell {
    min-width: 72px;
    max-width: 140px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}
.ration-table-week .ration-cell {
    min-width: 88px;
    max-width: 160px;
}
.ration-table-month .ration-cell {
    min-width: 64px;
    max-width: 120px;
    font-size: 0.75rem;
}
.ration-cell-out {
    background: #f0f0ee;
}
.ration-dishes {
    line-height: 1.35;
}
.ration-meal-sep {
    height: 0;
    border: none;
    border-top: 1px solid var(--line);
    margin: 6px 0;
}
.ration-cell-link {
    display: block;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
    margin: -8px -6px;
    padding: 8px 6px;
}
.ration-day .ration-cell-link {
    margin: -8px -10px;
    padding: 8px 10px;
}
.ration-cell-link:active {
    background: #eef5f1;
}
td.ration-cell:has(.ration-cell-link),
td.ration-day {
    cursor: pointer;
}
td.ration-cell:has(.ration-cell-link):hover,
td.ration-day:hover {
    background: #f3faf6;
}

/* checklist web component host */
checklist-item {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 0;
}
