:root {
  --ink: #f8fbff;
  --muted: #b9c7e4;
  --line: rgba(255, 255, 255, 0.18);
  --surface: rgba(14, 29, 61, 0.94);
  --surface-strong: #10224a;
  --field: #081632;
  --wash: #07132c;
  --teal: #25d6bf;
  --teal-dark: #13a997;
  --coral: #ff5f69;
  --gold: #ffd75c;
  --violet: #a98dff;
  --paid: #103f3c;
  --unpaid: #172343;
  --ready: #483a12;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #020a1f;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  background: linear-gradient(145deg, #020a1f 0%, #061b46 36%, #0b3278 68%, #03112c 100%);
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 15, 36, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.92);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 3px solid var(--coral);
  border-radius: 50%;
  color: #081632;
  background:
    radial-gradient(circle at 30% 28%, #ffffff 0 18%, transparent 19%),
    linear-gradient(135deg, #fff8df, #ffd75c);
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(255, 215, 92, 0.18);
}

.brand p,
.brand h1,
.queue-header p,
.status-band p {
  margin: 0;
}

.brand p {
  color: var(--muted);
  font-size: 0.8rem;
}

.brand h1 {
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  line-height: 1.15;
}

.staff-link,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-form {
  margin: 0;
}

.logout-form .staff-link {
  min-height: 42px;
}

.customer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  width: min(1180px, calc(100% - 28px));
  margin: 22px auto 40px;
  align-items: start;
}

.order-panel,
.receipt-panel,
.status-band,
.queue-header {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.receipt-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
  min-height: 220px;
  overflow: hidden;
}

.receipt-panel::after {
  content: "BINGO";
  position: absolute;
  right: -14px;
  bottom: 14px;
  color: rgba(255, 215, 92, 0.12);
  font-size: 3.2rem;
  font-weight: 900;
  transform: rotate(-12deg);
}

.receipt-panel h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.receipt-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.order-form {
  display: grid;
  gap: 0;
  min-width: 0;
}

.form-intro {
  padding: 24px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 95, 105, 0.14), transparent 42%),
    linear-gradient(315deg, rgba(255, 215, 92, 0.16), transparent 38%);
}

.intro-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-intro h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.12;
}

.form-intro ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.38;
}

.form-intro li::marker {
  color: var(--gold);
  font-weight: 900;
}

.form-section {
  min-width: 0;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.form-section:last-child {
  border-bottom: 0;
}

.form-section.compact {
  display: grid;
  gap: 8px;
}

.customer-details {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(112px, 0.45fr);
  gap: 12px;
}

.customer-details label {
  display: grid;
  gap: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--coral);
  background: #fff8df;
  color: #07132c;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(255, 215, 92, 0.12);
}

.section-title h2 {
  margin: 0;
  font-size: 1.08rem;
}

.section-help {
  margin: -4px 0 14px;
  color: var(--muted);
  line-height: 1.35;
}

label,
legend {
  color: var(--ink);
  font-weight: 700;
}

input[type="text"],
input[type="number"],
input:not([type]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--field);
}

input::placeholder,
textarea::placeholder {
  color: #8fa3cc;
}

textarea {
  resize: vertical;
}

.menu-options {
  display: grid;
  gap: 18px;
}

.menu-category h3 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.drink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
}

.drink-option {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.drink-option input {
  position: absolute;
  opacity: 0;
}

.drink-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(255, 215, 92, 0.14);
  box-shadow: inset 0 0 0 2px rgba(255, 215, 92, 0.18);
}

.drink-option strong {
  line-height: 1.22;
}

.drink-option small {
  color: var(--muted);
  line-height: 1.28;
}

.drink-option span {
  color: var(--gold);
  font-weight: 800;
}

.segmented-options,
.addon-grid,
.pill-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented-options label,
.addon-grid label,
.pill-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  font-weight: 700;
}

.segmented-options label:has(input:checked),
.addon-grid label:has(input:checked),
.pill-checks label:has(input:checked) {
  border-color: var(--gold);
  background: rgba(255, 215, 92, 0.14);
}

.temperature-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.segmented-options .temperature-choice {
  position: relative;
  justify-content: center;
  min-height: 72px;
  padding: 14px;
  overflow: hidden;
}

.temperature-choice input {
  position: absolute;
  opacity: 0;
}

