:root {
  --cream: #f3ead8;
  --paper: #fffaf1;
  --ink: #1c1917;
  --muted: #6b6258;
  --oven: #c2410c;
  --oven-dark: #9a3412;
  --sage: #3f4a3c;
  --line: #e8dcc8;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--ink); }
body { font-family: Outfit, sans-serif; display: flex; flex-direction: column; }
h1, h2, h3, .serif { font-family: Fraunces, Georgia, serif; font-weight: 500; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; background: none; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.75rem; margin-top: 1rem; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.flex-1 { flex: 1; }
.error { color: var(--oven); font-size: 0.9rem; }

.wrap { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; }
.page { padding: 2.5rem 0; }
.narrow { max-width: 36rem; }
.legal h1.serif { margin-bottom: 0.5rem; }
.legal h2.serif {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.5rem;
}
.legal h3.serif {
  font-size: 1.05rem;
  margin: 1.15rem 0 0.4rem;
}
.legal code {
  font-size: 0.88em;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  padding: 0.08em 0.35em;
  border-radius: 0.3rem;
}
.legal p { margin: 0 0 1rem; line-height: 1.65; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; line-height: 1.65; }
.legal .legal-updated { color: var(--muted); font-size: 0.95rem; }
.legal .identity { line-height: 1.55; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 0.12em; }
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 2.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.legal-nav a { text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; }
.checkout-legal { margin: 0.85rem 0 0; }
.checkout-legal a { color: inherit; text-decoration: underline; text-underline-offset: 0.12em; }
.medium { max-width: 48rem; }
.center { text-align: center; }
.pad { padding: 1.25rem; }
.pad-lg { padding: 2rem; }

.header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
}
.header-inner, .admin-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand nav"
    "tagline status";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.35rem;
}
.header-left,
.header-right { display: contents; }
.header-inner .brand { grid-area: brand; }
.header-inner .header-nav {
  grid-area: nav;
  justify-self: end;
  justify-content: flex-end;
}
.header-inner .header-tagline { grid-area: tagline; margin: 0; }
.header-inner .header-status {
  grid-area: status;
  margin: 0;
  max-width: 18rem;
  justify-self: end;
  text-align: right;
}
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand-logo { height: 2.6rem; width: auto; max-width: 7.5rem; object-fit: contain; flex-shrink: 0; }
.brand-name { margin: 0; font-size: 1.5rem; }
.brand-tag { margin: 0.35rem 0 0; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.header-nav, .admin-nav { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.admin-nav a { white-space: nowrap; }
.admin-nav form { margin: 0; }
.phone { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand nav"
      "tagline tagline"
      "status phone";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.28rem;
  }
  .header-left,
  .header-right,
  .header-inner .header-nav { display: contents; }
  .header-inner .brand { grid-area: brand; }
  .header-inner .header-nav .btn-oven { grid-area: nav; justify-self: end; }
  .header-inner .header-tagline {
    grid-area: tagline;
    letter-spacing: 0.1em;
    line-height: 1.4;
  }
  .header-inner .header-status {
    grid-area: status;
    max-width: none;
    justify-self: start;
    text-align: left;
  }
  .header-inner .phone {
    grid-area: phone;
    display: inline-flex;
    justify-self: end;
    text-align: right;
    font-size: 0.95rem;
    padding: 0.15rem 0 0.1rem;
    white-space: nowrap;
  }
  .brand-name { font-size: 1.28rem; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0.55rem 1.1rem; font-weight: 500; }
.btn-oven { background: var(--oven); color: #fff; }
.btn-oven:hover { background: var(--oven-dark); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-outline { border: 1px solid var(--line); background: var(--paper); }
.btn.full { width: 100%; padding: 0.8rem; }
.btn:disabled { opacity: 0.6; }

.hero {
  overflow: hidden; border-radius: 2rem; background: var(--ink); color: var(--paper);
  margin-bottom: 2.5rem;
  position: relative;
}
.hero:not(.hero-photo):not(.hero-logo-bg) { padding: 3rem 1.5rem; }
.hero-inner { position: relative; z-index: 1; }
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-photo { background: transparent; }
.hero-photo.hero-has-text .hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(90deg, rgba(28,25,23,.55) 0%, rgba(28,25,23,.18) 55%, rgba(28,25,23,0) 100%);
}
.hero-logo-bg {
  min-height: 12rem;
  padding: 3rem 1.5rem;
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(28,25,23,.92) 0%, rgba(28,25,23,.5) 40%, rgba(28,25,23,.18) 100%), var(--hero-image);
  background-repeat: no-repeat;
  background-size: cover, auto 70%;
  background-position: center, right 6% center;
}
@media (min-width: 768px) {
  .hero:not(.hero-photo):not(.hero-logo-bg) { padding: 3rem; }
  .hero-photo.hero-has-text .hero-inner { padding: 3rem; }
  .hero-logo-bg { padding: 3rem; }
}
.eyebrow { margin: 0; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero-title { margin: 0.75rem 0 0; max-width: 36rem; font-size: clamp(2.4rem, 6vw, 3.75rem); line-height: 1.1; }
.hero-tag { margin: 1rem 0 0; max-width: 32rem; font-size: 1.15rem; color: rgba(255,255,255,.75); }
.pill { display: inline-flex; margin-top: 1.5rem; border-radius: 999px; background: rgba(255,255,255,.1); padding: 0.5rem 1rem; font-size: 0.9rem; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 1.5rem; }
.hours { padding: 1.5rem; margin-top: 3rem; }
.hours-boards { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 768px) {
  .hours-boards { grid-template-columns: 1fr 1fr; }
  .hours-boards:has(.hours:only-child) { grid-template-columns: minmax(0, 28rem); }
}
.hours-boards .hours { margin-top: 0; }
.hours-stack {
  display: grid;
  gap: 0;
  margin-top: 1.25rem;
}
.hours-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  font-size: 0.9rem;
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.hours-edit:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-edit > span:first-child {
  width: 6.5rem;
  font-weight: 500;
}
.hours-edit input[type="time"] { width: 7.5rem; }
.hours-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
@media (min-width: 640px) { .hours-list { grid-template-columns: 1fr 1fr; } }
.hours-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0.5rem 0; }

.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 1rem; }
.chip { border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.9rem; white-space: nowrap; background: #fff; border: 1px solid var(--line); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#menu-board > .chips {
  flex-wrap: wrap;
  overflow: visible;
}
@media (max-width: 720px) {
  #menu-board > .chips {
    gap: 0.4rem;
    padding-bottom: 0.75rem;
  }
  #menu-board > .chips .chip {
    padding: 0.42rem 0.8rem;
    font-size: 0.85rem;
  }
}

