:root {
  --bg: #f8f1e7;
  --bg-soft: #fff8f1;
  --panel: rgba(255, 250, 244, 0.86);
  --panel-strong: rgba(255, 248, 239, 0.96);
  --line: rgba(74, 45, 29, 0.12);
  --line-strong: rgba(74, 45, 29, 0.24);
  --text: #2f231d;
  --text-soft: #6d5a4e;
  --accent: #b95a32;
  --accent-deep: #8a4123;
  --accent-soft: #efd8c5;
  --accent-alt: #7e8f69;
  --accent-gold: #d8aa68;
  --success: #35745d;
  --danger: #a14536;
  --shadow: 0 22px 60px rgba(77, 43, 25, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --heading-font: "Trebuchet MS", "Gill Sans", "Segoe UI Variable Display", sans-serif;
  --body-font: "Segoe UI Variable Text", "Segoe UI", "Tahoma", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(216, 170, 104, 0.34), transparent 36%),
    radial-gradient(circle at top right, rgba(126, 143, 105, 0.22), transparent 30%),
    linear-gradient(180deg, #f8f1e7 0%, #f2e8db 42%, #efe5d7 100%);
  font-family: var(--body-font);
}

.page {
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  opacity: 0.45;
}

.site-bg--customer {
  background-size: 68px 68px;
}

.site-bg--admin {
  background-size: 58px 58px;
}

.page-shell {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.landing {
  padding-top: 24px;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 120px);
  place-items: center;
  padding-top: 36px;
}

.auth-panel {
  width: min(100%, 520px);
}

.auth-panel h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.04;
}

.auth-panel .section-heading p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