.temperature-choice strong {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.temperature-choice::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.temperature-choice.is-iced {
  background: rgba(37, 214, 191, 0.12);
}

.temperature-choice.is-hot {
  background: rgba(255, 95, 105, 0.13);
}

.temperature-choice.is-frozen {
  background: rgba(169, 141, 255, 0.16);
}

.temperature-choice:has(input:checked)::before {
  border-color: rgba(255, 215, 92, 0.75);
}

.custom-flavor-wrap {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 215, 92, 0.36);
  border-radius: 8px;
  background: rgba(255, 215, 92, 0.1);
  scroll-margin-top: 92px;
}

.custom-flavor-wrap label {
  display: grid;
  gap: 8px;
}

.custom-flavor-wrap p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.flavor-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 6px;
  color: var(--gold);
}

.seat-map-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.seat-map-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.seat-map-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.seat-dropdowns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.seat-dropdowns label {
  display: grid;
  gap: 8px;
}

.seat-map-shell {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(37, 214, 191, 0.1), transparent 22%, transparent 78%, rgba(255, 215, 92, 0.12)),
    #081632;
}

.seat-map-axis {
  display: flex;
  justify-content: space-between;
  min-width: 960px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hall-map {
  display: grid;
  gap: 8px;
  min-width: 960px;
}

.seat-map-header {
  display: grid;
  grid-template-columns: 58px 86px repeat(8, minmax(92px, 1fr));
  gap: 7px;
  align-items: center;
}

.seat-map-header {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.seat-map-header span:not(:first-child) {
  text-align: center;
}

.seat-map-header span:first-child {
  display: block;
}

.hall-row {
  display: grid;
  grid-template-columns: 58px 86px 1fr;
  gap: 8px;
  align-items: center;
}

.row-tables {
  display: grid;
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  gap: 7px;
}

.row-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.row-landmark {
  min-height: 58px;
}

.cash-cage,
.bingo-caller {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 8px;
  color: #07132c;
  background: #fff8df;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 0 0 4px rgba(255, 215, 92, 0.16);
}

.bingo-caller {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(37, 214, 191, 0.28), rgba(255, 215, 92, 0.14)),
    #10224a;
  border-color: var(--teal);
  box-shadow:
    0 0 0 4px rgba(37, 214, 191, 0.16),
    0 0 18px rgba(37, 214, 191, 0.4);
}

.table-spot {
  position: relative;
  min-width: 92px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.table-spot.has-selected-seat {
  border-color: rgba(255, 215, 92, 0.72);
  background: rgba(255, 215, 92, 0.16);
  box-shadow: inset 0 0 0 2px rgba(255, 215, 92, 0.18);
}

.table-body {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 23px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  color: var(--ink);
  background: rgba(10, 26, 59, 0.92);
  font-size: 0.76rem;
  font-weight: 900;
}

.chair-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid #8ea8d8;
  border-radius: 50%;
  background: #f8fbff;
}

.chair-dot:hover,
.chair-dot:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(20, 124, 114, 0.2);
  outline-offset: 1px;
}

.chair-dot.is-selected {
  border-color: var(--gold);
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 215, 92, 0.22);
}

.chair-dot.seat-1 {
  left: 12px;
  top: 5px;
}

.chair-dot.seat-2 {
  right: 12px;
  top: 5px;
}

.chair-dot.seat-3 {
  left: 12px;
  bottom: 5px;
}

.chair-dot.seat-4 {
  right: 12px;
  bottom: 5px;
}

.coffee-list {
  display: grid;
  gap: 10px;
}

.empty-coffee-list {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.coffee-list-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.coffee-list-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.coffee-list-title strong {
  line-height: 1.24;
}

.coffee-list-title span {
  color: var(--gold);
  font-weight: 900;
}

.coffee-list-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.coffee-list-item button {
  justify-self: start;
}

.submit-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(5, 15, 36, 0.96);
  border-top: 1px solid var(--line);
}

.order-total {
  font-size: 1.45rem;
  font-weight: 900;
}

.submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #07132c;
  background: var(--gold);
  font-weight: 800;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #ffe48b;
}

.confirmation {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(20, 124, 114, 0.28);
  border-radius: 8px;
  color: #07132c;
  background: #fff8df;
}

.confirmation > strong {
  display: block;
  margin-bottom: 6px;
}

.confirmation p {
  margin: 0;
  line-height: 1.35;
}

