:root {
  --bg: #faf7f2; --surface: #ffffff; --surface-2: #f3eee6; --line: #e6ded2;
  --text: #1f1a14; --muted: #6f6558; --brand: #c2410c; --brand-ink: #ffffff; --brand-soft: #fde9dc;
  --veg: #15803d; --nonveg: #b91c1c; --ok: #15803d; --warn: #b45309; --info: #1d4ed8;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15120f; --surface: #1e1a16; --surface-2: #27221c; --line: #352e26;
    --text: #f3ede5; --muted: #a89d8e; --brand: #f97316; --brand-ink: #1a0f06; --brand-soft: #3a2415;
    --veg: #4ade80; --nonveg: #f87171; --ok: #4ade80; --warn: #fbbf24; --info: #93c5fd;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 9px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--text); }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.row { display: flex; gap: 10px; align-items: center; }
.spacer { flex: 1; }
.error { color: var(--nonveg); font-size: 14px; min-height: 1.2em; }
.vegdot { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid var(--veg); border-radius: 2px; flex: none; }
.vegdot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--veg); }
.vegdot.non { border-color: var(--nonveg); }
.vegdot.non::after { background: none; width: 0; height: 0; border-radius: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--nonveg); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--surface-2); color: var(--muted); }
.pill.new { background: var(--brand-soft); color: var(--brand); }
.pill.preparing { color: var(--warn); }
.pill.served { color: var(--info); }
.pill.paid { color: var(--ok); }
.topbar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 800; letter-spacing: -.01em; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 50; max-width: calc(100% - 32px); }
.hidden { display: none !important; }
