/* v28.css — SPEC-v2.8 ("לשמור את השילוב כארוחה", צבי): the meal picker's quiet "💡 לשמור את
   השילוב הזה כארוחה?" row (right after the "⬆️ לשדרג לארוחה שלמה?" strip, ui/board.js) and the
   "שם הארוחה" field it opens in place.
   Like v26b.css / v27b.css: built only from the app's shared variables (style.css), which
   theme-clean.css points at its own tokens (--sheet / --ink / --ink-soft / --ink-mute / --rule /
   --g-round-white / --sh-round / --font), so the fridge look (default, where a sheet stays a light
   paper object even in dark mode) and html[data-theme="clean"] (light and dark) both follow it; the
   few clean-only rules below just swap a fridge object for its flat twin.
   Quieter than the lemon "⬆️ לשדרג" strip on purpose: an offer, not a question.
   Every font-size follows the text-size slider (var(--ts)); every tap target >= 44px. */

/* ---------------- the offer: one line — the question and "💾 שמירה כארוחה" ---------------- */
.pk-savemeal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 2px 0 12px; padding: 5px 12px 5px 5px;   /* RTL: the button sits at the left edge */
  border-radius: 12px;
  border: 1.5px dashed var(--rule);
  background: transparent;
}
.pk-savemeal .sm-q {
  flex: 1 1 11em; min-width: 0;
  font: 700 calc(14.5px * var(--ts))/1.3 var(--font); color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.pk-savemeal .sm-btn {
  flex: 0 0 auto; max-width: 100%; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 14px; border-radius: 14px;
  background: var(--g-round-white); box-shadow: var(--sh-round);
  font: 700 calc(15px * var(--ts))/1.2 var(--font); color: var(--ink);
}
.pk-savemeal .sm-btn:active { transform: translateY(1px); box-shadow: var(--rim-pressed); }

/* ---------------- the field, opened in place ---------------- */
.pk-savemeal.open {
  display: block;
  padding: 8px 12px 12px;
  border-style: solid;
  background: var(--sheet);
}
.pk-savemeal.open .sm-q { display: block; color: var(--ink); }
/* the dishes the new meal will hold (the cell's, in its order) */
.pk-savemeal .sm-dishes {
  margin-top: 2px;
  font: 600 calc(13px * var(--ts))/1.35 var(--font); color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.pk-savemeal .field-label { margin-top: 10px; }
.pk-savemeal .btn-row { margin-top: 10px; }

/* ---------------- the clean look ("לבן ולימון") ---------------- */
/* no dashed paper edge there: a soft grey tag, and its button is the sheet's colour with a hairline */
html[data-theme="clean"] .pk-savemeal { border: 0; border-radius: 16px; padding: 6px 14px 6px 6px; background: var(--c-fill); }
html[data-theme="clean"] .pk-savemeal .sm-q { font-weight: 600; font-size: calc(14px * var(--ts)); }
html[data-theme="clean"] .pk-savemeal .sm-btn { border-radius: 12px; background: var(--c-surface); box-shadow: 0 0 0 1px var(--c-line); font-weight: 600; }
html[data-theme="clean"] .pk-savemeal .sm-btn:active { transform: scale(0.99); background: var(--c-fill); box-shadow: 0 0 0 1px var(--c-line); }
html[data-theme="clean"] .pk-savemeal.open { padding: 10px 14px 14px; }
html[data-theme="clean"] .pk-savemeal.open .input { background: var(--c-surface); }
html[data-theme="clean"] .pk-savemeal.open .btn:not(.primary) { background: var(--c-surface); }