.confirmation-order-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.confirmation-order {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(7, 19, 44, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.confirmation-order-title,
.confirmation-total {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.confirmation-order-title span,
.confirmation-total span {
  font-weight: 900;
}

.confirmation-order-title strong,
.confirmation-total strong {
  color: #07132c;
  white-space: nowrap;
}

.confirmation-order p {
  color: #25324f;
  font-size: 0.9rem;
}

.confirmation-total {
  margin: 12px 0;
  padding-top: 12px;
  border-top: 2px solid rgba(7, 19, 44, 0.16);
  font-size: 1.08rem;
}

.hidden {
  display: none !important;
}

.staff-login-page {
  display: grid;
  place-items: center;
  padding: 20px;
}

.staff-login-shell {
  width: min(460px, 100%);
}

.staff-login-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.staff-login-brand {
  align-items: flex-start;
}

.staff-login-brand h1,
.staff-login-brand p,
.staff-login-help {
  margin: 0;
}

.staff-login-help {
  color: var(--muted);
  line-height: 1.45;
}

.staff-login-form {
  display: grid;
  gap: 14px;
}

.staff-login-form label {
  display: grid;
  gap: 8px;
}

.login-error {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 95, 105, 0.55);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 95, 105, 0.18);
  line-height: 1.35;
}

.staff-login-order-link {
  justify-self: start;
}

.staff-shell {
  width: min(1320px, calc(100% - 28px));
  margin: 20px auto 44px;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.status-band div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.status-band div:last-child {
  border-right: 0;
}

.status-band span {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 900;
}

.status-band p {
  color: var(--muted);
  font-weight: 800;
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 18px;
}

.queue-header h2 {
  margin: 0 0 4px;
}

.queue-header p {
  color: var(--muted);
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.order-queue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.night-log {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.night-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.night-log-header h2,
.night-log-header p {
  margin: 0;
}

.night-log-header p {
  color: var(--muted);
}

.night-log-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.night-log-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.night-log-summary span,
.night-log-row p,
.night-log-empty {
  color: var(--muted);
}

.night-log-summary span {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.night-log-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 1.3rem;
}

.night-log-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.night-log-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.night-log-row-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.night-log-row-title strong {
  line-height: 1.25;
}

.night-log-row-title span {
  color: var(--gold);
  font-weight: 900;
}

.night-log-row p,
.night-log-empty {
  margin: 5px 0 0;
  line-height: 1.35;
}

.quick-order-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 9, 24, 0.78);
}

.quick-order-card {
  width: min(920px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.quick-order-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 34, 74, 0.98);
}

.quick-order-top p,
.quick-order-top h2,
.quick-field-group h3 {
  margin: 0;
}

.quick-order-top p {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-order-top h2 {
  margin-top: 4px;
}

.quick-order-form {
  display: grid;
  gap: 0;
}

.quick-field-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.quick-field-group h3 {
  color: var(--gold);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-quick-grid,
.seat-quick-grid {
  grid-template-columns: 1fr 1fr minmax(112px, 0.45fr);
}

.quick-grid label,
.quick-field-group > label {
  display: grid;
  gap: 8px;
}

.quick-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}

.paid-now-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 215, 92, 0.14);
}

.quick-order-message {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #07132c;
  background: #fff8df;
}

.quick-order-message.is-error {
  color: #fff;
  border-color: rgba(255, 95, 105, 0.6);
  background: rgba(255, 95, 105, 0.18);
}

.quick-order-submit {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(16, 34, 74, 0.98);
}

.quick-order-total {
  margin-right: auto;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 900;
}

.empty-queue {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.order-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--unpaid);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.order-card:hover,
.order-card:focus-visible {
  border-color: var(--gold);
  outline: 0;
  transform: translateY(-1px);
}

.order-card.is-paid,
.order-card.is-making {
  border-color: var(--teal);
  background:
    linear-gradient(135deg, rgba(37, 214, 191, 0.18), transparent 52%),
    var(--paid);
  box-shadow:
    0 0 0 2px rgba(37, 214, 191, 0.16),
    0 0 26px rgba(37, 214, 191, 0.28),
    var(--shadow);
}

.order-card.is-ready {
  border-color: #ffb347;
  background:
    linear-gradient(135deg, rgba(255, 179, 71, 0.25), transparent 52%),
    #53330b;
  box-shadow:
    0 0 0 2px rgba(255, 179, 71, 0.18),
    0 0 28px rgba(255, 179, 71, 0.34),
    var(--shadow);
}

.order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-top h3,
.order-number {
  margin: 0;
}

.order-top h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.order-number {
  color: var(--muted);
  font-weight: 800;
}

.status-pill {
  align-self: start;
  min-width: 82px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--muted);
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
}

