/* Bissda Restaurant app: counter-tablet layout on top of the shared tokens. */
.r-wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.r-top .wrap { max-width: 1400px; flex-wrap: wrap; }
.r-top .store-name { font-weight: 700; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-nav { display: flex; gap: 4px; }
.r-nav a { flex: none; white-space: nowrap; overflow-wrap: normal; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.r-nav a:hover { background: var(--surface-2); }
.r-nav a[aria-current=page] { background: var(--ink); color: #fff; }
.r-nav .count { background: var(--brand); color: #fff; border-radius: 999px; font-size: .75rem; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.r-nav a[aria-current=page] .count { background: #fff; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.open { background: var(--ok-soft); color: var(--ok); }
.pill.closed { background: var(--surface-2); color: var(--ink-2); }
.pill.paused { background: var(--warn-soft); color: var(--warn); }
.pill.pending { background: var(--info-soft); color: var(--info); }
@media (max-width: 860px) {
  .r-top .wrap { padding-top: 6px; padding-bottom: 6px; row-gap: 4px; }
  .r-nav { order: 10; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .r-nav a { padding: 0 12px; }
  .r-top .store-name { max-width: 14ch; }
  .hide-sm { display: none !important; }
}

/* page headers */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }

/* paused banner */
.pause-bar { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid #f1d9a6; }
.pause-bar .r-wrap { display: flex; align-items: center; gap: 12px; min-height: 52px; flex-wrap: wrap; font-weight: 600; }

/* start gate */
.start-gate { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 2px dashed var(--brand); background: var(--brand-soft); }
.start-gate p { margin: 0; }

/* new-order alert */
.new-alert { position: sticky; top: 0; z-index: 30; background: var(--brand); color: #fff; box-shadow: 0 6px 24px rgba(184,67,10,.35); }
.new-alert .r-wrap { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.new-alert .bell { font-size: 2rem; animation: ring 1s ease-in-out infinite; }
.new-alert h2 { margin: 0; font-size: 1.4rem; color: #fff; }
.new-alert .meta { font-weight: 600; opacity: .95; }
.new-alert .grow { flex: 1; min-width: 200px; }
.na-btns { display: contents; }
.new-alert .btn { border-color: #fff; }
.new-alert .btn.light { background: #fff; color: var(--brand-dark); }
.new-alert .btn.outline { background: transparent; color: #fff; }
.new-alert .btn.outline:hover { background: rgba(255,255,255,.15); }
.new-alert .countdown { font-variant-numeric: tabular-nums; background: rgba(0,0,0,.22); padding: 2px 10px; border-radius: 999px; }
/* phones: a short bar (about a sixth of the screen) so the page underneath stays usable; tablets keep the big banner */
@media (max-width: 600px) {
  .new-alert .r-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; padding: 8px 12px; }
  .new-alert .bell { font-size: 1.4rem; }
  .new-alert .grow { min-width: 0; }
  .new-alert h2 { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .new-alert .meta { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .new-alert .na-btns { grid-column: 1 / -1; display: flex; gap: 6px; }
  .new-alert .na-btns .btn { flex: 1 1 0; min-height: 44px; padding: 0 8px; font-size: .95rem; }
  .new-alert .na-btns .btn.light { flex-grow: 1.6; }
  .new-alert .na-btns .btn .lbl { display: none; }
}
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(16deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }

/* order board */
.board-tabs { display: none; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 240px; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.col-head h2 { font-size: 1rem; margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.col-head .n { background: var(--surface); border-radius: 999px; padding: 0 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.col[data-col=new] .col-head .n { background: var(--brand); color: #fff; }
.col .empty { padding: 28px 8px; font-size: .9rem; }
.tickets { display: grid; gap: 10px; }
@media (max-width: 1100px) and (min-width: 861px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .board-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
  .board-tabs button { flex: 1 0 auto; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font: 700 .9rem var(--font); padding: 0 12px; color: var(--ink); cursor: pointer; }
  .board-tabs button[aria-selected=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .board { grid-template-columns: 1fr; }
  .board .col { display: none; background: transparent; padding: 0; }
  .board .col.active { display: block; }
  .board .col-head { display: none; }
}

.ticket { background: var(--surface); border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 6px solid var(--line-2); overflow: hidden; }
.ticket[data-status=placed] { border-top-color: var(--brand); }
.ticket[data-status=preparing], .ticket[data-status=accepted] { border-top-color: var(--info); }
.ticket[data-status=ready] { border-top-color: var(--ok); }
.ticket.fresh { animation: flash 1.2s ease-out 3; }
@keyframes flash { 50% { box-shadow: 0 0 0 4px var(--brand); } }
.t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 12px 6px; }
.t-code { font: 800 1.35rem/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }
.t-sub { font-size: .85rem; color: var(--muted); }
.t-body { padding: 4px 12px 10px; }
.t-items { list-style: none; margin: 0; padding: 0; }
.t-items > li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.t-items > li:last-child { border-bottom: 0; }
.t-qty { display: inline-grid; place-items: center; min-width: 28px; height: 26px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 800; margin-inline-end: 8px; font-variant-numeric: tabular-nums; padding: 0 4px; }
.t-name { font-weight: 700; }
.t-opts { margin: 2px 0 0; margin-inline-start: 36px; padding: 0; list-style: none; font-size: .88rem; color: var(--ink-2); }
.t-note { margin: 6px 0 0; margin-inline-start: 36px; background: #fff7c2; color: #4a3b00; border-inline-start: 4px solid #e0b400; padding: 4px 8px; border-radius: 4px; font-weight: 600; font-size: .9rem; }
.t-note::before { content: attr(data-label) " "; font-weight: 800; }
.t-money { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); }
.t-money strong { font-variant-numeric: tabular-nums; }
.t-driver { display: flex; gap: 8px; align-items: center; font-size: .9rem; padding: 8px 12px; background: var(--surface-2); }
.t-driver.here { background: var(--ok); color: #fff; font-weight: 800; font-size: 1.05rem; padding: 12px; }
.t-driver.searching { color: var(--warn); }
.t-time { font-size: .88rem; font-weight: 700; padding: 6px 12px; }
.t-time.late { color: var(--bad); }
.t-actions { display: flex; gap: 8px; padding: 10px 12px 12px; flex-wrap: wrap; }
.t-actions .btn { flex: 1 1 auto; }
.t-countdown { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--bad); }

/* chips as radios */
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 14px; }
.choice-row legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 64px; padding: 0 16px; border: 2px solid var(--line-2); border-radius: 12px; font-weight: 700; background: var(--surface); }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.reason-list { display: grid; gap: 4px; margin-bottom: 10px; }
.reason-list .check { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }

/* menu */
.cat { margin-bottom: 18px; }
.cat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cat-head h2 { margin: 0; }
.items { list-style: none; margin: 0; padding: 0; }
.item-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: 0; }
.item-row img, .item-row .ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.item-row.is-out .item-main { opacity: .6; }
.item-actions { display: flex; gap: 8px; align-items: center; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.soldout-btn { min-width: 132px; min-height: 48px; border-radius: 12px; border: 2px solid var(--ok); background: var(--ok-soft); color: var(--ok); font: 800 .9rem var(--font); cursor: pointer; padding: 0 12px; }
.soldout-btn[aria-pressed=true] { border-color: var(--bad); background: var(--bad); color: #fff; }
.opt-toggles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt-toggle { min-height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font: 600 .82rem var(--font); padding: 0 12px; cursor: pointer; color: var(--ink); }
.opt-toggle[aria-pressed=true] { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); text-decoration: line-through; }
details > summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--brand-dark); min-height: 32px; display: flex; align-items: center; }
@media (max-width: 600px) {
  .item-row { grid-template-columns: 52px 1fr; }
  .item-row img, .item-row .ph { width: 52px; height: 52px; }
  .item-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* group editor */
.grp { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--surface-2); }
.grp legend { font-weight: 700; padding: 0 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.opt-line { display: grid; grid-template-columns: 1fr 110px auto auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.opt-line .check { padding: 0; font-size: .85rem; white-space: nowrap; }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .opt-line { grid-template-columns: 1fr 90px; } }
.photo-prev { width: 120px; height: 90px; border-radius: 10px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }

/* hours editor */
.hours { display: grid; gap: 6px; }
.day { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.day:last-child { border-bottom: 0; }
.day-name { font-weight: 700; padding-top: 10px; }
.ranges { display: flex; flex-direction: column; gap: 6px; }
.range { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.range input[type=time] { width: 145px; }
.closed-label { color: var(--muted); padding-top: 10px; font-weight: 600; }
@media (max-width: 600px) { .day { grid-template-columns: 1fr; } .day-name { padding-top: 0; } }

/* settings */
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.settings .span-2 { grid-column: 1 / -1; }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } }
.pause-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.cover-prev { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.logo-prev { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }

/* earnings */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpis .card { padding: 14px; }
.kpis .label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.kpis .card.hero { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpis .card.hero .label { color: #e9e2dc; }

/* signup */
.signup-map { height: 280px; margin-top: 8px; }
.results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.results button { width: 100%; text-align: start; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; font: inherit; cursor: pointer; min-height: 44px; }
.results li:last-child button { border-bottom: 0; }
.results button:hover { background: var(--surface-2); }
.pending-hero { text-align: center; padding: 32px 16px; }
.pending-hero .big-emoji { font-size: 3rem; }
.btn[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 480px) {
  .r-top .logo small { display: none; }
  .r-top .btn.ghost { padding: 0 8px; }
  .r-top .wrap { gap: 8px; }
}

/* ---------- order types, upcoming board ---------- */
.s-requested { background: var(--warn-soft); color: var(--warn); }
.s-scheduled { background: var(--info-soft); color: var(--info); }
.badge.diet { background: var(--ok-soft); color: var(--ok); }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; vertical-align: middle; }
.btn .count-pill { margin-inline-start: 2px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.t-type { padding: 2px 12px 6px; font-size: .88rem; font-weight: 700; }
.t-type .small { font-weight: 500; margin-top: 2px; }
.up-section { margin-bottom: 24px; }
.up-section > h2 { display: flex; align-items: center; gap: 8px; }
.up-section > h2 .count-pill { background: var(--ink); }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.ticket[data-status=requested] { border-top-color: var(--warn); }
.up-card .when { font-weight: 800; font-size: 1.05rem; margin-top: 6px; }
.up-card .t-code { font-size: 1.1rem; }
.confirm-by { margin: 4px 12px 6px; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: .92rem; }
.confirm-by.urgent { background: var(--bad); color: #fff; }
.kvs { margin: 0 0 8px; display: grid; gap: 6px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: .92rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; white-space: pre-line; }
@media (max-width: 480px) { .up-grid { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 0; } }
.day-group { margin-bottom: 12px; padding-bottom: 6px; }
.day-group h3 { margin-bottom: 4px; }
.sched-list { list-style: none; margin: 0; padding: 0; }
.sched-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.sched-time { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; padding-top: 2px; white-space: nowrap; }
.sched-main details { margin-top: 4px; }
.sched-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; max-width: 180px; text-align: end; }
@media (max-width: 600px) {
  .sched-row { grid-template-columns: 76px 1fr; gap: 8px; }
  .sched-time { font-size: .95rem; }
  .sched-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; max-width: none; align-items: center; }
}

/* ---------- prep sheet ---------- */
.prep-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.prep-day.empty-day { box-shadow: none; background: var(--surface-2); }
.prep-day.empty-day h2 { color: var(--ink-2); }
.prep-table { margin-top: 8px; }
.prep-table td.qty { font-size: 1.35rem; font-weight: 800; width: 64px; }
.print-only { display: none; }
@media (max-width: 480px) { .prep-days { grid-template-columns: 1fr; } }
@media print {
  #top, #alert-slot, #pause-slot, .skip, #toasts, .no-print, .start-gate, .btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding: 0; }
  .r-wrap { max-width: none; padding: 0; }
  .print-only { display: block; color: #000; }
  .prep-days { display: block; }
  .card { box-shadow: none; border: 1px solid #999; break-inside: avoid; page-break-inside: avoid; margin-bottom: 10px; }
  .prep-day.empty-day { background: none; border-style: dashed; padding: 6px 12px; }
  .badge { border: 1px solid #999; background: none !important; color: #000 !important; }
  .muted { color: #333; }
}

/* ---------- meal drops ---------- */
.drops-layout { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .drops-layout { grid-template-columns: 1fr; } }
.drop-day { margin-bottom: 16px; }
.drop-day-h { margin: 0 0 8px; }
.drop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.drop-card { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; padding: 12px; }
.drop-card img, .drop-card .ph { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.drop-card.muted-card { box-shadow: none; background: var(--surface-2); }
.drop-card.muted-card .drop-main { opacity: .8; }
.sold-line { margin-top: 6px; font-size: .95rem; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 4px 0 6px; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; background: var(--ok); }
.past-drops { margin-top: 12px; }
.past-drops .drop-list { margin-top: 8px; }

/* ---------- settings: toggles, blocked dates ---------- */
.switch-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 14px; background: var(--surface-2); }
.dim { opacity: .55; }
.grid-3.even { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .grid-3.even { grid-template-columns: 1fr; } }
.date-chips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.date-chips li { display: inline-flex; align-items: center; gap: 4px; padding: 0; padding-inline: 12px 4px; min-height: 36px; border-radius: 999px; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: .88rem; }
.chip-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: .9rem; }
.chip-x:hover { background: rgba(0,0,0,.08); }

/* ---------- sign-up: restaurant or home chef ---------- */
.kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .kind-grid { grid-template-columns: 1fr; } }
.kind-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; padding: 20px; border-radius: var(--radius); border: 2px solid var(--line-2); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--shadow); }
.kind-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.kind-emoji { font-size: 2.2rem; }
.kind-title { font-size: 1.2rem; font-weight: 800; }
.kind-text { color: var(--ink-2); font-size: .92rem; }
/* .section's vertical padding was wiping out .narrow's side gutter on phones */
.narrow.section { padding-left: 16px; padding-right: 16px; }

/* ---------- languages ---------- */
.r-top .lang-picker select { max-width: 9.5em; }
.signin-lang { display: block; margin-top: 12px; }
/* translated menu text (restaurant-written) */
.tr-badge { display: inline-flex; gap: 4px; align-items: center; font-weight: 700; letter-spacing: .02em; background: var(--info-soft); color: var(--info); vertical-align: middle; }
.cat-head h2 .tr-badge { font-size: .72rem; }
.tr-box { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin: 0 0 14px; background: var(--surface); }
.tr-box[open] { padding-bottom: 12px; }
.tr-box > summary { gap: 8px; flex-wrap: wrap; }
.tr-box .hint { margin: 2px 0 10px; }
.tr-sum-title { font-weight: 700; }
.tr-sum-note { flex-basis: 100%; font-weight: 400; margin: 0 0 4px; }
.tr-box[open] .tr-sum-note { display: none; }
.tr-count { font-weight: 600; }
.tr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tr-lang { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 0; margin: 0; min-width: 0; }
.tr-lang legend { font-weight: 700; padding: 0 4px; }
.tr-lang .field { margin-bottom: 8px; }
.tr-box.compact { margin: 6px 0 0; background: var(--surface); }
.tr-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.tr-what { overflow-wrap: anywhere; }
.tr-inline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tr-cell { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tr-cell label { flex: none; min-width: 1.8em; font-size: .78rem; font-weight: 800; color: var(--ink-2); text-align: center; margin: 0; }
.tr-cell input { min-width: 0; width: 100%; padding: 6px 8px; min-height: 36px; }
@media (max-width: 600px) {
  .tr-grid { grid-template-columns: 1fr; }
  .tr-row { grid-template-columns: 1fr; gap: 4px; }
  .tr-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* longer translations: let headings, badges and button rows wrap instead of pushing the page sideways */
.cat-head > div:first-child { min-width: 0; flex: 1 1 220px; }
.cat-head h2, .item-main, .page-head > div, .page-head h1 { min-width: 0; overflow-wrap: anywhere; }
.cat .badge, .tags .badge, .t-type .badge, .drop-card .badge, .up-section .badge { white-space: normal; text-align: start; }
.page-head .row { flex-wrap: wrap; }
.r-wrap .chips { flex-wrap: wrap; overflow: visible; }
.r-wrap .chip { white-space: normal; text-align: center; }
.btn.block, .start-gate .btn, .t-actions .btn, .pending-hero .btn, dialog .dlg-foot .btn { white-space: normal; overflow-wrap: anywhere; text-align: center; padding-top: 6px; padding-bottom: 6px; }
.grp, .choice-row { min-width: 0; }
.grp .wrap-row .btn, .grp .spread .btn { white-space: normal; text-align: center; padding-top: 4px; padding-bottom: 4px; }

/* right-to-left (Arabic): customer names, addresses and dish names keep their own order, aligned right */
[dir=rtl] :is(.t-name, .store-name) { unicode-bidi: plaintext; text-align: right; }

/* Reward card steps */
.reward-step { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.reward-step select { flex: 1; min-width: 12rem; }

/* Reward card: results tiles and the "I understand" box */
.rw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.rw-stats div { background: var(--bg-soft, #f4efeb); border-radius: 10px; padding: 8px 10px; font-size: .8rem; color: var(--muted, #6b625b); }
.rw-stats strong { display: block; font-size: 1.15rem; color: var(--ink, #1f1a17); }
.ack-row { margin: 12px 0 8px; padding: 10px 12px; border: 1.5px solid var(--brand, #e8590c); border-radius: 10px; background: color-mix(in srgb, var(--brand, #e8590c) 6%, transparent); }
@media (max-width: 600px) { .rw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Home chef: where you cook */
.kt-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; cursor: pointer; }
.kt-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.kt-opt input { margin-top: 3px; accent-color: var(--brand); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + .hint, label.btn:focus-within { outline: 2px solid var(--brand); }
/* Import menu: the draft table */
.mi-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.mi-table th { text-align: start; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 6px; border-bottom: 1px solid var(--line); }
.mi-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mi-table td input[type=text], .mi-table textarea { width: 100%; }
.mi-table tr.warn-row td { background: var(--warn-soft); }
.mi-table td:nth-child(2) { min-width: 180px; }
.mi-table td:nth-child(4) { min-width: 240px; }
.mi-only-narrow { display: none; }
/* Tablets and phones: each dish becomes a stacked card */
@media (max-width: 900px) {
  .mi-table { min-width: 0; }
  .mi-table thead { display: none; }
  .mi-table, .mi-table tbody, .mi-table tr, .mi-table td { display: block; width: 100%; }
  .mi-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; }
  .mi-table td { border: 0; padding: 4px 0; min-width: 0 !important; }
  .mi-table td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
  .mi-only-narrow { display: inline; }
}
.mi-photo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.mi-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Promo video */
.pv-dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.pv-dish { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pv-dish:has(input:checked) { border-color: var(--brand, #e8590c); background: var(--brand-soft, #fff4ec); }
.pv-dish img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.pv-best { color: var(--brand, #e8590c); font-weight: 600; }
.pv-dish-wrap { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.pv-small { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--warn-soft, #fff8e1); color: var(--ink, inherit); }
.pv-front { margin: 4px 0 10px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.pv-front img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; }
.pv-front-row { display: flex; gap: 12px; align-items: center; }
.pv-front-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pv-sharp { margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.pv-sharp figure { margin: 0; text-align: center; }
.pv-sharp img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.pv-review { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: start; }
.pv-tall { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; }
.pv-wide { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.pv-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.pv-thumb { width: 160px; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; flex: none; }
@media (max-width: 640px) { .pv-review { grid-template-columns: 1fr; } .pv-tall { max-width: 260px; } .pv-thumb { width: 110px; } }

/* Bissda asks about a late order: "Is it ready?" / party "On track?" */
.t-ask { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #fff4e5; border: 2px solid #e8590c; color: #3b2a1e; display: grid; gap: 8px; }
.t-ask-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ask-alert { background: #b8430a; }
.ask-alert .t-ask { margin: 6px 0 0; }

/* A late order nobody has answered: covers the screen and rings until answered. */
.late-ring { position: fixed; inset: 0; z-index: 60; background: rgba(20,12,8,.88); display: grid; place-items: center; overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.late-ring-box { background: #17130f; color: #fff7ef; border-radius: 18px; width: min(640px, 100%); padding: 16px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.late-ring-bar { display: flex; align-items: center; gap: 10px; background: #dc2626; color: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 800; font-size: 1.05rem; }
.late-ring-bar .bell { font-size: 1.4rem; animation: ring 1s ease-in-out infinite; }
.late-ring h2 { margin: 0; font-size: 2rem; color: #fff; letter-spacing: .01em; }
.late-ring-min { margin: -8px 0 0; font-weight: 800; font-size: 1.15rem; color: #fca5a5; }
.late-ring-issues { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; line-height: 1.45; }
.late-ring-issues li::marker { color: #fdba74; }
.late-ring .t-ask { background: transparent; border: 0; padding: 0; color: inherit; }
.late-ring .t-ask strong { color: #fff7ef; }
.late-ring .t-ask-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.late-ring .t-ask-btns .btn { min-height: 52px; font-size: 1.05rem; }
.late-ring .small.muted { color: #d6cabe; }
@media (prefers-reduced-motion: reduce) { .late-ring-bar .bell { animation: none; } }

.plan-card h2 { font-size: 1.05rem; }
.plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.plan-pill { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.sum-rows > div { padding: 3px 0; border-bottom: 1px dashed var(--line); }

/* Store page: four tabs; Store tab in matching pairs; other tabs a list + one box */
.store-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.store-tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.store-tab.on { background: var(--ink); color: var(--bg); border-color: transparent; }
.store-tab .tab-count { font-weight: 400; font-size: .82rem; opacity: .8; }
.settings.pairs { align-items: stretch; }
.settings.pairs > .card { height: 100%; box-sizing: border-box; margin: 0; }
.status-strip { padding-top: 14px; padding-bottom: 14px; }
.store-split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.store-side { display: flex; flex-direction: column; gap: 4px; background: var(--surface-2, #f4f1ec); border-radius: 14px; padding: 8px; position: sticky; top: 76px; }
.store-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: start; border: 0; background: transparent; border-radius: 10px; padding: 10px 12px; font: inherit; cursor: pointer; color: inherit; }
.store-item:hover { background: rgba(0,0,0,.04); }
.store-item.on { background: var(--surface, #fff); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.store-one > .card { margin: 0; }
@media (max-width: 760px) { .store-split { grid-template-columns: 1fr; } .store-side { position: static; flex-direction: row; overflow-x: auto; } .store-item { white-space: nowrap; } }
/* Opening hours: one line per day */
.day { grid-template-columns: 100px 1fr; padding: 6px 0; align-items: center; }
.day-name { padding-top: 0; }
.ranges { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.range input[type=time] { width: 150px; }
.range-x { padding: 4px 8px; min-width: 0; }
.range-add .btn { padding: 4px 10px; }

.pair-stack { display: flex; flex-direction: column; gap: 16px; }
.pair-stack > .card { margin: 0; }
.pair-stack > .card:last-child { flex: 1; }
.hours-wide .hours { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 32px; }
.hours-wide .day:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) { .hours-wide .hours { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
.range-add .btn { min-width: 32px; }
/* Keep "Sign out" on the top bar line on laptop widths */
@media (min-width: 901px) and (max-width: 1440px) { .r-top .wrap { gap: 8px; } .r-nav a { padding: 0 10px; } .r-top .store-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* Promo video: your own words, with a preview of the last screen */
.pv-own { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; align-items: start; border: 1px dashed var(--line-2); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
.pv-prevbox { margin: 0; text-align: center; }
.pv-endprev { width: 170px; height: auto; border-radius: 14px; display: block; margin: 0 auto 4px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pv-rules { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; margin: 10px 0 0; }
@media (max-width: 640px) { .pv-own { grid-template-columns: 1fr; } }

/* Promo video: style picker */
.pv-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.pv-style { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.pv-style input { margin-top: 4px; flex: none; }
.pv-style.on { border-color: var(--brand); background: var(--brand-soft); }
.pv-style.off { opacity: .55; cursor: not-allowed; }
.pv-style-icon { font-size: 22px; line-height: 1; flex: none; }
.pv-style-body { min-width: 0; }
.pv-style-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--ok-soft); color: var(--ok); vertical-align: 1px; }
.pv-style-badge.later { background: var(--surface-2); color: var(--muted); }
.pv-style-note { margin: 4px 0 14px; }
.pv-style-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--brand-soft); color: var(--brand-dark); vertical-align: 1px; }
@media (max-width: 700px) { .pv-styles { grid-template-columns: 1fr; } }
.pv-style-body .tiny { font-weight: 400; margin-top: 2px; }

/* Promo video: takes and one player */
.pv-takes { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pv-take { width: 132px; text-align: left; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.pv-take.on { border-color: var(--brand); background: var(--brand-soft); }
.pv-take-new { border-style: dashed; background: transparent; }
.pv-take-pic { display: flex; align-items: center; justify-content: center; height: 64px; margin-bottom: 6px; border-radius: 8px; background: #1f1a17; color: #fff; overflow: hidden; font-size: 20px; }
.pv-take-new .pv-take-pic { background: var(--surface-2); color: var(--muted); font-size: 26px; }
.pv-take-pic img { width: 100%; height: 100%; object-fit: cover; }
.pv-shapes { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 10px; }
.pv-shape { border: 0; background: var(--surface); padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.pv-shape + .pv-shape { border-left: 1px solid var(--line-2); }
.pv-shape.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.pv-review.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
@media (max-width: 640px) { .pv-review.wide { grid-template-columns: 1fr; } .pv-take { width: calc(50% - 5px); } }

/* Promo video: unused takes are deleted after 30 days */
.pv-clean { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--radius-sm); color: var(--warn); cursor: pointer; font-size: 14px; }
.pv-gone { color: var(--warn); margin-top: 2px; }

/* "Is this your branch?" */
.branch-q { display: grid; gap: 8px; }
.branch-q-title { font-size: 15px; }
.branch-q-dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 0; font-size: 14px; }
.branch-q-dl dt { color: var(--muted); }
.branch-q-dl dd { margin: 0; }

/* paid table bookings */
.new-alert.table-alert { background: var(--ok); box-shadow: 0 6px 24px rgba(27,122,61,.35); }
.new-alert.table-alert .btn.light { color: var(--ok); }
.paid-tag { display: inline-block; font-size: .78rem; font-weight: 800; border-radius: 999px; padding: 2px 10px; background: var(--ok); color: #fff; white-space: nowrap; }
.paid-tag.dep { background: var(--warn-soft); color: var(--warn); border: 1px solid #f1d9a6; }
.tb-card { border-top: 5px solid var(--line-2); }
.tb-card.paid { border-top-color: var(--ok); } .tb-card.dep { border-top-color: var(--warn); }
.collect { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; background: var(--warn-soft); color: var(--warn); border: 1px solid #f1d9a6; border-radius: 10px; padding: 8px 10px; font-weight: 700; }
.tb-sum .paid-tag { vertical-align: middle; }
@media (max-width: 600px) { .tb-head { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* Promo video: this week's video (quick), the special, the plan, your photos, accounts and Autopilot. */
.pv-quick { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); display: grid; gap: 8px; margin: 8px 0 12px; }
.pv-quick .big-btn, .big-btn { min-height: 52px; font-size: 17px; width: 100%; }
.pv-special-in { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 10px; display: grid; gap: 6px; }
.pv-special-in textarea { width: 100%; }
.pv-special-pic { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.pv-special-pic img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); }
.pv-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pv-shot { position: relative; padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.pv-shot:disabled { cursor: default; opacity: .95; }
.pv-shot.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.pv-shot img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pv-shot em { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 6px; padding: 1px 6px; }
.pv-shot-cap { display: grid; padding: 5px 7px; font-size: 12px; line-height: 1.25; }
.pv-shot-cap b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-shot-cap span { color: var(--muted); }
.pv-shot-cap i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted); }
.pv-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
@media (max-width: 560px) { .pv-edit { grid-template-columns: 1fr; } }
.pv-offers { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 8px 10px; display: grid; gap: 2px; }
.pv-extras { display: grid; gap: 8px; margin: 4px 0 12px; }
.pv-extra { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); }
.pv-extra summary { cursor: pointer; }
.pv-own-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.pv-own-list figure { margin: 0; width: 110px; }
.pv-own-list img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; display: block; }
.pv-postto { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.linkish { background: none; border: 0; padding: 0; color: var(--brand-dark); text-decoration: underline; cursor: pointer; font: inherit; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; flex: none; }
.dot.ok { background: var(--ok); }
/* Dish deals */
.dd-row { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.dd-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; max-height: 320px; overflow: auto; }
.dd-item { display: flex; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-width: 0; }
.dd-item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.dd-item.off { opacity: .55; cursor: default; }
.dd-item img, .dd-item .ph { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; background: var(--surface-2); }
.dd-day { display: inline-flex; gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; min-height: 36px; }
.dd-new summary { cursor: pointer; padding: 6px 0; }

/* Promo video → Add dish photos (pop-up). */
.pv-photo-list { display: flex; flex-direction: column; margin-top: 8px; max-height: 60vh; overflow-y: auto; }
.pv-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pv-photo-th { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.pv-photo-need { display: flex; align-items: center; justify-content: center; background: var(--warn-soft); color: var(--warn); font-size: 20px; }
.pv-photo-pick { flex-basis: 100%; }
.pv-photo-lib { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-photo-libitem { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 76px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
.pv-photo-libitem img { width: 66px; height: 66px; object-fit: cover; border-radius: 6px; }
.pv-photo-libitem:hover, .pv-photo-libitem:focus-visible { border-color: var(--brand); }
