/*
 * Stol application styles.
 *
 * Keep the first shell intentionally small; feature-specific styles should be
 * added with the corresponding vertical slice rather than copied from the
 * static prototype.
 */
:root {
  --stol-paper: #f7f5ef;
  --stol-ink: #20231f;
  --stol-green: #244a37;
  --stol-lime: #d9ef7f;
  --stol-orange: #e76f3d;
  --stol-muted: #6e716b;
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--stol-paper);
  color: var(--stol-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  width: min(100% - 32px, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.brand-link {
  color: var(--stol-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand-link span,
h1 span {
  color: var(--stol-orange);
}

.context-label {
  color: var(--stol-muted);
  font-size: 0.75rem;
}

.guest-menu-intro { margin-bottom: 28px; }

.guest-menu-intro h1,
.guest-message h1 { font-size: clamp(2.8rem, 13vw, 5rem); }

.category-nav {
  display: flex;
  gap: 8px;
  margin: 24px 0 40px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.category-nav a,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--stol-green);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.category-nav a { background: white; color: var(--stol-green); box-shadow: 0 1px 0 rgba(32, 35, 31, 0.14); }
.menu-category { margin: 0 0 40px; scroll-margin-top: 20px; }
.menu-category h2 { margin: 0 0 16px; color: var(--stol-green); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.menu-items { display: grid; gap: 12px; }
.menu-item-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 12px; background: white; }
.menu-item-card:not(:has(.menu-item-photo)) { grid-template-columns: minmax(0, 1fr); }
.menu-item-content { min-width: 0; overflow-wrap: anywhere; }
.menu-item-heading strong { white-space: nowrap; }
.menu-item-photo { width: 88px; height: 88px; border-radius: 8px; object-fit: cover; }
.menu-item-heading { display: flex; justify-content: space-between; gap: 12px; }
.menu-item-heading h3 { margin: 0; color: var(--stol-green); font-size: 1rem; }
.menu-item-content p, .availability-note { margin: 8px 0; color: var(--stol-muted); font-size: 0.9rem; line-height: 1.4; }
.menu-item-meta, .availability-note { font-size: 0.78rem !important; }
.menu-item-unavailable { opacity: 0.62; }
.guest-message .prototype-note { margin-top: 0; }
.button-secondary { background: var(--stol-lime); color: var(--stol-ink); }
.guest-page-title { font-size: clamp(2.8rem, 13vw, 5rem); }
.guest-item-card { margin: 24px 0; }
.item-price { color: var(--stol-green); font-size: 1.25rem; font-weight: 700; }
.staff-form { display: grid; gap: 10px; max-width: 42rem; }
.staff-form input:not([type="checkbox"]):not([type="radio"]),
.staff-form select,
.staff-form textarea,
.staff-form input[type="submit"],
.staff-form button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #9ba49a;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--stol-ink);
  font: inherit;
}
.staff-form textarea { min-height: 96px; resize: vertical; }
.staff-form input[type="submit"] { border: 0; background: var(--stol-green); color: white; cursor: pointer; font-weight: 700; }
.staff-form button { border: 0; background: var(--stol-green); color: white; cursor: pointer; font-weight: 700; }
.staff-form input[type="submit"]:disabled { cursor: not-allowed; opacity: .55; }
.form-help { color: var(--stol-muted); font-size: .85rem; line-height: 1.45; }
.form-errors, .flash-alert { color: #7a2e19; font-weight: 700; }
.option-group-error:empty, [data-option-group-target="validation"]:empty { display: none; }
.option-group { display: grid; gap: 8px; margin: 20px 0; border: 0; padding: 0; }
.option-group label { display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 8px; background: var(--stol-paper); }
.option-group input { width: 20px; height: 20px; }
.cart-items { display: grid; gap: 10px; margin: 24px 0; }
.cart-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px; background: white; border-radius: 10px; }
.cart-item h2 { margin: 0; color: var(--stol-green); font-size: 1.1rem; }
.cart-item p { margin: 6px 0 0; color: var(--stol-muted); font-size: .9rem; }
.cart-total { display: flex; justify-content: space-between; margin: 20px 0; padding: 18px 0; border-top: 2px solid var(--stol-green); font-size: 1.15rem; }
.recommendations { display: grid; gap: 8px; margin: 20px 0; }
.recommendations h2 { margin: 0; color: var(--stol-green); font-size: 1.15rem; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--stol-orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--stol-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 18vw, 5.5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.intro {
  max-width: 19rem;
  margin: 20px 0 0;
  font-size: 1.15rem;
  line-height: 1.45;
}

.prototype-note,
.dashboard-status {
  max-width: 26rem;
  margin: 40px 0 0;
  padding: 16px;
  border-left: 4px solid var(--stol-lime);
  background: white;
  color: var(--stol-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tap-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.tap-link:hover {
  background: var(--stol-lime);
}

.staff-layout {
  background: #eceee7;
}

.staff-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 220px minmax(0, 1fr);
}

.staff-navigation {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 20px;
  background: var(--stol-green);
  color: white;
}

.staff-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.restaurant-switcher {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.restaurant-switcher label {
  font-size: 0.875rem;
}

.restaurant-switcher select {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  padding: 8px;
}

.staff-navigation a,
.staff-navigation button {
  min-height: 44px;
}

.staff-navigation a {
  color: white;
}

.staff-navigation .tap-link:hover {
  color: var(--stol-ink);
}

.staff-navigation form {
  margin: 0;
}

.staff-navigation .button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: white;
  cursor: pointer;
  font: inherit;
}

.staff-navigation .button:hover {
  background: var(--stol-lime);
  color: var(--stol-ink);
}

.staff-main {
  min-width: 0;
  padding: 24px clamp(16px, 3vw, 40px);
}

.staff-page { display: grid; gap: 20px; }
.staff-page .page-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.staff-page .page-header h1 { margin: 4px 0; }
.staff-page .page-header p { margin: 8px 0; }
.staff-filter-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 16px; border-radius: 12px; background: white; }
.staff-filter-form div { display: grid; gap: 4px; }
.staff-filter-form input { min-height: 42px; padding: 8px; border: 1px solid #9ba49a; border-radius: 8px; font: inherit; }
.staff-filter-form .button { min-height: 42px; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--stol-green); color: white; cursor: pointer; font: inherit; }
.staff-card { padding: 20px; border-radius: 12px; background: white; }
.staff-card h2 { margin-top: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0; }
.metric-grid div { padding: 12px; border-radius: 8px; background: #f1f3ec; }
.metric-grid dt { color: var(--stol-muted); font-size: .9rem; }
.metric-grid dd { margin: 6px 0 0; color: var(--stol-ink); font-size: 1.1rem; font-weight: 700; }
.staff-card .table-scroll { overflow-x: auto; margin-top: 16px; }

.qr-label-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.qr-label {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px dashed #667368;
  background: white;
  text-align: center;
  break-inside: avoid;
}

.qr-label-restaurant {
  margin: 0 0 6px;
  font-size: 0.875rem;
}

.qr-label h2 {
  margin: 0 0 8px;
}

.qr-label img {
  width: 150px;
  height: 150px;
}

.qr-label p:last-child {
  max-width: 24ch;
  margin: 8px 0 0;
}

.kitchen-dashboard h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.kitchen-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: start; }
.kitchen-lane, .kitchen-order-list, .kitchen-order-card, .kitchen-order-card form { min-width: 0; }
.kitchen-order-card { overflow-wrap: anywhere; }
.kitchen-lane { min-height: 0; padding: 14px; background: #dfe4db; border-radius: 12px; }
.kitchen-lane h2 { margin: 0 0 12px; color: var(--stol-green); font-size: 1.05rem; }
.kitchen-order-list { display: grid; gap: 10px; }
.kitchen-order-card { padding: 14px; background: white; border-radius: 10px; box-shadow: 0 2px 7px rgba(32,35,31,.08); }
.kitchen-order-card header { display: flex; justify-content: space-between; gap: 8px; color: var(--stol-green); }
.order-time, .order-note, .order-choice { display: block; color: var(--stol-muted); font-size: .8rem; }
.kitchen-order-card ul { margin: 12px 0; padding-left: 18px; }
.kitchen-order-card li { margin: 8px 0; }
.inline-transition { display: grid; gap: 8px; margin: 10px 0; }
.inline-transition input:not([type=hidden]), .inline-transition button {
  min-width: 0; max-width: 100%; width: 100%; min-height: 44px;
  padding: 10px; border: 1px solid #9ba49a; border-radius: 8px; font: inherit;
}
.inline-transition button { background: var(--stol-green); color: white; cursor: pointer; }
.order-item-cancelled { opacity: .7; border-left: 3px solid #7a2e19; padding-left: 8px; }
.order-waiting-too-long { outline: 2px solid var(--stol-orange); }
.order-attention { color: #7a2e19; font-weight: 700; }

.staff-order-board { display: grid; gap: 10px; }
.staff-board-status, .staff-board-preferences {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: white;
}
.staff-board-status p { margin: 2px 0; }
.staff-board-status [data-order-board-target="connectionStatus"] { color: var(--stol-green); font-weight: 700; }
.staff-board-status [data-order-board-target="lastVerified"] { color: var(--stol-muted); font-size: .85rem; }
.staff-board-stale { color: #7a2e19; font-weight: 800; }
.staff-board-actions, .staff-board-preferences { display: flex; align-items: center; gap: 10px; }
.staff-board-actions { flex-wrap: wrap; }
.staff-order-board .button { min-height: 44px; cursor: pointer; font-size: .9rem; }
.staff-order-board .button:disabled { cursor: wait; opacity: .6; }
.staff-help-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--stol-green); font-weight: 700; }
.staff-board-preferences { justify-content: flex-start; }
.staff-unacknowledged { margin: 0; color: #7a2e19; font-weight: 700; }
.staff-sound-toggle, .staff-reminder-setting { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.staff-sound-toggle input { width: 20px; height: 20px; accent-color: var(--stol-green); }
.staff-reminder-setting input { width: 76px; min-height: 40px; border: 1px solid #9ba49a; border-radius: 8px; padding: 6px; font: inherit; }
.staff-board-preferences .form-help { flex-basis: 100%; margin: 0; }
.staff-support-card { max-width: 48rem; margin-top: 28px; padding: 24px; border-radius: 12px; background: white; line-height: 1.6; }
.staff-support-card li { margin: 12px 0; padding-left: 4px; }
.staff-support-card .button { margin-top: 12px; }
.guest-sync-warning { padding: 12px; border-left: 4px solid var(--stol-orange); background: white; color: #7a2e19; line-height: 1.5; }
.guest-order-confirmation[hidden] { display: none; }
.guest-experience [data-guest-order-target="accessLost"] { padding: 16px; border-left: 4px solid var(--stol-orange); background: white; line-height: 1.5; }

@media (max-width: 720px) {
  .staff-board-status { align-items: flex-start; }
  .staff-board-preferences { align-items: flex-start; }
  .staff-sound-toggle, .staff-reminder-setting { width: 100%; }
}

@media print {
  @page {
    margin: 12mm;
  }

  body,
  .staff-layout {
    background: white;
  }

  .staff-shell {
    display: block;
    min-height: 0;
  }

  .staff-navigation,
  .no-print {
    display: none !important;
  }

  .staff-main {
    max-width: none;
    padding: 0;
  }

  .qr-label-sheet {
    grid-template-columns: repeat(2, 1fr);
    gap: 8mm;
  }

  .qr-label {
    min-height: 85mm;
    border: 1px dashed #777;
    padding: 6mm;
  }

  .qr-label img {
    width: 45mm;
    height: 45mm;
  }
}

@media (max-width: 720px) {
  .staff-shell {
    display: block;
  }

  .staff-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    padding: 8px 16px;
  }

  .staff-main {
    padding: 16px;
  }

  .kitchen-lanes { grid-template-columns: minmax(0, 1fr); }
}

:focus-visible {
  outline: 3px solid var(--stol-orange);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.order-allergens {
  display: block;
  color: #7a2e19;
  font-size: .8rem;
  font-weight: 700;
}

/* QR guest journey: compact context, thumb-friendly controls and visible totals. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.guest-experience { --stol-muted: #5b625b; }
.guest-experience .app-shell { width: min(100% - 32px, 560px); padding: 16px 0 calc(150px + env(safe-area-inset-bottom)); }
.guest-experience .guest-header { gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #dce1d5; }
.guest-experience .brand-link { display: inline-flex; align-items: center; min-height: 44px; }
.guest-experience .context-label { flex: 1; min-width: 0; font-size: .75rem; line-height: 1.4; }
.guest-experience .context-label strong { display: block; color: var(--stol-green); font-size: .9rem; }
.guest-experience .guest-cart-link { gap: 7px; padding: 10px 12px; font-size: .9rem; }
.cart-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 50%; background: #ffffff30; font-size: .8rem; font-variant-numeric: tabular-nums; }
.guest-cart-link .cart-badge { background: white; }
.guest-experience .guest-page-title, .guest-experience .guest-menu-intro h1 { font-size: clamp(2rem, 8vw, 2.6rem); letter-spacing: -.04em; line-height: 1.1; overflow-wrap: anywhere; }
.guest-experience .intro { font-size: 1rem; line-height: 1.5; margin: 12px 0 18px; }
.guest-experience .guest-menu-intro { margin-bottom: 16px; }
.guest-experience .eyebrow { color: #995023; }
.guest-experience .category-nav { position: sticky; top: 0; z-index: 5; margin: 0 -16px 16px; padding: 12px 16px; background: var(--stol-paper); border-bottom: 1px solid #dce1d5; scrollbar-width: thin; }
.guest-experience .category-nav a { padding: 10px 14px; flex-shrink: 0; font-size: .9rem; }
.guest-experience .menu-category { scroll-margin-top: 84px; margin-bottom: 32px; }
.guest-experience .menu-category h2 { font-size: 1.6rem; margin-bottom: 12px; }
.guest-experience .menu-item-card { padding: 16px; border: 1px solid #e7e8e0; gap: 12px; }
.guest-experience .menu-item-heading { flex-wrap: wrap; gap: 6px 12px; }
.guest-experience .menu-item-heading h3 { flex: 1; min-width: 100px; line-height: 1.4; }
.guest-experience .menu-item-heading strong { color: var(--stol-green); }
.guest-experience .menu-item-meta { font-size: .8rem !important; line-height: 1.5; }
.guest-experience .menu-item-content > .button { margin-top: 4px; min-width: 90px; }
.guest-experience .allergen-help { font-size: .8rem; color: var(--stol-muted); margin: 4px 0 20px; line-height: 1.5; }
.guest-experience summary { cursor: pointer; padding: 12px 0; }
.guest-back-link, .guest-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--stol-green); font-weight: 600; text-underline-offset: 4px; }
.guest-back-link { margin: -10px 0 16px; text-decoration: none; }
.guest-item-photo { width: 100%; max-height: 240px; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }
.guest-experience .item-price { margin: 16px 0 8px; }
.guest-item-form { gap: 20px; margin-top: 20px; }
.guest-item-form .option-group { margin: 0; min-width: 0; }
.guest-item-form .option-group legend { width: 100%; font-weight: 700; padding: 0; }
.option-requirement { float: right; margin-left: 8px; padding: 3px 8px; border-radius: 6px; background: #e5eadf; color: var(--stol-green); font-weight: 500; font-size: .75rem; }
.guest-item-form .option-group .form-help { margin: 4px 0; }
.guest-item-form .option-group label { padding: 14px 12px; background: white; border: 1px solid #dce1d5; border-radius: 10px; gap: 12px; cursor: pointer; }
.guest-item-form .option-group label:has(input:checked) { border-color: var(--stol-green); background: #edf2e5; }
.guest-item-form .option-group input { flex-shrink: 0; margin: 0; accent-color: var(--stol-green); }
.choice-price { margin-left: auto; white-space: nowrap; font-size: .85rem; }
.quantity-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; }
.quantity-stepper { display: inline-flex; align-items: center; border: 1px solid #c5cebf; border-radius: 10px; overflow: hidden; background: white; }
.quantity-stepper button, .guest-item-form .quantity-stepper button { width: 44px; height: 46px; border: 0; border-radius: 0; background: white; color: var(--stol-green); font-size: 1.3rem; cursor: pointer; }
.quantity-stepper button:disabled { opacity: .35; cursor: default; }
.guest-experience .guest-item-form .quantity-stepper input { width: 44px; min-height: 46px; border: 0; padding: 4px; border-radius: 0; text-align: center; appearance: textfield; background: white; font-weight: 700; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.guest-note { border-top: 1px solid #dce1d5; }
.guest-note summary { min-height: 48px; font-weight: 600; }
.guest-note .form-help { font-weight: 400; }
.guest-experience .guest-bottom-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 592px); z-index: 10; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #f7f5eff5; border-top: 1px solid #dce1d5; box-shadow: 0 -6px 20px #244a3708; }
.guest-experience .guest-primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: var(--stol-green); color: white; padding: 14px 16px; font: inherit; font-weight: 700; text-decoration: none; white-space: normal; cursor: pointer; }
.guest-primary strong { white-space: nowrap; }
.guest-primary .cart-badge { margin-left: 4px; }
.guest-experience .guest-primary:disabled { opacity: .55; cursor: not-allowed; }
.guest-bottom-bar .form-help { margin: 0 0 8px; }
.guest-experience .flash { width: min(100% - 32px, 560px); margin: 12px auto 0; padding: 12px 16px; border: 1px solid #c5cebf; border-radius: 10px; font-size: .9rem; line-height: 1.4; }
.guest-experience .flash-notice { background: #e9f1d4; color: var(--stol-green); }
.guest-experience .flash-alert { background: #fff0e8; }
.guest-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#guest_cart_count { color: var(--stol-muted); white-space: nowrap; font-size: .85rem; }
.guest-experience .cart-item { display: block; padding: 16px; border: 1px solid #e7e8e0; }
.cart-item-heading { display: flex; justify-content: space-between; gap: 12px; }
.cart-item-heading .cart-item-price { white-space: nowrap; color: var(--stol-green); }
.guest-experience .cart-item p { line-height: 1.5; overflow-wrap: anywhere; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: .85rem; }
.cart-quantity > span { min-width: 26px; text-align: center; font-weight: 700; }
.cart-quantity button { width: 44px; }
.guest-remove { min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--stol-muted); text-decoration: underline; text-underline-offset: 4px; font: inherit; cursor: pointer; }
.guest-add-more { width: 100%; background: transparent; color: var(--stol-green); border: 1px dashed #a4b09b; white-space: normal; text-align: center; }
.guest-recommendation { display: flex; gap: 16px; justify-content: space-between; min-height: 48px; align-items: center; color: var(--stol-green); padding: 12px; border-radius: 8px; background: #eaf0de; text-decoration: none; font-size: .9rem; }
.guest-recommendation strong { white-space: nowrap; }
.checkout-context { margin: 0 0 10px; text-align: center; font-size: .75rem; color: var(--stol-muted); }
.guest-empty-cart { text-align: center; padding: 40px 0; }
.guest-empty-cart h2 { color: var(--stol-green); font-size: 1.3rem; }
.guest-empty-cart p { color: var(--stol-muted); margin-bottom: 28px; }
.empty-cart-symbol, .order-success-mark { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: var(--stol-lime); color: var(--stol-green); align-items: center; justify-content: center; font-size: 1.8rem; }
.order-success-mark { margin: 4px 0 20px; }
.guest-experience .prototype-note { margin: 24px 0; max-width: none; border-radius: 0 12px 12px 0; }
.order-guidance { line-height: 1.5; color: var(--stol-green); }
@media (prefers-reduced-motion: no-preference) { .guest-experience { scroll-behavior: smooth; } }

.cart-bar-notice { margin: 0 0 10px; text-align: center; color: var(--stol-green); font-size: .85rem; }

.cart-badge:empty { display: none; }
.guest-recommendations:empty { display: none; }
.guest-recommendations { margin: 24px 0; }
.guest-recommendations h2 { font-family: inherit; font-size: 1.1rem; margin: 0 0 12px; color: var(--stol-green); }
.guest-recommendation-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; background: #eaf0de; border: 1px solid #d8e3c4; border-radius: 12px; margin: 8px 0; }
.guest-recommendation-card > div { min-width: 0; overflow-wrap: anywhere; }
.guest-recommendation-card h3 { margin: 0; color: var(--stol-green); font-size: .95rem; }
.guest-recommendation-card p { margin: 6px 0 0; font-size: .9rem; }
.guest-recommendation-card .button { padding: 10px 12px; font-size: .85rem; }
.recommendation-notice { color: var(--stol-green); padding: 12px; border-radius: 8px; background: #eaf0de; }

.checkout-summary { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border, #dce1d7); }
.checkout-summary-item { display: flex; justify-content: space-between; gap: 1rem; margin: .8rem 0; }
.checkout-summary-item strong { white-space: nowrap; }
.guest-checkout .guest-recommendations { margin-top: 1.5rem; }

.register-overview { display: grid; gap: 16px; }
.register-overview > h2, .register-overview > p { margin: 0; }
.register-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.register-totals > div { padding: 14px; border: 1px solid #dce1d7; border-radius: 10px; background: #fff; }
.register-totals dt { color: #5b625b; font-size: .85rem; }
.register-totals dd { margin: 6px 0 0; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.register-pending, .register-exception { padding: 14px 16px; border-radius: 10px; background: #fff0e8; color: #602f1d; }
.register-pending p { margin: 8px 0; }
.register-pending ul { margin-bottom: 0; }
.register-orders { display: grid; gap: 12px; }
.register-order { padding: 14px; border: 1px solid #dce1d7; border-radius: 10px; }
.register-order h3 { margin: 0 0 8px; font-size: 1rem; }
.register-order p { margin: 6px 0; }
.register-order ul { margin-bottom: 0; padding-left: 22px; }
.register-order li { padding: 4px 0; overflow-wrap: anywhere; }
.register-handoff-form, .register-close-form { display: grid; gap: 10px; }
.register-event-history summary { min-height: 44px; cursor: pointer; font-weight: 700; }
.register-event-history ol { padding-left: 22px; }
.register-event-history li { margin: 8px 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .register-totals { grid-template-columns: 1fr; } }

.guest-information { max-width: 72rem; margin: 24px auto; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: .875rem; overflow-wrap: anywhere; }
.guest-information a { display: inline-flex; align-items: center; min-height: 44px; }
.guest-information p { flex-basis: 100%; margin: 0; }
.privacy-notice-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.staff-support-card .form-field { margin-bottom: 16px; }
.staff-support-card textarea { width: 100%; }

/* Compact, task-oriented staff and guest controls. */
.staff-page-header { margin-bottom: 16px; }
.staff-page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; overflow-wrap: anywhere; }
.staff-page-header .intro { font-size: 1rem; margin-top: 8px; max-width: none; }
.staff-card { min-width: 0; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.brand-mark { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-mark strong { min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }
.staff-navigation-menu { min-width: 0; }
.staff-navigation-menu > summary { min-height: 44px; cursor: pointer; padding: 12px 8px; }
.staff-nav-group { display: grid; gap: 4px; }
.staff-nav-group p { margin: 16px 0 4px; font-size: .75rem; text-transform: uppercase; color: var(--stol-lime); }
.staff-nav-links a { display: flex; align-items: center; padding: 8px; text-decoration: none; border-radius: 8px; }
.staff-nav-links a:hover { background: #ffffff20; }
.staff-quick-links { display: none; }
.staff-board-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px; gap: 8px; }
.staff-board-status p { font-size: .8rem; }
.staff-board-status .button { font-size: .8rem; padding: 8px; }
.staff-unacknowledged { font-size: .85rem; }
.staff-sound-settings > summary, .order-secondary-actions > summary, .table-sensitive-action > summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--stol-green); font-size: .9rem; font-weight: 600; }
.staff-lane-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.staff-lane-filters button { min-height: 44px; flex-shrink: 0; border: 1px solid #a4b09b; border-radius: 8px; background: white; color: var(--stol-green); padding: 8px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.staff-lane-filters button[aria-pressed="true"] { background: var(--stol-green); color: white; }
.staff-lane-filters span { font-weight: 700; }
.order-secondary-actions { border-top: 1px solid #dce1d5; }
.order-secondary-actions .staff-form { margin: 12px 0; }
.reason-field { display: grid; gap: 8px; min-width: 0; }
.reason-field select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid #9ba49a; border-radius: 8px; font: inherit; }
.inline-transition .button-danger, .staff-form .button-danger { background: #7a2e19; color: white; }
.table-header p { margin: 8px 0; }
.table-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.table-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; background: white; color: var(--stol-green); font-weight: 600; }
.table-tabs a[aria-current="page"] { background: var(--stol-green); color: white; }
.staff-card > .kitchen-order-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.register-handoff-form, .register-close-form { min-width: 0; }
.register-handoff-form input:not([type="hidden"]), .register-close-form input:not([type="hidden"]), .register-close-form textarea { min-width: 0; width: 100%; max-width: 100%; min-height: 44px; padding: 10px; font: inherit; }
.register-overview { overflow-wrap: anywhere; }
.staff-filter-form select { min-height: 44px; max-width: 100%; padding: 8px; border: 1px solid #9ba49a; border-radius: 8px; font: inherit; }
.menu-search { display: grid; gap: 6px; margin-bottom: 12px; }
.menu-search label { font-size: .85rem; font-weight: 600; color: var(--stol-green); }
.menu-search input { min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid #a4b09b; border-radius: 8px; font: inherit; }
.guest-visit-code-gate form { display: grid; gap: 10px; }
.guest-visit-code-gate input[type="text"] { width: 100%; min-height: 48px; padding: 10px; border: 1px solid #a4b09b; border-radius: 8px; font: inherit; font-size: 1.25rem; letter-spacing: .2em; scroll-margin: 20px; }
@media (min-width: 721px) { .staff-navigation-menu > summary { display: none; } }
@media (max-width: 720px) {
  .staff-navigation-menu[open] { grid-column: 1 / -1; grid-row: 2; }
  .staff-navigation-menu:not([open]) { justify-self: end; }
  .staff-navigation-menu[open] > summary { text-align: right; }
  .staff-quick-links { display: flex; grid-column: 1 / -1; gap: 16px; }
  .staff-quick-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .staff-board-status { grid-template-columns: minmax(0, 1fr); }
  .staff-filter-form > div { width: 100%; }
  .staff-filter-form input { width: 100%; }
}
