:root {
  --bg: #f5f3ee;
  --panel: #ffffff;
  --panel-2: #faf8f4;
  --ink: #1b241f;
  --ink-2: #4c5a52;
  --ink-3: #85918a;
  --line: #e6e1d7;
  --brand: #1f2421;      /* Tapa charcoal */
  --brand-2: #fdf0cf;    /* honey */
  --brand-ink: #ffffff;
  --gold: #f2a900;       /* Tapa gold */
  --accent: #c98a00;
  --accent-2: #fdf0cf;
  --good: #1f7a4d;
  --good-2: #e1f2e7;
  --danger: #b4382f;
  --danger-2: #fbe9e7;
  --info: #2a62a8;
  --info-2: #e8f0fa;
  --chat-bg: #ece6dc;
  --bubble-in: #ffffff;
  --bubble-out: #d9f2dd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 16px rgba(20, 30, 25, .05);
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121714; --panel: #1a211d; --panel-2: #1f2722; --ink: #e9efe9; --ink-2: #b2beb6; --ink-3: #7d8a82;
    --line: #2b352f; --brand: #f2a900; --brand-2: #3a2f14; --brand-ink: #1f2421; --gold: #f2a900; --accent: #f2c14e; --accent-2: #3a2f14;
    --good: #5cc08a; --good-2: #1c3527; --danger: #e0695f; --danger-2: #3a1f1c; --info: #6ea4e8; --info-2: #1b2a3d;
    --chat-bg: #0f1411; --bubble-in: #222b26; --bubble-out: #1f4a33; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121714; --panel: #1a211d; --panel-2: #1f2722; --ink: #e9efe9; --ink-2: #b2beb6; --ink-3: #7d8a82;
  --line: #2b352f; --brand: #f2a900; --brand-2: #3a2f14; --brand-ink: #1f2421; --gold: #f2a900; --accent: #f2c14e; --accent-2: #3a2f14;
  --good: #5cc08a; --good-2: #1c3527; --danger: #e0695f; --danger-2: #3a1f1c; --info: #6ea4e8; --info-2: #1b2a3d;
  --chat-bg: #0f1411; --bubble-in: #222b26; --bubble-out: #1f4a33; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--ink-3); }

/* ── Buttons & inputs ── */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--panel-2); padding: 9px 12px; border-radius: 10px; outline: none; }
.input:focus { border-color: var(--brand); background: var(--panel); }
textarea.input { resize: vertical; min-height: 84px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1 1 160px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; color: var(--ink); font-size: 14px; margin: 0; }
.switch input { appearance: none; width: 38px; height: 22px; background: var(--line); border-radius: 99px; position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }

/* ── Auth ── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { background: #1f2421; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; max-width: 14ch; }
.auth-hero p { opacity: .85; max-width: 42ch; font-size: 16px; }
.auth-hero .logo { font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.auth-hero ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.auth-hero li { display: flex; gap: 10px; align-items: center; opacity: .95; }
.auth-hero li span { width: 28px; height: 28px; display: grid; place-items: center; background: rgba(242,169,0,.18); border-radius: 8px; }
.auth-hero .blob { position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(242,169,0,.22) 1.6px, transparent 2px) 0 0 / 14px 14px; opacity: .6; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.tabs { display: flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); padding: 4px; border-radius: 12px; margin: 20px 0; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.tabs button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.demo-note { margin-top: 18px; padding: 12px; border-radius: 10px; background: var(--accent-2); font-size: 13px; color: var(--ink-2); }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth-hero { padding: 32px 22px; } .auth-hero h1 { font-size: 30px; } .auth-hero ul { display: none; } }

/* ── Shell ── */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 800; font-size: 17px; }
.side .brand i { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: var(--brand-ink); font-style: normal; font-size: 15px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav a:hover { background: var(--panel-2); color: var(--ink); }
.nav a.on { background: var(--brand-2); color: var(--brand); }
.nav a .ico { width: 20px; text-align: center; }
.nav a .badge { margin-left: auto; }
.side .foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.side .foot b { color: var(--ink); display: block; font-size: 14px; }
main { padding: 26px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0; letter-spacing: -.015em; }
.page-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; padding: 6px; border-right: 0; border-top: 1px solid var(--line); z-index: 20; }
  .side .brand, .side .foot { display: none; }
  .nav { display: flex; width: 100%; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 10.5px; flex: 1; text-align: center; }
  .nav a .ico { font-size: 18px; }
  .nav a .badge { position: absolute; margin: -4px 0 0 20px; }
  main { padding: 18px 16px 96px; }
}

/* ── Cards, tiles, tables ── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h3 { margin: 0 0 12px; font-size: 16px; }
.card .sub { color: var(--ink-3); font-size: 13.5px; margin: -8px 0 14px; }
.grid { display: grid; gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.tile .k { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.tile .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 12.5px; color: var(--ink-3); }
.tile.alert { border-color: var(--accent); background: var(--accent-2); }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; font-size: 12px; font-weight: 700; border-radius: 99px; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.green { background: var(--good-2, #e1f2e7); color: var(--good, #1f7a4d); border-color: transparent; }
.badge.amber { background: var(--accent-2); color: var(--accent); border-color: transparent; }
.badge.red { background: var(--danger-2); color: var(--danger); border-color: transparent; }
.badge.blue { background: var(--info-2); color: var(--info); border-color: transparent; }
.badge[hidden] { display: none !important; }
.badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.empty { text-align: center; color: var(--ink-3); padding: 36px 12px; }
.empty .big { font-size: 34px; }
.segmented { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmented button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.segmented button.on { background: var(--brand-2); color: var(--brand); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; border: 2px solid var(--line); flex: none; }
.checklist .done .tick { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.checklist .done .t { color: var(--ink-3); text-decoration: line-through; }
.checklist li .btn { margin-left: auto; }
.checklist .done.keep .t { color: var(--ink); text-decoration: none; }
.checklist .done.keep .tick { background: #1f9d55; border-color: #1f9d55; color: #fff; }

.spark { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 8px; }
.spark div { flex: 1; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 3px; opacity: .85; position: relative; }
.spark-labels { display: flex; gap: 6px; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.spark-labels span { flex: 1; text-align: center; }

/* ── Orders ── */
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.order { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.order.fresh { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-2); }
.order header { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.order header b { font-size: 16px; }
.order .who { font-size: 13.5px; color: var(--ink-2); }
.order ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.order ul li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.order ul li:last-child { border: 0; }
.order ul li em { color: var(--ink-3); font-size: 12.5px; }
.order .tot { display: flex; justify-content: space-between; font-weight: 800; }
.order .addr { font-size: 13px; color: var(--ink-2); background: var(--panel-2); padding: 8px 10px; border-radius: 8px; word-break: break-word; }
.order .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* ── Tables ── */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.day-head { font-weight: 800; margin: 18px 0 8px; font-size: 15px; display: flex; gap: 8px; align-items: center; }

/* ── Menu editor ── */
.cat { margin-bottom: 18px; }
.cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cat-head h3 { margin: 0; font-size: 16px; flex: 1; }
.item-row { display: grid; grid-template-columns: 1fr 120px 90px auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 8px; }
.item-row .nm { font-weight: 600; }
.item-row .ds { font-size: 12.5px; color: var(--ink-3); }
.item-row.off { opacity: .55; }
@media (max-width: 640px) { .item-row { grid-template-columns: 1fr auto; } .item-row .price-col { grid-column: 1; } }

/* ── Inbox ── */
.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: calc(100vh - 140px); min-height: 480px; box-shadow: var(--shadow); }
.threads { border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.thread { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; color: inherit; }
.thread:hover { background: var(--panel-2); }
.thread.on { background: var(--brand-2); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-2); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.thread .meta { min-width: 0; flex: 1; }
.thread .top { display: flex; justify-content: space-between; gap: 6px; }
.thread .top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.thread .top span { font-size: 11.5px; color: var(--ink-3); flex: none; }
.thread .last { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .tags { display: flex; gap: 4px; margin-top: 3px; }
.convo { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.convo-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.convo-head .meta { flex: 1; min-width: 0; }
.convo-head .meta small { color: var(--ink-3); display: block; }
.convo-banner { padding: 8px 16px; font-size: 13px; background: var(--accent-2); color: var(--ink-2); }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; height: auto; } .inbox.has-thread .threads { display: none; } .inbox:not(.has-thread) .convo { display: none; } .convo .msgs { height: 60vh; } }

/* ── Chat bubbles (inbox + simulator) ── */
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; background: var(--chat-bg); display: flex; flex-direction: column; gap: 6px; }
.bub { max-width: min(78%, 420px); padding: 7px 10px 5px; border-radius: 10px; background: var(--bubble-in); align-self: flex-start; box-shadow: 0 1px 1px rgba(0,0,0,.06); font-size: 14px; overflow-wrap: anywhere; position: relative; flex: none; }
.bub.out { background: var(--bubble-out); align-self: flex-end; }
.bub.staff { border-left: 3px solid var(--accent); }
.bub .t { font-size: 10.5px; color: var(--ink-3); text-align: right; margin-top: 2px; display: flex; justify-content: flex-end; gap: 6px; }
.bub .hdr { font-weight: 700; }
.bub .ftr { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.bub .err { color: var(--danger); font-size: 12px; margin-top: 4px; }
.bub-acts { display: grid; gap: 4px; margin-top: 6px; }
.bub-acts button, .bub-acts a { border: 0; border-top: 1px solid rgba(0,0,0,.08); background: transparent; color: var(--info); padding: 8px 6px 4px; font-weight: 600; cursor: pointer; font-size: 14px; text-align: center; text-decoration: none; }
.bub-acts button:disabled { color: var(--ink-3); cursor: default; }
.sys-note { align-self: center; font-size: 12px; background: var(--panel); color: var(--ink-3); padding: 3px 10px; border-radius: 99px; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--panel); }
.composer .input { border-radius: 99px; }
.composer .btn { border-radius: 99px; }
.wa-fmt b { font-weight: 700; }
.wa-fmt i { font-style: italic; }

