:root {
  --paper: #f3efe4;
  --card: #fffdf8;
  --ink: #1c2824;
  --muted: #3f514a;
  --line: rgba(28, 40, 36, 0.12);
  --line-strong: #d5d0c4;
  --teal: #004C91;
  --teal-dark: #00356a;
  --danger: #8c2e28;
  --danger-soft: #fdeceb;
  --shadow: 0 14px 36px rgba(28, 40, 36, 0.08);
  --header-h: 8.75rem;
  --dev-bar-h: 2.35rem;
  --chrome-h: calc(var(--header-h) + var(--dev-bar-h));
  --menu-bar-h: 4.75rem;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 70% 45% at 0% -10%, rgba(0, 76, 145, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(224, 122, 61, 0.12), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

body.drawer-open {
  overflow: hidden;
}

::selection {
  background: #d4e4f7;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

h1, h2, h3, p {
  overflow-wrap: break-word;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 50;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.skip:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

html:not(.is-admin) {
  --dev-bar-h: 0px;
}

html:not(.is-admin) .dev-bar {
  display: none;
}

.dev-bar {
  background: var(--ink);
  color: #f7f4ec;
  min-height: var(--dev-bar-h);
}

.dev-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  width: min(1120px, calc(100% - 2rem));
  min-height: var(--dev-bar-h);
  margin: 0 auto;
  padding: 0.2rem 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.dev-bar-label {
  opacity: 0.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.dev-bar a {
  color: inherit;
  text-decoration: none;
}

.dev-bar a:hover,
.dev-bar a.is-on,
.dev-bar a[aria-current="page"],
.dev-bar-btn:hover,
.dev-bar-btn.is-on {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.dev-bar-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.dev-bar-btn[hidden] {
  display: none;
}

.dev-bar-logout {
  margin-left: auto;
}

.header-inner,
.footer-inner,
.layout {
  width: min(1120px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

a.brand {
  cursor: pointer;
}

.logo {
  display: block;
  height: 104px;
  width: auto;
  flex: none;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.15;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  min-height: 44px;
  padding: 0.3rem 0.75rem 0.3rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  cursor: pointer;
}

.cart-launch:hover {
  border-color: var(--teal);
}

.count-pill {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--teal);
  color: #f7f4ec;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
}

.launch-total {
  font-variant-numeric: tabular-nums;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: none;
  margin-left: 0.35rem;
}

body.edit-mode .layout {
  grid-template-columns: minmax(0, 1fr);
}

body.edit-mode .cart-panel,
body.edit-mode .cart-launch,
body.edit-mode .backdrop {
  display: none !important;
}

.menu-top {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
}

.edit-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem 0.85rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e2b8b4;
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--ink);
}

.edit-banner[hidden] {
  display: none;
}

.edit-banner p {
  margin: 0;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--danger);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-banner-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
}

.edit-banner .btn-primary,
.edit-banner .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: auto;
  min-height: 40px;
  padding: 0 0.9rem;
  white-space: nowrap;
}

.edit-banner .btn-ghost {
  border-color: #e2b8b4;
  background: #fff;
  color: var(--danger);
}

.edit-banner .btn-ghost:hover {
  background: #fff5f4;
}

@media (max-width: 640px) {
  .edit-banner {
    grid-template-columns: 1fr;
  }

  .edit-banner-actions {
    width: 100%;
  }

  .edit-banner .btn-primary,
  .edit-banner .btn-ghost {
    flex: 1;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-left: auto;
}

.header-nav a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--teal);
}

.header-nav a[aria-current='page'] {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.info-band {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  scroll-margin-top: calc(var(--chrome-h) + 0.5rem);
}

.info-band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.info-band p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  width: min(1120px, calc(100% - 2rem));
  max-width: 100%;
  box-sizing: border-box;
}

.menu-bar {
  position: relative;
  top: auto;
  z-index: 2;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: #fffdf8;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(28, 40, 36, 0.14);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.menu-column {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding-bottom: 0.35rem;
}

.filters {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
}

.menu-filters {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.menu-fulfillment-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.menu-fulfillment-bar .allergen-filter {
  flex: none;
}

.menu-fulfillment-bar .allergen-menu {
  left: 0;
  right: auto;
}

.menu-filter-legend {
  margin: 0;
  flex: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.fulfillment-toggle {
  flex: none;
  min-width: 0;
  margin-right: 0;
}

.fulfillment-toggle .pill {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0 0.45rem;
  font-size: 0.84rem;
}

.pill-icon {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
}

.menu-category-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
}

.menu-category-row .chip-scroller {
  flex: 1;
  width: 100%;
}

.chip-scroller {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

.chip-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip-arrow {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.chip-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.pill-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  margin-right: 0.35rem;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
}

.pill-toggle .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.pill-toggle .pill.is-on {
  background: var(--teal);
  color: #f7f4ec;
}

.allergen-filter {
  position: relative;
  flex: none;
}

.allergen-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.95rem 0.35rem 0.75rem;
  border: 2px solid #c9a02a;
  border-radius: 999px;
  background: #fffaf0;
  color: #5c4208;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(140, 96, 20, 0.14);
}

.allergen-toggle-icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: #9a7318;
}

.allergen-toggle-label {
  white-space: nowrap;
}

.allergen-toggle-count {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(92, 66, 8, 0.14);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4rem;
  text-align: center;
}

.allergen-toggle-chevron {
  flex: none;
  margin-left: 0.05rem;
  font-size: 0.85rem;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.allergen-toggle[aria-expanded='true'] .allergen-toggle-chevron {
  transform: rotate(180deg);
}

.allergen-toggle.has-selection {
  border-color: var(--teal);
  background: var(--teal);
  color: #f7f4ec;
  box-shadow: 0 3px 12px rgba(0, 76, 145, 0.28);
}

.allergen-toggle.has-selection .allergen-toggle-icon {
  color: #e8f2fb;
}

.allergen-toggle.has-selection .allergen-toggle-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.allergen-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 5;
  display: grid;
  gap: 0.1rem;
  min-width: 240px;
  max-height: 280px;
  overflow: auto;
  padding: 0.5rem 0.45rem 0.55rem;
  border: 2px solid #c9a02a;
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 14px 32px rgba(28, 40, 36, 0.16);
}

.allergen-menu-title {
  margin: 0 0 0.15rem;
  padding: 0.15rem 0.45rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.allergen-menu[hidden] {
  display: none;
}

.allergen-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 36px;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.allergen-option:hover {
  background: #f3efe4;
}

.allergen-option input {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--teal);
}

.chip {
  flex: none;
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chip:hover:not(.is-on) {
  background: #fff;
  border-color: var(--teal);
}

.chip:focus {
  outline: none;
}

.chip:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.chip.is-on {
  background: var(--teal);
  border-color: var(--teal);
  color: #f7f4ec;
}

.chip.is-on:focus-visible {
  outline-color: #f7f4ec;
}

.chip-count {
  font-weight: 500;
  opacity: 0.75;
}

.mark-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
}

.pickup-mark,
.ship-mark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pickup-mark {
  background: #f6e2c4;
  color: #6b3a0a;
}

.ship-mark {
  background: #d6e6f7;
  color: #00356a;
}

.menu-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-status[hidden] {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.9rem;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
}

.card.is-editable {
  cursor: grab;
}

.card.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.card.is-drop-target {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.drag-handle {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  min-height: 1.6rem;
  padding: 0.1rem 0.25rem;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
}

.grid.is-edit-grid .card-art > img,
.grid.is-edit-grid .card-art > svg {
  pointer-events: none;
}

.card-art {
  position: relative;
}

.card-art > svg,
.card-art > img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.ship-warn {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  padding: 0.55rem 0.65rem;
  background: rgba(140, 46, 40, 0.92);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: none;
}

.ship-warn-big {
  background: rgba(176, 92, 20, 0.94);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  padding: 0.9rem 1rem 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  margin: 0;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-breads { background: #f6e2c4; color: #5c320c; }
.badge-entrees { background: #d6e6f7; color: #00356a; }
.badge-pizza { background: #f6e0dc; color: #5c2230; }
.badge-sweets { background: #e4e8ee; color: #1c3144; }

.card h3 {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.25;
}

.desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.flavor-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.35rem;
}

.flavor-field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.7rem;
}

.price {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.in-cart {
  min-height: 1.15em;
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.add-btn,
.btn-primary,
.btn-ghost,
.icon-btn,
.linkish {
  cursor: pointer;
}

.add-btn,
.btn-primary {
  border: 0;
  background: var(--teal);
  color: #f7f4ec;
  font-weight: 600;
}

.add-btn {
  flex: none;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.btn-primary {
  min-height: 48px;
  border-radius: 12px;
}

.add-btn:hover,
.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-ghost {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  font-weight: 600;
}

.btn-ghost:hover {
  background: rgba(28, 40, 36, 0.04);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cart-scroll-space,
.cart-body .btn-primary,
#success .btn-primary {
  width: 100%;
}

#checkout-btn {
  width: 100%;
  margin-top: 0.95rem;
}

.notice {
  grid-column: 1 / -1;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.notice h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
}

.notice p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.notice .btn-primary,
.notice .btn-ghost {
  width: auto;
  margin-top: 0;
}

.skeleton {
  height: 300px;
  border-radius: 18px;
  background: linear-gradient(90deg, #efeae0 25%, #f8f5ef 37%, #efeae0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.cart-panel {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  top: auto;
  width: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.sheet-handle {
  display: none;
}

.cart-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1rem 0.35rem;
  background: var(--card);
}

#cart-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
}

.icon-btn svg {
  display: block;
  margin: 0;
}

.cart-body {
  padding: 0 1rem 1.1rem;
}

.cart-meta {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-cart {
  padding: 1.1rem 0.1rem 0.4rem;
}

.empty-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
  outline: none;
}

.cart-split-note {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #8eb4dc;
  border-radius: 12px;
  background: #e7f1fb;
  color: #00356a;
  font-size: 0.88rem;
  line-height: 1.4;
}

.pack-audit {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid #2a3632;
  border-radius: 12px;
  background: #1c2824;
  color: #d7e0db;
  overflow: auto;
  max-height: 22rem;
}

.pack-audit[hidden] {
  display: none;
}

.pack-audit-label {
  margin: 0 0 0.45rem;
  color: #9bb0a6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pack-audit pre,
.pack-audit-body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.pack-audit.is-checkout {
  margin-top: 1rem;
}

.totals .pack-log-open {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  min-height: 36px;
  margin: 0.15rem 0 0.2rem;
  padding: 0 0.75rem;
  font-size: 0.86rem;
}

.checkout-dialog.pack-log-dialog {
  width: min(960px, calc(100% - 1.5rem));
  max-height: min(94vh, 960px);
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.5rem 1.5rem;
}

.checkout-dialog.pack-log-dialog h2 {
  margin-bottom: 0.35rem;
}

.checkout-dialog.pack-log-dialog .ship-note {
  margin: 0 0 0.75rem;
  flex: none;
}

.pack-log-tabs {
  display: flex;
  width: min(20rem, 100%);
  margin: 0 0 0.85rem;
  flex: none;
}

.pack-log-tabs .pill {
  flex: 1;
}

.pack-log-panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.pack-log-panel[hidden] {
  display: none !important;
}

.pack-log-panel .pack-stack {
  display: grid;
  gap: 0.9rem;
}

.checkout-dialog.pack-log-dialog .pack-audit-body {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: #141c19;
  color: #e4eee8;
  border: 1px solid #2f3c37;
  min-height: min(50vh, 28rem);
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.58;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}

.line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.15rem 0.7rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.line[hidden] {
  display: none;
}

.cart-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  margin-top: 0.65rem;
  padding: 0.28rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #f7f4ec;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-more[hidden] {
  display: none;
}

.line h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
}

.line-price {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.line-total {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.line-actions {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.stepper button {
  width: 2.25rem;
  height: 2.25rem;
  min-height: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
}

.qty {
  min-width: 1.4rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.linkish {
  border: 0;
  background: none;
  padding: 0.35rem 0;
  color: #6e2c36;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.totals {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.totals .grand {
  margin-top: 0.2rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
}

.hint {
  font-weight: 500;
}

.ship-note,
.fine-print {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.clover-field {
  display: flex;
  align-items: center;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 0.7rem;
  overflow: hidden;
  border: 1px solid #d9d3c6;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

.clover-field iframe {
  display: block;
  width: 100%;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  border: 0;
}

fieldset {
  margin: 0.9rem 0 0;
  padding: 0;
  border: 0;
}

legend,
#checkout-form h3 {
  margin: 0 0 0.55rem;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
}

#checkout-form > h3 {
  margin-top: 1.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.stack[hidden] {
  display: none !important;
}

.trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem 6rem;
  gap: 0.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.field label {
  font-size: 0.86rem;
  font-weight: 700;
}

input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='file']):not([type='button']):not([type='submit']):not([type='reset']),
select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d9d3c6;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
}

input[type='radio'],
input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  accent-color: var(--teal);
}

::placeholder {
  color: #8a8174;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.8rem;
}

.banner {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
}

.panel-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.recap {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recap li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.55rem 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.recap li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.recap li:first-child {
  padding-top: 0;
}

.recap-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 0.45rem;
  row-gap: 0.28rem;
  min-width: 0;
}

.recap-copy .mark-row {
  grid-column: 1 / -1;
  margin: 0;
}

.recap-photo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #efe8dc;
}

.recap-photo-fallback {
  display: block;
}

.recap-name {
  min-width: 0;
  font-weight: 600;
  line-height: 1.3;
}

.recap-qty {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.recap-price {
  padding-top: 0.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary-group {
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.summary-group-ship {
  border-color: #8eb4dc;
  background: #f3f8fd;
}

.summary-group-pickup {
  border-color: #e0c49a;
  background: #fbf6ee;
}

.summary-group .summary-label {
  margin: 0 0 0.65rem;
}

.summary-group .recap li:first-child {
  padding-top: 0.15rem;
}

.summary-label {
  margin: 0.85rem 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.summary-group-pickup .summary-label {
  color: #6b3a0a;
}

.thanks {
  margin: 0.2rem 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.order-kicker {
  margin: 0;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-number {
  margin: 0.1rem 0 0.35rem;
  font-family: var(--serif);
  font-size: 2.15rem;
  letter-spacing: 0.03em;
}

.ship-to {
  margin: 0 0 0.7rem;
}

.site-footer {
  margin-top: 2rem;
  background: #00356a;
  color: #e6eef6;
  font-size: 0.95rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.formal-footer {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.85fr 1.1fr;
  gap: 2rem 1.75rem;
  padding: 2.4rem 0 2.2rem;
}

.footer-logo {
  display: block;
  height: 84px;
  width: auto;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.55rem;
  background: #f3efe4;
  border-radius: 14px;
}

.footer-credit {
  padding: 0 0 1.6rem;
}

.footer-credit p {
  margin: 0;
  color: #b9d4ef;
  font-size: 0.82rem;
}

.formal-footer address {
  font-style: normal;
  line-height: 1.55;
}

.formal-footer h2 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9d4ef;
}

.hours {
  margin: 0;
}

.hours div + div {
  margin-top: 0.7rem;
}

.hours dt {
  color: #fff;
  font-weight: 600;
}

.hours dd {
  margin: 0.1rem 0 0;
}

.formal-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.formal-footer li + li {
  margin-top: 0.4rem;
}

.footer-reach p {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.footer-reach p + p {
  margin-top: 0.45rem;
}

#about,
#contact,
#wholesale {
  scroll-margin-top: calc(var(--chrome-h) + 0.75rem);
}

.backdrop {
  display: none;
}

.cart-panel.is-modal {
  position: fixed;
  z-index: 55;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(460px, calc(100% - 2rem));
  max-height: min(88vh, 840px);
  transform: translate(-50%, -50%);
  border-radius: 22px;
}

body.cart-open .backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  border: 0;
  padding: 0;
  background: rgba(18, 24, 28, 0.55);
}

body.cart-open #close-cart {
  display: grid;
  place-items: center;
}

.noscript {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto;
}

@media (max-width: 800px) {
  .formal-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .formal-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (hover: hover) {
  .card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(28, 40, 36, 0.12);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    width: min(1120px, calc(100% - 1.25rem));
  }

  .menu-top {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
    max-width: 100%;
  }

  .menu-bar {
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .menu-column {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    max-width: 100%;
  }

  .filters {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .menu-fulfillment-bar {
    align-items: stretch;
  }

  .menu-fulfillment-bar .allergen-filter {
    margin-left: 0;
    flex: 1 1 100%;
  }

  .fulfillment-toggle {
    width: 100%;
    min-width: 0;
  }

  .menu-category-row {
    width: 100%;
  }

  .chip-scroller {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  .menu-status {
    align-self: flex-start;
  }

  .cart-panel {
    grid-column: auto;
    grid-row: auto;
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    max-width: 100%;
    max-height: min(86vh, 760px);
    border-radius: 20px 20px 0 0;
    transform: translateY(110%);
    transition: transform 0.25s ease;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .cart-panel.is-open {
    transform: translateY(0);
  }

  .sheet-handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 0.6rem auto 0;
    border-radius: 999px;
    background: var(--line-strong);
  }

  .backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(23, 32, 29, 0.46);
  }

  .backdrop[hidden] {
    display: none;
  }
}

@media (min-width: 901px) {
  #close-cart {
    display: none;
  }

  .cart-panel:not(.is-modal) {
    position: sticky;
    top: calc(var(--chrome-h) + 1rem);
    max-height: calc(100vh - var(--chrome-h) - 2rem);
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 4.75rem;
  }

  html.is-admin {
    --dev-bar-h: 2.15rem;
  }

  .header-inner,
  .footer-inner,
  .dev-bar-inner,
  .layout {
    width: calc(100% - 1rem);
  }

  .header-inner {
    gap: 0.55rem;
    min-height: var(--header-h);
    padding: 0.55rem 0;
  }

  .logo {
    height: 56px;
  }

  .header-actions {
    gap: 0.45rem;
    min-width: 0;
  }

  .header-nav {
    gap: 0.55rem;
  }

  .header-nav a {
    font-size: 0.82rem;
  }

  .cart-launch {
    min-height: 40px;
    padding: 0.25rem 0.55rem 0.25rem 0.7rem;
    font-size: 0.88rem;
  }

  .launch-total {
    display: none;
  }

  .menu-bar {
    padding: 0.55rem 0.6rem;
    border-radius: 14px;
  }

  .pill-toggle .pill {
    min-height: 34px;
    padding: 0.15rem 0.4rem;
    font-size: 0.78rem;
  }

  .fulfillment-toggle .pill-icon {
    display: none;
  }

  .menu-fulfillment-bar .allergen-toggle {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    font-size: 0.86rem;
  }

  .menu-fulfillment-bar .allergen-menu {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
  }

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

  .card {
    min-width: 0;
    border-radius: 14px;
  }

  .card-art > svg,
  .card-art > img {
    height: 108px;
  }

  .card-body {
    gap: 0.22rem;
    padding: 0.55rem 0.55rem 0.65rem;
  }

  .badge {
    font-size: 0.62rem;
    padding: 0.12rem 0.38rem;
  }

  .card h3 {
    font-size: 0.95rem;
  }

  .desc {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }

  .pickup-mark,
  .ship-mark {
    font-size: 0.62rem;
    padding: 0.1rem 0.38rem;
  }

  .flavor-field label {
    font-size: 0.72rem;
  }

  .flavor-field select {
    font-size: 0.82rem;
  }

  .card-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .price {
    font-size: 0.92rem;
  }

  .add-btn {
    width: 100%;
    min-height: 34px;
    padding: 0.3rem 0.45rem;
    font-size: 0.82rem;
  }

  .formal-footer {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 1.8rem 0 1.6rem;
  }

  .footer-logo {
    height: 68px;
  }
}

@media (max-width: 380px) {
  .launch-total {
    display: none;
  }

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

  .trio .field:first-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .cart-panel,
  .skeleton {
    transition: none;
    animation: none;
  }
}

body.modal-open {
  overflow: hidden;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(18, 24, 28, 0.55);
  cursor: pointer;
}

.product-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  background: #fffdf8;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(16, 24, 32, 0.28);
}

.checkout-modal {
  z-index: 70;
}

.checkout-dialog {
  width: min(640px, 100%);
  padding: 1.25rem 1.35rem 1.35rem;
}

.checkout-dialog h2 {
  margin: 0 2.2rem 0.15rem 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.checkout-dialog .btn-primary,
.checkout-dialog .btn-ghost {
  width: 100%;
}

.receive-field .pill-toggle {
  display: flex;
  width: 100%;
  margin: 0 0 0.35rem;
}

.receive-field .pill {
  flex: 1;
}

.receive-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.split-notice {
  margin-top: 1.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.split-notice .split-box {
  padding: 0.9rem 1rem 1rem;
  border: 1px solid #8eb4dc;
  border-radius: 14px;
  background: #e7f1fb;
}

.split-box h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.split-box p {
  margin: 0;
}

.split-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

#product-modal-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1fr);
  align-items: stretch;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: #fff;
}

.modal-photo {
  position: relative;
  min-height: 320px;
  background: #efe8dc;
}

.modal-photo img,
.modal-photo svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-copy {
  padding: 1.4rem 1.35rem 1.3rem;
}

.modal-copy h2 {
  margin: 0.35rem 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-copy h3 {
  margin: 1rem 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-copy .price {
  font-size: 1.15rem;
}

.modal-copy .desc {
  display: block;
  margin: 0.4rem 0 0;
  overflow: visible;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-box-orient: unset;
  -webkit-line-clamp: unset;
}

.modal-copy h3 + p,
.modal-ingredients-block p {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.diet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.diet-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.58rem 0.28rem 0.42rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #f7f3ea;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.1;
}

.diet-tag-icon {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--teal);
  flex: none;
}

.diet-tag-icon svg {
  display: block;
}

.diet-tag-label {
  white-space: nowrap;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.modal-actions .btn-primary {
  width: auto;
  padding: 0 1.1rem;
}

@media (max-width: 700px) {
  .product-dialog {
    max-height: 92vh;
  }

  #product-modal-body {
    grid-template-columns: 1fr;
  }

  .modal-photo {
    min-height: 220px;
    height: 220px;
  }
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}

.confetti-layer i {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
  transform: translate(-50%, -50%) scale(var(--s, 1)) rotate(0deg);
  animation: confetti-pop 1.15s cubic-bezier(0.12, 0.72, 0.28, 1) forwards;
  animation-delay: var(--d);
  opacity: 0;
}

.confetti-layer i.is-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

@keyframes confetti-pop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--s, 1)) rotate(0deg);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.7) rotate(var(--r));
  }
}

@media (prefers-reduced-motion: reduce) {
  .confetti-layer {
    display: none;
  }
}

.toast {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  padding: 0.9rem 1.1rem;
  border: 0;
  border-radius: 14px;
  background: #00356a;
  color: #f7f4ec;
  box-shadow: 0 16px 36px rgba(16, 24, 32, 0.22);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.toast-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #1f7a3a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.toast-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast.is-in {
  transform: translate(-50%, 0);
  opacity: 1;
}

.portal-body .site-header {
  position: sticky;
}

.portal {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.5rem auto 4rem;
}

.portal-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
}

.portal-tabs {
  display: flex;
  width: min(34rem, 100%);
  margin: 0.85rem 0 0.65rem;
}

.portal-tabs .pill {
  flex: 1;
  text-align: center;
  text-decoration: none;
}

.portal-lede,
.portal-muted,
.portal-empty {
  color: var(--muted);
}

.ship-settings {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
}

.ship-settings .summary-label {
  margin-top: 0;
}

.ship-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-top: 0.85rem;
}

.ship-settings .field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ship-settings select {
  width: 100%;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}

.ship-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.ship-settings-actions .btn-primary {
  width: auto;
  padding: 0 1.1rem;
}

.box-list {
  display: grid;
  gap: 0.85rem;
  margin: 0.9rem 0 0;
}

.box-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.box-tare {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.box-tare input,
.box-dims input {
  min-height: 42px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.box-card fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.box-card legend {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.box-dims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.box-dims label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.product-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 1rem 0;
}

.product-form-grid label,
.product-form-grid .span-2 {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-form-grid .span-2 {
  grid-column: 1 / -1;
}

.fulfill-field {
  display: grid;
  gap: 0.45rem;
}

.fulfill-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fulfill-field .pill-toggle {
  width: fit-content;
}

.fulfill-field .portal-muted {
  margin: 0;
}

.ship-dims-block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.ship-dims-block[hidden] {
  display: none;
}

.ship-dims-block label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-form-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.product-form-side {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-form-save {
  width: 100%;
}

.product-form-actions .portal-muted {
  margin: 0;
}

.product-form-grid input,
.product-form-grid textarea {
  min-height: 42px;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.image-picker {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.image-picker-controls {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.image-picker-preview {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #e7eef3;
}

.image-picker-preview.is-empty {
  border: 1px dashed var(--line-strong);
}

.image-picker input[type='file'] {
  min-height: 0;
  padding: 0.35rem 0;
  border: 0;
  background: none;
}

.image-remove {
  justify-self: start;
  padding: 0;
  font-size: 0.86rem;
}

.image-remove[hidden] {
  display: none;
}

.flavor-reorder-hint {
  margin: 0.35rem 0 0;
}

.category-order-dialog {
  max-width: 32rem;
}

.category-order-list {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0.75rem;
  padding: 0;
  list-style: none;
}

.category-order-row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  cursor: grab;
}

.category-order-row.is-dragging {
  opacity: 0.45;
}

.category-order-row.is-drop-target {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.category-order-row .drag-handle {
  position: static;
  min-width: 1.4rem;
  min-height: 1.4rem;
  background: transparent;
  border: 0;
}

.category-order-name {
  font-weight: 700;
}

.category-order-move {
  display: flex;
  gap: 0.35rem;
}

.category-order-move .btn-ghost {
  min-height: 2rem;
  padding: 0.2rem 0.55rem;
}

.flavor-list {
  display: grid;
  gap: 0.85rem;
  margin: 0.85rem 0 0.15rem;
}

.flavor-card {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1.35fr) 7rem minmax(0, 1.65fr) 40px;
  gap: 0.7rem 0.75rem;
  align-items: end;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: grab;
  position: relative;
}

.flavor-card.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.flavor-card.is-drop-target {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.flavor-drag {
  align-self: center;
  position: static;
  min-width: 1.4rem;
  min-height: 1.6rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: grab;
}

.flavor-card label,
.flavor-card .flavor-image {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flavor-card input,
.flavor-card textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  box-sizing: border-box;
}

.flavor-card textarea {
  min-height: 4.5rem;
  resize: vertical;
  line-height: 1.45;
}

.flavor-card .flavor-ingredients,
.flavor-card .flavor-tags {
  grid-column: 1 / -1;
}

.flavor-remove {
  flex: none;
  color: var(--danger);
  border-color: #e2b8b4;
}

.flavor-remove svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (max-width: 700px) {
  .flavor-card {
    grid-template-columns: 1.75rem minmax(0, 1fr) 7rem 40px;
  }

  .flavor-card .flavor-image {
    grid-column: 1 / -1;
  }

  .flavor-remove {
    grid-column: 4;
    grid-row: 1;
  }

  .ship-dims-block {
    grid-template-columns: 1fr 1fr;
  }
}

.box-dims .span-2 {
  grid-column: span 2;
}

#delete-product,
#confirm-delete-product {
  color: var(--danger);
  border-color: #e2b8b4;
}

#confirm-delete-product.btn-primary {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.delete-product-dialog {
  width: min(420px, calc(100% - 2rem));
}

.delete-product-actions {
  margin-top: 1.1rem;
}

.delete-product-actions .btn-primary,
.delete-product-actions .btn-ghost {
  width: 100%;
}

@media (max-width: 800px) {
  .product-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .ship-settings-grid {
    grid-template-columns: 1fr;
  }
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 18rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.25rem;
}

.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin: 1.1rem 0 1rem;
}

.product-toolbar .btn-primary {
  text-decoration: none;
}

.product-filter {
  display: grid;
  gap: 0.3rem;
  min-width: 12rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.product-card.is-on {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.product-card img,
.product-card-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7eef3;
}

.product-card-copy {
  display: grid;
  gap: 0.2rem;
  padding: 0 0.9rem 0.95rem;
}

.product-card-name {
  font-weight: 700;
  line-height: 1.25;
}

.product-card-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.catalog-dialog {
  width: min(760px, 100%);
  padding: 1.15rem 1.25rem 1.35rem;
}

.catalog-dialog .detail-head h2 {
  margin-right: 2.2rem;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.product-filter select {
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.product-row {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem 0.75rem;
}

.product-row .recap-copy {
  display: grid;
  gap: 0.15rem;
}

.product-row .recap-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recap-photo-add {
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--teal);
  background: #e7f1fb;
}

.order-row {
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

.order-row.is-on {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.order-row-num {
  font-weight: 700;
}

.order-row-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.portal-detail {
  padding: 1.25rem 1.35rem 1.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.detail-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.1rem 0;
}

.portal-detail .summary-group {
  margin-top: 0.85rem;
}

.portal-detail .pack-stack {
  display: grid;
  gap: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.portal-detail .totals {
  margin-top: 0.75rem;
}

.pack-doc {
  overflow: hidden;
  border: 1px solid #1c2824;
  border-radius: 4px;
  background: #fff;
}

.pack-doc-head {
  padding: 0.85rem 1rem 0.9rem;
  border-bottom: 2px solid #1c2824;
  background: #f4f1ea;
}

.pack-doc-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pack-doc-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pack-doc-head p:last-child {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.pack-doc .summary-label,
.pack-doc .recap,
.pack-doc .pack-spec,
.pack-doc .pack-procedure {
  margin-left: 1rem;
  margin-right: 1rem;
}

.pack-doc .summary-label {
  margin-top: 1rem;
  color: #1c2824;
}

.pack-spec {
  padding-bottom: 0.15rem;
}

.pack-procedure {
  margin: 0.35rem 1rem 1.1rem;
  padding: 0;
  list-style: none;
}

.pack-procedure li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.4;
}

.pack-procedure li:last-child {
  border-bottom: 0;
}

.pack-procedure li span {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 800px) {
  .portal-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
