/* Layout: one narrow mobile column of cards — who's coming → what's on the grill → who buys what → who pays whom.
   Single deliberate light look, same brand family as the meat calculator. */
:root {
  color-scheme: light;
  --ink: #141414;
  --ink-2: #4a4542;
  --muted: #736b65;
  --bg: #f6f2eb;
  --card: #ffffff;
  --line: #e8e1d6;
  --red: #c81f26;
  --red-dark: #a3161c;
  --gold: #d9c26e;
  --gold-deep: #8a6f1c;
  --gold-soft: #f7efd2;
  --ok: #2c7339;
  --ok-soft: #e3f1e5;
  --wa: #1f8f4e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,20,20,.05), 0 6px 22px rgba(20,20,20,.06);
  --font: "Assistant", "Segoe UI", Arial, sans-serif;
  --display: "Frank Ruhl Libre", "David", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; }
.app { min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; border-radius: 8px; }
.in { max-width: 640px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.hero { background: var(--ink); color: #fff; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--red) 0 50%, var(--gold) 50% 100%); }
.hero .in { padding-block: 18px 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 900; font-size: 30px; color: #fff; text-decoration: none; line-height: 1.1; }
.tag { margin: 0; color: #d9d2c7; font-size: 15px; }

.banner { background: var(--gold-soft); border-bottom: 1px solid var(--gold); font-size: 14px; color: var(--ink-2); }
.banner .in { padding-block: 8px; }
main.in { padding-block: 18px 8px; display: flex; flex-direction: column; gap: 14px; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); font-weight: 600; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-size: 20px; font-weight: 800; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pill { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
label { display: block; font-weight: 700; font-size: 15px; margin: 12px 0 4px; }
input[type=text], input:not([type]), input[type=date], input[type=number], select {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px;
}
input:focus, select:focus { border-color: var(--ink); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 > div { min-width: 0; }

.btn { min-height: 48px; border-radius: 14px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; padding: 10px 16px; cursor: pointer; touch-action: manipulation; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.wa { background: var(--wa); border-color: var(--wa); }
.btn.small { min-height: 40px; font-size: 14px; padding: 6px 12px; border-radius: 12px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.cta { width: 100%; min-height: 56px; margin-top: 16px; border: 0; border-radius: 16px; background: var(--red); color: #fff; font-size: 19px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(200,31,38,.25); }
.cta:hover { background: var(--red-dark); }
.link-btn { background: none; border: 0; color: var(--red-dark); font-weight: 700; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.actions .btn { flex: 1 1 150px; }

/* בית */
.intro h1 { font-family: var(--display); font-size: clamp(26px, 7vw, 34px); line-height: 1.15; }
.how { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.how li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); }
.how li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--gold); font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; transform: translateY(3px); }
.ev-list { display: grid; gap: 8px; }
.ev-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; }
.ev-link:hover { border-color: var(--ink); }
.ev-link b { font-size: 17px; }
.ev-link span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.demo-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }

/* ראש המנגל */
.back { font-size: 15px; }
.back a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.ev-head h1 { font-family: var(--display); font-size: clamp(26px, 7vw, 34px); line-height: 1.15; }
.ev-meta { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.people { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.people span { background: var(--bg); border-radius: 10px; padding: 6px 10px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.example { display: inline-block; margin-inline-start: 8px; vertical-align: middle; font-family: var(--font); font-size: 12px; font-weight: 800; background: var(--gold-soft); color: var(--gold-deep); padding: 2px 8px; border-radius: 99px; }
details.edit-ev summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-top: 10px; list-style: none; }
details.edit-ev summary::-webkit-details-marker { display: none; }

/* מי מגיע */
.fam { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fam:last-child { border-bottom: 0; }
.fam .nm { flex: 1; min-width: 0; }
.fam .nm b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.fam .nm small { color: var(--muted); font-size: 14px; }
.me-tag { font-size: 12px; font-weight: 800; color: var(--ok); background: var(--ok-soft); padding: 1px 8px; border-radius: 99px; margin-inline-start: 6px; }
.fam-btns { display: flex; gap: 4px; flex: none; }
.icon-btn { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 0 10px; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.fam-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.fam-form h3 { font-size: 17px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps3 label { margin-top: 10px; font-size: 14px; }
.stp { display: flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stp button { flex: none; width: 34px; min-height: 46px; border: 0; background: var(--bg); font-size: 20px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.stp input { width: 100%; min-width: 0; min-height: 46px; border: 0; border-radius: 0; text-align: center; font-weight: 800; font-size: 19px; padding: 0; -moz-appearance: textfield; }
.stp input::-webkit-outer-spin-button, .stp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-btns { display: flex; gap: 8px; margin-top: 14px; }
.form-btns .btn { flex: 1; }
.confirm { background: var(--gold-soft); border: 2px solid var(--gold); border-radius: 12px; padding: 10px 12px; margin: 6px 0; font-size: 15px; }
.confirm .actions { margin-top: 8px; }

/* מה על האש */
details.meat summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.meat summary::-webkit-details-marker { display: none; }
details.meat summary .chev { font-size: 14px; font-weight: 700; color: var(--red-dark); white-space: nowrap; }
.meat-sum { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.pp-title { margin: 14px 0 6px; font-weight: 700; font-size: 15px; }
.presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.preset { min-height: 50px; border: 2px solid var(--line); background: #fff; border-radius: 12px; font-weight: 800; font-size: 17px; cursor: pointer; line-height: 1.05; font-variant-numeric: tabular-nums; }
.preset small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.preset[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.preset[aria-checked="true"] small { color: var(--gold); }
.pp-desc { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.group { margin-top: 14px; }
.group-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.chip { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: right; font-size: 15px; font-weight: 600; line-height: 1.2; touch-action: manipulation; }
.chip .box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #cfc6b8; display: grid; place-items: center; }
.chip .box svg { opacity: 0; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--gold-soft); }
.chip[aria-pressed="true"] .box { background: var(--red); border-color: var(--red); }
.chip[aria-pressed="true"] .box svg { opacity: 1; }

/* קניות */
.empty { border: 2px dashed var(--line); border-radius: 14px; padding: 18px 14px; text-align: center; color: var(--muted); font-weight: 600; font-size: 15px; }
.item { border: 2px solid var(--line); border-radius: 14px; padding: 12px; }
.item + .item { margin-top: 8px; }
.item.claimed { border-color: var(--gold); }
.item.paid { border-color: var(--ok); background: #fbfdfb; }
.it-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.it-top .nm { min-width: 0; }
.it-top b { font-size: 17px; }
.it-top small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.it-qty { font-size: 19px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.it-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.it-who.one { grid-template-columns: 1fr; }
.it-who select, .it-who input { min-height: 44px; font-size: 15px; padding: 8px 10px; }
.paid-in { position: relative; }
.paid-in input { padding-left: 30px; }
.paid-in span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--ink); font-weight: 800; }
.total-line .v { font-size: 22px; color: var(--red); font-variant-numeric: tabular-nums; }
.notes { margin: 10px 0 0; padding: 0; list-style: none; }
.notes li { font-size: 14px; color: var(--ink-2); margin-top: 4px; padding-inline-start: 14px; position: relative; }
.notes li::before { content: ""; position: absolute; right: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.sub-h { font-size: 17px; margin-top: 20px; }
.exp { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.exp .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.exp .nm small { display: block; color: var(--muted); font-size: 13px; }
.exp .v { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.exp-form { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 10px; }
.exp-form > * { min-width: 0; }
.exp-form .full { grid-column: 1 / -1; }
.exp-form input, .exp-form select { min-height: 44px; font-size: 15px; }

/* התחשבנות */
.settle { background: var(--ink); color: #fff; border-color: var(--ink); }
.settle h2 { color: #fff; }
.settle .empty { border-color: #3a3632; color: #bdb5aa; }
.big { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 0 12px; }
.big .v { font-size: 34px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.big .l { color: #cfc7bb; font-size: 14px; font-weight: 700; }
.seg { display: inline-flex; border: 2px solid #4a4541; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.seg button { border: 0; background: transparent; color: #e6e0d6; padding: 8px 12px; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.tbl-wrap { overflow-x: auto; }
table.bal { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.bal th { text-align: right; font-size: 12px; color: #b6ada0; font-weight: 700; padding: 6px 4px; border-bottom: 1px solid #3a3632; }
.bal td { padding: 8px 4px; border-bottom: 1px solid #2e2b28; }
.bal td.pos { color: #8fd49c; font-weight: 800; }
.bal td.neg { color: #ff9a8f; font-weight: 800; }
.transfers { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.transfers li { background: #24211f; border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.transfers li b { color: var(--gold); white-space: nowrap; font-size: 18px; }
.settle .hint { color: #b6ada0; }
.settle .btn.ghost { background: transparent; color: #fff; border-color: #6a645e; }

.danger { text-align: center; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; z-index: 20; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }

.promo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.promo p { margin: 0 0 10px; color: var(--ink-2); }
.promo a.btn { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.promo small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.promo-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.promo-btns .btn { width: 100%; max-width: 280px; }
.promo .promo-logo { display: block; width: 100%; max-width: 160px; height: auto; margin: 14px auto 0; }
footer.in { padding-block: 10px 28px; }

.pill:empty { display: none; }
.sub-sec { margin-top: 18px; }
.sub-sec:first-of-type { margin-top: 0; }
.sub-sec > h3 { font-size: 15px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.item.settled { border-color: var(--ok); border-style: dashed; }
.it-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.it-head b { font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
.it-x { flex: none; min-width: 40px; min-height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 700; }
.it-x:hover { border-color: var(--ink); color: var(--ink); }
.qty-in { margin-top: 8px; }
.qty-in input { min-height: 44px; font-size: 15px; padding: 8px 10px; }
.it-status { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--gold-deep); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.it-status.ok { color: var(--ok); }
.link-btn.mini { font-size: 14px; padding: 4px 0; min-height: 32px; }
.picker { margin-top: 10px; }
.picker > summary { list-style: none; width: 100%; }
.picker > summary::-webkit-details-marker, .cat > summary::-webkit-details-marker { display: none; }
.picker-body { padding-top: 4px; }
.cat { border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; background: #fff; }
.cat > summary { list-style: none; cursor: pointer; padding: 12px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 16px; }
.cat > summary::after { content: "+"; font-size: 20px; color: var(--muted); line-height: 1; }
.cat[open] > summary::after { content: "−"; }
.cat .cnt { margin-inline-start: auto; font-size: 13px; color: var(--gold-deep); font-weight: 700; }
.cat .chips { padding: 0 10px 10px; }
.custom-form { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.custom-form > * { min-width: 0; }
.custom-form input { min-height: 44px; font-size: 15px; }
.custom-form .btn { grid-column: 1 / -1; }
.warn-box { background: var(--gold-soft); border: 2px solid var(--gold); border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.warn-box .actions { margin-top: 8px; }
.item.confirm { border: 2px solid var(--gold); }
@media (min-width: 560px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 360px) { .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); } .it-who { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== שמירה ושיתוף בין מכשירים ===== */
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.save-state { font-size: 13px; font-weight: 700; color: var(--muted); min-width: 1px; white-space: nowrap; }
.save-state.error, .save-state.offline { color: var(--red-dark); }
.save-state.saved { color: var(--ok); }
.banner.warn { background: #fdecec; border-bottom-color: var(--red); color: var(--red-dark); font-weight: 700; }
details.admin { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
details.admin.fresh { border: 2px solid var(--gold); background: var(--gold-soft); }
details.admin summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); list-style: none; }
details.admin summary::-webkit-details-marker { display: none; }
details.admin p { font-size: 14px; margin: 8px 0; }
details.admin input { direction: ltr; text-align: left; font-size: 13px; min-height: 44px; }

/* ===== המלצת השף ===== */
.advice-card { background: var(--gold-soft); border: 2px solid var(--gold); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.advice-card h2 { font-size: 21px; margin-bottom: 6px; }
.advice-card p { margin: 6px 0; font-size: 15px; color: var(--ink-2); }
.advice-card .adv-lead { font-weight: 700; color: var(--ink); font-size: 16px; }
.adv-why { background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.adv-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.adv-opt { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px; }
.adv-opt.rec { border-color: var(--ink); box-shadow: 0 4px 14px rgba(20,20,20,.10); }
.adv-opt.rec.open { border-width: 3px; }
.adv-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 0; min-height: 40px; cursor: pointer; text-align: right; font-size: 17px; color: var(--ink); }
.adv-head.static { cursor: default; }
.adv-head b { font-size: 17px; }
.adv-badge { background: var(--red); color: #fff; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.adv-opt p { font-size: 14px; }
.adv-count { font-weight: 700; color: var(--gold-deep) !important; }
.adv-chips { margin: 8px 0; }
.adv-chips .chip { min-height: 52px; }
.adv-note { font-size: 13px !important; color: var(--muted) !important; }
.adv-apply { width: 100%; margin-top: 8px; }
.adv-done { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.adv-combo { background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 8px 0 4px; display: flex; flex-direction: column; gap: 2px; }
.adv-combo span { font-size: 13px; color: var(--muted); font-weight: 700; }
.adv-combo b { font-size: 16px; color: var(--ink); }
.adv-combo small { font-size: 13px; color: var(--gold-deep); font-weight: 700; }

/* ===== קיפול אזורים (UX בלבד) ===== */
.status-line { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.status-line span { background: var(--bg); border-radius: 10px; padding: 5px 9px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary > div { min-width: 0; }
details.fold > summary h2, details.fold > summary h3 { margin: 0; }
details.fold > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
details.fold .chev { flex: none; font-size: 14px; font-weight: 700; color: var(--red-dark); white-space: nowrap; border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
details.fold .chev .c-open, details.fold[open] > summary .chev .c-shut { display: none; }
details.fold[open] > summary .chev .c-open { display: inline; }
details.fold[open] > summary { margin-bottom: 12px; }
.fold-sum { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
details.meat[open] > summary .meat-sum { display: none; }
.sub-fold { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 10px; }
.sub-fold h3 { font-size: 17px; }
.shop-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: -4px 0 10px; }
.shop-tools .link-btn { min-height: 44px; }
.shop-tools .hint { margin: 0; color: var(--ok); font-weight: 700; }
.only-open .item.claimed, .only-open .item.paid, .only-open .item.settled { display: none; }
.item.is-open { border-inline-start: 5px solid var(--red); }
.item.paid, .item.settled { padding: 8px 12px; }
.item.paid .it-who, .item.settled .it-who { margin-top: 6px; }
.tr-sum { margin: 0 0 4px; font-weight: 800; font-size: 16px; }
.tr-sum.ok { color: #8fd49c; }
.settle-more { margin-top: 14px; border-top: 1px solid #3a3632; padding-top: 8px; }
.settle-more > summary b { color: #fff; font-size: 16px; }
.settle details.fold .chev { background: transparent; border-color: #6a645e; color: #fff; }
.item.compact { padding: 0; }
.it-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; width: 100%; min-height: 48px; padding: 8px 12px; background: none; border: 0; text-align: right; cursor: pointer; font: inherit; color: inherit; align-items: center; }
.it-line-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.it-line-main b { font-size: 16px; overflow-wrap: anywhere; }
.it-line-qty { font-size: 14px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.it-line-st { grid-column: 1; font-size: 14px; font-weight: 700; color: var(--ok); }
.it-line-edit { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; font-weight: 700; color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
.it-line:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 12px; }

/* ===== נעילת תפריט הבשר ===== */
.lock-box { margin: 0 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.lock-sw { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; background: none; border: 0; padding: 0; font: inherit; font-size: 15px; font-weight: 800; color: var(--ink); text-align: right; cursor: pointer; }
.lock-sw .sw { flex: none; position: relative; width: 46px; height: 28px; border-radius: 99px; background: #cfc6b8; transition: background .15s; }
.lock-sw .sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: right .15s; }
.lock-sw[aria-checked="true"] .sw { background: var(--red); }
.lock-sw[aria-checked="true"] .sw::after { right: 21px; }
.lock-sw:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.lock-box .hint { margin: 4px 0 0; font-size: 13px; }
.lock-note { margin: 0 0 6px; padding: 8px 10px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-deep); font-weight: 700; font-size: 14px; }
.ro .chip:disabled, .ro .preset:disabled { cursor: default; opacity: 1; }
.ro .chip:disabled { color: var(--ink); }
.ro .chip:disabled:not([aria-pressed="true"]) { opacity: .6; }
.ro .preset:disabled:not([aria-checked="true"]) { color: var(--ink); opacity: .6; }
.ro .preset[aria-checked="true"]:disabled { color: #fff; }

/* ===== כפתור השף הצף ===== */
.chef-fab { position: fixed; z-index: 15; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 9px; max-width: calc(100% - 24px); min-height: 48px; padding-block: 6px; padding-inline: 6px 16px;
  border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; border: 1px solid rgba(217, 194, 110, .5);
  box-shadow: 0 6px 20px rgba(20, 20, 20, .25); transition: opacity .2s ease, transform .2s ease; }
.chef-fab:hover { border-color: var(--gold); }
.chef-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.fab-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; color: #fff; }
.fab-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.fab-tx b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.fab-tx small { font-size: 12px; font-weight: 600; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chef-fab.fab-hide { opacity: 0; transform: translateY(12px); pointer-events: none; }
body.has-fab .app { padding-bottom: 72px; }
body.has-fab .toast { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 400px) { .fab-tx small { display: none; } .chef-fab { min-height: 46px; } }
@media (prefers-reduced-motion: reduce) { .chef-fab { transition: none; } }
@media print { .chef-fab { display: none; } }