/* ── Simulator phone ── */
.sim-wrap { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: start; }
.phone { border-radius: 34px; border: 10px solid #1d211f; background: #1d211f; height: 720px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.phone-top { background: #1f5c41; color: #fff; padding: 14px 14px 10px; display: flex; align-items: center; gap: 10px; border-radius: 24px 24px 0 0; }
.phone-top .avatar { background: rgba(255,255,255,.18); color: #fff; }
.phone-top small { opacity: .8; display: block; font-size: 12px; }
.phone .msgs { border-radius: 0; }
.phone .composer { border-radius: 0 0 24px 24px; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; z-index: 5; }
.sheet { background: var(--panel); width: 100%; border-radius: 16px 16px 0 0; max-height: 75%; overflow-y: auto; padding: 10px 0 14px; }
.sheet h4 { margin: 4px 16px 8px; font-size: 15px; text-align: center; }
.sheet .sec { font-size: 12px; font-weight: 700; color: var(--brand); padding: 10px 16px 4px; text-transform: uppercase; letter-spacing: .03em; }
.sheet button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--line); }
.sheet button:hover { background: var(--panel-2); }
.sheet button small { display: block; color: var(--ink-3); font-size: 12.5px; }
.phone-screen { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--chat-bg); }
.tips li { margin-bottom: 6px; color: var(--ink-2); }
.tips code, .kbd { background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
@media (max-width: 1000px) { .sim-wrap { grid-template-columns: 1fr; } .phone { height: 640px; max-width: 420px; margin: 0 auto; width: 100%; } }

/* ── Settings ── */
.settings { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.settings nav { position: sticky; top: 20px; display: grid; gap: 2px; }
.settings nav a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.settings nav a:hover { background: var(--panel); }
.hours { display: grid; gap: 8px; }
.hours .d { display: grid; grid-template-columns: 60px auto 1fr 1fr; gap: 10px; align-items: center; }
.hours .d .input { padding: 6px 10px; }
.copy { display: flex; gap: 8px; }
.copy .input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.save-bar .btn { box-shadow: var(--shadow); }
.steps { padding-left: 20px; margin: 0; color: var(--ink-2); font-size: 14px; }
.steps li { margin-bottom: 6px; }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } .settings nav { display: none; } .hours .d { grid-template-columns: 48px auto 1fr 1fr; } }