.product-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
.product-card { display: flex; gap: 1rem; text-align: left; border-radius: 1.5rem; border: 1px solid var(--line); background: var(--paper); padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.product-card:hover { border-color: var(--oven); }
.thumb { width: 5rem; height: 5rem; flex-shrink: 0; border-radius: 1rem; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-head { display: flex; justify-content: space-between; gap: 0.75rem; }
.product-head h3 { margin: 0; font-size: 1.25rem; }
.clamp { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.diet-labels { color: inherit; font-weight: inherit; }

.modal-bg { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.4); padding: 1rem; }
@media (min-width: 640px) { .modal-bg { align-items: center; } }
.modal { width: min(32rem, 100%); max-height: 90vh; overflow: auto; background: var(--paper); border-radius: 1.5rem; padding: 1.5rem; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.pay-modal { width: min(26rem, 100%); }
.pay-modal.credit-modal { width: min(32rem, 100%); max-height: 85vh; overflow: auto; }
.credit-line-label { display: flex; align-items: center; gap: 0.7rem; flex: 1; margin: 0; cursor: pointer; }
.credit-modal .check-pill input[type="number"] { width: 4.2rem; margin: 0; }
.credit-status { margin: .85rem 0 0; min-height: 1.25em; }
.credit-status:not([hidden]) { display: flex; align-items: center; gap: .45rem; }
.modal-bg.is-busy .credit-status::before {
  content: "";
  width: .85rem;
  height: .85rem;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: credit-spin .7s linear infinite;
  flex: 0 0 auto;
}
@keyframes credit-spin { to { transform: rotate(360deg); } }
.pay-modal .pay-total { margin: 0 0 1rem; font-size: 1.15rem; }
.pay-modal .pay-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; align-items: center; margin-top: 0.75rem; }
.pay-modal .pay-row label { margin: 0; font-weight: 500; }
.pay-modal .pay-row input { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pay-modal .pay-change { margin: 1rem 0 0; font-weight: 600; }
.pay-modal .pay-change[hidden] { display: none; }
.pay-modal .pay-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.35rem; }
.qty { display: flex; align-items: center; gap: 0.75rem; }
.qty button, .round { width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--line); }
.extra-row, .order-lines li, .list li { display: flex; justify-content: space-between; gap: 0.75rem; }
.extra-row { border: 1px solid var(--line); border-radius: 1rem; padding: 0.5rem 0.75rem; }
.field { display: block; margin-top: 1.1rem; font-size: 0.9rem; }
.field input, .field select, .field textarea, label input, label select, label textarea {
  display: block; width: 100%; margin-top: 0.35rem; border-radius: 1rem; border: 1px solid var(--line);
  background: #fff; padding: 0.55rem 0.75rem;
}
label input[type="checkbox"],
label input[type="radio"] {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--ink);
}
label input[type="color"] {
  display: inline-block;
  width: 3.2rem;
  height: 2.5rem;
  padding: 0.2rem;
}
label { display: block; margin-top: 1rem; font-size: 0.9rem; }
.settings-form { display: flex; flex-direction: column; gap: 0.85rem; }
.settings-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 0;
  overflow: hidden;
}
.settings-section[hidden] { display: none !important; }
.settings-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.settings-summary::-webkit-details-marker,
.settings-summary::marker { display: none; content: none; }
.settings-section h2.serif {
  margin: 0;
  font-size: 1.45rem;
  pointer-events: none;
}
.settings-summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-top: -0.25rem;
}
details.settings-section[open] > .settings-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}
details.settings-section[open] > .settings-summary {
  border-bottom: 1px solid var(--line);
}
.settings-body { padding: 0.35rem 1.35rem 1.5rem; }
.settings-lead { margin: 0.4rem 0 0; }
.settings-subhead {
  font-size: 1.15rem;
  margin: 1.75rem 0 0;
}
.nav-page-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.nav-page-card {
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}
.nav-page-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.nav-page-card-title { font-weight: 600; }
.nav-page-card .check-grid { margin-top: 0.75rem; }
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
  margin-top: 0.35rem;
}
.settings-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .span-2 { grid-column: auto; }
}
.settings-section .check-grid { margin-top: 1.25rem; }
.settings-mail-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.settings-mail-block h3 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.settings-save {
  margin: 0;
  padding: 0;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
@media (max-width: 520px) {
  .check-grid { grid-template-columns: 1fr; }
}
.check-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}
.check-pill:has(input:checked) {
  border-color: var(--ink);
  background: var(--cream);
}
.check-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  font-weight: 400;
}
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; gap: 1rem; }

