:root {
  --ink: #23231f;
  --muted: #6f6c65;
  --paper: #f5f0e7;
  --card: #fffdf9;
  --line: #d8d0c4;
  --olive: #68715d;
  --olive-dark: #4f5747;
  --clay: #b96f50;
  --gold: #c69b57;
  --danger: #a8463b;
  --info: #315c73;
  --success: #345b34;
  --shadow: 0 18px 55px rgba(54, 45, 33, .10);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at top right, rgba(198,155,87,.10), transparent 28rem), var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: var(--olive-dark); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(35,35,31,.10);
  background: rgba(245,240,231,.96);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { text-decoration: none; display: inline-flex; flex-direction: column; color: var(--ink); line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-word { font-weight: 900; letter-spacing: .14em; font-size: 21px; }
.brand-sub { font-size: 10px; letter-spacing: .18em; margin-top: 7px; color: var(--muted); }
.topnav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.topnav a, .link-button { text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 12px; border-radius: 999px; }
.topnav a:hover { background: rgba(104,113,93,.11); }
.inline-form { display: inline; }
.link-button { appearance: none; border: 0; color: var(--olive-dark); background: transparent; }
.link-button:hover { color: var(--clay); background: rgba(104,113,93,.11); }
.page { width: min(1120px, calc(100% - 32px)); margin: 36px auto 70px; }
.page-wide { width: min(1380px, calc(100% - 32px)); }
.footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 38px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; }
h1, h2, h3 { line-height: 1.15; margin-top: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 14px; }
h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
h3 { font-size: 19px; margin-bottom: 9px; }
p { margin-top: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-weight: 800; color: var(--olive); font-size: 12px; margin-bottom: 12px; }
.lead { font-size: clamp(17px, 2vw, 21px); color: #504f49; max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.nowrap { white-space: nowrap; }
.card, .hero-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 24px; }
.card + .card { margin-top: 22px; }
.card-flat { box-shadow: none; }
.card-accent { border-top: 5px solid var(--olive); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.card-header h1, .card-header h2, .card-header h3 { margin-bottom: 4px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 19px 20px; border-radius: 15px; background: rgba(255,253,249,.72); border: 1px solid var(--line); }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.stat-value { font-size: 30px; font-weight: 900; line-height: 1.15; margin-top: 6px; }
.stat-note { color: var(--muted); font-size: 12px; margin-top: 5px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions-right { justify-content: flex-end; }
.btn { appearance: none; border: 1px solid transparent; border-radius: 999px; min-height: 43px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(35,35,31,.16); }
.btn-primary:hover { color: #fff; background: #000; }
.btn-olive { background: var(--olive); color: white; }
.btn-olive:hover { background: var(--olive-dark); color: white; }
.btn-secondary { background: white; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { color: var(--ink); border-color: #aaa197; }
.btn-danger { background: #fff; color: var(--danger); border-color: rgba(168,70,59,.35); }
.btn-small { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.btn-block { width: 100%; }
label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 7px; }
.label-note { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; color: var(--ink); background: #fff; border: 1px solid #cfc7ba; border-radius: 11px; min-height: 45px; padding: 10px 12px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 4px rgba(104,113,93,.12); }
input[readonly], input[disabled], select[disabled], textarea[disabled] { background: #f1eee8; color: #77736c; }
.field { margin-bottom: 17px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-help { color: var(--muted); font-size: 12px; margin-top: 6px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { margin-top: 4px; }
.flash { border-radius: 13px; padding: 13px 16px; margin-bottom: 18px; font-weight: 700; border: 1px solid transparent; }
.flash-success { background: #edf4e9; border-color: #c8dbc0; color: #36562e; }
.flash-error { background: #f9e9e6; border-color: #e5bbb5; color: #7d332a; }
.flash-info { background: #eaf1f4; border-color: #c3d5dd; color: #294f62; }
.flash-warning { background: #fff4dc; border-color: #ead19b; color: #745318; }
.status { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.status-ok { color: #345b34; background: #e7f1e3; }
.status-info { color: #315c73; background: #e5eff4; }
.status-warn { color: #745318; background: #fff0cf; }
.status-review { color: #704675; background: #f1e5f2; }
.status-danger { color: #87382f; background: #f7e3df; }
.status-neutral { color: #5e5b55; background: #ebe8e2; }
.badge { display: inline-flex; align-items: center; min-height: 27px; border-radius: 999px; padding: 4px 9px; background: #ece8e0; font-size: 11px; font-weight: 800; }
.badge-danger { background: #f7e3df; color: #87382f; }
.badge-olive { background: #e7ece3; color: #48523f; }
.badge-gold { background: #f7ecd7; color: #755624; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #f3f0ea; }
th, td { padding: 13px 14px; border-bottom: 1px solid #e7e2da; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.table-link { font-weight: 850; color: var(--ink); text-decoration: none; }
.table-link:hover { color: var(--clay); }
.progress { height: 9px; background: #e4dfd6; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--olive); border-radius: inherit; }
.progress-0 span { width: 0; }
.progress-10 span { width: 10%; }
.progress-20 span { width: 20%; }
.progress-30 span { width: 30%; }
.progress-40 span { width: 40%; }
.progress-50 span { width: 50%; }
.progress-60 span { width: 60%; }
.progress-70 span { width: 70%; }
.progress-80 span { width: 80%; }
.progress-90 span { width: 90%; }
.progress-100 span { width: 100%; }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.booking-banner { border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); background: var(--ink); color: white; margin-bottom: 22px; box-shadow: var(--shadow); }
.booking-banner .eyebrow { color: #d4c49f; }
.booking-banner h1 { font-size: clamp(30px, 4vw, 48px); }
.booking-banner p { color: rgba(255,255,255,.75); }
.booking-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.booking-meta-item { padding: 13px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.booking-meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.62); font-weight: 800; }
.booking-meta-value { font-weight: 800; margin-top: 4px; }
.guest-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 20px; margin-bottom: 18px; }
.guest-card-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 15px; }
.guest-number { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 900; }
.selection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.selection-grid-starters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.callout { padding: 16px 18px; border-left: 4px solid var(--gold); background: #fbf4e6; border-radius: 10px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 18px; }
.kv dt { font-weight: 800; color: var(--muted); }
.kv dd { margin: 0; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 32px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 5px; }
.login-shell { min-height: 78vh; display: grid; place-items: center; }
.login-card { width: min(480px, 100%); }
.review-guest { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-guest:last-child { border-bottom: 0; }
.review-selections { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 14px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border-radius: 999px; background: #ece8e0; padding: 5px 9px; font-size: 12px; font-weight: 700; }
.code-box { padding: 13px; border-radius: 10px; background: #f0ede7; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 22px; align-items: start; }
.sticky-side { position: sticky; top: 96px; }
.stage-awaiting_preauth { color: #745318; background: #fff0cf; }
.stage-confirmed, .stage-selections_open, .stage-selections_in_progress { color: #315c73; background: #e5eff4; }
.stage-venue_review { color: #704675; background: #f1e5f2; }
.stage-kitchen_ready, .stage-completed { color: #345b34; background: #e7f1e3; }
.stage-cancelled { color: #87382f; background: #f7e3df; }
.print-only { display: none; }
@media (max-width: 900px) {
  .grid-4, .grid-3, .booking-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selection-grid, .selection-grid-starters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
}
@media (max-width: 640px) {
  .topbar { position: static; align-items: flex-start; }
  .topnav { justify-content: flex-end; }
  .page, .page-wide { width: min(100% - 20px, 1120px); margin-top: 18px; }
  .card { padding: 18px; }
  .card-header, .footer { flex-direction: column; }
  .grid-2, .grid-3, .grid-4, .field-row, .field-row-3, .booking-meta, .selection-grid, .selection-grid-starters, .review-selections, .kv { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
}
@media print {
  body { background: #fff; color: #000; font-size: 10pt; }
  .topbar, .footer, .no-print { display: none !important; }
  .print-only { display: block; }
  .page { width: 100%; margin: 0; }
  .card, .booking-banner { box-shadow: none; border: 0; background: #fff; color: #000; padding: 0; }
  table { font-size: 9pt; }
  th, td { padding: 5px 6px; }
}


.selection-description {
  min-height: 0;
  margin-top: 7px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f7f3eb;
  color: #5f5b54;
  font-size: 12px;
  line-height: 1.45;
}
.selection-description[hidden] { display: none; }

.menu-reference-group {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.menu-reference-group summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
}
.menu-reference-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.menu-reference-item {
  padding: 12px 16px;
  border-bottom: 1px solid #ece6dd;
}
.menu-reference-item:nth-child(odd) {
  border-right: 1px solid #ece6dd;
}
.menu-reference-item strong {
  display: block;
  margin-bottom: 3px;
}
@media (max-width: 720px) {
  .menu-reference-list { grid-template-columns: 1fr; }
  .menu-reference-item:nth-child(odd) { border-right: 0; }
}