/* ── Modal & toast ── */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 15, 12, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--panel); border-radius: 16px; padding: 22px; width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(0,0,0,.25); max-height: 90vh; overflow-y: auto; }
.modal h3 { margin: 0 0 16px; }
.modal .acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.modal { overflow-x: hidden; }
.od .acts { position: sticky; bottom: -22px; background: var(--panel); padding: 12px 0 4px; margin-top: 14px; border-top: 1px solid var(--line); }
.od-kvs { display: grid; gap: 4px; font-size: 14px; }
.od-kv { display: flex; justify-content: space-between; gap: 12px; }
.od-kv > span:first-child { color: var(--ink-3); }
.od-kv code { font-size: 12.5px; word-break: break-all; }
@media (max-width: 560px) { .od .acts .btn { flex: 1 1 calc(50% - 8px); justify-content: center; text-align: center; } }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 60; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--danger); color: #fff; }
@media (max-width: 900px) { #toast { bottom: 84px; } }

/* ── Billing ── */
.billbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.billbar.red { background: var(--danger-2); color: var(--danger); }
.billbar.amber { background: var(--accent-2); color: var(--ink); }
.billbar.blue { background: var(--info-2); color: var(--info); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.plan.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-2); }
.plan .pn { font-weight: 800; font-size: 16px; }
.plan .pp { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .pp small { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.plan ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.plan .pa { margin-top: auto; }
.plan .pa .btn { width: 100%; justify-content: center; }
/* Staff order form: column labels only on the first line */
.co-line + .co-line label { display: none; }
.co-line { flex-wrap: nowrap !important; }
.co-line .field { min-width: 0; }
.convo-head { flex-wrap: wrap; }
.co-line { gap: 8px !important; }
.co-line .co-name { flex: 1 1 auto; }
.co-line .co-qty { flex: 0 0 64px; }
.co-line .co-price { flex: 0 0 96px; }
.co-line .co-rm { margin-bottom: 14px; padding: 6px 8px; }
@media (max-width: 520px) {
  .co-line .co-qty { flex-basis: 48px; }
  .co-line .co-price { flex-basis: 72px; }
  .co-line .co-rm { padding: 6px 4px; }
}
/* Connect WhatsApp */
.wa-btn { display: inline-flex; align-items: center; gap: 8px; background: #1b8f4c; border-color: #1b8f4c; padding: 11px 20px; margin: 4px 0 6px; }
.wa-btn:disabled { opacity: .6; cursor: wait; }
.wa-need { margin: 4px 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.wa-on { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wa-on > div:nth-child(2) { flex: 1 1 220px; }
.wa-dot { width: 12px; height: 12px; border-radius: 50%; background: #1b8f4c; box-shadow: 0 0 0 4px rgba(27,143,76,.18); flex: none; }
.wa-adv { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.wa-adv summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
/* Delivery */
.dlv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 8px; }
.dlv-map { font-weight: 600; }
.dlv-who { flex: 1 1 auto; }
.dlv-addr { background: var(--bg, #f4f6f3); border-radius: 12px; padding: 10px 12px; margin-bottom: 4px; }
.dlv-h { margin: 14px 0 6px; font-weight: 700; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.dlv-riders { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dlv-r { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.dlv-r small { display: block; color: var(--ink-3); font-size: 12px; }
.dlv-r.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-2); }
.dlv-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dlv-app { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; color: inherit; }
.dlv-app small { display: block; color: var(--ink-3); font-size: 11.5px; line-height: 1.3; margin-top: 2px; }
.dlv-app:hover, .dlv-r:hover { border-color: var(--brand); }
.dlv-share { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.dlv-share pre { white-space: pre-wrap; word-break: break-word; background: var(--bg, #f4f6f3); border-radius: 8px; padding: 8px; font-size: 12.5px; margin: 0 0 8px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; flex: none; }
.rd { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rd-acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 520px) { .dlv-apps { grid-template-columns: 1fr; } }
/* ── Phones and tablets ── */
.settings { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
.settings > div { min-width: 0; }
.more-btn { display: none !important; }
.install-btn { width: 100%; margin-bottom: 10px; justify-content: center; }
.inst-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.inst-ico img { border-radius: 11px; display: block; }
.inst-acts { display: flex; gap: 6px; }
.switch.wake { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.more-sheet h3 { margin-bottom: 8px; }
.more-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.more-item .ico { font-size: 20px; width: 26px; text-align: center; }
.more-item .badge { margin-left: auto; }
.more-foot { padding-top: 14px; font-size: 13px; color: var(--ink-3); display: grid; gap: 2px; }
.more-foot b { color: var(--ink); font-size: 14px; }
.more-foot a { margin-top: 8px; font-weight: 600; }
@media (max-width: 900px) {
  .settings { grid-template-columns: minmax(0, 1fr); }
  .side { padding-bottom: max(6px, env(safe-area-inset-bottom)); padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .nav a.sec { display: none; }
  .more-btn { display: flex !important; }
  .nav a { font-size: 11px; }
  .modal-bg.sheet-mode { place-items: end center; padding: 0; }
  .modal-bg.sheet-mode .modal { border-radius: 18px 18px 0 0; max-width: none; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .page-head .btn { padding: 7px 12px; }
}
@media (hover: none) and (pointer: coarse) {
  .btn.sm { min-height: 38px; }
  .input { font-size: 16px; } /* stops iPhone zooming into fields */
}
@media (max-width: 600px) {
  .hours .d { grid-template-columns: 40px auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .hours .d .input { min-width: 0; width: 100%; padding-left: 6px; padding-right: 6px; }
}
.inst-text { flex: 1 1 240px; min-width: 0; }
.inst-acts { margin-left: auto; }
/* Menu photos & catalog */
.item-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--panel-2, var(--bg)); }
.thumb.add { display: grid; place-items: center; font-size: 18px; cursor: pointer; opacity: .7; }
.thumb.add:hover { opacity: 1; border-color: var(--brand); }
.photo-pick { display: flex; gap: 12px; align-items: flex-start; }
.photo-prev { width: 88px; height: 88px; border-radius: 14px; overflow: hidden; border: 1px dashed var(--line); display: grid; place-items: center; font-size: 26px; flex: none; background: var(--bg); }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick label.btn { display: inline-flex; margin: 0 6px 6px 0; cursor: pointer; }
.bub-img { display: block; width: calc(100% + 16px); max-width: none; margin: -6px -8px 6px; border-radius: 8px 8px 0 0; aspect-ratio: 4/3; object-fit: cover; }
.bub-cat { display: flex; flex-direction: column; background: rgba(0,0,0,.05); border-radius: 8px; padding: 8px; margin-bottom: 6px; }
.bub-cat small { color: var(--ink-3); }
.cat-sheet .cat-it { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.cat-sheet .cat-it img, .cat-sheet .ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--bg); }
.cat-sheet .cat-it small { display: block; color: var(--ink-3); font-size: 12px; }
.cat-sheet .qty { display: flex; align-items: center; gap: 6px; }
.cat-sheet .qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-weight: 700; padding: 0; }
.cat-sheet .send-cart { margin: 10px 14px 4px; width: calc(100% - 28px); background: #1b8f4c; color: #fff; border: 0; border-radius: 10px; padding: 11px; font-weight: 700; }
.cat-sheet .send-cart:disabled { opacity: .5; }
@media (max-width: 640px) { .item-row .item-main { grid-column: 1; } }
.cat-sheet .qty button { display: grid; place-items: center; text-align: center; }
.cat-sheet .qty button:hover { background: var(--brand-2); }
.cat-sheet .send-cart { text-align: center; border-bottom: 0; }
.cat-sheet .send-cart:hover { background: #157a40; }
/* Order search & detail */
.osearch { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; padding: 12px; }
.osearch #oq { flex: 1 1 260px; }
.osearch input[type=date] { flex: 0 1 150px; }
.osearch select { flex: 0 1 150px; }
.osum { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.osum span { color: var(--ink-3); font-size: 13.5px; }
.tbl-wrap { overflow-x: auto; }
.otable tr[data-od] { cursor: pointer; }
.otable tr[data-od]:hover td { background: var(--panel-2, var(--bg)); }
.otable .ellip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 2px; padding: 2px 9px; border-radius: 999px; background: var(--brand-2); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.obr { width: auto; min-width: 150px; }
.bsw { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.bsw select { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 0 10px; cursor: pointer; }
.billbar.branchbar { background: var(--brand); color: var(--brand-ink); }
.billbar.branchbar .btn { background: var(--panel); color: var(--ink); }
.br-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; font-size: 14px; color: var(--ink-2); }
.br-list { display: grid; gap: 8px; }
.br-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.br-row.off { opacity: .6; }
.br-row .br-ic { font-size: 22px; }
.br-row .br-tx { flex: 1; min-width: 0; }
.br-row .br-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.br-add { margin-top: 12px; }
.br-how { margin-top: 16px; }
.br-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.br-steps b { display: block; margin-bottom: 3px; }
.br-steps span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 760px) { .br-steps { grid-template-columns: 1fr; } }
.br-add summary { list-style: none; display: inline-flex; cursor: pointer; }
.br-add summary::-webkit-details-marker { display: none; }
.br-form { margin-top: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
@media (max-width: 640px) { .br-row { flex-wrap: wrap; } .br-row .br-acts { width: 100%; } }
.pager { display: flex; justify-content: space-between; margin-top: 10px; }
/* Page bar under long lists: "Showing 21–40 of 312" · 1 … 4 [5] 6 … 16 · rows per page */
.pg { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-top: 14px; padding: 12px 2px 2px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.card > .pg { margin: 14px 0 0; }
.cu-card > .pg { margin: 0; padding: 12px 18px 14px; }
.pg-info b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.pg-nav { display: flex; align-items: center; gap: 4px; }
.pg-nav button { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.pg-nav button:hover:not(:disabled):not(.on) { background: var(--panel-2); border-color: var(--line); color: var(--ink); }
.pg-nav button.on { background: var(--brand); color: var(--brand-ink); cursor: default; }
.pg-nav button:disabled { opacity: .35; cursor: default; }
.pg-nav .pg-step { display: inline-flex; align-items: center; gap: 4px; border-color: var(--line); background: var(--panel); }
.pg-nav .pg-gap { min-width: 22px; text-align: center; color: var(--ink-3); letter-spacing: 1px; }
.pg-nav button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pg-per { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pg-per select { height: 34px; padding: 0 28px 0 10px; border-radius: 9px; border: 1px solid var(--line); background-color: var(--panel); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.pg-cur { display: none; }
.pg-more { display: flex; justify-content: center; padding: 10px; }
@media (max-width: 640px) {
  .pg { justify-content: center; }
  .pg-info { width: 100%; text-align: center; order: 2; }
  .pg-per { display: none; }
  .pg-nav .pg-num, .pg-nav .pg-gap { display: none; }
  .pg-cur { display: inline-block; min-width: 72px; text-align: center; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
}
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.link-btn:hover { text-decoration-color: var(--brand); }
.od-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.od-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.od-l { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.od-items { margin-top: 4px; }
.od-items .tot td { border-top: 1px solid var(--line); }
.od-note { background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 14px; margin-top: 8px; }
.tl { list-style: none; margin: 6px 0 0; padding: 0; }
.tl li { display: flex; gap: 10px; padding: 8px 0; position: relative; }
.tl li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 34px; bottom: -4px; width: 2px; background: var(--line); }
.tl-i { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; font-size: 14px; }
@media (max-width: 600px) { .osearch input[type=date], .osearch select { flex: 1 1 40%; } .otable th:nth-child(4), .otable td:nth-child(4) { display: none; } }
/* Sales & accounts */
.rng { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.rng .segmented { flex-wrap: wrap; }
.rng-c { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rng-c .input { width: auto; }
.exp-dl { display: flex; gap: 8px; flex-wrap: wrap; }
.tile .s { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.tile.hero { background: var(--brand); border-color: var(--brand); color: #fff; }
.tile.hero .k, .tile.hero .s { color: rgba(255,255,255,.82); }
.card.drawer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card.drawer .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sales-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.sales-grid .card + .card { margin-top: 0; }
@media (max-width: 900px) { .sales-grid { grid-template-columns: minmax(0, 1fr); } }
.pay-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pay-row small { grid-column: 2 / 4; color: var(--ink-3); font-size: 12px; margin-top: -6px; }
.pay-row b { font-variant-numeric: tabular-nums; }
.pay-bar { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.pay-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.chart-wrap { position: relative; }
.schart { width: 100%; height: auto; display: block; }
.cb-bar { fill: var(--brand); }
.cb.on .cb-bar { fill: var(--accent, #e7a34a); }
.cb-grid { stroke: var(--line); stroke-width: 1; }
.cb-x { fill: var(--ink-3); font-size: 11px; font-family: inherit; }
.ctip { position: absolute; top: 4px; background: var(--ink); color: var(--panel); border-radius: 8px; padding: 6px 10px; font-size: 12px; display: grid; pointer-events: none; min-width: 120px; box-shadow: var(--shadow); }
.ctip b { font-size: 14px; }
.tbl-toggle { margin-top: 8px; font-size: 13px; }
.tbl-toggle summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.exp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.exp-form #exn { grid-column: 1 / -1; }
.exp-form .btn { grid-column: 1 / -1; justify-content: center; }
[hidden] { display: none !important; }
.cb-x { font-size: 13px; }
/* Sign-up */
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin: 4px 0 14px; cursor: pointer; }
.agree input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--brand); }
.auth-links { text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.setup-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.chip { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--bg); color: var(--ink-3); border: 1px solid var(--line); }
.chip.ok { background: var(--brand-2); color: var(--brand); border-color: transparent; }
.support-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #1f2421; color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; }
.support-bar b { color: #f2a900; }

.help-card { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 4px solid var(--accent, #f2a900); }
.help-card > div:first-child { flex: 1 1 280px; min-width: 0; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.share-link .copy { margin-bottom: 8px; }
.share-link.compact { margin-top: 8px; }
.wa-link-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2, var(--bg)); }
.wa-own-h { margin: 20px 0 6px; font-size: 15px; }
.wa-choices { display: grid; gap: 10px; margin: 14px 0 8px; }
.wa-choice { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; font: inherit; color: inherit; }
.wa-choice:hover:not(:disabled) { border-color: var(--brand); }
.wa-choice:disabled { opacity: .6; cursor: default; }
.wa-choice b { display: block; }
.wa-choice small { display: block; color: var(--ink-2); margin-top: 2px; font-size: 13px; line-height: 1.4; }
.wa-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 18px; }
.wa-choice[data-wa-mode="cloud"] .wa-ic { background: var(--brand-2); }
.steps .share-link { font-weight: 400; }

/* Tapa logo */
.brand-logo { display: block; height: 30px; width: auto; color: var(--ink); }
.auth-hero .brand-logo { height: 40px; color: #fff; }
.side .brand .brand-logo { height: 32px; }
.brand-mark { display: block; width: 28px; height: 28px; }
.nav a.on { box-shadow: inset 3px 0 0 var(--gold); }
@media (max-width: 900px) { .nav a.on { box-shadow: inset 0 -3px 0 var(--gold); } }

.auth-hero .logo { margin-bottom: 28px; }

.opt { font-weight: 400; color: var(--ink-3); }
.step-pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent); background: var(--accent-2); border-radius: 99px; padding: 2px 10px; margin-bottom: 8px; }
.connect-step .wa-choices { margin-top: 10px; }
.agree + .agree { margin-top: 6px; }

.auth-hero .logo { display: block; }
.auth-hero .say { margin-top: 10px; font-size: 13px; letter-spacing: .02em; color: #c8ccc8; }
.auth-hero .say b { color: #f2a900; }

/* Sign-up: go live on WhatsApp */
.wa-choice.wa-best { border-color: var(--gold, #F2A900); background: #FFF8E6; }
.wa-choice + .wa-choice, .wa-choice + .hint + .wa-choice { margin-top: 10px; }
.btn.wa-green { background: #1FA855; border-color: #1FA855; color: #fff; }
.wa-verify { border: 1px dashed #E5C26B; background: #FFFBF0; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.help-btn { width: 100%; margin-bottom: 8px; justify-content: center; }
.support-btns { margin-top: 10px; }
.wa-stuck { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.wa-stuck .support-btns { margin-top: 0; }
.cat-sync { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bub-doc { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.04); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; text-decoration: none; color: inherit; }
.bub-doc-ic { font-size: 26px; }
.bub-doc small { display: block; color: var(--ink-3, #737872); font-size: 11px; }

.self-form { margin-top: 10px; }
.self-check { display: block; font-size: 13px; line-height: 1.45; margin: 4px 0 12px; }
.self-check input { margin-right: 6px; vertical-align: -2px; }
.self-check .hint { display: block; margin: 4px 0 0 22px; }
.code-input { font-size: 22px; letter-spacing: .3em; text-align: center; max-width: 220px; }

/* Order themes (Settings → Ordering) */
.themes { display: grid; gap: 10px; margin-top: 8px; }
.theme { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; border: 1.5px solid var(--line, #E5E1D8); border-radius: 14px; padding: 14px 16px; cursor: pointer; background: var(--panel, #fff); color: var(--ink, #1F2421); font-weight: 400; }
.theme input { grid-row: span 3; margin-top: 3px; accent-color: var(--ink, #1F2421); }
.theme.on { border-color: var(--ink, #1F2421); box-shadow: 0 0 0 1px var(--ink, #1F2421) inset; }
.theme .tn { font-weight: 700; color: var(--ink, #1F2421); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.theme .tn em { font-style: normal; font-size: 12px; font-weight: 600; color: #6B4A00; background: #FBF0D6; border-radius: 99px; padding: 2px 8px; }
.theme .th { color: var(--ink-3, #5A615C); font-size: 14px; line-height: 1.45; }
.theme.locked { cursor: default; background: var(--panel-2, #FAF8F4); }
.theme.locked .tn, .theme.locked .th { opacity: .7; }
.theme .tu { font-size: 13px; font-weight: 600; color: var(--good, #0C7A5B); }

.logo-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.logo-prev { width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line, #E5E1D8); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.logo-prev img { width: 100%; height: 100%; object-fit: contain; }
.logo-prev span { font-family: Poppins, sans-serif; font-weight: 700; font-size: 24px; color: #6B4A00; }

/* MoMo transfer: settings box and the "Payment received" button on orders */
.momo-box { margin: 10px 0 14px; padding: 12px 14px; border: 1px solid var(--line, #EADFC6); border-radius: 14px; background: var(--honey, #FDF0CF33); }
.order .pay-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.order .pay-row .pay-ok { flex: 1 1 100%; justify-content: center; margin: 0; width: auto; }
.order .pay-row .pay-no { flex: 1 1 100%; justify-content: center; color: #B3261E; border-color: #F1C9C5; background: transparent; }

/* Billing: monthly / yearly switch and AI usage meter */
.bill-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card, #fff); border: 1px solid var(--line, #EADFC6); margin: 6px 0 12px; }
.bill-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; color: inherit; }
.bill-toggle button.on { background: #1F2421; color: #fff; }
.bill-toggle .save { font-size: 11px; background: #F2A900; color: #1F2421; border-radius: 999px; padding: 2px 7px; margin-left: 4px; }
.meter { height: 10px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; }
.meter span { display: block; height: 100%; background: #F2A900; }
.meter.amber span { background: #E07B00; }
.meter.red span { background: #C8371F; }
/* Billing: add-ons */
.addons { display: grid; gap: 10px; }
.addon { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.addon .ai { font-size: 26px; line-height: 1; flex: none; }
.addon .ab { flex: 1; min-width: 0; }
.addon .ap { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.addon .pp small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
@media (max-width: 560px) { .addon { flex-wrap: wrap; } .addon .ap { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; } }

/* Billing: the yearly price sits small under the monthly one */
.plan .pp-year { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 2px 0 6px; }

/* Team: staff logins and access */
.team-limit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.team-limit .meter { flex: 0 0 180px; }
.team-list { display: grid; gap: 10px; margin-top: 12px; }
.team-row { display: flex; align-items: flex-start; gap: 14px; }
.team-row.off { opacity: .6; }
.team-av { flex: 0 0 40px; height: 40px; border-radius: 50%; background: #1F2421; color: #F2A900; display: grid; place-items: center; font-weight: 800; }
.team-main { flex: 1; min-width: 0; }
.team-perms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.team-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.team-presets { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.team-boxes { display: grid; gap: 6px; }
.team-box { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, #EADFC6); border-radius: 10px; cursor: pointer; }
.team-box input { margin-top: 3px; width: 18px; height: 18px; accent-color: #F2A900; }
.team-box span { display: grid; gap: 2px; }
.team-box small { color: var(--ink-3); font-size: 12px; }
.team-box:has(input:checked) { border-color: #F2A900; background: rgba(242,169,0,.07); }
@media (max-width: 600px) { .team-row { flex-wrap: wrap; } .team-acts { width: 100%; justify-content: flex-start; } }

/* Menu reorder mode */
.reo { display: inline-flex; gap: 2px; flex: none; }
.reo .btn { min-width: 34px; justify-content: center; padding-left: 0; padding-right: 0; font-weight: 700; }
.reo .btn:disabled { opacity: .3; }
.reo-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #FDF0CF; color: #1F2421; border: 1px solid #F0D58A; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.reordering .cat-head { gap: 8px; }
.item-row.reo-row { grid-template-columns: auto 1fr auto; }

/* Customers */
.cu-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.cu-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 14px; }
.cu-bar .input { width: auto; min-width: 160px; }
.cu-bar #cuQ { flex: 1; min-width: 200px; }
.cu-bar #cuSeg { max-width: 250px; }
.cu-bar #cuTag { max-width: 150px; }
.cu-li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.cu-li:first-of-type { border-top: 0; }
.cu-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.cu-date .input { min-width: 0; }
.cu-card { padding: 0; overflow: hidden; }
.cu-count { padding: 12px 16px 0; }
.cu-table th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; font-weight: 700; }
.cu-table tbody tr { cursor: pointer; }
.cu-table tbody tr:hover, .cu-table tbody tr:focus-visible { background: var(--panel-2); outline: none; }
.cu-table td, .cu-table th { padding-left: 16px; padding-right: 16px; }
.cu-name { display: flex; gap: 10px; align-items: center; min-width: 0; }
.cu-av { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #1F2421; color: #F2A900; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.cu-name.big .cu-av { flex-basis: 52px; height: 52px; font-size: 20px; }
.cu-name.big h1 { margin: 0; }
.cu-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: #FDF0CF; color: #7A5600; border: 1px solid transparent; }
.cu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cu-tags .cu-tag.on { font-size: 13px; padding: 4px 10px; }
.cu-tags .cu-tag button { background: none; border: 0; cursor: pointer; font-size: 15px; line-height: 1; color: inherit; padding: 0 0 0 2px; }
.cu-tags.sugg .cu-tag { background: transparent; border-color: var(--line); color: var(--ink-2); cursor: pointer; font-size: 12.5px; padding: 4px 10px; }
.cu-newtag { width: 120px !important; padding: 4px 10px !important; font-size: 13px; }
.cu-back { display: inline-block; margin-bottom: 8px; text-decoration: none; }
.cu-head { align-items: center; }
.cu-v { font-size: 20px !important; }
.cu-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.cu-grid > div { display: grid; gap: 16px; }
.cu-orders { display: grid; }
.cu-order { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.cu-order:first-child { border-top: 0; padding-top: 0; }
.cu-o-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cu-o-tot { margin-left: auto; font-variant-numeric: tabular-nums; }
.cu-o-meta { font-size: 13px; color: var(--ink-2); }
.bc-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.bc-aud { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 4px 0 6px; font-size: 14px; }
@media (max-width: 860px) { .cu-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .cu-table thead { display: none; }
  .cu-table, .cu-table tbody, .cu-table tr, .cu-table td { display: block; width: 100%; }
  .cu-table tr { border-top: 1px solid var(--line); padding: 10px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .cu-table td { padding: 0; border: 0; text-align: left !important; font-size: 13.5px; }
  .cu-table td:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  .cu-table td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-3); }
  .cu-bar .input, .cu-date { flex: 1 1 140px; }
}

/* Yango Delivery */
.yg-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 8px; background: var(--panel-2); }
.yg-head { display: flex; align-items: center; gap: 8px; }
.yg-steps { margin: 0 0 10px; padding-left: 18px; }
.yg-live { display: grid; gap: 8px; margin-bottom: 6px; }
.yg-price { display: flex; justify-content: space-between; align-items: center; background: #FDF0CF; color: #1F2421; border-radius: 10px; padding: 10px 12px; }
.yg-price b { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Tapa logo: the dots type, then the tick draws (every 4.5s). Still for people who prefer less motion. */
.tp-b{transform-box:fill-box;transform-origin:30% 100%;animation:tpPop 4.5s ease-in-out infinite}.tp-d1,.tp-d2{transform-box:fill-box;transform-origin:center;animation:tpDot 4.5s ease-in-out infinite}.tp-d2{animation-delay:.18s}.tp-tk{stroke-dasharray:32;stroke-dashoffset:0;animation:tpTick 4.5s ease-in-out infinite}@keyframes tpDot{0%,4%{transform:translateY(0)}10%{transform:translateY(-22%)}16%,20%{transform:translateY(0)}26%{transform:translateY(-22%)}32%,100%{transform:translateY(0)}}@keyframes tpTick{0%,36%{stroke-dashoffset:32}50%,92%{stroke-dashoffset:0}100%{stroke-dashoffset:32}}@keyframes tpPop{0%,46%{transform:scale(1)}52%{transform:scale(1.06)}58%,100%{transform:scale(1)}}@media (prefers-reduced-motion:reduce){.tp-b,.tp-d1,.tp-d2,.tp-tk{animation:none!important;stroke-dashoffset:0!important}}
/* small plan badge on a button, e.g. Broadcast on Starter */
.plan-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.22); color: inherit; vertical-align: 1px; }
.btn:not(.primary) .plan-tag { background: var(--gold-soft, #f6e7b8); color: #5a4300; }
.plan-tag.gold, .nav .plan-tag { background: #F5B301; color: #1f2421; }
.nav .plan-tag { font-size: 9.5px; padding: 0 6px; margin-left: 5px; }
.cu-up { display: flex; gap: 18px; align-items: flex-start; max-width: 720px; }
.cu-up-ic { font-size: 34px; line-height: 1; background: var(--gold-soft, #f6e7b8); border-radius: 14px; padding: 12px; }
.cu-up h3 { margin: 2px 0 6px; }
.cu-up-list { margin: 10px 0 16px; padding-left: 18px; line-height: 1.7; }
@media (max-width: 560px) { .cu-up { flex-direction: column; } }
/* Drag to reorder the menu */
.drag-h { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 40px; margin: -4px 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted, #8a8f88); cursor: grab; touch-action: none; }
.drag-h:hover, .drag-h:focus-visible { background: var(--panel-2, rgba(0,0,0,.05)); color: var(--ink, #1f2421); }
.drag-h:focus-visible { outline: 2px solid #F5B301; outline-offset: 1px; }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.reordering .reo-row, .reordering section.cat { transition: box-shadow .15s, transform .15s, background .15s; }
.reo-row.dragging { position: relative; z-index: 5; background: var(--panel, #fff); box-shadow: 0 10px 28px rgba(0,0,0,.18); transform: scale(1.015); border-radius: 12px; }
section.cat.dragging { position: relative; z-index: 5; box-shadow: 0 12px 32px rgba(0,0,0,.18); transform: scale(1.01); }
.cat-drag .reo-items { display: none; }
.reo-items { min-height: 8px; border-radius: 12px; transition: background .15s, outline-color .15s; outline: 2px dashed transparent; outline-offset: 2px; }
.reo-items.drop-into { background: rgba(245,179,1,.08); outline-color: #F5B301; }
.reo-empty { padding: 12px; text-align: center; }
/* Menu import */
.imp-steps { margin: 4px 0 14px; padding-left: 20px; line-height: 1.55; font-size: 14px; }
.imp-steps li { margin-bottom: 6px; }
.imp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 10px; }
.imp-sum > div { background: var(--panel-2, #f6f4ef); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.imp-sum b { font-size: 22px; line-height: 1.1; }
.imp-sum span { font-size: 12.5px; color: var(--muted, #6b706a); }
.imp-sum .bad b { color: var(--danger, #b42318); }
.imp-table { max-height: 300px; overflow: auto; border: 1px solid var(--line, #e7e3da); border-radius: 12px; margin: 8px 0 4px; }
.imp-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.imp-table th { position: sticky; top: 0; background: var(--panel, #fff); text-align: left; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line, #e7e3da); }
.imp-table td { padding: 7px 10px; border-bottom: 1px solid var(--line, #f0ede6); vertical-align: top; }
.imp-table tr.error td { background: rgba(180,35,24,.05); }
.imp-table tr.skip td { opacity: .6; }
.hint.err { color: var(--danger, #b42318); }
.imp-prog { text-align: center; padding: 22px 0 8px; }
.imp-prog .bar { height: 8px; background: var(--panel-2, #eee); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.imp-prog .bar span { display: block; height: 100%; background: #F5B301; transition: width .3s; }
.imp-prog .spin { width: 28px; height: 28px; margin: 0 auto; border: 3px solid #F5B30155; border-top-color: #F5B301; border-radius: 50%; animation: impspin .8s linear infinite; }
@keyframes impspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .imp-prog .spin { animation: none; } }
.imp-done { text-align: center; padding: 8px 0; }
.imp-done .big { font-size: 40px; }
.imp-done details { text-align: left; margin-top: 10px; }

/* Payment gateway picker (sign-up and Settings → Payments) */
.pay-pick { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.pay-pick legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; padding: 0; }
.gw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gw-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--panel-2); color: var(--ink); }
.gw-card input { position: absolute; opacity: 0; pointer-events: none; }
.gw-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,169,0,.18); }
.gw-card:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.gw-card small { color: var(--ink-2); font-size: 12px; }
.gw-card .gw-txt { font-weight: 700; font-size: 14px; line-height: 22px; color: var(--ink); }
.gw-logo { display: block; height: 30px; width: auto; max-width: 100%; box-sizing: border-box; padding: 4px 8px; background: #fff; border-radius: 8px; align-self: flex-start; }
.gw-row { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; align-items: center; margin-top: 8px; opacity: .9; }
.momo-signup { margin-top: 10px; }
.pay-setup { background: var(--brand-2); border: 1px solid var(--gold); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; color: var(--ink); }
.pay-setup ol { margin: 6px 0 0 18px; padding: 0; }
.pay-setup li { margin: 3px 0; }

/* Sign-up steps */
.su-progress { display: flex; gap: 6px; margin: 0 0 8px; }
.su-progress span { flex: 1; height: 4px; border-radius: 99px; background: var(--line); transition: background .2s; }
.su-progress span.on { background: var(--gold); }
.su-step-label { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ink-3); margin-bottom: 14px; text-transform: uppercase; }
.su-nav { display: flex; gap: 8px; margin-top: 4px; }
.su-nav .btn { justify-content: center; padding: 11px; }
.su-nav .btn.primary { flex: 1; }

/* New-order alarm bar: stays until someone opens the order */
#orderAlarm { position: fixed; left: 50%; transform: translateX(-50%); top: 12px; z-index: 60; display: flex; align-items: center; gap: 12px;
  background: #c62828; color: #fff; padding: 10px 12px 10px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); width: min(560px, calc(100vw - 24px));
  animation: oaPulse 1.2s ease-in-out infinite; }
#orderAlarm .oa-bell { font-size: 26px; animation: oaShake .6s ease-in-out infinite; }
#orderAlarm .oa-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
#orderAlarm .oa-txt span { font-size: 13px; opacity: .92; }
#orderAlarm .btn { background: #fff; color: #c62828; border-color: #fff; font-weight: 700; white-space: nowrap; }
@keyframes oaPulse { 50% { box-shadow: 0 0 0 6px rgba(198,40,40,.35), 0 10px 30px rgba(0,0,0,.3); } }
@keyframes oaShake { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { #orderAlarm, #orderAlarm .oa-bell { animation: none; } }

/* ════════════════════════════════════════════════════════════════════════
   Design refresh (Nov 2026)
   Desktop: "Charcoal & Gold" — charcoal sidebar, gold for anything that needs action.
   Phone:   "Clean Ledger"    — white, top bar, text tabs at the bottom, flat cards.
   Login:   "Login 1"         — charcoal side with a WhatsApp order preview, form beside it.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Login 1 ── */
.auth { grid-template-columns: minmax(0, 1.15fr) minmax(440px, 1fr); }
.auth-hero { padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 80px); gap: 32px; justify-content: space-between; background: #1b201d; }
.auth-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(242,169,0,.16) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%); mask-image: linear-gradient(115deg, transparent 35%, #000 100%); }
.auth-hero > * { position: relative; }
.auth-hero .blob { display: none; }
.auth-hero .logo { margin: 0; }
.auth-hero .brand-logo { height: 34px; }
.ah-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 4vw, 64px); align-items: center; max-width: 1040px; width: 100%; margin: 0 auto; }
.ah-copy { display: flex; flex-direction: column; gap: 16px; }
.ah-kicker { align-self: flex-start; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f2c14e; padding: 6px 12px; border: 1px solid rgba(242,193,78,.35); border-radius: 99px; }
.auth-hero h1 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; max-width: 13ch; margin: 0; }
.auth-hero p { margin: 0; color: #c3cdc6; opacity: 1; font-size: 17px; line-height: 1.6; max-width: 44ch; }
.ah-visual { position: relative; padding-bottom: 34px; }
.ah-chat { background: #ece6dc; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 30px 70px rgba(0,0,0,.45); color: #1b241f; font-size: 14px; }
.ah-who { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; border-bottom: 1px solid #d9d1c3; margin-bottom: 4px; }
.ah-who svg { width: 32px; height: 32px; flex: none; }
.ah-who div { display: flex; flex-direction: column; line-height: 1.3; }
.ah-who span { font-size: 12px; color: #4c5a52; }
.ah-chat .b { padding: 8px 12px; max-width: 80%; line-height: 1.4; }
.ah-chat .b.out { align-self: flex-end; background: #d9f2dd; border-radius: 14px 14px 4px 14px; }
.ah-chat .b.in { align-self: flex-start; background: #fff; border-radius: 14px 14px 14px 4px; display: flex; flex-direction: column; gap: 8px; }
.ah-btn { text-align: center; padding-top: 7px; border-top: 1px solid #ece6dc; color: #2a62a8; font-weight: 600; }
.ah-notif { position: absolute; right: -28px; bottom: 0; display: flex; align-items: center; gap: 12px; background: #fff; color: #1b241f; border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.35); min-width: 250px; }
.ah-notif div { display: flex; flex-direction: column; line-height: 1.35; }
.ah-notif b { font-size: 14.5px; }
.ah-notif span { font-size: 12.5px; color: #4c5a52; }
.ah-bell { width: 38px; height: 38px; border-radius: 12px; background: #f2a900; color: #1f2421; display: grid !important; place-items: center; flex: none; }
.ah-bell svg { width: 20px; height: 20px; }
.ah-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 13px; color: #9aa69e; max-width: 1040px; width: 100%; margin: 0 auto; }
@media (max-width: 1499px) and (min-width: 821px) {
  .ah-main { grid-template-columns: 1fr; max-width: 540px; gap: 28px; margin: 0; }
  .auth-hero h1 { font-size: clamp(32px, 3.4vw, 46px); max-width: 15ch; }
  .ah-visual { max-width: 400px; }
  .ah-chat .b.out:nth-child(2), .ah-chat .b.in:nth-child(3) { display: none; }
  .ah-foot { flex-direction: column; margin: 0; }
}

/* The form side always stays light, so it reads clearly against the charcoal side (also in dark mode). */
.auth-form { background: #f5f3ee; color: #1b241f; color-scheme: light;
  --bg: #f5f3ee; --panel: #ffffff; --panel-2: #faf8f4; --ink: #1b241f; --ink-2: #4c5a52; --ink-3: #66726b; --line: #e2dccf;
  --brand: #1f2421; --brand-2: #fdf0cf; --brand-ink: #ffffff; --accent: #8a5d00; --accent-2: #fdf0cf; }
.auth-form a { color: #1f2421; }
.auth-card { max-width: 420px; background: #fff; border: 1px solid #ebe5d9; border-radius: 22px; padding: 36px 34px 28px; box-shadow: 0 1px 2px rgba(20,30,25,.04), 0 24px 60px rgba(20,30,25,.08); }
.auth-card h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-sub { color: var(--ink-2); font-size: 15px; margin-bottom: 24px; }
.auth-card .tabs[hidden] { display: none; }
.auth-card label { color: var(--ink); }
.auth-card .input { min-height: 48px; padding: 12px 14px; border-radius: 12px; background: #fff; border-color: #d9d3c7; font-size: 15px; color: #1b241f; }
.auth-card .input:focus { border-color: #1f2421; box-shadow: 0 0 0 3px rgba(242,169,0,.35); }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; }
.lbl-row a { font-size: 13.5px; font-weight: 600; color: #8a5d00 !important; }
.auth-go { width: 100%; justify-content: center; padding: 13px; min-height: 50px; font-size: 16px; font-weight: 800; border-radius: 12px; margin-top: 4px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 20px 0 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-new { width: 100%; justify-content: center; min-height: 48px; border-radius: 12px; border-color: #1f2421; background: #fff; color: #1f2421; font-weight: 700; font-size: 15px; }
.auth-new:hover { background: #1f2421; color: #fff; }
.auth-staff { text-align: center; font-size: 13px; color: var(--ink-3); margin: 14px 0 0; }
.auth-links { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 22px 20px 26px; gap: 16px; border-radius: 0 0 26px 26px; }
  .auth-hero::before, .ah-kicker, .auth-hero p, .ah-foot, .ah-who, .ah-notif, .ah-chat .b.out:nth-child(2), .ah-chat .b.in:nth-child(3) { display: none; }
  .auth-hero .brand-logo { height: 28px; }
  .auth-hero h1 { font-size: 26px; max-width: none; }
  .ah-main { grid-template-columns: 1fr; gap: 16px; }
  .auth { background: #f5f3ee; }
  .ah-visual { padding: 0; max-width: none; }
  .ah-chat { padding: 10px; border-radius: 16px; box-shadow: none; font-size: 13px; gap: 6px; }
  .ah-chat .b { padding: 6px 10px; }
  .auth-form { place-items: start center; padding: 20px 16px 40px; }
  .auth-card { padding: 24px 20px; border-radius: 18px; box-shadow: none; }
  .auth-card h2 { font-size: 23px; }
  .auth-card .input { font-size: 16px; }
}

/* ── Buttons: gold means "do this" ── */
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1f2421; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.04); }

/* ── Desktop: Charcoal & Gold ── */
.mtop { display: none; }
@media (min-width: 901px) {
  .side { background: #1f2421; border-right: 0; padding: 22px 14px; color: #e9efe9; }
  .side .brand .brand-logo { color: #fff; height: 34px; }
  .side .brand { padding: 2px 8px 20px; }
  .nav a { color: #d5ddd7; padding: 10px 12px; }
  .nav a:hover { background: #2a312c; color: #fff; }
  .nav a.on { background: var(--gold); color: #1f2421; box-shadow: none; }
  .nav a.on .badge { background: #1f2421; color: var(--gold); border-color: transparent; }
  .nav a .badge.amber { background: var(--gold); color: #1f2421; }
  .nav a.sec { color: #b9c3bc; }
  .nav a.sec.on { color: #1f2421; } /* the open page stays readable on gold, even under More */
  .nav .plan-tag { background: #3a3f3b; color: #f2c14e; border-color: transparent; }
  .side .foot { border-top: 0; background: #2a312c; border-radius: 12px; padding: 14px 12px; color: #b2beb6; margin-top: auto; }
  .side .foot b { color: #fff; }
  .side .foot a { color: #f2c14e; }
  .side .foot .btn { background: #343c37; border-color: #3f4842; color: #eef2ee; }
  .side .foot select, .side .foot .input { background: #1f2421; border-color: #3f4842; color: #eef2ee; }
  .side .foot label { color: #b2beb6; }
  main { padding: 28px 32px 60px; }
  .page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
  .page-head p { color: var(--ink-2); }
  .tile { border-radius: 16px; padding: 18px 18px 16px; box-shadow: none; }
  .tile .k { color: var(--ink-2); }
  .tile .v { font-size: 30px; }
  .tile.alert { border-color: var(--gold); background: var(--panel); box-shadow: 0 0 0 1px var(--gold) inset; }
  .card { border-radius: 16px; box-shadow: none; }
  .segmented button.on { background: #1f2421; color: #fff; }
}

/* Overview: live orders in lanes */
.lanes-wrap { margin: 4px 0 20px; }
.lanes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lanes-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.lanes-head a { font-size: 14px; font-weight: 600; color: var(--accent); }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lane { background: var(--chat-bg); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lane-t { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; font-size: 14px; }
.lane-n { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: var(--panel); }
.lane-n.hot { background: var(--gold); color: #1f2421; }
.lane-card { all: unset; box-sizing: border-box; cursor: pointer; background: var(--panel); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 2px rgba(20,30,25,.06); color: var(--ink); }
.lane-card:hover { box-shadow: 0 0 0 1px var(--ink-3); }
.lane-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lane-card.hot { box-shadow: 0 0 0 2px var(--gold); }
.lc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lc-top span, .lc-bot > span:first-child { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lc-items { font-size: 14px; }
.lc-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-pay { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--accent-2); color: var(--accent); }
.lc-pay.paid { background: var(--good-2); color: var(--good); }
.lane-empty { font-size: 13px; color: var(--ink-3); padding: 10px 4px; }
.lane-more { font-size: 13px; font-weight: 600; padding: 2px 4px; color: var(--accent); }

/* ── Phone: Clean Ledger ── */
@media (max-width: 900px) {
  body { background: var(--panel); }
  .mtop { display: flex; position: sticky; top: 0; z-index: 15; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .mtop-logo .brand-logo { height: 24px; color: var(--ink); }
  .mtop-r { display: flex; align-items: center; gap: 10px; }
  .mtop-br { font-size: 12.5px; color: var(--ink-2); padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; }
  .mtop-av { width: 32px; height: 32px; border-radius: 50%; background: #1f2421; color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 12px; text-decoration: none; }
  main { padding: 16px 16px 96px; }
  .page-head h1 { font-size: 24px; font-weight: 700; }
  .page-head p { font-size: 13.5px; }
  .card, .tile { box-shadow: none; border-radius: 12px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .tiles .tile { border: 0; border-radius: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px; }
  .tiles .tile:nth-child(2n) { border-right: 0; }
  .tile .v { font-size: 22px; }
  .tile.alert { background: var(--accent-2); }
  .shell .btn.primary { background: #1f2421; border-color: #1f2421; color: #fff; }
  :root[data-theme="dark"] .shell .btn.primary { background: var(--gold); border-color: var(--gold); color: #1f2421; }
  .segmented button.on { background: #1f2421; color: #fff; }
  /* bottom tabs: text, gold line on the active one */
  .side { background: var(--panel); padding: 0 4px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .nav a { padding: 12px 2px 8px; font-size: 12px; min-height: 44px; justify-content: center; color: var(--ink-3); font-weight: 500; border-radius: 0; border-top: 2px solid transparent; }
  .nav a .ico { display: none; }
  .nav a.on { background: transparent; color: var(--ink); font-weight: 700; border-top-color: var(--gold); box-shadow: none; }
  .nav a .badge { position: static; margin: 2px 0 0; padding: 0 6px; font-size: 10.5px; }
  /* overview lanes become one list */
  .lanes { grid-template-columns: 1fr; }
  .lane { background: transparent; padding: 0; gap: 8px; }
  .lane-card { border: 1px solid var(--line); box-shadow: none; border-radius: 12px; }
  .lane-card.hot { box-shadow: 0 0 0 2px var(--gold); border-color: transparent; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mtop-av { background: var(--gold); color: #1f2421; } }
@media (max-width: 900px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shell .btn.primary { background: var(--gold); border-color: var(--gold); color: #1f2421; } }
/* refresh: fine-tuning */
.spark div:last-child { background: var(--gold); }
@media (max-width: 900px) {
  .nav a { flex-direction: row; align-items: center; gap: 4px; }
  .nav a > span:not(.ico) { display: inline-flex; align-items: center; gap: 4px; }
  .osearch { gap: 8px; padding: 12px; }
  .osearch input[type=search] { flex: 1 1 100%; }
  .osearch input[type=date], .osearch select, .osearch .btn { flex: 1 1 calc(50% - 8px); min-width: 0; }
}

/* Dark mode (chosen in the sidebar): keep the sidebar darker than the page so the layout still reads */
@media (min-width: 901px) {
  :root[data-theme="dark"] .side { background: #0b0e0c; border-right: 1px solid #222a25; }
  :root[data-theme="dark"] .side .foot { background: #171c19; }
}
.theme-btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ── Overview, matching the "A · Charcoal & Gold" design ── */
.ov-head { align-items: flex-start; }
.ov-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.ov-acts .btn { padding: 11px 18px; border-radius: 12px; font-size: 14.5px; }
.ov-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile .s.up { color: var(--good); font-weight: 600; }
.tile .s.warn { color: var(--accent); font-weight: 600; }
.lane-card { position: relative; cursor: default; }
.lc-open { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; border-radius: 14px; z-index: 0; }
.lc-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lane-card > :not(.lc-open) { position: relative; z-index: 1; pointer-events: none; }
.lane-card > .lc-act { pointer-events: auto; }
.lc-act { margin-top: 6px; border: 0; border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--bg); color: var(--ink); min-height: 40px; }
.lc-act:hover { filter: brightness(.97); }
.lc-act.dark { background: #1f2421; color: #fff; }
:root[data-theme="dark"] .lc-act.dark { background: var(--gold); color: #1f2421; }
.lc-act:disabled { opacity: .6; }
.ov-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 18px; }
.ov-row .card + .card { margin-top: 0; }
.ov-ch { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ov-ch h3 { margin: 0; font-size: 17px; font-weight: 800; }
.ov-ch span { color: var(--ink-3); font-size: 13.5px; }
.ov-ch a { font-size: 14px; font-weight: 600; color: var(--accent); }
.wbars { display: flex; align-items: flex-end; gap: 12px; height: 150px; }
.wb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.wbar { width: 100%; max-width: 40px; border-radius: 10px 10px 5px 5px; background: #ddd7cb; min-height: 4px; }
:root[data-theme="dark"] .wbar { background: #39413c; }
.wbar.today { background: var(--gold); }
.wb span { font-size: 12.5px; color: var(--ink-3); }
.need { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); margin-top: 8px; }
.need:first-of-type { margin-top: 0; }
.need > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.need > div b { font-size: 14.5px; }
.need > div span { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.need a, .need .link-btn { font-size: 14px; font-weight: 700; color: var(--accent); }
.nd { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.nd.gold { background: var(--gold); } .nd.blue { background: #2a62a8; } .nd.green { background: #1f7a4d; }
.need-empty { color: var(--ink-3); font-size: 14px; padding: 6px 0; }
@media (min-width: 901px) {
  .side .nav a .ico { display: none; }
  .side .nav a { font-size: 15px; padding: 11px 14px; }
  .side .foot { display: flex; flex-direction: column; gap: 2px; }
  .side .foot .help-btn, .side .foot .theme-btn, .side .foot .install-btn { width: 100%; margin: 0 0 6px; padding: 7px 10px; font-size: 13px; }
}
@media (max-width: 900px) {
  .ov-acts { width: 100%; } .ov-acts .btn { flex: 1; justify-content: center; }
  .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-act.dark { background: #1f2421; }
  .wbars { height: 110px; gap: 8px; }
}

/* ── Live orders as a list (oldest first) ── */
.lolist { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lo-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 12px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.lo-sum b { color: var(--ink); margin-left: 2px; }
.lo-hint { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.lo-row { position: relative; display: grid; grid-template-columns: 74px minmax(0, 2.2fr) minmax(0, 1.2fr) 100px 150px 150px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lo-row:last-of-type { border-bottom: 0; }
.lo-row:hover { background: var(--panel-2); }
.lo-row.hot { box-shadow: inset 4px 0 0 var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--panel)); }
.lo-row > :not(.lc-open) { position: relative; z-index: 1; pointer-events: none; }
.lo-row .lc-act { pointer-events: auto; margin: 0; width: 100%; }
.lo-age { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.lo-age.late { color: #b3261e; }
.lo-main { display: flex; flex-direction: column; min-width: 0; }
.lo-main b { font-size: 15px; }
.lo-main span { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-who { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-st { justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.lo-st.new { background: var(--gold); color: #1f2421; }
.lo-st.prep { background: #e8f0fa; color: #24558f; }
.lo-st.ready { background: var(--good-2); color: var(--good); }
.lo-st.way { background: #ece9ff; color: #4b3fa8; }
.lo-row .lc-pay { justify-self: start; }
.lolist .lane-empty { padding: 18px; }
.lolist .lane-more { display: block; padding: 12px 18px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .lo-row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "age main act" "age who act" "age st pay"; row-gap: 4px; }
  .lo-age { grid-area: age; align-self: start; } .lo-main { grid-area: main; } .lo-who { grid-area: who; }
  .lo-st { grid-area: st; } .lo-row .lc-pay { grid-area: pay; justify-self: end; } .lo-act { grid-area: act; }
}
@media (max-width: 600px) {
  .lo-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main age" "who who" "st pay" "act act"; padding: 14px; }
  .lo-age { align-self: start; text-align: right; }
  .lo-sum { padding: 10px 14px; }
}

/* ── Live orders: three columns, each a list (oldest on top) ── */
.lcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lcol { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.lcol-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lcol.new .lcol-h { box-shadow: inset 0 3px 0 var(--gold); }
.lcol.prep .lcol-h { box-shadow: inset 0 3px 0 #5b8ed6; }
.lcol.ready .lcol-h { box-shadow: inset 0 3px 0 #3f9a6b; }
.lcol-list { display: flex; flex-direction: column; }
.lc-row { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lc-row:last-child { border-bottom: 0; }
.lc-row:hover { background: var(--panel-2); }
.lc-row.hot { box-shadow: inset 4px 0 0 var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--panel)); }
.lc-row > :not(.lc-open) { position: relative; z-index: 1; pointer-events: none; }
.lc-row > .lc-act { pointer-events: auto; }
.lc-row .lc-top { display: flex; align-items: baseline; gap: 8px; }
.lc-row .lc-top .lo-age { margin-left: auto; }
.lc-tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #ece9ff; color: #4b3fa8; }
.lc-row .lc-items { font-size: 14px; }
.lcol .lane-empty { padding: 14px 16px; }
.lcol .lane-more { display: block; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--accent); }
@media (max-width: 1000px) { .lcols { grid-template-columns: 1fr; } }

/* Opening hours card */
.hours .d { grid-template-columns: 60px auto 1fr 1fr 110px; }
.hrs-note { margin: 0; font-size: 12.5px; }
.choice-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.choice input { margin-top: 3px; accent-color: #1f2421; width: 18px; height: 18px; flex: none; }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice small { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
@media (max-width: 900px) { .hours .d { grid-template-columns: 40px auto minmax(0, 1fr) minmax(0, 1fr); } .hrs-note { grid-column: 3 / -1; } }

/* ── One-time setup wizard ── */
.sw { min-height: 100vh; background: #f5f3ee; color: #1b241f; color-scheme: light; padding: 0 16px 60px;
  --bg: #f5f3ee; --panel: #ffffff; --panel-2: #faf8f4; --ink: #1b241f; --ink-2: #4c5a52; --ink-3: #66726b; --line: #e2dccf; --accent: #8a5d00; --accent-2: #fdf0cf; }
.sw-top { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 22px 0 18px; }
.sw-logo .brand-logo { height: 30px; color: #1f2421; }
.sw-count { margin-left: auto; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.sw-out { font-size: 13.5px; }
.sw-steps { list-style: none; max-width: 760px; margin: 0 auto 18px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.sw-steps li { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding-top: 10px; border-top: 4px solid #e2dccf; }
.sw-steps li span { display: none; }
.sw-steps li.ok { border-top-color: #1f2421; color: var(--ink-2); }
.sw-steps li.on { border-top-color: var(--gold); color: var(--ink); }
.sw-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #ebe5d9; border-radius: 22px; padding: 32px 36px 26px; box-shadow: 0 24px 60px rgba(20,30,25,.07); }
.sw-card h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.sw-lead { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: 0 0 20px; }
.sw-card .input { min-height: 46px; border-radius: 12px; background: #fff; border-color: #d9d3c7; color: #1b241f; font-size: 15px; }
.sw-card .field { margin-bottom: 14px; }
.sw-label { display: block; margin: 18px 0 6px; font-weight: 600; }
.sw-err { color: #b3261e; font-weight: 600; font-size: 14px; min-height: 20px; margin-top: 8px; }
.sw-acts { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.sw-acts .btn { min-height: 48px; padding: 12px 22px; border-radius: 12px; font-size: 15px; }
.sw-acts .btn.primary { font-weight: 800; }
.sw-items { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sw-items:empty { display: none; }
.sw-items li { display: flex; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.sw-items li:last-child { border-bottom: 0; }
.sw-add { display: flex; gap: 10px; align-items: flex-end; }
.sw-add .field { flex: 1; margin: 0; }
.sw-add .sw-price { flex: 0 0 140px; }
.sw-add .btn { min-height: 46px; border-radius: 12px; }
.sw-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sw-done { text-align: center; }
.sw-done .field { text-align: left; }
.sw-tick { width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%; background: var(--gold); color: #1f2421; display: grid; place-items: center; font-size: 32px; font-weight: 800; }
.sw .choice-list { margin-bottom: 14px; }
@media (max-width: 640px) {
  .sw-card { padding: 22px 18px; border-radius: 18px; }
  .sw-card h1 { font-size: 23px; }
  .sw-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sw-steps li { font-size: 0; padding-top: 0; }
  .sw-add { flex-wrap: wrap; } .sw-add .field, .sw-add .sw-price { flex: 1 1 100%; } .sw-add .btn { width: 100%; justify-content: center; }
  .sw-card .input { font-size: 16px; }
}

/* ── Sizes and extras editor, later orders, stock ── */
.opt-ed{display:flex;flex-direction:column;gap:10px;margin:8px 0}
.opt-g{border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--panel-2);display:flex;flex-direction:column;gap:6px}
.opt-gh{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:6px;align-items:center}
.opt-gh select{width:auto}
.opt-req{display:flex;gap:6px;align-items:center;font-size:13px;color:var(--ink-2);white-space:nowrap}
.opt-c{display:grid;grid-template-columns:minmax(0,1fr) 110px auto;gap:6px;padding-left:12px}
.opt-g > .btn{align-self:flex-start;margin-left:12px}
@media (max-width:560px){.opt-gh{grid-template-columns:1fr auto}.opt-gh .opt-req{grid-column:1}.opt-c{grid-template-columns:minmax(0,1fr) 84px auto;padding-left:0}.opt-g > .btn{margin-left:0}}
.ds.low{color:var(--danger);font-weight:600}
.when-chip{display:inline-flex;align-items:center;gap:4px;margin:6px 0 2px;padding:3px 10px;border-radius:999px;background:var(--panel-2);border:1px solid var(--gold);font-size:13px;font-weight:600;color:var(--ink)}
.lc-when{color:var(--gold);font-weight:700}
.od-when{border-left:3px solid var(--gold)}
.check{display:flex;align-items:center;gap:8px;margin:6px 0 10px;font-size:14px;color:var(--ink-2);cursor:pointer}
.check input{width:18px;height:18px;accent-color:var(--brand)}

/* ── Login: six business campaigns taking turns (Auntie Ama, Efua, Nurse Abena, Mr. Mensah...) ── */
.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; }
.auth-hero { --hero-bg: #fde9b2; background: var(--hero-bg); transition: background-color .8s ease, color .5s ease; color: #f3f5f2; justify-content: flex-start; gap: 22px; }
.auth-hero::before { display: none; }
.auth-hero.light { color: #1b241f; }
.auth-hero .brand-logo { color: currentColor; }
.cmp { flex: 1; display: flex; flex-direction: column; gap: 18px; max-width: 760px; width: 100%; margin: 0 auto; min-height: 0; }
.cmp-track { display: grid; flex: 1; }
.cmp-slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; opacity: 0; visibility: hidden; transform: translateX(40px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1), visibility 0s linear .8s; }
.cmp-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease .15s, transform .8s cubic-bezier(.2,.8,.2,1) .1s, visibility 0s; }
.cmp-copy { display: flex; flex-direction: column; gap: 12px; }
.cmp-tag { align-self: flex-start; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; background: #1f2421; color: #f2a900; }
.auth-hero:not(.light) .cmp-tag { background: #f2a900; color: #1f2421; }
.cmp-slide h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; margin: 0; max-width: 17ch; }
.cmp-slide h2 em { font-style: normal; color: #f2a900; }
.cmp-slide p { margin: 0; font-size: 16.5px; line-height: 1.55; max-width: 46ch; color: inherit; opacity: .82; }
.cmp-art { position: relative; display: flex; justify-content: center; }
.cmp-art img { width: 100%; max-width: 560px; height: auto; display: block; transform-origin: 50% 100%; }
.cmp-slide.on .cmp-art img { animation: cmp-pop .9s cubic-bezier(.2,1.4,.4,1) .2s both, cmp-bob 4.5s ease-in-out 1.2s infinite; }
@keyframes cmp-pop { from { transform: translateY(26px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cmp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.cmp-bar { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.cmp-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; background: #1f2421; color: #fff !important; box-shadow: 0 5px 0 #000; transition: transform .12s; }
.auth-hero:not(.light) .cmp-cta { background: #f2a900; color: #1f2421 !important; box-shadow: 0 5px 0 #a86f00; }
.cmp-cta:active { transform: translateY(3px); }
.cmp-dots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cmp-dot { --fill: 0; position: relative; overflow: hidden; border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 99px; padding: 0 12px; min-height: 34px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; opacity: .65; }
.cmp-dot span { position: relative; }
.cmp-dot::before { content: ''; position: absolute; inset: 0; background: currentColor; opacity: .16; transform-origin: left; transform: scaleX(var(--fill)); }
.cmp-dot.on { opacity: 1; }
.cmp-dot:focus-visible, .cmp-pause:focus-visible, .cmp-cta:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
.cmp-pause { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; opacity: .7; padding: 0; }
.cmp-pause svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .cmp-slide, .cmp-slide.on { transition: opacity .3s; transform: none; } .cmp-slide.on .cmp-art img { animation: none; } .auth-hero { transition: none; } }
@media (max-width: 1499px) and (min-width: 821px) { .cmp-art img { max-width: 480px; } }
@media (max-width: 820px) {
  .auth-hero { padding: 18px 16px 20px; gap: 12px; }
  .cmp { gap: 12px; }
  .cmp-slide { gap: 8px; }
  .cmp-slide h2 { font-size: 25px; }
  .cmp-slide p { display: none; }
  .cmp-tag { font-size: 11px; }
  .cmp-art img { max-width: 340px; }
  .cmp-bar { flex-direction: column-reverse; align-items: stretch; }
  .cmp-dots { justify-content: center; }
  .cmp-dot { padding: 0 10px; font-size: 12px; min-height: 32px; }
  .cmp-cta { width: 100%; }
}

/* ── Delivery price chooser ── */
.dp .choice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.dp-box { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.dp-areas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.dp-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px; align-items: center; }
.dp-example { font-weight: 600; }
.bp-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }

/* Reports */
.rp-nav { display: flex; align-items: center; gap: 10px; }
.rp-nav b { min-width: 170px; text-align: center; font-size: 14px; }
.chg { display: inline-block; font-weight: 700; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.chg.up { background: #e3f4ea; color: #17703f; }
.chg.down { background: #fbe6e3; color: #b3261e; }
.tile.hero .chg { background: rgba(255,255,255,.18); color: #fff; }
.rp-hl ul { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.rp-hl li { line-height: 1.45; }
.rp-nums { display: flex; flex-wrap: wrap; gap: 22px; }
.rp-nums > div { display: flex; flex-direction: column; min-width: 70px; }
.rp-nums b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rp-nums span { font-size: 12.5px; color: var(--ink-3); }
.rp-hours { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-bottom: 18px; }
.rp-hours > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.rp-hours i { display: block; background: var(--brand); border-radius: 3px 3px 0 0; }
.rp-hours span { position: absolute; bottom: -17px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.print-only { display: none; }
@media print {
  .side, .bottom-nav, #billbar, .no-print, .more-btn, .toast { display: none !important; }
  .print-only { display: block; margin-bottom: 12px; font-size: 14px; }
  body, .shell, main { background: #fff !important; }
  .shell { display: block !important; }
  main { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .card, .tile { box-shadow: none !important; break-inside: avoid; }
  .tile.hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .chg, .rp-hours i, .pay-bar i, .cb-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.tile .v.long { font-size: 21px; }
.rp-hours > div { max-width: 34px; }
.rp-hours { justify-content: center; }
.rp-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 4px 0 18px; }
.rp-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.rp-dates .input { width: 160px; }
.rp-quick { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.chip-btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chip-btn:hover { border-color: var(--ink-3); }
.chip-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 600px) { .rp-dates label { flex: 1 1 40%; } .rp-dates .input { width: 100%; } }
.rp-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rs-auto { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.rs-auto h4 { margin: 0 0 8px; font-size: 15px; }
/* API & webhooks */
.dev-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.dev-hook { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dev-hook code { word-break: break-all; }
.dev-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.dev-evs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; }