.address-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 7rem;
  margin-top: 1rem;
}
.address-grid-city {
  grid-template-columns: 7.5rem 1fr;
}
.address-grid > label { margin-top: 0; }
.zone-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.75rem;
}
.zone-row label { margin-top: 0; }
.delivery-line {
  display: flex;
  justify-content: space-between;
  margin: 0.35rem 0 0;
}
.checkout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.1fr 0.9fr; } }
.checkout-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.35rem; }
.slot-when {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.slot-when label { display: block; }
.slot-when input[type="date"],
.slot-when select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}
@media (max-width: 520px) {
  .slot-when { grid-template-columns: 1fr; }
}
.order-lines, .list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.order-lines li, .list li { border-bottom: 1px solid var(--line); padding: 0.65rem 0; font-size: 0.95rem; }
.order-lines li.order-item-block {
  display: grid;
  gap: 0.2rem;
}
.order-line-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 500;
}
button.order-line-hit {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
button.order-line-hit:hover span:first-child {
  text-decoration: underline;
}
.order-item-disc {
  margin-top: 0.55rem;
}
.order-line-extra {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-left: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}
.order-totals {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
}
.order-totals .total-row { margin: 0; }
.order-totals .subtotal-row {
  font-weight: 400;
  font-size: 1rem;
  color: var(--muted);
}
.list li.order-item { padding: 0; }
.order-link {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0;
  color: inherit;
  text-decoration: none;
}
.order-link:hover { color: var(--oven); }
.total-row { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 500; }
.row-gap { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 2rem 0; }

.footer {
  margin-top: auto;
  padding-bottom: 1.35rem;
  border-top: 1px solid color-mix(in srgb, var(--footer-fg, var(--paper)) 16%, transparent);
  background: var(--footer-bg, var(--ink));
  color: var(--footer-fg, var(--paper));
  --footer-fg: var(--paper);
}
.footer.footer-photo {
  background-color: var(--footer-bg, var(--ink));
  background-image:
    linear-gradient(0deg, color-mix(in srgb, var(--footer-bg) 72%, transparent), color-mix(in srgb, var(--footer-bg) 38%, transparent)),
    var(--footer-image);
  background-size: cover;
  background-position: center;
}
.footer.footer-empty.footer-photo {
  background-image:
    linear-gradient(0deg, color-mix(in srgb, var(--footer-bg) 42%, transparent), color-mix(in srgb, var(--footer-bg) 14%, transparent)),
    var(--footer-image);
}
.footer.footer-empty { min-height: 7.5rem; }
.footer-empty .footer-grid,
.footer-grid-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-empty .footer-meta {
  align-items: center;
  text-align: center;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding: 2.75rem 0 2rem;
  align-items: start;
  border-bottom: 1px solid color-mix(in srgb, var(--footer-fg, var(--paper)) 18%, transparent);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid-custom { grid-template-columns: 1.4fr 1fr; }
  .footer-meta {
    text-align: right;
    align-items: flex-end;
    justify-self: end;
  }
}
@media (min-width: 860px) {
  .footer-grid-map {
    grid-template-columns: minmax(12rem, 1fr) minmax(17rem, 1.15fr) minmax(12rem, 1fr);
    align-items: center;
    column-gap: 2.5rem;
  }
}
.footer-identity { min-width: 0; }
.footer-address {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--footer-fg, #fff) 88%, transparent);
}
.footer-contact { margin-top: 0.85rem; }
.footer-contact p { margin: 0.28rem 0 0; font-size: 0.95rem; }
.footer-map-wrap { position: relative; min-width: 0; justify-self: stretch; }
.footer-map {
  display: block;
  width: 100%;
  height: 10.5rem;
  border: 0;
  border-radius: 1.1rem;
  background: #d9d3c7;
}
.footer-map-btn {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.footer-map-btn:hover { background: #fff; }
.footer-name { font-size: 1.45rem; margin: 0 0 0.55rem; letter-spacing: 0.02em; }
.footer-logo { display: block; height: 2.4rem; width: auto; max-width: 8rem; object-fit: contain; margin-bottom: 0.6rem; }
.footer-custom { margin: 0; white-space: pre-wrap; font-size: 0.95rem; line-height: 1.5; }
.muted-light { color: color-mix(in srgb, var(--footer-fg, #fff) 72%, transparent); font-size: 0.9rem; }
.muted-faint { color: color-mix(in srgb, var(--footer-fg, #fff) 52%, transparent); font-size: 0.9rem; margin: 0; }
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--footer-fg, #fff) 88%, transparent);
}
.footer-meta p { margin: 0; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.footer-legal-row { display: block; }
.footer-legal-row:last-child { white-space: nowrap; }
.footer-link { color: inherit; text-decoration: underline; text-underline-offset: 0.22em; }
.footer-link:hover { color: var(--footer-fg, #fff); }
.color-pick { display: flex; align-items: center; gap: 0.75rem; }
.color-pick input[type="color"] {
  width: 3.2rem;
  height: 2.5rem;
  padding: 0.2rem;
  border-radius: 0.7rem;
  cursor: pointer;
}
.table-banner {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--sage) 12%, var(--paper));
}
.table-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
}
.table-banner-inner p { margin: 0; font-size: 0.95rem; }
.table-qr-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.table-qr-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
}
.table-qr-thumb {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  background: #fff;
  border-radius: 0.5rem;
}
.table-qr-sheet { text-align: center; padding: 1.5rem 0 2rem; }
.table-qr-title { font-size: clamp(2.4rem, 8vw, 4.5rem); margin: 0.35rem 0 0.5rem; }
.table-qr-print-img {
  display: block;
  width: min(22rem, 80vw);
  height: auto;
  margin: 1.5rem auto;
  background: #fff;
}
.table-qr-url { word-break: break-all; }
@media (max-width: 640px) {
  .table-qr-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .table-qr-item .btn { grid-column: 1 / -1; justify-self: start; }
}
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
body.has-cookie-banner { padding-bottom: 9rem; }
body.has-cookie-banner.cookie-banner-open { padding-bottom: 22rem; }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  display: grid;
  gap: 0.85rem;
}
.cookie-banner-inner p {
  margin: 0;
  max-width: 46rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255,255,255,.88);
}
.cookie-banner-inner a,
.cookie-more {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.cookie-more-page { color: var(--ink); }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cookie-details[hidden],
.cookie-prefs[hidden] { display: none !important; }
.cookie-choice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.cookie-choice + .cookie-choice { margin-top: 0.35rem; }
.cookie-choice p { max-width: 36rem; }
.cookie-choice-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: #fff;
}
.cookie-prefs .cookie-choice {
  border-top-color: var(--line);
  padding-top: 1rem;
}
.cookie-prefs .cookie-choice-title { color: var(--ink); }
.cookie-page-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch-track {
  width: 2.7rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #c4bbb0;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 0.16rem;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform 0.15s ease;
}
.switch input:checked + .switch-track {
  background: var(--oven);
}
.switch input:checked + .switch-track::after {
  transform: translateX(1.2rem);
}
.switch input:focus-visible + .switch-track {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.switch-state {
  min-width: 1.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.switch-state::before { content: "Fra"; }
.switch input:checked ~ .switch-state::before { content: "Til"; }
.cookie-banner .switch-track { background: rgba(255,255,255,.22); }
.cookie-banner .switch-state { color: rgba(255,255,255,.88); }

.newsletter-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  margin-top: 0.5rem;
}
@media (max-width: 800px) {
  .newsletter-layout { grid-template-columns: 1fr; }
}
.newsletter-preview {
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  min-height: 12rem;
}
.newsletter-preview-shop {
  margin: 0 0 0.75rem;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.1rem;
}
.newsletter-preview h3 { margin: 0 0 0.75rem; font-size: 1.35rem; }
.newsletter-preview img { display: block; width: 100%; border-radius: 0.75rem; margin: 0 0 0.85rem; }
.newsletter-preview [data-preview-body] p { margin: 0 0 0.75rem; line-height: 1.5; }
.newsletter-preview-btn,
.campaign-preview-btn {
  display: inline-block;
  margin: 0.85rem 0 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--oven);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.campaign-preview-fields[hidden] { display: none !important; }
.campaign-preview-fake {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  opacity: 0.75;
  font-size: 0.9rem;
}
.campaign-preview {
  border-radius: 1.25rem;
  padding: 1.35rem;
  min-height: 14rem;
}
.campaign-preview img { display: block; width: 100%; border-radius: 0.85rem; margin: 0 0 0.85rem; }
.campaign-preview h3 { margin: 0 0 0.6rem; font-size: 1.45rem; }
.campaign-preview [data-preview-body] p { margin: 0 0 0.65rem; line-height: 1.5; opacity: 0.92; }
.campaign-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(28, 25, 23, 0.55);
}
.campaign-modal[hidden] { display: none !important; }
.campaign-card {
  width: min(28rem, 100%);
  border-radius: 1.35rem;
  padding: 1.5rem 1.4rem 1.25rem;
  box-shadow: 0 24px 48px rgba(0,0,0,.28);
  position: relative;
}
.campaign-card img {
  display: block;
  width: 100%;
  border-radius: 0.9rem;
  margin: 0 0 1rem;
  max-height: 12rem;
  object-fit: cover;
}
.campaign-card h2 { margin: 0 0 0.6rem; font-size: 1.7rem; }
.campaign-card p { margin: 0 0 0.75rem; line-height: 1.5; opacity: 0.92; }
.campaign-card label { margin-top: 0.65rem; }
.campaign-card input {
  width: 100%;
  margin-top: 0.3rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: inherit;
  padding: 0.65rem 0.75rem;
}
.campaign-card .campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.campaign-dismiss {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  color: inherit;
  opacity: 0.7;
  font-size: 1.4rem;
  line-height: 1;
}
.campaign-card .btn-outline { border: 1px solid currentColor; color: inherit; background: transparent; }

.admin-header { position: relative; z-index: 40; border-bottom: 1px solid var(--line); background: var(--paper); }
.admin-brand { color: inherit; text-decoration: none; }
.admin-brand:hover { text-decoration: underline; }
.admin-nav a, .admin-nav button { position: relative; z-index: 1; border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.9rem; }
.admin-nav a:hover, .admin-nav button:hover { background: var(--cream); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.linkish { color: var(--muted); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-wrap .card { width: min(28rem, 100%); }
.stats { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.stats .card { min-width: 0; }
.stat-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.stat-card.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.stat-card.is-on .muted { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.stat { margin: 0.5rem 0 0; font-size: clamp(1.2rem, 2.4vw, 1.9rem); line-height: 1.15; overflow-wrap: anywhere; }
.list { margin-top: 2rem; padding: 0 1.25rem; }
.order-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}
.order-toolbar form { display: contents; }
.order-toolbar .btn,
.order-toolbar select {
  height: 2.75rem;
  margin: 0;
  padding: 0 1.15rem;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: auto;
}
.order-toolbar select {
  border: 1px solid var(--line);
  background: #fff;
  min-width: 10.5rem;
}
.user-actions form { margin: 0; }
.user-actions button { white-space: nowrap; }
.user-list li.user-card {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
}
.user-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.user-roles {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--line);
}
.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.role-pills[hidden],
[data-admin-hint][hidden] {
  display: none !important;
}
.sage { color: var(--sage); }

.product-modal {
  width: min(44rem, 100%);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 52rem);
}
.product-modal-head,
.product-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
}
.product-modal-head {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 55%, var(--paper));
}
.product-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-modal-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
}
.product-modal-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--muted);
}
.product-modal-close:hover { background: var(--cream); color: var(--ink); }
.product-form {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow: auto;
}
.product-identity {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .product-identity { grid-template-columns: 10.5rem 1fr; }
}
.product-photo-wrap {
  position: relative;
}
.product-photo {
  margin: 0;
  position: relative;
  display: flex;
  min-height: 10.5rem;
  border-radius: 1.25rem;
  border: 1px dashed var(--line);
  background: var(--cream);
  overflow: hidden;
  cursor: pointer;
}
.product-photo.has-image { border-style: solid; }
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-photo-empty {
  margin: auto;
  display: grid;
  gap: 0.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1rem;
}
.product-photo-empty strong { color: var(--ink); font-weight: 500; }
.product-modal .product-photo input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: block;
  cursor: pointer;
}
.product-photo-remove {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 2;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  background: #fff;
}
.product-fields { display: grid; gap: 0.85rem; align-content: start; }
.price-split {
  display: grid;
  gap: 0.4rem;
  padding: 0.7rem 0.85rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}
