/* Rezeptsammlung – the app's own styles. The shared look (colours, light/dark, buttons, fields, dialogs, settings tabs,
   header, login page) comes from the house kit: /house/house.css, loaded before this file. Never redefine its tokens here. */

/* ---------- layout ---------- */
#main, .banner { max-width: var(--hk-max); margin-inline: auto; padding-inline: 16px; }
#main { padding-block: 16px 40px; }

/* ---------- small shared bits used by the recipe screens ---------- */
input.narrow { width: 72px; }
input[type='color'] { width: 44px; height: 32px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); vertical-align: middle; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 200px; }
.colors { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0; }

/* ---------- misc ---------- */
.banner { display: block; background: color-mix(in srgb, var(--danger) 14%, var(--surface)); border: 1px solid var(--danger); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; max-width: calc(1040px - 32px); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px);
  background: #1f2630; color: #f2f4f8; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow);
}
.toast.is-error { background: var(--danger); color: #fff; }
.toast-action { font: inherit; font-weight: 700; color: #f2c14e; background: none; border: 0; cursor: pointer; padding: 4px; }
.tab-panel { min-height: 260px; }

/* ================= Rezeptsammlung ================= */
.btn.mini { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn.big { min-height: 52px; padding: 0 22px; font-size: 17px; }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub { color: var(--muted); font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; max-width: 560px; margin: 0 auto; }
.empty .btn-row { justify-content: center; }
.note { border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.note ul { margin: 6px 0; padding-left: 20px; }
.note.warn { border-color: #d39b22; background: color-mix(in srgb, #f2b134 14%, var(--surface)); }
.note.error-box { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.note.error-box strong { color: var(--danger); }
.warn-list { margin: 4px 0; padding-left: 18px; }
.danger-text { color: var(--danger) !important; }
.show-xs { display: none; }

/* tag pills (as in Matrix Planner) */
.tag-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag-pills:empty { display: none; }
.tag-pills.small { margin: 6px 0; gap: 4px; }
.tag-pill { font: inherit; font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.tag-pill:hover { background: var(--surface-2); }
.tag-pill[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.tag-pill .count { font-size: 11px; opacity: 0.7; }

/* ---------- overview ---------- */
.search-row { display: flex; gap: 8px; }
.search-row select { width: auto; flex: none; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 6px; }
.recipe-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.recipe-card:hover { border-color: var(--border-strong); box-shadow: 0 2px 10px rgba(20, 28, 40, 0.12); }
.card-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--surface-2); }
.card-photo.placeholder {
  display: grid; place-items: center; font-size: 40px; font-weight: 700; color: color-mix(in srgb, var(--accent) 55%, var(--surface));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}
.card-body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.card-title { font-weight: 650; font-size: 16px; line-height: 1.25; }
.card-tags { font-size: 12px; color: var(--muted); }
.card-warn { font-size: 12px; color: #a26b00; }
@media (prefers-color-scheme: dark) { .card-warn { color: #f2b134; } }

/* ---------- one recipe ---------- */
.rv-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-top { display: grid; gap: 16px; margin-bottom: 12px; }
.rv-top.has-photo { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
.rv-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.rv-title { font-size: 26px; letter-spacing: -0.01em; margin: 2px 0 4px; }
.rv-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; margin: 10px 0 0; }
.rv-meta dt { color: var(--muted); font-size: 13px; }
.rv-meta dd { margin: 0; }
.servings { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.servings .step-btn { min-height: 36px; width: 36px; padding: 0; font-size: 18px; }
.servings-input { width: 64px !important; text-align: center; min-height: 36px !important; }
.servings-unit { margin-right: 4px; }
.notes { margin-top: 18px; }
.notes p { white-space: pre-wrap; margin: 0; }
.table-hint { margin: 6px 2px 0; font-size: 12px; }
.loading { padding: 30px 0; }

/* menu (⋯) */
.menu { position: relative; }
.menu > summary { list-style: none; min-width: 44px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 210px;
  display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow);
}
.menu-list button { font: inherit; text-align: left; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; }
.menu-list button:hover { background: var(--surface-2); }

/* ---------- the recipe table ----------
   Ingredients on the left; each step spans the rows it works on. Drawn on a CSS grid: every cell has a right and bottom line,
   the grid itself the top and left line. */
.rtable-wrap {
  --ing-min: 11em; --ing-max: 24em; --step-min: 3em;
  width: fit-content; max-width: 100%;
  --line: color-mix(in srgb, var(--accent) 55%, var(--border-strong));
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border-radius: var(--radius); border: 2px solid var(--line);
}
.rtable { display: grid; min-width: min-content; }
.rtable .cell {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 7px 10px; min-height: 2.6em; background: var(--surface);
}
.rtable .cell.last-row { border-bottom: 0; }
.rtable .prep { text-align: center; font-weight: 500; border-right: 0; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.rtable .prep span { position: sticky; left: 10px; right: 10px; }
.rtable .zutat {
  position: sticky; left: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; column-gap: 5px;
  box-shadow: 1px 0 0 var(--line);
}
.rtable .zutat .amt { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Amount + unit and the name, each in its own outlined pill (colours: Einstellungen → Darstellung). */
.pill {
  --pill-c: var(--border-strong);
  display: inline-block; padding: 1px 8px; border-radius: 999px; line-height: 1.35;
  border: 1.5px solid var(--pill-c); background: color-mix(in srgb, var(--pill-c) 9%, transparent);
}
.pill-amount { --pill-c: var(--pill-amount, #2456d6); }
.pill-name { --pill-c: var(--pill-name, #8a94a6); }
.rtable .zutat { row-gap: 4px; }
.rtable .ing-hint { padding-left: 2px; }
.colors .color-field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.pill-preview { display: block; border: 1px solid var(--border); border-radius: 10px; max-width: 320px; }
.pill-preview .cell { border: 0; }
.cook-inputs .pill, .cook-checks .pill { padding: 1px 10px; }
.check-list .pill { padding: 0 7px; }
.rtable .ing-hint { flex-basis: 100%; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.rtable .schritt {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 6px; cursor: pointer; padding: 26px 6px 10px;
}
/* The step's text is turned by 90° (read from bottom to top); it wraps into a second line when the cell is short. */
.rtable .vtext {
  writing-mode: vertical-rl; transform: rotate(180deg); text-align: center;
  max-inline-size: max(6.5em, calc(var(--span, 1) * 2.6em));
}
.rtable .vtext > span { display: block; }
.rtable .step-icon { color: var(--accent-ink); line-height: 0; flex: none; }
.cook-action .step-icon { color: var(--accent-ink); vertical-align: -6px; margin-right: 12px; display: inline-block; line-height: 0; }
.rtable .schritt:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.rtable .schritt .act { font-weight: 600; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.rtable .step-meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* "i": the step's details in a small popup instead of in the cell */
.rtable .step-top { position: absolute; top: 3px; left: 3px; display: flex; align-items: center; gap: 2px; }
.rtable .step-top .step-no { position: static; }
.rtable .info-btn {
  position: relative; flex: none; width: 16px; height: 16px; padding: 0; border-radius: 50%; line-height: 14px !important; font-size: 10px !important;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--accent-ink);
  font: italic 700 12px/20px Georgia, 'Times New Roman', serif; cursor: pointer;
}
.rtable .info-btn:hover, .rtable .info-btn:focus-visible { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.rtable .info-btn::before { content: ''; position: absolute; inset: -9px; } /* bigger target for fingers */
.step-pop {
  position: fixed; z-index: 90; padding: 10px 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow);
}
.step-pop-title { font-weight: 650; margin-bottom: 4px; }
.rtable .step-no { position: absolute; top: 3px; left: 5px; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.rtable .leer { background: var(--surface); }
.rtable .schritt.is-active { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); outline: 2px solid var(--accent); outline-offset: -2px; }
.rtable .zutat.is-marked { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
/* the last column has no right line (the frame draws it) */
.rtable .cell.last-col { border-right: 0; }
.step-no { font-variant-numeric: tabular-nums; }

/* ---------- shopping list ---------- */
.shop-form { display: flex; gap: 8px; margin-bottom: 12px; }
.shop-form input { flex: 1; min-width: 0; }
.shop-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.shop-list:empty { display: none; }
.shop-item { display: flex; align-items: center; gap: 6px; padding: 2px 6px 2px 0; border-top: 1px solid var(--border); }
.shop-item:first-child { border-top: 0; }
.shop-check { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; min-width: 0; }
.shop-check input { width: 22px; height: 22px; accent-color: var(--accent-ink); flex: none; }
.shop-text { display: flex; flex-wrap: wrap; column-gap: 4px; align-items: baseline; min-width: 0; }
.shop-from { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.shop-item.is-checked .shop-text > span:first-child { text-decoration: line-through; color: var(--muted); }
.shop-item .remove { color: var(--muted); }
.shop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
#shop-done-head { margin-top: 20px; }
.check-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 2px; }
.check-list .check { padding: 6px 2px; margin: 0; cursor: pointer; }
.check-list input, .cook-checks input { width: 20px; height: 20px; accent-color: var(--accent-ink); flex: none; }

/* ---------- dialogs: paste / edit ---------- */
dialog.wide { width: min(980px, calc(100vw - 24px)); }
.confirm-text { font-size: 16px; margin: 4px 0 12px; }
.import-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
#import-text, #edit-json, #prompt-text { font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.import-result { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.import-result > *, .preview > * { min-width: 0; }
dialog form { min-width: 0; }
.dialog-actions { flex-wrap: wrap; }
.import-result:empty { display: none; }
.import-result h3 { margin: 6px 0 2px; }
.preview-title { font-size: 18px; font-weight: 650; margin-bottom: 6px; }
.edit-panel { gap: 4px; }
.edit-section { border-top: 1px solid var(--border); padding-top: 4px; margin-top: 6px; }
.edit-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.edit-section h3 { margin: 12px 0 6px; }
.edit-section .hint { margin-bottom: 8px; }
.narrow-field { flex: 0 0 110px; }
.inline-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.ing-head, .ing-row {
  display: grid; gap: 6px; align-items: center;
  grid-template-columns: 76px 64px 124px minmax(120px, 1fr) minmax(100px, 0.8fr) 34px;
}
.ing-head { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.ing-row { margin-bottom: 6px; }
.remove { min-width: 32px; padding: 0 !important; color: var(--muted); }
.step-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 8px; display: grid; gap: 8px; background: var(--surface); }
.step-card-head { display: flex; gap: 8px; align-items: center; }
.step-card-head .step-no, .from-step .step-no {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-text); font-size: 13px; font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-in { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); font-size: 13px; }
.chip-in button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; width: 22px; height: 22px; border-radius: 50%; }
.chip-in button:hover { background: var(--surface-2); color: var(--text); }
.add-input { width: auto !important; min-height: 32px !important; padding: 4px 8px !important; font-size: 13px !important; }
.step-extra { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.step-extra input.tiny { width: 58px; min-height: 32px; padding: 4px 6px; text-align: center; }
textarea.details { min-height: 34px; font-size: 14px; }
.photo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.note.warn li .remove { min-height: 24px; }

/* ---------- export ---------- */
.export-options { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.export-options .field { margin-bottom: 8px; }
.export-preview { border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; margin-top: 8px; max-height: 60vh; overflow-y: auto; }
.export-frame { overflow: hidden; }
.json-preview { margin: 0; padding: 12px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #1b1f24; white-space: pre-wrap; max-height: 50vh; overflow: auto; }

/* ---------- cooking mode ---------- */
.cook {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
body.cooking { overflow: hidden; }
.cook-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; max-width: 860px; width: 100%; margin: 0 auto; }
.cook-titles { flex: 1; min-width: 0; }
.cook-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-progress { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.cook-bar { flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; max-width: 260px; }
.cook-bar > span { display: block; height: 100%; background: var(--accent); transition: width 0.25s; }
.cook-head .btn { font-size: 20px; width: 44px; padding: 0; }
.cook-timers { display: grid; gap: 6px; padding: 0 16px; max-width: 860px; width: 100%; margin: 0 auto; }
.cook-timer { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-strong); }
.cook-timer .timer-label { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-timer .timer-time { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cook-timer.is-done { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, var(--surface)); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .cook-timer.is-done { animation: none; } }
.cook-body { flex: 1; overflow-y: auto; padding: 8px 16px 24px; }
.cook-page { max-width: 760px; margin: 0 auto; }
.cook-action { font-size: clamp(30px, 7vw, 46px); font-weight: 750; line-height: 1.1; letter-spacing: -0.01em; margin: 14px 0 6px; }
.cook-meta { font-size: 20px; color: var(--accent-ink); font-weight: 650; margin-bottom: 8px; }
.cook-inputs { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; font-size: 20px; }
.cook-inputs li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.cook-inputs .amt { font-weight: 700; }
.cook-inputs .ing-hint { flex-basis: 100%; font-size: 15px; color: var(--muted); }
.cook-inputs .from-step { color: var(--muted); font-size: 17px; align-items: center; }
.cook-details { font-size: 18px; line-height: 1.5; background: var(--surface-2); border-radius: 10px; padding: 10px 14px; white-space: pre-wrap; }
.timer-btn { margin: 8px 0; }
.cook-next-hint { color: var(--muted); font-size: 15px; margin-top: 18px; }
.cook-h { font-size: 20px; margin: 18px 0 8px; }
.cook-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 18px; }
.cook-checks .check { padding: 8px 10px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; align-items: baseline; }
.cook-checks .check:has(input:checked) span { text-decoration: line-through; color: var(--muted); }
.cook-checks .ing-hint { color: var(--muted); font-size: 14px; margin-left: 4px; }
.cook-checks .amt { font-weight: 700; }
.cook-end { text-align: center; padding-top: 10vh; }
.cook-foot {
  display: flex; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); max-width: 860px; width: 100%; margin: 0 auto;
  border-top: 1px solid var(--border);
}
.cook-foot .btn { flex: 1; min-height: 56px; font-size: 18px; }
.cook-foot .btn[hidden] { display: none; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .rv-top.has-photo { grid-template-columns: 1fr; }
  .rv-photo { aspect-ratio: 16 / 9; }
  .rv-title { font-size: 22px; }
  .ing-row {
    grid-template-columns: 1fr 1fr 1.2fr 34px;
    grid-template-areas: 'menge bis unit x' 'name name name name' 'hint hint hint hint';
    padding: 8px; border: 1px solid var(--border); border-radius: 10px;
  }
  .ing-row .c-menge { grid-area: menge; }
  .ing-row .c-bis { grid-area: bis; }
  .ing-row select { grid-area: unit; }
  .ing-row input[aria-label='Zutat'] { grid-area: name; }
  .ing-row .c-hint { grid-area: hint; }
  .ing-row .remove { grid-area: x; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  #main { padding-inline: 12px; }
  .hk-row2 { padding: 0; }
  #main { padding-bottom: 80px; }
  /* Rezepte / Einkaufsliste switch becomes a bottom bar (as in Matrix Planner). */
  #view-seg {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 0; border-width: 1px 0 0;
    padding-bottom: env(safe-area-inset-bottom); background: var(--surface); display: flex;
  }
  #view-seg > button { flex: 1; min-height: 56px; line-height: 56px; font-size: 15px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .card-title { font-size: 15px; }
  .rtable-wrap { --ing-min: 8.5em; --ing-max: 11em; --step-min: 2.6em; font-size: 14px; margin-inline: -4px; }
  .rtable .cell { padding: 6px 7px; }
  .rtable .schritt { padding: 24px 3px 8px; }
  .rtable .schritt .act { font-size: 13.5px; }
  .rv-bar .back { padding-left: 4px; }
  .rv-actions { width: 100%; display: grid; grid-template-columns: 1.1fr 1fr 1fr 44px; gap: 6px; }
  .rv-actions > .btn, .rv-actions .menu > summary { padding: 0 6px; font-size: 14px; }
  .hide-xs { display: none !important; }
  .show-xs { display: inline !important; }
  .cook-inputs { font-size: 18px; }
  .shop-form .btn { padding: 0 12px; }
}
@media print {
  .hk-header, .rv-bar, .table-hint, #view-seg, .note.warn button { display: none !important; }
  body { background: #fff; color: #000; }
  .rtable-wrap { overflow: visible; border-color: #2a7d2a; }
  .rtable { --line: #2a7d2a; }
}
.cook-inputs .from-step { flex-wrap: nowrap; gap: 10px; }
.toast { width: max-content; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 640px) { .rtable .pill { padding: 0 6px; } }
