:root {
  --bg: #fff8ee;
  --card: #ffffff;
  --ink: #2b1a0f;
  --muted: #8a7360;
  --crust: #d97b3f;
  --sauce: #c1391f;
  --basil: #3a7d44;
  --line: #f0e0cc;
  --shadow: 0 2px 10px rgba(60, 30, 10, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  padding: 16px 16px 48px;
  max-width: 560px;
  margin: 0 auto;
}

h1 {
  font-size: 1.5rem;
  margin: 4px 0 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}

.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 22px 0 8px;
  font-weight: 600;
}

.pizza-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pizza-row:last-child { border-bottom: none; }

.pizza-name { font-weight: 600; }
.pizza-notes { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-oven { background: #fde2d3; color: var(--sauce); }
.badge-queued { background: #f0e0cc; color: var(--muted); }
.badge-ready { background: #dcefe0; color: var(--basil); }
.badge-gone { background: #eeeeee; color: #999; }

input[type="tel"], input[type="text"], input[type="password"], input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 1rem;
  background: #fffdf9;
  color: var(--ink);
}

button {
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--sauce); color: white; width: 100%; margin-top: 10px; }
.btn-primary:disabled { opacity: 0.5; }
.btn-secondary { background: var(--crust); color: white; }
.btn-ghost { background: var(--line); color: var(--ink); }

.empty { color: var(--muted); font-size: 0.9rem; padding: 8px 0; }
/* When .empty stands alone as its own card (chef.html's pizza list) rather
   than nesting inside an already-padded .card (the guest board), it needs
   .card's normal padding back -- .empty's 8px 0 alone leaves the text
   pressed against the edges. */
.card.empty { padding: 16px; }

.status-msg { font-size: 0.85rem; margin-top: 8px; min-height: 1.2em; }
.status-msg.ok { color: var(--basil); }
.status-msg.err { color: var(--sauce); }

.eta {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--sauce);
  font-weight: 600;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 26, 15, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.modal-card { max-width: 420px; width: 100%; margin: 0; }
.modal-message { font-size: 0.95rem; line-height: 1.45; white-space: pre-line; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; }
.modal-actions button { flex: 1; margin-top: 0; }