.price-split-line {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.price-split-line.is-input { color: var(--ink); font-weight: 500; }
.price-split label.price-split-line input {
  margin-top: 0;
  padding: 0.4rem 0.65rem;
}
.price-split-line strong {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-split-line.is-total {
  border-top: 1px dashed var(--line);
  padding-top: 0.45rem;
  margin-top: 0.15rem;
  color: var(--ink);
  font-weight: 500;
}
.price-split-line.is-total strong { font-size: 1.02rem; }
.variant-block { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.product-visible { margin: 0; min-height: 3.05rem; }
.product-clear-img {
  justify-self: start;
  font-size: 0.8rem;
  padding: 0;
}
.product-section {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--line);
}
.product-section-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.product-section-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.product-section-head p { margin: 0.2rem 0 0; }
.product-empty { margin: 0; }
.variant-row {
  display: flex;
  gap: 0.65rem;
  align-items: end;
  margin-top: 0.65rem;
}
.variant-remove {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 0.05rem;
}
.variant-remove:hover { border-color: var(--oven); color: var(--oven); }
.product-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
@media (max-width: 520px) {
  .product-extras { grid-template-columns: 1fr; }
}
.product-extras .check-pill { margin: 0; }
.product-modal-foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.product-modal .field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.menu-item-hidden { opacity: 0.68; }
.menu-layout { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 1024px) { .menu-layout { grid-template-columns: 220px 1fr; } }
.side-btn { display: block; width: 100%; text-align: left; border-radius: 1rem; padding: 0.5rem 0.75rem; margin-bottom: 0.5rem; background: var(--paper); border: 1px solid var(--line); }
.side-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.side-btn-archive { margin-top: 0.85rem; color: var(--muted); }
.side-btn-archive.active { color: var(--paper); }
.archive-heading {
  margin: 1.35rem 0 0;
  font-size: 1.02rem;
}
.deleted-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}
.dashed { border: 1px dashed var(--line); background: transparent; }
.kitchen-grid { display: grid; gap: 1rem; margin-top: 1.5rem; align-items: stretch; }
.kitchen-grid > .card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.kitchen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}
@media (min-width: 768px) { .kitchen-grid { grid-template-columns: 1fr 1fr; } }
.kitchen-alert {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: color-mix(in srgb, #7c2d12 72%, transparent);
  backdrop-filter: blur(4px);
}
.kitchen-alert-card {
  width: min(36rem, 100%);
  background: var(--paper);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  animation: kitchen-pop .35s ease-out;
}
.kitchen-alert-kicker {
  margin: 0 0 .35rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--oven);
}
.kitchen-btn-approve {
  font-size: 1.15rem;
  padding: .9rem 1.4rem;
  animation: kitchen-pulse 1.4s ease-in-out infinite;
}
@keyframes kitchen-pop {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes kitchen-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 35%, transparent); }
  50% { box-shadow: 0 0 0 10px transparent; }
}
.backup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-family: ui-monospace, monospace; }
.backup-grid li { background: var(--cream); border-radius: 0.75rem; padding: 0.5rem 0.75rem; list-style: none; }
.qr { display: block; margin: 1.5rem auto; border-radius: 1rem; border: 1px solid var(--line); }
.mono { font-family: ui-monospace, monospace; font-size: 0.75rem; text-align: center; word-break: break-all; color: var(--muted); }

