/* SERVER-PHONE: the tablet's look (pos-tablet/www/app.css :root) on a phone - one hand, thumb at the bottom, 48 px taps */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --ink: #14110d; --ink-2: #1f1a14; --ink-3: #251f17; --rule: #3a3126;
  --linen: #f5ecd9; --brass: #e8853f; --on-brass: #1d1005; --sage: #6f8a72; --oxblood: #7d2d2a;
  --text: #f5ecd9; --muted: #a89a83;
  --display: "Fraunces", Georgia, serif; --ui: "Instrument Sans", system-ui, sans-serif;
  --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.35 var(--ui); }
body { min-height: 100dvh; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: calc(var(--top) + 10px) 16px 10px; background: var(--ink); border-bottom: 1px solid var(--rule); }
.bar-t { flex: 1; min-width: 0; }
.bar-k { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar h1 { margin: 0; font: 600 24px/1.15 var(--display); }
.back { width: 44px; height: 44px; margin-left: -8px; font-size: 34px; line-height: 1; color: var(--brass); }
.net { font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--rule); color: var(--muted); }
.net.off { background: var(--oxblood); border-color: var(--oxblood); color: var(--linen); }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; padding: 14px 16px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 92px; padding: 12px;
  background: var(--ink-2); border: 1px solid var(--rule); border-radius: 14px; text-align: left; }
.tile:active { transform: scale(.97); }
.t-n { font: 600 30px/1 var(--display); }
.t-s { font-size: 13px; color: var(--muted); }
.tile.busy { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.tile.busy .t-s { color: var(--on-brass); font-weight: 600; }
.find { padding: 10px 16px 0; }
.find input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--ink-2);
  color: var(--text); font: 16px var(--ui); -webkit-appearance: none; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--rule); white-space: nowrap; color: var(--muted); }
.cat.on { background: var(--linen); border-color: var(--linen); color: var(--ink); font-weight: 600; }
.menu { padding: 2px 16px calc(var(--bot) + 96px); }
.dish { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.d-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 0; }
.d-ph { flex: none; width: 56px; height: 56px; border-radius: 10px; background: var(--ink-3) center / cover no-repeat; }
.d-t { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.d-n { font-size: 17px; }
.d-p { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 15px; }
.plus { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--ink-3); color: var(--brass); }
.dish.added .plus { background: var(--brass); color: var(--on-brass); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--ink-3); border-top: 1px solid var(--rule);
  border-radius: 18px 18px 0 0; padding-bottom: var(--bot); max-height: 75dvh; display: flex; flex-direction: column; box-shadow: 0 -10px 30px rgba(0,0,0,.45); }
.sheet-h { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 0 20px; font-size: 17px; }
.sheet-h::before { content: ""; position: absolute; left: 50%; top: 7px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--rule); }
.sheet-h span { font-variant-numeric: tabular-nums; font-weight: 600; }
.sheet-b { display: none; overflow-y: auto; padding: 0 20px 14px; }
.sheet.open .sheet-b { display: block; }
.line { display: grid; grid-template-columns: 34px 1fr auto 44px; align-items: center; gap: 8px; min-height: 48px; border-bottom: 1px solid var(--rule); }
.l-q { color: var(--brass); font-weight: 600; }
.l-p { font-variant-numeric: tabular-nums; }
.less { width: 44px; height: 44px; font-size: 26px; color: var(--muted); }
.send { width: 100%; height: 54px; margin-top: 14px; border-radius: 14px; background: var(--brass); color: var(--on-brass); font-weight: 700; font-size: 17px; }
.send:disabled { opacity: .45; }
.note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.empty { padding: 40px 16px; color: var(--muted); text-align: center; grid-column: 1 / -1; }
.proof { padding: 18px 16px calc(var(--bot) + 18px); font-size: 12px; color: var(--muted); text-align: center; }

/* the dish card: photo, the restaurant's choices, the note for the kitchen; Add at the thumb */
.card-back { position: fixed; inset: 0; z-index: 9; background: rgba(0,0,0,.6); }
.card { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--ink-2); border-radius: 20px 20px 0 0; overflow: hidden; box-shadow: 0 -12px 40px rgba(0,0,0,.5); }
.c-photo { flex: none; height: min(42vw, 220px); background: var(--ink-3) center / cover no-repeat; }
.c-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; background: rgba(20,17,13,.75); font-size: 28px; line-height: 1; }
.c-body { overflow-y: auto; padding: 16px 20px 8px; }
.c-body h2 { margin: 0; font: 600 24px/1.2 var(--display); padding-right: 40px; }
.c-price { color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.c-g { margin-top: 18px; }
.c-gt { font-weight: 600; margin-bottom: 8px; }
.need { font-weight: 400; font-size: 13px; color: var(--brass); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--rule); color: var(--text); }
.chip.on { background: var(--linen); border-color: var(--linen); color: var(--ink); font-weight: 600; }
#c-note { width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--ink);
  color: var(--text); font: 16px/1.35 var(--ui); resize: none; }
.c-err { color: #f0a59f; margin: 12px 0 0; }
.c-foot { flex: none; display: flex; gap: 12px; align-items: center; padding: 12px 20px calc(var(--bot) + 12px); border-top: 1px solid var(--rule); }
.qty { display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 14px; }
.qty button { width: 48px; height: 52px; font-size: 24px; color: var(--brass); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-add { flex: 1; height: 54px; border-radius: 14px; background: var(--brass); color: var(--on-brass); font-weight: 700; font-size: 17px; }
.l-n { display: flex; flex-direction: column; gap: 2px; }
.l-m, .l-note { font-size: 13px; color: var(--muted); }
.l-note { color: var(--brass); }
