/* Kagat Pilot v1 — modern, bold, clean, fast.
   White content on a cool light canvas, near-black text, charcoal chrome.
   Red is the one signature (mark, primary action, active, selected, urgent) and never a page ground.
   Status stays restrained: green positive, amber attention, blue in-progress, red exception.
   Customer and rider are phone-first and scannable; merchant and ops are dense working screens. */
:root {
  /* grounds — pure white content on a cool light canvas */
  --surface: #FFFFFF; --canvas: #F7F8FA; --surface-2: #F1F3F5;
  --border: #E4E7EB; --border-strong: #CDD2D9;
  /* ink — near-black, cool neutrals */
  --ink: #15181D; --ink-2: #434A54; --muted: #656D78; --charcoal: #16181D; --charcoal-2: #23262D;
  /* the Kagat signature */
  --red: #DC1F26; --red-deep: #A8161C; --red-soft: #FDECEC;
  /* restrained status vocabulary */
  --amber: #F59E0B; --amber-soft: #FEF3E2; --amber-ink: #B45309;
  --green: #0C7A46; --green-soft: #E6F6EE; --green-ink: #0A6B3D;
  --info: #1F6FEB; --info-soft: #E8F0FE; --info-ink: #14509E;
  --warn: #B45309; --warn-soft: #FEF3E2;
  --danger: #C8141B; --danger-soft: #FDECEC;
  /* form */
  --radius: 10px; --radius-sm: 6px; --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .08);
  --shadow-lg: 0 8px 16px rgba(16, 24, 40, .10), 0 24px 48px rgba(16, 24, 40, .16);
  --font-display: Archivo, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: Archivo, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --demobar-h: calc(52px + env(safe-area-inset-top));
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--border-strong) var(--surface-2); }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
::selection { background: var(--red-soft); color: var(--ink); }
input, textarea, select { caret-color: var(--red); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid var(--surface-2); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-2); }