.stats-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  margin-top: 1.25rem;
}
.stats-filters label { margin: 0; min-width: 9.5rem; }
.stats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.stats-actions .btn {
  height: 2.6rem;
  padding: 0 1.15rem;
}
.stats-mail-input {
  width: min(22rem, 100%);
  height: 2.6rem;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 1rem;
}
.stats-mail-msg {
  font-size: 0.88rem;
  min-height: 1.2em;
}
.stat-charts { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 960px) { .stat-charts { grid-template-columns: 1fr 1fr; } }
.stat-chart-wide { grid-column: 1 / -1; }
.stat-bars { display: grid; gap: 0.45rem; margin-top: 1rem; }
.stat-bar-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 11rem) 1fr auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.88rem;
}
.stat-bar-track { height: 0.7rem; background: var(--cream); border-radius: 99px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: var(--oven); border-radius: 99px; min-width: 2px; }
.stat-bar-fill.ink { background: var(--ink); }
.stat-bar-fill.sage { background: var(--sage); }
.stat-day-chart {
  display: flex;
  align-items: stretch;
  gap: 0.3rem;
  height: 13rem;
  overflow-x: auto;
  margin-top: 1rem;
  padding-bottom: 0.15rem;
}
.stat-day-col {
  flex: 1 0 1.2rem;
  min-width: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}
