/* portal/style.css - calm, phone-first. Logical properties throughout so Urdu and Punjabi mirror
   properly. Contrast: ink 15:1, muted 6.4:1, accent (white on it) 7.9:1, danger 6.9:1 on the ground. */
:root {
  --bg: #f6f4ef; --card: #ffffff; --line: #e2ddd2; --line-strong: #c9c2b4;
  --ink: #1d2125; --muted: #565d66; --accent: #0f5a4b; --accent-ink: #ffffff; --accent-soft: #e3efe9;
  --danger: #a3221b; --danger-soft: #fbeceb; --ok: #1c6b3b; --warn: #8a4b00; --warn-soft: #fdf2e1;
  --radius: 14px; --gutter: 16px; --tap: 44px; --nav-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rtl: "Noto Nastaliq Urdu", "Segoe UI", Tahoma, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); overflow-x: hidden; }
html[dir="rtl"] body { font-family: var(--font-rtl); line-height: 2; font-size: 16px; }
/* data (dish names, prices, people's names) keeps its own script's metrics */
.data { font-family: var(--font); line-height: inherit; unicode-bidi: isolate; }
html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select { font-family: var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-weight: 600; }
.h1 { font-size: 1.6rem; line-height: 1.25; margin-block: 8px 12px; }
.h2 { font-size: 1.25rem; line-height: 1.3; }
.h3 { font-size: 1.075rem; line-height: 1.35; margin-block-end: 8px; }
html[dir="rtl"] .h1 { line-height: 1.9; } html[dir="rtl"] .h2, html[dir="rtl"] .h3 { line-height: 1.9; }
.h-sub { font-size: 1rem; font-weight: 400; display: block; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.pad { padding: var(--gutter); }
.big { font-size: 1.15rem; font-weight: 600; margin: 8px 0 4px; }
.note { display: block; color: var(--muted); font-size: 0.875rem; margin: 6px 0 0; }
.note.warn, .warn-box { color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 8px 12px; }
.err { color: var(--danger); }
:focus-visible { outline: 3px solid #1f6feb; outline-offset: 2px; }

.practice { background: #fff3c4; color: #4a3800; text-align: center; font-size: 0.875rem; padding: 6px var(--gutter); }

/* ── buttons ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); min-width: var(--tap);
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; font-size: 0.975rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
html[dir="rtl"] .btn { line-height: 1.6; padding-block: 4px; }
.btn:hover { background: #0b4639; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.ghost { background: var(--card); color: var(--accent); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn.sm { min-height: var(--tap); padding: 6px 14px; font-size: 0.9rem; }
.btn.wide { width: 100%; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn .ic { width: 18px; height: 18px; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.btn.file:focus-within { outline: 3px solid #1f6feb; outline-offset: 2px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[dir="rtl"] .btn .ic, html[dir="rtl"] .tab .ic { transform: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 12px; }
.row.end { justify-content: flex-end; }

/* switch: the whole control is the button */
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 4px 0; background: none; border: 0;
  font: inherit; color: var(--ink); cursor: pointer; text-align: start; }
.switch-track { width: 48px; height: 28px; border-radius: 999px; background: #b9b3a6; position: relative; flex: none; transition: background .15s; }
.switch-knob { position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: inset-inline-start .15s; }
.switch[aria-checked="true"] .switch-track { background: var(--accent); }
.switch[aria-checked="true"] .switch-knob { inset-inline-start: 23px; }
.switch:disabled { opacity: .6; cursor: progress; }
.fixed-on { display: flex; align-items: center; gap: 12px; min-height: var(--tap); margin: 0; }
.switch-track.is-fixed { background: #7f9c93; }
.switch-track.is-fixed .switch-knob { inset-inline-start: 23px; }
.switch-label { font-weight: 550; }
.switch .when-off { display: none; }
.switch[aria-checked="false"] .when-on { display: none; }
.switch[aria-checked="false"] .when-off { display: inline; }
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-knob { transition: none; } }

/* fields */
.field { display: block; margin-block: 14px 0; }
.label { display: block; font-weight: 600; font-size: 0.925rem; margin-block-end: 4px; }
input, textarea, select { width: 100%; min-height: var(--tap); font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; }
textarea { resize: vertical; line-height: 1.5; }
input:disabled { background: #efece5; color: #6b7178; }
input[type="time"] { max-width: 9.5rem; }
.save-status { margin: 8px 0 0; font-size: 0.925rem; min-height: 1.4em; }
.save-status:empty { min-height: 0; margin: 0; }
.save-status.is-ok { color: var(--ok); font-weight: 600; }
.save-status.is-error { color: var(--danger); font-weight: 600; }

/* ── layout ────────────────────────────────────────────────────── */
.center { min-height: 80vh; display: grid; place-items: center; padding: var(--gutter); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-block: 0 14px; }
.card.narrow { width: 100%; max-width: 440px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 8px; }
.card-head .h3 { margin: 0; }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block-end: 12px; }
.wordmark { font-family: var(--font); font-weight: 700; color: var(--accent); letter-spacing: 0; }
.hint { background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; }

.langs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: #fff; }
.lang { min-height: 40px; min-width: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.lang[lang="ur"], .lang[lang="pa-Arab"] { font-family: var(--font-rtl); line-height: 1.6; }
.lang[aria-pressed="true"] { background: var(--accent); color: #fff; }
.lang + .lang { border-inline-start: 1px solid var(--line-strong); }

.top { position: sticky; top: 0; z-index: 20; background: rgba(246,244,239,.97); border-block-end: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 8px var(--gutter); }
.top-name { display: flex; flex-direction: column; min-width: 0; }
.top-name .wordmark { font-size: 0.8rem; }
.rname { font-weight: 650; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.top-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.top-tools .btn span { display: none; }
.shell { padding: 0 var(--gutter) calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
main { max-width: 760px; margin-inline: auto; padding-block: 8px; outline: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* bottom bar on the phone */
.tabs { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-block-start: 1px solid var(--line); padding-block-end: env(safe-area-inset-bottom); }
.tab { min-height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 2px;
  border: 0; background: none; font: inherit; font-size: 0.75rem; line-height: 1.2; color: var(--muted); cursor: pointer; text-align: center; }
html[dir="rtl"] .tab { font-size: 0.75rem; line-height: 1.5; }
.tab[aria-current="page"] { color: var(--accent); font-weight: 700; }
.tab[aria-current="page"] .ic { stroke-width: 2.3; }

/* ── Today ─────────────────────────────────────────────────────── */
.status-list { list-style: none; margin: 0; padding: 0; }
.status { display: flex; align-items: center; gap: 10px; padding: 6px 0; margin: 0; }
.status strong { margin-inline-start: auto; }
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa0a6; flex: none; }
.status.is-on .dot { background: var(--ok); }
.status.is-off strong { color: var(--muted); }
.sum { font-weight: 600; margin: 0 0 8px; }
.orders { list-style: none; margin: 0; padding: 0; }
.order { border-block-start: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.order-top { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.order-time { font-weight: 650; }
.order-who, .order-items { grid-column: 1; }
.order-items { color: var(--muted); font-size: 0.925rem; }
.order-total { font-weight: 650; grid-column: 2; grid-row: 2 / span 2; align-self: center; }
.pill { font-size: 0.8rem; padding: 2px 10px; border-radius: 999px; background: #ece8df; color: var(--ink); line-height: 1.6; }
.pill.st-pending { background: #fde9c8; color: #6a3d00; }
.pill.st-preparing, .pill.st-confirmed { background: #dceefa; color: #0b4a75; }
.pill.st-ready { background: var(--accent-soft); color: var(--accent); }
.pill.st-cancelled { background: var(--danger-soft); color: var(--danger); }

/* ── Menu ──────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px 16px; }
.chip { min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.cat { margin-block-end: 22px; scroll-margin-top: 90px; }
.cat > .h2 { margin-block-end: 10px; }
.dishes { display: grid; gap: 12px; }
.dish { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 112px 1fr; }
.dish-photo { background: #efe9dd; position: relative; min-height: 112px; display: grid; place-items: center; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.plate { font-family: Georgia, "Times New Roman", serif; font-size: 2.6rem; color: #8b6f47; line-height: 1; }
.plate.sm { font-size: 1.6rem; width: 72px; height: 72px; border-radius: 12px; background: #efe9dd; display: grid; place-items: center; }
.plate-note { position: absolute; inset-block-end: 6px; inset-inline: 0; text-align: center; font-size: 0.75rem; color: #6b5a40; }
.dish-body { padding: 10px 12px 12px; min-width: 0; }
.dish-name { font-size: 1.025rem; font-weight: 650; line-height: 1.35; }
.dish-price { margin-block: 2px 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.size { font-size: 0.925rem; }
.dish-desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dish.is-sold .dish-photo { filter: grayscale(.85); opacity: .7; }
.dish.is-sold .dish-name::after { content: ""; }
.dish .switch-label { color: var(--ink); }
.dish.is-sold .switch-label { color: var(--danger); font-weight: 700; }

/* editor sheet */
body.has-sheet { overflow: hidden; }
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(20,22,24,.45); display: grid; align-items: end; justify-items: center; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); }
.sheet.small { max-width: 460px; }
.sizes { border: 0; padding: 0; margin: 14px 0 6px; }
.size-row { display: grid; grid-template-columns: 1fr 7.5rem; gap: 0 10px; align-items: end; border-block-end: 1px dashed var(--line); padding-block-end: 10px; }
.size-row .btn { grid-column: 1 / -1; justify-self: start; margin-block-start: 8px; }
.size-row .field { margin-block-start: 8px; }
.photo-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ed-photo { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }

/* ── Hours ─────────────────────────────────────────────────────── */
.hrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding-block: 12px; border-block-end: 1px solid var(--line); }
.hrow:first-child { padding-block-start: 0; }
.hday { font-weight: 650; }
.htimes { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; }
.field.inline { margin: 0; }
.hrow.is-closed .htimes { opacity: .55; }
.h-late { grid-column: 1 / -1; margin: 0; }

/* ── Ordering / website ───────────────────────────────────────── */
.opt { padding-block: 6px; border-block-end: 1px solid var(--line); }
.opt:last-of-type { border-block-end: 0; }
.pics { display: grid; gap: 16px; }
.pic { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-block-start: 4px; }
.pic-box { background: #efe9dd; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.pic-box.round { width: 88px; height: 88px; border-radius: 50%; }
.pic-box.wide { width: 100%; max-width: 320px; aspect-ratio: 1.91 / 1; border-radius: 12px; }
.pic-box img { width: 100%; height: 100%; object-fit: cover; }
.where::before { content: ""; }
.colours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.colour-pair { display: flex; gap: 8px; }
.colour-pair input[type="color"] { width: 52px; min-width: 52px; padding: 2px; height: var(--tap); }
.hex { font-family: ui-monospace, Consolas, monospace; }
.swatch { margin-block: 12px 4px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw-btn { background: var(--s-main, #c2410c); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 600; }
.sw-dark { background: var(--s-dark, #7c2d12); color: #fff; padding: 8px 14px; border-radius: 8px; }
.warn-box { margin: 8px 0 0; }
.more { background: transparent; border-style: dashed; }

.toast { position: fixed; z-index: 60; inset-inline: var(--gutter); inset-block-end: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); margin-inline: auto; max-width: 420px;
  background: #1d2125; color: #fff; border-radius: 12px; padding: 10px 16px; text-align: center; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.is-shown { opacity: 1; transform: none; }
.toast.is-error { background: var(--danger); }
.pick-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.pick { width: 100%; min-height: 56px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; text-align: start; color: var(--ink); }
.pick:hover { border-color: var(--accent); }
.pick-name { font-weight: 650; }
.pick-meta { color: var(--muted); font-size: 0.875rem; }

@media (min-width: 420px) { .top-tools .btn span { display: inline; } }
@media (min-width: 640px) {
  .dishes { grid-template-columns: 1fr 1fr; }
  .pics { grid-template-columns: auto 1fr; }
  .sheet-back { align-items: center; }
  .sheet { border-radius: 18px; }
  .hrow { grid-template-columns: 9rem auto 1fr; }
  .htimes { grid-column: auto; justify-content: flex-end; }
}
/* desktop: side list instead of the bottom bar */
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; max-width: 1240px; margin-inline: auto; padding-block-end: 40px; }
  .tabs { position: sticky; inset: auto; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 16px 0; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: 12px; font-size: 1rem; text-align: start; }
  html[dir="rtl"] .tab { font-size: 1rem; }
  .tab:hover { background: #ece8df; }
  .tab[aria-current="page"] { background: var(--accent-soft); }
  main { max-width: 960px; margin-inline: 0; padding-block-start: 16px; }
  .dishes { grid-template-columns: repeat(3, 1fr); }
  .dish { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .dish-photo { aspect-ratio: 4 / 3; min-height: 0; }
  .toast { inset-block-end: 24px; }
  .top { padding-inline: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter))); }
}

/* ── 2026-10-19: the connection pass (offers, sections, catering, reviews, social, halal, contact) ── */
.practice.sandbox { background: #dceefa; color: #0b3a5c; }
.bookings { list-style: none; margin: 0; padding: 0; }
.booking { border-block-start: 1px solid var(--line); padding: 10px 0; }
.pill.st-pending { background: #fde9c8; color: #6a3d00; }
.promo-list { list-style: none; margin: 0; padding: 0; }
.promo-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-block-start: 1px solid var(--line); }
.promo-row:first-child { border-block-start: 0; }
.promo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.promo-title { font-weight: 650; overflow-wrap: anywhere; }
.promo-row.is-off .promo-title { color: var(--muted); }
.review-quote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; }
.plain { margin: 0; padding-inline-start: 1.1em; }
.plain li + li { margin-block-start: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.two .field { min-width: 0; }
fieldset.group { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 12px; margin: 16px 0 0; min-width: 0; }
fieldset.group > legend { padding: 0 6px; }
.rtl-in { font-family: var(--font-rtl) !important; line-height: 1.9; }
.cat-list { list-style: none; margin: 8px 0 12px; padding: 0; }
.cat-row { border-block-end: 1px solid var(--line); padding-block: 4px 10px; }
.cat-row.is-hidden .cat-name { color: var(--muted); background: #f3f0ea; }
.cat-row .field { margin-block-start: 8px; }
.cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 6px; }
.cat-tools .switch { margin-inline-end: auto; }
.pk-item { display: grid; grid-template-columns: 1fr 7.5rem; gap: 0 10px; align-items: end; border-block-end: 1px dashed var(--line); padding-block-end: 10px; }
.pk-item .btn { grid-column: 1 / -1; justify-self: start; margin-block-start: 8px; }
.pk-item .field { margin-block-start: 8px; min-width: 0; }
fieldset.group > .btn { margin-block-start: 10px; }
.kvs { margin: 0; display: grid; gap: 8px; }
.kv { display: grid; grid-template-columns: minmax(7rem, 34%) 1fr; gap: 10px; }
.kv dt { font-weight: 600; } .kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 380px) { .two, .kv { grid-template-columns: 1fr; } }

/* ── 2026-10-19 rework 1 (after the 5.9 design review) ─────────────────────────────────────── */
.ltr { unicode-bidi: isolate; direction: ltr; font-family: var(--font); white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Urdu and Punjabi read larger: 18px text, 16px notes, 14px tab labels */
html[dir="rtl"] body { font-size: 18px; }
html[dir="rtl"] .note, html[dir="rtl"] .small, html[dir="rtl"] .save-status { font-size: 16px; }
html[dir="rtl"] .tab { font-size: 14px; }
html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select { font-size: 17px; }
.lang { min-height: var(--tap); min-width: var(--tap); }

/* header: opaque, the name never clipped at its start, one account button */
.top { background: var(--bg); }
.top-name { flex: 1 1 0; min-width: 0; }
.rname { display: block; max-width: 100%; unicode-bidi: plaintext; text-align: start; }
.acct { position: relative; flex: none; }
.acct-btn { gap: 6px; padding-inline: 12px; }
.acct-btn .ic { width: 20px; height: 20px; }
.acct-lang { font-size: 0.85rem; }
.acct-menu { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px); z-index: 40; min-width: 260px; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 12px; display: grid; gap: 6px; }
.acct-menu[hidden] { display: none; }
.acct-menu .label { margin: 0; }
.menu-item { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 10px; border: 0; border-radius: 10px; background: none;
  font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; text-align: start; }
.menu-item:hover { background: #f1ede5; }
.menu-item.quiet { color: var(--muted); font-size: 0.925rem; }
.menu-item.danger { color: var(--danger); }
.menu-item .ic { width: 18px; height: 18px; }
.quiet-link a { color: var(--muted); display: inline-block; min-height: var(--tap); line-height: var(--tap); }

/* one save bar per screen, only with unsaved edits */
.savebar { position: fixed; z-index: 35; inset-inline: 0; inset-block-end: calc(var(--nav-h) + env(safe-area-inset-bottom)); background: #1d2125; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px var(--gutter); box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
.savebar[hidden] { display: none; }
.savebar-btns { display: flex; gap: 8px; }
.savebar .btn.ghost { background: transparent; color: #fff; border-color: #8a9096; }
.savebar .btn:not(.ghost) { background: #fff; color: var(--accent); border-color: #fff; }
body.has-savebar .shell { padding-block-end: calc(var(--nav-h) + 120px + env(safe-area-inset-bottom)); }

/* dialog */
.dialog-back { position: fixed; inset: 0; z-index: 70; background: rgba(20,22,24,.5); display: grid; place-items: center; padding: var(--gutter); }
.dialog { background: var(--card); border-radius: 16px; padding: 18px; width: 100%; max-width: 460px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.dialog p { margin: 4px 0 0; color: var(--muted); }

/* toast with a link */
.toast.has-link { pointer-events: auto; }
.toast a { color: #b7f0d6; font-weight: 700; margin-inline-start: 6px; display: inline-block; min-height: 32px; line-height: 32px; }
.toast.is-error a { color: #fff; }
body.has-savebar .toast { inset-block-end: calc(var(--nav-h) + 80px + env(safe-area-inset-bottom)); }

/* Today */
.now { border-inline-start: 6px solid var(--accent); }
.headline { font-size: 1.3rem; font-weight: 650; margin: 0; line-height: 1.35; }
html[dir="rtl"] .headline { line-height: 1.9; }
.headline-why { margin: 6px 0 0; color: var(--warn); font-weight: 600; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-radius: var(--radius); padding: 10px 14px; margin-block: 0 14px; }
.banner p { margin: 0; flex: 1 1 14rem; }
.banner.warn { background: var(--warn-soft); color: #5c3200; border: 1px solid #f0d3a8; }
.soldbar { background: var(--danger-soft); border: 1px solid #f1c9c6; border-radius: var(--radius); padding: 12px 14px; margin-block: 0 14px; }
.soldbar .h3 { color: var(--danger); margin-block-end: 6px; }
.soldbar ul { list-style: none; margin: 0; padding: 0; }
.soldbar li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.soldbar .note { margin-block-start: 4px; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist .progress { height: 8px; border-radius: 99px; background: #ece8df; overflow: hidden; margin: 4px 0 8px; }
.checklist .progress span { display: block; height: 100%; background: var(--accent); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 6px 4px; border: 0; border-block-end: 1px solid var(--line);
  background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: start; }
.check-item > span:nth-child(2) { flex: 1; }
.check-item .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.check-item .tick .ic { width: 16px; height: 16px; color: #fff; }
.is-done .tick { background: var(--ok); border-color: var(--ok); }
.is-done .check-item > span:nth-child(2) { color: var(--muted); text-decoration: line-through; }
.check-item > .ic, .sum-row > .ic { width: 18px; height: 18px; color: var(--muted); }
html[dir="rtl"] .check-item > .ic, html[dir="rtl"] .sum-row > .ic { transform: scaleX(-1); }
.icon-btn.back .ic { transform: scaleX(-1); }
html[dir="rtl"] .icon-btn.back .ic { transform: none; }

/* Menu: search right under the heading, then one-line summaries, then the dishes */
.page-head .h1 { margin-block: 4px 8px; }
.searchbar { position: sticky; top: var(--top-h, 60px); z-index: 15; background: var(--bg); padding-block: 6px; margin-block-end: 6px; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; padding-inline: 12px; }
.search .ic { width: 20px; height: 20px; color: var(--muted); }
.search input { border: 0; padding-inline: 0; min-height: var(--tap); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid #1f6feb; outline-offset: 2px; }
.summary { list-style: none; margin: 0 0 12px; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.summary li + li { border-block-start: 1px solid var(--line); }
.sum-row { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: start; }
.sum-row:hover { background: #faf8f4; }
.sum-title { font-weight: 650; flex: none; }
.sum-sub { flex: 1; min-width: 0; color: var(--muted); font-size: 0.9rem; text-align: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-block-end: 4px; margin-block: 4px 12px; }
.chip { flex: none; min-height: var(--tap); }
.dish .switch[aria-checked="true"] .switch-track { background: var(--ok); }
.dish .switch[aria-checked="false"] .switch-track { background: #9aa0a6; }
.dish.is-sold .switch-label { color: var(--ink); font-weight: 550; }
.sold-line { margin: 0 0 6px; color: var(--danger); font-weight: 700; font-size: 0.9rem; }
.dish.is-sold { border-color: #e8b4b0; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px #f0b429; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; outline: 3px solid #f0b429; } }

/* sheets: a head, a body that scrolls, a sticky foot with Cancel / Save */
.sheet { padding: 0; display: flex; flex-direction: column; }
.sheet-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px var(--gutter) 8px; border-block-end: 1px solid var(--line); }
.sheet-head .h2 { flex: 1; outline: none; }
.sheet-body { padding: 4px var(--gutter) 16px; overflow-y: auto; flex: 1; }
.sheet-body > .btn:first-child { margin-block: 10px 6px; }
.sheet-foot { position: sticky; inset-block-end: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border-block-start: 1px solid var(--line); }
.sheet.small { padding: 18px var(--gutter); }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; flex: none; }
.icon-btn .ic { width: 20px; height: 20px; }
.req { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.field-err { color: var(--danger); font-weight: 600; font-size: 0.9rem; margin: 4px 0 0; }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }
.money-in { position: relative; display: block; }
.money-in .cur { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-family: var(--font); }
.money-in input { padding-left: 28px; }
details.more { border: 1px solid var(--line); border-radius: 12px; margin-block-start: 14px; padding: 0 12px; }
details.more > summary { min-height: var(--tap); display: flex; align-items: center; font-weight: 650; cursor: pointer; }
details.more[open] { padding-block-end: 12px; }
.preset-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 8px; }
.preset-chips .note { margin: 0; }

/* website: colour pairs, the logo seen whole, the live preview beside the cards on a wide screen */
.pairs { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 6px 10px; }
.pair { width: 64px; height: var(--tap); display: flex; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; box-shadow: 0 0 0 1px var(--line-strong); }
.pair span { flex: 1; }
.pair[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.pic-box.logo { width: 96px; height: 96px; border-radius: 18px; background: #fff; }
.pic-box.logo img { object-fit: contain; padding: 6px; }
.pic .save-status { flex-basis: 100%; }
.preview-pane { display: none; }
@media (min-width: 1200px) {
  main.with-preview { max-width: none; }
  .web-grid.has-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 46%); gap: 24px; align-items: start; }
  .preview-pane { display: block; position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .preview-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-block-end: 1px solid var(--line); font-weight: 650; }
  .preview-pane iframe { width: 100%; height: calc(100vh - 160px); border: 0; display: block; }
  /* a wide screen uses the width: the menu list stays beside the dish editor (a drawer, not a centred box) */
  .sheet-back { justify-items: end; align-items: stretch; background: rgba(20,22,24,.25); }
  .sheet { max-height: 100vh; height: 100vh; border-radius: 0; max-width: 560px; }
  .sheet.wide { max-width: 640px; }
  .sheet.small { height: auto; align-self: center; border-radius: 18px; margin-inline-end: 24px; }
  .savebar { inset-block-end: 0; }
}
@media (min-width: 960px) { .savebar { inset-block-end: 0; } body.has-savebar .shell { padding-block-end: 100px; } }

.sum-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.sum-text .sum-sub { text-align: start; white-space: normal; }
@media (min-width: 640px) { .pics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 2026-10-19 rework 2 (review 7.4) ──────────────────────────────────────────────────────── */
/* Latin data in a right-to-left page: the system sans, not the Urdu font's Latin letters */
html[dir="rtl"] .latin, html[dir="rtl"] .latin * { font-family: var(--font) !important; line-height: 1.5; }
html[dir="rtl"] input.latin, html[dir="rtl"] textarea.latin { line-height: 1.4; }
/* inside a sheet, messages sit in its footer */
.sheet-foot { align-items: center; flex-wrap: wrap; }
.foot-msg { flex: 1 1 10rem; color: var(--ok); font-weight: 600; font-size: 0.925rem; }
.foot-msg.is-error { color: var(--danger); }
.foot-msg:empty { display: none; }
.toast a { min-height: var(--tap); line-height: var(--tap); display: inline-flex; align-items: center; padding-inline: 4px; }
/* dishes switched off: quiet, not an alarm */
.soldcard .h3 { margin-block-end: 4px; }
.sold-list { list-style: none; margin: 0; padding: 0; }
.sold-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-block-end: 1px solid var(--line); }
.sold-list li:last-child { border-block-end: 0; }
.sold-name { flex: 1 1 10rem; min-width: 0; }
.sold-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.soldcard .sum-row { padding-inline: 0; }
.seasonal { margin-block-start: 12px; }
/* the custom hex boxes: room for "#f5d76e" */
.hex { min-width: 8.5ch; flex: 1; letter-spacing: 0; }
.colour-pair input[type="color"] { flex: none; }
@media (max-width: 639px) { .colours { grid-template-columns: 1fr; } }
.pair[data-current] { width: 88px; }
/* the home-page photo */
.hero-note { display: flex; gap: 12px; align-items: center; margin-block-start: 16px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.hero-note p { margin: 0; }
.ok-note { color: var(--ok); font-weight: 600; }
#stripe-link { margin-block-start: 6px; }
/* right-to-left summaries and headings: Nastaliq is tall, keep the dishes on the first screen */
html[dir="rtl"] .sum-row { padding-block: 4px; }
html[dir="rtl"] .sum-text > span { line-height: 1.7; }
html[dir="rtl"] .page-head .h1 { line-height: 1.6; margin-block: 2px 4px; }

/* ── 2026-10-19 rework 3 (review 7.8) ──────────────────────────────────────────────────────── */
/* My website: a sticky row of section chips, like Menu's search */
.jumpbar { position: sticky; top: var(--top-h, 60px); z-index: 15; background: var(--bg); padding-block: 4px; margin-block-end: 8px; }
.jumpbar .chips { margin: 0; }
.chip[aria-current="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.card { scroll-margin-top: 130px; }
/* halal and address folded into one row */
details.lb-card > summary { min-height: var(--tap); display: flex; flex-direction: column; justify-content: center; cursor: pointer; list-style-position: inside; }
details.lb-card > summary .h3 { margin: 0; }
details.lb-card .card { border: 0; padding: 0; margin-block: 14px 0; }
.site-link { display: inline-flex; align-items: center; min-height: var(--tap); }
.h-odd { grid-column: 1 / -1; margin: 0; color: var(--warn); }
/* English tab labels a little larger */
html[dir="ltr"] .tab { font-size: 0.85rem; }
@media (min-width: 960px) { html[dir="ltr"] .tab { font-size: 1rem; } }

/* ── 2026-10-19 rework 4 ── the section chips wrap instead of scrolling sideways; a lower, tighter row */
.jumpbar { padding-block: 2px; }
.jumpbar .chips { flex-wrap: wrap; overflow: visible; gap: 4px; padding: 0; }
.jumpbar .chip { padding-inline: 10px; font-size: 0.85rem; flex: 1 1 auto; }
html[dir="rtl"] .jumpbar .chip { line-height: 1.5; padding-block: 0; }
.pairs-label { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-block-end: -4px; }
/* right-to-left at desktop: the side menu in Nastaliq at least as large as the English (18px) */
@media (min-width: 960px) { html[dir="rtl"] .tab { font-size: 18px; } }

/* 2026-10-19 round 2 onboarding: not live yet */
.approval { background: var(--warn-soft); color: #5c3200; border-block-end: 1px solid #f0d3a8; padding: 10px var(--gutter); }
.approval p { margin: 0 auto; max-width: 1240px; }
.approval.is-changes { background: var(--danger-soft); color: var(--danger); border-color: #f1c9c6; }
.approval p + p { margin-top: 8px; }
.checklist .card-head { flex-wrap: nowrap; } .checklist .card-head .h3 { min-width: 0; } .checklist .card-head .btn { white-space: nowrap; flex: none; }