/* One family, two widths: display runs Archivo expanded and tight, UI runs normal. */
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .4em; color: var(--ink); font-family: var(--font-display); text-wrap: balance; font-stretch: 112%; }
h1 { font-size: clamp(2.05rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; letter-spacing: -.028em; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
h4 { font-size: .95rem; font-weight: 700; letter-spacing: -.015em; font-stretch: 100%; }
p { margin: 0 0 .8em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 10px 14px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 600; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small, small { font-size: .86rem; }
.center { text-align: center; }
.text-danger { color: var(--danger); font-weight: 600; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.wrap.narrow { max-width: 720px; }
.section { padding-top: 30px; padding-bottom: 42px; }
/* label caps, used where a field or column needs naming */
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; font-weight: 700; color: var(--red-deep); margin: 0 0 .7em; font-family: var(--font-body); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--red-deep); text-decoration: none; border-bottom: 1.5px solid var(--red-soft); padding-bottom: 1px; }
.link-arrow:hover { border-bottom-color: var(--red); }
.link-arrow svg { flex: none; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; min-height: 44px; font: inherit; font-weight: 600; color: var(--red-deep); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ── Demo role switcher ─────────────────────────────── */
.demobar { position: sticky; top: 0; z-index: 60; height: var(--demobar-h); display: flex; align-items: center; gap: 12px; padding: env(safe-area-inset-top) 12px 0; background: var(--ink); color: #EDEFF2; box-shadow: 0 2px 10px rgba(16,24,40,.25); }
.demobar-tag { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border: 1px solid #656D78; color: #C2C8D0; padding: 4px 8px; border-radius: 4px; flex: none; }
.demobar-roles { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.demobar-roles::-webkit-scrollbar { display: none; }
.demobar-role { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; min-height: 40px; border-radius: 8px; color: #D5DAE1; text-decoration: none; font-weight: 500; font-size: .9rem; white-space: nowrap; transition: background .15s; }
.demobar-role small { font-size: .72rem; color: #AEB6C0; font-weight: 400; }
.demobar-role:hover { background: rgba(255,255,255,.07); color: #FFFFFF; }
.demobar-role.active { background: var(--red); color: #fff; }
.demobar-role.active small { color: #FFFFFF; }
.demobar-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.demobar-clock { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.07); border-radius: 8px; padding: 0 10px; min-height: 40px; position: relative; cursor: pointer; }
.demobar-clock select { position: absolute; inset: 0; width: 100%; min-height: 0; opacity: 0; cursor: pointer; border: 0; }
.demobar-clock:focus-within { outline: 3px solid var(--red); outline-offset: 1px; }
.demobar-clock select option { color: var(--ink); }
.demobar-now { font-size: .9rem; }
.demobar-reset { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #D5DAE1; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; min-height: 40px; padding: 0 12px; cursor: pointer; font-size: .85rem; font-weight: 500; }
.demobar-reset:hover { background: rgba(255,255,255,.07); color: #FFFFFF; }
@media (max-width: 1100px) { .demobar-role small { display: none; } }
@media (max-width: 900px) { .demobar-tag { display: none; } .demobar-reset span { display: none; } }
@media (max-width: 760px) {
  .demobar { gap: 6px; padding: 0 8px; }
  .demobar-role { padding: 7px 9px; font-size: .84rem; gap: 5px; }
}
@media (max-width: 440px) { .demobar-role span { display: none; } .demobar-role { padding: 8px 10px; } .demobar-role svg { width: 20px; height: 20px; } }

/* ── Logo ─────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { display: block; user-select: none; }
.boot-splash { min-height: 100vh; display: grid; place-items: center; background: #16181D; }
.boot-splash img { width: min(46vw, 180px); height: auto; }

/* ── Buttons ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap; font-family: var(--font-body);
  transition: background .15s, border-color .15s, transform .1s var(--ease); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #FFFFFF; }
.btn-primary:hover:not(:disabled) { background: var(--red-deep); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: rgba(16,24,40,.06); color: var(--ink); }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-danger:hover:not(:disabled) { background: #8E1217; }
.btn-success { background: var(--green); color: #FFFFFF; }
.btn-success:hover:not(:disabled) { background: var(--green-ink); }
.btn-dark { background: var(--ink); color: var(--canvas); }
.btn-dark:hover:not(:disabled) { background: #0B0D11; }
.btn-sm { min-height: 44px; padding: 8px 13px; font-size: .86rem; border-radius: var(--radius-sm); }
.btn-lg { min-height: 52px; padding: 13px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ── Badges & status ─────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.5; vertical-align: middle; border: 1px solid; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-body); }
.badge-neutral { background: var(--surface-2); color: var(--ink-2); border-color: var(--border-strong); }
.badge-ok { background: var(--green-soft); color: var(--green-ink); border-color: #9BD9B8; }
.badge-warn { background: var(--amber-soft); color: var(--warn); border-color: #F6D08A; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: #F3B5B8; }
.badge-info { background: var(--info-soft); color: var(--info-ink); border-color: #A9C6F7; }
.badge-brand { background: var(--red-soft); color: var(--red-deep); border-color: #F3B5B8; }
.badge-sample { background: #F3EEFC; color: #5B21B6; border-color: #D6C7F0; }
.badge-dark { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid; letter-spacing: .04em; text-transform: uppercase; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-pill.tone-ok { background: var(--green-soft); color: var(--green-ink); border-color: #9BD9B8; }
.status-pill.tone-warn { background: var(--amber-soft); color: var(--warn); border-color: #F6D08A; }
.status-pill.tone-neutral { background: var(--surface-2); color: var(--ink-2); border-color: var(--border-strong); }

/* ── Inputs ─────────────────────────────── */
input[type=text], input:not([type]), input[type=search], input[inputmode], select, textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: var(--radius); padding: 11px 13px; font-size: 16px; }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); outline: 3px solid var(--red); outline-offset: -1px; }
.field { display: grid; gap: 6px; margin: 0 0 15px; }
.field-label { font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field-hint { font-size: .83rem; color: var(--muted); }
.field-error { font-size: .85rem; color: var(--danger); font-weight: 600; }
.has-error input, .has-error select { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.check.inline { display: inline-flex; padding: 9px 13px; align-items: center; }
.check.inline input { margin: 0; }
.radio-list { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 2px; }
.radio-list legend { font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.radio-list label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.radio-list label:hover { background: var(--surface-2); }
.radio-list input { width: 18px; height: 18px; accent-color: var(--red); }
.seg { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.seg legend { width: 100%; font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.seg label, .seg > button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 54px; padding: 6px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 500; font-size: .88rem; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label.active, .seg > button.active { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.seg label:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.seg.compact label { min-width: 46px; min-height: 44px; padding: 4px 9px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink); border-radius: var(--radius-sm); }
.stepper button:hover:not(:disabled) { background: var(--surface-2); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 30px; text-align: center; font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; font-weight: 600; font-size: .9rem; min-height: 44px; }
.switch input, .r-online input { position: absolute; opacity: 0; width: 48px; height: 28px; margin: 0; cursor: pointer; }
.switch-ui { width: 48px; height: 28px; background: var(--border-strong); border-radius: 999px; position: relative; transition: background .2s; flex: none; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.3); transition: transform .22s var(--ease); }
input:checked + .switch-ui { background: var(--green); }
input:checked + .switch-ui::after { transform: translateX(20px); }
input:focus-visible + .switch-ui { outline: 3px solid var(--red); outline-offset: 2px; }
input:disabled + .switch-ui { opacity: .5; }

/* ── Notices & empty states ─────────────────────────────── */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius); margin: 0 0 14px; border: 1px solid; }
.notice > svg { flex: none; margin-top: 3px; }
.notice p { margin: 4px 0 0; }
.notice.small { font-size: .88rem; padding: 10px 13px; }
.tone-neutral.notice { background: var(--surface-2); border-color: var(--border-strong); color: var(--ink-2); }
.tone-warn.notice { background: var(--amber-soft); border-color: #F6D08A; color: var(--warn); }
.tone-info.notice { background: var(--info-soft); border-color: #A9C6F7; color: var(--info-ink); }
.tone-ok.notice { background: var(--green-soft); border-color: #9BD9B8; color: var(--green-ink); }
.tone-danger.notice { background: var(--danger-soft); border-color: #F3B5B8; color: var(--danger); }
.sample-note { font-size: .82rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 13px; margin: 18px 0; }
.sample-banner { display: flex; gap: 9px; align-items: flex-start; background: #F3EEFC; color: #5B21B6; border: 1px solid #D6C7F0; border-radius: var(--radius-sm); padding: 10px 13px; font-size: .86rem; margin: 14px 0 0; }
.sample-banner svg { flex: none; margin-top: 3px; }
.empty { text-align: center; padding: 30px 18px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); }
.empty > svg { width: 28px; height: 28px; color: var(--border-strong); }
.empty h3 { color: var(--ink-2); margin: 8px 0 4px; font-size: 1.02rem; }
.empty p { margin: 0; font-size: .9rem; }

/* ── Photo frames (honest placeholders until real photography lands) ──
   No photography exists yet. These never imitate a photo: a neutral frame at the real
   image's aspect, the subject's monogram, and a caption naming the shot still owed. */
.photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; width: 100%;
  background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; isolation: isolate; }
.photo-mono { font: 700 clamp(1.2rem, 11cqw, 2.4rem)/1 var(--font-display); font-stretch: 112%; color: var(--muted);
  opacity: .55; letter-spacing: -.02em; container-type: inline-size; user-select: none; }
.photo { container-type: inline-size; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 500; color: var(--ink-2); line-height: 1.35; padding: 6px 9px;
  background: rgba(255,255,255,.93); border-top: 1px solid var(--border); }
.photo figcaption svg { flex: none; width: 13px; height: 13px; }
.photo.compact figcaption { font-size: .7rem; padding: 5px 8px; }
.photo figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Illustrated sample art — a hand-drawn-style stand-in, still clearly not a real photo. */
.photo-illustrated { background: none; }
.photo-illustrated svg { display: block; width: 100%; height: 100%; }
.photo-illustrated figcaption { background: rgba(255,255,255,.85); }
.photo-real { background: var(--surface-2); }
.photo-real > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-real figcaption { background: rgba(255,255,255,.88); backdrop-filter: blur(4px); }

/* ── Modal & toasts ─────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(16,24,40,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.modal { background: var(--surface); width: 100%; max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); animation: rise .26s var(--ease); }
.modal.wide { max-width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 8px; }
.modal-head h2 { margin: 0; font-size: 1.35rem; }
.modal-x { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.modal-x:hover { background: var(--border); }
.modal-body { padding: 6px 20px 12px; overflow-y: auto; }
.modal-body .photo { margin-bottom: 12px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-foot .btn { flex: 1 1 auto; }
.modal-foot-note { margin: 0; text-align: center; width: 100%; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; padding: 24px; } .modal { border-radius: var(--radius-lg); } .modal-foot .btn { flex: 0 0 auto; } .modal-foot .btn-block { flex: 1 1 auto; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: 18px; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: var(--radius); background: var(--ink); color: var(--canvas); box-shadow: var(--shadow-lg); font-weight: 500; font-size: .92rem; animation: rise .22s var(--ease); }
.toast svg { flex: none; margin-top: 2px; }
.toast.ok svg { color: #6FD79F; }
.toast.error { background: #8E1217; color: #fff; }

/* ── Countdown ─────────────────────────────── */
.countdown { position: relative; display: inline-grid; place-items: center; flex: none; }
.countdown svg { position: absolute; inset: 0; }
.cd-track { fill: none; stroke: var(--border); stroke-width: 4; }
.cd-bar { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.countdown b { font-size: .85rem; position: relative; font-weight: 600; }
.countdown.urgent .cd-bar { stroke: var(--red); }
.countdown.urgent b { color: var(--red-deep); }

/* ══════════ CUSTOMER — front of house ══════════ */
.c-header { position: sticky; top: var(--demobar-h); z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.c-header-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.c-header-row > a:first-child { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.c-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.c-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 44px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .94rem; white-space: nowrap; }
.c-nav a:hover { background: var(--surface-2); color: var(--ink); }
.c-nav a.active { color: var(--red-deep); font-weight: 600; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.c-nav .short { display: none; }
.c-cart { position: relative; width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); flex: none; }
.c-cart:hover { background: var(--surface-2); }
.c-cart svg { width: 21px; height: 21px; }
.c-cart-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--canvas); }
@media (max-width: 560px) {
  .c-nav a { padding: 8px 9px; font-size: .88rem; }
  .c-nav .long { display: none; } .c-nav .short { display: inline; } .c-nav a span.short { display: inline; }
  .c-header-row { gap: 6px; }
}
.service-banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 18px; font-size: .9rem; font-weight: 500; justify-content: center; text-align: left; }
.service-banner svg { flex: none; margin-top: 3px; }
.service-banner.tone-warn { background: var(--amber-soft); color: var(--warn); border-bottom: 1px solid #F6D08A; }
.service-banner.tone-info { background: var(--info-soft); color: var(--info-ink); border-bottom: 1px solid #A9C6F7; }
.service-banner.tone-neutral { background: var(--surface-2); color: var(--ink-2); border-bottom: 1px solid var(--border); }
main.has-cartbar { padding-bottom: 88px; }
.cartbar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 18px; min-height: 58px; border-radius: var(--radius); background: var(--red); color: #FFFFFF; text-decoration: none; font-weight: 600; box-shadow: 0 8px 24px rgba(16,24,40,.28); animation: rise .25s var(--ease); }
.cartbar b { margin-left: auto; }
.cartbar-count { background: rgba(255,255,255,.2); border-radius: var(--radius-sm); min-width: 28px; height: 28px; display: grid; place-items: center; font-size: .85rem; }

/* Hero — editorial opening, flat grounds only */
.hero { background: var(--canvas); padding: 26px 0 30px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 28px; align-items: start; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .2em; }
.hero h1 em { font-style: italic; color: var(--red); font-weight: 700; }
.hero-lede { font-size: clamp(1rem, 2.1vw, 1.14rem); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.hero-facts { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--ink-2); font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts svg { color: var(--red); flex: none; }
/* Kwento lead: editorial card, text below the tile — never text floated on a placeholder */
@media (min-width: 900px) { .hero { padding: 48px 0 44px; } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.address-picker { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 4px 8px 4px 14px; max-width: 420px; margin: 16px 0 0; }
.address-picker > svg { color: var(--red); flex: none; }
.address-picker-label { font-size: .7rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.address-picker select { border: 0; min-height: 44px; font-weight: 600; padding-left: 4px; background: transparent; }
.address-picker:focus-within { border-color: var(--red); }
.address-picker.compact { margin: 0 0 14px; max-width: none; }

/* Store index — one ruled label schema, no fake photos */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.section-head h2 { margin: 0; }
.page-head { margin-bottom: 18px; }
.band-kwento { background: var(--ink); color: #E4E7EB; padding: 42px 0 48px; margin-top: 14px; }
.band-kwento h2, .band-kwento h3 { color: #FFFFFF; }
.band-kwento .section-head { border-bottom-color: #2E323A; }
.band-kwento .link-arrow { color: #FFFFFF; border-bottom-color: #434A54; }
.band-kwento .link-arrow:hover { border-bottom-color: var(--red); }
.kwento-row { display: grid; gap: 18px 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
/* teaser rows: the headline leads, the tile is a stamp beside it — never an empty rectangle */
.kwento-mini { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: start; text-decoration: none; color: inherit; padding-top: 18px; border-top: 1px solid #2E323A; }
.kwento-mini .photo { grid-row: 1 / span 3; width: 68px; height: 68px; aspect-ratio: 1 !important; margin: 0; background: #23262D; border-color: #2E323A; border-radius: var(--radius-sm); }
.kwento-mini .photo figcaption { display: none; }
.kwento-mini:hover h3 { color: #FF6169; }
.kwento-mini-store { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #FF6169; }
.kwento-mini h3 { font-size: 1.22rem; font-weight: 700; margin: 4px 0; letter-spacing: -.015em; transition: color .15s; }
.kwento-mini p { color: #C2C8D0; font-size: .9rem; margin: 0; }
.side-card .kwento-mini { border-top-color: var(--border); }
.side-card .kwento-mini-store { color: var(--red-deep); }
.side-card .kwento-mini p { color: var(--ink-2); }
.stores-tools { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 720px) { .stores-tools { grid-template-columns: 1fr 1fr; } .stores-tools .address-picker { margin: 0; } }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 0 13px; }
.search svg { color: var(--muted); flex: none; }
.search input { border: 0; padding-left: 0; background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--red); outline: 3px solid var(--red); outline-offset: -1px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 16px; margin: 0; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 500; font-size: .88rem; cursor: pointer; white-space: nowrap; color: var(--ink); }
.chip:hover { background: var(--surface-2); }
.chip b { color: var(--muted); font-weight: 600; }
.chip.active { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.chip.active b { color: #C2C8D0; }
.chip-alert { border-color: var(--danger); color: var(--danger); }
.chip-alert.active { background: var(--danger); border-color: var(--danger); color: #fff; }

/* Store page */
.store-hero { position: relative; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.store-hero-photo { border-radius: 0; border: 0; max-height: 160px; min-height: 110px; }
.store-hero-photo figcaption { justify-content: center; }
.store-hero-inner { position: relative; z-index: 2; padding-top: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); text-decoration: none; min-height: 44px; margin-bottom: 4px; }
.back-link:hover { color: var(--red-deep); }
.store-title { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.store-title::before, .story-cta::before { content: ''; display: block; width: 44px; height: 3px; background: var(--red); margin-bottom: 14px; flex-basis: 100%; }
.store-title-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.store-title h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.6rem); }
.store-tagline { font: 500 1.08rem/1.45 var(--font-body); color: var(--ink-2); margin: 6px 0 12px; }
.store-facts { list-style: none; padding: 12px 0 0; margin: 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.store-facts li { display: inline-flex; align-items: center; gap: 6px; }
.store-facts svg { color: var(--muted); flex: none; }
/* The fee is stated once. Below the sidebar breakpoint the delivery card leads the page,
   directly under the store header, because that is where the order decision is made. */
.store-layout { display: grid; gap: 24px; padding-top: 22px; padding-bottom: 44px; }
.store-side { order: -1; }
@media (min-width: 960px) { .store-layout { grid-template-columns: 1fr 340px; align-items: start; } .store-side { order: 0; position: sticky; top: calc(var(--demobar-h) + 76px); } }
.store-story { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.store-story p { font: 400 1.02rem/1.55 var(--font-body); margin-bottom: 10px; }
.menu-section { margin-bottom: 26px; }
.menu-section h2 { font-size: 1.4rem; margin-bottom: 4px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.menu-grid { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 28px; }
.menu-item { display: grid; grid-template-columns: 1fr 72px; gap: 14px; text-align: left; padding: 14px 0; background: transparent; border: 0; border-top: 1px solid var(--border); cursor: pointer; align-items: start; }
.menu-item:first-child { border-top: 0; }
.menu-item:hover h3 { color: var(--red-deep); }
.menu-item h3 { font-size: 1.04rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--font-body); font-weight: 600; transition: color .15s; }
.menu-item p { font-size: .88rem; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item-text { display: flex; flex-direction: column; min-width: 0; }
.menu-item-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.menu-add { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.menu-item-photo { border-radius: var(--radius-sm); align-self: start; width: 72px; height: 72px; aspect-ratio: 1 !important; }
.menu-item-photo figcaption { display: none; }
.menu-item.sold-out { opacity: .55; }
.item-desc { color: var(--ink-2); }
.item-price { font: 700 1.35rem/1 var(--font-body); color: var(--ink); }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.side-card h2 { font-size: 1.25rem; }
.side-pay { font-weight: 600; font-size: .9rem; margin: 10px 0 0; }
/* Fee: stated once, where the decision is made */
.feebox { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px; margin-bottom: 14px; }
.feebox-main { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.feebox-main b { font: 700 2rem/1 var(--font-body); color: var(--red-deep); letter-spacing: -.02em; }
.feebox-main span { font-weight: 600; color: var(--ink-2); font-size: .92rem; }
.feebox p { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); }
.feebox.unavailable .feebox-main b { color: var(--muted); font-size: 1.3rem; }
.feebox-eta { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.feebox-fine { display: flex; gap: 6px; align-items: flex-start; font-size: .78rem !important; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--border); }
.feebox-fine svg { flex: none; margin-top: 2px; }
.addons { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.addons legend { font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.addon { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 13px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.addon:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.addon input { width: 20px; height: 20px; accent-color: var(--red); }
.addon b { margin-left: auto; }
.qty-row { display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: 12px; }

/* Cart & checkout */
.cart-lines { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'text total' 'step step'; gap: 8px 12px; align-items: center; border-top: 1px solid var(--border); padding: 14px 0; }
.cart-lines li:first-child { border-top: 0; }
.cart-line-text { grid-area: text; display: grid; gap: 2px; }
.cart-line-text small { color: var(--ink-2); }
.cart-lines .stepper { grid-area: step; justify-self: start; }
.cart-line-total { grid-area: total; font-weight: 700; }
@media (min-width: 560px) { .cart-lines li { grid-template-columns: 1fr auto 96px; grid-template-areas: 'text step total'; } .cart-line-total { text-align: right; } }
.breakdown { margin: 0 0 14px; display: grid; gap: 0; }
.breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.breakdown dt { color: var(--ink-2); }
.breakdown dt small { display: block; color: var(--muted); }
.breakdown dd { margin: 0; font-weight: 600; text-align: right; }
.breakdown .total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 2px; padding-top: 12px; }
.breakdown .total dt, .breakdown .total dd { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.breakdown.compact > div { padding: 7px 0; font-size: .9rem; }
.cart-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cart-actions .btn-lg { flex: 1 1 220px; }
.checkout h1 { margin-bottom: 18px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.form-card h2 { font-size: 1.2rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 10px; }
.pay-option svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.pay-option.selected { border-color: var(--green); background: var(--green-soft); }
.pay-option.selected input { accent-color: var(--green); width: 20px; height: 20px; margin-top: 3px; }
.pay-option.disabled { opacity: .66; background: var(--surface-2); border-style: dashed; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 6px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .92rem; }

/* Order tracking */
.confirm-hero { display: flex; gap: 14px; align-items: flex-start; background: var(--green-soft); border: 1px solid #9BD9B8; border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.confirm-hero > svg { width: 34px; height: 34px; color: var(--green); flex: none; }
.confirm-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 4px; }
.confirm-hero p { margin: 0; }
.order-head { margin-bottom: 16px; }
.order-status-label { font: 700 1.6rem/1.2 var(--font-display); font-stretch: 112%; color: var(--ink); margin: 4px 0; letter-spacing: -.03em; }
.pin-card { display: flex; gap: 14px; align-items: flex-start; background: var(--ink); color: var(--canvas); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.pin-card > svg { width: 26px; height: 26px; color: #FF6169; flex: none; }
.pin-card h2 { color: #FFFFFF; font-size: 1.1rem; margin-bottom: 10px; }
.pin-card p { margin: 0; color: #C2C8D0; }
.pin { display: flex; gap: 8px; margin: 0 0 12px; }
.pin span { width: 54px; height: 64px; border-radius: var(--radius-sm); background: var(--canvas); color: var(--ink); display: grid; place-items: center; font: 700 2rem/1 var(--font-body); }
.pin-later { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 13px; }
.timeline { list-style: none; padding: 0; margin: 10px 0 18px; }
.timeline li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--muted); font-size: .95rem; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 32px; bottom: -8px; width: 2px; background: var(--border); }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; flex: none; position: relative; z-index: 1; }
.timeline li.done { color: var(--ink-2); }
.timeline li.done .tl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.timeline li.done .tl-dot svg { width: 15px; height: 15px; }
.timeline li.done::before { background: var(--green); }
.timeline li.current { color: var(--ink); font-weight: 700; }
.timeline li.current .tl-dot { border-color: var(--red); border-width: 3px; }
.timeline li.current .tl-dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.tl-dot-spinning { border: none; background: none; }
.tl-dot-spinning::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--red) 0deg, transparent 300deg); animation: tl-spin 1.2s linear infinite; }
.timeline li.current .tl-dot.tl-dot-spinning::after { content: none; }
.tl-dot-spinning > span { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-weight: 700; font-size: .75rem; }
@keyframes tl-spin { to { transform: rotate(360deg); } }
.rider-chip { display: flex; align-items: center; gap: 10px; background: var(--info-soft); color: var(--info-ink); border: 1px solid #A9C6F7; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.history { margin-top: 10px; font-size: .9rem; }
.history summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.history ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.history time { color: var(--muted); margin-right: 6px; }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.order-list a { display: grid; grid-template-columns: 1fr auto 18px; grid-template-areas: 'info total arrow' 'status status status'; gap: 4px 12px; align-items: center; border-top: 1px solid var(--border); padding: 15px 0; color: inherit; text-decoration: none; }
.order-list li:first-child a { border-top: 0; }
.order-list a:hover { color: var(--red-deep); }
.order-list a > div { grid-area: info; display: grid; }
.order-list-status { grid-area: status; font-weight: 600; color: var(--red-deep); font-size: .9rem; }
.quote-preview { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; color: var(--ink-2); }

/* Kwentong Kagat — the editorial voice */
.kwento-masthead { padding-top: 36px; padding-bottom: 26px; max-width: 860px; }
.kwento-masthead h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; }
.kwento-lead { display: grid; gap: 20px; text-decoration: none; color: inherit; margin-bottom: 32px; align-items: center; }
.kwento-lead h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 8px 0; letter-spacing: -.025em; }
.kwento-lead p { font-size: 1.08rem; color: var(--ink-2); }
.kwento-lead:hover h2 { color: var(--red-deep); }
@media (min-width: 860px) { .kwento-lead { grid-template-columns: 1.25fr 1fr; gap: 36px; } }
.kwento-store { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--red); font-family: var(--font-body); }
.kwento-byline { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.kwento-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); padding-bottom: 50px; border-top: 2px solid var(--ink); padding-top: 28px; }
.kwento-card { text-decoration: none; color: inherit; display: block; }
.kwento-card .photo { margin-bottom: 12px; }
.kwento-card h3 { font-size: 1.4rem; font-weight: 700; margin: 5px 0 6px; letter-spacing: -.015em; }
.kwento-card:hover h3 { color: var(--red-deep); }
.kwento-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 6px; }
.story-head { padding-top: 24px; padding-bottom: 20px; }
.story-head h1 { font-size: clamp(2.3rem, 7.5vw, 3.6rem); font-weight: 800; margin: 8px 0 12px; letter-spacing: -.03em; }
.story-head .back-link { display: flex; width: fit-content; }
.story-head .kwento-store { display: block; margin-top: 10px; }
.story-dek { font: 400 1.22rem/1.5 var(--font-body); color: var(--ink-2); max-width: 46ch; }
.story-hero { border-radius: 0; border-left: 0; border-right: 0; max-height: 380px; }
@media (min-width: 900px) { .story-hero { max-width: 1180px; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--border); } }
.story-body { padding-top: 28px; font-size: 1.1rem; line-height: 1.72; max-width: 68ch; }
.story-body p { margin-bottom: 1.1em; }
.dropcap::first-letter { float: left; font: 800 3.4rem/.8 var(--font-display); font-stretch: 112%; color: var(--red); letter-spacing: -.04em; padding: 6px 12px 0 0; }
.pull { margin: 30px 0; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--border); }
.pull p { font: 700 1.6rem/1.25 var(--font-display); font-stretch: 112%; color: var(--ink); margin-bottom: 10px; letter-spacing: -.032em; }
.story-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 30px; }
.story-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 12px auto 18px; }
.story-cta h2 { margin: 2px 0 8px; }
.story-next { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding-top: 16px; padding-bottom: 40px; border-top: 1px solid var(--border); }
.story-next b { font: 700 1.2rem var(--font-display); font-stretch: 112%; letter-spacing: -.025em; }
.story-next svg { margin-left: auto; color: var(--red); }
.story-sticky { position: sticky; bottom: 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--canvas) 30%); z-index: 30; }
@media (min-width: 760px) { .story-sticky { display: none; } }

.c-footer { background: var(--ink); color: #C2C8D0; padding: 36px 0 22px; margin-top: 24px; }
.c-footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .c-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.c-footer h4 { color: #FFFFFF; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 10px; font-family: var(--font-body); }
.c-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: .9rem; }
.c-footer-line { margin-top: 12px; font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; color: #E4E7EB; }
.c-footer-fine { font-size: .78rem; color: #AD9078; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }

/* ══════════ THE PASS — merchant + operations ══════════ */
.tool { min-height: calc(100vh - var(--demobar-h)); background: var(--canvas); }
.tool-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; background: var(--ink); color: #EDEFF2; }
.tool-head select { background: #23262D; color: #FFFFFF; border-color: #2E323A; }
.tool-head-left, .tool-head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-name { font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #9AA2AD; border-left: 1px solid #2E323A; padding-left: 12px; }
.store-switch { display: inline-flex; align-items: center; gap: 6px; }
.store-switch select { min-width: 200px; font-weight: 600; }
.store-switch-current { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); color: #EDEFF2; font-size: .82rem; }
.store-switch-current b { font-weight: 700; }
.other-stores-waiting { margin: 10px 22px 0; }
.other-stores-waiting a { font-weight: 600; text-decoration: underline; }
.accepting { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: var(--radius-sm); min-height: 46px; border: 1px solid; }
.accepting i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.accepting div { display: grid; line-height: 1.25; }
.accepting b { font-size: .92rem; }
.accepting small { font-size: .76rem; opacity: .85; }
.accepting.on { background: rgba(14,138,79,.24); color: #6FD79F; border-color: #157F4C; }
.accepting.paused { background: rgba(245,158,11,.18); color: #F6D08A; border-color: #A86A14; }
.accepting.off { background: rgba(255,255,255,.08); color: #C2C8D0; border-color: #2E323A; }
.sound-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 13px; border-radius: var(--radius-sm); border: 1px solid #2E323A; background: transparent; color: #D5DAE1; font-weight: 500; font-size: .88rem; cursor: pointer; }
.sound-toggle:hover { background: rgba(255,255,255,.07); }
.sound-toggle.on { border-color: #157F4C; color: #6FD79F; }
.tool-tabs { display: flex; gap: 2px; padding: 0 18px; background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tool-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 14px; min-height: 48px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .93rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.tool-tabs a:hover { color: var(--ink); background: var(--surface-2); }
.tool-tabs a.active { color: var(--red-deep); border-bottom-color: var(--red); font-weight: 600; }
.tab-count { background: var(--red); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 6px; font-weight: 600; }
.tool-main { padding: 20px 22px 44px; max-width: 1480px; margin: 0 auto; }
/* single-truth figures: each owns one fact */
.stats { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 13px 16px; display: grid; gap: 3px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat span { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.stat b { font: 700 1.7rem/1 var(--font-body); letter-spacing: -.02em; }
.stat small { font-size: .76rem; color: var(--ink-2); }
.board { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .board { grid-template-columns: repeat(3, 1fr); } }
/* board columns are regions, not cards — no nesting */
.board-col { display: grid; gap: 12px; align-content: start; }
.board-col h2 { display: flex; align-items: center; gap: 8px; font: 600 .78rem/1.2 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 2px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.col-count { margin-left: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; font-size: .8rem; color: var(--ink); }
.board-col .empty { padding: 20px 14px; }
.board-col.incoming.alerting h2 { border-bottom-color: var(--red); color: var(--red-deep); }
.board-col.incoming.alerting .col-count { background: var(--red); color: #fff; border-color: var(--red); }
.ringing { background: var(--red); color: #fff; font-weight: 600; font-size: .85rem; padding: 9px 13px; border-radius: var(--radius-sm); margin: 0; }
.ocard { background: var(--surface); border-radius: var(--radius); padding: 15px; border: 1px solid var(--border); }
.ocard-new { border-color: var(--red); }
.ocard-late { border-color: var(--warn); }
.ocard-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.ocard-head b { font-size: 1.05rem; font-weight: 700; }
.ocard-lines { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; font-size: .94rem; }
.ocard-lines small { color: var(--muted); }
.ocard-lines .note { display: block; color: var(--warn); font-weight: 600; }
.ocard-total { font-size: .88rem; color: var(--ink-2); padding-top: 8px; border-top: 1px solid var(--border); margin-bottom: 10px; }
.ocard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ocard-actions .btn { flex: 1 1 auto; }
.ocard-rider { display: flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--info-ink); margin-bottom: 10px; }
.prep-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.prep-timer { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; }
.prep-timer.late { color: var(--danger); }
.prep-adjust { display: inline-flex; gap: 4px; }
.prep-adjust button { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.prep-adjust button:hover:not(:disabled) { background: var(--surface-2); }
.prep-adjust button:disabled { opacity: .35; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); font-size: .87rem; }
.table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); background: var(--surface-2); padding: 11px 13px; border-bottom: 1px solid var(--border); white-space: nowrap; font-weight: 600; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.row-muted td { opacity: .62; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); position: relative; }
.mm-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-bottom: 12px; }
.mm-intro h2 { margin: 0; font-size: 1.3rem; }
.mm-intro p { max-width: 640px; margin: 0; font-size: .9rem; }
.mm-photo { width: 130px; }
.mm-photo .photo, .mm-photo img { width: 84px; height: 84px; aspect-ratio: 1 !important; border-radius: var(--radius-sm); object-fit: cover; }
.mm-photo .photo figcaption { display: none; }
.mm-upload { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--red-deep); cursor: pointer; margin-top: 8px; min-height: 44px; white-space: nowrap; }
.mm-upload:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.profile-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.h-sub { font: 600 .78rem/1.2 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); margin: 24px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* Operations */
.capacity-stats { display: flex; gap: 16px; font-size: .84rem; color: #C2C8D0; flex-wrap: wrap; }
.capacity-stats b { font-size: 1.05rem; color: #FFFFFF; font-weight: 700; }
.mode-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid; cursor: pointer; background: transparent; text-align: left; }
.mode-pill span { display: grid; line-height: 1.2; }
.mode-pill small { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.mode-pill b { font-weight: 600; }
.mode-normal { border-color: #157F4C; color: #6FD79F; }
.mode-busy { border-color: #A86A14; color: #F6D08A; background: rgba(242,165,65,.14); }
.mode-limited { border-color: #2563C9; color: #A9C6F7; background: rgba(31,111,235,.22); }
.mode-paused { border-color: #B01219; color: #F3B5B8; background: rgba(200,20,27,.22); }
.mode-effect { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 9px 22px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: .86rem; color: var(--ink-2); }
.mode-effect > svg { flex: none; }
.mode-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); font-weight: 600; }
.mode-options { display: grid; gap: 8px; margin-bottom: 14px; }
@media (min-width: 560px) { .mode-options { grid-template-columns: 1fr 1fr; } }
.mode-option { display: grid; gap: 4px; padding: 13px 15px; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; background: var(--surface); color: var(--ink); }
.mode-option input { position: absolute; opacity: 0; }
.mode-option span { font-size: .85rem; color: var(--ink-2); }
.mode-option.active { border-color: var(--red); border-width: 2px; padding: 12px 14px; }
.mode-option:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.check-grid { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.check-grid legend { font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.check-grid label { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 4px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.check-grid label:hover { background: var(--surface-2); }
.check-grid input { width: 18px; height: 18px; accent-color: var(--red); }
/* ── Command center ───────────────────────────────
   One dispatcher: who is free, where everyone is, what needs a rider. */
.cmd-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; align-items: stretch; }
@media (min-width: 760px) { .cmd-summary { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); } }
.cmd-card { display: grid; gap: 2px; align-content: center; text-align: left; min-height: 72px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s, background .15s; position: relative; }
.cmd-card:hover { border-color: var(--border-strong); background: var(--canvas); }
.cmd-card.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cmd-card-n { font: 700 1.6rem/1 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; color: var(--ink); }
.cmd-card-l { font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.cmd-card.is-lead { min-height: 86px; }
.cmd-card.is-lead .cmd-card-n { font-size: 2.5rem; }
.cmd-card.is-lead .cmd-card-l { font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.cmd-card.is-urgent { border-color: var(--red); background: var(--red-soft); }
.cmd-card.is-urgent .cmd-card-n { color: var(--red); }
.cmd-card.is-urgent .cmd-card-l { color: var(--red-deep); }
.cmd-card.is-urgent:hover { background: #FBE0E0; }
.cmd-card.is-ok .cmd-card-n { color: var(--green); }
.cmd-card.is-info .cmd-card-n { color: var(--info-ink); }
.cmd-card.is-muted .cmd-card-n { color: var(--muted); }
.cmd-reset { grid-column: 1 / -1; justify-self: start; background: none; border: 0; cursor: pointer;
  font: 600 .84rem var(--font-body); color: var(--ink-2); min-height: 44px; padding: 0 2px;
  border-bottom: 2px solid var(--border-strong); }
.cmd-reset:hover { border-bottom-color: var(--red); }
@media (min-width: 760px) { .cmd-reset { grid-column: auto; justify-self: end; align-self: center; } }

/* section chrome shared by every command-center block */
.cmd-sec { margin: 0 0 22px; min-width: 0; }
.cmd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 11px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.cmd-head h2 { margin: 0; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; font-stretch: 100%;
  font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.cmd-head h2 b { margin-left: 5px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.cmd-head-hint { font-size: .82rem; color: var(--info-ink); }
.sec-empty { margin: 0; font-size: .86rem; color: var(--muted); padding: 10px 0; }

/* Available now — a wide strip of the riders the dispatcher can actually use */
.avail-row { list-style: none; margin: 0; padding: 0 0 4px; display: grid; gap: 10px;
  grid-auto-flow: column; grid-auto-columns: minmax(228px, 1fr); overflow-x: auto; scroll-snap-type: x proximity; }
.avail-row > li { scroll-snap-align: start; min-width: 0; }
@media (max-width: 719px) { .avail-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow-x: visible; } }
.avail-sub { margin: 14px 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.cmd-queue { min-width: 0; margin: 0 0 22px; }
.cmd-queue.is-focused { outline: 2px solid var(--info); outline-offset: 10px; border-radius: 2px; }
.cmd-tabs { display: flex; gap: 2px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.cmd-tab { background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; min-height: 44px;
  padding: 0 13px; font: 500 .88rem var(--font-body); color: var(--muted); }
.cmd-tab b { font-weight: 700; color: var(--ink-2); }
.cmd-tab:hover { color: var(--ink); background: var(--canvas); }
.cmd-tab.is-on { color: var(--red-deep); border-bottom-color: var(--red); font-weight: 600; }
.cmd-tab.is-on b { color: var(--red-deep); }
.cmd-panel { margin-top: 16px; scroll-margin-top: calc(var(--demobar-h) + 10px); }
.dispatch-hint { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); padding: 12px 0 0; max-width: 74ch; }

/* Command Center Split View: Left = Queue + Smart Dispatch Drawer + Fleet, Right = Sticky Google Street Map + Rider Detail */
.cmd-workspace { display: grid; gap: 22px; align-items: start; }
.cmd-left, .cmd-right { min-width: 0; }
@media (min-width: 1120px) {
  .cmd-workspace { grid-template-columns: minmax(0, 1.15fr) minmax(440px, 0.95fr); gap: 24px; }
  .cmd-right { position: sticky; top: calc(var(--demobar-h) + 14px); }
}

/* Map + selected rider */
.cmd-main { display: grid; gap: 16px; align-items: start; margin: 0 0 22px; }
.cmd-map { margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.map-preview-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--info-soft); border: 1px solid #A9C6F7; border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; font-size: .88rem; }
.map-preview-badge { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--info); color: #fff; border-radius: 999px; padding: 2px 8px; margin-right: 8px; vertical-align: middle; }
.best-match-cell { display: grid; gap: 2px; justify-items: start; }
.smart-dispatch-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; margin: 12px 0;
  background: var(--green-soft); border: 1px solid #9BD9B8; border-radius: var(--radius-sm); }
.rec-row-body { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.rec-list li.is-previewed { box-shadow: inset 0 0 0 2px var(--info); }
.map-tag { margin-left: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 8px; }
.map-reset { background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer;
  min-height: 44px; padding: 0 14px; font: 600 .82rem var(--font-body); color: var(--ink-2); }
.map-reset:hover { border-color: var(--ink); color: var(--ink); }
.map-frame { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; }   /* aspect-ratio is set inline: the board is squarer on a phone */
.map-frame svg { display: block; width: 100%; height: 100%; }
.map-zoom { transform-origin: 0 0; transition: transform .45s var(--ease); }
.map-grid line { stroke: var(--border); stroke-width: 1; }
.map-route path { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.map-route .rt-live { stroke: var(--info); }
.map-route .rt-done { stroke: var(--border-strong); stroke-dasharray: 2 8; }
.map-route .rt-next { stroke: var(--info); opacity: .4; stroke-dasharray: 8 8; }
.map-route.is-sel .rt-live { stroke: var(--info-ink); stroke-width: 4; }
.map-drop circle { fill: var(--surface); stroke: var(--red); stroke-width: 3; }
.map-drop text { fill: var(--red-deep); font: 700 15px var(--font-body); text-anchor: middle; }
/* halo, so a label stays readable where pins sit close together */
.map-lbl, .map-drop text, .map-stores text { paint-order: stroke; stroke: var(--canvas); stroke-width: 4px; stroke-linejoin: round; }
.map-stores rect { fill: var(--charcoal); }
.map-stores text { fill: var(--ink-2); font: 600 14px var(--font-body); text-anchor: middle; }
.map-rider { cursor: pointer; }
.map-hit { fill: transparent; }
.map-ring { fill: none; stroke: transparent; stroke-width: 3; }
.map-dot { fill: var(--border-strong); stroke: var(--surface); stroke-width: 3; }
.map-lbl { fill: var(--ink); font: 700 15px var(--font-body); text-anchor: middle; }
.map-rider.rst-available .map-dot { fill: var(--green); }
.map-rider.rst-offer_pending .map-dot { fill: var(--amber); }
.map-rider.rst-heading .map-dot, .map-rider.rst-delivering .map-dot { fill: var(--info); }
.map-rider.rst-waiting .map-dot { fill: #7C3AED; }
.map-rider.rst-on_break .map-dot { fill: var(--amber-ink); }
.map-rider.rst-offline .map-dot, .map-rider.rst-unavailable .map-dot { fill: var(--muted); }
.map-rider:hover .map-ring { stroke: var(--border-strong); }
.map-rider:focus-visible { outline: none; }
.map-rider:focus-visible .map-ring { stroke: var(--ink); stroke-width: 4; }
.map-rider.is-sel .map-ring { stroke: var(--red); stroke-width: 4; }
.map-rider.is-sel .map-dot { stroke-width: 4; }
.map-rider.is-dim, .map-route.is-dim { opacity: .26; }
.map-legend { list-style: none; margin: 11px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: .78rem; font-weight: 500; color: var(--ink-2); }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--border-strong); }
.map-legend .lg-available i { background: var(--green); }
.map-legend .lg-delivering i { background: var(--info); }
.map-legend .lg-break i { background: var(--amber-ink); }
.map-legend .lg-offline i { background: var(--muted); }
.map-legend .lg-store i { border-radius: 2px; background: var(--charcoal); }
.map-legend .lg-drop i { background: var(--surface); box-shadow: inset 0 0 0 2.5px var(--red); }
.map-note { display: flex; gap: 7px; align-items: flex-start; margin: 10px 0 0; padding-top: 10px; max-width: 68ch;
  border-top: 1px solid var(--border); font-size: .78rem; line-height: 1.45; color: var(--muted); }
.map-note svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }

.cmd-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 16px; min-width: 0; }
@media (min-width: 1180px) { .cmd-detail { position: sticky; top: calc(var(--demobar-h) + 12px); } }
.cmd-detail.is-empty { background: var(--canvas); border-style: dashed; }
.cmd-detail h2 { margin: 0; font-size: 1.1rem; }
.cmd-detail.is-empty h2 { font-size: .95rem; color: var(--ink-2); }
.cmd-detail.is-empty p { margin: 7px 0 0; font-size: .86rem; color: var(--muted); }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.detail-head p { margin: 5px 0 0; }
.detail-ready, .detail-blocked, .detail-note { display: flex; gap: 7px; align-items: flex-start; margin: 12px 0 0;
  font-size: .84rem; line-height: 1.45; border-radius: var(--radius-sm); padding: 9px 11px; }
.detail-ready svg, .detail-blocked svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.detail-ready { background: var(--green-soft); color: var(--green-ink); border: 1px solid #A8DCC0; }
.detail-blocked { background: var(--amber-soft); color: var(--warn); border: 1px solid #F6D08A; }
.detail-note { background: var(--canvas); color: var(--ink-2); border: 1px solid var(--border); }
.cmd-detail .panel-actions { margin-top: 13px; }

/* an order id must never break across lines */
.detail-ready b, .detail-blocked b, .detail-note b, .cmd-head-hint b, .rcard-blocked b, .rcard-staged b, .cmd-confirm b { white-space: nowrap; }

/* On delivery */
.dgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.dcard { display: grid; gap: 5px; width: 100%; text-align: left; padding: 11px 13px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.dcard:hover { border-color: var(--border-strong); background: var(--canvas); }
.dcard.is-sel { border-color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
.dcard-top { display: flex; align-items: center; gap: 8px; }
.dcard-order { margin-left: auto; font: 700 .82rem var(--font-body); color: var(--ink-2); }
.dcard-route { font-size: .82rem; color: var(--ink-2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.dcard-route svg { width: 13px; height: 13px; flex: none; color: var(--muted); }
.dcard-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; }
.dcard-st { font-weight: 700; color: var(--info-ink); }
.rst-waiting .dcard-st { color: #6D28D9; }

/* quiet groups: on break, offline */
.cmd-sec.is-quiet { border-top: 1px solid var(--border); padding-top: 4px; margin-bottom: 14px; }
.cmd-sec.is-quiet h2 { margin: 0; }
.cmd-sec.is-quiet h2 button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 2px;
  background: none; border: 0; cursor: pointer; font: 700 .82rem var(--font-body); letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); }
.cmd-sec.is-quiet h2 button b { margin-left: auto; letter-spacing: 0; }
.cmd-sec.is-quiet h2 button:hover { color: var(--ink); }
.rgroup-chev { flex: none; width: 14px; height: 14px; transition: transform .18s var(--ease); }
.cmd-sec.is-quiet.is-closed .rgroup-chev { transform: rotate(-90deg); }

/* compact rider card — clicking selects a rider, it never dispatches an order */
.rcard { display: grid; gap: 3px; width: 100%; height: 100%; text-align: left; padding: 10px 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, background .15s; }
.rcard:hover { border-color: var(--border-strong); background: var(--canvas); }
.rcard.is-sel { border-color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
.rcard-top { display: flex; align-items: center; gap: 8px; }
.rcard-name { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.rcard-name i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--border-strong); }
.rcard-type { margin-left: auto; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rcard-meta { font-size: .8rem; color: var(--ink-2); }
.rcard-sub { font-size: .76rem; color: var(--muted); }
.rcard-blocked { font-size: .74rem; font-weight: 600; color: var(--warn); }
.rcard-staged { font-size: .74rem; font-weight: 700; color: var(--red-deep); }
/* distinct, accessible rider states */
.rst-available .rcard-name i { background: var(--green); }
.rst-offer_pending .rcard-name i { background: var(--amber); }
.rst-heading .rcard-name i, .rst-delivering .rcard-name i { background: var(--info); }
.rst-waiting .rcard-name i { background: #7C3AED; }
.rst-on_break .rcard-name i { background: var(--amber-ink); }
.rst-offline .rcard-name i, .rst-unavailable .rcard-name i { background: var(--muted); }

/* On a phone the queue stacks instead of scrolling sideways, so the action stays in reach.
   The table DOM is kept; only its presentation changes. */
@media (max-width: 720px) {
  .cmd-queue .order-table { min-width: 0; }
  .cmd-queue .order-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmd-queue .order-table tr { display: block; padding: 12px 13px; border-bottom: 1px solid var(--border); }
  .cmd-queue .order-table tr:last-child { border-bottom: 0; }
  .cmd-queue .order-table td { display: block; border: 0; padding: 2px 0; }
  .cmd-queue .order-table td:nth-child(3),
  .cmd-queue .order-table td:nth-child(4),
  .cmd-queue .order-table td:nth-child(5) { display: inline-block; vertical-align: middle; margin-right: 12px; }
  .cmd-queue .order-table td:nth-child(6) { padding-top: 10px; }
  .cmd-queue .order-table td:nth-child(6) .btn { width: 100%; }
  /* tint the row, not the cells: inline-block cells would leave white gaps between them */
  .cmd-queue .row-alert td:first-child { box-shadow: none; }
  .cmd-queue .order-table tr.row-alert { box-shadow: inset 3px 0 0 var(--red); background: var(--danger-soft); }
  .cmd-queue .order-table tr.row-focus { background: var(--info-soft); }
  .cmd-queue .order-table tr.row-alert td,
  .cmd-queue .order-table tr.row-focus td { background: transparent !important; }
}

/* assignment confirmation — never fires from a card click alone */
.cmd.has-confirm { padding-bottom: 88px; }
.cmd-confirm { position: sticky; bottom: 0; z-index: 35; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px; margin-top: 18px; padding: 13px 16px;
  background: var(--ink); color: #FFFFFF; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.cmd-confirm p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .95rem; flex-wrap: wrap; }
.cmd-confirm .muted { color: #AEB6C0; }
.cmd-confirm svg { width: 16px; height: 16px; flex: none; }
.cmd-confirm-actions { display: flex; gap: 8px; margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .map-zoom, .rgroup-chev { transition: none; } }

.order-table-wrap { overflow-x: auto; border-radius: var(--radius); position: relative; }
.order-table { min-width: 600px; }
.order-table tbody tr { cursor: pointer; }
.order-table tbody tr:hover td { background: var(--surface-2); }
.row-focus td { background: var(--info-soft) !important; }
.row-alert td { background: var(--danger-soft); }
.row-alert td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.offer-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.offer-inline .countdown b { font-size: .7rem; }
.dispatch-panel .empty { background: var(--surface); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 17px; }
.panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.panel-head h2 { margin: 0; }
.panel-head p { margin: 3px 0 10px; font-size: .9rem; color: var(--ink-2); }
.panel h3 { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); font-family: var(--font-body); margin: 16px 0 9px; padding-bottom: 7px; border-bottom: 1px solid var(--border); }
.offer-live { display: flex; gap: 12px; align-items: center; background: var(--amber-soft); border: 1px solid #F6D08A; border-radius: var(--radius); padding: 11px 13px; margin: 10px 0; }
.offer-live p { margin: 0; }
.no-rider { display: flex; gap: 10px; align-items: flex-start; background: var(--danger-soft); color: var(--danger); border: 1px solid #F3B5B8; border-radius: var(--radius); padding: 13px; margin-bottom: 10px; }
.no-rider svg { flex: none; margin-top: 2px; }
.no-rider p { margin: 4px 0 0; }
.rec-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.rec-list li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 11px; }
.rec-list li.top { border-color: var(--green); background: var(--green-soft); }
.rec-list li.ineligible { opacity: .6; background: var(--surface-2); }
.rec-list label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.rec-list input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.rec-main { display: grid; gap: 2px; min-width: 0; }
.rec-main small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.rec-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.rec-score { margin-left: auto; font: 700 1.1rem var(--font-body); color: var(--green); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.assigned-box { background: var(--info-soft); border: 1px solid #A9C6F7; border-radius: var(--radius); padding: 13px; margin: 10px 0; }
.assigned-box p { margin: 0 0 4px; }
.rider-table { min-width: 1080px; }
.rider-table td:first-child { min-width: 190px; }
.rider-table td:nth-child(7) { min-width: 200px; }
.wallet-cell { min-width: 150px; }
.row-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
/* capacity against a hard ceiling */
.meter { height: 7px; border-radius: 999px; background: var(--border); overflow: hidden; margin: 7px 0 4px; }
.meter span { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .4s var(--ease); }
.meter.high span { background: var(--red); }
.card-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.remit-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px; }
.remit-card.serious { border-color: var(--danger); }
.plain-list { padding-left: 18px; font-size: .9rem; }
.activity { list-style: none; padding: 0; margin: 12px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.activity li { display: grid; grid-template-columns: 74px 120px 1fr; gap: 12px; padding: 11px 15px; border-bottom: 1px solid var(--border); align-items: start; font-size: .9rem; }
.activity li:last-child { border-bottom: 0; }
.activity time { color: var(--muted); }
.activity li.override { background: var(--amber-soft); }
.activity .badge { justify-self: start; }
.activity .reason { margin: 4px 0 0; color: var(--warn); font-weight: 500; font-size: .86rem; }
.scroll-hint { display: none; font-size: .82rem; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 1180px) { .scroll-hint { display: block; } }
@media (max-width: 700px) {
  .activity li { grid-template-columns: 1fr; gap: 4px; }
  .tool-head, .tool-main, .mode-effect { padding-left: 15px; padding-right: 15px; }
  .tool-name { display: none; }
}

/* ══════════ RIDER — one hand, outdoors, bright sun ══════════ */
.role-rider { background: var(--ink); }
.rider-frame { min-height: calc(100vh - var(--demobar-h)); display: flex; flex-direction: column; align-items: center; padding: 0; }
.rider-picker { width: 100%; max-width: 440px; padding: 10px 15px; color: #D5DAE1; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rider-picker label { display: grid; gap: 5px; }
.rider-picker select { min-height: 44px; background: #23262D; color: #FFFFFF; border-color: #2E323A; font-size: .9rem; text-transform: none; letter-spacing: 0; }
.rider { width: 100%; max-width: 440px; flex: 1; background: var(--canvas); display: flex; flex-direction: column; position: relative; }
@media (min-width: 520px) { .rider { border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; } }
.r-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: var(--demobar-h); z-index: 20; }
.r-head > div { display: grid; gap: 3px; }
.r-hello { font: 700 1.35rem/1.1 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; }
.r-status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; }
.r-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex: none; }
.st-available i { background: var(--green); }
.st-offer_pending i { background: var(--amber); }
.st-heading i, .st-waiting i, .st-delivering i { background: var(--info); }
.st-on_break i { background: var(--amber); }
.st-unavailable i { background: var(--danger); }
.r-online { display: inline-flex; align-items: center; gap: 10px; position: relative; font-weight: 600; font-size: .9rem; min-height: 44px; cursor: pointer; }
.r-main { flex: 1; padding: 15px 15px 100px; }
.r-stack { display: grid; gap: 13px; }
.r-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 17px; }
.r-card h2 { font-size: 1.45rem; }
.r-card h3 { margin-bottom: 7px; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); font-family: var(--font-body); }
.r-hero { text-align: center; padding: 26px 18px; }
/* waiting: a quiet ring, not a solid disc */
.r-hero.waiting { position: relative; }
.pulse { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--green); color: var(--green); margin: 0 auto 16px; position: relative; }
.pulse::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.pulse::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--green); animation: sonar 2.4s ease-out infinite; }
@keyframes sonar { from { transform: scale(1); opacity: .7; } to { transform: scale(1.75); opacity: 0; } }
.r-break { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-weight: 600; font-size: .88rem; }
.r-big { font: 700 2.5rem/1.1 var(--font-body); margin: 6px 0; letter-spacing: -.03em; }
.r-alert { display: flex; gap: 12px; align-items: center; background: var(--amber-soft); border: 1px solid #F6D08A; color: var(--warn); text-decoration: none; }
.r-alert p { margin: 3px 0 0; font-size: .88rem; }
.r-alert > svg:first-child { flex: none; width: 24px; height: 24px; }
.r-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.r-summary div { display: grid; gap: 3px; }
.r-summary span { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.r-summary b { font: 700 1.5rem/1.1 var(--font-body); letter-spacing: -.02em; }
.r-summary small { color: var(--ink-2); font-size: .8rem; }
.offer { border: 2px solid var(--amber); animation: rise .3s var(--ease); }
.offer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.offer-top h2 { font-size: 2.1rem; margin: 0; font-family: var(--font-body); font-weight: 700; letter-spacing: -.03em; }
.offer-top h2 small { font: 500 .88rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.route { list-style: none; padding: 0; margin: 15px 0; display: grid; gap: 11px; position: relative; }
.route li { display: flex; gap: 11px; align-items: flex-start; }
.route li > svg { flex: none; width: 21px; height: 21px; color: var(--red); margin-top: 2px; }
.route li div { display: grid; }
.route span { font-size: .86rem; color: var(--muted); }
.offer-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 12px; }
.offer-actions .btn { min-height: 54px; }
.r-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0; margin: 0; }
.r-steps li { font-size: .7rem; font-weight: 600; color: var(--muted); padding-top: 9px; border-top: 3px solid var(--border); text-align: center; line-height: 1.2; letter-spacing: .04em; }
.r-steps li.done { border-color: var(--green); color: var(--green); }
.r-steps li.current { border-color: var(--red); color: var(--ink); }
.task-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.task-place { display: flex; gap: 11px; align-items: flex-start; padding: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 11px; }
.task-place > svg { flex: none; width: 21px; height: 21px; color: var(--red); margin-top: 2px; }
.task-place div { display: grid; gap: 2px; }
.task-place b { font-size: 1.02rem; }
.task-place span { font-size: .88rem; color: var(--ink-2); }
.r-card .btn-block { margin-bottom: 8px; min-height: 54px; }
.cod-due { display: flex; align-items: center; gap: 10px; background: var(--green-soft); color: var(--green-ink); border: 1px solid #9BD9B8; border-radius: var(--radius); padding: 13px; margin-bottom: 11px; font-weight: 600; }
.cod-due b { margin-left: auto; font: 700 1.4rem var(--font-body); }
.pin-entry { margin-top: 10px; padding-top: 13px; border-top: 1px solid var(--border); }
.pin-input { font: 700 2rem/1 var(--font-body) !important; letter-spacing: .45em; text-align: center; min-height: 66px !important; }
.nocontact { margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--border-strong); }
.nocontact h3 { font-size: .74rem; }
.pod { margin: 0 0 11px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.pod-frame { aspect-ratio: 4/3; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--ink-2); background: var(--surface-2); font-weight: 500; font-size: .88rem; text-align: center; padding: 14px; }
.pod-frame svg { width: 44px; height: 44px; color: var(--border-strong); }
.pod-stamp { display: grid; gap: 3px; padding: 11px 13px; background: var(--ink); color: #D5DAE1; font: 500 .76rem/1.4 var(--font-body); letter-spacing: .04em; }
.r-list { list-style: none; padding: 0; margin: 0; }
.r-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.r-list li:last-child { border-bottom: 0; }
.r-list li > span { display: grid; gap: 2px; }
.r-list small { color: var(--muted); }
.official { background: var(--info-soft); color: var(--info-ink); border: 1px solid #A9C6F7; border-radius: var(--radius-sm); padding: 9px 11px; }
.hotline { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 15px 18px; border: 0; border-radius: var(--radius); background: var(--red); color: #FFFFFF; text-align: left; cursor: pointer; }
.hotline:hover { background: var(--red-deep); }
.hotline svg { width: 28px; height: 28px; flex: none; }
.hotline span { display: grid; }
.hotline b { font-size: 1.15rem; }
.hotline small { color: #FFFFFF; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.help-cat { min-height: 66px; padding: 11px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: .88rem; cursor: pointer; text-align: left; line-height: 1.25; color: var(--ink); }
.help-cat:hover { background: var(--surface-2); }
.help-cat.danger { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); grid-column: 1 / -1; }
.r-tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); z-index: 30; }
.r-tabs a { display: grid; justify-items: center; gap: 3px; padding: 10px 4px 11px; min-height: 60px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; }
.r-tabs a svg { width: 22px; height: 22px; }
.r-tabs a.active { color: var(--red-deep); }
.role-rider .toasts { bottom: 86px; }
.nav-sketch { width: 100%; margin-bottom: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ns-bg { fill: var(--surface-2); }
.ns-road { fill: none; stroke: var(--surface); stroke-width: 12; stroke-linejoin: round; }
.ns-route { fill: none; stroke: var(--info); stroke-width: 4; stroke-dasharray: 8 6; stroke-linejoin: round; }
.ns-me { fill: var(--info); stroke: var(--surface); stroke-width: 3; }
.ns-dest { fill: var(--red); stroke: var(--surface); stroke-width: 3; }

/* Store hero tile stays a quiet band on a phone: it is a placeholder, not a picture. */
@media (max-width: 760px) { .store-hero-photo { max-height: 120px; min-height: 96px; } }

/* ── Home: hero extras (pill, barangay chips, trust row) ─────────── */
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--red-soft); border: 1px solid #F6C7C9; color: var(--red-deep); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.hero-pill-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--red); flex: none; }
.hero-barangay-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: .82rem; }
.hero-barangay-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink-2); }
.hero-barangay-label svg { color: var(--red); }
.hero-barangay-chip { border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 5px 10px; min-height: 32px; font-weight: 600; font-size: .82rem; cursor: pointer; color: var(--ink); }
.hero-barangay-chip:hover { background: var(--red-soft); color: var(--red-deep); border-color: #F6C7C9; }
.hero-trust-row { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; font-size: .84rem; }
.hero-trust-row b { display: block; font-size: .86rem; }
.hero-trust-row small { color: var(--muted); font-size: .76rem; }
.hero-trust-avatars { display: inline-flex; }
.ht-a { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff; border: 2px solid var(--surface); margin-left: -8px; }
.ht-a:first-child { margin-left: 0; }
.ht-a1 { background: var(--red); z-index: 3; }
.ht-a2 { background: var(--amber); z-index: 2; }
.ht-a3 { background: var(--green); z-index: 1; }
.hero-trust-divider { width: 1px; height: 24px; background: var(--border); }
.hero-trust-live { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-2); }
.hero-trust-live i { width: 9px; height: 9px; border-radius: 999px; background: var(--green); flex: none; }

/* ── Home: hero visual — phone mockup + floating sample dish cards ─────────── */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 480px; padding: 20px 0; }
.hero-visual-glow { position: absolute; inset: 10% 14%; border-radius: 999px; background: radial-gradient(closest-side, var(--red-soft), transparent); z-index: 0; }
.hero-phone { position: relative; z-index: 1; width: min(290px, 78vw); background: var(--charcoal); border-radius: 44px; padding: 12px; box-shadow: var(--shadow-lg); }
.hero-phone-screen { background: var(--canvas); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #000; }
.hero-phone-status { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 2px; font-size: .68rem; font-weight: 700; color: var(--ink-2); }
.hero-phone-notch { width: 64px; height: 16px; background: var(--charcoal); border-radius: 999px; }
.hero-phone-status-icons { display: flex; align-items: center; gap: 4px; }
.hero-phone-status-icons svg { width: 12px; height: 12px; }
.hero-phone-appbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.hero-phone-appbar-loc { display: flex; flex-direction: column; line-height: 1.2; }
.hero-phone-appbar-loc small { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.hero-phone-appbar-loc b { font-size: .74rem; }
.hero-phone-search { display: flex; align-items: center; gap: 7px; margin: 10px 14px 0; padding: 7px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: .7rem; }
.hero-phone-search svg { width: 14px; height: 14px; color: var(--red); flex: none; }
.hero-phone-promo { display: flex; flex-direction: column; gap: 2px; margin: 10px 14px 0; padding: 12px 14px; border-radius: var(--radius); background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; }
.hero-phone-promo-eyebrow { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.2); border-radius: 999px; padding: 2px 8px; width: fit-content; }
.hero-phone-promo b { font-size: .82rem; margin-top: 4px; }
.hero-phone-promo span { font-size: .68rem; color: rgba(255,255,255,.9); }
.hero-phone-cats { display: flex; justify-content: space-between; padding: 12px 14px 6px; }
.hero-phone-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-phone-cat span { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--red-soft); color: var(--red-deep); display: grid; place-items: center; }
.hero-phone-cat span svg { width: 16px; height: 16px; }
.hero-phone-cat small { font-size: .6rem; font-weight: 700; color: var(--ink-2); }
.hero-phone-item { display: flex; align-items: center; gap: 8px; margin: 6px 14px 14px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.hero-phone-item .photo { width: 42px; height: 42px; border-radius: var(--radius-sm); flex: none; }
.hero-phone-item .photo figcaption { display: none; }
.hero-phone-item-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hero-phone-item-text b { font-size: .72rem; }
.hero-phone-item-text small { font-size: .62rem; color: var(--muted); }
.hero-phone-item-text span { font-size: .72rem; font-weight: 800; color: var(--red-deep); }
.hero-phone-item-add { margin-left: auto; width: 22px; height: 22px; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; border: 0; }
.hero-phone-item-add svg { width: 12px; height: 12px; }
.hero-phone-nav { display: flex; justify-content: space-around; padding: 7px 4px; background: var(--surface); border-top: 1px solid var(--border); }
.hero-phone-nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); }
.hero-phone-nav span svg { width: 15px; height: 15px; }
.hero-phone-nav span small { font-size: .56rem; font-weight: 700; }
.hero-phone-nav span.active { color: var(--red-deep); }

.hero-float { position: absolute; z-index: 2; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.hero-float-dish { width: 200px; top: 0; left: -8px; padding: 10px; animation: hero-float-y 4s ease-in-out infinite; }
.hero-float-dish-photo { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.hero-float-dish-photo .photo { border: 0; border-radius: 0; }
.hero-float-dish-photo .photo figcaption { display: none; }
.hero-float-dish-badge { position: absolute; top: 7px; left: 7px; display: inline-flex; align-items: center; gap: 4px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.hero-float-dish-badge svg { width: 10px; height: 10px; }
.hero-float-dish-price { position: absolute; bottom: 7px; right: 7px; background: rgba(21,24,29,.78); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-sm); }
.hero-float-dish-body { padding-top: 8px; }
.hero-float-dish-body h4 { font-size: .8rem; margin: 0 0 2px; }
.hero-float-dish-body p { font-size: .68rem; color: var(--muted); margin: 0; }
.hero-float-dish-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.hero-float-dish-tag { font-size: .62rem; font-weight: 700; color: var(--green-ink); background: var(--green-soft); padding: 3px 8px; border-radius: 999px; }
.hero-float-dish-add { width: 22px; height: 22px; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; border: 0; }
.hero-float-dish-add svg { width: 12px; height: 12px; }
.hero-float-badge { top: 24px; right: -4px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; animation: hero-float-y-rev 5s ease-in-out infinite; }
.hero-float-badge-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--red-soft); color: var(--red-deep); display: grid; place-items: center; flex: none; }
.hero-float-badge div { display: flex; flex-direction: column; line-height: 1.25; }
.hero-float-badge b { font-size: .76rem; }
.hero-float-badge span { font-size: .64rem; color: var(--muted); }
.hero-float-dish2 { width: 190px; bottom: -14px; right: -6px; display: flex; align-items: center; gap: 10px; padding: 9px; animation: hero-float-y-rev 4.5s ease-in-out infinite; }
.hero-float-dish2 .photo { width: 52px; height: 52px; border-radius: var(--radius-sm); flex: none; }
.hero-float-dish2 .photo figcaption { display: none; }
.hero-float-dish2 p { margin: 2px 0 0; font-size: .78rem; font-weight: 700; }
.hero-float-dish2-tag { font-size: .6rem; font-weight: 800; text-transform: uppercase; color: var(--green-ink); background: var(--green-soft); padding: 2px 7px; border-radius: 999px; }
@keyframes hero-float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hero-float-y-rev { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .hero-float-dish, .hero-float-badge, .hero-float-dish2 { animation: none; } }
@media (max-width: 899px) { .hero-visual { min-height: 400px; } .hero-float-dish { left: 0; } .hero-float-badge { right: 0; } .hero-float-dish2 { right: 0; } }

/* ── Home: food category discovery pills ─────────── */
.category-pills-wrap { padding: 28px 0 8px; }
.section-eyebrow-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-eyebrow-row h2 { margin: 2px 0 0; }
.category-pills { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.category-pills::-webkit-scrollbar { display: none; }
.category-pill { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.category-pill:hover { background: var(--red-soft); border-color: #F6C7C9; transform: translateY(-2px); }
.category-pill-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.category-pill-icon svg { width: 20px; height: 20px; }
.category-pill-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.category-pill-text b { font-size: .86rem; }
.category-pill-text small { color: var(--muted); font-weight: 500; font-size: .76rem; }

/* ── Home: Calapan Advantage dark band ─────────── */
.advantage-band { background: var(--charcoal); color: #E4E7EB; padding: 48px 0 56px; margin-top: 10px; }
.advantage-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.advantage-head h2 { color: #FFFFFF; margin: 10px 0 8px; }
.advantage-head p { color: #AEB6C0; margin: 0; }
.advantage-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.advantage-card { background: var(--charcoal-2); border: 1px solid #2E323A; border-radius: var(--radius-lg); padding: 24px; }
.advantage-card h3 { color: #FFFFFF; margin: 0 0 8px; }
.advantage-card > p { color: #C2C8D0; font-size: .92rem; margin: 0 0 16px; }
.advantage-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 16px; }
.advantage-icon svg { width: 24px; height: 24px; }
.advantage-icon.tone-red { background: rgba(220,31,38,.16); color: #FF8A8E; }
.advantage-icon.tone-amber { background: rgba(245,158,11,.16); color: var(--amber); }
.advantage-icon.tone-green { background: rgba(12,122,70,.2); color: #4ADE80; }
.advantage-checks { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid #2E323A; display: flex; flex-direction: column; gap: 7px; }
.advantage-checks li { display: flex; align-items: flex-start; gap: 7px; font-size: .84rem; color: #C2C8D0; }
.advantage-checks svg { color: #4ADE80; flex: none; margin-top: 2px; }

/* ── Store card: image-top layout ─────────── */
.store-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.store-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s var(--ease); }
.store-card:first-child { border-top: 1px solid var(--border); }
.store-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.store-card-link { color: inherit; text-decoration: none; display: block; }
.store-card-link:hover h3 { color: var(--red-deep); }
.store-card-photo { position: relative; }
.store-card-photo .photo { border: 0; border-radius: 0; }
.store-card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.store-card-fee-pill { position: absolute; bottom: 10px; right: 10px; background: rgba(21,24,29,.78); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.store-card.is-closed .store-card-photo { opacity: .55; }
.store-card.is-closed .store-card-body { opacity: .78; }
.store-card-body { padding: 14px 16px 6px; min-width: 0; }
.store-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 2px; transition: color .15s; }
.store-card-body > .muted { margin: 0 0 8px; font-size: .88rem; }
.store-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .86rem; color: var(--ink-2); font-weight: 500; margin: 0; }
.store-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.store-card-note { font-size: .82rem; color: var(--warn); font-weight: 600; margin: 8px 0 0; }
.store-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 14px; }
.store-card-story { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .82rem; font-weight: 600; color: var(--red-deep); text-decoration: none; }
.store-card-story:hover { text-decoration: underline; }
.store-card-order { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--red-soft); color: var(--red-deep); font-weight: 800; font-size: .82rem; text-decoration: none; margin-left: auto; }
.store-card-order:hover { background: var(--red); color: #fff; }

/* ── Home: Kwentong Kagat spotlight ─────────── */
.kwento-spotlight-wrap { padding: 36px 0; }
.kwento-spotlight-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .kwento-spotlight-grid { grid-template-columns: 1.6fr 1fr; } }
.kwento-spotlight-feature { display: block; text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.kwento-spotlight-feature:hover { box-shadow: var(--shadow-lg); }
.kwento-spotlight-feature .photo { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); }
.kwento-spotlight-feature-text { padding: 18px 22px 22px; }
.kwento-spotlight-feature-text h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 10px 0 6px; }
.kwento-spotlight-feature-text p { color: var(--ink-2); margin-bottom: 10px; }
.kwento-spotlight-side { display: flex; flex-direction: column; gap: 18px; }
.kwento-testimonial { background: var(--charcoal); color: #fff; border-radius: var(--radius-lg); padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.kwento-testimonial-quote { font-size: 1.05rem; font-weight: 600; line-height: 1.45; margin: 0; }
.kwento-testimonial-byline { margin: 0; font-size: .82rem; color: #AEB6C0; }
.kwento-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; text-align: center; }
.kwento-stats div:first-child { border-right: 1px solid var(--border); }
.kwento-stats b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--red-deep); }
.kwento-stats span { font-size: .76rem; color: var(--ink-2); font-weight: 600; }

/* ── Home: How It Works ─────────── */
.how-it-works-wrap { padding: 40px 0; }
.section-center { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.section-center h2 { margin: 6px 0 8px; }
.how-steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.how-step { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.how-step-n { position: absolute; top: 18px; right: 20px; font-size: 2.6rem; font-weight: 800; color: var(--border-strong); line-height: 1; }
.how-step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-lg); margin-bottom: 18px; }
.how-step-icon svg { width: 26px; height: 26px; }
.how-step-icon.tone-red { background: var(--red-soft); color: var(--red-deep); }
.how-step-icon.tone-amber { background: var(--amber-soft); color: var(--amber-ink); }
.how-step-icon.tone-green { background: var(--green-soft); color: var(--green-ink); }
.how-step h3 { margin: 0 0 8px; }
.how-step > p { color: var(--ink-2); font-size: .92rem; margin: 0 0 16px; }
.how-step-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 700; }
.how-step-tag svg { color: var(--green); }

/* ── Home: app download band ─────────── */
.app-download-wrap { padding: 8px 0 44px; }
.app-download-banner { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; border-radius: 28px; padding: 36px 28px; display: grid; gap: 28px; overflow: hidden; }
@media (min-width: 900px) { .app-download-banner { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 48px; } }
.app-download-copy h2 { color: #fff; margin: 14px 0 10px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.app-download-copy p { color: rgba(255,255,255,.9); max-width: 44em; }
.app-download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.app-download-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 22px; text-align: center; }
.app-download-qr { width: 110px; height: 110px; margin: 0 auto 12px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; place-items: center; color: var(--ink); }
.app-download-qr svg { width: 56px; height: 56px; }
.app-download-qr-label { font-weight: 700; margin: 0; }
.app-download-stores { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.app-download-store-btn { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.app-download-store-btn span { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.app-download-store-btn small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.app-download-store-btn b { font-size: .84rem; }

/* ── Mobile floating "Order Now" pill (shown instead of cartbar when cart is empty on Home) ─────────── */
.order-pill { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 420px; margin: 0 auto; display: none; align-items: center; gap: 10px; padding: 0 16px; min-height: 54px; border-radius: 999px; background: var(--charcoal); color: #fff; text-decoration: none; font-size: .84rem; font-weight: 600; box-shadow: var(--shadow-lg); }
.order-pill-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--red); flex: none; }
.order-pill b { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; }
@media (max-width: 760px) { .order-pill { display: flex; } }

.acceptance-timer { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; color: var(--amber-ink); font-variant-numeric: tabular-nums; }
.acceptance-timer b { font-size: 1.35rem; }

.merchant-missed-toast { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 10px; max-width: min(380px, calc(100vw - 36px)); padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); font-size: .875rem; line-height: 1.45; }
.merchant-missed-toast button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }

/* Rider introduction (customer): delivery-card button + centred dialog. */
.rider-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--info-soft); color: var(--info-ink); border: 1px solid #A9C6F7; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; cursor: pointer; min-height: 44px; }
.rider-card:hover { border-color: var(--info); }
.rider-card-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.rider-card-text small { color: var(--ink-2); font-size: .82rem; }
.rider-card-hint { font-size: .8rem; font-weight: 600; text-decoration: underline; }
.rider-photo { border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); flex: none; background: var(--surface-2); }
.rider-photo-fallback { display: inline-grid; place-items: center; font-weight: 700; color: var(--ink-2); }
.rider-intro { position: relative; text-align: center; display: grid; justify-items: center; gap: 8px; padding: 28px 22px 22px; max-width: 380px; }
.rider-intro h2 { margin: 0; font-size: 1.5rem; }
.rider-intro-kicker { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.rider-intro-facts { display: grid; gap: 6px; margin: 4px 0; width: 100%; text-align: left; }
.rider-intro-facts > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.rider-intro-facts dt { color: var(--muted); } .rider-intro-facts dd { margin: 0; font-weight: 700; letter-spacing: .02em; }

/* ── Ops · Register rider ───────────────────────────────────────────────────────────────────
   Two-column registration sheet: identity rail (photo, rider type, review checklist) + numbered
   section cards. Uses the shared tokens only; collapses to one column below 860px. */
.modal.rr-modal { max-width: 1040px; }
.rr-modal .modal-body { background: var(--canvas); padding: 14px 20px 18px; }
.rr { display: grid; gap: 14px; align-items: start; }
.rr-span { grid-column: 1 / -1; margin: 0; }
.rr-side { display: grid; gap: 14px; }
.rr-main { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 860px) { .rr { grid-template-columns: 300px minmax(0, 1fr); gap: 18px; } .rr-side { position: sticky; top: 0; } .rr > .rr-span { grid-column: 1 / -1; } }

.rr-photo, .rr-type, .rr-check, .rr-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.rr-photo { padding: 20px 18px 16px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.rr-avatar { position: relative; width: 148px; height: 148px; border-radius: 50%; overflow: hidden; cursor: pointer; display: grid; place-items: center; background: var(--surface-2); border: 2px dashed var(--border-strong); color: var(--ink-2); transition: border-color .15s var(--ease), background .15s var(--ease); }
.rr-avatar:hover { border-color: var(--red); background: var(--red-soft); color: var(--red-deep); }
.rr-avatar:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.rr-avatar input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.rr-avatar input:disabled { cursor: not-allowed; }
.rr-avatar.has-img { border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow); background: var(--surface-2); }
.rr-avatar.is-error { border-color: var(--danger); }
.rr-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rr-avatar-empty { display: grid; justify-items: center; gap: 6px; font-size: .86rem; }
.rr-avatar-empty svg { font-size: 1.9rem; }
.rr-avatar-change, .rr-avatar-busy { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 0 10px; font-size: .78rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(16,24,40,.72)); opacity: 0; transition: opacity .15s var(--ease); }
.rr-avatar:hover .rr-avatar-change, .rr-avatar:focus-within .rr-avatar-change { opacity: 1; }
.rr-avatar-busy { opacity: 1; top: 0; background: rgba(16,24,40,.55); }
.rr-avatar-busy svg { animation: rr-spin .9s linear infinite; }
@keyframes rr-spin { to { transform: rotate(360deg); } }
.rr-photo-state { margin: 0; font-size: .82rem; color: var(--muted); max-width: 24ch; text-wrap: pretty; }
.rr-photo-state.ok { color: var(--green-ink); font-weight: 600; }
.rr-photo-state svg { vertical-align: -2px; margin-right: 4px; }
.rr-photo-state.err { color: var(--danger); font-weight: 600; }

.rr-type { padding: 14px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.rr-type legend { padding: 0 4px; font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.rr-type label { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; background: var(--surface); transition: border-color .15s var(--ease), background .15s var(--ease); }
.rr-type label:hover { border-color: var(--ink-2); }
.rr-type label.active { border-color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
.rr-type label:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.rr-type input { position: absolute; opacity: 0; pointer-events: none; }
.rr-type svg { flex: none; font-size: 1.25rem; margin-top: 1px; color: var(--ink-2); }
.rr-type label.active svg { color: var(--red-deep); }
.rr-type span { display: grid; gap: 2px; }
.rr-type small { font-size: .8rem; color: var(--muted); line-height: 1.35; }

.rr-check { padding: 14px 16px; }
.rr-check h4 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.rr-check ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.rr-check li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.rr-check li svg { flex: none; }
.rr-check li.done { color: var(--ink); font-weight: 500; }
.rr-check li.done svg { color: #fff; background: var(--green); border-radius: 50%; padding: 2px; width: 18px; height: 18px; }
.rr-check p { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.45; padding-top: 10px; border-top: 1px solid var(--border); text-wrap: pretty; }

.rr-card { padding: 18px 18px 6px; }
.rr-card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.rr-card-head h3 { margin: 0; font-size: 1.05rem; }
.rr-card-head p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.rr-step { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--canvas); font-weight: 700; font-size: .85rem; }
.rr-grid { display: grid; align-items: start; grid-template-columns: 1fr; column-gap: 14px; }
@media (min-width: 560px) { .rr-grid { grid-template-columns: 1fr 1fr; } .rr-wide { grid-column: 1 / -1; } }
.rr-grid .field { min-width: 0; align-content: start; }
.rr input[type=date], .rr select { width: 100%; }
.rr input[type=date] { min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.rr input[aria-invalid="true"], .rr .has-error input { border-color: var(--danger); background: var(--danger-soft); }
.rr .notice { display: flex; gap: 8px; align-items: flex-start; }
.rr .notice svg { flex: none; margin-top: 2px; }
.rr-modal .modal-foot { align-items: center; }
.rr-foot-note { margin: 0 auto 0 0; font-size: .85rem; color: var(--muted); flex: 1 1 240px; text-wrap: pretty; }
.rr-foot-note b { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .rr-avatar-busy svg { animation: none; } .rr-avatar, .rr-type label { transition: none; } }

/* ── Ops · Rider board ─────────────────────────────────────────────────────────────────────
   Summary strip → filter tabs → one calm card per rider (who · now · cash · actions), with the
   internal trust line demoted to a footer. Replaces the 9-column table. */
.rb { display: grid; gap: 14px; }
.rb-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; justify-content: space-between; }
.rb-title { margin: 0; font-size: 1.25rem; }
.rb-sub { margin: 4px 0 0; display: flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); }
.rb-sub svg { color: var(--info); flex: none; }
.rb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .rb-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rb-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 4px; }
.rb-stat span { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rb-stat b { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rb-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.rb-tabs { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; max-width: 100%; }
.rb-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rb-tabs button:hover { background: rgba(16,24,40,.05); }
.rb-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.rb-tabs button:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }
.rb-tabs i { font-style: normal; font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--border); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rb-tabs button.on i { background: var(--ink); color: var(--canvas); }
.rb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rb-row { display: grid; gap: 12px 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(16,24,40,.04); grid-template-columns: 1fr; }
@media (min-width: 640px) { .rb-row { grid-template-columns: 1fr 1fr; } .rb-actions { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .rb-row { grid-template-columns: minmax(250px, 1.35fr) minmax(170px, 1fr) minmax(160px, .9fr) 210px; align-items: center; } .rb-actions { grid-column: auto; justify-content: flex-end; } }
.rb-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.rb-name { font-weight: 700; font-size: 1rem; color: var(--ink); }
.rb-meta { font-size: .8rem; color: var(--muted); }
.rb-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 5px; }
.rb-equip { display: inline-flex; gap: 4px; align-items: center; font-size: .76rem; color: var(--muted); }
.rb-now, .rb-cash { justify-items: start; display: grid; gap: 3px; align-content: center; font-size: .86rem; }
.rb-status { display: inline-flex; gap: 7px; align-items: center; font-weight: 600; color: var(--ink); }
.rb-line { color: var(--ink-2); }
.rb-line b { color: var(--ink); }
.rb-row .muted-2 { color: var(--muted); }
.rb-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-trust { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--border); font-size: .76rem; color: var(--muted); }
.rb-warn { color: var(--amber-ink); font-weight: 600; }
.rb-empty { padding: 28px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }

/* ── Motion (Apple-style: respond on press, never block input, critically damped — no overshoot) ──
   Only compositor properties. Entrances are CSS so they can't trap input; presses are instant. */
@keyframes rb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rr-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes rr-check { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.rb-row { animation: rb-in .32s var(--ease) both; animation-delay: calc(var(--i, 0) * 32ms); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.rb-row:hover { border-color: var(--border-strong); box-shadow: 0 2px 6px rgba(16,24,40,.06), 0 10px 24px -8px rgba(16,24,40,.12); transform: translateY(-1px); }
.rb-stat { animation: rb-in .32s var(--ease) both; }
.rb-stat:nth-child(2) { animation-delay: 40ms; } .rb-stat:nth-child(3) { animation-delay: 80ms; } .rb-stat:nth-child(4) { animation-delay: 120ms; }
.rb-tabs button { transition: background-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease), transform 90ms ease-out; }
.rb-tabs button:active, .rb-actions .btn:active, .rb-head .btn:active { transform: scale(.97); transition-duration: 60ms; }
.rb-tabs i { transition: background-color .16s var(--ease), color .16s var(--ease); }
.rr-avatar img { animation: rr-pop .28s var(--ease) both; }
.rr-check li.done svg { animation: rr-check .24s var(--ease) both; }
.rr-type label, .rr-card { transition: border-color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease), transform 90ms ease-out; }
.rr-type label:active { transform: scale(.985); }
@media (prefers-reduced-motion: reduce) {
  .rb-row, .rb-stat, .rr-avatar img, .rr-check li.done svg { animation: none; }
  .rb-row:hover { transform: none; }
  .rb-tabs button:active, .rb-actions .btn:active, .rb-head .btn:active, .rr-type label:active { transform: none; }
}

.weekly-recognition { display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #e6c888;border-radius:20px;background:#fff7e6;color:#8b5b16;font-size:11px;line-height:1.4;font-weight:600; }
.weekly-recognition svg { width:15px;height:15px;flex-shrink:0; }

/* ══ Merchant dashboard (web) ══════════════════════════════════════════════════════════════════
   Redesign of the Merchant tool: calmer header, pill tabs, "at a glance" tiles, order cards with a countdown ring,
   kitchen progress, rider recognition (photo, vehicle, plate) and handover check, a menu grid, tablet-first targets.
   Motion: cards rise in, accepted orders glow briefly where they land, the countdown ring eases and pulses when
   almost out, switches glide, presses answer instantly. Reduced motion → no movement.
   Class names the e2e flow relies on (.ocard, .ocard-new) are kept. */
.mx { background: var(--canvas); min-height: 100vh; }
.mx .tool-head { padding: 12px 24px; background: linear-gradient(180deg,#1b1e24,#15181D); border-bottom: 1px solid #262a32; }
.mx .store-switch-current { background: rgba(255,255,255,.1); padding: 6px 12px; border-radius: 999px; font-size: .86rem; }
.mx .accepting { border-radius: 14px; padding: 6px 16px; transition: background-color .25s ease, border-color .25s ease; }
.mx .accepting.on i { animation: mx-live 2.4s ease-out infinite; }
.mx .sound-toggle { border-radius: 12px; transition: transform 90ms ease-out, background-color 160ms ease; }
.mx .sound-toggle:active { transform: scale(.96); }
.mx .mx-pin { padding: 6px 11px; }
.mx .tool-tabs { padding: 10px 24px; gap: 6px; background: var(--canvas); border-bottom: 0; position: sticky; top: var(--demobar-h, 0px); z-index: 20; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mx .tool-tabs a { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; transition: background-color .16s ease, color .16s ease, transform 90ms ease-out; }
.mx .tool-tabs a:hover { background: var(--surface); }
.mx .tool-tabs a:active { transform: scale(.97); }
.mx .tool-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); border-bottom-color: var(--ink); }
.mx .tool-tabs a.active .tab-count { background: var(--red); }
.mx .tool-main { padding: 8px 24px 56px; }

.mx-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .mx-glance { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mx-glance-tile { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; animation: mx-rise .35s var(--ease) both; }
.mx-glance-tile span { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mx-glance-tile b { font: 800 1.9rem/1.1 var(--font-body); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mx-glance-tile small { font-size: .76rem; color: var(--muted); }
.mx-glance-tile.urgent { background: var(--red-soft); border-color: #f3b3b6; }
.mx-glance-tile.urgent b { color: var(--red-deep); }
.mx-glance-tile:nth-child(2) { animation-delay: 40ms; } .mx-glance-tile:nth-child(3) { animation-delay: 80ms; } .mx-glance-tile:nth-child(4) { animation-delay: 120ms; }

.mx-board { gap: 22px; }
@media (min-width: 900px) { .mx-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .mx-board { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); } }
.mx-board > * { min-width: 0; }
.mx .board-col h2 { border-bottom-width: 0; padding-bottom: 4px; font-size: .8rem; }
.mx .board-col h2 svg { width: 16px; height: 16px; }
.mx-ringing { display: flex; align-items: center; gap: 10px; border-radius: 14px; }
.mx-ringing i { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: mx-live 1.4s ease-out infinite; }
.mx-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 18px; border: 1.5px dashed var(--border-strong); border-radius: 18px; color: var(--muted); font-size: .88rem; background: rgba(255,255,255,.5); }
.mx-empty svg { width: 28px; height: 28px; color: #aab0ba; }
.mx-empty b { color: var(--ink-2); font-size: .95rem; }

.mx-card { padding: 18px; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(16,24,40,.04); animation: mx-rise .32s var(--ease) both; transition: box-shadow .2s ease, border-color .2s ease; }
.mx-card:hover { box-shadow: 0 6px 20px -8px rgba(16,24,40,.18); }
.mx-card .mx-id { font-size: 1.15rem; letter-spacing: -.01em; }
.mx-card-head { align-items: flex-start; }
.mx-card-head > div:first-child { display: grid; gap: 2px; }
.mx-new { border: 1.5px solid #f0a5a9; background: linear-gradient(180deg,#fff,#fffafa); }
.mx-new.mx-hot { border-color: var(--red); animation: mx-rise .32s var(--ease) both, mx-hot 1.6s ease-in-out .4s infinite; }
.mx-kitchen, .mx-ready { animation: mx-rise .32s var(--ease) both, mx-land 1.4s ease-out .1s 1; }
.mx-late { border-color: var(--warn); background: #fffaf2; }

.mx-ring { position: relative; flex: none; width: 76px; height: 76px; display: grid; place-items: center; }
.mx-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mx-ring circle { fill: none; stroke-width: 6; }
.mx-ring-bg { stroke: #ececf0; }
.mx-ring-fg { stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .4s ease; }
.mx-ring.ok .mx-ring-fg { stroke: #0C7A46; }
.mx-ring.warn .mx-ring-fg { stroke: #E59A0B; }
.mx-ring.urgent .mx-ring-fg { stroke: #DC1F26; }
.mx-ring.urgent { animation: mx-urgent 1s ease-in-out infinite; }
.mx-ring div { position: relative; display: grid; justify-items: center; line-height: 1.1; }
.mx-ring b { font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mx-ring small { font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.mx-lines { display: grid; gap: 8px; margin: 4px 0 12px; }
.mx-lines li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.mx-qty { flex: none; min-width: 34px; padding: 2px 0; text-align: center; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 800; font-size: .86rem; }
.mx-line-text { display: grid; gap: 2px; }
.mx-line-text small { color: var(--muted); font-size: .8rem; }
.mx-lines .note { display: block; margin-top: 2px; padding: 3px 9px; border-radius: 8px; background: #fff4e0; color: #8a5a06 !important; font-weight: 600; }
.mx-sum { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; margin: 0 0 10px; border-top: 1px dashed var(--border-strong); font-size: .9rem; }
.mx-sum b { font-size: 1.1rem; }
.mx-sum em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mx-prep { margin: 0 0 12px; }
.mx-prep legend { font-size: .72rem; }
.mx .seg label { min-height: 44px; border-radius: 12px; transition: background-color .16s ease, border-color .16s ease, transform 90ms ease-out; }
.mx .seg label:active { transform: scale(.96); }
.mx-actions .btn { min-height: 52px; border-radius: 14px; transition: transform 90ms ease-out, box-shadow .16s ease; }
.mx-actions .btn:active:not(:disabled) { transform: scale(.98); }

.mx-prep-meter { height: 8px; border-radius: 999px; background: #ececf0; overflow: hidden; margin: 2px 0 12px; }
.mx-prep-meter i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg,#E59A0B,#DC1F26); border-radius: inherit; transition: transform 1s linear; }
.mx-late .mx-prep-meter i { background: var(--danger); }
.mx .prep-timer { font-size: .95rem; }
.mx .prep-adjust button { border-radius: 12px; transition: transform 90ms ease-out, background-color .16s ease; }
.mx .prep-adjust button:active:not(:disabled) { transform: scale(.92); }

.mx-rider { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 0 12px; border-radius: 16px; background: #f4f6f8; border: 1px solid #e8ebef; }
.mx-rider.handover { background: #fff7f7; border-color: #f1b8bb; }
.mx-rider-none { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font-size: .86rem; color: var(--ink-2); }
.mx-rider-photo { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #dfe3e8; color: #4b5563; font-weight: 800; font-size: .85rem; border: 2px solid #fff; box-shadow: 0 0 0 1px #d3d8df; }
.mx-rider-photo img { width: 100%; height: 100%; object-fit: cover; }
.mx-rider-info { display: grid; gap: 1px; min-width: 0; flex: 1; }
.mx-rider-info b { display: flex; align-items: center; gap: 5px; font-size: .95rem; }
.mx-rider-info small { color: var(--ink-2); font-size: .8rem; }
.mx-verified { width: 16px; height: 16px; color: var(--green); flex: none; }
.mx-plate { flex: none; display: grid; gap: 3px; justify-items: end; }
.mx-plate small { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mx-plate code { font: 800 .95rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1.5px solid var(--ink); }

.mx-reasons { margin: 6px 0 14px; }
.mx-soldout { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.mx-soldout legend { padding: 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mx-check { display: flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; font-weight: 600; }
.mx-check input { width: 20px; height: 20px; accent-color: var(--red); }

.mx-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.mx-hero-photo { width: 168px; flex: none; border-radius: 12px; overflow: hidden; }
.mx-hero-text { flex: 1 1 220px; display: grid; gap: 4px; }
.mx-hero-actions { display: flex; gap: 8px; align-items: center; }
.mx-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.mx-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.mx-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.mx-search input { width: 100%; min-height: 46px; padding: 0 14px 0 40px; border-radius: 999px; }
.mx-seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.mx-seg button, .mx-chips button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .16s ease, color .16s ease, transform 90ms ease-out; }
.mx-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.14); }
.mx-seg button:active, .mx-chips button:active { transform: scale(.96); }
.mx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-chips button { border: 1px solid var(--border-strong); background: var(--surface); }
.mx-chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mx-seg button:focus-visible, .mx-chips button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.mx-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mx-item { display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; animation: mx-rise .32s var(--ease) both; transition: box-shadow .2s ease, transform .2s ease; }
.mx-item:hover { box-shadow: 0 10px 26px -12px rgba(16,24,40,.25); transform: translateY(-2px); }
.mx-item.out .mx-item-photo .photo, .mx-item.out .mx-item-photo img { filter: grayscale(1); opacity: .6; }
.mx-item-photo { position: relative; }
.mx-item-photo .photo { border-radius: 0; }
.mx-item-photo .photo figcaption { display: none; }
.mx-soldout-tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.mx-upload { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(16,24,40,.1); font-size: .78rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: transform 90ms ease-out; }
.mx-upload:active { transform: scale(.96); }
.mx-upload:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.mx-item-body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.mx-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mx-item-top b { font-size: 1rem; }
.mx-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.mx-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.mx-reset { background: none; border: 0; padding: 6px 0; font: inherit; font-size: .78rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.mx-reset:hover { color: var(--ink); }

.mx-tiles { border-radius: 20px; }
.mx .table { border-radius: 18px; }
.mx .side-card { border-radius: 20px; }

@keyframes mx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mx-live { 0% { box-shadow: 0 0 0 0 currentColor; } 70%,100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes mx-hot { 0%,100% { box-shadow: 0 0 0 0 rgba(220,31,38,.0); } 50% { box-shadow: 0 0 0 5px rgba(220,31,38,.14); } }
@keyframes mx-urgent { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes mx-land { 0% { box-shadow: 0 0 0 0 rgba(12,122,70,.45); } 100% { box-shadow: 0 0 0 14px rgba(12,122,70,0); } }
@media (max-width: 700px) { .mx .tool-head, .mx .tool-tabs, .mx .tool-main { padding-left: 14px; padding-right: 14px; } .mx-ring { width: 68px; height: 68px; } }
@media (prefers-reduced-motion: reduce) {
  .mx-glance-tile, .mx-card, .mx-item, .mx-kitchen, .mx-ready, .mx-new.mx-hot { animation: none; }
  .mx .accepting.on i, .mx-ringing i, .mx-ring.urgent { animation: none; }
  .mx-ring-fg, .mx-prep-meter i { transition: none; }
  .mx-item:hover { transform: none; }
  .mx .tool-tabs a:active, .mx .seg label:active, .mx-actions .btn:active:not(:disabled), .mx-upload:active { transform: none; }
}

.mx .tool-head .btn-ghost { color: #D5DAE1; }
.mx .tool-head .btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #fff; }
.mx-ring { width: 80px; height: 80px; }
.mx-hero-text .badge { justify-self: start; }

.mx-h2 { margin: 4px 0 14px; font-size: 1.5rem; letter-spacing: -.02em; }
.mx-history .stats { margin-bottom: 14px; }
.mx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 6px; }
.mx-top span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.mx-top b { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .86rem; }
.mx-top i { font-style: normal; min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800; }
.mx-history .history { margin: 10px 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.mx-history .history summary { cursor: pointer; font-weight: 600; }

/* ── Merchant · Store profile & pin ─────────────────────────────────────────────────────────── */
.mx-profile { display: grid; gap: 20px; }
.mx-prof-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; animation: mx-rise .32s var(--ease) both; }
.mx-prof-photo { width: 200px; flex: none; border-radius: 14px; overflow: hidden; }
.mx-prof-photo .photo figcaption { display: none; }
.mx-prof-id { flex: 1 1 280px; display: grid; gap: 6px; }
.mx-prof-id .mx-h2 { margin: 0; }
.mx-prof-id p { margin: 0; }
.mx-prof-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mx-status-chip, .mx-chip-plain { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.mx-status-chip.on { background: var(--green-soft); color: var(--green-ink); }
.mx-status-chip.off { background: var(--surface-2); color: var(--ink-2); }
.mx-status-chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mx-chip-plain { background: var(--surface-2); color: var(--ink-2); }
.mx-chip-plain svg { width: 14px; height: 14px; }
.mx-prof-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1100px) { .mx-prof-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); } }
.mx-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px; display: grid; gap: 14px; animation: mx-rise .34s var(--ease) both; }
.mx-side { display: grid; gap: 16px; }
.mx-panel-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.mx-panel-head h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }
.mx-panel-head p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.mx-pin-form { display: grid; gap: 12px; }
.mx-adv { border: 1px dashed var(--border-strong); border-radius: 14px; padding: 4px 14px; }
.mx-adv summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.mx-inline { display: flex; gap: 8px; }
.mx-inline input { flex: 1; min-width: 0; }
.mx-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mx-savebar { position: sticky; bottom: 12px; z-index: 4; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--border); font-size: .88rem; color: var(--ink-2); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.mx-savebar > div { display: flex; gap: 8px; }
.mx-savebar > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.mx-savebar svg { width: 16px; height: 16px; color: var(--green); }
.mx-savebar.dirty { border-color: #f0a5a9; background: #fff8f8; box-shadow: 0 8px 22px -10px rgba(220,31,38,.35); color: var(--red-deep); }
.mx-fees { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mx-fees li { display: flex; align-items: baseline; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.mx-fees li:last-child { border-bottom: 0; }
.mx-fees span { flex: 1; font-weight: 600; }
.mx-fees small { color: var(--muted); font-variant-numeric: tabular-nums; }
.mx-fees small.out { color: var(--warn); }
.mx-fees b { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.mx-facts { margin: 0; display: grid; gap: 0; }
.mx-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.mx-facts div:last-child { border-bottom: 0; }
.mx-facts dt { color: var(--muted); }
.mx-facts dd { margin: 0; font-weight: 600; text-align: right; }
.mx-kwento h4 { margin: 10px 0 4px; font-size: 1rem; }
.mx-kwento p { margin: 0 0 8px; font-size: .88rem; color: var(--ink-2); }

/* Pin picker: fixed pin, moving map */
.pp { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: #e8eaed; border: 1px solid var(--border-strong); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline-offset: 3px; }
.pp:active { cursor: grabbing; }
.pp:focus-visible { outline: 3px solid var(--red); }
.pp-svg { display: block; }
.pp-pin { position: absolute; left: 50%; top: 50%; width: 40px; height: 52px; margin: -52px 0 0 -20px; pointer-events: none; transform-origin: 50% 100%; transition: transform 180ms cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 3px 4px rgba(16,24,40,.35)); }
.pp-pin svg { display: block; }
.pp-pin i { position: absolute; left: 50%; bottom: -3px; width: 10px; height: 4px; margin-left: -5px; border-radius: 50%; background: rgba(16,24,40,.35); transition: transform 180ms ease, opacity 180ms ease; }
.pp-pin.lifted { transform: translateY(-9px) scale(1.06); }
.pp-pin.lifted i { transform: scale(.6); opacity: .6; }
.pp-cross { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--red); pointer-events: none; }
.pp-layers { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 10px; border-radius: 999px; background: rgba(255,255,255,.95); border: 1px solid rgba(16,24,40,.1); box-shadow: 0 1px 4px rgba(16,24,40,.18); }
.pp-layers svg { width: 14px; height: 14px; color: var(--muted); margin-right: 4px; }
.pp-layers button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: .78rem; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background-color .16s ease, color .16s ease; }
.pp-layers button.on { background: var(--ink); color: #fff; }
.pp-zoom { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; }
.pp-zoom button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(16,24,40,.12); background: rgba(255,255,255,.96); color: var(--ink); cursor: pointer; box-shadow: 0 1px 4px rgba(16,24,40,.18); transition: transform 90ms ease-out; }
.pp-zoom button:active:not(:disabled) { transform: scale(.92); }
.pp-zoom button:disabled { opacity: .4; cursor: not-allowed; }
.pp-readout { position: absolute; left: 12px; bottom: 12px; display: grid; gap: 1px; padding: 8px 13px; border-radius: 14px; background: rgba(255,255,255,.96); border: 1px solid rgba(16,24,40,.1); box-shadow: 0 1px 4px rgba(16,24,40,.18); pointer-events: none; max-width: calc(100% - 90px); }
.pp-readout b { font-size: .9rem; font-variant-numeric: tabular-nums; }
.pp-readout small { font-size: .72rem; color: var(--muted); }
.pp-credit { position: absolute; right: 8px; bottom: 3px; font-size: 9px; color: #4b5563; opacity: .85; pointer-events: none; text-shadow: 0 0 3px #fff; }
@media (prefers-reduced-motion: reduce) { .mx-prof-head, .mx-panel { animation: none; } .pp-pin, .pp-pin i, .mx-savebar { transition: none; } .pp-zoom button:active:not(:disabled) { transform: none; } }

.merchant-restaurant-logo { width:90px;height:90px;flex:0 0 90px;border-radius:50%;overflow:hidden;background:#fdecec;color:#a8161c;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:28px; }
.merchant-restaurant-logo img { width:100%;height:100%;object-fit:cover; }

/* ── Merchant · Open today checklist (same card language as the menu grid) ─────────────────── */
.modal.mx-open { max-width: 760px; }
.mx-open .modal-body { padding-top: 4px; }
.mx-open-head { display: grid; gap: 12px; margin-bottom: 8px; }
.mx-open-head > p { margin: 0; color: var(--ink-2); font-size: .95rem; text-wrap: pretty; }
.mx-open-meter { height: 8px; border-radius: 999px; background: #ececf0; overflow: hidden; }
.mx-open-meter i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, #0C7A46, #22a863); border-radius: inherit; transition: transform .35s var(--ease); }
.mx-open-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.mx-open-tools .mx-search { flex: 1 1 220px; max-width: 320px; }
.mx-linkbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: background-color .16s ease, transform 90ms ease-out; }
.mx-linkbtn:hover { background: var(--surface-2); }
.mx-linkbtn:active { transform: scale(.96); }
.mx-linkbtn svg { width: 15px; height: 15px; }
.mx-open-group { margin-top: 18px; }
.mx-open-group h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mx-open-group h3 span { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mx-open-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .mx-open-list { grid-template-columns: 1fr 1fr; } }
.mx-open-row { animation: mx-rise .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.mx-open-row label { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); cursor: pointer; transition: border-color .18s ease, background-color .18s ease, transform 90ms ease-out, box-shadow .18s ease; }
.mx-open-row label:hover { border-color: var(--border-strong); box-shadow: 0 6px 18px -10px rgba(16,24,40,.25); }
.mx-open-row label:active { transform: scale(.985); }
.mx-open-row label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.mx-open-row.out label { background: #f6f7f9; border-style: dashed; }
.mx-open-thumb { flex: none; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; }
.mx-open-thumb .photo { border-radius: 12px; }
.mx-open-thumb .photo figcaption { display: none; }
.mx-open-row.out .mx-open-thumb { filter: grayscale(1); opacity: .6; }
.mx-open-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mx-open-info b { font-size: .95rem; line-height: 1.25; }
.mx-open-row.out .mx-open-info b { color: var(--muted); }
.mx-open-info small { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink-2); font-size: .82rem; font-variant-numeric: tabular-nums; }
.mx-open-info em { font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.mx-open-row .switch { flex: none; }
.mx-open .modal-foot { align-items: center; }
.mx-open-note { margin: 0 auto 0 0; font-size: .86rem; color: var(--muted); flex: 1 1 140px; font-variant-numeric: tabular-nums; }
.mx-open-note b { color: var(--green-ink); }
.mx-open-note b.off { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .mx-open-row { animation: none; } .mx-open-meter i { transition: none; } .mx-open-row label:active, .mx-linkbtn:active { transform: none; } }
.mx-open-thumb .photo { aspect-ratio: 1 !important; height: 100%; }
.mx-open-thumb .photo-mono { font-size: 1.15rem !important; inset: 0; display: grid; place-items: center; }

/* ══ Ops desks · Cash & remittances, Support, Activity log ═══════════════════════════════════════
   One shared vocabulary (reuses the Rider board's head / stat tiles / filter tabs): a short header, "what needs me"
   first, then cards that each hold one decision with its inputs inline. Actions stay disabled until the required note
   is written and say why. Motion: cards rise in with a tiny stagger, status strips ease between states, presses answer
   instantly; reduced motion removes all movement. */
.ox { gap: 20px; }
.ox :is(h2, h3) { margin: 0; text-transform: none; letter-spacing: 0; border: 0; padding: 0; }
.ox .rb-stats { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .ox .rb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rb-stat small { font-size: .76rem; color: var(--muted); }
.rb-stat.attn { background: var(--amber-soft); border-color: #f2d49b; }
.rb-stat.attn b { color: var(--amber-ink); }
.ox-grow { flex: 1 1 0; min-width: 0; }
.ox-grow > b { display: block; }
.ox-grow > small { display: block; font-size: .8rem; color: var(--muted); margin-top: 1px; }

.ox-sec { display: grid; gap: 10px; }
.ox-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ox-sec-head p { margin: 0; font-size: .8rem; color: var(--muted); }
.ox-sec-title { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem !important; font-weight: 700; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--ink-2); font-family: var(--font-body); }
.ox-sec-title::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--border-strong); }
.ox-sec-title.warn::before { background: var(--amber); } .ox-sec-title.danger::before { background: var(--red); } .ox-sec-title.ok::before { background: var(--green); }
.ox-sec-title i, .ox-day-title i { font-style: normal; font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ox-stack { display: grid; gap: 12px; }
.ox-clear b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.ox-clear p { margin: 0; font-size: .88rem; }
.ox-none { margin: 0; color: var(--muted); font-size: .9rem; }

.ox-alert { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 14px; border-radius: var(--radius); background: var(--red-soft); border: 1px solid #f3b3b6; color: var(--red-deep); font-weight: 600; font-size: .9rem; }
.ox-alert svg { flex: none; }

.ox-card { display: grid; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.ox-card.is-late { border-color: #f1c7a1; background: linear-gradient(180deg, #fff 55%, #fffaf4); }
.ox-card.is-serious { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 1px 2px rgba(16,24,40,.04); background: linear-gradient(180deg, #fff 55%, #fff6f6); }
.ox-card-head { display: flex; gap: 12px; align-items: center; }
.ox-card-title { font-size: 1.02rem; color: var(--ink); }
.ox-ord { margin-left: 6px; font-size: .76rem; font-weight: 600; color: var(--muted); padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.ox-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); }
.ox-ico svg { width: 20px; height: 20px; } .ox-ico.sm { width: 34px; height: 34px; } .ox-ico.sm svg { width: 17px; height: 17px; }
.ox-amt { text-align: right; display: grid; gap: 0; }
.ox-amt span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ox-amt b { font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.ox-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 12px 14px; background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); }
@media (max-width: 640px) { .ox-facts { grid-template-columns: 1fr; } }
.ox-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ox-facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ox-ic { display: flex; gap: 6px; align-items: center; } .ox-ic svg { flex: none; color: var(--muted); }
.ox-receipt { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink-2); font-size: .86rem; font-weight: 600; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .16s var(--ease), background-color .16s var(--ease); }
.ox-receipt:hover { border-color: var(--border-strong); background: var(--canvas); }
.ox-receipt img { width: 88px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex: none; }
.ox-receipt span { display: inline-flex; gap: 6px; align-items: center; }

.ox-confirm { display: grid; gap: 10px; }
.ox-field { display: grid; gap: 6px; align-content: start; }
.ox-field > span { font-size: .82rem; font-weight: 600; color: var(--ink-2); text-wrap: pretty; }
.ox-field input, .ox-field select, .ox-field textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.ox-field input:focus, .ox-field select:focus, .ox-field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,24,29,.12); }
.ox-field input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.ox-field textarea { resize: vertical; min-height: 64px; }
.ox-narrow { max-width: 340px; }
.ox-field input[inputmode="decimal"] { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ox-verdict { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0; padding: 10px 12px; border-radius: var(--radius); font-size: .88rem; font-weight: 600; border: 1px solid transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.ox-verdict svg { flex: none; }
.ox-verdict em { margin-left: auto; font-style: normal; font-weight: 500; opacity: .85; }
.ox-verdict.ok { background: var(--green-soft); border-color: #b9e3cd; color: var(--green-ink); }
.ox-verdict.warn { background: var(--amber-soft); border-color: #f2d49b; color: var(--amber-ink); }
.ox-verdict.bad { background: var(--red-soft); border-color: #f3b3b6; color: var(--red-deep); }

.ox-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.ox-actions .btn { gap: 6px; }
.ox-actions small { flex: 1 1 100%; font-size: .8rem; color: var(--muted); }
@media (min-width: 900px) { .ox-actions small { flex: 1 1 0; min-width: 220px; } }
.ox-msg { margin: 0; font-size: .86rem; color: var(--green-ink); font-weight: 600; }

.ox-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--ink-2); }
.ox-tag svg { width: 13px; height: 13px; flex: none; }
.ox-tag.ok { background: var(--green-soft); border-color: #b9e3cd; color: var(--green-ink); }
.ox-tag.warn { background: var(--amber-soft); border-color: #f2d49b; color: var(--amber-ink); }
.ox-tag.danger { background: var(--red-soft); border-color: #f3b3b6; color: var(--red-deep); }
.ox-tag.info { background: var(--info-soft); border-color: #bcd2f8; color: var(--info-ink); }
.ox-tag.dark { background: var(--ink); border-color: var(--ink); color: #fff; }

.ox-holders, .ox-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ox-holder, .ox-hrow { display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .16s var(--ease), background-color .16s var(--ease); }
.ox-holder:hover, .ox-hrow:hover { border-color: var(--border-strong); background: #fcfcfd; }
.ox-holder .ox-tag { display: none; }
@media (min-width: 560px) { .ox-holder .ox-tag { display: inline-flex; } }
.ox-money { font-size: 1.1rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; min-width: 72px; text-align: right; }
.ox-hrow { align-items: flex-start; }
.ox-hrow .ox-grow small { display: block; }
.ox-note { color: var(--ink-2) !important; font-style: italic; margin-top: 3px !important; }
.ox-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.ox-dot svg { width: 17px; height: 17px; }
.ox-dot.ok { background: var(--green-soft); color: var(--green-ink); } .ox-dot.bad { background: var(--red-soft); color: var(--red-deep); }
.ox-hmoney { display: grid; justify-items: end; gap: 4px; }
.ox-hmoney b { font-variant-numeric: tabular-nums; font-size: 1.02rem; }

.ox-calls { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ox-calls { grid-template-columns: 1fr 1fr; } }
.ox-call { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--canvas); flex-wrap: wrap; }
.ox-call .btn { margin-left: auto; }
.ox-card > .ox-call { background: var(--canvas); }
.ox-rule { margin: 0; font-size: .84rem; color: var(--muted); text-wrap: pretty; }
.ox-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.ox-steps li { display: inline-flex; gap: 8px; align-items: center; }
.ox-steps i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .76rem; border: 1.5px solid var(--border-strong); background: var(--surface); }
.ox-steps i svg { width: 15px; height: 15px; }
.ox-steps li.now { color: var(--ink); } .ox-steps li.now i { background: var(--ink); color: #fff; border-color: var(--ink); }
.ox-steps li.done { color: var(--green-ink); } .ox-steps li.done i { background: var(--green-soft); border-color: #b9e3cd; color: var(--green-ink); }
.ox-details { border-top: 1px dashed var(--border); padding-top: 10px; font-size: .86rem; color: var(--ink-2); }
.ox-details summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.ox-details p { margin: 6px 0; color: var(--muted); }
.ox-events { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ox-events time { display: inline-block; min-width: 64px; margin-right: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ox-staff { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); }
.ox-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ox-inline .ox-field { flex: 1 1 260px; }
.ox-cred { padding: 8px 10px; border-radius: 8px; background: var(--green-soft); color: var(--green-ink) !important; font-weight: 600; overflow-wrap: anywhere; }
.ox-stores { display: grid; gap: 12px; }

.ox-quote { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); }
.ox-quote svg { flex: none; color: var(--muted); margin-top: 2px; }
.ox-quote span { font-size: .95rem; color: var(--ink); text-wrap: pretty; }
.ox-quote small { display: block; margin-top: 3px; font-size: .76rem; color: var(--muted); }
.ox-detail { margin: 0; font-size: .95rem; color: var(--ink); text-wrap: pretty; }
.ox-thread { display: grid; gap: 8px; }
.ox-thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.ox-msg { display: grid; gap: 2px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--canvas); max-width: 85%; }
.ox-msg.is-support { justify-self: end; background: var(--surface); }
.ox-msg small { font-size: .74rem; color: var(--muted); }
.ox-msg span { font-size: .92rem; color: var(--ink); text-wrap: pretty; overflow-wrap: anywhere; }
.ox-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ox-chip { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; color: var(--ink-2); text-decoration: none; }
.ox-chip.link { color: var(--info-ink); border-color: #bcd2f8; background: var(--info-soft); font-weight: 600; }
.ox-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; width: fit-content; max-width: 100%; }
.ox-seg button { min-height: 38px; padding: 4px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; transition: background-color .16s var(--ease), color .16s var(--ease), transform 90ms ease-out; }
.ox-seg button:hover { background: rgba(16,24,40,.05); }
.ox-seg button.on { background: var(--ink); color: #fff; }
.ox-seg button:active { transform: scale(.97); }
.ox-seg button:focus-visible, .ox-toggle:focus-visible, .ox-linkbtn:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }

/* Activity log */
.ox-filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ox-toggle { display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 4px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; transition: background-color .16s var(--ease), border-color .16s var(--ease), transform 90ms ease-out; }
.ox-toggle:hover { background: var(--surface-2); }
.ox-toggle:active { transform: scale(.97); }
.ox-toggle svg { width: 15px; height: 15px; color: var(--amber-ink); }
.ox-toggle i { font-style: normal; font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--border); font-variant-numeric: tabular-nums; }
.ox-toggle.on { background: var(--amber-soft); border-color: #f2d49b; color: var(--amber-ink); }
.ox-toggle.on i { background: var(--amber); color: #fff; }
.ox-search { position: relative; display: flex; align-items: center; flex: 1 1 240px; max-width: 380px; margin-left: auto; }
.ox-search > svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.ox-search input { width: 100%; min-height: 40px; padding: 6px 36px 6px 36px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); font: inherit; font-size: .88rem; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.ox-search input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,24,29,.12); }
.ox-search button { position: absolute; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.ox-search button:hover { background: var(--surface-2); color: var(--ink); }
.ox-count { margin: -6px 0 0; font-size: .8rem; color: var(--muted); }
.ox-linkbtn { border: 0; background: none; padding: 6px 8px; margin-top: 6px; color: var(--info-ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 40px; }
.ox-day { display: grid; gap: 8px; }
.ox-day-title { position: sticky; top: var(--demobar-h, 0px); z-index: 5; display: flex; align-items: center; gap: 8px; margin: 0 -2px; padding: 8px 2px; font-size: .78rem !important; font-weight: 700; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--ink-2); font-family: var(--font-body); background: rgba(247,248,250,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ox-timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.ox-entry { display: grid; grid-template-columns: 68px 16px minmax(0, 1fr); gap: 0 10px; align-items: start; }
.ox-entry > time { padding-top: 12px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.ox-rail { position: relative; align-self: stretch; display: flex; justify-content: center; }
.ox-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--border); }
.ox-entry:first-child .ox-rail::before { top: 17px; } .ox-entry:last-child .ox-rail::before { bottom: calc(100% - 17px); }
.ox-rail b { position: relative; margin-top: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.ox-entry.is-override .ox-rail b { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.ox-entry-body { margin: 4px 0; padding: 9px 14px; border-radius: var(--radius); border: 1px solid transparent; transition: background-color .16s var(--ease), border-color .16s var(--ease); }
.ox-entry:hover .ox-entry-body { background: var(--surface); border-color: var(--border); }
.ox-entry.is-override .ox-entry-body { background: linear-gradient(180deg, #fffdf8, var(--amber-soft)); border-color: #f2d49b; }
.ox-entry-top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.ox-entry-action { font-size: .95rem; color: var(--ink); }
.ox-entry-detail { margin: 3px 0 0; font-size: .86rem; color: var(--ink-2); text-wrap: pretty; overflow-wrap: anywhere; }
.ox-entry-reason { margin: 6px 0 0; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.75); border: 1px dashed #e7bd73; font-size: .86rem; color: #7a4310; font-weight: 600; text-wrap: pretty; }
.ox-entry-reason span { margin-right: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink); }
.ox mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }
.ox-more { justify-self: center; }
@media (max-width: 560px) { .ox-entry { grid-template-columns: 14px minmax(0, 1fr); } .ox-entry > time { grid-column: 2; grid-row: 1; text-align: left; padding: 8px 0 0 10px; } .ox-entry .ox-rail { grid-column: 1; grid-row: 1 / span 2; } .ox-entry .ox-entry-body { grid-column: 2; grid-row: 2; } .ox-search { max-width: none; margin-left: 0; } }

@keyframes ox-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ox-card, .ox-holder, .ox-hrow { animation: ox-in .32s var(--ease) both; animation-delay: calc(var(--i, 0) * 36ms); }
.ox-entry { animation: ox-in .28s var(--ease) both; animation-delay: calc(var(--i, 0) * 24ms); }
.ox-card { transition: box-shadow .18s var(--ease), border-color .18s var(--ease); }
.ox-card:hover { box-shadow: 0 2px 6px rgba(16,24,40,.06), 0 10px 24px -10px rgba(16,24,40,.14); }
.ox .btn:active:not(:disabled) { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .ox-card, .ox-holder, .ox-hrow, .ox-entry { animation: none; }
  .ox-verdict, .ox-card, .ox-seg button, .ox-toggle { transition: none; }
  .ox .btn:active:not(:disabled), .ox-seg button:active, .ox-toggle:active { transform: none; }
}
.ox-msg.bad { color: var(--red-deep); }

/* Pin picker on narrow screens (checkout + merchant profile): layer switcher scrolls instead of running under the zoom buttons,
   a smaller readout leaves the map visible, bigger hit areas, and room before the next field. */
.pp { margin-bottom: 14px; }
@media (max-width: 560px) {
  .pp-layers { max-width: calc(100% - 72px); overflow-x: auto; scrollbar-width: none; }
  .pp-layers::-webkit-scrollbar { display: none; }
  .pp-layers button { min-height: 40px; white-space: nowrap; }
  .pp-readout { padding: 8px 10px; max-width: calc(100% - 20px); }
  .pp-readout b { font-size: .86rem; }
  .pp-readout small { font-size: .74rem; line-height: 1.3; }
}
@media (max-width: 560px) { .pp-zoom button { width: 44px; height: 44px; } }

/* Past orders: "Umorder ulit" sits under the row; orders page and order page */
.order-list li { border-top: 1px solid var(--border); }
.order-list li:first-child { border-top: 0; }
.order-list li a { border-top: 0; }
.order-list .order-again { margin: 0 0 12px; }
.order-again-row { margin: 0 0 14px; }
.alert-optin { margin-top: 6px; }
.ox-health { display: grid; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ox-health h3 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: .95rem; }
.ox-range { align-items: flex-end; }
.ox-range .ox-field { flex: 0 1 170px; }
.ox .ox-stats6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .ox .ox-stats6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.legal-page h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal-page ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-page p, .legal-page li { line-height: 1.55; max-width: 70ch; }
.shop-footer-bottom a { color: inherit; text-decoration: underline; padding-block: 12px; }

/* ══════════ Merchant · add / edit / arrange menu items ══════════ */
.mx-edit { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background-color .16s ease, transform 90ms ease-out; }
.mx-edit:hover { background: var(--surface-2); }
.mx-edit:active, .mx-fab:active, .mx-arrange-btn:active, .mx-undo button:active { transform: scale(.96); }
.mx-item.is-new { animation: mi-flash 1.8s var(--ease); }
@keyframes mi-flash { 0% { box-shadow: 0 0 0 0 rgba(12,122,70,.55); } 30% { box-shadow: 0 0 0 6px rgba(12,122,70,.28); } 100% { box-shadow: 0 0 0 0 rgba(12,122,70,0); } }
.mx-arrange-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: background-color .16s ease, color .16s ease, transform 90ms ease-out; }
.mx-arrange-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mx-fab { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; box-shadow: var(--shadow-lg); animation: mi-pop .42s var(--ease) both; transition: transform 90ms ease-out, background-color .16s ease; }
.mx-fab:hover { background: var(--red-deep); }
.mx-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@keyframes mi-pop { from { opacity: 0; transform: translateY(14px) scale(.9); } }
.mx-undo { position: fixed; z-index: 70; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(420px, calc(100% - 32px)); padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .9rem; animation: mi-pop .3s var(--ease) both; }
.mx-undo button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: transform 90ms ease-out; }

.mi-sheet .modal-body { display: grid; gap: 16px; padding-bottom: 16px; }
.mi-lead { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--amber-soft); color: var(--amber-ink); font-size: .88rem; }
.mi-lead b { display: block; }
.mi-photo { display: grid; gap: 4px; justify-items: start; }
.mi-photo-pick { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16/9; border: 1.5px dashed var(--border-strong); border-radius: 18px; background: var(--surface-2) center / cover no-repeat; color: var(--ink-2); font-weight: 700; cursor: pointer; overflow: hidden; transition: border-color .16s ease; }
.mi-photo-pick:hover { border-color: var(--ink-2); }
.mi-photo-pick.has { border-style: solid; border-color: var(--border); }
.mi-photo-pick span { display: grid; justify-items: center; gap: 4px; }
.mi-photo-pick svg { width: 24px; height: 24px; }
.mi-photo-pick small { font-weight: 500; color: var(--muted); }
.mi-photo-change { position: absolute; right: 10px; bottom: 10px; display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 6px !important; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); font-size: .8rem; color: var(--ink); }
.mi-photo-pick:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.mi-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.mi-field > span, .mi-field > legend { padding: 0; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mi-field small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.mi-field input:not([type=file]), .mi-field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .16s ease, box-shadow .16s ease; }
.mi-field textarea { padding: 12px 14px; resize: vertical; }
.mi-field input:focus, .mi-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,24,29,.12); }
.mi-money { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); transition: border-color .16s ease, box-shadow .16s ease; }
.mi-money:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,24,29,.12); }
.mi-money b { padding-left: 14px; color: var(--muted); }
.mi-money input:not([type=file]) { border: 0 !important; box-shadow: none !important; background: transparent; min-width: 0; }
.mi-money.sm { width: 120px; flex: none; }
.mi-price .mi-money { max-width: 200px; }
.mi-cats .mx-chips { gap: 8px; }
.mi-cats .mx-chips button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.mi-catinput { margin-top: 4px; }
.mi-extras { gap: 8px; }
.mi-extra { display: flex; gap: 8px; align-items: center; animation: mx-rise .26s var(--ease) both; }
.mi-extra > input { flex: 1; min-width: 0; }
.mi-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.mi-x:hover { background: var(--surface-2); color: var(--ink); }
.mi-extras .mx-linkbtn { justify-self: start; }
.mi-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: .88rem; font-weight: 600; }
.mi-sheet .mi-remove { color: var(--danger); margin-right: auto; flex: 0 0 auto; }

.mi-arrange { display: grid; gap: 22px; }
.mi-arrange-tip { margin: 0; color: var(--muted); font-size: .88rem; text-wrap: pretty; }
.mi-arrange-tip svg { width: 16px; height: 16px; vertical-align: -3px; }
.mi-group h3 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mi-group h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mi-group h3 small { margin-left: 6px; color: var(--muted); font-weight: 500; }
.mi-gmove { display: inline-flex; gap: 4px; }
.mi-gmove button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: transform 90ms ease-out, background-color .16s ease; }
.mi-gmove button:hover:not(:disabled) { background: var(--surface-2); }
.mi-gmove button:active:not(:disabled) { transform: scale(.94); }
.mi-gmove button:disabled { opacity: .35; cursor: default; }
.mi-gmove svg { width: 20px; height: 20px; }
.mi-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mi-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px 8px 4px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: transform .22s var(--ease), box-shadow .2s ease; }
.mi-row.lifted { z-index: 5; transition: box-shadow .2s ease; box-shadow: var(--shadow-lg); }
.mi-row.lifted.settling { transition: transform .2s var(--ease), box-shadow .2s ease; }
.mi-row.off { background: var(--surface-2); }
.mi-grip { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.mi-grip:hover { background: var(--surface-2); color: var(--ink); }
.mi-row.lifted .mi-grip { cursor: grabbing; color: var(--ink); }
.mi-grip:focus-visible { outline: 3px solid var(--red); outline-offset: 0; }
.mi-grip svg { width: 22px; height: 22px; }
.mi-thumb { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2) center / cover; color: var(--muted); font-weight: 800; }
.mi-row-name { display: grid; min-width: 0; flex: 1; }
.mi-row-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-row-name small { color: var(--muted); }
.mi-state { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--border); color: var(--ink-2); font-size: .75rem; font-weight: 800; }
.mi-state.on { background: var(--green-soft); color: var(--green-ink); }
@media (max-width: 700px) { .mx-toolbar { gap: 8px; } }
.mx-menu { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) {
  .mx-fab, .mx-undo, .mi-extra, .mx-item.is-new { animation: none; }
  .mi-row, .mi-row.lifted.settling { transition: none; }
}
@media (prefers-reduced-transparency: reduce) { .mi-photo-change { background: #fff; backdrop-filter: none; } }

/* Touch targets: on touch screens every merchant control is at least 44px tall (WCAG 2.5.8 / Apple HIG). */
@media (pointer: coarse) {
  .mx-seg button, .mx-chips button, .merchant-badge-presets button, .mx-reset, .mx-linkbtn { min-height: 44px; }
  .mx-reset { padding: 0 8px; }
}
h1.tool-name { margin: 0; line-height: 1.2; }

/* Dedicated badge studio: menu editing stays focused on food, photos and availability. */
.mb-studio{--mb-red:#be1731;--mb-border:#e9e4e7;--mb-muted:#736b72;color:#211c23;padding-bottom:40px}
.mb-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:12px 0 28px}.mb-eyebrow{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:800;letter-spacing:1.5px;color:var(--mb-red)}.mb-eyebrow svg{width:15px;height:15px}.mb-heading h2{font-size:clamp(25px,2.5vw,36px);line-height:1.12;letter-spacing:-1.2px;margin:12px 0;color:#201b22}.mb-heading p{font-size:13px;line-height:1.7;color:var(--mb-muted);margin:0}.mb-counter{display:flex;align-items:center;gap:6px;flex:none;padding:10px 14px;border:1px solid var(--mb-border);background:#fff;border-radius:100px;font-size:11px;color:var(--mb-muted)}.mb-counter b{color:var(--mb-red);font-size:16px}
.mb-layout{display:grid;grid-template-columns:272px minmax(0,1fr);gap:28px;align-items:start}.mb-library{position:sticky;top:140px;background:#fff;border:1px solid var(--mb-border);border-radius:20px;padding:20px;max-height:calc(100dvh - 156px);overflow:auto;overscroll-behavior:contain}.mb-library-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px}.mb-step{display:inline-grid;place-items:center;width:28px;height:28px;flex:none;background:#fbf0f2;border-radius:9px;color:var(--mb-red);font-size:10px;font-weight:800}.mb-library h3,.mb-canvas h3{font-size:15px;margin:0;color:#211c23}.mb-library-heading p{font-size:10px;color:var(--mb-muted);line-height:1.6;margin:4px 0 0}.mb-sources{display:grid;gap:9px}
.mb-source{display:flex;align-items:center;gap:8px;min-height:51px;width:100%;border:1px solid var(--mb-border);border-radius:12px;padding:8px 10px;background:#fff;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;text-align:left;color:#a2969e}.mb-source.is-selected{background:#fff8f9;border-color:#e7afbb;box-shadow:0 0 0 1px #e7afbb33}.mb-source:active{cursor:grabbing;background:#fff1f4}.mb-source:disabled{opacity:.6;cursor:wait}.mb-grip{width:15px;height:15px;flex:none}.mb-source-end{display:grid;place-items:center;margin-left:auto}.mb-source-end svg{width:15px;height:15px}.mb-source.is-selected .mb-source-end{color:var(--mb-red)}
.mb-studio .menu-item-badge,.mb-drag-ghost .menu-item-badge{position:static;display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:100px;font-size:11px;line-height:1.35;font-weight:750;box-shadow:none;border:1px solid #fff8;max-width:100%;overflow-wrap:anywhere}.mb-studio .menu-item-badge svg,.mb-drag-ghost .menu-item-badge svg{width:14px;height:14px;flex:none}.mb-studio .badge-gold,.mb-drag-ghost .badge-gold{color:#8e4904;background:#fff0c9}.mb-studio .badge-red,.mb-drag-ghost .badge-red{color:#b21531;background:#ffe7ed}.mb-studio .badge-green,.mb-drag-ghost .badge-green{color:#286238;background:#e7f5e5}
.mb-custom{border-top:1px solid #f0e9ed;padding-top:18px;margin-top:20px}.mb-custom h4{display:flex;align-items:center;gap:8px;font-size:12px;margin:0 0 16px}.mb-custom h4 svg{width:15px;height:15px;color:var(--mb-red)}.mb-custom label{display:grid;gap:7px;font-size:10px;color:#61545f;margin-bottom:12px;font-weight:650}.mb-custom input,.mb-custom select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #dfd6dd;background:#fff;border-radius:9px;padding:10px 11px;font:inherit;font-size:14px;color:#30252e}.mb-custom>small{display:block;font-size:10px;line-height:1.7;color:var(--mb-muted)}.mb-disclosure{display:flex;gap:7px;padding:13px 0 0;border-top:1px solid #f0e9ed;margin:18px 0 0;font-size:10px;line-height:1.7;color:var(--mb-muted)}.mb-disclosure>svg{flex:none;width:13px;height:13px;margin-top:3px}
.mb-canvas{min-width:0}.mb-canvas-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.mb-canvas-heading>div{display:flex;align-items:center;gap:10px}.mb-current{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--mb-muted)}.mb-current .menu-item-badge{font-size:10px}.mb-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}.mb-search{display:flex;align-items:center;gap:9px;flex:1;min-width:180px;border:1px solid #ddd7df;background:#fff;border-radius:100px;padding:0 14px;color:#8b818a}.mb-search>svg{width:16px;height:16px;flex:none}.mb-search input{background:transparent!important;border:0!important;min-height:44px;width:100%;min-width:0;box-shadow:none!important;font:inherit;font-size:12px;padding:8px 0;color:#392e37}.mb-filters{display:flex;gap:3px;padding:4px;background:#eeecef;border-radius:100px}.mb-filters button{min-height:36px;border:0;border-radius:100px;background:transparent;color:#6f646d;padding:8px 12px;font:inherit;font-size:10px;font-weight:700;cursor:pointer;touch-action:manipulation}.mb-filters button[aria-pressed=true]{background:#211f24;color:#fff}.mb-feedback{min-height:34px;display:flex;align-items:center;font-size:11px;line-height:1.6;color:#766a73;margin:4px 0 8px}.mb-error{padding:12px 16px;background:#fff0ee;border-radius:10px;font-size:12px;color:#9a2925}
.mb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mb-tile{border:1px solid var(--mb-border);border-radius:16px;background:#fff;overflow:hidden;min-width:0;display:flex;flex-direction:column}.mb-tile.is-over{border-color:var(--mb-red);box-shadow:0 0 0 3px #be173126}.mb-tile-art{position:relative;aspect-ratio:1.45;background:#f5f1f3;overflow:hidden}.mb-tile-art>[data-food-image]{width:100%;height:100%;display:block;object-fit:cover}.mb-tile-art>.menu-item-badge{position:absolute;left:10px;top:10px;max-width:calc(100% - 20px);z-index:2;border-color:#fff9;box-shadow:0 2px 8px #0001}.mb-photo-fallback{height:100%;display:grid;place-items:center;color:#bcaeb9}.mb-photo-fallback svg{width:30px;height:30px}.mb-drop-hint{display:none;position:absolute;inset:0;align-items:center;justify-content:center;gap:8px;background:#301620b8;color:#fff;font-size:12px;font-weight:700;pointer-events:none}.is-dragging .mb-drop-hint{display:flex}.is-dragging .mb-tile.is-over .mb-drop-hint{background:#9e1733b8}.mb-tile-copy{padding:14px;display:flex;flex-direction:column;flex:1}.mb-tile-copy>small{font-size:9px;color:#887883;margin-bottom:6px;line-height:1.5}.mb-tile-copy>div:first-of-type{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex:1}.mb-tile-copy h4{font-size:12px;line-height:1.55;margin:0;overflow-wrap:anywhere;color:#292029}.mb-tile-copy b{font-size:12px;white-space:nowrap;color:#211c23;line-height:1.55}.mb-tile-actions{display:flex;align-items:center;gap:6px;margin-top:14px}.mb-tile-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 10px;border:1px solid #ecdae0;border-radius:9px;color:#ae1730;background:#fff8fa;font:inherit;font-size:10px;font-weight:750;cursor:pointer;flex:1;touch-action:manipulation}.mb-tile-actions button>svg{width:13px;height:13px;flex:none}.mb-tile-actions .mb-remove{flex:0 0 auto;color:#74616f;background:#fff;border-color:#e9e1e6}.mb-tile-actions button:disabled{opacity:.55;cursor:wait}.mb-drag-ghost{box-sizing:border-box;position:fixed;top:0;left:0;z-index:10000;pointer-events:none;padding:8px;border:1px solid #e5dbe0;background:#fff;border-radius:100px;box-shadow:0 8px 24px #27121b24;max-width:210px}.mb-studio :is(button,input,select):focus-visible{outline:3px solid #d16780;outline-offset:3px}.mb-search:focus-within{outline:3px solid #d16780;outline-offset:3px}.mb-search input:focus-visible{outline:0}
@media(hover:hover) and (pointer:fine){.mb-source:hover{border-color:#dbaab8;background:#fff9fb}.mb-tile-actions button:hover{background:#ffeaf0}.mb-filters button:not([aria-pressed=true]):hover{background:#e0dce2}}
@media(min-width:1750px){.mb-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.mb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mb-layout{grid-template-columns:240px minmax(0,1fr);gap:20px}.mb-library{padding:16px}.mb-current{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:760px){.mb-heading{align-items:flex-start;flex-direction:column;gap:14px;padding-bottom:20px}.mb-heading h2{font-size:27px;letter-spacing:-.8px}.mb-layout{grid-template-columns:1fr;gap:24px}.mb-library{position:static;max-height:none;overflow:visible}.mb-sources{grid-template-columns:repeat(2,minmax(0,1fr))}.mb-custom{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.mb-custom>h4,.mb-custom>button,.mb-custom>small{grid-column:1/-1}.mb-custom input,.mb-custom select{font-size:16px}.mb-disclosure{font-size:11px}.mb-toolbar{display:grid;grid-template-columns:1fr;gap:10px}.mb-filters{justify-content:space-between}.mb-filters button{flex:1;min-height:44px}.mb-grid{gap:12px}.mb-tile-copy{padding:12px}.mb-tile-copy>div:first-of-type{display:block}.mb-tile-copy b{display:block;margin-top:5px}.mb-tile-actions{flex-wrap:wrap}.mb-tile-actions button{min-height:44px}.mb-canvas-heading{align-items:flex-start}.mb-current{max-width:52%}.mb-search input{font-size:16px}.mb-source{min-height:52px;padding:8px}.mb-source .menu-item-badge{font-size:10px;padding:5px 7px}.mb-grip{width:12px}.mb-source-end{display:none}}
@media(max-width:360px){.mb-grid{grid-template-columns:1fr}.mb-sources{grid-template-columns:1fr}}

/* ══════════ Dispatch · command center ══════════
   One bar (stages + fleet), then lane | map | decision panel. Motion: critically damped (no bounce — nothing is thrown),
   transform/opacity only, and every animation is skipped under prefers-reduced-motion. */
.cc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cc-bar-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.cc-stages { position: relative; display: flex; align-items: center; padding: 3px; background: var(--surface-2); border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cc-stages::-webkit-scrollbar { display: none; }
.cc-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 9px; background: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.3); transition: transform .34s var(--ease), width .34s var(--ease); pointer-events: none; }
.cc-stage-wrap { display: inline-flex; align-items: center; }
.cc-sep { width: 14px; height: 14px; flex: none; color: var(--border-strong); }
.cc-stage, .cc-all { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .2s ease, background-color .2s ease, transform 100ms ease-out; }
.cc-stage b, .cc-all b { font-variant-numeric: tabular-nums; font-weight: 700; }
.cc-stage:hover:not(.on), .cc-all:hover:not(.on) { color: var(--ink); }
.cc-stage.on { color: #fff; }
.cc-stage.urgent:not(.on) b { color: var(--red); }
.cc-all { margin-left: 4px; }
.cc-all.on { background: var(--ink); color: #fff; }
.cc-stage:active, .cc-all:active, .cc-rider:active, .cc-card article:active, .cc-ghost:active { transform: scale(.97); }
.cc-stage:focus-visible, .cc-all:focus-visible, .cc-rider:focus-visible, .cc-ghost:focus-visible, .cc-title button:focus-visible, .cc-link:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.cc-num { display: inline-block; animation: cc-tick .26s var(--ease) both; }
@keyframes cc-tick { from { opacity: .15; transform: translateY(-5px); } }

.cc-fleet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cc-rider { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform 100ms ease-out; }
.cc-rider i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.cc-rider.tone-ok i { background: var(--green); } .cc-rider.tone-info i { background: var(--info); }
.cc-rider b { font-variant-numeric: tabular-nums; color: var(--ink); }
.cc-rider:hover { background: var(--surface-2); }
.cc-rider.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cc-total { padding: 0 6px; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.cc-link { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 6px; color: var(--ink-2); font-size: .82rem; font-weight: 600; text-decoration: none; border-radius: 8px; }
.cc-link:hover { color: var(--ink); text-decoration: underline; }
.cc-link svg { width: 14px; height: 14px; }

.cc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.cc-col { min-width: 0; }
.cc-lane, .cc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
.cc-lane { display: flex; flex-direction: column; gap: 10px; }
.cc-lane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.cc-lane-head h2 { margin: 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-stretch: 100%; color: var(--ink); }
.cc-lane-head h2 b { margin-left: 6px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.cc-search { position: relative; display: flex; align-items: center; }
.cc-search > svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.cc-search input { width: 100%; min-height: 44px; padding: 0 38px 0 36px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; transition: border-color .16s ease, box-shadow .16s ease; }
.cc-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,24,29,.12); }
.cc-search kbd, .cc-keys kbd { padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); font: 600 .72rem var(--font-body); }
.cc-search kbd { position: absolute; right: 10px; }
.cc-keys { margin: 0; color: var(--muted); font-size: .76rem; display: none; }
.cc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cc-sub { padding: 6px 2px 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.cc-card article { position: relative; display: grid; gap: 6px; padding: 12px 14px 12px 17px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform 100ms ease-out; }
.cc-card article:hover { border-color: var(--border-strong); }
.cc-card.is-focused article { border-color: var(--info); background: #F5F9FF; box-shadow: 0 6px 18px -10px rgba(31,111,235,.45); }
.cc-accent { position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--info); transform: scaleY(0); transform-origin: center; transition: transform .3s var(--ease); }
.cc-card.is-focused .cc-accent { transform: scaleY(1); }
.cc-card.is-urgent .cc-accent { background: var(--red); transform: scaleY(1); }
.cc-l1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cc-title { margin: 0; min-width: 0; font-size: .95rem; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
.cc-title button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 4px; }
.cc-title i, .cc-dp-head i, .cc-bulk-list i { font-style: normal; color: var(--muted); font-weight: 400; }
.cc-flags { display: inline-flex; gap: 4px; flex: none; }
.cc-flag { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.cc-flag.warn { background: var(--amber-soft); color: var(--amber-ink); }
.cc-flag svg { width: 14px; height: 14px; }
.cc-l2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.cc-chip { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .72rem; font-weight: 700; }
.cc-chip.tone-danger { background: var(--danger-soft); color: var(--danger); }
.cc-chip.tone-warn { background: var(--amber-soft); color: var(--amber-ink); }
.cc-chip.tone-info { background: var(--info-soft); color: var(--info-ink); }
.cc-chip.tone-ok { background: var(--green-soft); color: var(--green-ink); }
.cc-l3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.cc-l3-text { min-width: 0; color: var(--ink-2); font-size: .82rem; }
.cc-l3-text b { color: var(--ink); }
.cc-l3-actions { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.cc-offer { display: inline-flex; align-items: center; gap: 7px; }
.cc-bad { color: var(--red-deep) !important; }
.cc-ghost { min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background-color .16s ease, transform 100ms ease-out; }
.cc-ghost:hover { background: var(--surface-2); }

.cc-clear { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; color: var(--muted); font-size: .88rem; border: 1.5px dashed var(--border-strong); border-radius: 14px; animation: cc-in .32s var(--ease) both; }
.cc-clear svg { width: 32px; height: 32px; color: var(--green); }
.cc-clear b { color: var(--ink); font-size: 1rem; }
.cc-panel-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; text-align: center; color: var(--muted); font-size: .88rem; }
.cc-panel-empty svg { width: 28px; height: 28px; }
.cc-panel-empty b { color: var(--ink); }

.cc-dp { animation: cc-in .28s var(--ease) both; }
.cc-dp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.cc-dp-head h2 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.cc-dp-head p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.cc-dock { margin-top: 12px; animation: cc-in .28s var(--ease) both; }
@keyframes cc-in { from { opacity: 0; transform: translateY(8px); } }
.cc-bulk-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.cc-bulk-list li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font-size: .9rem; }
.cc-bulk-list small { display: block; color: var(--muted); }

@media (min-width: 760px) and (max-width: 1099px) {
  .cc-grid { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); }
  .cc-col { position: sticky; top: calc(var(--demobar-h) + 10px); max-height: calc(100dvh - var(--demobar-h) - 20px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (min-width: 1100px) {
  .cc-grid { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) minmax(340px, 400px); }
  .cc-col { position: sticky; top: calc(var(--demobar-h) + 10px); max-height: calc(100dvh - var(--demobar-h) - 20px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .cc-map { overflow-x: hidden; }
  .cc-keys { display: block; }
}
@media (max-width: 759px) {
  .cc-thumb { display: none; }
  .cc-stage.on { background: var(--ink); }
}
@media (pointer: coarse) { .cc-ghost, .cc-stage, .cc-all { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  .cc-num, .cc-dp, .cc-dock, .cc-clear { animation: none; }
  .cc-thumb, .cc-accent, .cc-card article, .cc-stage, .cc-all, .cc-rider { transition: none; }
  .cc-stage:active, .cc-all:active, .cc-rider:active, .cc-card article:active, .cc-ghost:active { transform: none; }
}
@media (prefers-contrast: more) { .cc-card article, .cc-lane, .cc-panel { border-color: var(--ink-2); } }

/* ══════════ Merchant · analytics ("Your shop at a glance") ══════════
   Calm Apple-Health-like cards. One hue (Kagat red) marks what matters; the rest is neutral ink. Motion is transform/opacity,
   critically damped, retargets from the current picture on a range change, and is switched off for reduced motion. */
.an { display: grid; gap: 14px; margin-bottom: 22px; }
.an-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.an-head .mx-h2 { margin: 0 0 2px; }
.an-head p { margin: 0; }
.an-seg { position: relative; display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 12px; }
.an-seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 9px; background: var(--surface); box-shadow: 0 1px 3px rgba(16,24,40,.18), 0 0 0 1px var(--border); transition: transform .34s var(--ease), width .34s var(--ease); pointer-events: none; }
.an-seg button { position: relative; z-index: 1; min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; transition: color .2s ease, transform 100ms ease-out; }
.an-seg button.on { color: var(--ink); }
.an-seg button:active { transform: scale(.96); }
.an-seg button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.an-sample { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 14px; background: var(--amber-soft); color: var(--amber-ink); font-size: .88rem; animation: an-in .3s var(--ease) both; }
.an-sample svg { width: 18px; height: 18px; flex: none; }
.an-sample span { flex: 1; min-width: 180px; }
.an-sample button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }

.an-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .an-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.an-card { position: relative; min-width: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; animation: an-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.an-stat { display: grid; gap: 4px; align-content: start; overflow: hidden; }
.an-label { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.an-num { font: 700 clamp(1.5rem, 4.2vw, 2rem)/1.1 var(--font-display); font-stretch: 105%; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--ink); }
.an-vs { color: var(--muted); font-size: .8rem; }
.an-vs.good { color: var(--green-ink); } .an-vs.warn { color: var(--amber-ink); }
.an-delta { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; flex-wrap: wrap; }
.an-delta svg { width: 14px; height: 14px; } .an-delta span { color: var(--muted); font-weight: 500; }
.an-delta.up { color: var(--green-ink); } .an-delta.down { color: var(--red-deep); }
.an-spark { display: block; width: 100%; height: 28px; margin-top: 6px; }
.an-spark polyline { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: an-draw .9s var(--ease) .15s forwards; }
.an-wide { grid-column: 1 / -1; }
.an-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 900px) { .an-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .an-row.an-even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.an-card-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.an-card-head h3 svg { width: 18px; height: 18px; color: var(--amber-ink); }
.an-pill { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 700; }
.an-pill.peak { background: var(--red-soft); color: var(--red-deep); }
.an-note { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.an-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 18px; text-align: center; border: 1.5px dashed var(--border-strong); border-radius: 20px; background: rgba(255,255,255,.6); color: var(--muted); font-size: .9rem; animation: an-in .4s var(--ease) both; }
.an-empty svg { width: 34px; height: 34px; color: var(--border-strong); }
.an-empty b { color: var(--ink); font-size: 1.05rem; }
.an-empty span { max-width: 52ch; text-wrap: pretty; }

/* charts */
.an-chart { position: relative; }
.an-tip { position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 6px)); display: grid; gap: 1px; min-width: 120px; padding: 8px 11px; border-radius: 12px; background: rgba(21,24,29,.94); color: #fff; font-size: .78rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.an-tip.on { opacity: 1; }
.an-tip b { font-size: .82rem; } .an-tip span { color: #D5DAE1; }
.an-bars { display: flex; align-items: stretch; gap: 4px; height: 214px; padding-top: 24px; box-sizing: border-box; }
.an-bar { position: relative; flex: 1; min-width: 0; display: flex; align-items: flex-end; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 8px; touch-action: manipulation; transition: transform 100ms ease-out; }
.an-bar:active { transform: scale(.96); }
.an-bar:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.an-bar-fill { display: block; width: 100%; height: 100%; border-radius: 6px 6px 3px 3px; background: #D3D8DF; transform-origin: bottom; transform: scaleY(max(var(--h, 0), .025)); transition: transform .65s var(--ease), background-color .2s ease; transition-delay: calc(var(--i, 0) * 22ms), 0s; }
.an-bar:hover .an-bar-fill { background: #B4BBC6; }
.an-bar.is-peak .an-bar-fill, .an-bar.is-peak:hover .an-bar-fill { background: var(--red); }
.an-bar.is-zero .an-bar-fill { opacity: .55; }
.an-peak-tag { position: absolute; left: 50%; bottom: calc(max(var(--h, 0), .025) * 100% + 4px); transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; background: var(--red-soft); color: var(--red-deep); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: bottom .65s var(--ease); pointer-events: none; }
.an-axis { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; margin-top: 6px; color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
.an-axis span { white-space: nowrap; overflow: visible; text-align: left; }

.an-trend { height: 190px; padding-bottom: 22px; touch-action: pan-y; }
.an-trend svg { display: block; width: 100%; height: 100%; }
.an-grid { stroke: var(--border); stroke-width: 1; }
.an-line { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: an-draw 1s var(--ease) forwards; }
.an-area { fill: var(--red); opacity: 0; animation: an-fade .8s ease .35s forwards; }
.an-cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.an-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.an-ymax { position: absolute; top: 0; left: 2px; color: var(--muted); font-size: .68rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.an-xlabels { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; color: var(--muted); font-size: .7rem; }
.an-xlabels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.an-xlabels span:first-child { transform: none; }

.an-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.an-top li { animation: an-in .45s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 300ms); }
.an-top-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .88rem; }
.an-top-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-top-row span { flex: none; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.an-track { height: 8px; margin-top: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.an-track i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform .7s var(--ease); }
.an-top li:first-child .an-track i { background: var(--red); }
.an-top.no-hot li:first-child .an-track i { background: var(--ink); }

.an-heat-grid { display: grid; grid-template-columns: 30px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; align-items: center; }
.an-heat-h { color: var(--muted); font-size: .66rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-heat-d { color: var(--muted); font-size: .72rem; font-weight: 600; }
.an-cell { height: 30px; padding: 0; border: 0; border-radius: 5px; background: var(--surface-2); position: relative; cursor: pointer; transition: transform 100ms ease-out; }
.an-cell::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--red); opacity: var(--a, 0); transition: opacity .6s var(--ease); }
.an-cell:hover { transform: scale(1.18); z-index: 2; }
.an-cell:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; z-index: 2; }
.an-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: .72rem; }
.an-legend i { width: 90px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--surface-2), var(--red)); }

.an-out-bar { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.an-out-bar i { height: 100%; flex: var(--w, 0) 1 0; min-width: 0; transition: flex-grow .7s var(--ease); }
.an-out-bar .ok, .an-out-legend .ok svg { background: var(--green); color: var(--green); } .an-out-bar .muted { background: #9AA2AD; } .an-out-bar .warn { background: var(--amber); } .an-out-bar .bad { background: var(--red); } .an-out-bar .info { background: var(--info); } .an-out-bar .ink { background: var(--ink); }
.an-seg-legend s { width: 12px; height: 12px; flex: none; border-radius: 4px; background: var(--ink); }
.an-seg-legend .ok s { background: var(--green); } .an-seg-legend .muted s { background: #9AA2AD; } .an-seg-legend .warn s { background: var(--amber); } .an-seg-legend .bad s { background: var(--red); } .an-seg-legend .info s { background: var(--info); }
.an-out-legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.an-out-legend li { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.an-out-legend li span { flex: 1; } .an-out-legend li b { font-variant-numeric: tabular-nums; }
.an-out-legend svg { width: 16px; height: 16px; flex: none; background: none !important; }
.an-out-legend .muted svg { color: #7B838E; } .an-out-legend .warn svg { color: var(--amber-ink); } .an-out-legend .bad svg { color: var(--red-deep); }

.an-tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.an-tips li { position: relative; padding-left: 18px; font-size: .92rem; line-height: 1.45; text-wrap: pretty; }
.an-tips li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.an-table { margin-top: 12px; font-size: .85rem; }
.an-table summary { cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; color: var(--ink-2); font-weight: 600; }
.an-table table, .an-orders table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.an-table th, .an-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--border); font-weight: 500; }
.an-table thead th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.an-orders { margin-top: 6px; } .an-orders > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.an-scroll { overflow-x: auto; }

@keyframes an-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes an-draw { to { stroke-dashoffset: 0; } }
@keyframes an-fade { to { opacity: .1; } }
@media (max-width: 520px) { .an-bars { height: 184px; gap: 3px; } .an-card { padding: 14px; border-radius: 18px; } .an-seg button { padding: 0 12px; } }
@media (max-width: 520px) { .an-cell { height: 26px; } }
@media (prefers-reduced-motion: reduce) {
  .an-card, .an-sample, .an-empty, .an-top li { animation: none; }
  .an-line, .an-spark polyline { animation: none; stroke-dashoffset: 0; } .an-area { animation: none; opacity: .1; }
  .an-bar-fill, .an-track i, .an-out-bar i, .an-cell::after, .an-seg-thumb, .an-peak-tag { transition: none; }
}
@media (prefers-contrast: more) { .an-card { border-color: var(--ink-2); } .an-bar-fill { background: #7B838E; } }
.an-sub { margin: 24px 0 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ══════════ Operations · Merchant review desk ══════════ */
.mr { display: grid; gap: 14px; }
.mr-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.mr-head h2 { margin: 0 0 2px; } .mr-head p { margin: 0; max-width: 62ch; }
.mr-muted { color: var(--muted); font-size: .86rem; margin: 6px 0 0; }
.mr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mr-search { position: relative; flex: 1 1 220px; max-width: 380px; display: flex; align-items: center; }
.mr-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.mr-search input { width: 100%; min-height: 44px; padding: 0 14px 0 36px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; }
.mr-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,24,29,.12); }
.mr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 1000px) { .mr-grid { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); } .mr-list, .mr-detail { position: sticky; top: calc(var(--demobar-h) + 10px); max-height: calc(100dvh - var(--demobar-h) - 20px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
.mr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mr-card { display: grid; gap: 6px; width: 100%; padding: 13px 15px; text-align: left; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform 100ms ease-out; }
.mr-card:hover { border-color: var(--border-strong); } .mr-card:active { transform: scale(.988); }
.mr-card.on { border-color: var(--info); background: #F5F9FF; box-shadow: 0 6px 18px -10px rgba(31,111,235,.45); }
.mr-card:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.mr-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; } .mr-card-top b { font-size: .98rem; }
.mr-card-sub { color: var(--muted); font-size: .84rem; } .mr-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.mr-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.mr-chip svg { width: 13px; height: 13px; } .mr-chip.ok { background: var(--green-soft); color: var(--green-ink); } .mr-chip.warn { background: var(--amber-soft); color: var(--amber-ink); } .mr-chip.bad { background: var(--danger-soft); color: var(--danger); } .mr-chip.info { background: var(--info-soft); color: var(--info-ink); }
.mr-detail { min-width: 0; } .mr-panel { display: grid; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; animation: an-in .3s var(--ease) both; }
.mr-panel-head { display: flex; align-items: center; gap: 12px; } .mr-panel-head > div { flex: 1; min-width: 0; } .mr-panel-head h3 { margin: 0; font-size: 1.2rem; } .mr-panel-head p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.mr-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--red-soft); color: var(--red-deep); flex: none; } .mr-ico svg { width: 22px; height: 22px; }
.mr-sec { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); } .mr-sec h4 { margin: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); } .mr-sec h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-left: 6px; }
.mr-dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: .9rem; } .mr-dl dt { color: var(--muted); } .mr-dl dd { margin: 0; overflow-wrap: anywhere; }
.mr-contact { display: flex; flex-wrap: wrap; gap: 8px; } .mr-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; } .mr-btn:hover { background: var(--surface-2); } .mr-btn svg { width: 16px; height: 16px; }
.mr-docrow h4 { margin: 8px 0 6px; font-size: .8rem; letter-spacing: 0; text-transform: none; color: var(--ink); } .mr-docs { display: flex; flex-wrap: wrap; gap: 10px; }
.mr-doc { margin: 0; width: 132px; } .mr-doc figcaption { margin-top: 4px; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.mr-doc-box { position: relative; display: grid; place-items: center; height: 100px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; } .mr-doc-box.gone { border-style: dashed; }
.mr-doc-img { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; } .mr-doc-img img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease; } .mr-doc-img.blur img { filter: blur(14px); cursor: pointer; }
.mr-doc-veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; color: var(--ink); font-size: .78rem; font-weight: 700; pointer-events: none; } .mr-doc-veil svg { width: 20px; height: 20px; }
.mr-doc-note { color: var(--muted); font-size: .78rem; } .mr-doc-pdf { display: grid; justify-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 600; } .mr-doc-pdf svg { width: 26px; height: 26px; }
.mr-doc-full { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 12px; }
.mr-warn, .mr-error { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .86rem; font-weight: 600; } .mr-warn { background: var(--amber-soft); color: var(--amber-ink); } .mr-error { background: var(--danger-soft); color: var(--danger); } .mr-warn svg, .mr-error svg { width: 16px; height: 16px; flex: none; }
.mr-map-wait { display: grid; place-items: center; height: 240px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .86rem; } .mr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mr-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; cursor: pointer; } .mr-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; } .mr-check span { display: grid; gap: 1px; font-size: .92rem; } .mr-check small { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.mr-criteria { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mr-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } @media (max-width: 560px) { .mr-pair { grid-template-columns: 1fr; } }
.mr-panel textarea, .mr-panel input[type=time], .mr-panel input[type=number] { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
.mr-reasons { display: flex; flex-wrap: wrap; gap: 6px; } .mr-reasons button { min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: .78rem; cursor: pointer; } .mr-reasons button:hover { background: var(--surface-2); }
.mr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mr-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 12px 12px 0; font-size: .9rem; }
.mr-done-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; } .mr-done-checks li { display: flex; align-items: center; gap: 8px; } .mr-done-checks svg { width: 16px; height: 16px; color: var(--green); }
.mr-next { padding: 12px 14px; border-radius: 14px; background: var(--info-soft); color: var(--info-ink); font-size: .88rem; } .mr-next ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 3px; }
.mr-hint { display: grid; justify-items: center; gap: 6px; padding: 48px 18px; text-align: center; color: var(--muted); border: 1.5px dashed var(--border-strong); border-radius: 20px; } .mr-hint svg { width: 30px; height: 30px; } .mr-hint b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .mr-panel { animation: none; } .mr-card, .mr-doc-img img { transition: none; } }

/* Merchant launch remains separate from application approval. */
.mr-publication{display:grid;gap:12px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}.mr-publication ul,.mr-history{padding-left:20px;margin:0;line-height:1.7}.mr-publication textarea{width:100%;min-height:76px}.mr-launch-ready{display:flex;align-items:flex-start;gap:8px;color:var(--green);margin:0}.mr-history li+li{margin-top:12px}.mr-history p{margin:4px 0;overflow-wrap:anywhere}.mr .an-segmented{max-width:100%;overflow-x:auto}

/* ===== Store setup (merchant) + store review (ops) + Kagat Rider cheers ===== */
.kg-cheer { position: fixed; right: 16px; bottom: 18px; z-index: 1500; display: flex; align-items: flex-end; gap: 10px; max-width: min(92vw, 360px); animation: su-cheer .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.kg-cheer img { width: 54px; height: auto; flex: none; filter: drop-shadow(0 4px 6px #7a2a3333); }
.kg-cheer p { margin: 0; background: #fff; border: 1px solid #f4d5cd; border-radius: 16px 16px 4px 16px; padding: 11px 14px; font-size: .9rem; line-height: 1.45; font-weight: 600; color: #4b2f37; box-shadow: 0 14px 34px #2a102430; }
@keyframes su-cheer { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
.su { display: grid; gap: 18px; max-width: 1120px; margin: 0 auto; }
.su-layout { display: grid; gap: 18px; align-items: start; } .su-main { display: grid; gap: 18px; min-width: 0; } .su-aside { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 960px) { .su-layout { grid-template-columns: minmax(0, 1fr) 340px; } .su-aside { order: 2; position: sticky; top: calc(var(--demobar-h, 56px) + 84px); } .su-main { order: 1; } }
@media (max-width: 959px) { .su-preview { display: none; } }
.su-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.su-head h2 { margin: 4px 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; } .su-head p { margin: 0; color: var(--muted); max-width: 560px; }
.su-tour-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed #f0c2b8; background: #fff4ef; color: #b0283c; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.su-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.su-progress-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .su-progress-top h3 { margin: 0; font-size: 1.1rem; } .su-progress-top p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.su-ring { width: 64px; height: 64px; flex: none; transform: rotate(-90deg); } .su-ring circle { fill: none; stroke-width: 7; } .su-ring .track { stroke: var(--surface-2); } .su-ring .fill { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); } .su-ring text { transform: rotate(90deg); transform-origin: 32px 32px; font-size: 15px; font-weight: 800; fill: var(--ink); stroke: none; }
.su-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.su-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: background .25s, border-color .25s; }
.su-item > div { flex: 1; min-width: 0; display: grid; } .su-item b { font-size: .95rem; } .su-item small { color: var(--muted); font-size: .8rem; }
.su-item-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: #fde8e5; color: #c4122a; } .su-item-ico svg { width: 18px; height: 18px; }
.su-item.done { background: var(--green-soft); border-color: #bfe3cf; } .su-item.done .su-item-ico { background: var(--green); color: #fff; animation: su-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
.su-item.flagged { background: var(--amber-soft); border-color: #f5dca0; }
@keyframes su-pop { from { transform: scale(.5); } to { transform: scale(1); } }
.su-do { border: 0; background: var(--red); color: #fff; border-radius: 10px; padding: 8px 14px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.su-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: #b0283c; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: 6px; }
.su-notes h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font-size: 1rem; } .su-notes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .su-notes li { background: var(--amber-soft); border: 1px solid #f5dca0; border-radius: 14px; padding: 12px; } .su-notes li p { margin: 4px 0 8px; font-size: .9rem; }
.su-section { display: grid; gap: 10px; scroll-margin-top: calc(var(--demobar-h) + 70px); } .su-section > h3 { margin: 6px 0 0; font-size: 1.15rem; } .su-section > h3 small { margin-left: 8px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.su-send { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; } .su-send h3 { margin: 0 0 2px; } .su-send p { margin: 0; color: var(--muted); font-size: .9rem; max-width: 460px; } .su-send-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--green-soft); color: var(--green-ink); }
.su-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: .85rem; background: var(--surface-2); margin-top: 8px; grid-column: 1 / -1; }
.su-check svg { flex: none; width: 18px; height: 18px; margin-top: 1px; } .su-check ul { margin: 2px 0 0; padding-left: 16px; } .su-check > div { flex: 1; } .su-check button { border: 0; background: none; cursor: pointer; color: var(--muted); }
.su-check.good { background: var(--green-soft); color: var(--green-ink); } .su-check.ok { background: var(--info-soft); color: var(--info-ink); } .su-check.poor { background: var(--amber-soft); color: var(--amber-ink); }
.su-guide-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; } .su-guide-frames > div { display: grid; gap: 6px; } .su-guide-frames small { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: .8rem; } .su-guide-frames .good small { color: var(--green-ink); } .su-guide-frames .bad small { color: var(--amber-ink); }
.su-frame { display: block; border-radius: 12px; border: 2px solid var(--border); }
.f-good { aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 55%, #ffb347 0 22%, transparent 23%), radial-gradient(circle at 50% 55%, #fff 0 34%, transparent 35%), linear-gradient(135deg, #ffe8d1, #ffd1b3); border-color: #8bd0a8; }
.f-bad { aspect-ratio: 9 / 16; max-width: 90px; background: radial-gradient(circle at 30% 70%, #7a4a2a 0 14%, transparent 15%), radial-gradient(circle at 70% 40%, #5a3a2a 0 12%, transparent 13%), linear-gradient(160deg, #2a2420, #14110f); border-color: #f0c07a; }
.su-guide-list { margin: 0; padding-left: 20px; display: grid; gap: 12px; } .su-guide-list b { display: block; } .su-guide-list p { margin: 2px 0 4px; color: var(--ink-2); font-size: .92rem; } .su-guide-list small { display: flex; gap: 5px; align-items: center; color: var(--amber-ink); font-weight: 600; }
.su-tour { position: fixed; inset: 0; z-index: 2500; } .su-tour-shade { position: absolute; inset: 0; background: rgba(20, 12, 16, .45); }
.su-tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(20, 12, 16, .55), 0 0 0 3px #fff; pointer-events: none; transition: all .3s var(--ease); }
.su-tour-pop { position: fixed; width: min(320px, calc(100vw - 24px)); display: flex; gap: 10px; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 20px 50px #2a102450; animation: su-cheer .35s cubic-bezier(.34, 1.56, .64, 1) both; }
.su-tour-pop img { width: 52px; height: auto; flex: none; align-self: flex-start; } .su-tour-pop small { color: #b0283c; font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; } .su-tour-pop h3 { margin: 2px 0 4px; font-size: 1.05rem; } .su-tour-pop p { margin: 0 0 10px; font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.su-tour-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; } .su-tour-skip { margin-right: auto; border: 0; background: none; font: inherit; font-size: .82rem; color: var(--muted); cursor: pointer; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .kg-cheer, .su-tour-pop, .su-item.done .su-item-ico { animation: none; } .su-ring .fill, .su-tour-hole { transition: none; } }
@media (max-width: 640px) { .su-item { flex-wrap: wrap; } .su-item > div { flex-basis: 60%; } .su-send { flex-direction: column; align-items: stretch; } .su-guide-frames { grid-template-columns: 1fr; } }

.mr-setup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .mr-setup-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; } .mr-setup-list li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--amber-ink); } .mr-setup-list li.ok svg { color: var(--green); } .mr-setup-list small { display: block; color: var(--muted); }
.mr-store-preview { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.mr-sp-banner { position: relative; aspect-ratio: 16 / 7; max-height: 220px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: .85rem; } .mr-sp-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .mr-sp-banner em { position: absolute; right: 8px; top: 8px; background: #15181dcc; color: #fff; font-style: normal; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; } .mr-sp-banner span { display: inline-flex; gap: 6px; align-items: center; }
.mr-sp-head { display: flex; gap: 10px; align-items: center; padding: 10px 12px; } .mr-sp-head small { display: block; color: var(--muted); } .mr-sp-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--red); color: #fff; font-weight: 800; flex: none; } .mr-sp-logo img { width: 100%; height: 100%; object-fit: cover; }
.mr-sp-menu { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; } .mr-sp-menu li { display: grid; gap: 2px; font-size: .78rem; } .mr-sp-menu li.more { align-self: center; color: var(--muted); } .mr-sp-menu small { color: var(--muted); } .mr-sp-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); color: var(--muted); } .mr-sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.mr-setup h5 { margin: 6px 0 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.mr-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .mr-notes li { padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); } .mr-notes li.done { background: var(--surface-2); opacity: .8; } .mr-notes p { margin: 2px 0 6px; font-size: .88rem; } .mr-notes small { color: var(--muted); }
.mr-note-form { display: grid; gap: 8px; } .mr-note-parts { display: flex; gap: 6px; flex-wrap: wrap; } .mr-note-parts button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; } .mr-note-parts button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Setup polish: live preview, dish slots, banner examples */
.su-preview { display: grid; gap: 8px; padding: 12px; }
.su-pv-tag { justify-self: start; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 3px 9px; }
.su-pv-banner { position: relative; aspect-ratio: 16 / 7; border-radius: 12px; background: linear-gradient(135deg, #ffe8d1, #ffd1b3); display: grid; place-items: center; color: #b08060; font-size: .8rem; font-weight: 700; margin-bottom: 18px; }
.su-pv-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.su-pv-logo { position: absolute; left: 12px; bottom: -18px; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 2px 8px #0003; display: grid; place-items: center; overflow: hidden; font-size: .8rem; font-weight: 800; color: var(--ink); }
.su-pv-logo img { width: 100%; height: 100%; object-fit: cover; }
.su-pv-name { padding-left: 4px; font-size: 1rem; }
.su-pv-dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.su-pv-dishes span { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.su-pv-dishes .empty { border: 1.5px dashed var(--border-strong); color: #c3c8d0; } .su-pv-dishes .empty svg { width: 18px; height: 18px; }
.su-pv-dishes img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.su-pv-dishes i { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 5px 4px; font-style: normal; font-size: .68rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, #000a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-slots { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.su-slot { width: 100%; display: grid; gap: 2px; justify-items: start; text-align: left; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); padding: 8px; font: inherit; cursor: pointer; transition: transform .15s var(--ease), border-color .2s; }
.su-slot:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.su-slot b { font-size: .84rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .su-slot small { color: var(--muted); font-size: .74rem; }
.su-slot-img { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); color: #aab0ba; margin-bottom: 4px; }
.su-slot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .su-slot-img svg { width: 20px; height: 20px; }
.su-slot-img i { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; animation: su-pop .5s cubic-bezier(.34, 1.56, .64, 1); } .su-slot-img i svg { width: 12px; height: 12px; color: #fff; }
.su-slot.ok { border-color: #bfe3cf; background: var(--green-soft); }
.su-slot.todo { border-color: #f5dca0; background: var(--amber-soft); } .su-slot.todo small { color: var(--amber-ink); font-weight: 700; }
.su-slot.empty { border-style: dashed; background: transparent; } .su-slot.empty .su-slot-img { background: #fff3ef; color: #c4122a; }
.su-eg { grid-column: 1 / -1; display: flex; gap: 16px; align-items: flex-end; padding-top: 4px; }
.su-eg > span { display: grid; gap: 4px; justify-items: start; } .su-eg i { width: 96px; } .su-eg .su-eg-bad i { width: 40px; }
.su-eg small { display: flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; } .su-eg-good small { color: var(--green-ink); } .su-eg-bad small { color: var(--amber-ink); }
@media (prefers-reduced-motion: reduce) { .su-slot, .su-slot-img i { transition: none; animation: none; } }
.su-aside .su-item { flex-wrap: wrap; } .su-aside .su-item > div { flex: 1 1 calc(100% - 60px); } .su-aside .su-do, .su-aside .su-link { margin-left: 48px; }

.su-sent { display: grid; gap: 14px; width: 100%; } .su-sent-top { display: flex; align-items: flex-start; gap: 14px; } .su-sent-top h3 { margin: 0 0 2px; } .su-sent-top p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 560px; }
.su-road { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; } .su-road li { flex: 1 1 150px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .85rem; font-weight: 700; }
.su-road i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; } .su-road i svg { width: 12px; height: 12px; }
.su-road .done { background: var(--green-soft); color: var(--green-ink); } .su-road .done i { background: var(--green); border-color: var(--green); color: #fff; }
.su-road .now { background: var(--amber-soft); color: var(--amber-ink); } .su-road .now i { border-color: #e0a526; background: #ffd666; animation: su-pulse 1.6s ease-in-out infinite; }
@keyframes su-pulse { 50% { box-shadow: 0 0 0 6px #ffd66655; } } @media (prefers-reduced-motion: reduce) { .su-road .now i { animation: none; } }
.su-sent-hint { margin: 0; font-size: .85rem; color: var(--muted); }

/* Ops: at a glance, store-ready review */
.mr-glance ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mr-glance li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); } .mr-glance li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.mr-glance li.warn { background: var(--amber-soft); color: var(--amber-ink); } .mr-glance li.bad { background: #fde8e5; color: #9c1a24; }
.mr-glance li span { display: grid; gap: 1px; } .mr-glance small { font-size: .82rem; opacity: .9; }
.mr-sp-zoom { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; height: 100%; } .mr-sp-zoom:disabled { cursor: default; }
.mr-sp-menu li.todo { outline: 2px solid #f5dca0; border-radius: 12px; } .mr-sp-menu .desc { display: block; color: var(--muted); }
.mr-lookfor { margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); } .mr-lookfor summary { cursor: pointer; font-weight: 700; font-size: .88rem; } .mr-lookfor ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .86rem; color: var(--ink-2); }

.mx-items.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; } .mx-items.compact .mx-item-top { flex-wrap: wrap; } .mx-items.compact .mx-item-foot { flex-wrap: wrap; gap: 6px; }
.mr-store-preview > .mr-muted, .mr-store-preview > .mr-lookfor { margin-left: 12px; margin-right: 12px; }
.mr-sp-banner .mr-sp-zoom { position: absolute; inset: 0; } .mr-sp-banner em { z-index: 1; }

.mr-looks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mr-sp-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; background: var(--surface-2); }

/* Merchant stock count, back-in-stock reminder clock and item notices (StockBits.tsx). Quiet on purpose. */
.mx-item-foot { flex-wrap: wrap; }
.mx-stock-tools { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.mx-open-info .mx-stock-tools { justify-self: start; margin-top: 4px; }
.mx-open-info .mx-stock, .mx-open-info .mx-remind-btn { min-height: 32px; }
.mx-open-info .mx-remind-btn { min-width: 32px; }
.mx-stock { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; min-height: 36px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .02em; cursor: text; transition: border-color .16s ease; }
.mx-stock:focus-within { border-color: var(--ink-2); }
.mx-stock input { width: 52px; min-height: 30px; padding: 0 6px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; }
.mx-stock input::-webkit-outer-spin-button, .mx-stock input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mx-stock input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.mx-remind-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 36px; min-height: 36px; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform 90ms ease-out; }
.mx-remind-btn svg { width: 16px; height: 16px; }
.mx-remind-btn:hover, .mx-remind-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); border-color: var(--border-strong); }
.mx-remind-btn.set { color: var(--ink-2); border-color: var(--border-strong); }
.mx-remind-btn:active { transform: scale(.95); }
.mx-remind-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mx-remind-pop { position: fixed; z-index: 1200; width: 264px; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); font-size: .86rem; animation: mx-rise .18s var(--ease) both; }
.mx-remind-pop > b { font-size: .88rem; }
.mx-remind-pick { display: grid; gap: 10px; }
.mx-remind-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-remind-quick button, .mx-remind-time button, .mx-remind-clear { min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background-color .16s ease, transform 90ms ease-out; }
.mx-remind-quick button:hover, .mx-remind-time button:hover:not(:disabled), .mx-remind-clear:hover { background: var(--surface-2); }
.mx-remind-quick button:active, .mx-remind-time button:active:not(:disabled) { transform: scale(.96); }
.mx-remind-time { display: flex; align-items: flex-end; gap: 6px; }
.mx-remind-time label { flex: 1; display: grid; gap: 4px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.mx-remind-time input { min-height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; font-variant-numeric: tabular-nums; }
.mx-remind-time button { display: inline-flex; align-items: center; justify-content: center; width: 36px; padding: 0; background: var(--ink); border-color: var(--ink); color: #fff; }
.mx-remind-time button:disabled { opacity: .35; cursor: default; }
.mx-remind-hint, .mx-remind-late { margin: 0; color: var(--muted); font-size: .76rem; }
.mx-remind-clear { justify-self: start; border-color: transparent; color: var(--muted); padding: 0 4px; }
.mx-notes { position: fixed; z-index: 65; bottom: calc(84px + env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); width: min(340px, calc(100% - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; pointer-events: none; }
.mx-notes ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mx-note { pointer-events: auto; position: relative; display: flex; gap: 10px; padding: 12px 12px 12px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: .86rem; animation: mx-rise .24s var(--ease) both; }
.mx-note-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.mx-note-icon svg { width: 16px; height: 16px; }
.mx-note-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.mx-note-body p { margin: 0; padding-right: 22px; font-weight: 700; line-height: 1.3; }
.mx-note-body > small { color: var(--muted); font-size: .76rem; margin-top: -3px; }
.mx-note.is-remind .mx-note-body p { padding-right: 0; }
.mx-note-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-note-actions button { min-height: 34px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background-color .16s ease, transform 90ms ease-out; }
.mx-note-actions button:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.mx-note-actions button:hover:not(:first-child), .mx-note-actions button[aria-pressed="true"] { background: var(--surface-2); }
.mx-note-actions button:active { transform: scale(.96); }
.mx-note-actions button:focus-visible, .mx-note-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mx-note-extra { padding: 8px 0 2px; }
.mx-note-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.mx-note-close:hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 700px) {
  .mx-notes { left: 16px; right: 16px; width: auto; max-height: 50vh; }
}
@media (pointer: coarse) { .mx-stock, .mx-remind-btn, .mx-open-info .mx-stock, .mx-open-info .mx-remind-btn, .mx-remind-quick button, .mx-remind-time button, .mx-remind-time input, .mx-note-actions button { min-height: 44px; } .mx-remind-btn, .mx-open-info .mx-remind-btn, .mx-remind-time button { min-width: 44px; } }
@media (prefers-reduced-motion: reduce) { .mx-remind-pop, .mx-note { animation: none; } .mx-remind-btn:active, .mx-remind-quick button:active, .mx-note-actions button:active { transform: none; } }

/* Shared delivery destination */
.destination-button{display:flex;align-items:center;gap:10px;min-height:48px;max-width:100%;padding:10px 16px;border:1px solid var(--border,#ddd);border-radius:10px;background:var(--surface,#fff);color:var(--text,#222);text-align:left;cursor:pointer}.destination-button>span:first-of-type{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.destination-button>span:last-child{color:var(--red,#dc1f26);font-size:.85rem}.customer>.destination-button{margin:8px auto;width:min(1100px,calc(100% - 32px))}.destination-search-result{display:block;width:100%;padding:12px;text-align:left;background:var(--surface,#fff);border:0;border-bottom:1px solid #ddd;min-height:44px}.co .destination-button{width:100%;margin-bottom:12px}.co-bar>div{display:grid;gap:3px}
