/* Sonevaa Till — styles. Staff Hub look: wine/rose palette, Fraunces + Inter. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --wine: #9E3A60; --wine-deep: #7E2C4C; --rose: #E890A8; --rose-soft: #F7DEE6; --rose-faint: #FBEFF3;
  --plum: #6E3A5E; --gold: #CBA15B; --gold-soft: #F4E9D2; --sage: #5F8A77; --sage-soft: #E1EDE6; --cocoa: #8A5A48;
  --cream: #FFF7F4; --paper: #FFFFFF; --ink: #46303B; --muted: #8C6E78; --line: #E7CDD6; --line-soft: #F1E2E8;
  --ok: #3C7A50; --ok-soft: #E6F1E8; --warn: #A36A12; --warn-soft: #FBEFD9; --bad: #B3261E; --bad-soft: #FBEAEA;
  --shadow: 0 1px 2px rgba(70,48,59,.08), 0 4px 14px rgba(70,48,59,.08);
  --r: 14px; --r-sm: 10px; --head: 60px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 16px/1.45 var(--font); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; user-select: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn.primary:hover { background: var(--wine-deep); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ok { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn.danger { color: var(--bad); border-color: #EFC6C3; background: #fff; }
.btn.danger.fill { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.soft { background: var(--rose-faint); border-color: var(--line-soft); }
.btn.big { min-height: 58px; font-size: 18px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); display: inline-grid; place-items: center; position: relative; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--wine); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- forms ---------- */
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
input.in, select.in, textarea.in { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; }
textarea.in { min-height: 80px; resize: vertical; }
input.in:focus, select.in:focus, textarea.in:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px var(--rose-faint); }
.check { display: flex; gap: 10px; align-items: center; min-height: 40px; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--wine); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.seg { display: inline-flex; background: var(--rose-faint); border: 1px solid var(--line-soft); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; min-height: 38px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--paper); color: var(--wine); box-shadow: 0 1px 3px rgba(70,48,59,.12); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; min-height: 40px; padding: 0 14px; font-weight: 600; font-size: 14px; }
.chip.on { background: var(--wine); color: #fff; border-color: var(--wine); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 2px 7px; border-radius: 6px; background: var(--line-soft); color: var(--muted); text-transform: uppercase; }
.pill.vegan { background: var(--ok-soft); color: var(--ok); }
.pill.gf { background: var(--gold-soft); color: #8A6A2A; }
.pill.df { background: #E4EEF7; color: #2F5F86; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.wine { background: var(--rose-soft); color: var(--wine); }

/* ---------- app shell ---------- */
#app { height: 100%; display: flex; flex-direction: column; }
.top { height: var(--head); flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--wine); white-space: nowrap; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.brand .seal { width: 30px; height: 30px; flex: none; display: block; }   /* the SD seal */
.brand small { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.who { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; min-height: 44px; padding: 0 10px 0 6px; background: var(--paper); font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--rose-soft); color: var(--wine); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.banner { flex: none; padding: 8px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner .btn { min-height: 34px; }
.ready-strip { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; background: var(--sage-soft); border-bottom: 1px solid #CFE0D6; }
.ready-chip { flex: none; display: flex; gap: 8px; align-items: center; border: 1px solid #BFD6C9; background: #fff; border-radius: 12px; min-height: 44px; padding: 0 12px; font-weight: 600; color: #2F5E49; }
.ready-chip b { font-family: var(--serif); font-size: 18px; }

/* sell screen */
.sell { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr) 400px; }
.cats { overflow-y: auto; border-right: 1px solid var(--line); background: var(--paper); padding: 8px; }
.cat { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; border: 0; background: transparent; border-radius: 10px; padding: 6px 10px; text-align: left; font-weight: 600; font-size: 14px; line-height: 1.2; }
.cat .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.cat.on { background: var(--rose-faint); color: var(--wine); box-shadow: inset 3px 0 0 var(--wine); }
.products { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.prod-head { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.search { flex: 1; position: relative; }
.search input { padding-left: 40px; }
.search svg { position: absolute; left: 11px; top: 12px; color: var(--muted); }
.grid { flex: 1; overflow-y: auto; padding: 4px 12px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); padding: 10px 12px 10px 14px; text-align: left; overflow: hidden; box-shadow: 0 1px 1px rgba(70,48,59,.04); user-select: none; -webkit-user-select: none; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--wine)); }
.tile .nm { font-weight: 650; font-size: 15px; line-height: 1.22; padding-right: 26px; }
.tile .pr { font-weight: 700; color: var(--c, var(--wine)); font-size: 15px; filter: saturate(1.1) brightness(.85); }
.tile .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tile .ktag { display: inline-flex; color: var(--wine); opacity: .75; }   /* made in the kitchen */
.tile .ktag svg { width: 16px; height: 16px; }
.kpill { display: inline-flex; align-items: center; gap: 4px; }
.kpill svg { width: 13px; height: 13px; }
/* paid screen on a mixed order: what front staff hand over now, and what the kitchen is making */
.handover { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.handover .ho { border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.handover .ho-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-weight: 700; }
.handover .ho-h svg { width: 18px; height: 18px; }
.handover li b { margin-right: 4px; }
.handover .front { background: #FBEDF1; border: 1px solid #E7CDD6; }
.handover .kitchen { background: #EAF3EE; border: 1px solid #C9E0D3; }
.handover ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.handover small { display: block; margin-top: 6px; color: #2F5E49; font-weight: 600; }
@media (max-width: 560px) { .handover { grid-template-columns: 1fr; } }
.tile:active { background: var(--rose-faint); }
.tile.out { opacity: .5; }
.tile.out .nm::after { content: " · Sold out"; color: var(--bad); font-size: 12px; font-weight: 700; }
.tile .low { position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.tile.split { padding: 0; }
.tile.split .top-part { padding: 10px 12px 4px 14px; }
.tile.split .halves { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-soft); margin-top: auto; }
.tile.split .halves span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; font-weight: 700; color: var(--wine); font-size: 15px; }
.tile.split .halves span small { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.tile.split .halves span + span { border-left: 1px solid var(--line-soft); }
.tile.split .halves span:active { background: var(--rose-faint); }
.tile .info { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; display: grid; place-items: center; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }

/* basket */
.basket { display: flex; flex-direction: column; min-height: 0; background: var(--paper); border-left: 1px solid var(--line); }
.b-head { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.b-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.b-title .ono { font-family: var(--serif); font-size: 19px; color: var(--wine); }
.member-bar { display: flex; align-items: center; gap: 10px; background: var(--gold-soft); border: 1px solid #E9D6AE; border-radius: 12px; padding: 6px 8px 6px 12px; font-size: 14px; }
.member-bar b { font-weight: 700; }
.cust-bar { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 12px; font-size: 14px; margin-top: 6px; }
.cust-bar b { font-weight: 700; }
.cust-bar svg, .member-bar svg { flex: none; width: 18px; height: 18px; }
.cust-bar .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-bar .spacer { min-width: 0; }
.lines { flex: 1; overflow-y: auto; padding: 4px 0; }
.line { display: grid; grid-template-columns: 38px 1fr auto; gap: 6px 8px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.line:active { background: var(--rose-faint); }
.line .q { font-weight: 700; font-size: 16px; color: var(--wine); text-align: center; background: var(--rose-faint); border-radius: 8px; height: 30px; display: grid; place-items: center; }
.line .n { font-weight: 600; line-height: 1.25; }
.line .sub { font-size: 13px; color: var(--muted); line-height: 1.3; }
.line .sub .note { color: var(--cocoa); font-style: italic; }
.line .disc { font-size: 13px; color: var(--ok); font-weight: 600; }
.line .amt { font-weight: 700; text-align: right; }
.line .amt s { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.line .st { margin-top: 3px; display: flex; gap: 4px; }
.line.voided { opacity: .45; }
.line.voided .n { text-decoration: line-through; }
.totals { border-top: 1px solid var(--line); padding: 10px 14px 4px; font-size: 15px; }
.totals .tr { display: flex; justify-content: space-between; padding: 2px 0; }
.totals .tr.grand { font-size: 22px; font-weight: 800; padding-top: 6px; }
.totals .tr.grand span:last-child { font-family: var(--serif); color: var(--wine); }
.b-actions { padding: 10px 12px 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.b-actions .btn:not(.pay) { padding: 0 8px; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.b-actions .pay { grid-column: 1 / -1; }
.b-actions .btn:not(.pay) svg { display: none; } /* four across: words only */
.receipt-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.receipt-btns .btn { justify-content: center; }
.dlg-f .btn.block { flex: 1; }
.mobile-bar { display: none; }

/* overlays */
.scrim { position: fixed; inset: 0; background: rgba(46,28,38,.42); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
.dlg { background: var(--paper); border-radius: 18px; width: min(520px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(46,28,38,.3); overflow: hidden; }
.dlg.wide { width: min(860px, 100%); }
.dlg.xwide { width: min(1100px, 100%); }
.dlg-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.dlg-h h2 { margin: 0; font: 600 21px/1.2 var(--serif); color: var(--ink); }
.dlg-h .sub { font-size: 14px; color: var(--muted); }
.dlg-b { padding: 4px 16px 16px; overflow-y: auto; }
.dlg-f { padding: 12px 16px 16px; display: flex; gap: 10px; border-top: 1px solid var(--line-soft); }
.dlg-f .btn { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 90; max-width: calc(100% - 32px); box-shadow: var(--shadow); animation: fade .15s; }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* keypad */
.amount-display { font: 700 40px/1.1 var(--serif); color: var(--wine); text-align: center; padding: 6px 0 10px; font-variant-numeric: tabular-nums; }
.amount-display small { display: block; font: 600 13px var(--font); color: var(--muted); letter-spacing: .3px; text-transform: uppercase; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { min-height: 58px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 24px; font-weight: 600; }
.keypad button:active { background: var(--rose-faint); }
.keypad button.fn { font-size: 16px; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 10px; }
.quick button { min-height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--rose-faint); font-weight: 700; font-size: 17px; }

/* lock / sign-in screens */
.center-screen { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 28px 16px; }
.lock-title { font: 600 30px/1.2 var(--serif); color: var(--wine); margin: 8px 0 4px; text-align: center; }
.lock-sub { color: var(--muted); margin: 0 0 22px; text-align: center; }
/* café lock */
.closed-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: var(--rose-soft); color: var(--wine); }
.closed-ic .i { width: 30px; height: 30px; }
.lockcard .ips { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; }
.lockcard .ip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.lockcard .ip code { font-size: 14px; }
.lockcard .ip .spacer { flex: 1; }
.lockcard .here { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--cream); border: 1px dashed var(--line); margin-top: 6px; }
.lockcard .rules { margin: 4px 0 10px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.lockcard .rules li { margin: 2px 0; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; width: min(760px, 100%); }
.person { min-height: 110px; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 650; }
.person .avatar { width: 48px; height: 48px; font-size: 18px; }
.person.nopin { opacity: .55; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 6px 0 18px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--wine); }
.pin-dots i.on { background: var(--wine); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card h3 { margin: 0 0 6px; font: 600 18px/1.25 var(--serif); }

/* lists, tables, back office */
.page { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.page-inner { max-width: 1200px; margin: 0 auto; }
.page h1 { font: 600 26px/1.2 var(--serif); color: var(--ink); margin: 0 0 4px; }
.tabsbar { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: var(--paper); border-bottom: 1px solid var(--line); flex: none; }
.tabsbar button { flex: none; border: 0; background: transparent; min-height: 42px; padding: 0 14px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.tabsbar button.on { background: var(--rose-faint); color: var(--wine); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--rose-faint); }
table.t .num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tscroll { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.stat .k { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.stat .v { font: 600 26px/1.2 var(--serif); color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 13px; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.bar { height: 8px; border-radius: 4px; background: var(--rose-soft); overflow: hidden; min-width: 40px; }
.bar i { display: block; height: 100%; background: var(--wine); border-radius: 4px; }
.hours { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 10px; }
.hours .h { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.hours .h i { width: 100%; max-width: 30px; background: var(--wine); border-radius: 4px 4px 0 0; min-height: 2px; }
.hours .h span { font-size: 11px; color: var(--muted); }
.order-card { text-align: left; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.order-card .ono { font: 600 22px/1 var(--serif); color: var(--wine); min-width: 58px; }
.list { display: grid; gap: 10px; }
.listgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.receipt-view { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 14px; font-size: 14px; }
.receipt-view .tr { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; }
.kv .tot { font-weight: 800; }
.sect { font: 600 17px/1.3 var(--serif); margin: 18px 0 8px; }
.callout { border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.callout.warn { background: var(--warn-soft); color: #7A5010; }
.callout.info { background: var(--rose-faint); color: var(--ink); }
.callout.ok { background: var(--ok-soft); color: var(--ok); }
.allergens { display: flex; gap: 6px; flex-wrap: wrap; }
.allergens span { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 4px 9px; font-weight: 700; font-size: 13px; text-transform: capitalize; }
.allergens.may span { background: var(--warn-soft); color: var(--warn); }
.stamp-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.stamp-row i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold); }
.stamp-row i.on { background: var(--gold); }
.camera { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.camera video { width: 100%; height: 100%; object-fit: cover; }
.camera::after { content: ""; position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.8); border-radius: 14px; }

/* phones and small tablets */
@media (max-width: 1100px) { .sell { grid-template-columns: 160px minmax(0, 1fr) 340px; } }
@media (max-width: 900px) {
  .sell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .cats { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; }
  .cat { width: auto; flex: none; min-height: 40px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; }
  .cat.on { box-shadow: none; border-color: var(--wine); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding-bottom: 90px; }
  .basket { position: fixed; inset: 0; z-index: 40; border-left: 0; display: none; }
  .basket.open { display: flex; }
  .mobile-bar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; }
  .mobile-bar .btn { flex: 1; box-shadow: var(--shadow); }
  .top .hide-sm { display: none !important; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .dlg { border-radius: 18px 18px 0 0; width: 100%; max-height: 94dvh; }
  .scrim { place-items: end center; padding: 0; }
}
@media (max-width: 480px) {
  .brand small { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding-left: 10px; padding-right: 10px; }
  .top { gap: 6px; padding: 0 8px; }
  .who .nm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { body * { visibility: hidden; } }

/* ---------- app orders ---------- */
.banner.app { background: var(--wine); color: #fff; }
.banner.app .btn { background: #fff; color: var(--wine); border-color: #fff; }
.badge.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .badge.pulse { animation: none; } }
.pill svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.ao-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.ao-col { background: var(--cream); border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ao-col h3 { margin: 2px 2px 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ao-col > p { margin: -6px 2px 0; }
.ao-card { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ao-card.new { border-left-color: var(--wine); }
.ao-card.accepted { border-left-color: var(--warn); }
.ao-card.ready { border-left-color: var(--ok); }
.ao-card.late { box-shadow: 0 0 0 2px var(--bad-soft); }
.ao-card .late-t { color: var(--bad); font-weight: 700; }
.ao-h { display: flex; align-items: center; gap: 8px; }
.ao-h .ono { font-size: 20px; }
.ao-items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ao-items .ao-who-k, .ao-items .ao-who-f { display: inline-flex; vertical-align: -3px; margin-right: 6px; }
.ao-items .ao-who-k svg, .ao-items .ao-who-f svg { width: 16px; height: 16px; }
.ao-items .ao-who-k { color: #2F5E49; }   /* kitchen */
.ao-items .ao-who-f { color: var(--wine); }   /* front staff */
.ao-note { font-style: italic; color: var(--muted); font-size: 14px; }
.ao-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.ao-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.ao-btns .btn { justify-content: center; min-height: 44px; }
@media (max-width: 900px) { .ao-cols { grid-template-columns: minmax(0, 1fr); } }
.stat.app .k svg { width: 14px; height: 14px; vertical-align: -2px; }
.card h3 svg { width: 18px; height: 18px; vertical-align: -3px; }
.ao-dash { margin-top: 16px; }
.ao-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ao-stat { background: var(--cream); border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 10px; }
.ao-stat .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.ao-stat .v { font: 600 22px/1.2 var(--serif); color: var(--ink); }
.ao-stat .s { font-size: 12px; color: var(--muted); }

/* ---------- stores, payment in the app ---------- */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.store h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.store.off { opacity: .7; background: var(--cream); }
.store .kv { grid-template-columns: 120px 1fr; font-size: 14px; padding: 4px 0; border-top: 1px solid var(--line-soft); }
.store .kv span { color: var(--muted); }
.store .kv b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.store .kv a { color: var(--wine); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--wine); font-weight: 600; text-decoration: underline; cursor: pointer; }
.ok-t { color: var(--ok); font-weight: 600; }
.bad-t { color: var(--bad); font-weight: 600; }
ol.steps { margin: 6px 0 4px; padding-left: 20px; color: var(--ink); }
ol.steps li { margin: 3px 0; }
details.more { margin: 10px 0 4px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--wine); min-height: 32px; display: flex; align-items: center; }
.opts { display: grid; gap: 2px; }
.opts .check { align-items: flex-start; min-height: 36px; }
.opts .check input { margin-top: 2px; flex: none; }
.pill.paid { background: var(--ok-soft); color: var(--ok); }
.brand .store-nm { font: 600 13px/1 var(--font); color: var(--wine); background: var(--rose-faint); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; margin-left: 6px; white-space: nowrap; }
