/* Gelato — a compact scoop counter. */
:root {
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #3a2a22;
  background: #fffdf9;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  --ink: #3a2a22;
  --muted: #756359;
  --line: #efe6dc;
  --strawberry: #e0526b;
  --accent-ink: #a92843;
  --pistachio: #5f9b4f;
  --success-ink: #365d2b;
  --warn: #805312;
  --flavour: #d9d2c9;
  --flavour-soft: #f6f3ef;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; color: inherit; max-width: 100%; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: #e0526b20; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
h1, h2, h3 { font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
p { margin: 8px 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
svg { display: block; width: 100%; height: 100%; }
::selection { background: #f9dce2; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }

/* One header row; the same navigation becomes the mobile bottom bar. */
.top {
  height: 56px; position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 0 max(16px, calc((100% - 1360px) / 2));
  border-bottom: 1px solid var(--line); background: #fff;
}
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; }
.brand-mark { display: inline-block; width: 26px; height: 34px; flex: 0 0 auto; }
#logout { order: 3; margin-left: auto; white-space: nowrap; }
.tabs { display: flex; gap: 4px; align-self: stretch; align-items: stretch; min-width: 0; }
.tabs a { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border-bottom: 3px solid transparent; padding-top: 3px; color: var(--muted); font-weight: 800; font-size: 13px; text-decoration: none; }
.tabs a:hover { background: #fff5f6; color: var(--accent-ink); }
.tabs a.on { color: var(--accent-ink); border-bottom-color: var(--strawberry); }
.tab-icon { display: none; }

/* Shared spacing stays on a 4 / 8 / 12 / 16px scale. */
main { width: 100%; max-width: 1392px; margin: 0 auto; padding: 16px; }
.card { min-width: 0; padding: 12px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 12px; }
.planner-grid { grid-template-columns: minmax(0, 1fr) 360px; }
.grid2 > *, .row > * { min-width: 0; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.row.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.stack > datalist { margin: 0; }
.planner-heading { flex-wrap: nowrap; gap: 8px; }
.planner-heading h2 { white-space: nowrap; }
.date-controls { flex-wrap: nowrap; gap: 4px; }
.date-controls input { width: 136px; font-size: 13px; padding-inline: 4px; }
.date-controls .btn { padding-inline: 8px; }
.search-row { margin: 12px 0 8px; }
#search { width: 100%; }

/* Dark labels keep the requested strawberry and pistachio fills accessible. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 36px; min-height: 36px; padding: 4px 12px; border: 1px solid #b7a59b; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover:not(:disabled) { background: #f8f4ee; border-color: #8a7465; }
.btn.primary { background: #c73a55; border-color: #c73a55; color: #fff; }
.btn.primary:hover:not(:disabled) { background: #b02f49; border-color: #b02f49; }
.btn.mint, .btn.success { background: #477a3a; border-color: #477a3a; color: #fff; }
.btn.mint:hover:not(:disabled), .btn.success:hover:not(:disabled) { background: #3b6630; border-color: #3b6630; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { background: #f8f4ee; border-color: transparent; color: var(--ink); }
.btn.danger { color: var(--accent-ink); border-color: #eac7ce; }
.btn.sm { padding: 4px 8px; font-size: 12px; }
.btn:disabled { color: #756359; background: #f3efea; border-color: var(--line); cursor: not-allowed; }
input[type=text], input[type=number], input[type=date], input[type=password], select, textarea {
  min-width: 0; min-height: 36px; border: 1px solid #b7a59b; border-radius: 8px;
  padding: 4px 8px; background: #fff; line-height: 1.3;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: #8a7465; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
input[type=number] { width: 80px; font-variant-numeric: tabular-nums; }
input[type=checkbox] { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: var(--accent-ink); cursor: pointer; }
input:disabled { cursor: not-allowed; }
input[type=number]::-webkit-inner-spin-button { opacity: 1; }
textarea { width: 100%; min-height: 80px; resize: vertical; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
label.field > input, label.field > select { width: 100%; }
label.row { min-height: 36px; flex-wrap: nowrap; cursor: pointer; }

/* Scoops carry the category colour; gradients are limited to their highlights. */
.cat-milk-based { --flavour: #f5e6b8; --flavour-soft: #fcf8e9; }
.cat-dairy { --flavour: #dfeaf5; --flavour-soft: #f3f7fb; }
.cat-coffee { --flavour: #b8875c; --flavour-soft: #f8efe7; }
.cat-egg-based { --flavour: #f3d36b; --flavour-soft: #fdf8e5; }
.cat-nuts { --flavour: #a8c97f; --flavour-soft: #f2f7e9; }
.cat-chocolate { --flavour: #6e4430; --flavour-soft: #f7efeb; }
.cat-white-chocolate { --flavour: #f2e8d8; --flavour-soft: #fbf8f2; }
.cat-alcoholic { --flavour: #c9a2d8; --flavour-soft: #f8f0fb; }
.cat-sorbet { --flavour: #f48b9d; --flavour-soft: #fff0f3; }
.cat-base, .cat-other { --flavour: #d9d2c9; --flavour-soft: #f6f3ef; }
.scoop, .chip::before {
  display: inline-block; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid #3a2a2214;
  background: radial-gradient(circle at 34% 24%, #ffffffa6, transparent 55%), var(--flavour);
}
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; padding: 4px 0; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.chip::before { content: ''; width: 18px; height: 18px; flex-basis: 18px; }
.chip.cat-all::before, .chip.cat-selected::before { content: none; }
.chip:hover { background: var(--flavour-soft); border-color: #b7a59b; }
.chip.on { background: #fff0f3; border-color: var(--strawberry); color: var(--accent-ink); font-weight: 800; }
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.flavour { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 48px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; text-decoration: none; cursor: pointer; }
.flavour:hover { background: var(--flavour-soft); border-color: #b7a59b; }
.flavour .name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; flex: 1; min-width: 0; font-size: 13px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.flavour.on { grid-column: span 2; background: var(--flavour-soft); border-color: var(--strawberry); }
.flavour:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.flavour input[type=checkbox]:focus-visible { outline-offset: 2px; }
.flavour .kg { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; }
.flavour .kg input { width: 64px; padding: 4px; font-size: 14px; }
.recipe-card { gap: 8px; }
.recipe-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.recipe-name .small { font-size: 11px; }
.category-heading { margin: 16px 0 8px; font-size: 14px; }
.flavour-detail { margin: 8px 0; padding: 8px; }

/* Totals read like a small weighing sheet. */
.totals-panel { position: sticky; top: 68px; display: flex; flex-direction: column; }
.mix-stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mix-stat h3 { font-size: 16px; }
.mix-amount { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mix-amount span { font-size: 13px; font-weight: 600; }
.totals-panel > .mix-stat { order: -2; }
.production-actions { order: -1; flex-wrap: nowrap; gap: 4px; margin-bottom: 12px; }
.production-actions .btn { padding-inline: 8px; font-size: 12px; white-space: nowrap; }
.production-actions .ghost { padding-inline: 4px; }
.prep-note { margin: 0 0 8px; padding: 8px; border-left: 2px solid var(--pistachio); background: #f3f8ef; }
.empty-state { padding: 8px 0; font-size: 13px; }
.empty-state p { margin: 0; }
details { margin-top: 8px; }
summary { display: list-item; min-height: 36px; padding: 8px 0; font-size: 13px; font-weight: 600; cursor: pointer; }

/* Dense tables, with scrolling confined to the table on very narrow screens. */
.table-wrap { max-width: 100%; overflow: auto; margin-top: 8px; scrollbar-width: thin; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th, td { height: 40px; padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
th { position: sticky; top: 0; z-index: 1; background: #fffdf9; color: var(--muted); font-size: 12px; font-weight: 800; }
tbody tr:last-child td { border-bottom: 0; }
tr.low td { background: #fff8e8; }
tr.done td { color: var(--muted); text-decoration: line-through; }
.totals-table { margin-top: 0; }
.totals-table th, .totals-table td { height: 34px; }
.totals-table td.num { font-weight: 800; white-space: nowrap; }
.totals-table td:first-child, .totals-table th:first-child { padding-left: 0; }
.totals-table td:last-child, .totals-table th:last-child { padding-right: 0; }
.inventory-table, .table-wrap[aria-label="Order quantities"] { max-height: 65vh; }
td input[type=number] { width: 80px; min-height: 36px; text-align: right; }
td select { min-height: 36px; }
td a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }
/* A native checkbox inside a generous hit area, without changing its events. */
td > input[type=checkbox] { appearance: none; width: 36px; height: 36px; padding: 9px; border: 0; border-radius: 8px; background: transparent; vertical-align: middle; }
td > input[type=checkbox]::before { content: ''; display: block; width: 18px; height: 18px; border: 1px solid #8a7465; border-radius: 3px; background: #fff; }
td > input[type=checkbox]:checked::before { content: '✓'; text-align: center; font: 800 15px/16px system-ui, sans-serif; color: #fff; background: var(--accent-ink); border-color: var(--accent-ink); }

/* Quiet single-line reminders and seven small forecast tiles. */
.reminders { display: grid; gap: 4px; margin-bottom: 8px; }
.reminder { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 36px; margin: 0; padding: 4px 8px; border-radius: 8px; font-size: 12px; }
.reminder.holiday, .reminder.event { color: #8d2940; background: #fff0f3; }
.reminder.hot { color: var(--warn); background: #fff7e5; }
.reminder > b { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.reminder-icon { font-size: 14px; }
.reminder-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forecast-strip { margin-bottom: 12px; }
.weather { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wday { position: relative; display: grid; grid-template-columns: auto auto; align-content: center; justify-content: center; align-items: center; column-gap: 4px; min-width: 0; min-height: 56px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; font-size: 12px; }
.weather-date { grid-column: 1 / -1; font-size: 11px; font-weight: 600; }
.weather-icon { font-size: 16px; }
.wday .t { font-weight: 800; font-variant-numeric: tabular-nums; }
.wday.hot .t { color: var(--warn); }
.wday.special::after { content: ''; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--strawberry); }
.forecast-card h2 { margin-bottom: 8px; }

/* Week and history use the same scoops as the catalogue. */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 132px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.day:hover { background: #fffaf7; }
.day.today { border-color: var(--strawberry); }
.day .head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; font-size: 13px; font-weight: 800; }
.day .head .small { font-size: 11px; font-weight: 600; }
.today-label { color: var(--accent-ink); font-size: 11px; font-weight: 800; }
.scoop-list { list-style: none; padding: 0; margin: 0; }
.scoop-list li { display: flex; align-items: center; gap: 4px; min-height: 28px; padding-block: 4px; font-size: 12px; line-height: 1.3; }
.scoop-list li > span:not(.scoop) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.scoop-list .scoop, .history-flavour .scoop { width: 18px; height: 18px; flex-basis: 18px; }
.scoop-list .num { font-weight: 600; white-space: nowrap; }
.day-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.day-empty { margin: auto 0; }
.day > .badge { white-space: normal; align-self: flex-start; }
.badge { display: inline-block; max-width: 100%; padding: 2px 8px; border-radius: 6px; background: #eef6e8; color: var(--success-ink); font-size: 11px; font-weight: 800; line-height: 1.4; }
.badge.warn { color: var(--warn); background: #fff4d8; }
.badge.red { color: #8d2940; background: #fff0f3; }
.history-flavours { margin: 12px 0; max-width: 480px; }
.history-flavour { display: inline-flex; align-items: center; gap: 4px; margin: 2px 8px 2px 0; }

/* Compact editors and login. */
#addorder, #add { flex-wrap: nowrap; }
#add > h3 { white-space: nowrap; font-size: 15px; }
#addorder > input[type=text], #add > input[type=text] { width: 0; }
#addorder > input[type=number], #add > input[type=number] { width: 80px; }
#rf { max-width: 800px; margin-inline: auto; }
#rf > .row > .field { flex-basis: 160px !important; }
#rf h3 { font-size: 15px; }
#sum { color: var(--success-ink); font-variant-numeric: tabular-nums; }
.ing-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 36px; align-items: center; gap: 8px; margin-bottom: 8px; }
.ing-row input[type=text] { width: 100%; }
#settings .field { display: grid; grid-template-columns: minmax(0, 1fr) 80px; align-items: center; gap: 8px; }
#ev .field { gap: 4px; }
body:has(.login) { display: grid; align-items: center; min-height: 100svh; }
.login { width: calc(100% - 32px); max-width: 340px; padding: 16px; margin: 24px auto; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }
.login-brand .brand-mark { width: 32px; height: 40px; }
.login .btn { width: 100%; }
.error { color: #a5213d; font-size: 13px; }
.error:empty { display: none; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 8px 16px; border-radius: 24px; background: var(--ink); color: #fff; font-size: 13px; text-align: center; box-shadow: 0 1px 1px #3a2a2214; }
.toast.err { background: #a5213d; }

@media (min-width: 700px) and (max-width: 1040px) {
  .top { gap: 8px; }
  .tabs { gap: 0; }
  .tabs a { padding-inline: 8px; font-size: 12px; }
  .planner-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .planner-heading h2 { font-size: 16px; }
  .date-controls input { width: 124px; }
  .production-actions { gap: 0; }
  .production-actions .btn { padding-inline: 4px; }
  .week { gap: 4px; }
  .day { padding: 4px; }
  .day .scoop-list li { flex-wrap: wrap; }
  .day .scoop-list .num { margin-left: 22px; }
}
@media (min-width: 700px) and (max-width: 850px) {
  .planner-grid { grid-template-columns: 1fr; }
  .totals-panel { position: static; }
}
@media (max-width: 699px) {
  .top { height: 52px; padding: 0 12px; }
  .brand .wordmark { display: none; }
  .tabs { position: fixed; z-index: 20; inset: auto 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; padding: 4px 4px max(4px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  .tabs a { flex-direction: column; gap: 4px; min-width: 0; min-height: 52px; padding: 4px 0; border: 0; border-radius: 8px; font-size: 10px; line-height: 1.2; }
  .tabs a.on { background: #fff0f3; color: var(--accent-ink); box-shadow: inset 0 -2px var(--strawberry); }
  .tab-icon { display: block; width: 20px; height: 20px; }
  main { padding: 12px 12px calc(84px + env(safe-area-inset-bottom)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .card { padding: 8px; }
  .btn, .btn.sm, input[type=text], input[type=number], input[type=date], input[type=password], select, label.row, summary { min-height: 44px; }
  .btn, .btn.sm { min-width: 44px; }
  input[type=text], input[type=number], input[type=date], input[type=password], select, textarea { font-size: 16px; }
  .planner-heading { gap: 4px; }
  .planner-heading h2 { font-size: 15px; }
  .date-controls { flex: 1; justify-content: flex-end; }
  .date-controls input { width: 124px; min-width: 0; font-size: 12px; padding-inline: 2px; }
  .date-controls .btn { padding-inline: 4px; flex: 0 0 44px; }
  .planner-heading:has(#tod) h2 { font-size: 14px; }
  .date-controls:has(#tod) input { width: 100px; font-size: 11px; }
  .search-row { margin-top: 8px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 4px; margin-inline: -4px; scrollbar-width: thin; }
  .chip { flex: 0 0 auto; min-height: 44px; min-width: 44px; }
  .catalogue { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .flavour { min-height: 48px; padding: 2px 6px; gap: 4px; }
  .flavour .name { font-size: 12px; }
  .flavour .scoop { width: 18px; height: 18px; flex-basis: 18px; }
  .flavour .kg input { min-height: 44px; font-size: 16px; }
  .totals-panel { position: static; }
  .production-actions { justify-content: space-between; gap: 4px; }
  .production-actions .btn { font-size: 12px; padding-inline: 8px; }
  .production-actions .ghost { padding-inline: 4px; }
  .weather-icon { font-size: 13px; }
  .wday { column-gap: 2px; padding-inline: 2px; }
  .wday.special::after { top: 4px; right: 3px; width: 4px; height: 4px; }
  .week { grid-template-columns: minmax(0, 1fr); }
  .day { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 64px; padding: 8px; gap: 4px 8px; }
  .day .head { grid-column: 1; justify-content: flex-start; gap: 8px; }
  .day .today-label { grid-column: 2; grid-row: 1; text-align: right; }
  .day .scoop-list, .day > .badge { grid-column: 1 / -1; }
  .day-total { grid-column: 1 / -1; padding-top: 4px; }
  .day-empty { font-size: 12px; text-align: right; }
  .day.today .day-empty { grid-column: 1 / -1; text-align: left; }
  th, td { padding: 4px; font-size: 12px; }
  th { font-size: 11px; }
  td input[type=number] { width: 56px; min-height: 44px; padding: 4px; font-size: 14px; }
  td select { width: 56px; min-height: 44px; padding: 4px; font-size: 13px; }
  td a { min-height: 44px; }
  td > input[type=checkbox] { width: 44px; height: 44px; padding: 13px; }
  .inventory-table table { table-layout: fixed; }
  .inventory-table th:nth-child(2), .inventory-table th:nth-child(3), .inventory-table th:nth-child(4) { width: 64px; }
  .inventory-table th:last-child { width: 48px; }
  .inventory-table td .btn { padding: 4px; }
  .table-wrap[aria-label="Order quantities"] table { table-layout: fixed; }
  .table-wrap[aria-label="Order quantities"] th:first-child { width: 28%; }
  #addorder, #add { display: grid; grid-template-columns: minmax(0, 1fr) 64px 56px; gap: 8px; }
  #add > h3 { grid-column: 1 / -1; }
  #addorder > input[type=text], #add > input[type=text] { width: 100%; }
  #addorder > input[name=note] { grid-column: 1 / 3; }
  #add > input[name=min] { grid-column: 1 / 3; width: 100%; }
  #addorder > input[type=number], #add > input[type=number] { max-width: 100%; }
  #addorder select, #add select { padding-inline: 4px; }
  .ing-row { grid-template-columns: minmax(0, 1fr) 72px 44px; gap: 4px; }
  .ing-row input[type=number] { width: 100%; }
  #settings .field { grid-template-columns: minmax(0, 1fr) 72px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .catalogue { grid-template-columns: minmax(0, 1fr); }
  .flavour.on { grid-column: auto; }
  .planner-heading { flex-wrap: wrap; }
  .production-actions { gap: 0; }
  .production-actions .btn { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color: #000; background: #fff; font-size: 11pt; }
  body, main, .card, table, th, td, .flavour, .day { background: #fff !important; color: #000 !important; }
  header, nav, button, .btn, .no-print, .toast, .reminders, .forecast-strip, .chips, .search-row { display: none !important; }
  main { padding: 0; max-width: none; }
  .grid2 { display: block; }
  .card { padding: 8px 0; border: 0; box-shadow: none; }
  .totals-panel { position: static; display: block; }
  .table-wrap { overflow: visible; max-height: none; }
  th { position: static; }
  tr, .flavour, .day { break-inside: avoid; }
  th, td { border-color: #bbb; }
  .muted, .badge, a, .mix-amount, .num, .today-label, #sum { color: #000 !important; }
  .badge, .prep-note, .wday, .day.today { background: #fff !important; color: #000 !important; border-color: #000; }
  a { text-decoration: none; }
  .catalogue .flavour:not(.on) { display: none; }
  .recipe-catalogue .flavour { display: flex; }
  .flavour.on { border-color: #000; }
  .flavour .name { display: block; overflow: visible; }
  .scoop { background: #fff; border-color: #000; }
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  input, select, textarea { background: #fff !important; color: #000 !important; border-color: #bbb !important; }
}
