* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: #24302f;
  background: #f6f7f3;
  overflow-x: hidden;
}
a { color: #126a5a; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 36px);
  background: #ffffff;
  border-bottom: 1px solid #dde3dc;
}
.brand { font-weight: 800; color: #203a35; font-size: 1.12rem; }
nav { display: flex; gap: 12px; flex-wrap: wrap; font-size: .95rem; }
.menu-toggle { display: none; }
.container { width: min(1220px, 100%); margin: 0 auto; padding: 20px clamp(14px, 4vw, 28px) 48px; }
.hero, .panel {
  background: #ffffff;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  padding: clamp(18px, 4vw, 28px);
  box-shadow: 0 8px 22px rgba(49, 64, 62, .06);
}
.hero { display: grid; gap: 18px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; color: #203a35; letter-spacing: 0; }
p { margin: 0 0 14px; }
.landing-page {
  display: grid;
  gap: clamp(42px, 7vw, 76px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 0 18px;
}
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  min-height: min(690px, calc(100vh - 70px));
  padding: clamp(40px, 8vw, 92px) max(clamp(18px, 5vw, 64px), calc((100vw - 1120px) / 2));
  background:
    linear-gradient(90deg, rgba(17, 38, 32, .92), rgba(17, 38, 32, .68) 48%, rgba(17, 38, 32, .34)),
    var(--lifestyle-image) center / cover no-repeat;
  color: #fff;
}
.landing-intro { max-width: 590px; }
.landing-hero .landing-eyebrow { color: #b9e3d4; }
.landing-hero .landing-intro h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .18); }
.landing-hero .landing-lead,
.landing-hero .landing-note { color: #edf6f2; }
.landing-eyebrow {
  margin-bottom: 12px;
  color: #1f7a66;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.landing-proof {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.4rem;
    margin: 1.5rem 0 0;
    padding: 0;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
    list-style: none;
}
.landing-proof li::before {
    margin-right: .42rem;
    color: var(--success);
    content: "\2713";
}
.landing-intro h1 {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
}
.landing-lead {
  max-width: 540px;
  color: #50625e;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}
.landing-actions { margin: 26px 0 14px; }
.landing-actions .btn { min-width: 132px; }
.landing-note,
.landing-demo-note { color: #6a7773; font-size: .88rem; }
.landing-preview {
  position: relative;
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid #cbded6;
  border-radius: 8px;
  background: #e7f1ec;
  overflow: hidden;
}
.preview-window {
  position: relative;
  border: 1px solid #bdd1c9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(36, 67, 57, .18);
  overflow: hidden;
}
.preview-toolbar,
.preview-heading,
.preview-shopping {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.preview-toolbar {
  padding: 13px 16px;
  border-bottom: 1px solid #e4ebe7;
  background: #fbfcfb;
}
.preview-brand { color: #203a35; font-size: .78rem; font-weight: 800; }
.preview-avatar {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #1f7a66;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
}
.preview-content { display: grid; gap: 18px; padding: clamp(16px, 3vw, 26px); }
.preview-heading strong,
.preview-shopping strong { display: block; color: #203a35; font-size: .95rem; }
.preview-kicker {
  display: block;
  margin-bottom: 3px;
  color: #71807b;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
}
.preview-status {
  padding: 6px 8px;
  border-radius: 4px;
  background: #e4f2eb;
  color: #17634f;
  font-size: .64rem;
  font-weight: 800;
}
.preview-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.preview-day {
  display: grid;
  align-content: start;
  min-height: 130px;
  padding: 12px;
  border: 1px solid #dce6e1;
  border-radius: 6px;
  background: #fbfcfb;
}
.preview-day span { color: #1f7a66; font-size: .62rem; font-weight: 800; }
.preview-day strong { margin: 25px 0 5px; color: #203a35; font-size: .78rem; }
.preview-day small { color: #71807b; font-size: .65rem; }
.preview-shopping {
  padding: 13px;
  border: 1px solid #c9ddd3;
  border-radius: 6px;
  background: #eff7f3;
}
.preview-list-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #1f7a66;
  color: #fff;
  font-weight: 800;
}
.landing-benefits { display: grid; gap: 25px; }
.landing-benefits,
.landing-cta,
.landing-demo-note {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
}
.landing-section-heading { max-width: 680px; }
.landing-section-heading h2,
.landing-cta h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.benefit-item {
  min-height: 210px;
  padding: 22px;
  border: 1px solid #d5dfda;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(49, 64, 62, .055);
}
.benefit-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 8px;
  background: #e7f1ec;
  color: #1f7a66;
  font-size: 1.15rem;
  font-weight: 800;
}
.benefit-item h3 { font-size: 1.08rem; }
.benefit-item p { color: #5e6e69; font-size: .92rem; line-height: 1.6; }
.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid #cbded6;
  border-radius: 8px;
  background: #e7f1ec;
}
.landing-cta h2 { max-width: 700px; margin: 0; }
.landing-cta .landing-actions { flex: 0 0 auto; margin: 0; }
.landing-demo-note { text-align: center; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  min-height: min(690px, calc(100vh - 142px));
  border: 1px solid #d3dfd9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(34, 54, 48, .12);
  overflow: hidden;
}
.auth-story {
  display: grid;
  align-content: end;
  min-height: 520px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(0deg, rgba(13, 34, 28, .9), rgba(13, 34, 28, .22)),
    var(--lifestyle-image) center / cover no-repeat;
  color: #fff;
}
.auth-story .landing-eyebrow { color: #b9e3d4; }
.auth-story h1 {
  max-width: 560px;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}
.auth-story p:last-child {
  max-width: 520px;
  color: #edf6f2;
  font-size: 1.05rem;
  line-height: 1.6;
}
.auth-panel {
  display: grid;
  align-content: center;
  padding: clamp(28px, 6vw, 64px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.auth-panel h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.auth-intro { margin-bottom: 20px; color: #66756f; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.page-heading { margin-bottom: 8px; }
.page-actions { margin-top: 0; flex-wrap: nowrap; overflow-x: auto; }
.page-actions > * { flex: 0 0 auto; }
.page-actions .btn,
.page-actions button,
.page-actions input { padding: 8px 10px; }
.colour-style-swatches { display: flex; gap: 8px; }
.colour-style-swatch { width: 32px; height: 20px; border: 1px solid #9aa7a3; border-radius: 4px; }
.style-garden { background: linear-gradient(90deg, #1f7a66 50%, #f6f7f3 50%); }
.style-ocean { background: linear-gradient(90deg, #176b87 50%, #f2f7f9 50%); }
.style-berry { background: linear-gradient(90deg, #8a4162 50%, #faf5f7 50%); }
.shopping-bottom-save { justify-content: flex-end; margin-top: 24px; }
.shopping-filter { max-width: 320px; min-width: min(320px, 100%); }
.panel-primary-actions { margin-top: 0; }
.item-category-row th {
  background: #f6f8f5;
  color: #203a35;
  font-size: .95rem;
}
.form-submit-action { margin-top: 10px; }
.favourite-toggle {
  align-content: end;
  justify-items: start;
  color: #6a7773;
}
.favourite-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  min-height: 1px;
}
.favourite-toggle span {
  color: #fff;
  -webkit-text-stroke: 1px #8b9692;
  font-size: 1.6rem;
  line-height: 1;
}
.favourite-toggle input:checked + span {
  color: #f3c63f;
  -webkit-text-stroke: 1px #b88900;
}
.essential-toggle-button {
  appearance: none;
  display: inline;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #fff;
  -webkit-text-stroke: 1px #8b9692;
  font-size: 1.6rem;
  font-weight: inherit;
  line-height: 1;
  padding: 0;
  min-height: 0;
  min-width: 0;
  width: auto;
  cursor: pointer;
}
.essential-toggle-button.is-selected {
  color: #f3c63f;
  -webkit-text-stroke: 1px #b88900;
}
.essential-toggle-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.essential-toggle-button:focus-visible {
  outline: 3px solid rgba(47, 111, 90, .25);
  outline-offset: 3px;
}
.item-usage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.short-field { max-width: 280px; }
.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: #1f7a66;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn.secondary, button.secondary { background: #e7ece8; color: #263735; }
.btn.danger, button.danger { background: #a3443b; color: #fff; }
.item-card-actions .essential-toggle-button {
  display: inline;
  align-items: initial;
  justify-content: initial;
  min-height: 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  font-weight: inherit;
  line-height: 1;
  box-shadow: none;
}
.item-card-actions .essential-toggle-button.is-selected {
  color: #f3c63f;
}
.item-card-actions {
  text-align: center;
  vertical-align: middle;
}
.item-card-actions .item-add-check {
  display: inline-block;
  width: 24px;
  min-height: 24px;
  margin: 0 auto;
  vertical-align: middle;
}
.full-width-action { width: 100%; }
.btn:hover { text-decoration: none; filter: brightness(.98); }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #cbd5d1;
  border-radius: 6px;
  background: #fff;
  color: #24302f;
  font: inherit;
}
textarea { min-height: 84px; resize: vertical; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #dde3dc; border-radius: 8px; overflow: hidden; }
th, td { padding: 11px; border-bottom: 1px solid #e6ebe7; text-align: left; vertical-align: top; }
th { background: #edf2ee; color: #263735; font-size: .9rem; }
.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  font-weight: 800;
}
.sort-arrow {
  color: #1f7a66;
  font-size: .68rem;
  line-height: 1;
}
.settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.settings-nav a {
  padding: 8px 12px;
  border: 1px solid #cbd5d1;
  border-radius: 6px;
  background: #fff;
  color: #24302f;
  font-weight: 700;
}
.settings-nav a.active {
  background: #1f7a66;
  border-color: #1f7a66;
  color: #fff;
}
.settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.settings-subnav a {
  padding: 7px 11px;
  border: 1px solid #d5ded9;
  border-radius: 6px;
  background: #f7f9f8;
  color: #30403d;
  font-weight: 700;
}
.settings-subnav a.active {
  background: #e8f3ee;
  border-color: #b8d7c9;
  color: #1f7a66;
}
.compact-form {
  align-items: end;
  margin-bottom: 16px;
}
.form-action {
  align-self: end;
}
.settings-table .inline-form {
  width: 100%;
  flex-wrap: wrap;
}
.settings-table .inline-form input,
.settings-table .inline-form select {
  width: auto;
  min-width: 110px;
}
.settings-edit-card {
  margin-bottom: 16px;
}
.settings-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.settings-profile-layout {
  display: grid;
  gap: 18px;
}
.settings-profile-group {
  display: grid;
  gap: 12px;
}
.settings-group-heading p {
  margin: 0;
}
.settings-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-profile-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.settings-profile-card h3 {
  margin-bottom: 0;
}
.settings-profile-card form {
  margin: 0;
}
.admin-settings-grid {
  margin-top: 16px;
}
.settings-meta-list {
  margin: 0;
  padding-left: 18px;
  color: #42524f;
}
.settings-meta-list li + li {
  margin-top: 6px;
}
button[disabled].icon-link {
  opacity: .45;
  cursor: not-allowed;
}
button[disabled].circle-delete {
  opacity: .38;
  cursor: not-allowed;
}
tr:last-child td { border-bottom: 0; }
.muted { 
  color: #6a7773;
  font-size: 9pt;
  font-style: italic; 
}
.checkbox-line {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  width: auto;
  font-weight: 700;
}
.checkbox-line input {
  width: auto;
  min-height: 0;
}
.subcategory-title {
  margin: 8px 0 6px;
  font-size: 1rem;
  color: #42524f;
}
.notice { padding: 12px 14px; border-radius: 6px; background: #e8f3ee; border: 1px solid #c9e3d6; margin-bottom: 14px; }
.error { background: #f8e7e4; border-color: #efc8c1; }
.card-list { display: grid; gap: 12px; }
.card {
  background: #fff;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  padding: 14px;
}
.planner-day { display: grid; gap: 10px; align-content: start; }
.planner-day-title { align-items: flex-start; margin-top: 0; }
.planned-meal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 210px;
  padding: 12px 12px 42px;
  border: 1px solid #e1e7e3;
  border-radius: 6px;
  background: #f8faf7;
  overflow: auto;
}
.planned-meal p { margin: 0; }
.meal-remove-form {
  position: absolute;
  top: 8px;
  right: 8px;
  display: block;
  margin: 0;
}
.meal-remove,
.icon-small,
.circle-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 50%;
  background: #a3443b;
  color: #fff;
  font-size: .9rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}
.planned-meal > .meal-remove {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
}
.planner-meal-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.planner-meal-actions .meal-remove,
.planner-meal-actions .icon-link {
  position: static;
  min-width: 24px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
}
.ingredient-remove { align-self: center; justify-self: center; }
.add-meal-panel {
  display: grid;
  gap: 12px;
}
.add-meal-panel summary {
  list-style: none;
}
.add-meal-panel summary::-webkit-details-marker { display: none; }
.add-meal-btn {
  width: 100%;
  background: #228761;
}
.single-add { width: auto; }
.compact-add { min-height: 34px; padding: 6px 10px; }
.custom-meal-form {
  border-top: 1px solid #e1e7e3;
  padding-top: 12px;
}
.ingredient-line {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px minmax(140px, 1fr) 30px;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.ingredient-line .item-filter {
  grid-column: 1 / -1;
  min-height: 34px;
}
.ingredient-line select,
.ingredient-line input {
  min-height: 36px;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 5px;
  background: #e7ece8;
  color: #263735;
  font-weight: 700;
}
.icon-only {
  width: 30px;
  padding: 0;
}
.icon-button {
  width: 42px;
  flex: 0 0 42px;
  padding: 0;
}
.input-action {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
}
.input-action input {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.input-action button {
  position: relative;
  z-index: 1;
}
.circle-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.circle-delete:hover { text-decoration: none; }
.confirm-card h2 { margin-bottom: 6px; }
.confirm-card { scroll-margin-top: 86px; }
.catalogue-sortbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #dde3dc;
  border-radius: 6px;
  background: #edf2ee;
  font-size: .92rem;
}
.meal-catalogue-list {
  display: grid;
  gap: 10px;
}
.meal-catalogue-row {
  display: grid;
  grid-template-columns: 72px 1fr 1fr 1fr 88px;
  grid-template-rows: auto auto auto;
  gap: 7px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  background: #fff;
}
.meal-catalogue-photo { grid-row: 1 / 4; }
.meal-catalogue-photo .meal-table-thumb { width: 72px; height: 72px; line-height: 72px; }
.meal-catalogue-name {
  grid-column: 2 / 5;
  font-weight: 800;
  color: #203a35;
}
.meal-catalogue-actions {
  grid-column: 5;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 70px;
}
.meal-catalogue-ingredients {
  grid-column: 2 / 6;
  color: #40504d;
  font-size: .95rem;
}
.meal-catalogue-meta {
  grid-column: 2 / 5;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #6a7773;
  font-size: .86rem;
}
.meal-catalogue-meta span {
  padding-right: 8px;
  border-right: 1px solid #dce5df;
}
.meal-catalogue-meta span:last-child { border-right: 0; }
.meal-table-thumb,
.planner-meal-thumb,
.meal-edit-image,
.meal-select-preview-image,
.print-meal-thumb {
  display: block;
  object-fit: cover;
  background: #edf2ee;
  color: #6a7773;
  border: 1px solid #d5ded9;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
}
.meal-table-thumb { width: 52px; height: 52px; line-height: 52px; font-size: .72rem; }
.planner-meal-thumb { width: 46px; height: 46px; line-height: 46px; flex: 0 0 46px; font-size: .68rem; }
.meal-edit-image { width: 100%; max-width: 180px; aspect-ratio: 4 / 3; line-height: 130px; }
.meal-edit-header { display: grid; gap: 16px; min-width: 0; }
.meal-edit-top-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(120px, 1fr); gap: 16px; }
.meal-edit-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.meal-details-panel,
.meal-photo-panel { align-content: start; min-width: 0; }
.meal-photo-panel { display: grid; gap: 10px; }
.item-edit-layout { display: grid; gap: 16px; min-width: 0; }
.item-edit-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(220px, .8fr);
  gap: 14px;
  align-items: end;
}
.item-edit-top-row label { min-width: 0; }
.item-essential-toggle {
  align-self: end;
  justify-self: center;
  padding-bottom: 9px;
}
.item-edit-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 16px;
  align-items: start;
}
.item-details-panel,
.item-barcode-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.item-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.item-barcode-panel .input-action {
  align-items: stretch;
}
.item-barcode-panel .icon-button {
  flex: 0 0 42px;
}
.item-scanner-panel {
  margin-top: 2px;
}
.item-notes-field textarea {
  min-height: 110px;
}
.meal-photo-picker { display: block; width: fit-content; cursor: pointer; }
.meal-photo-picker input { position: absolute; width: 1px; min-height: 1px; opacity: 0; }
.meal-photo-picker:hover .meal-edit-image,
.meal-photo-picker:focus-within .meal-edit-image { border-color: #1f7a66; box-shadow: 0 0 0 3px rgba(31, 122, 102, .14); }
.print-meal-thumb { width: 38px; height: 30px; line-height: 30px; font-size: 8px; }
.planned-meal-head,
.meal-select-preview {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dashboard-panel .card-list { gap: 16px; }
.dashboard-meal {
  display: grid;
  gap: 8px;
}
.dashboard-slot-meals {
  display: grid;
  gap: 10px;
}
.dashboard-meal-slot {
  color: #6a7773;
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
}
.dashboard-meal-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  background: #f8faf7;
}
.dashboard-meal-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #edf2ee;
  color: #6a7773;
  border: 1px solid #d5ded9;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
  line-height: 134px;
}
.dashboard-meal-body {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}
.dashboard-meal-body h2,
.dashboard-meal-body p { margin: 0; }
.dashboard-ingredients {
  color: #40504d;
  font-weight: 700;
}
.meal-select-preview {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e1e7e3;
  border-radius: 6px;
  background: #f8faf7;
}
.meal-select-preview-image { width: 70px; height: 54px; line-height: 54px; flex: 0 0 70px; font-size: .75rem; }
.scanner-layout {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: 18px;
  align-items: start;
}
.scanner-panel {
  position: relative;
}
.scanner-close {
  display: none;
}
.scanner-overlay {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 30;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 14px;
  transform: translateX(-50%);
  overflow: auto;
  background: #fff;
  border: 1px solid #cbd5d1;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(25, 38, 36, .22);
}
.scanner-overlay .scanner-layout {
  grid-template-columns: 1fr;
}
.scanner-overlay .scanner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 50%;
  background: #a3443b;
  color: #fff;
}
.scanner-overlay #scan-message {
  margin: 0;
}
body.scanner-open {
  overflow: hidden;
}
.barcode-video,
.barcode-reader {
  width: 100%;
  min-height: 260px;
  background: #1d2423;
  border-radius: 8px;
  overflow: hidden;
}
.barcode-reader video { width: 100% !important; border-radius: 8px; }
.scanner-panel[hidden] { display: none; }
.category-title { margin-top: 24px; padding-bottom: 7px; border-bottom: 2px solid #dce5df; text-transform: capitalize; }
.check-row { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check-row input { width: 20px; min-height: 20px; }
.print-only { display: none; }
.shopping-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 150px) minmax(150px, 190px) 52px;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.shopping-head {
  padding: 10px 12px;
  background: #edf2ee;
  border-bottom: 1px solid #dde3dc;
  font-weight: 800;
}
.shopping-cell {
  min-height: 56px;
  padding: 11px 12px;
  border-bottom: 1px solid #e6ebe7;
  display: grid;
  align-content: center;
  gap: 3px;
  overflow: hidden;
}
.shopping-cell input[type="number"] {
  max-width: 100%;
  min-width: 0;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
}
.shopping-cell:nth-last-child(-n+4) { border-bottom: 0; }
.shopping-remove {
  justify-items: center;
  overflow: visible;
}
.shopping-remove form {
  display: flex;
  gap: 0;
  margin: 0;
}
.icon-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  flex: 0 0 34px;
}
.inline-qty {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  min-width: 0;
}
.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.admin-inline-form,
.admin-tier-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-inline-form {
  margin: 0;
}
.admin-tier-form {
  justify-content: flex-start;
}
.admin-tier-form select {
  min-width: 140px;
}
.admin-danger-form button {
  min-height: 34px;
  padding: 7px 10px;
}
.admin-smtp-form {
  margin: 0;
}
.admin-smtp-test-form {
  margin-top: 8px;
}
.admin-test-action {
  align-self: end;
}
.admin-users-table td {
  vertical-align: top;
}
.admin-user-details {
  width: 100%;
}
.admin-user-details summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #cbd5d1;
  border-radius: 6px;
  background: #f7f9f8;
  color: #24302f;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.admin-user-details summary::-webkit-details-marker {
  display: none;
}
.admin-user-details[open] summary {
  margin-bottom: 10px;
}
.admin-user-details-panel {
  display: grid;
  gap: 10px;
  min-width: 240px;
}
.admin-user-meta {
  padding-left: 16px;
}
.admin-user-actions-grid {
  display: grid;
  gap: 8px;
}
.inline-qty input {
  width: 82px;
  min-height: 34px;
}
.inline-qty button {
  min-height: 34px;
  padding: 6px 9px;
}
.print-category { margin: 6pt 0 2pt; font-size: 10pt; text-transform: capitalize; }
.print-shopping-columns { column-count: 2; column-gap: 6mm; }
.print-shopping-section { margin: 0 0 2pt; }
.print-shopping-table th,
.print-shopping-table td {
  padding: 2pt 4pt;
  font-size: 10pt;
  line-height: 1;
}
.print-shopping-table th:nth-child(1),
.print-shopping-table td:nth-child(1) { width: 9%; }
.print-shopping-table th:nth-child(2),
.print-shopping-table td:nth-child(2) { width: 29%; }
.print-shopping-table th:nth-child(3),
.print-shopping-table td:nth-child(3) { width: auto; }
.print-shopping-table th:nth-child(4),
.print-shopping-table td:nth-child(4) { width: 9%; text-align: center; }
.print-checkbox {
  display: inline-block;
  width: 11pt;
  height: 11pt;
  border: 1px solid #111;
  vertical-align: middle;
}
.item-card-mobile-meta { display: none; }

body.theme-ocean { color: #26383f; background: #f2f7f9; }
body.theme-ocean a { color: #176b87; }
body.theme-ocean .topbar,
body.theme-ocean .hero,
body.theme-ocean .panel,
body.theme-ocean .card,
body.theme-ocean table { background: #fff; border-color: #cbdde3; }
body.theme-ocean .brand,
body.theme-ocean h1,
body.theme-ocean h2,
body.theme-ocean h3 { color: #17495b; }
body.theme-ocean button:not(.danger),
body.theme-ocean .btn:not(.danger),
body.theme-ocean .settings-nav a.active { 
  background: #176b87; 
  color: #fff; 
}
body.theme-ocean .settings-subnav a.active {
  background: #e2eef3;
  border-color: #bdd4de;
  color: #176b87;
}

body.theme-ocean .btn.secondary,
body.theme-ocean button.secondary { background: #deeaee; color: #26383f; }
body.theme-ocean th { background: #e3eef2; color: #26383f; }
body.theme-ocean .notice { background: #e1f0f3; border-color: #bfdae2; }

body.theme-berry { color: #3f3037; background: #faf5f7; }
body.theme-berry a { color: #8a4162; }
body.theme-berry .topbar,
body.theme-berry .hero,
body.theme-berry .panel,
body.theme-berry .card,
body.theme-berry table { background: #fff; border-color: #e3d1d9; }
body.theme-berry .brand,
body.theme-berry h1,
body.theme-berry h2,
body.theme-berry h3 { color: #623047; }
body.theme-berry button:not(.danger),
body.theme-berry .btn:not(.danger),
body.theme-berry .settings-nav a.active { background: #8a4162; color: #fff; }
body.theme-berry .settings-subnav a.active {
  background: #f4e7ed;
  border-color: #e3cbd5;
  color: #8a4162;
}
body.theme-berry .btn.secondary,
body.theme-berry button.secondary { background: #f0e2e8; color: #3f3037; }
body.theme-berry th { background: #f3e6eb; color: #3f3037; }
body.theme-berry .notice { background: #f5e7ed; border-color: #e5cbd6; }

button.essential-star,
body.theme-ocean button.essential-star,
body.theme-berry button.essential-star {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
}
button.essential-star.is-selected,
body.theme-ocean button.essential-star.is-selected,
body.theme-berry button.essential-star.is-selected {
  color: #f3c63f !important;
  -webkit-text-stroke: 1px #b88900;
}

body.theme-default,
body.theme-garden {
  --app-accent: #1f7a66;
  --app-accent-dark: #175f50;
  --app-bg: #edf2ef;
  --app-surface: #ffffff;
  --app-surface-soft: #f5f8f6;
  --app-border: #d7e1dc;
  --app-heading: #193c34;
  --app-muted: #64746f;
  --app-ring: rgba(31, 122, 102, .2);
}
body.theme-ocean {
  --app-accent: #176b87;
  --app-accent-dark: #11536a;
  --app-bg: #edf3f5;
  --app-surface: #ffffff;
  --app-surface-soft: #f3f7f8;
  --app-border: #d1dfe4;
  --app-heading: #163f4e;
  --app-muted: #60727a;
  --app-ring: rgba(23, 107, 135, .2);
}
body.theme-berry {
  --app-accent: #8a4162;
  --app-accent-dark: #6c324c;
  --app-bg: #f4eff1;
  --app-surface: #ffffff;
  --app-surface-soft: #faf6f8;
  --app-border: #e5d8de;
  --app-heading: #592b40;
  --app-muted: #77656d;
  --app-ring: rgba(138, 65, 98, .2);
}
body[class*="theme-"] {
  background-color: var(--app-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, .45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .45) 1px, transparent 1px);
  background-size: 32px 32px;
}
body[class*="theme-"] .topbar {
  padding-block: 12px;
  border-color: var(--app-border);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 18px rgba(32, 58, 53, .06);
}
body[class*="theme-"] .brand {
  color: var(--app-heading);
  font-size: 1.18rem;
}
body[class*="theme-"] .topbar nav {
  align-items: center;
  gap: 4px;
}
body[class*="theme-"] .topbar nav a {
  padding: 7px 9px;
  border-radius: 5px;
  color: #40514d;
  font-weight: 700;
}
body[class*="theme-"] .topbar nav a:hover,
body[class*="theme-"] .topbar nav a:focus-visible {
  background: var(--app-surface-soft);
  color: var(--app-accent-dark);
  text-decoration: none;
}
body[class*="theme-"] .container {
  padding-top: clamp(22px, 4vw, 38px);
}
body[class*="theme-"] .page-heading,
body[class*="theme-"] main > h1 {
  color: var(--app-heading);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}
body[class*="theme-"] .hero,
body[class*="theme-"] .panel,
body[class*="theme-"] .card {
  border-color: var(--app-border);
  background: var(--app-surface);
  box-shadow: 0 10px 28px rgba(36, 55, 50, .07);
}
body[class*="theme-"] .panel {
  padding: clamp(18px, 3vw, 26px);
}
body[class*="theme-"] .card,
body[class*="theme-"] .dashboard-meal-card,
body[class*="theme-"] .meal-catalogue-row {
  border-color: var(--app-border);
  box-shadow: 0 3px 12px rgba(36, 55, 50, .045);
}
body[class*="theme-"] .dashboard-meal-card,
body[class*="theme-"] .planned-meal,
body[class*="theme-"] .meal-select-preview {
  border-color: var(--app-border);
  background: var(--app-surface-soft);
}
body[class*="theme-"] .btn,
body[class*="theme-"] button {
  border: 1px solid transparent;
  box-shadow: 0 2px 7px rgba(31, 70, 59, .12);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
body[class*="theme-"] .btn:hover,
body[class*="theme-"] button:hover:not([disabled]) {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(31, 70, 59, .16);
}
body[class*="theme-"] .btn.secondary,
body[class*="theme-"] button.secondary,
body[class*="theme-"] .icon-link {
  border-color: var(--app-border);
  box-shadow: none;
}
body[class*="theme-"] input,
body[class*="theme-"] select,
body[class*="theme-"] textarea {
  border-color: #c6d2cd;
  background: var(--app-surface);
  box-shadow: inset 0 1px 2px rgba(36, 48, 47, .035);
  transition: border-color .16s ease, box-shadow .16s ease;
}
body[class*="theme-"] input:focus,
body[class*="theme-"] select:focus,
body[class*="theme-"] textarea:focus {
  border-color: var(--app-accent);
  outline: 0;
  box-shadow: 0 0 0 3px var(--app-ring);
}
body[class*="theme-"] a:focus-visible,
body[class*="theme-"] button:focus-visible {
  outline: 3px solid var(--app-ring);
  outline-offset: 2px;
}
body[class*="theme-"] table {
  border-color: var(--app-border);
  box-shadow: 0 4px 16px rgba(36, 55, 50, .05);
}
body[class*="theme-"] th {
  padding-block: 12px;
  border-color: var(--app-border);
  color: var(--app-heading);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body[class*="theme-"] td {
  border-color: #e7edea;
}
body[class*="theme-"] tbody tr:nth-child(even) {
  background: var(--app-surface-soft);
}
body[class*="theme-"] tbody tr:hover {
  background: var(--app-bg);
}
body[class*="theme-"] .item-category-row,
body[class*="theme-"] .item-category-row:hover {
  background: transparent;
}
body[class*="theme-"] .notice {
  border-color: var(--app-border);
  box-shadow: 0 3px 10px rgba(36, 55, 50, .04);
}
body[class*="theme-"] .muted {
  color: var(--app-muted);
}
.empty-state {
  margin: 14px 0;
  padding: 20px;
  border: 1px dashed #c9d6d0;
  border-radius: 7px;
  background: #f7f9f8;
  color: #60716c;
  font-size: .92rem;
  font-style: normal;
  text-align: center;
}
body[class*="theme-"] .empty-state {
  border-color: var(--app-border);
  background: var(--app-surface-soft);
  color: var(--app-muted);
}

@media (max-width: 760px) {
  .topbar { align-items: center; }
  .menu-toggle { display: inline-flex; margin-left: auto; width: 42px; min-height: 42px; padding: 0; align-items: center; justify-content: center; font-size: 1.35rem; }
  .topbar nav {
    display: none;
    position: fixed;
    inset: 70px 14px auto;
    z-index: 10;
    padding: 16px;
    background: #fff;
    border: 1px solid #dde3dc;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(36, 48, 47, .18);
  }
  body[class*="theme-"] .topbar nav {
    border-color: var(--app-border);
    background: var(--app-surface);
  }
  body[class*="theme-"] .container { padding-top: 20px; }
  body[class*="theme-"] .panel { padding: 16px; }
  body[class*="theme-"] table { box-shadow: none; }
  body[class*="theme-"] tbody tr,
  body[class*="theme-"] tbody tr:nth-child(even),
  body[class*="theme-"] tbody tr:hover { background: var(--app-surface); }
  body[class*="theme-"] tbody tr {
    margin-bottom: 10px;
    border: 1px solid var(--app-border);
    border-radius: 7px;
    box-shadow: 0 3px 10px rgba(36, 55, 50, .045);
  }
  body.menu-open .topbar nav { display: grid; }
  body.menu-open .topbar nav a { padding: 8px; }
  .page-actions { gap: 6px; }
  .page-actions .btn,
  .page-actions button,
  .page-actions input { padding: 7px 8px; font-size: .82rem; }
  .landing-page { gap: 46px; }
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 42px 14px;
    background:
      linear-gradient(0deg, rgba(17, 38, 32, .86), rgba(17, 38, 32, .5)),
      var(--lifestyle-image) center / cover no-repeat;
  }
  .landing-intro h1 { font-size: clamp(2.35rem, 13vw, 3.4rem); }
  .landing-preview { padding: 12px; }
  .preview-content { padding: 14px; }
  .preview-heading { align-items: flex-start; }
  .preview-status { max-width: 100px; text-align: center; }
  .preview-days { gap: 6px; }
  .preview-day { min-height: 112px; padding: 9px; }
  .preview-day strong { margin-top: 18px; font-size: .7rem; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit-item { min-height: 0; padding: 18px; }
  .benefit-icon { margin-bottom: 18px; }
  .landing-cta { display: grid; }
  .landing-cta .landing-actions { margin: 4px 0 0; }
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-story { min-height: 270px; padding: 28px 20px; }
  .auth-story h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .auth-panel { padding: 26px 20px; }
  .grid { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6, .span-8, .span-12 { grid-column: span 1; }
  .settings-card-grid { grid-template-columns: 1fr; }
  .meal-edit-top-row,
  .meal-edit-panels,
  .item-edit-top-row,
  .item-edit-panels,
  .item-details-grid { grid-template-columns: 1fr; }
  .item-essential-toggle {
    justify-self: start;
    padding-bottom: 0;
  }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid #dde3dc; padding: 8px 0; }
  td { border: 0; padding: 7px 10px; }
  td::before { content: attr(data-label); display: block; font-size: .78rem; color: #6a7773; font-weight: 700; }
  .shopping-grid { grid-template-columns: minmax(130px, 1fr) 70px minmax(96px, 122px) 40px; }
  .shopping-head { font-size: .78rem; padding: 8px; }
  .shopping-cell { padding: 9px 8px; }
  .dashboard-meal-card { grid-template-columns: 1fr; }
  .dashboard-meal-image { line-height: 58vw; }
  .inline-qty { gap: 4px; }
  .inline-qty input { width: 66px; }
  .inline-qty button { padding: 6px 7px; }
  .admin-inline-form,
  .admin-tier-form {
    align-items: stretch;
  }
  .admin-user-details-panel {
    min-width: 0;
  }
  .admin-danger-form button {
    width: 100%;
  }
  .ingredient-line { grid-template-columns: 1fr; }
  .scanner-layout { grid-template-columns: 1fr; }
  .item-catalogue-table {
    border: 0;
    background: transparent;
  }
  .item-catalogue-table tbody {
    display: grid;
    gap: 10px;
  }
  .item-catalogue-table tr[data-item-row] {
    display: grid;
    grid-template-columns: 1fr minmax(62px, auto);
    gap: 6px 10px;
    padding: 10px;
    border: 1px solid #dde3dc;
    border-radius: 8px;
    background: #fff;
  }
  .item-catalogue-table tr#no-item-results {
    border: 0;
    background: transparent;
  }
  .item-catalogue-table tr.item-category-row {
    padding: 6px 0 0;
    border: 0;
  }
  .item-catalogue-table tr.item-category-row th {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
  }
  .item-catalogue-table td {
    padding: 0;
    min-width: 0;
  }
  .item-catalogue-table td.item-card-title {
    grid-column: 1;
    font-weight: 800;
    color: #203a35;
  }
  .item-catalogue-table td.item-card-title a {
    overflow-wrap: anywhere;
  }
  .item-catalogue-table td.item-card-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .item-catalogue-table .item-add-check {
    width: 24px;
    min-height: 24px;
    margin: 0;
  }
  .item-catalogue-table td.item-card-meta {
    grid-column: 1 / 3;
    display: inline;
    color: #6a7773;
    font-size: .86rem;
  }
  .item-catalogue-table td.item-card-meta::before {
    display: none;
    content: "";
  }
  .item-card-category-text,
  .item-card-purchase-unit,
  .item-card-pack-description {
    display: none !important;
  }
  .item-card-mobile-meta {
    display: inline;
  }
  .meal-catalogue-row {
    grid-template-columns: 62px minmax(0, 1fr) minmax(62px, auto);
    gap: 6px 10px;
    padding: 10px;
  }
  .meal-catalogue-photo { grid-column: 1; grid-row: 1 / 4; }
  .meal-catalogue-photo .meal-table-thumb { width: 62px; height: 62px; line-height: 62px; }
  .meal-catalogue-name {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .meal-catalogue-actions {
    grid-column: 3;
    grid-row: 1;
    min-width: 62px;
    flex-wrap: nowrap;
  }
  .meal-catalogue-ingredients {
    grid-column: 2 / 4;
    font-size: .88rem;
    max-height: 2.5em;
    overflow: hidden;
  }
  .meal-catalogue-meta {
    grid-column: 2 / 4;
    font-size: .78rem;
  }
  .item-catalogue-table td::before { display: none; }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 6mm;
  }
  * {
    box-sizing: border-box;
    transform: none !important;
    zoom: 1 !important;
  }
  html,
  body {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #111;
    font-size: 12pt !important;
    zoom: 1 !important;
    transform: none !important;
  }
  body[class*="theme-"] {
    background-image: none !important;
  }
  .topbar,
  nav,
  header,
  footer,
  .no-print,
  .actions,
  .filters,
  .btn,
  button {
    display: none !important;
  }
  body.print-view .topbar {
    display: none !important;
  }
  .page,
  .content,
  .container {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    zoom: 1 !important;
  }
  .panel,
  .hero,
  .card {
    box-shadow: none !important;
    border-color: #999;
    max-width: none !important;
    min-width: 0 !important;
    transform: none !important;
    zoom: 1 !important;
  }
  tbody tr,
  tbody tr:nth-child(even),
  tbody tr:hover {
    background: #fff !important;
  }
  a { color: #111; }
  .print-only { display: block; }
  .compact-print,
  .shopping-list {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    zoom: 1 !important;
  }
  .compact-print h1 {
    font-size: 15pt !important;
    line-height: 1 !important;
    margin: 0 0 2pt !important;
  }
  .compact-print p {
    font-size: 11pt !important;
    line-height: 1.10 !important;
    margin: 0 0 6pt !important;
  }
  .print-category,
  .category-heading {
    break-after: avoid;
    page-break-after: avoid;
    margin: 4pt 0 1pt !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 10pt !important;
    line-height: 1 !important;
  }
  .print-subcategory {
    break-after: avoid;
    page-break-after: avoid;
    margin: 2pt 0 1pt !important;
    font-size: 11pt !important;
    line-height: 1.1 !important;
  }
  table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    font-size: 11pt !important;
    transform: none !important;
    zoom: 1 !important;
  }
  .shopping-list table,
  .print-shopping-table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    display: table !important;
    table-layout: fixed !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
    margin: 0 0 2pt !important;
    font-size: 10pt !important;
    transform: none !important;
    zoom: 1 !important;
  }
  .print-shopping-columns {
    column-count: 2 !important;
    column-gap: 6mm !important;
  }
  .print-shopping-section {
    margin: 0 0 2pt !important;
  }
  .shopping-list thead,
  .print-shopping-table thead {
    display: table-header-group !important;
  }
  .shopping-list tbody,
  .print-shopping-table tbody {
    display: table-row-group !important;
  }
  .shopping-list tr,
  .print-shopping-table tr {
    display: table-row !important;
    break-inside: avoid;
    page-break-inside: avoid;
    border: 0 !important;
    padding: 0 !important;
  }
  .shopping-list th,
  .shopping-list td,
  .print-shopping-table th,
  .print-shopping-table td {
    display: table-cell !important;
    padding: 2pt 4pt !important;
    border: 0 !important;
    border-bottom: 1px solid #ddd !important;
    vertical-align: top !important;
    font-size: 10pt !important;
    line-height: 1 !important;
    max-width: none !important;
    transform: none !important;
    zoom: 1 !important;
  }
  .shopping-list th,
  .print-shopping-table th {
    font-weight: 700 !important;
    background: #f1f5f2 !important;
    color: #111 !important;
  }
  .shopping-list td::before,
  .print-shopping-table td::before {
    content: none !important;
    display: none !important;
  }
  .print-shopping-table th:nth-child(1),
  .print-shopping-table td:nth-child(1) { width: 9% !important; }
  .print-shopping-table th:nth-child(2),
  .print-shopping-table td:nth-child(2) { width: 29% !important; }
  .print-shopping-table th:nth-child(3),
  .print-shopping-table td:nth-child(3) { width: auto !important; }
  .print-shopping-table th:nth-child(4),
  .print-shopping-table td:nth-child(4) { width: 9% !important; text-align: center !important; }
}
