:root {
  --bg: #eef3f1;
  --panel: #ffffff;
  --ink: #17211d;
  --muted: #65736b;
  --line: #dbe4df;
  --green: #207653;
  --green-dark: #0f4d38;
  --red: #ca4f3d;
  --gold: #d49a22;
  --blue: #3a789d;
  --soft: #f7faf8;
  --soft-green: #eef7f2;
  --shadow: 0 16px 36px rgba(23, 33, 29, 0.08);
  --shadow-soft: 0 8px 18px rgba(23, 33, 29, 0.06);
  --phone-safe-bottom: max(28px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--phone-safe-bottom);
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(310px, 372px) minmax(0, 1fr);
  gap: 18px;
  width: min(1540px, calc(100vw - 28px));
  margin: 14px auto;
  min-height: calc(100vh - 28px);
}

.side-panel,
.main-panel,
.editor-panel,
.day-card,
.meal-card,
.food-row,
.calc-card {
  border: 1px solid rgba(32, 35, 31, 0.09);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.side-panel {
  align-self: start;
  position: sticky;
  top: 14px;
  padding: 22px;
  border-color: rgba(32, 118, 83, 0.1);
}

.main-panel {
  min-width: 0;
  padding: 22px;
  border-color: rgba(32, 118, 83, 0.1);
}

.brand-row,
.topbar,
.top-actions,
.tabs,
.section-head,
.button-row,
.target-box,
.macro-row,
.day-head,
.ingredient-row {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 12px;
  margin-bottom: 20px;
}

.mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(32, 118, 83, 0.28);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.26rem;
  line-height: 1.15;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 2.05rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  gap: 10px;
}

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

.field-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
  color: #384139;
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfdfc;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 111, 78, 0.14);
}

.target-box {
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft-green);
  border: 1px solid var(--line);
}

.target-box small,
.summary-card small,
.day-card small,
.calc-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.target-box strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.primary-action,
.danger-action,
.secondary-action,
.top-actions button,
.tab,
.icon-button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-action,
.top-actions button {
  border: 0;
  color: #fff;
  background: var(--green);
  padding: 0 16px;
  box-shadow: 0 8px 16px rgba(32, 118, 83, 0.18);
}

.primary-action:hover,
.top-actions button:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 18px rgba(15, 77, 56, 0.22);
}

.primary-action:active,
.secondary-action:active,
.danger-action:active,
.top-actions button:active,
.tab:active {
  transform: translateY(1px);
}

.secondary-action,
.danger-action,
.icon-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fbfdfc;
  padding: 0 12px;
}

.secondary-action:hover,
.icon-button:hover {
  border-color: #b9cec4;
  background: #f4faf7;
}

.danger-action {
  border-color: #efc8bf;
  color: #8c3c2e;
  background: #fff7f4;
}

.danger-action:hover:not(:disabled) {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.icon-button {
  width: 42px;
  flex: 0 0 auto;
}

.remove-ingredient {
  border-color: #efc8bf;
  color: #fff;
  background: var(--red);
}

.remove-ingredient:hover {
  background: #a83f2f;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.top-actions {
  gap: 1px;
}

.top-actions button:first-child {
  border-radius: 8px 0 0 8px;
}

.top-actions button:last-child {
  border-radius: 0 8px 8px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  min-height: 86px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}

.tabs {
  gap: 4px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
}

.tab {
  border: 0;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
}

.tab.active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 6px 12px rgba(32, 118, 83, 0.18);
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
}