.is-unpaid .status-pill {
  background: var(--coral);
}

.is-paid .status-pill,
.is-making .status-pill {
  background: var(--teal);
}

.is-ready .status-pill {
  color: #07132c;
  background: var(--gold);
}

.drink-line {
  font-size: 1.08rem;
  font-weight: 900;
}

.recipe-line {
  padding: 10px 12px;
  border: 1px solid rgba(255, 215, 92, 0.32);
  border-radius: 8px;
  color: #07132c;
  background: #fff8df;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.35;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.custom-line {
  min-height: 22px;
  color: var(--muted);
  line-height: 1.35;
}

.tap-action {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: #07132c;
  background: var(--gold);
  text-align: center;
  font-weight: 900;
}

@media (max-width: 850px) {
  html {
    scroll-padding-top: 74px;
  }

  .customer-shell {
    grid-template-columns: 1fr;
    width: min(720px, calc(100% - 18px));
    margin-top: 12px;
  }

  .receipt-panel {
    position: static;
    order: -1;
    padding: 16px;
  }

  .customer-details {
    grid-template-columns: 1fr;
  }

  .seat-dropdowns {
    grid-template-columns: 1fr;
  }

  .queue-header {
    align-items: stretch;
    flex-direction: column;
  }

  .queue-actions {
    justify-content: stretch;
  }

  .queue-actions > * {
    flex: 1 1 160px;
  }

  .quick-grid,
  .customer-quick-grid,
  .seat-quick-grid {
    grid-template-columns: 1fr;
  }

  .flavor-columns {
    grid-template-columns: 1fr;
  }

  .status-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .night-log-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-band div:nth-child(2) {
    border-right: 0;
  }

  .status-band div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 58px;
  }

  .topbar {
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
  }

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .brand h1 {
    font-size: 0.88rem;
    line-height: 1.1;
  }

  .brand p {
    font-size: 0.66rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-logo {
    width: 35px;
    height: 35px;
    padding: 3px;
  }

  .staff-link,
  .secondary-button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .customer-shell {
    width: calc(100% - 8px);
    margin: 5px auto 18px;
    gap: 7px;
  }

  .order-panel,
  .receipt-panel {
    border-radius: 8px;
  }

  .receipt-panel {
    padding: 9px 10px;
    min-height: 0;
  }

  .receipt-panel::after {
    display: none;
  }

  .receipt-panel h2 {
    margin-bottom: 3px;
    font-size: 0.9rem;
  }

  .receipt-panel p {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .form-intro {
    padding: 11px 12px;
  }

  .intro-kicker {
    margin-bottom: 5px;
    font-size: 0.68rem;
  }

  .form-intro h2 {
    margin-bottom: 8px;
    font-size: 1.08rem;
  }

  .form-intro ol {
    gap: 4px;
    padding-left: 16px;
    font-size: 0.78rem;
    line-height: 1.28;
  }

  .form-section,
  .submit-bar {
    padding-left: 9px;
    padding-right: 9px;
  }

  .form-section {
    padding-top: 11px;
    padding-bottom: 11px;
    scroll-margin-top: 62px;
  }

  .section-title {
    gap: 7px;
    margin-bottom: 7px;
  }

  .section-title span {
    width: 24px;
    height: 24px;
    border-width: 2px;
    font-size: 0.68rem;
    box-shadow: 0 0 0 3px rgba(255, 215, 92, 0.1);
  }

  .section-title h2 {
    font-size: 0.94rem;
  }

  .section-help {
    margin: -2px 0 8px;
    font-size: 0.78rem;
    line-height: 1.28;
  }

  input[type="text"],
  input[type="number"],
  input:not([type]),
  select,
  textarea {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 0.88rem;
  }

  label,
  legend {
    font-size: 0.86rem;
  }

  .customer-details {
    gap: 8px;
  }

  .menu-options {
    gap: 11px;
  }

  .menu-category h3 {
    margin-bottom: 6px;
    font-size: 0.75rem;
  }

  .drink-grid {
    gap: 6px;
  }

  .drink-option {
    min-height: 58px;
    gap: 4px;
    padding: 8px 9px;
  }

  .drink-option strong {
    font-size: 0.9rem;
  }

  .drink-option small {
    font-size: 0.74rem;
    line-height: 1.18;
  }

  .drink-option span {
    font-size: 0.9rem;
  }

  .segmented-options label,
  .addon-grid label,
  .pill-checks label {
    width: 100%;
    min-height: 36px;
    justify-content: flex-start;
    padding: 7px 8px;
    font-size: 0.86rem;
  }

  .segmented-options .temperature-choice {
    justify-content: center;
    min-height: 48px;
    padding: 8px;
  }

  .temperature-choice strong {
    font-size: 1rem;
  }

  .temperature-choice::before {
    inset: 6px;
  }

  .flavor-columns fieldset {
    padding: 8px;
  }

  .custom-flavor-wrap {
    gap: 6px;
    margin-top: 9px;
    padding: 9px;
  }

  .custom-flavor-wrap p {
    font-size: 0.78rem;
  }

  .seat-map-summary {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 9px;
    padding: 8px;
  }

  .seat-map-summary span {
    font-size: 0.7rem;
  }

  .seat-map-summary strong {
    font-size: 0.85rem;
  }

  .seat-dropdowns {
    gap: 8px;
    margin-bottom: 9px;
  }

  .seat-map-summary .secondary-button {
    width: 100%;
  }

  .seat-map-shell {
    margin-inline: -4px;
    padding: 8px 6px;
  }

  .seat-map-axis {
    margin-bottom: 5px;
    font-size: 0.66rem;
  }

  .seat-map-axis,
  .hall-map {
    min-width: 640px;
  }

  .hall-map {
    gap: 5px;
  }

  .seat-map-header {
    grid-template-columns: 38px 54px repeat(8, minmax(60px, 1fr));
    gap: 4px;
    font-size: 0.6rem;
  }

  .hall-row {
    grid-template-columns: 38px 54px 1fr;
    gap: 5px;
  }

  .row-tables {
    grid-template-columns: repeat(8, minmax(60px, 1fr));
    gap: 4px;
  }

  .row-label {
    font-size: 0.62rem;
  }

  .row-landmark {
    min-height: 44px;
  }

  .cash-cage,
  .bingo-caller {
    width: 44px;
    height: 44px;
    font-size: 0.53rem;
  }

  .table-spot {
    min-width: 60px;
    height: 44px;
  }

  .table-body {
    width: 36px;
    height: 17px;
    font-size: 0.6rem;
  }

  .chair-dot {
    width: 13px;
    height: 13px;
    border-width: 1px;
  }

  .chair-dot.seat-1 {
    left: 6px;
    top: 4px;
  }

  .chair-dot.seat-2 {
    right: 6px;
    top: 4px;
  }

  .chair-dot.seat-3 {
    left: 6px;
    bottom: 4px;
  }

  .chair-dot.seat-4 {
    right: 6px;
    bottom: 4px;
  }

  .coffee-list-title {
    flex-direction: column;
    gap: 4px;
  }

  .empty-coffee-list,
  .coffee-list-item {
    padding: 9px;
    font-size: 0.84rem;
  }

  .confirmation {
    margin-top: 10px;
    padding: 10px;
  }

  .confirmation-order {
    padding: 8px;
  }

  .confirmation-order p {
    font-size: 0.78rem;
  }

  .drink-grid,
  .order-queue {
    grid-template-columns: 1fr;
  }

  .night-log-summary {
    grid-template-columns: 1fr;
  }

  .temperature-options {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .submit-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .order-total {
    font-size: 1.05rem;
    text-align: center;
  }

  .submit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  .submit-actions .secondary-button,
  .submit-actions .primary-button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.9rem;
  }

  .quick-order-modal {
    padding: 8px;
  }

  .quick-order-top,
  .quick-order-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-order-total {
    margin-right: 0;
  }
}

@media (max-width: 380px) {
  .brand h1 {
    font-size: 0.8rem;
  }

  .staff-link,
  .secondary-button {
    font-size: 0.78rem;
  }

  .form-intro ol {
    font-size: 0.74rem;
  }

  .drink-option strong,
  .drink-option span {
    font-size: 0.84rem;
  }

  .drink-option small,
  .section-help,
  .custom-flavor-wrap p {
    font-size: 0.7rem;
  }
}
