:root {
  --paper: #f7f3ea;
  --card: #fffdf8;
  --ink: #1c1714;
  --muted: #5c564f;
  --line: #e4d9c4;
  --accent: #1f6b4a;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; max-width: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
}
.top {
  background: #1c1714;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
}
.top p { margin: 0; font-size: 14px; min-width: 0; flex: 1 1 200px; }
.top a { color: #fff; font-weight: 700; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }
h1 { font-size: 32px; line-height: 1.15; margin: 8px 0 12px; overflow-wrap: anywhere; }
h2 { font-size: 22px; margin: 28px 0 10px; }
h3 { margin: 0 0 8px; font-size: 18px; overflow-wrap: anywhere; }
a { color: var(--accent); }
.brand { letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0; }
.nav { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.addr, .fine, .muted { color: var(--muted); }
.addr { margin-top: 4px; }
button, .btn, input, select, textarea { font: inherit; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 12px;
}
.menu { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.tile {
  border-radius: 12px;
  min-height: 150px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(28, 23, 20, 0.08);
}
.tile h3 { font-size: 22px; }
.tile .price { font-weight: 700; margin: 8px 0; }
.tile button, .tile .btn { width: 100%; }
/* food photos (Worthy, 11 Oct 2026) */
.menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { padding: 0; overflow: hidden; background: #fff; min-height: 0; justify-content: flex-start; }
.tile .tile-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tile .tile-body form { margin-top: auto; }
.tile h3 { font-size: 17px; line-height: 1.25; }
.tile .price { margin: 2px 0 8px; }
.dish-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.tile[data-sold-out="1"] .dish-photo { filter: grayscale(0.85); opacity: 0.7; }
label { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 4px; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 80px; resize: vertical; }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button[disabled] { opacity: 0.45; cursor: not-allowed; }
a.ghost, button.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.notice { background: #fff4f2; border: 1px solid #9a3412; padding: 10px 12px; border-radius: 8px; }
.check { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.check input { width: auto; min-height: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; padding: 0; }
.sum, .total { font-size: 20px; font-weight: 700; }
.lines { list-style: none; padding: 0; margin: 0 0 8px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.basket-line { border-bottom: 1px solid var(--line); margin-bottom: 12px; padding-bottom: 12px; }
.qty { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.qty label { grid-column: 1 / -1; }
.paybox { background: #f3f7f4; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 14px 0; }
.orders { display: grid; gap: 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.status { font-weight: 700; }
.menu-row { display: grid; gap: 8px; align-items: center; }
.menu-row .dish { margin: 0; font-weight: 700; }
.price-field label { margin-top: 0; }
.price-input { max-width: 140px; }
.ticket { max-width: 420px; }
.notes { overflow-wrap: anywhere; }
@media (min-width: 800px) {
  .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-row { grid-template-columns: minmax(0, 1fr) 140px auto auto; }
  .menu-row label { margin: 0; }
}
@media (min-width: 900px) {
  .orders { grid-template-columns: 1fr 1fr; }
}
@media print {
  .top, .nav, .no-print { display: none; }
  body { background: #fff; }
  .ticket { max-width: none; }
}