.print-only {
  display: none;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(238px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
}

.day-card {
  min-width: 238px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.day-head {
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: var(--soft-green);
  border-bottom: 1px solid var(--line);
}

.day-status {
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 5px 10px rgba(23, 33, 29, 0.12);
}

.day-status.ok {
  background: var(--green);
}

.day-status.under {
  background: var(--blue);
}

.day-status.over {
  background: var(--red);
}

.day-meal {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2ef;
}

.meal-open {
  cursor: pointer;
}

.meal-open:hover {
  background: #f8fbfa;
}

.day-meal:last-child {
  border-bottom: 0;
}

.day-meal b {
  display: block;
  margin-bottom: 5px;
}

.day-meal.is-skipped,
.extra-item.is-skipped {
  opacity: 0.58;
}

.day-meal.is-skipped b,
.extra-item.is-skipped span {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.strike-action,
.restore-action {
  min-height: 28px;
  margin-top: 8px;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.strike-action {
  border: 1px solid #efc8bf;
  background: #fff7f4;
  color: var(--red);
}

.restore-action {
  border: 1px solid #c6dbd0;
  background: #eef7f2;
  color: var(--green-dark);
}

.day-extra-meals {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2ef;
  background: #f8fbfa;
}

.day-extra-meals .day-meal {
  padding: 10px;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  background: #fff;
}

.day-add-meal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2ef;
  background: #fff;
}

.swap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 8px;
}

.swap-row select,
.swap-row button {
  min-height: 34px;
  font-size: 0.78rem;
}

.day-add-meal select,
.day-add-meal button {
  min-height: 38px;
}

.course-label {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.day-extra {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2ef;
  background: #fbfdfc;
}

.extra-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.extra-item b {
  color: var(--ink);
}

.extra-remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #f9ddd7;
  color: var(--red);
  font-weight: 900;
}

.brain-box {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2ef;
  background: linear-gradient(180deg, #f8fcfa, #eef7f2);
}

.brain-title {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brain-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px;
  border: 1px solid #d7e6dd;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 5px 12px rgba(23, 33, 29, 0.05);
}

.brain-suggestion:hover {
  border-color: rgba(32, 118, 83, 0.35);
  transform: translateY(-1px);
}

.brain-suggestion span {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brain-suggestion b {
  font-size: 0.88rem;
}

.brain-suggestion small {
  color: var(--muted);
  font-weight: 800;
}

.macro-row {
  flex-wrap: wrap;
  gap: 6px;
}

.macro-row span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eaf5ef;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.macro-row .kJ {
  background: #fff4d8;
  color: #7a5200;
}

.macro-row .fat {
  background: #fae9e4;
  color: #9c3a2b;
}

.macro-row .carbs {
  background: #e7f2fa;
  color: #285b7a;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.editor-panel {
  display: grid;
  gap: 14px;
  padding: 17px;
  box-shadow: var(--shadow-soft);
}

.section-head {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-head h3 {
  margin: 0;
}

.search-input {
  max-width: 240px;
  margin: 0;
}

.ingredient-list {
  display: grid;
  gap: 8px;
}

.ingredient-row {
  gap: 8px;
}

.ingredient-food-search {
  flex: 1 1 210px;
  min-width: 0;
}

.ingredient-amount {
  width: 105px;
  flex: 0 0 105px;
}

.ingredient-unit {
  min-width: 28px;
  color: var(--green-dark);
  font-weight: 900;
}

.ingredient-grams-note {
  min-width: 54px;
  color: var(--muted);
  font-weight: 800;
}

.yield-note {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

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

.shopping-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) minmax(110px, 1fr) minmax(90px, 0.8fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.shopping-head {
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shopping-row strong {
  color: var(--red);
}

.shopping-empty {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.modal-lock {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.active {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 25, 21, 0.58);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(640px, calc(100vw - 22px));
  max-height: min(760px, calc(100vh - 22px));
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.modal-head h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.modal-macros {
  margin-bottom: 10px;
}

.modal-print-actions {
  margin-bottom: 10px;
}

.prep-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft-green);
}

.prep-box h4 {
  margin: 0 0 6px;
}

.prep-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.button-row {
  gap: 8px;
  flex-wrap: wrap;
}

.meal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 12px;
}

.meal-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  box-shadow: var(--shadow-soft);
}

.meal-card h3 {
  margin: 0;
}

.meal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cook-list {
  margin: 9px 0 10px;
  padding: 10px;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  background: #f8fbfa;
}

.cook-list-title {
  margin-bottom: 7px;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ingredient-summary {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #3c443d;
  font-size: 0.84rem;
}

.ingredient-summary li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px dotted #d8e2dc;
  padding-bottom: 5px;
}

.ingredient-summary li:last-child {
  border-bottom: 0;
}

.ingredient-summary b {
  margin: 0;
  color: var(--red);
  font-size: 0.9rem;
  white-space: nowrap;
}

.breakdown-card {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  background: #fbfdfc;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(230px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dotted #d8e2dc;
}

.breakdown-row:last-child {
  border-bottom: 0;
}

.breakdown-main {
  display: grid;
  gap: 3px;
}

.breakdown-main b {
  color: var(--ink);
}

.breakdown-main span {
  color: var(--red);
  font-weight: 900;
}

.breakdown-main small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
}

.breakdown-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.breakdown-numbers span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #edf3ee;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.breakdown-numbers .kJ {
  background: #fff3d5;
  color: #76550f;
}

.breakdown-numbers .fat {
  background: #f7e8e2;
  color: #8c3c2e;
}

.breakdown-numbers .carbs {
  background: #e8f0f7;
  color: #2e526d;
}

.breakdown-total {
  margin-top: 2px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--soft-green);
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.food-table {
  display: grid;
  gap: 8px;
}

.food-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.6fr) repeat(5, minmax(72px, 0.7fr)) auto;
  gap: 8px;
  align-items: center;
  padding: 11px;
  box-shadow: var(--shadow-soft);
}

.food-row.header {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.food-row b {
  min-width: 0;
}

.calc-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 10px;
}

.calc-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  box-shadow: none;
}

.brain-day {
  gap: 8px;
}