.stat-day-bar {
  flex: 1 1 auto;
  width: 100%;
  min-height: 7rem;
  display: flex;
  align-items: flex-end;
}
.stat-day-fill {
  width: 100%;
  background: var(--oven);
  border-radius: 0.4rem 0.4rem 0.15rem 0.15rem;
  min-height: 3px;
  flex-shrink: 0;
}
.stat-day-col small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.2;
  margin-top: 0.3rem;
}
.stat-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.75rem; }
.stat-table th, .stat-table td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.stat-table th:last-child, .stat-table td:last-child { text-align: right; }
.budget-month-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.budget-month-bar label { margin: 0; }
.budget-table input[type="number"] {
  width: 6.5rem;
  max-width: 100%;
  text-align: right;
}
.budget-table tr.is-inactive td { opacity: 0.55; }
.budget-table tr.budget-behind td:last-child { color: var(--oven); font-weight: 600; }
.budget-table tr.budget-ok td:last-child,
.budget-table tr.budget-ahead td:last-child { color: var(--sage); font-weight: 600; }
.audit-top {
  display: grid;
  grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.25rem;
}
.audit-cal,
.audit-log {
  margin-top: 0;
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.audit-log {
  height: 0;
  min-height: 100%;
  overflow: hidden;
}
.audit-log-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.audit-log-body .audit-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
}
@media (max-width: 52rem) {
  .audit-top { grid-template-columns: 1fr; }
  .audit-log {
    height: auto;
    min-height: 0;
    max-height: min(70vh, 36rem);
  }
}
.audit-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.audit-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 1;
  min-width: 12rem;
}
.audit-search input[type="search"] {
  display: block;
  width: 100%;
  max-width: 16rem;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem 0.85rem;
}
.audit-search .btn { flex-shrink: 0; padding: 0.35rem 0.8rem; }
.audit-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}
.audit-cal-dow {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.2rem 0 0.35rem;
}
.audit-cal-day {
  aspect-ratio: 1;
  min-height: 2.1rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  font-size: 0.88rem;
}
.audit-cal-day.is-other { color: var(--muted); opacity: 0.5; }
.audit-cal-day.is-today { border-color: var(--ink); }
.audit-cal-day.is-in { background: color-mix(in srgb, var(--ink) 10%, var(--paper)); }
.audit-cal-day.is-pick {
  background: var(--ink);
  color: #fffaf1;
  border-color: var(--ink);
}
.audit-cal-day:hover { border-color: var(--ink); }
.audit-cal-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: auto;
  padding-top: 1rem;
}
.audit-count { display: flex; align-items: center; flex-wrap: nowrap; gap: 0.45rem; margin: 0; white-space: nowrap; }
.audit-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}
.audit-pager > * { min-width: 0; }
.audit-pager-range { margin: 0; flex: 1 1 8rem; text-align: center; }
.audit-pager-of { flex-shrink: 0; }
.audit-count select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  max-width: 100%;
}
.audit-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.audit-table th, .audit-table td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.audit-table th { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.print-queue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.print-queue-head h1 { margin: 0; }
.print-queue-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.print-queue-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.print-queue-table th, .print-queue-table td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.print-queue-table th { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.print-queue-table tr.is-pending td { color: #785014; }
.print-queue-table tr.is-error td { color: #c2410c; }
.print-queue-table .print-queue-row-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.print-queue-payload {
  margin: 0.35rem 0 0;
  padding: 0.6rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.audit-time { white-space: nowrap; color: var(--muted); width: 9.5rem; }
.audit-summary { margin: 0; font-weight: 500; cursor: pointer; list-style: none; }
.audit-summary::-webkit-details-marker { display: none; }
.audit-summary::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-right: 0.5em;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  vertical-align: 0.12em;
}
.audit-fold { margin: 0; }
.audit-fold[open] .audit-summary { color: var(--oven); }
.audit-fold[open] .audit-summary::before {
  transform: rotate(45deg);
  vertical-align: 0.22em;
}
.audit-summary:hover { text-decoration: underline; }
.audit-more {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border-radius: 0.85rem;
  border: 1px solid var(--line);
}
.audit-pre {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.audit-meta { margin: 0.75rem 0 0; }
.audit-detail { margin: 0.2rem 0 0; line-height: 1.45; overflow-wrap: anywhere; max-width: 46rem; }
.receipt-print { display: none; }
.receipt-logo { display: block; max-width: 160px; max-height: 72px; margin: 0 auto 8px; object-fit: contain; }
.receipt-sheet { width: 72mm; margin: 0 auto; font-size: 12px; line-height: 1.35; }
.receipt-sheet h1 { font-family: Fraunces, Georgia, serif; font-size: 18px; margin: 0 0 12px; text-align: center; }
.receipt-tagline, .receipt-company, .receipt-meta, .receipt-kicker, .receipt-thanks { text-align: center; }
.receipt-tagline { margin: 0 0 10px; font-size: 11px; }
.receipt-company { margin: 10px 0 8px; }
.receipt-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; margin: 8px 0 4px; }
.receipt-line { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0; }
.receipt-extra { padding-left: 12px; font-size: 11px; }
.receipt-total { font-weight: 600; font-size: 14px; }
.receipt-paid { text-align: center; font-weight: 600; margin: 12px 0 8px; }
.receipt-thanks { margin-top: 16px; }
.receipt-sheet hr { border: 0; border-top: 1px dashed #111; margin: 8px 0; }
@media print {
  @page { margin: 0; size: auto; }
  html, body { margin: 0; padding: 0; background: #fff; }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .no-print { display: none !important; }
  body[data-page="table-qr"] .table-qr-sheet { padding-top: 12mm; }
  body[data-page="table-qr"] .table-qr-print-img { width: 85mm; }
  body.printing-receipt * { visibility: hidden; }
  body.printing-receipt .receipt-print,
  body.printing-receipt .receipt-print * { visibility: visible; }
  body.printing-receipt .receipt-print {
    display: block;
    position: absolute;
    inset: 0;
    background: #fff;
    color: #000;
    padding: 8px;
  }
  body.printing-receipt .kitchen-alert,
  body.printing-receipt #kitchen-approve { display: none !important; }
  body.admin:not(.printing-receipt) .admin-header,
  body.admin:not(.printing-receipt) .stats-no-print {
    display: none !important;
  }
  body.admin:not(.printing-receipt) {
    background: #fff;
    padding: 10mm 12mm;
  }
  body.admin:not(.printing-receipt) h1.serif {
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
  }
  body.admin:not(.printing-receipt) .stats {
    margin-top: 0.75rem !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }
  body.admin:not(.printing-receipt) .stats .card.pad {
    padding: 0.8rem 0.95rem;
  }
  body.admin:not(.printing-receipt) .stat {
    font-size: 1.2rem;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  body.admin:not(.printing-receipt) .stat-charts {
    margin-top: 0.85rem;
  }
  body.admin:not(.printing-receipt) .card {
    box-shadow: none;
  }
  body.admin:not(.printing-receipt) .stat-chart-wide {
    break-inside: auto;
    page-break-inside: auto;
  }
  body.admin:not(.printing-receipt) .stat-charts > .card:not(.stat-chart-wide) {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .stat-day-chart { height: 10rem; overflow: visible; }
  .stat-day-bar { min-height: 6.5rem; }
  body.shop:has(#order-receipt-page) * { visibility: hidden; }
  body.shop:has(#order-receipt-page) .receipt-print,
  body.shop:has(#order-receipt-page) .receipt-print * { visibility: visible; }
  body.shop:has(#order-receipt-page) .receipt-print {
    display: block;
    position: absolute;
    inset: 0;
    background: #fff;
    color: #000;
    padding: 8px;
  }
  body.shop:has(#order-receipt-page) .header,
  body.shop:has(#order-receipt-page) .footer,
  body.shop:has(#order-receipt-page) .cookie-banner,
  body.shop:has(#order-receipt-page) .no-print {
    display: none !important;
  }
}

.regulars-search {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.regulars-search input {
  flex: 1 1 16rem;
  min-width: 12rem;
}
.regulars-guest {
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.regulars-guest h2 { margin: 0; font-size: 1.35rem; }
.regulars-meta { margin: 0.35rem 0 0; }
.regulars-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0;
}
.regulars-stat {
  background: var(--cream);
  border-radius: 0.75rem;
  padding: 0.55rem 0.8rem;
  min-width: 6.5rem;
}
.regulars-stat span { display: block; color: var(--muted); font-size: 0.78rem; }
.regulars-stat strong { font-size: 1.05rem; }
.regulars-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: end;
}
.regulars-actions label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.regulars-actions input {
  width: 6.5rem;
}
.regulars-vouchers {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}
.regulars-hits {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.regulars-hits li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