body.page--auth {
  --bg: #ffffff;
  --bg-soft: #fff7f8;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: #ffffff;
  --line: rgba(130, 27, 45, 0.12);
  --line-strong: rgba(130, 27, 45, 0.24);
  --text: #21191b;
  --text-soft: #75686b;
  --accent: #9a2238;
  --accent-deep: #721629;
  --accent-soft: #f7e1e6;
  --danger: #9a2238;
  background:
    radial-gradient(circle at 16% 6%, rgba(154, 34, 56, 0.08), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(154, 34, 56, 0.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fffafa 48%, #ffffff 100%);
}

.page--auth .site-bg--admin {
  background-image:
    linear-gradient(rgba(130, 27, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 27, 45, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: 0.52;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 78%);
}

.page--auth .topbar {
  display: none;
}

.page--auth .brand__mark {
  background: linear-gradient(145deg, #9f263d, #6f1428);
  box-shadow: 0 12px 28px rgba(130, 27, 45, 0.2);
}

.page--auth .topbar__nav a,
.page--auth .topbar__nav button {
  border-color: rgba(130, 27, 45, 0.1);
  background: #ffffff;
  color: var(--accent-deep);
}

.page--auth .auth-shell {
  width: min(1120px, calc(100% - 36px));
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
}

.page--auth .auth-panel--niima {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  width: min(100%, 480px);
  padding: 34px 32px;
  border: 1px solid rgba(130, 27, 45, 0.11);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(70, 26, 35, 0.1);
}

.page--auth .auth-panel--niima::before {
  content: none;
}

.auth-logo-card {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 2px;
  border: 1px solid rgba(130, 27, 45, 0.1);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(70, 26, 35, 0.1);
}

.auth-logo-card__image {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.page--auth .auth-panel--niima .section-heading {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.page--auth .auth-panel--niima .section-heading > div {
  width: 100%;
}

.page--auth .auth-panel--niima .section-heading .eyebrow {
  text-align: center;
}

.page--auth .auth-panel--niima h1 {
  color: #1d1517;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.page--auth .eyebrow {
  color: var(--accent-deep);
}

.page--auth .auth-form,
.page--auth .feedback-box {
  position: relative;
  z-index: 1;
}

.page--auth .input {
  border-color: rgba(130, 27, 45, 0.14);
  background: #ffffff;
}

.page--auth .input:focus {
  border-color: rgba(130, 27, 45, 0.42);
  box-shadow: 0 0 0 4px rgba(130, 27, 45, 0.08);
}

.page--auth .button--primary {
  background: linear-gradient(145deg, #a3263e, #711529);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(130, 27, 45, 0.2);
}

.topbar {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

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

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff8f1;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: var(--shadow);
}

.brand__mark--logo {
  padding: 7px;
  border: 1px solid rgba(130, 27, 45, 0.1);
  background: #ffffff;
  color: transparent;
  letter-spacing: 0;
}

.brand__mark--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 4px;
}

.brand__text strong {
  font-family: var(--heading-font);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.brand__text small {
  color: var(--text-soft);
}

.topbar__nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar__nav a,
.topbar__nav button {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(74, 45, 29, 0.08);
  background: rgba(255, 248, 239, 0.56);
  color: var(--text-soft);
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}

.topbar__nav a:hover,
.topbar__nav button:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 90, 50, 0.22);
  background: rgba(255, 248, 239, 0.9);
}

.nav-form {
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: stretch;
  margin: 20px 0 26px;
}

.hero--compact {
  margin-top: 12px;
}

.hero__copy,
.hero__panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: riseIn 420ms ease both;
}

.hero__copy,
.hero__panel {
  padding: 28px;
}

.panel {
  padding: 26px;
}

.hero__copy h1,
.panel h2,
.flow-card h3,
.menu-card h3,
.order-card h3,
.inventory-card h3 {
  margin: 0;
  font-family: var(--heading-font);
  line-height: 1.04;
}

.hero__copy h1 {
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  max-width: 10.5ch;
}

.hero__lede {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.button-row,
.feature-pills,
.chip-row,
.toolbar,
.form-row,
.form-actions,
.summary-line,
.section-heading,
.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button-row {
  flex-wrap: wrap;
  margin-top: 26px;
}

.feature-pills {
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff9f3;
  box-shadow: 0 16px 30px rgba(185, 90, 50, 0.18);
}

.button--ghost {
  border-color: rgba(74, 45, 29, 0.16);
  background: rgba(255, 248, 239, 0.68);
  color: var(--text);
}

.button--soft {
  background: rgba(126, 143, 105, 0.12);
  border-color: rgba(126, 143, 105, 0.16);
  color: #314132;
}

.button--block {
  width: 100%;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.84);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.mobile-sheet {
  display: none;
}

.mobile-dock {
  --dock-columns: 3;
  display: none;
}

.mobile-dock--four {
  --dock-columns: 4;
}

.hero__panel {
  display: flex;
  align-items: center;
}

.stat-grid,
.flow-grid {
  display: grid;
  gap: 16px;
  width: 100%;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.flow-card,
.payment-card,
.summary-card,
.receipt-card,
.tracking-card,
.order-card,
.inventory-card,
.mini-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 45, 29, 0.1);
  background: rgba(255, 252, 247, 0.8);
}

.stat-card {
  padding: 18px;
}

.stat-card span,
.flow-card__step,
.meta-label,
.list-title,
.field label,
.toggle span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.label-note {
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.stat-card strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 1.45rem;
  font-family: var(--heading-font);
}

.stat-card p,
.flow-card p,
.menu-card p,
.feedback-box,
.payment-card p,
.helper-text,
.empty-state,
.tracking-card p,
.list-row small,
.order-card p,
.inventory-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.flow-card__step {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(185, 90, 50, 0.12);
  color: var(--accent-deep);
  font-weight: 700;
}

.section-heading {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-heading--stacked {
  align-items: flex-start;
}

.toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toolbar--wide {
  width: min(100%, 520px);
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 22px;
}

.panel--sticky {
  position: sticky;
  top: 96px;
}

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

.menu-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 45, 29, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(254, 247, 239, 0.82));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.menu-card:hover,
.order-card:hover,
.inventory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(77, 43, 25, 0.1);
}

.menu-card__top,
.menu-card__bottom,
.list-row,
.order-card__head,
.inventory-card__head,
.inventory-card__footer,
.toolbar-split {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.menu-card__top {
  align-items: flex-start;
}

.menu-card__bottom,
.inventory-card__footer,
.toolbar-split {
  align-items: center;
}

.menu-card__meta {
  display: grid;
  gap: 12px;
}

.menu-card__category {
  display: none;
}

.menu-card__media {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px solid rgba(74, 45, 29, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.menu-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: calc(100% - 20px);
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(130, 27, 45, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(70, 26, 35, 0.1);
  backdrop-filter: blur(8px);
}

.menu-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.menu-card__media--empty {
  min-height: 150px;
  background: linear-gradient(140deg, var(--card-accent, var(--accent)), rgba(255, 255, 255, 0.22));
  color: #fffaf2;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.menu-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.menu-card__hint {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #087c60;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(8, 124, 96, 0.16);
}

.chip-row {
  flex-wrap: wrap;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 45, 29, 0.12);
  background: rgba(255, 248, 239, 0.74);
  color: var(--text-soft);
  cursor: pointer;
}

.chip--active {
  border-color: rgba(185, 90, 50, 0.3);
  background: rgba(185, 90, 50, 0.12);
  color: var(--accent-deep);
}

.stock-tag,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.stock-tag {
  background: rgba(126, 143, 105, 0.12);
  color: #40503d;
}

.stock-tag--low {
  background: rgba(216, 170, 104, 0.2);
  color: #7b541e;
}

.stock-tag--empty {
  background: rgba(161, 69, 54, 0.12);
  color: var(--danger);
}

.status-badge--warm {
  background: rgba(185, 90, 50, 0.14);
  border-color: rgba(185, 90, 50, 0.18);
  color: var(--accent-deep);
}

.status-badge--success {
  background: rgba(53, 116, 93, 0.12);
  border-color: rgba(53, 116, 93, 0.16);
  color: var(--success);
}

.status-badge--calm {
  background: rgba(126, 143, 105, 0.16);
  border-color: rgba(126, 143, 105, 0.18);
  color: #4d5f49;
}

.status-badge--danger {
  background: rgba(161, 69, 54, 0.12);
  border-color: rgba(161, 69, 54, 0.16);
  color: var(--danger);
}

.cart-items,
.order-list,
.inventory-list,
.mini-card-list {
  display: grid;
  gap: 14px;
}

.admin-order-view-toggle {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* The order list and Kanban board both have display rules, so keep the
   native hidden state authoritative when the view toggle changes. */
.page--admin [hidden] {
  display: none !important;
}

.admin-order-view-toggle .button[aria-selected="true"] {
  background: rgba(154, 34, 56, 0.12);
  border-color: rgba(130, 27, 45, 0.2);
  color: var(--accent-deep);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 12px;
  align-items: start;
}

.kanban-board__notice {
  grid-column: 1 / -1;
  padding: 13px 15px;
  border: 1px solid rgba(52, 125, 83, 0.2);
  border-radius: 16px;
  background: rgba(236, 249, 240, 0.86);
  color: #28613f;
  font-size: 0.9rem;
  line-height: 1.5;
}

.kanban-column {
  min-height: 320px;
  padding: 13px;
  border: 1px solid rgba(74, 45, 29, 0.1);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.78);
}

.kanban-column__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 12px;
}

.kanban-column__head h3 {
  margin: 0;
  font-size: 1rem;
}

.kanban-column__count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding-inline: 7px;
  border-radius: 999px;
  background: rgba(154, 34, 56, 0.1);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.kanban-card {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid rgba(74, 45, 29, 0.1);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 7px 17px rgba(70, 26, 35, 0.06);
}

.kanban-card:last-child {
  margin-bottom: 0;
}

.kanban-card__head,
.kanban-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.kanban-card__meta,
.kanban-card__items,
.kanban-card__footer {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.kanban-card__items {
  color: var(--text);
  line-height: 1.5;
}

.kanban-card__footer {
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(74, 45, 29, 0.08);
}

.kanban-card__footer strong {
  color: #28613f;
  font-size: 0.72rem;
}

.kanban-card .button {
  width: 100%;
  min-height: 34px;
  padding-block: 7px;
  font-size: 0.78rem;
}

.workflow-lock,
.workflow-ready {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.workflow-lock {
  border: 1px dashed rgba(130, 27, 45, 0.18);
  background: rgba(255, 248, 239, 0.68);
}

.workflow-ready {
  border: 1px solid rgba(52, 125, 83, 0.2);
  background: rgba(236, 249, 240, 0.7);
}

.workflow-lock strong,
.workflow-ready strong {
  color: var(--accent-deep);
}

@media (max-width: 980px) {
  .kanban-board {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 560px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(74, 45, 29, 0.1);
  background: rgba(255, 252, 247, 0.82);
}

.cart-row__meta {
  display: grid;
  gap: 5px;
}

.cart-row__meta strong,
.meta-value,
.list-row strong,
.order-card strong,
.inventory-card strong {
  font-family: var(--heading-font);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(74, 45, 29, 0.12);
  background: rgba(255, 248, 239, 0.9);
  cursor: pointer;
}

.summary-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.summary-line {
  justify-content: space-between;
}

.summary-line--total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px dashed rgba(74, 45, 29, 0.18);
}

.page--customer .summary-card + #checkoutForm {
  margin-top: 10px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.readonly-payment {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(74, 45, 29, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.readonly-payment strong {
  font-family: var(--heading-font);
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(74, 45, 29, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.input:focus {
  outline: none;
  border-color: rgba(185, 90, 50, 0.42);
  box-shadow: 0 0 0 4px rgba(185, 90, 50, 0.08);
}

.input--textarea {
  min-height: 100px;
  padding: 14px;
  resize: vertical;
}

.input--color {
  padding: 6px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(74, 45, 29, 0.12);
  background: rgba(255, 252, 247, 0.72);
}

.toggle input {
  width: 18px;
  height: 18px;
}

.payment-card,
.feedback-box,
.list-card,
.empty-state,
.tracking-card,
.notice-card {
  padding: 16px 18px;
}

.payment-card {
  display: grid;
  gap: 8px;
}

.notice-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(185, 90, 50, 0.12);
  background: rgba(185, 90, 50, 0.08);
}

.option-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.option-modal[hidden] {
  display: none;
}

.option-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(47, 35, 29, 0.38);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.option-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(100%, 560px);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(74, 45, 29, 0.12);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(252, 241, 230, 0.96));
  box-shadow: 0 28px 80px rgba(47, 35, 29, 0.22);
}

.option-modal__description {
  margin: 10px 0 0;
  max-width: 48ch;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.option-group {
  display: grid;
  gap: 12px;
}

.option-group-stack {
  display: grid;
  gap: 18px;
}

.option-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.option-group strong {
  font-family: var(--heading-font);
}

.option-group__head small {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
}

.option-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.option-choice-grid--addons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  min-width: 0;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 15px;
  border: 1px solid rgba(74, 45, 29, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  cursor: pointer;
}

.option-choice__text {
  min-width: 0;
  padding-inline-end: 4px;
  line-height: 1.25;
}

.option-choice__price {
  min-width: max-content;
  margin-left: 8px;
  padding-left: 4px;
  white-space: nowrap;
  line-height: 1.2;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 900;
}

.option-choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.option-choice:has(input:checked) {
  border-color: rgba(185, 90, 50, 0.36);
  background: rgba(185, 90, 50, 0.1);
  color: var(--accent-deep);
}

.variation-list {
  display: grid;
  gap: 12px;
}

.variation-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(130, 27, 45, 0.1);
  border-radius: 20px;
  background: #ffffff;
}

.variation-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.variation-card__head strong,
.variation-card__head small {
  display: block;
}

.variation-card__head strong {
  font-family: var(--heading-font);
}

.variation-card__head small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.variation-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variation-option-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7f8;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.variation-card__actions {
  margin-top: 0;
}

.item-note,
.cart-row__note {
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
}

.list-row__content {
  display: grid;
  gap: 3px;
}

.helper-text {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.mobile-sheet__meta {
  display: grid;
  gap: 3px;
}

.mobile-sheet__meta span {
  color: var(--text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.mobile-sheet__meta strong {
  font-family: var(--heading-font);
  font-size: 1rem;
}

.mobile-sheet__meta small {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.mobile-sheet__action {
  min-width: 126px;
}

.mobile-sheet.is-empty {
  background: rgba(255, 248, 239, 0.86);
}

.mobile-sheet.is-empty .mobile-sheet__action {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  box-shadow: none;
}

.input--monospace {
  font-family: Consolas, "SFMono-Regular", "Courier New", monospace;
}

.feedback-box {
  border-radius: var(--radius-md);
  border: 1px solid rgba(74, 45, 29, 0.08);
}

.feedback-box--muted {
  background: rgba(255, 251, 246, 0.78);
}

.feedback-box--success {
  background: rgba(53, 116, 93, 0.08);
  border-color: rgba(53, 116, 93, 0.12);
  color: var(--success);
}

.feedback-box--danger {
  background: rgba(161, 69, 54, 0.08);
  border-color: rgba(161, 69, 54, 0.12);
  color: var(--danger);
}

.receipt-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.meta-value {
  font-size: 1.02rem;
}

.barcode-frame {
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(74, 45, 29, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

#receiptBarcode svg {
  width: 100%;
}

.list-card {
  display: grid;
  gap: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 45, 29, 0.08);
  background: rgba(255, 252, 247, 0.82);
}

.list-row {
  align-items: center;
}

.inline-form {
  flex-wrap: wrap;
}

.tracking-card {
  display: grid;
  gap: 18px;
}

.customer-progress {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(185, 90, 50, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.95), rgba(255, 255, 255, 0.92));
}

.customer-progress__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.customer-progress__current {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 1.12rem;
}

.customer-progress__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.customer-progress__live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(53, 122, 92, 0.12);
}

.customer-progress__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.customer-progress__steps {
  display: grid;
  gap: 0;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.customer-progress__step {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  min-height: 68px;
}

.customer-progress__step:not(:last-child)::before {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 14px;
  width: 2px;
  background: rgba(117, 101, 93, 0.18);
  content: "";
}

.customer-progress__marker {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(117, 101, 93, 0.24);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.customer-progress__content {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 2px 0 18px;
}

.customer-progress__content strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.customer-progress__content span,
.customer-progress__content small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.customer-progress__content small {
  color: rgba(117, 101, 93, 0.78);
}

.customer-progress__step--complete .customer-progress__marker,
.customer-progress__step--current .customer-progress__marker {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.customer-progress__step--current .customer-progress__marker {
  box-shadow: 0 0 0 6px rgba(185, 90, 50, 0.14);
}

.customer-progress__step--current .customer-progress__content strong {
  color: var(--accent);
}

.customer-progress__step--pending .customer-progress__content {
  opacity: 0.58;
}

.customer-progress__cancelled {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(177, 48, 64, 0.2);
  border-radius: 12px;
  background: rgba(177, 48, 64, 0.06);
  color: var(--danger);
}

.customer-progress__cancelled span {
  color: var(--muted);
  font-size: 0.8rem;
}

.tracking-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(185, 90, 50, 0.12);
}

.empty-state {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(74, 45, 29, 0.18);
  background: rgba(255, 252, 247, 0.6);
}

.mini-card {
  padding: 16px;
}

.mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.customer-table-hero {
  margin: 16px 0 18px;
}

.customer-table-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(180px, 0.65fr));
  gap: 12px;
}

.table-chip-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(130, 27, 45, 0.1);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(70, 26, 35, 0.07);
}

.table-chip-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 130px;
  height: 130px;
  border: 24px solid rgba(130, 27, 45, 0.055);
  border-radius: 999px;
}

.table-chip-card span,
.table-chip-card p {
  position: relative;
  z-index: 1;
}

.table-chip-card span {
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

.table-chip-card strong {
  position: relative;
  z-index: 1;
  color: #1f1719;
  font-family: var(--heading-font);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1;
}

.table-chip-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.table-chip-card--order strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.table-chip-card--warning {
  background: #fff8f9;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.84fr);
  gap: 22px;
}

.admin-layout__main,
.admin-layout__side {
  min-width: 0;
}

.report-filter {
  align-items: end;
  flex-wrap: wrap;
}

.report-filter__field {
  flex: 1 1 220px;
  min-width: 0;
}

.report-filter__field span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.report-summary-grid .summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.report-summary-grid span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-summary-grid strong {
  color: var(--accent-deep);
  font-size: 1.35rem;
}

.report-summary-grid small {
  color: var(--text-soft);
  line-height: 1.45;
}

.report-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 45, 29, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.report-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(74, 45, 29, 0.08);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  color: var(--accent-deep);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(130, 27, 45, 0.06);
}

.report-table td {
  color: var(--text);
  font-size: 0.9rem;
}

.report-table small {
  color: var(--text-soft);
}

.order-card,
.inventory-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.order-card__head,
.inventory-card__head {
  align-items: flex-start;
}

.order-card__meta,
.inventory-card__meta {
  display: grid;
  gap: 8px;
}

.inventory-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.inventory-card__thumb {
  overflow: hidden;
  display: grid;
  flex: 0 0 74px;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(74, 45, 29, 0.1);
  background: rgba(255, 255, 255, 0.76);
}

.inventory-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.inventory-card__thumb--empty {
  background: linear-gradient(140deg, var(--card-accent, var(--accent)), rgba(255, 255, 255, 0.22));
  color: #fffaf2;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.menu-image-link {
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}

.menu-image-link--empty {
  color: var(--text-soft);
  text-decoration: none;
}

.order-card__grid,
.inventory-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.inventory-card__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.table-qr-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 45, 29, 0.1);
  background: rgba(255, 252, 247, 0.88);
  break-inside: avoid;
}

.table-qr-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.table-qr-card__head h3 {
  margin: 0;
  font-family: var(--heading-font);
}

.page--admin #admin-table-qr > .panel {
  display: grid;
  gap: 22px;
}

.page--admin #admin-table-qr > .panel > .section-heading {
  margin-bottom: 0;
}

.qr-preview {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(74, 45, 29, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.qr-preview img {
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.qr-link {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: underline;
  word-break: break-word;
}

.status-editor,
.stock-editor {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-editor select,
.stock-editor input {
  flex: 1 1 160px;
}

.list-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

#customer-menu,
#customer-checkout,
#customer-tracking,
#admin-orders,
#admin-menu-form,
#admin-inventory,
#admin-report,
#admin-table-qr {
  scroll-margin-top: 24px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .two-column-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .panel--sticky {
    position: static;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-shell,
  .topbar {
    width: min(100% - 24px, 100%);
  }

  .topbar {
    position: sticky;
    top: 0;
    padding: 14px 12px 10px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(248, 241, 231, 0.9);
    border-bottom: 1px solid rgba(74, 45, 29, 0.08);
    backdrop-filter: blur(18px);
  }

  .topbar__nav {
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero__copy,
  .hero__panel,
  .panel {
    padding: 22px;
  }

  .page--customer .hero__panel {
    padding: 16px;
  }

  .hero__copy h1 {
    max-width: 12ch;
  }

  .menu-grid,
  .receipt-grid,
  .tracking-card__grid,
  .order-card__grid,
  .inventory-card__grid,
  .table-qr-grid,
  .report-summary-grid,
  .stat-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .toolbar,
  .inline-form,
  .section-heading {
    align-items: stretch;
  }

  .inline-form .button,
  .toolbar .input,
  .inline-form .input {
    width: 100%;
  }

  .button-row .button,
  .form-actions .button,
  .report-filter .button,
  .status-editor .button,
  .stock-editor .button {
    width: 100%;
  }

  .option-modal {
    align-items: end;
    padding: 12px;
  }

  .option-modal__panel {
    width: 100%;
    max-height: calc(100vh - 28px);
    padding: 20px;
    border-radius: 24px;
  }

  .option-choice-grid,
  .option-choice-grid--addons {
    grid-template-columns: 1fr;
  }

  .mobile-sheet {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 78px);
    z-index: 29;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    border: 1px solid rgba(74, 45, 29, 0.1);
    background: rgba(255, 248, 239, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 38px rgba(77, 43, 25, 0.16);
  }

  .page--customer .mobile-sheet {
    background:
      linear-gradient(145deg, rgba(255, 248, 239, 0.96), rgba(252, 235, 220, 0.94));
  }

  .page--admin .mobile-sheet {
    background:
      linear-gradient(145deg, rgba(255, 248, 239, 0.96), rgba(236, 243, 230, 0.94));
  }

  .mobile-dock {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(var(--dock-columns), minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(74, 45, 29, 0.1);
    background: rgba(255, 248, 239, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 36px rgba(77, 43, 25, 0.18);
  }

  .mobile-dock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-soft);
    font-weight: 700;
    text-align: center;
  }

  body {
    padding-bottom: 178px;
  }

  #customer-menu,
  #customer-checkout,
  #customer-tracking,
  #admin-orders,
  #admin-menu-form,
  #admin-inventory,
  #admin-table-qr {
    scroll-margin-top: 92px;
  }
}

@media (max-width: 540px) {
  .page-shell,
  .topbar {
    width: min(100% - 20px, 100%);
  }

  .brand__text small {
    display: none;
  }

  .topbar {
    gap: 12px;
    padding: 12px 10px 10px;
  }

  .topbar__nav a,
  .topbar__nav button {
    width: 100%;
    text-align: center;
    padding: 11px 14px;
  }

  .hero {
    gap: 14px;
    margin: 14px 0 18px;
  }

  .hero__copy,
  .hero__panel,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .hero__copy h1 {
    max-width: none;
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .hero__lede {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .button-row,
  .form-row,
  .form-actions,
  .status-editor,
  .stock-editor,
  .toolbar-split,
  .inline-form,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row .button {
    width: 100%;
  }

  .feature-pills,
  .chip-row {
    gap: 8px;
  }

  .page--customer .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .page--customer .chip-row::-webkit-scrollbar,
  .page--admin .stat-grid::-webkit-scrollbar {
    display: none;
  }

  .page--customer .chip {
    flex: 0 0 auto;
  }

  .chip,
  .badge-pill,
  .status-badge,
  .stock-tag {
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  .menu-card__top,
  .menu-card__bottom,
  .order-card__head,
  .inventory-card__head,
  .inventory-card__footer,
  .table-qr-card__head {
    flex-direction: column;
  }

  .menu-card,
  .order-card,
  .inventory-card,
  .receipt-card,
  .tracking-card {
    padding: 16px;
  }

  .menu-card__media {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .page--admin .stat-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .page--admin .stat-card {
    min-width: 220px;
    scroll-snap-align: start;
  }

  .page--customer .mini-card-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .page--customer .summary-card {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(251, 243, 235, 0.82));
  }

  .cart-row {
    grid-template-columns: 1fr;
  }

  .cart-row > div:last-child {
    display: grid;
    gap: 10px;
  }

  .qty-controls {
    justify-content: space-between;
    width: 100%;
  }

  .qty-controls button {
    width: 42px;
    height: 42px;
  }

  .list-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-dot {
    display: none;
  }

  .barcode-frame {
    padding: 12px;
  }

  .barcode-frame svg {
    min-width: 360px;
  }

  .mini-card {
    padding: 14px;
  }

  .mobile-sheet {
    left: 10px;
    right: 10px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 74px);
    padding: 10px 12px;
    border-radius: 20px;
  }

  .mobile-sheet__action {
    min-width: 112px;
    padding: 0 16px;
  }
}

@media (max-width: 380px) {
  .page-shell,
  .topbar {
    width: min(100% - 14px, 100%);
  }

  .brand__mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .hero__copy,
  .hero__panel,
  .panel {
    padding: 16px;
    border-radius: 20px;
  }

  .mobile-dock {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .mobile-sheet {
    left: 8px;
    right: 8px;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 72px);
    gap: 10px;
  }

  .mobile-dock a {
    font-size: 0.8rem;
    min-height: 42px;
    padding: 0 8px;
  }

  .mobile-sheet__meta strong {
    font-size: 0.92rem;
  }

  .mobile-sheet__meta small {
    font-size: 0.8rem;
  }

  .mobile-sheet__action {
    min-width: 104px;
    font-size: 0.86rem;
  }

  .page--customer .menu-grid {
    gap: 16px 10px;
  }

  .page--customer .menu-card h3 {
    font-size: 0.88rem;
  }

  .page--customer .menu-card__category {
    font-size: 0.75rem;
  }

  .page--customer .menu-card__price {
    font-size: 0.86rem;
  }

  .page--customer .menu-card__bottom {
    min-height: 32px;
  }

  .page--customer .menu-card__hint {
    flex: 0 0 60px;
    min-width: 60px;
    height: 32px;
    padding: 0 12px;
    font-size: 0.76rem;
  }
}

body.page--customer {
  --bg: #ffffff;
  --bg-soft: #fff7f8;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: #ffffff;
  --line: rgba(130, 27, 45, 0.12);
  --line-strong: rgba(130, 27, 45, 0.24);
  --text: #21191b;
  --text-soft: #74686b;
  --accent: #9a2238;
  --accent-deep: #721629;
  --accent-soft: #f7e1e6;
  --accent-alt: #9a2238;
  --accent-gold: #d9b2ba;
  --danger: #9a2238;
  --shadow: 0 22px 54px rgba(70, 26, 35, 0.08);
  background:
    radial-gradient(circle at 12% 2%, rgba(154, 34, 56, 0.08), transparent 30%),
    radial-gradient(circle at 90% 22%, rgba(154, 34, 56, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fffafa 48%, #ffffff 100%);
}

.page--customer .site-bg--customer {
  background-image:
    linear-gradient(rgba(130, 27, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 27, 45, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 78%);
}

.page--customer .topbar {
  width: min(1220px, calc(100% - 36px));
  margin-top: 12px;
  min-height: 74px;
  padding: 10px 14px;
  justify-content: flex-start;
  border: 1px solid rgba(130, 27, 45, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(70, 26, 35, 0.08);
}

.page--customer .brand {
  gap: 12px;
}

.page--customer .topbar__nav:empty {
  display: none;
}

.page--customer .brand__mark {
  background: linear-gradient(145deg, #9f263d, #6f1428);
  box-shadow: 0 12px 28px rgba(130, 27, 45, 0.2);
}

.page--customer .brand__mark--logo {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(130, 27, 45, 0.12);
}

.page--customer .brand__mark--logo img {
  width: 31px;
  height: 31px;
}

.page--customer .brand__text {
  align-content: center;
  gap: 3px;
  line-height: 1.2;
}

.page--customer .brand__text strong {
  color: #1d1517;
}

.page--customer .topbar__nav a,
.page--customer .topbar__nav button {
  border-color: rgba(130, 27, 45, 0.1);
  background: #ffffff;
  color: var(--accent-deep);
}

.page--customer .topbar__nav a:hover,
.page--customer .topbar__nav button:hover {
  border-color: rgba(130, 27, 45, 0.26);
  background: #fff6f8;
}

.page--customer .hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr);
  gap: 18px;
}

.page--customer .hero__copy,
.page--customer .hero__panel,
.page--customer .panel {
  border-color: rgba(130, 27, 45, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(70, 26, 35, 0.08);
  backdrop-filter: blur(18px);
}

.page--customer .hero__copy {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.page--customer .hero__copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #9a2238, #721629);
}

.page--customer .hero__copy::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -96px;
  width: 240px;
  height: 240px;
  border: 36px solid rgba(154, 34, 56, 0.07);
  border-radius: 999px;
}

.page--customer .hero__copy > * {
  position: relative;
  z-index: 1;
}

.page--customer .hero__copy h1 {
  max-width: 12.5ch;
  color: #1c1517;
  letter-spacing: -0.035em;
}

.page--customer .hero__lede {
  max-width: 58ch;
}

.page--customer .eyebrow {
  color: var(--accent-deep);
}

.page--customer .panel h2 {
  color: #201719;
}

.page--customer .two-column-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.75fr);
}

.page--customer .menu-card,
.page--customer .cart-row,
.page--customer .receipt-card,
.page--customer .tracking-card,
.page--customer .list-card,
.page--customer .mini-card,
.page--customer .summary-card,
.page--customer .payment-card {
  border-color: rgba(130, 27, 45, 0.1);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(70, 26, 35, 0.055);
}

.page--customer .menu-card {
  border-radius: 24px;
  padding: 16px;
}

.page--customer .menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 27, 45, 0.24);
  box-shadow: 0 18px 38px rgba(70, 26, 35, 0.11);
}

.page--customer .menu-card__media {
  border-color: rgba(130, 27, 45, 0.08);
  background: #fff8f9;
}

.page--customer .menu-card__price,
.page--customer .item-note,
.page--customer .cart-row__note,
.page--customer .menu-image-link {
  color: var(--accent-deep);
}

.page--customer .menu-card__hint {
  min-width: 62px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(130, 27, 45, 0.18);
  background: #fff2f5;
  color: var(--accent-deep);
  font-size: 0.82rem;
  box-shadow: none;
}

.page--customer .menu-card__media--empty {
  background: linear-gradient(145deg, #a82a42, #76172b);
}

.page--customer .button--primary {
  background: linear-gradient(145deg, #a3263e, #711529);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(130, 27, 45, 0.2);
}

.page--customer .button--soft {
  border-color: rgba(130, 27, 45, 0.14);
  background: rgba(154, 34, 56, 0.08);
  color: var(--accent-deep);
}

.page--customer .button--ghost {
  border-color: rgba(130, 27, 45, 0.12);
  background: #ffffff;
  color: var(--accent-deep);
}

.page--customer .input {
  border-color: rgba(130, 27, 45, 0.14);
  background: #ffffff;
}

.page--customer .readonly-payment {
  border-color: rgba(130, 27, 45, 0.14);
  background: #fff7f8;
  color: var(--accent-deep);
}

.page--customer .input:focus {
  border-color: rgba(130, 27, 45, 0.42);
  box-shadow: 0 0 0 4px rgba(130, 27, 45, 0.08);
}

.page--customer .chip {
  border-color: rgba(130, 27, 45, 0.12);
  background: #ffffff;
}

.page--customer .chip--active {
  border-color: rgba(130, 27, 45, 0.34);
  background: #8d1d32;
  color: #ffffff;
}

.page--customer .badge-pill {
  border-color: rgba(130, 27, 45, 0.12);
  background: #fff7f8;
  color: var(--accent-deep);
}

.page--customer .summary-card {
  background:
    linear-gradient(145deg, rgba(130, 27, 45, 0.055), transparent 42%),
    #ffffff;
}

.page--customer .summary-line--total {
  border-top-color: rgba(130, 27, 45, 0.18);
}

.page--customer .summary-line--total strong {
  color: var(--accent-deep);
  font-size: 1.25rem;
}

.page--customer .notice-card,
.page--customer .feedback-box--muted {
  border-color: rgba(130, 27, 45, 0.1);
  background: #fff7f8;
}

.page--customer .feedback-box--danger {
  background: rgba(154, 34, 56, 0.08);
  border-color: rgba(154, 34, 56, 0.14);
  color: var(--accent-deep);
}

.page--customer .status-badge--warm {
  background: rgba(154, 34, 56, 0.11);
  border-color: rgba(154, 34, 56, 0.14);
  color: var(--accent-deep);
}

.page--customer .payment-card {
  border-left: 4px solid var(--accent-deep);
}

.page--customer .option-modal__backdrop {
  background: rgba(33, 25, 27, 0.46);
}

.page--customer .option-modal__panel {
  border-color: rgba(130, 27, 45, 0.12);
  background: #ffffff;
}

.page--customer .option-modal__description {
  color: #6f6266;
}

.page--customer .option-choice {
  border-color: rgba(130, 27, 45, 0.12);
  background: #fffafa;
}

.page--customer .option-choice input {
  accent-color: var(--accent-deep);
}

.page--customer .option-choice:has(input:checked) {
  border-color: rgba(130, 27, 45, 0.38);
  background: rgba(154, 34, 56, 0.09);
  color: var(--accent-deep);
}

.page--admin .option-modal__panel {
  background: #ffffff;
}

.page--admin .option-group__head {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .page--customer .hero,
  .page--customer .two-column-layout {
    grid-template-columns: 1fr;
  }

  .page--customer .two-column-layout > *,
  .page--admin .admin-layout > * {
    min-width: 0;
  }
}

@media (max-width: 820px) {
  body.page--customer {
    background: #ffffff;
    padding-bottom: 188px;
  }

  .page--customer .topbar {
    width: min(100% - 18px, 100%);
    margin-top: 0;
    gap: 8px;
    padding: 10px 12px;
    justify-content: flex-start;
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, 0.96);
  }

  .page--customer .topbar__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page--customer .topbar__nav a,
  .page--customer .topbar__nav button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .page--customer .brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .page--customer .brand__mark--logo {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 16px;
  }

  .page--customer .brand__mark--logo img {
    width: 30px;
    height: 30px;
  }

  .page--customer .brand__text strong {
    font-size: 1rem;
  }

  .page--customer .hero {
    margin-top: 12px;
  }

  .page--customer .customer-table-hero {
    margin: 12px 0 16px;
  }

  .page--customer .customer-table-hero__content {
    grid-template-columns: 1fr;
  }

  .page--customer .table-chip-card {
    min-height: 104px;
    padding: 17px;
    border-radius: 24px;
  }

  .page--customer .hero__copy {
    min-height: 0;
    padding: 22px 22px 24px 26px;
    border-radius: 28px;
  }

  .page--customer .hero__copy h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .page--customer .hero__panel {
    padding: 14px;
    border-radius: 24px;
  }

  .page--customer .section-heading {
    gap: 14px;
  }

  .page--customer .toolbar--wide {
    width: 100%;
  }

  .page--customer .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px 16px;
  }

  .page--customer .menu-card {
    align-content: stretch;
    grid-template-rows: auto 54px 82px;
    height: 100%;
    gap: 9px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .page--customer .menu-card:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: none;
  }

  .page--customer .menu-card:focus-visible {
    outline: 3px solid rgba(130, 27, 45, 0.2);
    outline-offset: 6px;
    border-radius: 18px;
  }

  .page--customer .menu-card--disabled {
    cursor: not-allowed;
    opacity: 0.58;
  }

  .page--customer .menu-card__media {
    aspect-ratio: 1 / 1;
    margin-bottom: 2px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(70, 26, 35, 0.08);
  }

  .page--customer .menu-card__badge {
    top: 8px;
    left: 8px;
    min-height: 24px;
    max-width: calc(100% - 16px);
    padding: 0 9px;
    background: rgba(255, 250, 241, 0.9);
    color: var(--accent-deep);
    font-size: 0.66rem;
  }

  .page--customer .menu-card__top {
    display: block;
    align-self: stretch;
    min-width: 0;
    min-height: 54px;
  }

  .page--customer .menu-card__meta {
    gap: 3px;
    height: 100%;
    min-width: 0;
  }

  .page--customer .menu-card__category {
    display: block;
    min-height: 1.1rem;
    margin-bottom: 2px;
    color: #9b9093;
    font-size: 0.8rem;
    font-weight: 800;
  }

  .page--customer .menu-card h3 {
    display: -webkit-box;
    min-height: 2.35em;
    margin: 0;
    overflow: hidden;
    color: #2b2326;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .page--customer .menu-card p,
  .page--customer .menu-card .toolbar-split {
    display: none;
  }

  .page--customer .menu-card__bottom {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    min-height: 82px;
    margin-top: 2px;
    width: 100%;
  }

  .page--customer .menu-card__price {
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }

  .page--customer .menu-card__hint {
    min-width: 62px;
    height: 48px;
  }

  .page--customer .panel {
    padding: 18px;
    border-radius: 26px;
  }

  .page--customer .mobile-sheet {
    left: 14px;
    right: 14px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 74px);
    padding: 9px 12px;
    border-radius: 20px;
    border-color: rgba(130, 27, 45, 0.11);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(70, 26, 35, 0.14);
  }

  .page--customer .mobile-sheet__meta {
    gap: 1px;
  }

  .page--customer .mobile-sheet__meta span {
    font-size: 0.68rem;
  }

  .page--customer .mobile-sheet__meta strong {
    font-size: 0.92rem;
  }

  .page--customer .mobile-sheet__meta small {
    font-size: 0.78rem;
  }

  .page--customer .mobile-sheet__action {
    min-width: 104px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .page--customer .mobile-sheet__meta span {
    color: var(--accent-deep);
  }

  .page--customer .mobile-dock--customer {
    left: 14px;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 6px;
    padding: 8px;
    border-radius: 28px;
    border-color: rgba(130, 27, 45, 0.1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 42px rgba(70, 26, 35, 0.16);
  }

  .page--customer .mobile-dock__link {
    display: grid;
    grid-template-rows: 21px auto;
    place-items: center;
    gap: 2px;
    min-height: 54px;
    padding: 7px 5px 6px;
    border-radius: 20px;
    background: transparent;
    color: #7a6a6e;
    font-size: 0.74rem;
    font-weight: 800;
  }

  .page--customer .mobile-dock__link:focus-visible,
  .page--customer .mobile-dock__link:hover {
    outline: none;
    background: #fff2f5;
    color: var(--accent-deep);
  }

  .page--customer .dock-icon {
    position: relative;
    display: block;
    width: 21px;
    height: 21px;
    color: currentColor;
  }

  .page--customer .dock-icon--menu::before,
  .page--customer .dock-icon--menu::after {
    content: "";
    position: absolute;
    left: 3px;
    width: 17px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 8px 0 currentColor;
  }

  .page--customer .dock-icon--menu::before {
    top: 2px;
  }

  .page--customer .dock-icon--menu::after {
    top: 18px;
    box-shadow: none;
  }

  .page--customer .dock-icon--checkout::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 15px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 4px 4px 7px 7px;
  }

  .page--customer .dock-icon--checkout::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 7px;
    height: 8px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }

  .page--customer .dock-icon--tracking::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 999px;
  }

  .page--customer .dock-icon--tracking::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 9px;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
  }
}

@media (max-width: 540px) {
  .page--customer .page-shell {
    width: min(100% - 18px, 100%);
  }

  .page--customer .brand__mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .page--customer .brand__mark--logo {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 15px;
  }

  .page--customer .brand__mark--logo img {
    width: 29px;
    height: 29px;
  }

  .page--customer .topbar__nav a,
  .page--customer .topbar__nav button {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .page--customer .hero__copy,
  .page--customer .panel {
    padding: 17px;
  }

  .page--customer .customer-table-hero__content {
    gap: 10px;
  }

  .page--customer .table-chip-card {
    min-height: 96px;
  }

  .page--customer .table-chip-card strong {
    font-size: clamp(1.65rem, 9vw, 2.45rem);
  }

  .page--customer .table-chip-card--order strong {
    font-size: 1rem;
  }

  .page--customer .hero__copy {
    padding-left: 22px;
  }

  .page--customer .hero__lede,
  .page--customer .menu-card p,
  .page--customer .helper-text,
  .page--customer .empty-state {
    font-size: 0.93rem;
  }

  .page--customer .menu-card {
    align-content: stretch;
    grid-template-rows: auto 54px 82px;
    height: 100%;
    gap: 9px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .page--customer .menu-card:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: none;
  }

  .page--customer .menu-card:focus-visible {
    outline: 3px solid rgba(130, 27, 45, 0.2);
    outline-offset: 6px;
    border-radius: 18px;
  }

  .page--customer .menu-card--disabled {
    cursor: not-allowed;
    opacity: 0.58;
  }

  .page--customer .menu-card__media {
    aspect-ratio: 1 / 1;
    margin-bottom: 2px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(70, 26, 35, 0.08);
  }

  .page--customer .menu-card__top {
    display: block;
    align-self: stretch;
    min-width: 0;
    min-height: 54px;
  }

  .page--customer .menu-card__meta {
    gap: 3px;
    height: 100%;
    min-width: 0;
  }

  .page--customer .menu-card__category {
    display: block;
    min-height: 1.1rem;
    margin-bottom: 2px;
    color: #9b9093;
    font-size: 0.8rem;
    font-weight: 800;
  }

  .page--customer .menu-card h3 {
    display: -webkit-box;
    min-height: 2.35em;
    margin: 0;
    overflow: hidden;
    color: #2b2326;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .page--customer .menu-card p,
  .page--customer .menu-card .toolbar-split {
    display: none;
  }

  .page--customer .menu-card__bottom {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    min-height: 82px;
    margin-top: 2px;
    width: 100%;
  }

  .page--customer .menu-card__price {
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }

  .page--customer .menu-card__hint {
    min-width: 62px;
    height: 48px;
  }

  .page--customer .chip-row {
    margin: 0 -2px;
  }

  .page--customer .cart-row {
    padding: 14px;
    border-radius: 20px;
  }

  .page--customer .qty-controls button {
    border-color: rgba(130, 27, 45, 0.12);
    background: #fff5f7;
    color: var(--accent-deep);
  }

  .page--customer .mobile-sheet {
    left: 10px;
    right: 10px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 74px);
  }

  .page--customer .mobile-dock--customer {
    left: 10px;
    right: 10px;
  }
}

.upload-dropzone {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 14px;
  border: 1.5px dashed rgba(130, 27, 45, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(130, 27, 45, 0.045), transparent 46%),
    #ffffff;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible,
.upload-dropzone.is-dragging {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(130, 27, 45, 0.42);
  background: #fff6f8;
}

.upload-dropzone__preview {
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 20px;
  background: linear-gradient(145deg, #9d263c, #721629);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.upload-dropzone__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-dropzone__preview.has-image {
  background: #ffffff;
  border: 1px solid rgba(130, 27, 45, 0.1);
}

.upload-dropzone__copy {
  display: grid;
  gap: 6px;
}

.upload-dropzone__copy strong {
  font-family: var(--heading-font);
  color: #21191b;
}

.upload-dropzone__copy span {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.upload-clear {
  width: fit-content;
}

body.page--admin {
  --bg: #ffffff;
  --bg-soft: #fff7f8;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: #ffffff;
  --line: rgba(130, 27, 45, 0.12);
  --line-strong: rgba(130, 27, 45, 0.24);
  --text: #21191b;
  --text-soft: #74686b;
  --accent: #9a2238;
  --accent-deep: #721629;
  --accent-soft: #f7e1e6;
  --accent-alt: #9a2238;
  --accent-gold: #d9b2ba;
  --danger: #9a2238;
  --shadow: 0 22px 54px rgba(70, 26, 35, 0.08);
  background:
    radial-gradient(circle at 10% 0%, rgba(154, 34, 56, 0.08), transparent 30%),
    radial-gradient(circle at 95% 18%, rgba(154, 34, 56, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fffafa 52%, #ffffff 100%);
}

.page--admin .site-bg--admin {
  background-image:
    linear-gradient(rgba(130, 27, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 27, 45, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: 0.54;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 80%);
}

.page--admin .topbar {
  width: min(1220px, calc(100% - 36px));
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(130, 27, 45, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(70, 26, 35, 0.08);
}

.page--admin .brand__mark {
  background: linear-gradient(145deg, #9f263d, #6f1428);
  box-shadow: 0 12px 28px rgba(130, 27, 45, 0.2);
}

.page--admin .topbar__nav a,
.page--admin .topbar__nav button {
  border-color: rgba(130, 27, 45, 0.1);
  background: #ffffff;
  color: var(--accent-deep);
}

.page--admin .topbar__nav a:hover,
.page--admin .topbar__nav button:hover {
  border-color: rgba(130, 27, 45, 0.26);
  background: #fff6f8;
}

.page--admin .topbar {
  display: none;
}

.admin-pos-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 18px;
  width: min(1660px, calc(100% - 28px));
  margin: 16px auto 48px;
  align-items: start;
}

.admin-pos-workspace {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.admin-view {
  display: none;
  min-width: 0;
}

.admin-view.is-active {
  display: grid;
  gap: 24px;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
  padding: 22px;
  border: 1px solid rgba(130, 27, 45, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(70, 26, 35, 0.08);
}

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

.admin-sidebar__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  border: 1px solid rgba(130, 27, 45, 0.1);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(70, 26, 35, 0.1);
}

.admin-sidebar__mark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.admin-sidebar__brand strong,
.admin-sidebar__brand small {
  display: block;
}

.admin-sidebar__brand strong {
  font-family: var(--heading-font);
  color: var(--text);
}

.admin-sidebar__brand small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.admin-sidebar__nav {
  display: grid;
  gap: 9px;
  margin-top: 30px;
}

.admin-sidebar__nav a,
.admin-sidebar__logout button {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.admin-sidebar__nav a:hover,
.admin-sidebar__nav a:focus-visible,
.admin-sidebar__nav a.is-active,
.admin-sidebar__logout button:hover,
.admin-sidebar__logout button:focus-visible {
  outline: none;
  transform: translateX(3px);
  border-color: rgba(130, 27, 45, 0.12);
  background: #fff2f5;
  color: var(--accent-deep);
}

.admin-sidebar__nav a.is-active {
  border-color: rgba(130, 27, 45, 0.18);
  background: linear-gradient(145deg, #fff7f8, #fff0f3);
  box-shadow: inset 4px 0 0 rgba(130, 27, 45, 0.88);
}

.admin-sidebar__logout {
  margin: auto 0 0;
}

.admin-sidebar__logout button {
  width: 100%;
  justify-content: center;
  border-color: rgba(130, 27, 45, 0.12);
  background: #fff7f8;
  color: var(--accent-deep);
}

.admin-pos-shell .hero {
  margin: 0;
}

.admin-view--menu.is-active {
  --admin-pos-panel-height: calc(100vh - 48px);
  gap: 16px;
}

.admin-view--menu .hero--compact {
  display: none;
}

.admin-cashier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 370px);
  gap: 16px;
  align-items: start;
  min-height: var(--admin-pos-panel-height, auto);
}

.admin-cashier-menu,
.admin-order-detail {
  min-width: 0;
}

.admin-cashier-menu {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: var(--admin-pos-panel-height, auto);
  max-height: var(--admin-pos-panel-height, none);
  overflow: hidden;
}

.admin-order-detail {
  position: sticky;
  top: 16px;
  max-height: var(--admin-pos-panel-height, none);
  overflow-y: auto;
  scrollbar-width: thin;
}

.admin-product-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.admin-category-row .chip {
  flex: 0 0 auto;
  background: #ffffff;
  white-space: nowrap;
}

.cashier-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  align-content: start;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 10px 12px 2px;
  scrollbar-color: rgba(130, 27, 45, 0.32) transparent;
  scrollbar-width: thin;
}

.cashier-menu-grid::-webkit-scrollbar,
.admin-order-detail::-webkit-scrollbar {
  width: 8px;
}

.cashier-menu-grid::-webkit-scrollbar-thumb,
.admin-order-detail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(130, 27, 45, 0.24);
}

.cashier-menu-grid::-webkit-scrollbar-track,
.admin-order-detail::-webkit-scrollbar-track {
  background: transparent;
}

.cashier-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(130, 27, 45, 0.1);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(70, 26, 35, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cashier-card:hover {
  transform: translateY(-3px);
  border-color: rgba(130, 27, 45, 0.22);
  box-shadow: 0 18px 38px rgba(70, 26, 35, 0.11);
}

.cashier-card--disabled {
  opacity: 0.58;
}

.cashier-card__thumb {
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.78;
  border-radius: 22px;
  border: 1px solid rgba(130, 27, 45, 0.09);
  background: rgba(255, 247, 248, 0.72);
}

.cashier-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cashier-card__thumb--empty {
  background: linear-gradient(145deg, var(--card-accent, #9a2238), #721629);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.cashier-card__body {
  display: grid;
  gap: 8px;
}

.cashier-card__category,
.cashier-card__stock {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.cashier-card h3 {
  display: -webkit-box;
  min-height: 2.15em;
  margin: 0;
  overflow: hidden;
  font-family: var(--heading-font);
  font-size: 1rem;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.cashier-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cashier-card__footer strong {
  color: var(--accent-deep);
  font-family: var(--heading-font);
  white-space: nowrap;
}

.cashier-card__add {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.84rem;
  font-weight: 900;
}

.cashier-card__add:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

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

.admin-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(130, 27, 45, 0.1);
  border-radius: 18px;
  background: #ffffff;
}

.admin-cart-row > strong {
  grid-column: 1 / -1;
  color: var(--accent-deep);
  font-family: var(--heading-font);
}

.admin-cart-row__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-cart-row__meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-cart-row__meta span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.admin-cart-row__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-cart-row__qty button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(130, 27, 45, 0.14);
  border-radius: 999px;
  background: #fff7f8;
  color: var(--accent-deep);
  cursor: pointer;
  font-weight: 900;
}

.admin-cart-summary {
  gap: 10px;
  padding: 16px;
  box-shadow: none;
}

.admin-payment-box {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(130, 27, 45, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(130, 27, 45, 0.045), transparent 48%),
    #ffffff;
}

.admin-payment-box--inline {
  margin-top: 4px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px dashed rgba(130, 27, 45, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-payment-box--inline .field {
  gap: 7px;
}

.admin-payment-box--inline .helper-text {
  margin: 0;
}

.admin-payment-box__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-payment-box__head h3 {
  margin: 0;
  font-family: var(--heading-font);
}

.admin-payment-box__head small {
  color: var(--text-soft);
  font-weight: 700;
}

.admin-payment-box__total {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px dashed rgba(130, 27, 45, 0.18);
  border-radius: 18px;
  background: #fffafa;
}

.admin-payment-box__total span {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-payment-box__total strong {
  color: var(--accent-deep);
  font-family: var(--heading-font);
  font-size: 1.12rem;
}

.admin-payment-status--paid {
  background: rgba(25, 135, 84, 0.1);
  color: #12623d;
}

.admin-payment-status--pending {
  background: rgba(154, 34, 56, 0.11);
  color: var(--accent-deep);
}

.admin-payment-status--danger {
  background: rgba(154, 34, 56, 0.08);
  color: var(--accent-deep);
}

.order-payment-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 14px;
  border: 1px solid rgba(130, 27, 45, 0.1);
  border-radius: 18px;
  background: #fffafa;
}

.order-payment-bar div {
  display: grid;
  gap: 3px;
}

.order-payment-bar small {
  color: var(--text-soft);
  font-weight: 700;
}

.order-payment-bar .order-payment-bar__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 300px;
  flex-wrap: wrap;
}

.order-payment-bar .button {
  min-height: 38px;
  padding-inline: 16px;
  white-space: nowrap;
}

.order-payment-bar .button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.page--admin .admin-product-board .inventory-list {
  display: block;
}

.inventory-table {
  overflow: hidden;
  border: 1px solid rgba(130, 27, 45, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(70, 26, 35, 0.04);
}

.inventory-table__head,
.inventory-table__row {
  display: grid;
  grid-template-columns:
    36px
    58px
    minmax(140px, 1.5fr)
    minmax(88px, 0.75fr)
    minmax(96px, 0.75fr)
    minmax(130px, 0.9fr)
    minmax(90px, 0.65fr);
  gap: 12px;
  align-items: center;
}

.inventory-table__head {
  padding: 17px 20px;
  border-bottom: 1px solid rgba(130, 27, 45, 0.1);
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inventory-table__row {
  min-height: 84px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(130, 27, 45, 0.08);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.inventory-table__row:last-child {
  border-bottom: 0;
}

.inventory-table__row:hover {
  background: rgba(130, 27, 45, 0.025);
}

.inventory-table__number {
  color: var(--text-soft);
  font-weight: 900;
}

.inventory-table__thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(130, 27, 45, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(130, 27, 45, 0.08), transparent),
    #fff8f7;
  color: var(--accent-deep);
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 900;
}

.inventory-table__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-table__thumb--empty {
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.34), transparent 0 26%),
    linear-gradient(135deg, var(--card-accent, #9a2238), #efe1dc);
  color: #ffffff;
}

.inventory-table__name {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.inventory-table__name strong {
  overflow: hidden;
  font-family: var(--heading-font);
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-table__name small {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-table__category,
.inventory-table__price {
  font-weight: 850;
}

.inventory-table__price {
  color: var(--accent-deep);
}

.inventory-table__stock .stock-editor--compact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inventory-table__stock .stock-editor--compact .input {
  width: 74px;
  min-height: 38px;
  padding: 0 10px;
}

.inventory-table__stock .stock-editor--compact .button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 0.8rem;
}

.inventory-table__stock-label {
  display: none;
}

.inventory-table__status {
  justify-self: start;
  white-space: nowrap;
}

.inventory-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 10px;
  border-top: 1px solid rgba(130, 27, 45, 0.08);
}

.inventory-table__actions .button {
  min-height: 36px;
  padding-inline: 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: none;
}

.inventory-table__actions .button:hover {
  transform: none;
}

.page--admin .hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.92fr);
  gap: 18px;
}

.page--admin .hero__copy,
.page--admin .hero__panel,
.page--admin .panel {
  border-color: rgba(130, 27, 45, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(70, 26, 35, 0.08);
}

.page--admin #admin-menu-form,
.page--admin .admin-variation-manager {
  display: grid;
  gap: 22px;
}

.page--admin #admin-menu-form > .section-heading,
.page--admin .admin-variation-manager > .section-heading {
  margin-bottom: 0;
}

.page--admin .admin-variation-manager .variation-list {
  gap: 16px;
}

.page--admin .hero__copy {
  position: relative;
  overflow: hidden;
}

.page--admin .hero__copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #9a2238, #721629);
}

.page--admin .hero__copy::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -96px;
  width: 240px;
  height: 240px;
  border: 36px solid rgba(154, 34, 56, 0.07);
  border-radius: 999px;
}

.page--admin .hero__copy > * {
  position: relative;
  z-index: 1;
}

.page--admin .hero__copy h1,
.page--admin .panel h2 {
  color: #201719;
  letter-spacing: -0.025em;
}

.page--admin .eyebrow,
.page--admin .menu-card__price,
.page--admin .item-note,
.page--admin .cart-row__note {
  color: var(--accent-deep);
}

.page--admin .stat-card,
.page--admin .order-card,
.page--admin .inventory-card,
.page--admin .list-card,
.page--admin .summary-card,
.page--admin .payment-card,
.page--admin .table-qr-card,
.page--admin .feedback-box--muted {
  border-color: rgba(130, 27, 45, 0.1);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(70, 26, 35, 0.055);
}

.page--admin .stat-card strong {
  color: var(--accent-deep);
}

.page--admin .admin-layout {
  grid-template-columns: minmax(0, 1.22fr) minmax(350px, 0.84fr);
}

.page--admin .order-card,
.page--admin .inventory-card,
.page--admin .table-qr-card {
  border-radius: 24px;
}

.page--admin .order-card:hover,
.page--admin .inventory-card:hover {
  border-color: rgba(130, 27, 45, 0.22);
  box-shadow: 0 18px 38px rgba(70, 26, 35, 0.11);
}

.page--admin .button--primary {
  background: linear-gradient(145deg, #a3263e, #711529);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(130, 27, 45, 0.2);
}

.page--admin .button--soft {
  border-color: rgba(130, 27, 45, 0.14);
  background: rgba(154, 34, 56, 0.08);
  color: var(--accent-deep);
}

.page--admin .button--ghost {
  border-color: rgba(130, 27, 45, 0.12);
  background: #ffffff;
  color: var(--accent-deep);
}

.page--admin .button--danger {
  border-color: rgba(154, 34, 56, 0.18);
  background: rgba(154, 34, 56, 0.1);
  color: var(--accent-deep);
}

.page--admin .input {
  border-color: rgba(130, 27, 45, 0.14);
  background: #ffffff;
}

.page--admin .input:focus {
  border-color: rgba(130, 27, 45, 0.42);
  box-shadow: 0 0 0 4px rgba(130, 27, 45, 0.08);
}

.page--admin .badge-pill,
.page--admin .stock-tag {
  border-color: rgba(130, 27, 45, 0.12);
  background: #fff7f8;
  color: var(--accent-deep);
}

.page--admin .stock-tag--low {
  background: rgba(216, 170, 104, 0.2);
  color: #7b541e;
}

.page--admin .stock-tag--empty,
.page--admin .status-badge--danger {
  background: rgba(154, 34, 56, 0.08);
  color: var(--accent-deep);
}

.page--admin .status-badge--warm {
  background: rgba(154, 34, 56, 0.11);
  border-color: rgba(154, 34, 56, 0.14);
  color: var(--accent-deep);
}

.page--admin .toggle {
  border-color: rgba(130, 27, 45, 0.12);
  background: #fffafa;
}

.page--admin .toggle input {
  accent-color: var(--accent-deep);
}

.page--admin .inventory-card__thumb--empty {
  background: linear-gradient(145deg, #a82a42, #76172b);
}

.page--admin .qr-preview {
  border-color: rgba(130, 27, 45, 0.14);
  background: #ffffff;
}

.page--admin .qr-link {
  color: var(--accent-deep);
}

@media (max-width: 1080px) {
  .page--admin .hero,
  .page--admin .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body.page--admin {
    background: #ffffff;
    padding-bottom: 188px;
  }

  .page--admin .topbar {
    width: 100%;
    margin-top: 0;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, 0.96);
  }

  .page--admin .hero__copy,
  .page--admin .hero__panel,
  .page--admin .panel {
    padding: 18px;
    border-radius: 26px;
  }

  .page--admin .hero__copy h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .page--admin .mobile-sheet {
    left: 14px;
    right: 14px;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 82px);
    padding: 12px 14px;
    border-radius: 24px;
    border-color: rgba(130, 27, 45, 0.11);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(70, 26, 35, 0.14);
  }

  .page--admin .mobile-sheet__meta span {
    color: var(--accent-deep);
  }

  .page--admin .mobile-dock--admin {
    left: 14px;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 6px;
    padding: 8px;
    border-radius: 28px;
    border-color: rgba(130, 27, 45, 0.1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 42px rgba(70, 26, 35, 0.16);
  }

  .page--admin .mobile-dock__link {
    display: grid;
    grid-template-rows: 24px auto;
    place-items: center;
    gap: 4px;
    min-height: 60px;
    padding: 8px 4px 7px;
    border-radius: 22px;
    background: transparent;
    color: #7a6a6e;
    font-size: 0.75rem;
    font-weight: 800;
  }

  .page--admin .mobile-dock__link:focus-visible,
  .page--admin .mobile-dock__link:hover {
    outline: none;
    background: #fff2f5;
    color: var(--accent-deep);
  }

  .page--admin .dock-icon {
    position: relative;
    display: block;
    width: 23px;
    height: 23px;
    color: currentColor;
  }

  .page--admin .dock-icon--orders::before,
  .page--admin .dock-icon--orders::after {
    content: "";
    position: absolute;
    left: 4px;
    width: 15px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
  }

  .page--admin .dock-icon--orders::before {
    top: 4px;
    box-shadow: 0 7px 0 currentColor;
  }

  .page--admin .dock-icon--orders::after {
    top: 18px;
  }

  .page--admin .dock-icon--menu::before,
  .page--admin .dock-icon--menu::after {
    content: "";
    position: absolute;
    left: 3px;
    width: 17px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 8px 0 currentColor;
  }

  .page--admin .dock-icon--menu::before {
    top: 2px;
  }

  .page--admin .dock-icon--menu::after {
    top: 18px;
    box-shadow: none;
  }

  .page--admin .dock-icon--stock::before {
    content: "";
    position: absolute;
    left: 4px;
    bottom: 3px;
    width: 4px;
    height: 11px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 7px -5px 0 currentColor, 14px -9px 0 currentColor;
  }

  .page--admin .dock-icon--qr::before {
    content: "";
    position: absolute;
    inset: 3px;
    background:
      linear-gradient(currentColor 0 0) 0 0 / 7px 7px no-repeat,
      linear-gradient(currentColor 0 0) 100% 0 / 7px 7px no-repeat,
      linear-gradient(currentColor 0 0) 0 100% / 7px 7px no-repeat,
      linear-gradient(currentColor 0 0) 100% 100% / 7px 7px no-repeat;
  }
}

@media (max-width: 540px) {
  .page--admin .page-shell {
    width: min(100% - 18px, 100%);
  }

  .page--admin .upload-dropzone {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page--admin .upload-dropzone__preview {
    margin: 0 auto;
  }

  .page--admin .upload-clear {
    width: 100%;
  }

  .page--admin .mobile-sheet {
    left: 10px;
    right: 10px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 82px);
  }

  .page--admin .mobile-dock--admin {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 1180px) {
  .admin-pos-shell {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 100%);
    margin-top: 14px;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .admin-sidebar__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
  }

  .admin-sidebar__logout {
    margin-top: 16px;
  }

  .admin-cashier-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .admin-cashier-menu {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .cashier-menu-grid {
    overflow: visible;
    padding-right: 2px;
  }

  .admin-order-detail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .inventory-table__head {
    display: none;
  }

  .inventory-table {
    overflow: hidden;
  }

  .inventory-table__row {
    min-width: 0;
    grid-template-columns: 38px 58px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    column-gap: 10px;
    row-gap: 5px;
    align-items: center;
  }

  .inventory-table__number {
    grid-area: 1 / 1 / 4 / 2;
    align-self: start;
    padding-top: 4px;
  }

  .inventory-table__thumb {
    grid-area: 1 / 2 / 4 / 3;
    align-self: start;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .inventory-table__name {
    grid-area: 1 / 3 / 2 / 4;
  }

  .inventory-table__category {
    grid-area: 2 / 3 / 3 / 4;
    color: var(--text-soft);
    font-size: 0.82rem;
  }

  .inventory-table__price {
    grid-area: 3 / 3 / 4 / 4;
    font-size: 0.92rem;
  }

  .inventory-table__stock {
    grid-area: 1 / 4 / 2 / 5;
  }

  .inventory-table__stock-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-soft);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .inventory-table__status {
    grid-area: 2 / 4 / 3 / 5;
    justify-self: end;
  }

  .inventory-table__actions {
    grid-area: 4 / 1 / 5 / 5;
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid rgba(130, 27, 45, 0.08);
  }
}

@media (max-width: 820px) {
  .admin-pos-shell {
    gap: 16px;
    margin-bottom: 190px;
  }

  .admin-sidebar {
    padding: 16px;
    border-radius: 24px;
  }

  .admin-sidebar__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-sidebar__nav a,
  .admin-sidebar__logout button {
    min-height: 42px;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .admin-product-toolbar {
    grid-template-columns: 1fr;
  }

  .cashier-menu-grid,
  .page--admin .admin-product-board .inventory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 540px) {
  .admin-pos-shell {
    width: min(100% - 18px, 100%);
  }

  .admin-sidebar__brand {
    justify-content: center;
    text-align: center;
  }

  .cashier-menu-grid,
  .page--admin .admin-product-board .inventory-list {
    grid-template-columns: 1fr;
  }

  .admin-payment-box__head,
  .order-payment-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .order-payment-bar .button {
    width: 100%;
  }

  .inventory-table__row {
    grid-template-columns: 32px 50px minmax(0, 1fr);
    padding: 12px 13px;
  }

  .inventory-table__number {
    grid-area: 1 / 1 / 4 / 2;
  }

  .inventory-table__thumb {
    grid-area: 1 / 2 / 4 / 3;
    width: 46px;
    height: 46px;
  }

  .inventory-table__name {
    grid-area: 1 / 3 / 2 / 4;
  }

  .inventory-table__category {
    grid-area: 2 / 3 / 3 / 4;
  }

  .inventory-table__price {
    grid-area: 3 / 3 / 4 / 4;
  }

  .inventory-table__stock {
    grid-area: 4 / 1 / 5 / 4;
  }

  .inventory-table__stock .stock-editor--compact {
    justify-content: flex-start;
  }

  .inventory-table__status {
    grid-area: 5 / 1 / 6 / 4;
    justify-self: start;
  }

  .inventory-table__actions {
    grid-area: 6 / 1 / 7 / 4;
  }

  .inventory-table__actions .button {
    flex: 1 1 112px;
  }
}

@media print {
  body {
    background: #ffffff;
    padding-bottom: 0;
  }

  .site-bg,
  .topbar,
  .admin-sidebar,
  .hero,
  #admin-orders,
  #admin-menu-form,
  #admin-inventory,
  #admin-report,
  .mobile-dock {
    display: none !important;
  }

  .page-shell,
  .admin-pos-shell,
  .admin-pos-workspace {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .admin-layout {
    display: block;
  }

  #admin-table-qr {
    display: block !important;
  }

  #admin-table-qr .panel {
    display: block !important;
    padding: 0;
    border: 0;
    background: #ffffff;
    box-shadow: none;
  }

  #admin-table-qr .section-heading,
  #admin-table-qr form,
  #tableQrNotice,
  #tableQrSummary {
    display: none !important;
  }

  .table-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .table-qr-card {
    border: 1px solid #d7c4b3;
    box-shadow: none;
    background: #ffffff;
  }
}