.brain-intro {
  border-color: rgba(32, 118, 83, 0.22);
  background: var(--soft-green);
}

.calc-card.wide {
  grid-column: 1 / -1;
}

.calc-card code {
  display: block;
  overflow-x: auto;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--green-dark);
  background: #f6f1e6;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
}

.calc-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .app-shell,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .summary-grid,
  .calc-panel {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100vw - 16px, 560px);
    margin: 8px auto calc(var(--phone-safe-bottom) + 28px);
  }

  .side-panel,
  .main-panel {
    padding: 15px;
  }

  .main-panel {
    padding-bottom: calc(15px + var(--phone-safe-bottom) + 24px);
  }

  .meal-list,
  .food-table,
  .week-grid,
  .shopping-list {
    padding-bottom: calc(var(--phone-safe-bottom) + 24px);
  }

  .field-grid.two,
  .field-grid.four,
  .summary-grid,
  .calc-panel {
    grid-template-columns: 1fr;
  }

  .day-add-meal {
    grid-template-columns: 1fr;
  }

  .swap-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .ingredient-row,
  .topbar {
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .top-actions button {
    width: 100%;
    padding: 0 10px;
  }

  .ingredient-food-search,
  .ingredient-amount,
  .search-input {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }

  .ingredient-unit,
  .ingredient-grams-note {
    width: 100%;
  }

  .food-row {
    grid-template-columns: 1fr 1fr;
  }

  .shopping-row {
    grid-template-columns: 1fr;
  }

  .breakdown-row {
    grid-template-columns: 1fr;
  }

  .breakdown-numbers {
    justify-content: flex-start;
  }

  .food-row.header {
    display: none;
  }

  .shopping-head {
    display: none;
  }

  .modal-panel {
    inset: 8px;
    left: 8px;
    top: 8px;
    width: auto;
    max-height: none;
    transform: none;
  }
}

@page {
  size: A4 portrait;
  margin: 10mm;
}

@media print {
  body {
    background: #fff;
    padding-bottom: 0;
    font-size: 9.5pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-only {
    display: block !important;
  }

  .side-panel,
  .summary-grid,
  .top-actions,
  .tabs,
  .editor-panel,
  .card-actions,
  .day-add-meal,
  .swap-row,
  .strike-action,
  .restore-action,
  .extra-remove,
  .brain-box,
  .modal-print-actions,
  .modal {
    display: none !important;
  }

  .app-shell {
    display: block;
    width: 100%;
    margin: 0;
    min-height: auto;
  }

  .main-panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .topbar {
    display: block;
    margin-bottom: 6mm;
  }

  .topbar h2 {
    margin: 0;
    font-size: 18pt;
    line-height: 1.15;
  }

  .topbar .eyebrow {
    margin-bottom: 2mm;
    font-size: 8pt;
  }

  .tab-view {
    display: none !important;
  }

  .tab-view.active {
    display: block !important;
  }

  .week-grid {
    display: block;
    overflow: visible;
    padding: 0;
  }

  .day-card {
    min-width: 0;
    margin: 0 0 7mm;
    break-inside: avoid;
    page-break-inside: avoid;
    border-color: #cfd8d2;
    box-shadow: none;
  }

  .day-head {
    padding: 6px 8px;
    background: #eef7f2;
  }

  .day-status {
    box-shadow: none;
  }

  .day-meal,
  .day-extra,
  .day-extra-meals {
    padding: 6px 8px;
    border-bottom-color: #e3e8e5;
  }

  .day-meal b {
    margin-bottom: 2px;
  }

  .macro-row {
    gap: 4px;
  }

  .macro-row span {
    min-height: 18px;
    padding: 1px 6px;
    font-size: 7.5pt;
  }

  .course-label,
  .cook-list-title,
  .brain-title {
    font-size: 7pt;
  }

  .day-meal .cook-list {
    margin-top: 4px;
    padding: 5px;
    background: #fff;
  }

  .ingredient-summary {
    gap: 2px;
    font-size: 8pt;
  }

  .ingredient-summary li {
    padding-bottom: 2px;
  }

  .day-card,
  .summary-card,
  .shopping-row,
  .cook-list,
  .meal-card,
  .editor-panel,
  .food-row {
    break-inside: avoid;
    box-shadow: none;
  }

  .shopping-row {
    grid-template-columns: 1.4fr 1fr 0.8fr;
  }

  body.print-meal-card .app-shell {
    display: none !important;
  }

  body.print-meal-card .modal {
    position: static;
    display: block !important;
  }

  body.print-meal-card .modal-backdrop,
  body.print-meal-card .modal-close {
    display: none !important;
  }

  body.print-meal-card .modal-panel {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    transform: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.print-meal-card .breakdown-card,
  body.print-meal-card .cook-list,
  body.print-meal-card .prep-box {
    break-inside: avoid;
  }
}
